Data Source: awsCloudwatchLogGroup
Use this data source to get information about an AWS Cloudwatch Log Group
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsCloudwatchLogGroup.DataAwsCloudwatchLogGroup(this, "example", {
name: "MyImportantLogs",
});
Argument Reference
The following arguments are supported:
name
- (Required) Name of the Cloudwatch log group
Attributes Reference
In addition to all arguments above, the following attributes are exported:
arn
- ARN of the Cloudwatch log group. Any:*
suffix added by the API, denoting all CloudWatch Log Streams under the CloudWatch Log Group, is removed for greater compatibility with other AWS services that do not accept the suffix.creationTime
- Creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.retentionInDays
- Number of days log events retained in the specified log group.kmsKeyId
- ARN of the KMS Key to use when encrypting log data.tags
- Map of tags to assign to the resource.