LogGroup class
The set of arguments for constructing a LogGroup resource.
Constructors
-
LogGroup({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< ? tags})String, String> ?> -
Creates a new LogGroup.
deletionProtectionEnabledBoolean to indicate whether deletion protection is enabled. Defaults tofalse. Once set, switching tofalserequires explicitly specifyingfalserather than removing this argument.kmsKeyIdThe ARN of the KMS Key to use when encrypting log data. Please note, after the AWS KMS CMK is disassociated from the log group,logGroupClassSpecified the log class of the log group. Possible values are:STANDARD,INFREQUENT_ACCESS, orDELIVERY.nameThe name of the log group. If omitted, this provider will assign a random, unique name.namePrefixCreates a unique name beginning with the specified prefix. Conflicts withname.regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.retentionInDaysSpecifies the number of daysskipDestroySet 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.tagsA map of tags to assign to the resource. .If configured with a providerdefaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.const -
LogGroup.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
deletionProtectionEnabled
→ Input<
bool?> ? -
Boolean to indicate whether deletion protection is enabled. Defaults to
false. Once set, switching tofalserequires explicitly specifyingfalserather 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, orDELIVERY.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
logGroupClassis set toDELIVERY, this argument is ignored andretentionInDaysis 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
-
A map of tags to assign to the resource. .If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.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