LogGroup
¶
Source code in docs_src/capo_cloudwatch_logs/types/log_group.py
arn
instance-attribute
¶
arn: NotRequired[Arn]
The Amazon Resource Name (ARN) of the log group. This version of the ARN includes a trailing :* after the log group name.
Use this version to refer to the ARN in IAM policies when specifying permissions for most API actions. The exception is when specifying permissions for TagResource, UntagResource, and ListTagsForResource. The permissions for those three actions require the ARN version that doesn't include a trailing :*.
bearer_token_authentication_enabled
instance-attribute
¶
bearer_token_authentication_enabled: NotRequired[BearerTokenAuthenticationEnabled]
Indicates whether bearer token authentication is enabled for this log group. When enabled, bearer token authentication is allowed on operations until it is explicitly disabled.
creation_time
instance-attribute
¶
creation_time: NotRequired[Timestamp]
The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
data_protection_status
instance-attribute
¶
data_protection_status: NotRequired[DataProtectionStatus]
Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.
deletion_protection_enabled
instance-attribute
¶
deletion_protection_enabled: NotRequired[DeletionProtectionEnabled]
Indicates whether deletion protection is enabled for this log group. When enabled, deletion protection blocks all deletion operations until it is explicitly disabled.
inherited_properties
instance-attribute
¶
inherited_properties: NotRequired[InheritedProperties]
Displays all the properties that this log group has inherited from account-level settings.
kms_key_id
instance-attribute
¶
kms_key_id: NotRequired[KmsKeyId]
The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data.
log_group_arn
instance-attribute
¶
log_group_arn: NotRequired[Arn]
The Amazon Resource Name (ARN) of the log group. This version of the ARN doesn't include a trailing :* after the log group name.
Use this version to refer to the ARN in the following situations:
-
In the
logGroupIdentifierinput field in many CloudWatch Logs APIs. -
In the
resourceArnfield in tagging APIs -
In IAM policies, when specifying permissions for TagResource, UntagResource, and ListTagsForResource.
log_group_class
instance-attribute
¶
log_group_class: NotRequired[LogGroupClass]
This specifies the log group class for this log group. There are three classes:
-
The
Standardlog class supports all CloudWatch Logs features. -
The
Infrequent Accesslog class supports a subset of CloudWatch Logs features and incurs lower costs. -
Use the
Deliverylog class only for delivering Lambda logs to store in Amazon S3 or Amazon Data Firehose. Log events in log groups in the Delivery class are kept in CloudWatch Logs for only one day. This log class doesn't offer rich CloudWatch Logs capabilities such as CloudWatch Logs Insights queries.
For details about the features supported by the Standard and Infrequent Access classes, see Log classes
log_group_name
instance-attribute
¶
log_group_name: NotRequired[LogGroupName]
The name of the log group.
metric_filter_count
instance-attribute
¶
metric_filter_count: NotRequired[FilterCount]
The number of metric filters.
stored_bytes
instance-attribute
¶
stored_bytes: NotRequired[StoredBytes]
The number of bytes stored.