@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.710Z") @Stability(value=Stable) 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.*;
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()
The log group to create a log stream for.
|
default String |
getLogStreamName()
The name of the log stream to create.
|
default RemovalPolicy |
getRemovalPolicy()
Determine what happens when the log stream resource is removed from the app.
|
@Stability(value=Stable) @NotNull ILogGroup getLogGroup()
@Stability(value=Stable) @Nullable default String getLogStreamName()
The name must be unique within the log group.
Default: Automatically generated
@Stability(value=Stable) @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=Stable) static LogStreamProps.Builder builder()
LogStreamProps.Builder of LogStreamPropsCopyright © 2022. All rights reserved.