CfnLogGroupProps

class aws_cdk.aws_logs.CfnLogGroupProps(*, kms_key_id=None, log_group_name=None, retention_in_days=None)

Bases: object

Properties for defining a AWS::Logs::LogGroup.

Parameters
  • kms_key_id (Optional[str]) – AWS::Logs::LogGroup.KmsKeyId.

  • log_group_name (Optional[str]) – AWS::Logs::LogGroup.LogGroupName.

  • retention_in_days (Union[int, float, None]) – AWS::Logs::LogGroup.RetentionInDays.

See

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

Attributes

kms_key_id

AWS::Logs::LogGroup.KmsKeyId.

See

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

Return type

Optional[str]

log_group_name

AWS::Logs::LogGroup.LogGroupName.

See

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

Return type

Optional[str]

retention_in_days

AWS::Logs::LogGroup.RetentionInDays.

See

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

Return type

Union[int, float, None]