Optional ReadonlydataOptional ReadonlydeletionIndicates whether deletion protection is enabled for this log group. When enabled, deletion protection blocks all deletion operations until it is explicitly disabled.
Optional ReadonlyencryptionThe KMS customer managed key to encrypt the log group with.
Optional ReadonlyfieldField Index Policies for this log group.
Optional ReadonlylogThe class of the log group. Possible values are: STANDARD, INFREQUENT_ACCESS and DELIVERY.
INFREQUENT_ACCESS class provides customers a cost-effective way to consolidate logs which supports querying using Logs Insights. The logGroupClass property cannot be changed once the log group is created.
DELIVERY class is used to deliver logs to a destination such as Amazon S3 or Amazon
Data Firehose (for example, Lambda vended logs). A Delivery log group forwards events
to a destination instead of storing them, so it does not support retention,
dataProtectionPolicy, or fieldIndexPolicies; setting any of these together with
LogGroupClass.DELIVERY results in a synthesis-time error.
Optional ReadonlylogName of the log group.
Optional ReadonlyremovalDetermine the removal policy of this log group.
Normally you want to retain the log group so you can diagnose issues from logs even after a deployment that no longer includes the log group. In that case, use the normal date-based retention policy to age out your logs.
Optional ReadonlyretentionHow long, in days, the log contents will be retained.
To retain all logs, set this value to RetentionDays.INFINITE.
OptionaltagsOptional tags to apply to the log group
Data Protection Policy for this log group.