Class CfnLifecyclePolicy.Builder
java.lang.Object
software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy>
- Enclosing class:
CfnLifecyclePolicy
@Stability(Stable)
public static final class CfnLifecyclePolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy>
A fluent builder for
CfnLifecyclePolicy.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnLifecyclePolicy.Builderdescription(String description) A description of the lifecycle policy.executionRoleArn(String executionRoleArn) The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.policyDetails(IResolvable policyDetails) The configuration details of the lifecycle policy.policyDetails(CfnLifecyclePolicy.PolicyDetailsProperty policyDetails) The configuration details of the lifecycle policy.The activation state of the lifecycle policy.The tags to apply to the lifecycle policy during creation.
-
Method Details
-
create
@Stability(Stable) public static CfnLifecyclePolicy.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnLifecyclePolicy.Builder.
-
description
A description of the lifecycle policy.The characters ^[0-9A-Za-z _-]+$ are supported.
- Parameters:
description- A description of the lifecycle policy. This parameter is required.- Returns:
this- See Also:
-
executionRoleArn
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.- Parameters:
executionRoleArn- The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy. This parameter is required.- Returns:
this- See Also:
-
policyDetails
The configuration details of the lifecycle policy.- Parameters:
policyDetails- The configuration details of the lifecycle policy. This parameter is required.- Returns:
this- See Also:
-
policyDetails
@Stability(Stable) public CfnLifecyclePolicy.Builder policyDetails(CfnLifecyclePolicy.PolicyDetailsProperty policyDetails) The configuration details of the lifecycle policy.- Parameters:
policyDetails- The configuration details of the lifecycle policy. This parameter is required.- Returns:
this- See Also:
-
state
The activation state of the lifecycle policy.- Parameters:
state- The activation state of the lifecycle policy. This parameter is required.- Returns:
this- See Also:
-
tags
The tags to apply to the lifecycle policy during creation.- Parameters:
tags- The tags to apply to the lifecycle policy during creation. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy>- Returns:
- a newly built instance of
CfnLifecyclePolicy.
-