@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.565Z") @Stability(value=Stable) public class CfnResiliencyPolicy extends CfnResource implements IInspectable
Defines a resiliency policy.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.resiliencehub.*;
CfnResiliencyPolicy cfnResiliencyPolicy = CfnResiliencyPolicy.Builder.create(this, "MyCfnResiliencyPolicy")
.policy(Map.of(
"policyKey", FailurePolicyProperty.builder()
.rpoInSecs(123)
.rtoInSecs(123)
.build()))
.policyName("policyName")
.tier("tier")
// the properties below are optional
.dataLocationConstraint("dataLocationConstraint")
.policyDescription("policyDescription")
.tags(Map.of(
"tagsKey", "tags"))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnResiliencyPolicy.Builder
A fluent builder for
CfnResiliencyPolicy. |
static interface |
CfnResiliencyPolicy.FailurePolicyProperty
Defines a failure policy.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnResiliencyPolicy(software.constructs.Construct scope,
String id,
CfnResiliencyPolicyProps props)
Create a new `AWS::ResilienceHub::ResiliencyPolicy`.
|
protected |
CfnResiliencyPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnResiliencyPolicy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrPolicyArn()
The Amazon Resource Name (ARN) of the resiliency policy.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDataLocationConstraint()
Specifies a high-level geographical location constraint for where your resilience policy data can be stored.
|
Object |
getPolicy()
The resiliency policy.
|
String |
getPolicyDescription()
The description for the policy.
|
String |
getPolicyName()
The name of the policy.
|
TagManager |
getTags()
The tags assigned to the resource.
|
String |
getTier()
The tier for this resiliency policy, ranging from the highest severity ( `MissionCritical` ) to lowest ( `NonCritical` ).
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDataLocationConstraint(String value)
Specifies a high-level geographical location constraint for where your resilience policy data can be stored.
|
void |
setPolicy(IResolvable value)
The resiliency policy.
|
void |
setPolicy(Map<String,Object> value)
The resiliency policy.
|
void |
setPolicyDescription(String value)
The description for the policy.
|
void |
setPolicyName(String value)
The name of the policy.
|
void |
setTier(String value)
The tier for this resiliency policy, ranging from the highest severity ( `MissionCritical` ) to lowest ( `NonCritical` ).
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnResiliencyPolicy(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnResiliencyPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnResiliencyPolicy(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnResiliencyPolicyProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrPolicyArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
A tag is a label that you assign to an AWS resource. Each tag consists of a key/value pair.
@Stability(value=Stable) @NotNull public Object getPolicy()
@Stability(value=Stable)
public void setPolicy(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setPolicy(@NotNull
Map<String,Object> value)
@Stability(value=Stable) @NotNull public String getPolicyName()
@Stability(value=Stable)
public void setPolicyName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getTier()
@Stability(value=Stable)
public void setTier(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getDataLocationConstraint()
@Stability(value=Stable)
public void setDataLocationConstraint(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getPolicyDescription()
@Stability(value=Stable)
public void setPolicyDescription(@Nullable
String value)
Copyright © 2022. All rights reserved.