CfnLogStreamProps

class aws_cdk.aws_logs.CfnLogStreamProps(*, log_group_name, log_stream_name=None)

Bases: object

Properties for defining a CfnLogStream.

Parameters:
  • log_group_name (str) – The name of the log group where the log stream is created.

  • log_stream_name (Optional[str]) – The name of the log stream. The name must be unique within the log group.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_logs as logs

cfn_log_stream_props = logs.CfnLogStreamProps(
    log_group_name="logGroupName",

    # the properties below are optional
    log_stream_name="logStreamName"
)

Attributes

log_group_name

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

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-loggroupname

log_stream_name

The name of the log stream.

The name must be unique within the log group.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-logstreamname