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.Tags assigned to the resource.The tier for this resiliency policy, ranging from the highest severity (MissionCritical
) to lowest (NonCritical
).
-
Method Details
-
create
@Stability(Stable) public static CfnResiliencyPolicy.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
CfnResiliencyPolicy.Builder
.
-
policy
The resiliency policy.- Parameters:
policy
- The resiliency policy. This parameter is required.- Returns:
this
- See Also:
-
policy
The resiliency policy.- Parameters:
policy
- The resiliency policy. This parameter is required.- Returns:
this
- See Also:
-
policyName
The name of the policy.- Parameters:
policyName
- The name of the policy. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
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
- See Also:
-
policyDescription
The description for the policy.- Parameters:
policyDescription
- The description for the policy. This parameter is required.- Returns:
this
- See Also:
-
tags
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
- Tags assigned to the resource. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResiliencyPolicy>
- Returns:
- a newly built instance of
CfnResiliencyPolicy
.
-