class CfnLogGroupLogsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Logs.Mixins.CfnLogGroupLogsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslogs/mixins#CfnLogGroupLogsMixin |
Java | software.amazon.awscdk.mixins.preview.services.logs.mixins.CfnLogGroupLogsMixin |
Python | aws_cdk.mixins_preview.aws_logs.mixins.CfnLogGroupLogsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_logs » mixins » CfnLogGroupLogsMixin |
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 { aws_logs as logs } from '@aws-cdk/mixins-preview';
import { mixins as logs_mixins } from '@aws-cdk/mixins-preview/aws-logs';
declare const logsDelivery: logs.ILogsDelivery;
const cfnLogGroupLogsMixin = new logs_mixins.CfnLogGroupLogsMixin('logType', logsDelivery);
Initializer
new CfnLogGroupLogsMixin(logType: string, logDelivery: ILogsDelivery)
Parameters
- logType
string— Type of logs that are getting vended. - logDelivery
ILogs— Object in charge of setting up the delivery source, delivery destination, and delivery connection.Delivery
Create a mixin to enable vended logs for AWS::Logs::LogGroup.
Properties
| Name | Type | Description |
|---|---|---|
| log | ILogs | |
| log | string | |
| static AUDIT_LOGS | Cfn |
logDelivery
Type:
ILogs
logType
Type:
string
static AUDIT_LOGS
Type:
Cfn
Methods
| Name | Description |
|---|---|
| apply | Apply vended logs configuration to the construct. |
| supports(construct) | Check if this mixin supports the given construct (has vendedLogs property). |
applyTo(resource)
public applyTo(resource: IConstruct): void
Parameters
- resource
IConstruct
Apply vended logs configuration to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct (has vendedLogs property).

.NET
Go
Java
Python
TypeScript