@Stability(value=Stable) public static final class LogStreamProps.Builder extends Object implements software.amazon.jsii.Builder<LogStreamProps>
LogStreamProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
LogStreamProps |
build()
Builds the configured instance.
|
LogStreamProps.Builder |
logGroup(ILogGroup logGroup)
Sets the value of
LogStreamProps.getLogGroup() |
LogStreamProps.Builder |
logStreamName(String logStreamName)
Sets the value of
LogStreamProps.getLogStreamName() |
LogStreamProps.Builder |
removalPolicy(RemovalPolicy removalPolicy)
Sets the value of
LogStreamProps.getRemovalPolicy() |
@Stability(value=Stable) public LogStreamProps.Builder logGroup(ILogGroup logGroup)
LogStreamProps.getLogGroup()logGroup - The log group to create a log stream for. This parameter is required.this@Stability(value=Stable) public LogStreamProps.Builder logStreamName(String logStreamName)
LogStreamProps.getLogStreamName()logStreamName - The name of the log stream to create.
The name must be unique within the log group.this@Stability(value=Stable) public LogStreamProps.Builder removalPolicy(RemovalPolicy removalPolicy)
LogStreamProps.getRemovalPolicy()removalPolicy - Determine what happens when the log stream resource is removed from the app.
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.
this@Stability(value=Stable) public LogStreamProps build()
build in interface software.amazon.jsii.Builder<LogStreamProps>LogStreamPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.