CfnReplicationConfigurationTemplatePropsMixin

class aws_cdk.cfn_property_mixins.aws_drs.CfnReplicationConfigurationTemplatePropsMixin(props, *, strategy=None)

Bases: Mixin

A replication configuration template for AWS Elastic Disaster Recovery Service.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-drs-replicationconfigurationtemplate.html

CloudformationResource:

AWS::DRS::ReplicationConfigurationTemplate

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_drs as drs
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_replication_configuration_template_props_mixin = drs.CfnReplicationConfigurationTemplatePropsMixin(drs.CfnReplicationConfigurationTemplateMixinProps(
    associate_default_security_group=False,
    auto_replicate_new_disks=False,
    bandwidth_throttling=123,
    create_public_ip=False,
    data_plane_routing="dataPlaneRouting",
    default_large_staging_disk_type="defaultLargeStagingDiskType",
    ebs_encryption="ebsEncryption",
    ebs_encryption_key_arn="ebsEncryptionKeyArn",
    internet_protocol="internetProtocol",
    pit_policy=[drs.CfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty(
        enabled=False,
        interval=123,
        retention_duration=123,
        rule_id=123,
        units="units"
    )],
    replication_server_instance_type="replicationServerInstanceType",
    replication_servers_security_groups_i_ds=["replicationServersSecurityGroupsIDs"],
    staging_area_subnet_id="stagingAreaSubnetId",
    staging_area_tags={
        "staging_area_tags_key": "stagingAreaTags"
    },
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )],
    use_dedicated_replication_server=False
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::DRS::ReplicationConfigurationTemplate.

Parameters:

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 = ['associateDefaultSecurityGroup', 'autoReplicateNewDisks', 'bandwidthThrottling', 'createPublicIp', 'dataPlaneRouting', 'defaultLargeStagingDiskType', 'ebsEncryption', 'ebsEncryptionKeyArn', 'internetProtocol', 'pitPolicy', 'replicationServerInstanceType', 'replicationServersSecurityGroupsIDs', 'stagingAreaSubnetId', 'stagingAreaTags', 'tags', 'useDedicatedReplicationServer']

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.

PITPolicyRuleProperty

class CfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty(*, enabled=None, interval=None, retention_duration=None, rule_id=None, units=None)

Bases: object

Parameters:
  • enabled (Union[bool, IResolvable, None]) – Whether this rule is enabled or not.

  • interval (Union[int, float, None]) – How often, in the chosen units, a snapshot should be taken.

  • retention_duration (Union[int, float, None]) – The duration to retain a snapshot for, in the chosen units.

  • rule_id (Union[int, float, None]) – The ID of the rule.

  • units (Optional[str]) – The units used to measure the interval and retentionDuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-drs-replicationconfigurationtemplate-pitpolicyrule.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_drs as drs

p_it_policy_rule_property = drs.CfnReplicationConfigurationTemplatePropsMixin.PITPolicyRuleProperty(
    enabled=False,
    interval=123,
    retention_duration=123,
    rule_id=123,
    units="units"
)

Attributes

enabled

Whether this rule is enabled or not.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-drs-replicationconfigurationtemplate-pitpolicyrule.html#cfn-drs-replicationconfigurationtemplate-pitpolicyrule-enabled

interval

How often, in the chosen units, a snapshot should be taken.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-drs-replicationconfigurationtemplate-pitpolicyrule.html#cfn-drs-replicationconfigurationtemplate-pitpolicyrule-interval

retention_duration

The duration to retain a snapshot for, in the chosen units.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-drs-replicationconfigurationtemplate-pitpolicyrule.html#cfn-drs-replicationconfigurationtemplate-pitpolicyrule-retentionduration

rule_id

The ID of the rule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-drs-replicationconfigurationtemplate-pitpolicyrule.html#cfn-drs-replicationconfigurationtemplate-pitpolicyrule-ruleid

units

The units used to measure the interval and retentionDuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-drs-replicationconfigurationtemplate-pitpolicyrule.html#cfn-drs-replicationconfigurationtemplate-pitpolicyrule-units