CfnLogGroupLogsMixin
- class aws_cdk.mixins_preview.aws_logs.mixins.CfnLogGroupLogsMixin(log_type, log_delivery)
Bases:
MixinThe
AWS::Logs::LogGroupresource 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:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html
- CloudformationResource:
AWS::Logs::LogGroup
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import aws_logs as logs from aws_cdk.mixins_preview.aws_logs import mixins as logs_mixins # logs_delivery: logs.ILogsDelivery cfn_log_group_logs_mixin = logs_mixins.CfnLogGroupLogsMixin("logType", logs_delivery)
Create a mixin to enable vended logs for
AWS::Logs::LogGroup.- Parameters:
log_type (
str) – Type of logs that are getting vended.log_delivery (
ILogsDelivery) – Object in charge of setting up the delivery source, delivery destination, and delivery connection.
Methods
- apply_to(resource)
Apply vended logs configuration to the construct.
- Parameters:
resource (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct (has vendedLogs property).
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- AUDIT_LOGS = <aws_cdk.mixins_preview.aws_logs.mixins.CfnLogGroupAuditLogs object>
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.