public static final class CfnLifecyclePolicy.Builder
extends java.lang.Object
CfnLifecyclePolicy
.Modifier and Type | Method and Description |
---|---|
CfnLifecyclePolicy |
build() |
static CfnLifecyclePolicy.Builder |
create(Construct scope,
java.lang.String id) |
CfnLifecyclePolicy.Builder |
description(java.lang.String description)
A description of the lifecycle policy.
|
CfnLifecyclePolicy.Builder |
executionRoleArn(java.lang.String executionRoleArn)
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
|
CfnLifecyclePolicy.Builder |
policyDetails(CfnLifecyclePolicy.PolicyDetailsProperty policyDetails)
The configuration details of the lifecycle policy.
|
CfnLifecyclePolicy.Builder |
policyDetails(IResolvable policyDetails)
The configuration details of the lifecycle policy.
|
CfnLifecyclePolicy.Builder |
state(java.lang.String state)
The activation state of the lifecycle policy.
|
CfnLifecyclePolicy.Builder |
tags(java.util.List<? extends CfnTag> tags)
The tags to apply to the lifecycle policy during creation.
|
public static CfnLifecyclePolicy.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnLifecyclePolicy.ActionProperty.Builder
.public CfnLifecyclePolicy.Builder description(java.lang.String description)
The characters ^[0-9A-Za-z _-]+$ are supported.
description
- A description of the lifecycle policy. This parameter is required.this
public CfnLifecyclePolicy.Builder executionRoleArn(java.lang.String executionRoleArn)
executionRoleArn
- The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy. This parameter is required.this
public CfnLifecyclePolicy.Builder policyDetails(CfnLifecyclePolicy.PolicyDetailsProperty policyDetails)
policyDetails
- The configuration details of the lifecycle policy. This parameter is required.this
public CfnLifecyclePolicy.Builder policyDetails(IResolvable policyDetails)
policyDetails
- The configuration details of the lifecycle policy. This parameter is required.this
public CfnLifecyclePolicy.Builder state(java.lang.String state)
state
- The activation state of the lifecycle policy. This parameter is required.this
public CfnLifecyclePolicy.Builder tags(java.util.List<? extends CfnTag> tags)
tags
- The tags to apply to the lifecycle policy during creation. This parameter is required.this
public CfnLifecyclePolicy build()