CfnPolicyPropsMixin

class aws_cdk.cfn_property_mixins.aws_resiliencehubv2.CfnPolicyPropsMixin(props, *, strategy=None)

Bases: Mixin

Creates a resilience policy that defines availability and disaster recovery requirements.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-resiliencehubv2-policy.html

CloudformationResource:

AWS::ResilienceHubV2::Policy

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.cfn_property_mixins import aws_resiliencehubv2 as resiliencehubv2
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_policy_props_mixin = resiliencehubv2.CfnPolicyPropsMixin(resiliencehubv2.CfnPolicyMixinProps(
    availability_slo=resiliencehubv2.CfnPolicyPropsMixin.AvailabilitySloProperty(
        target=123
    ),
    data_recovery=resiliencehubv2.CfnPolicyPropsMixin.DataRecoveryTargetsProperty(
        time_between_backups_in_minutes=123
    ),
    description="description",
    kms_key_id="kmsKeyId",
    multi_az=resiliencehubv2.CfnPolicyPropsMixin.MultiAzTargetsProperty(
        disaster_recovery_approach="disasterRecoveryApproach",
        rpo_in_minutes=123,
        rto_in_minutes=123
    ),
    multi_region=resiliencehubv2.CfnPolicyPropsMixin.MultiRegionTargetsProperty(
        disaster_recovery_approach="disasterRecoveryApproach",
        rpo_in_minutes=123,
        rto_in_minutes=123
    ),
    name="name",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::ResilienceHubV2::Policy.

Parameters:
  • props (Union[CfnPolicyMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['availabilitySlo', 'dataRecovery', 'description', 'kmsKeyId', 'multiAz', 'multiRegion', 'name', 'tags']

Static Methods

classmethod is_mixin(x)

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.

AvailabilitySloProperty

class CfnPolicyPropsMixin.AvailabilitySloProperty(*, target=None)

Bases: object

Parameters:

target (Union[int, float, None]) – Availability target percentage.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehubv2-policy-availabilityslo.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.cfn_property_mixins import aws_resiliencehubv2 as resiliencehubv2

availability_slo_property = resiliencehubv2.CfnPolicyPropsMixin.AvailabilitySloProperty(
    target=123
)

Attributes

target

Availability target percentage.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehubv2-policy-availabilityslo.html#cfn-resiliencehubv2-policy-availabilityslo-target

DataRecoveryTargetsProperty

class CfnPolicyPropsMixin.DataRecoveryTargetsProperty(*, time_between_backups_in_minutes=None)

Bases: object

Parameters:

time_between_backups_in_minutes (Union[int, float, None]) – Time between backups in minutes.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehubv2-policy-datarecoverytargets.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.cfn_property_mixins import aws_resiliencehubv2 as resiliencehubv2

data_recovery_targets_property = resiliencehubv2.CfnPolicyPropsMixin.DataRecoveryTargetsProperty(
    time_between_backups_in_minutes=123
)

Attributes

time_between_backups_in_minutes

Time between backups in minutes.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehubv2-policy-datarecoverytargets.html#cfn-resiliencehubv2-policy-datarecoverytargets-timebetweenbackupsinminutes

MultiAzTargetsProperty

class CfnPolicyPropsMixin.MultiAzTargetsProperty(*, disaster_recovery_approach=None, rpo_in_minutes=None, rto_in_minutes=None)

Bases: object

Parameters:
  • disaster_recovery_approach (Optional[str]) – Multi-AZ disaster recovery approach.

  • rpo_in_minutes (Union[int, float, None]) – Recovery Point Objective in minutes.

  • rto_in_minutes (Union[int, float, None]) – Recovery Time Objective in minutes.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehubv2-policy-multiaztargets.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.cfn_property_mixins import aws_resiliencehubv2 as resiliencehubv2

multi_az_targets_property = resiliencehubv2.CfnPolicyPropsMixin.MultiAzTargetsProperty(
    disaster_recovery_approach="disasterRecoveryApproach",
    rpo_in_minutes=123,
    rto_in_minutes=123
)

Attributes

disaster_recovery_approach

Multi-AZ disaster recovery approach.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehubv2-policy-multiaztargets.html#cfn-resiliencehubv2-policy-multiaztargets-disasterrecoveryapproach

rpo_in_minutes

Recovery Point Objective in minutes.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehubv2-policy-multiaztargets.html#cfn-resiliencehubv2-policy-multiaztargets-rpoinminutes

rto_in_minutes

Recovery Time Objective in minutes.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehubv2-policy-multiaztargets.html#cfn-resiliencehubv2-policy-multiaztargets-rtoinminutes

MultiRegionTargetsProperty

class CfnPolicyPropsMixin.MultiRegionTargetsProperty(*, disaster_recovery_approach=None, rpo_in_minutes=None, rto_in_minutes=None)

Bases: object

Parameters:
  • disaster_recovery_approach (Optional[str]) – Multi-Region disaster recovery approach.

  • rpo_in_minutes (Union[int, float, None]) – Recovery Point Objective in minutes.

  • rto_in_minutes (Union[int, float, None]) – Recovery Time Objective in minutes.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehubv2-policy-multiregiontargets.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.cfn_property_mixins import aws_resiliencehubv2 as resiliencehubv2

multi_region_targets_property = resiliencehubv2.CfnPolicyPropsMixin.MultiRegionTargetsProperty(
    disaster_recovery_approach="disasterRecoveryApproach",
    rpo_in_minutes=123,
    rto_in_minutes=123
)

Attributes

disaster_recovery_approach

Multi-Region disaster recovery approach.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehubv2-policy-multiregiontargets.html#cfn-resiliencehubv2-policy-multiregiontargets-disasterrecoveryapproach

rpo_in_minutes

Recovery Point Objective in minutes.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehubv2-policy-multiregiontargets.html#cfn-resiliencehubv2-policy-multiregiontargets-rpoinminutes

rto_in_minutes

Recovery Time Objective in minutes.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehubv2-policy-multiregiontargets.html#cfn-resiliencehubv2-policy-multiregiontargets-rtoinminutes