Class CfnResiliencyPolicy
A CloudFormation AWS::ResilienceHub::ResiliencyPolicy
.
Inherited Members
Namespace: Amazon.CDK.AWS.ResilienceHub
Assembly: Amazon.CDK.AWS.ResilienceHub.dll
Syntax (csharp)
public class CfnResiliencyPolicy : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnResiliencyPolicy
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Defines a resiliency policy.
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(Construct, String, ICfnResiliencyPolicyProps) | Create a new |
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 |
Properties
AttrPolicyArn | The 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 | The 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(Construct, String, ICfnResiliencyPolicyProps)
Create a new AWS::ResilienceHub::ResiliencyPolicy
.
public CfnResiliencyPolicy(Construct scope, string id, ICfnResiliencyPolicyProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnResiliencyPolicyProps
- resource properties.
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
Properties
AttrPolicyArn
The 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
Remarks
Policy
The resiliency policy.
public virtual object Policy { get; set; }
Property Value
System.Object
Remarks
PolicyDescription
The description for the policy.
public virtual string PolicyDescription { get; set; }
Property Value
System.String
Remarks
PolicyName
The name of the policy.
public virtual string PolicyName { get; set; }
Property Value
System.String
Remarks
Tags
The tags assigned to the resource.
public virtual TagManager Tags { get; }
Property Value
Remarks
A tag is a label that you assign to an AWS resource. Each tag consists of a key/value pair.
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
Remarks
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>