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 Details

    • create

      @Stability(Stable) public static CfnLifecyclePolicy.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnLifecyclePolicy.Builder.
    • description

      @Stability(Stable) public CfnLifecyclePolicy.Builder description(String 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

      @Stability(Stable) public CfnLifecyclePolicy.Builder executionRoleArn(String 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

      @Stability(Stable) public CfnLifecyclePolicy.Builder policyDetails(IResolvable policyDetails)
      The configuration details of the lifecycle policy.

      Parameters:
      policyDetails - The configuration details of the lifecycle policy. This parameter is required.
      Returns:
      this
    • state

      @Stability(Stable) public CfnLifecyclePolicy.Builder state(String state)
      The activation state of the lifecycle policy.

      Parameters:
      state - The activation state of the lifecycle policy. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnLifecyclePolicy.Builder tags(List<? extends CfnTag> 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

      @Stability(Stable) public CfnLifecyclePolicy build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnLifecyclePolicy>
      Returns:
      a newly built instance of CfnLifecyclePolicy.