aws-cdk-lib.aws_logs.CfnLogStreamProps

interface CfnLogStreamProps

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

Properties for defining a CfnLogStream.

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 cfnLogStreamProps: logs.CfnLogStreamProps = {
  logGroupName: 'logGroupName',

  // the properties below are optional
  logStreamName: 'logStreamName',
};

Properties

NameTypeDescription
logGroupNamestringThe name of the log group where the log stream is created.
logStreamName?stringThe name of the log stream.

logGroupName

Type: string

The name of the log group where the log stream is created.


logStreamName?

Type: string (optional)

The name of the log stream.

The name must be unique within the log group.