Class CfnResiliencyPolicy.Builder

java.lang.Object
software.amazon.awscdk.services.resiliencehub.CfnResiliencyPolicy.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResiliencyPolicy>
Enclosing class:
CfnResiliencyPolicy

@Stability(Stable) public static final class CfnResiliencyPolicy.Builder extends Object implements software.amazon.jsii.Builder<CfnResiliencyPolicy>
A fluent builder for CfnResiliencyPolicy.
  • Method Details

    • create

      @Stability(Stable) public static CfnResiliencyPolicy.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 CfnResiliencyPolicy.Builder.
    • policy

      @Stability(Stable) public CfnResiliencyPolicy.Builder policy(IResolvable policy)
      The resiliency policy.

      Parameters:
      policy - The resiliency policy. This parameter is required.
      Returns:
      this
    • policy

      @Stability(Stable) public CfnResiliencyPolicy.Builder policy(Map<String,? extends Object> policy)
      The resiliency policy.

      Parameters:
      policy - The resiliency policy. This parameter is required.
      Returns:
      this
    • policyName

      @Stability(Stable) public CfnResiliencyPolicy.Builder policyName(String policyName)
      The name of the policy.

      Parameters:
      policyName - The name of the policy. This parameter is required.
      Returns:
      this
    • tier

      @Stability(Stable) public CfnResiliencyPolicy.Builder tier(String tier)
      The tier for this resiliency policy, ranging from the highest severity ( MissionCritical ) to lowest ( NonCritical ).

      Parameters:
      tier - The tier for this resiliency policy, ranging from the highest severity ( MissionCritical ) to lowest ( NonCritical ). This parameter is required.
      Returns:
      this
    • dataLocationConstraint

      @Stability(Stable) public CfnResiliencyPolicy.Builder dataLocationConstraint(String dataLocationConstraint)
      Specifies a high-level geographical location constraint for where your resilience policy data can be stored.

      Parameters:
      dataLocationConstraint - Specifies a high-level geographical location constraint for where your resilience policy data can be stored. This parameter is required.
      Returns:
      this
    • policyDescription

      @Stability(Stable) public CfnResiliencyPolicy.Builder policyDescription(String policyDescription)
      The description for the policy.

      Parameters:
      policyDescription - The description for the policy. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnResiliencyPolicy.Builder tags(Map<String,String> tags)
      The tags assigned to the resource.

      A tag is a label that you assign to an AWS resource. Each tag consists of a key/value pair.

      Parameters:
      tags - The tags assigned to the resource. This parameter is required.
      Returns:
      this
    • build

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