@Stability(value=Stable) public static final class LogRetention.Builder extends Object implements software.amazon.jsii.Builder<LogRetention>
LogRetention.| Modifier and Type | Method and Description |
|---|---|
LogRetention |
build() |
static LogRetention.Builder |
create(software.constructs.Construct scope,
String id) |
LogRetention.Builder |
logGroupName(String logGroupName)
The log group name.
|
LogRetention.Builder |
logGroupRegion(String logGroupRegion)
The region where the log group should be created.
|
LogRetention.Builder |
logRetentionRetryOptions(LogRetentionRetryOptions logRetentionRetryOptions)
Retry options for all AWS API calls.
|
LogRetention.Builder |
removalPolicy(RemovalPolicy removalPolicy)
The removalPolicy for the log group when the stack is deleted.
|
LogRetention.Builder |
retention(RetentionDays retention)
The number of days log events are kept in CloudWatch Logs.
|
LogRetention.Builder |
role(IRole role)
The IAM role for the Lambda function associated with the custom resource.
|
@Stability(value=Stable) public static LogRetention.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.LogRetention.Builder.@Stability(value=Stable) public LogRetention.Builder logGroupName(String logGroupName)
logGroupName - The log group name. This parameter is required.this@Stability(value=Stable) public LogRetention.Builder retention(RetentionDays retention)
retention - The number of days log events are kept in CloudWatch Logs. This parameter is required.this@Stability(value=Stable) public LogRetention.Builder logGroupRegion(String logGroupRegion)
Default: - same region as the stack
logGroupRegion - The region where the log group should be created. This parameter is required.this@Stability(value=Stable) public LogRetention.Builder logRetentionRetryOptions(LogRetentionRetryOptions logRetentionRetryOptions)
Default: - AWS SDK default retry options
logRetentionRetryOptions - Retry options for all AWS API calls. This parameter is required.this@Stability(value=Stable) public LogRetention.Builder removalPolicy(RemovalPolicy removalPolicy)
Default: RemovalPolicy.RETAIN
removalPolicy - The removalPolicy for the log group when the stack is deleted. This parameter is required.this@Stability(value=Stable) public LogRetention.Builder role(IRole role)
Default: - A new role is created
role - The IAM role for the Lambda function associated with the custom resource. This parameter is required.this@Stability(value=Stable) public LogRetention build()
build in interface software.amazon.jsii.Builder<LogRetention>Copyright © 2022. All rights reserved.