CfnResiliencyPolicyPropsMixin

class aws_cdk.mixins_preview.aws_resiliencehub.mixins.CfnResiliencyPolicyPropsMixin(props, *, strategy=None)

Bases: Mixin

Defines a resiliency policy.

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 .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-resiliencehub-resiliencypolicy.html

CloudformationResource:

AWS::ResilienceHub::ResiliencyPolicy

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_resiliencehub import mixins as resiliencehub_mixins

cfn_resiliency_policy_props_mixin = resiliencehub_mixins.CfnResiliencyPolicyPropsMixin(resiliencehub_mixins.CfnResiliencyPolicyMixinProps(
    data_location_constraint="dataLocationConstraint",
    policy={
        "policy_key": resiliencehub_mixins.CfnResiliencyPolicyPropsMixin.FailurePolicyProperty(
            rpo_in_secs=123,
            rto_in_secs=123
        )
    },
    policy_description="policyDescription",
    policy_name="policyName",
    tags={
        "tags_key": "tags"
    },
    tier="tier"
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::ResilienceHub::ResiliencyPolicy.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['dataLocationConstraint', 'policy', 'policyDescription', 'policyName', 'tags', 'tier']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

FailurePolicyProperty

class CfnResiliencyPolicyPropsMixin.FailurePolicyProperty(*, rpo_in_secs=None, rto_in_secs=None)

Bases: object

Defines a failure policy.

Parameters:
  • rpo_in_secs (Union[int, float, None]) – Recovery Point Objective (RPO) in seconds.

  • rto_in_secs (Union[int, float, None]) – Recovery Time Objective (RTO) in seconds.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehub-resiliencypolicy-failurepolicy.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_resiliencehub import mixins as resiliencehub_mixins

failure_policy_property = resiliencehub_mixins.CfnResiliencyPolicyPropsMixin.FailurePolicyProperty(
    rpo_in_secs=123,
    rto_in_secs=123
)

Attributes

rpo_in_secs

Recovery Point Objective (RPO) in seconds.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehub-resiliencypolicy-failurepolicy.html#cfn-resiliencehub-resiliencypolicy-failurepolicy-rpoinsecs

rto_in_secs

Recovery Time Objective (RTO) in seconds.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehub-resiliencypolicy-failurepolicy.html#cfn-resiliencehub-resiliencypolicy-failurepolicy-rtoinsecs