LogGroup class
Defines the log group configuration for the CloudWatch Log Group to send logs to.
Constructors
-
LogGroup({Input<
String?> ? kmsKeyId, Input<String?> ? namePrefix, Input<int?> ? retentionInDays, Input<Map< ? tags})String, String> ?> -
Creates a new LogGroup.
kmsKeyIdThe ARN of the KMS Key to use when encrypting log data.namePrefixCreates a unique name beginning with the specified prefixretentionInDaysSpecifies 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, 1827, 3653, and 0. If you select 0, the events in the log group are always retained and never expire.tagsA map of tags to assign to the resource. If configured with provider defaultTags present, tags with matching keys will overwrite those defined at the provider-level.const -
LogGroup.fromMap(Map<
String, dynamic> map) -
factory
Properties
- 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.
final
-
namePrefix
→ Input<
String?> ? -
Creates a unique name beginning with the specified prefix
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, 1827, 3653, and 0. If you select 0, the events in the log group are always retained and never expire.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
A map of tags to assign to the resource. If configured with provider defaultTags 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