LogGroupState class

Input properties used for looking up and filtering LogGroup resources.

Constructors

LogGroupState({Input<String?>? arn, Input<bool?>? deletionProtectionEnabled, Input<String?>? kmsKeyId, Input<String?>? logGroupClass, Input<String?>? name, Input<String?>? namePrefix, Input<String?>? region, Input<int?>? retentionInDays, Input<bool?>? skipDestroy, Input<Map<String, String>?>? tags, Input<Map<String, String>?>? tagsAll})
Creates a new LogGroupState. arn ARN specifying the 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. deletionProtectionEnabled Boolean to indicate whether deletion protection is enabled. Defaults to false. Once set, switching to false requires explicitly specifying false rather than removing this argument. kmsKeyId The ARN of the KMS Key to use when encrypting log data. Please note, after the AWS KMS CMK is disassociated from the log group, logGroupClass Specified the log class of the log group. Possible values are: STANDARD, INFREQUENT_ACCESS, or DELIVERY. name The name of the log group. If omitted, this provider will assign a random, unique name. namePrefix Creates a unique name beginning with the specified prefix. Conflicts with name. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. retentionInDays Specifies the number of days skipDestroy Set to true if you do not wish the log group (and any logs it may contain) to be deleted at destroy time, and instead just remove the log group from the state. tags A map of tags to assign to the resource. .If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level. tagsAll A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
const
LogGroupState.fromMap(Map<String, dynamic> map)
factory

Properties

arn → Input<String?>?
ARN specifying the 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.
final
deletionProtectionEnabled → Input<bool?>?
Boolean to indicate whether deletion protection is enabled. Defaults to false. Once set, switching to false requires explicitly specifying false rather than removing this argument.
final
hashCode int
The hash code for this object.
no setterinherited
kmsKeyId → Input<String?>?
The ARN of the KMS Key to use when encrypting log data. Please note, after the AWS KMS CMK is disassociated from the log group, AWS CloudWatch Logs stops encrypting newly ingested data for the log group. All previously ingested data remains encrypted, and AWS CloudWatch Logs requires permissions for the CMK whenever the encrypted data is requested.
final
logGroupClass → Input<String?>?
Specified the log class of the log group. Possible values are: STANDARD, INFREQUENT_ACCESS, or DELIVERY.
final
name → Input<String?>?
The name of the log group. If omitted, this provider will assign a random, unique name.
final
namePrefix → Input<String?>?
Creates a unique name beginning with the specified prefix. Conflicts with name.
final
region → Input<String?>?
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
retentionInDays → Input<int?>?
Specifies the number of days you want to retain log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288, 3653, and 0. If you select 0, the events in the log group are always retained and never expire. If logGroupClass is set to DELIVERY, this argument is ignored and retentionInDays is forcibly set to 2.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skipDestroy → Input<bool?>?
Set to true if you do not wish the log group (and any logs it may contain) to be deleted at destroy time, and instead just remove the log group from the state.
final
tags → Input<Map<String, String>?>?
A map of tags to assign to the resource. .If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
final
tagsAll → Input<Map<String, String>?>?
A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited