CfnNetworkMigrationDefinitionPropsMixin
- class aws_cdk.cfn_property_mixins.aws_mgn.CfnNetworkMigrationDefinitionPropsMixin(props, *, strategy=None)
Bases:
MixinResource schema for AWS::MGN::NetworkMigrationDefinition.
- See:
- CloudformationResource:
AWS::MGN::NetworkMigrationDefinition
- 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_mgn as mgn import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_network_migration_definition_props_mixin = mgn.CfnNetworkMigrationDefinitionPropsMixin(mgn.CfnNetworkMigrationDefinitionMixinProps( description="description", name="name", scope_tags={ "scope_tags_key": "scopeTags" }, source_configurations=[mgn.CfnNetworkMigrationDefinitionPropsMixin.SourceConfigurationProperty( source_environment="sourceEnvironment", source_s3_configuration=mgn.CfnNetworkMigrationDefinitionPropsMixin.SourceS3ConfigurationProperty( s3_bucket="s3Bucket", s3_bucket_owner="s3BucketOwner", s3_key="s3Key" ) )], tags=[cdk.CfnTag( key="key", value="value" )], target_deployment="targetDeployment", target_network=mgn.CfnNetworkMigrationDefinitionPropsMixin.TargetNetworkProperty( inbound_cidr="inboundCidr", inspection_cidr="inspectionCidr", outbound_cidr="outboundCidr", topology="topology" ), target_s3_configuration=mgn.CfnNetworkMigrationDefinitionPropsMixin.TargetS3ConfigurationProperty( s3_bucket="s3Bucket", s3_bucket_owner="s3BucketOwner" ) ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::MGN::NetworkMigrationDefinition.- Parameters:
props (
Union[CfnNetworkMigrationDefinitionMixinProps,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 = ['description', 'name', 'scopeTags', 'sourceConfigurations', 'tags', 'targetDeployment', 'targetNetwork', 'targetS3Configuration']
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.
SourceConfigurationProperty
- class CfnNetworkMigrationDefinitionPropsMixin.SourceConfigurationProperty(*, source_environment=None, source_s3_configuration=None)
Bases:
objectConfiguration for a migration source environment.
- Parameters:
source_environment (
Optional[str]) – The source environment type.source_s3_configuration (
Union[IResolvable,SourceS3ConfigurationProperty,Dict[str,Any],None]) – S3 configuration for source network data.
- 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_mgn as mgn source_configuration_property = mgn.CfnNetworkMigrationDefinitionPropsMixin.SourceConfigurationProperty( source_environment="sourceEnvironment", source_s3_configuration=mgn.CfnNetworkMigrationDefinitionPropsMixin.SourceS3ConfigurationProperty( s3_bucket="s3Bucket", s3_bucket_owner="s3BucketOwner", s3_key="s3Key" ) )
Attributes
- source_environment
The source environment type.
- source_s3_configuration
S3 configuration for source network data.
SourceS3ConfigurationProperty
- class CfnNetworkMigrationDefinitionPropsMixin.SourceS3ConfigurationProperty(*, s3_bucket=None, s3_bucket_owner=None, s3_key=None)
Bases:
objectS3 configuration for source network data.
- Parameters:
s3_bucket (
Optional[str]) – The name of the S3 bucket containing source data.s3_bucket_owner (
Optional[str]) – The AWS account ID of the S3 bucket owner.s3_key (
Optional[str]) – The S3 key (path) for the source data.
- 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_mgn as mgn source_s3_configuration_property = mgn.CfnNetworkMigrationDefinitionPropsMixin.SourceS3ConfigurationProperty( s3_bucket="s3Bucket", s3_bucket_owner="s3BucketOwner", s3_key="s3Key" )
Attributes
- s3_bucket
The name of the S3 bucket containing source data.
- s3_bucket_owner
The AWS account ID of the S3 bucket owner.
- s3_key
The S3 key (path) for the source data.
TargetNetworkProperty
- class CfnNetworkMigrationDefinitionPropsMixin.TargetNetworkProperty(*, inbound_cidr=None, inspection_cidr=None, outbound_cidr=None, topology=None)
Bases:
objectConfiguration for the target network topology and addressing.
- Parameters:
inbound_cidr (
Optional[str]) – The CIDR block for inbound traffic in the target network.inspection_cidr (
Optional[str]) – The CIDR block for inspection traffic in the target network.outbound_cidr (
Optional[str]) – The CIDR block for outbound traffic in the target network.topology (
Optional[str]) – The network topology type for the target environment.
- 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_mgn as mgn target_network_property = mgn.CfnNetworkMigrationDefinitionPropsMixin.TargetNetworkProperty( inbound_cidr="inboundCidr", inspection_cidr="inspectionCidr", outbound_cidr="outboundCidr", topology="topology" )
Attributes
- inbound_cidr
The CIDR block for inbound traffic in the target network.
- inspection_cidr
The CIDR block for inspection traffic in the target network.
- outbound_cidr
The CIDR block for outbound traffic in the target network.
- topology
The network topology type for the target environment.
TargetS3ConfigurationProperty
- class CfnNetworkMigrationDefinitionPropsMixin.TargetS3ConfigurationProperty(*, s3_bucket=None, s3_bucket_owner=None)
Bases:
objectS3 configuration for storing target network artifacts.
- Parameters:
s3_bucket (
Optional[str]) – The name of the S3 bucket for target artifacts.s3_bucket_owner (
Optional[str]) – The AWS account ID of the S3 bucket owner.
- 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_mgn as mgn target_s3_configuration_property = mgn.CfnNetworkMigrationDefinitionPropsMixin.TargetS3ConfigurationProperty( s3_bucket="s3Bucket", s3_bucket_owner="s3BucketOwner" )
Attributes
- s3_bucket
The name of the S3 bucket for target artifacts.
- s3_bucket_owner
The AWS account ID of the S3 bucket owner.