@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-28T21:34:23.401Z") @Deprecated public class LogRetention extends LogRetention
The log group is created if it doesn't already exist. The policy
is removed when retentionDays
is undefined
or equal to Infinity
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.iam.*; import software.amazon.awscdk.services.lambda.*; import software.amazon.awscdk.services.logs.*; import software.amazon.awscdk.core.*; Role role; LogRetention logRetention = LogRetention.Builder.create(this, "MyLogRetention") .logGroupName("logGroupName") .retention(RetentionDays.ONE_DAY) // the properties below are optional .logGroupRegion("logGroupRegion") .logRetentionRetryOptions(LogRetentionRetryOptions.builder() .base(Duration.minutes(30)) .maxRetries(123) .build()) .role(role) .build();
Modifier and Type | Class and Description |
---|---|
static class |
LogRetention.Builder
Deprecated.
|
IConstruct.Jsii$Default, IConstruct.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
LogRetention(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
Deprecated.
|
protected |
LogRetention(software.amazon.jsii.JsiiObjectRef objRef)
Deprecated.
|
|
LogRetention(software.constructs.Construct scope,
java.lang.String id,
LogRetentionProps props)
Deprecated.
|
getLogGroupArn
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
protected LogRetention(software.amazon.jsii.JsiiObjectRef objRef)
protected LogRetention(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Deprecated public LogRetention(software.constructs.Construct scope, java.lang.String id, LogRetentionProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.