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.Builder
description
(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
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- 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
-
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
-
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
-
policyDetails
The configuration details of the lifecycle policy.- Parameters:
policyDetails
- The configuration details of the lifecycle policy. This parameter is required.- Returns:
this
-
state
The activation state of the lifecycle policy.- Parameters:
state
- The activation state of the lifecycle policy. This parameter is required.- Returns:
this
-
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
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy>
- Returns:
- a newly built instance of
CfnLifecyclePolicy
.
-