class CfnLogGroupPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Logs.Mixins.CfnLogGroupPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslogs/mixins#CfnLogGroupPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.logs.mixins.CfnLogGroupPropsMixin |
Python | aws_cdk.mixins_preview.aws_logs.mixins.CfnLogGroupPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_logs » mixins » CfnLogGroupPropsMixin |
Implements
IMixin
Extends
Mixin
The AWS::Logs::LogGroup resource specifies a log group.
A log group defines common properties for log streams, such as their retention and access control rules. Each log stream must belong to one log group.
You can create up to 1,000,000 log groups per Region per account. You must use the following guidelines when naming a log group:
- Log group names must be unique within a Region for an AWS account.
- Log group names can be between 1 and 512 characters long.
- Log group names consist of the following characters: a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), '/' (forward slash), and '.' (period).
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.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';
declare const dataProtectionPolicy: any;
declare const fieldIndexPolicies: any;
declare const resourcePolicyDocument: any;
const cfnLogGroupPropsMixin = new logs_mixins.CfnLogGroupPropsMixin({
dataProtectionPolicy: dataProtectionPolicy,
fieldIndexPolicies: [fieldIndexPolicies],
kmsKeyId: 'kmsKeyId',
logGroupClass: 'logGroupClass',
logGroupName: 'logGroupName',
resourcePolicyDocument: resourcePolicyDocument,
retentionInDays: 123,
tags: [{
key: 'key',
value: 'value',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnLogGroupPropsMixin(props: CfnLogGroupMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Log Group Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Logs::LogGroup.
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