Skip to content
v2.274.0

LogStreamAttributes Struct ​

Attributes for importing a LogStream.

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 logStreamAttributes: logs.LogStreamAttributes = {
  logGroupName: 'logGroupName',
  logStreamName: 'logStreamName',
};

Properties ​

logGroupNamestringlog_group_namestrlogGroupNameStringLogGroupNamestringLogGroupName*stringrequired#
The name of the log group.

Default: When not provided, logStreamRef will throw an error

logStreamNamestringlog_stream_namestrlogStreamNameStringLogStreamNamestringLogStreamName*stringrequired#
The name of the log stream.