Class CfnResiliencyPolicy
Defines a resiliency policy.
Inherited Members
Namespace: Amazon.CDK.AWS.ResilienceHub
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnResiliencyPolicy : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnResiliencyPolicy
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
AWS Resilience Hub allows you to provide a value of zero for rtoInSecs
and rpoInSecs
of your resiliency policy. But, while assessing your application, the lowest possible assessment result is near zero. Hence, if you provide value zero for rtoInSecs
and rpoInSecs
, the estimated workload RTO and estimated workload RPO result will be near zero and the Compliance status for your application will be set to Policy breached .
CloudformationResource: AWS::ResilienceHub::ResiliencyPolicy
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ResilienceHub;
var cfnResiliencyPolicy = new CfnResiliencyPolicy(this, "MyCfnResiliencyPolicy", new CfnResiliencyPolicyProps {
Policy = new Dictionary<string, object> {
{ "policyKey", new FailurePolicyProperty {
RpoInSecs = 123,
RtoInSecs = 123
} }
},
PolicyName = "policyName",
Tier = "tier",
// the properties below are optional
DataLocationConstraint = "dataLocationConstraint",
PolicyDescription = "policyDescription",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
});
Synopsis
Constructors
CfnResiliencyPolicy(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnResiliencyPolicy(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnResiliencyPolicy(Construct, String, ICfnResiliencyPolicyProps) |
Properties
AttrPolicyArn | Amazon Resource Name (ARN) of the resiliency policy. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
DataLocationConstraint | Specifies a high-level geographical location constraint for where your resilience policy data can be stored. |
Policy | The resiliency policy. |
PolicyDescription | The description for the policy. |
PolicyName | The name of the policy. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | Tags assigned to the resource. |
Tier | The tier for this resiliency policy, ranging from the highest severity ( |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnResiliencyPolicy(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnResiliencyPolicy(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnResiliencyPolicy(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnResiliencyPolicy(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnResiliencyPolicy(Construct, String, ICfnResiliencyPolicyProps)
public CfnResiliencyPolicy(Construct scope, string id, ICfnResiliencyPolicyProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnResiliencyPolicyProps
Resource properties.
Properties
AttrPolicyArn
Amazon Resource Name (ARN) of the resiliency policy.
public virtual string AttrPolicyArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: PolicyArn
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
DataLocationConstraint
Specifies a high-level geographical location constraint for where your resilience policy data can be stored.
public virtual string DataLocationConstraint { get; set; }
Property Value
System.String
Policy
The resiliency policy.
public virtual object Policy { get; set; }
Property Value
System.Object
PolicyDescription
The description for the policy.
public virtual string PolicyDescription { get; set; }
Property Value
System.String
PolicyName
The name of the policy.
public virtual string PolicyName { get; set; }
Property Value
System.String
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
Tags assigned to the resource.
public virtual IDictionary<string, string> TagsRaw { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Tier
The tier for this resiliency policy, ranging from the highest severity ( MissionCritical
) to lowest ( NonCritical
).
public virtual string Tier { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>