aws-cdk-lib.aws_logs.StreamOptions

interface StreamOptions

LanguageType name
.NETAmazon.CDK.AWS.Logs.StreamOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslogs#StreamOptions
Javasoftware.amazon.awscdk.services.logs.StreamOptions
Pythonaws_cdk.aws_logs.StreamOptions
TypeScript (source)aws-cdk-lib » aws_logs » StreamOptions

Properties for a new LogStream created from a LogGroup.

Example

// 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',
};

Properties

NameTypeDescription
logStreamName?stringThe name of the log stream to create.

logStreamName?

Type: string (optional, default: Automatically generated)

The name of the log stream to create.

The name must be unique within the log group.