| Modifier and Type | Method and Description |
|---|---|
LogStream |
build() |
static LogStream.Builder |
create(software.constructs.Construct scope,
String id) |
LogStream.Builder |
logGroup(ILogGroup logGroup)
The log group to create a log stream for.
|
LogStream.Builder |
logStreamName(String logStreamName)
The name of the log stream to create.
|
LogStream.Builder |
removalPolicy(RemovalPolicy removalPolicy)
Determine what happens when the log stream resource is removed from the app.
|
@Stability(value=Stable) public static LogStream.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.LogStream.Builder.@Stability(value=Stable) public LogStream.Builder logGroup(ILogGroup logGroup)
logGroup - The log group to create a log stream for. This parameter is required.this@Stability(value=Stable) public LogStream.Builder logStreamName(String logStreamName)
The name must be unique within the log group.
Default: Automatically generated
logStreamName - The name of the log stream to create. This parameter is required.this@Stability(value=Stable) public LogStream.Builder removalPolicy(RemovalPolicy removalPolicy)
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
removalPolicy - Determine what happens when the log stream resource is removed from the app. This parameter is required.thisCopyright © 2022. All rights reserved.