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 Summary
Modifier and TypeMethodDescriptionbuild()
static CfnResiliencyPolicy.Builder
dataLocationConstraint
(String dataLocationConstraint) Specifies a high-level geographical location constraint for where your resilience policy data can be stored.The resiliency policy.policy
(IResolvable policy) The resiliency policy.policyDescription
(String policyDescription) The description for the policy.policyName
(String policyName) The name of the policy.The tags assigned to the resource.The tier for this resiliency policy, ranging from the highest severity (MissionCritical
) to lowest (NonCritical
).
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnResiliencyPolicy.Builder
.
-
policy
The resiliency policy.- Parameters:
policy
- The resiliency policy. This parameter is required.- Returns:
this
-
policy
The resiliency policy.- Parameters:
policy
- The resiliency policy. This parameter is required.- Returns:
this
-
policyName
The name of the policy.- Parameters:
policyName
- The name of the policy. This parameter is required.- Returns:
this
-
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
The description for the policy.- Parameters:
policyDescription
- The description for the policy. This parameter is required.- Returns:
this
-
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResiliencyPolicy>
- Returns:
- a newly built instance of
CfnResiliencyPolicy
.
-