StreamOptions Struct
Properties for a new LogStream created from a LogGroup.
| Source | aws-logs/lib/log-group.ts |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';
const streamOptions: logs.StreamOptions = {
logStreamName: 'logStreamName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_logs as logs
stream_options = logs.StreamOptions(
log_stream_name="logStreamName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.logs.*;
StreamOptions streamOptions = StreamOptions.builder()
.logStreamName("logStreamName")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Logs;
var streamOptions = new StreamOptions {
LogStreamName = "logStreamName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
streamOptions := &StreamOptions{
LogStreamName: jsii.String("logStreamName"),
}
Properties
logStreamNameoptionalstringlog_stream_nameoptionalstrlogStreamNameoptionalStringLogStreamNameoptionalstringLogStreamNameoptional*string #The name of the log stream to create.
Default: Automatically generated
The name must be unique within the log group.