Package com.pulumi.aws.cloudwatch
Class LogGroupArgs
- java.lang.Object
-
- com.pulumi.resources.InputArgs
-
- com.pulumi.resources.ResourceArgs
-
- com.pulumi.aws.cloudwatch.LogGroupArgs
-
public final class LogGroupArgs extends com.pulumi.resources.ResourceArgs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLogGroupArgs.Builder
-
Field Summary
Fields Modifier and Type Field Description static LogGroupArgsEmpty
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LogGroupArgs.Builderbuilder()static LogGroupArgs.Builderbuilder(LogGroupArgs defaults)java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>deletionProtectionEnabled()java.util.Optional<com.pulumi.core.Output<java.lang.String>>kmsKeyId()java.util.Optional<com.pulumi.core.Output<java.lang.String>>logGroupClass()java.util.Optional<com.pulumi.core.Output<java.lang.String>>name()java.util.Optional<com.pulumi.core.Output<java.lang.String>>namePrefix()java.util.Optional<com.pulumi.core.Output<java.lang.String>>region()java.util.Optional<com.pulumi.core.Output<java.lang.Integer>>retentionInDays()java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>skipDestroy()java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>>tags()
-
-
-
Field Detail
-
Empty
public static final LogGroupArgs Empty
-
-
Method Detail
-
deletionProtectionEnabled
public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> deletionProtectionEnabled()
- Returns:
- 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
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> kmsKeyId()
- Returns:
- 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.
-
logGroupClass
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> logGroupClass()
- Returns:
- Specified the log class of the log group. Possible values are: `STANDARD`, `INFREQUENT_ACCESS`, or `DELIVERY`.
-
name
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> name()
- Returns:
- The name of the log group. If omitted, this provider will assign a random, unique name.
-
namePrefix
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> namePrefix()
- Returns:
- Creates a unique name beginning with the specified prefix. Conflicts with `name`.
-
region
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
retentionInDays
public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> retentionInDays()
- Returns:
- 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.
-
skipDestroy
public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> skipDestroy()
- Returns:
- 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
public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- 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.
-
builder
public static LogGroupArgs.Builder builder()
-
builder
public static LogGroupArgs.Builder builder(LogGroupArgs defaults)
-
-