@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:10.670Z") @Stability(value=Experimental) public interface LogStreamProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.services.logs.*;
LogGroup logGroup;
LogStreamProps logStreamProps = LogStreamProps.builder()
.logGroup(logGroup)
// the properties below are optional
.logStreamName("logStreamName")
.removalPolicy(RemovalPolicy.DESTROY)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
LogStreamProps.Builder
A builder for
LogStreamProps |
static class |
LogStreamProps.Jsii$Proxy
An implementation for
LogStreamProps |
| Modifier and Type | Method and Description |
|---|---|
static LogStreamProps.Builder |
builder() |
ILogGroup |
getLogGroup()
(experimental) The log group to create a log stream for.
|
default String |
getLogStreamName()
(experimental) The name of the log stream to create.
|
default RemovalPolicy |
getRemovalPolicy()
(experimental) Determine what happens when the log stream resource is removed from the app.
|
@Stability(value=Experimental) @NotNull ILogGroup getLogGroup()
@Stability(value=Experimental) @Nullable default String getLogStreamName()
The name must be unique within the log group.
Default: Automatically generated
@Stability(value=Experimental) @Nullable default RemovalPolicy getRemovalPolicy()
Normally you want to retain the log stream so you can diagnose issues from logs even after a deployment that no longer includes the log stream.
The date-based retention policy of your log group will age out the logs after a certain time.
Default: RemovalPolicy.Retain
@Stability(value=Experimental) static LogStreamProps.Builder builder()
LogStreamProps.Builder of LogStreamPropsCopyright © 2022. All rights reserved.