CfnReplicationConfigurationTemplatePropsMixin
- class aws_cdk.cfn_property_mixins.aws_drs.CfnReplicationConfigurationTemplatePropsMixin(props, *, strategy=None)
Bases:
MixinA replication configuration template for AWS Elastic Disaster Recovery Service.
- See:
- 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:
props (
Union[CfnReplicationConfigurationTemplateMixinProps,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 = ['associateDefaultSecurityGroup', 'autoReplicateNewDisks', 'bandwidthThrottling', 'createPublicIp', 'dataPlaneRouting', 'defaultLargeStagingDiskType', 'ebsEncryption', 'ebsEncryptionKeyArn', 'internetProtocol', 'pitPolicy', 'replicationServerInstanceType', 'replicationServersSecurityGroupsIDs', 'stagingAreaSubnetId', 'stagingAreaTags', 'tags', 'useDedicatedReplicationServer']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
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:
- 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.
- interval
How often, in the chosen units, a snapshot should be taken.
- retention_duration
The duration to retain a snapshot for, in the chosen units.
- rule_id
The ID of the rule.
- units
The units used to measure the interval and retentionDuration.