class CfnLogStreamPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Logs.Mixins.CfnLogStreamPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslogs/mixins#CfnLogStreamPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.logs.mixins.CfnLogStreamPropsMixin |
Python | aws_cdk.mixins_preview.aws_logs.mixins.CfnLogStreamPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_logs » mixins » CfnLogStreamPropsMixin |
Implements
IMixin
Extends
Mixin
The AWS::Logs::LogStream resource specifies an Amazon CloudWatch Logs log stream in a specific log group.
A log stream represents the sequence of events coming from an application instance or resource that you are monitoring.
There is no limit on the number of log streams that you can create for a log group.
You must use the following guidelines when naming a log stream:
- Log stream names must be unique within the log group.
- Log stream names can be between 1 and 512 characters long.
- The ':' (colon) and '*' (asterisk) characters are not allowed.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as logs_mixins } from '@aws-cdk/mixins-preview/aws-logs';
const cfnLogStreamPropsMixin = new logs_mixins.CfnLogStreamPropsMixin({
logGroupName: 'logGroupName',
logStreamName: 'logStreamName',
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnLogStreamPropsMixin(props: CfnLogStreamMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Log Stream Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Logs::LogStream.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript