CfnNetworkMigrationDefinitionPropsMixin

class aws_cdk.cfn_property_mixins.aws_mgn.CfnNetworkMigrationDefinitionPropsMixin(props, *, strategy=None)

Bases: Mixin

Resource schema for AWS::MGN::NetworkMigrationDefinition.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mgn-networkmigrationdefinition.html

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:

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 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.

SourceConfigurationProperty

class CfnNetworkMigrationDefinitionPropsMixin.SourceConfigurationProperty(*, source_environment=None, source_s3_configuration=None)

Bases: object

Configuration 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mgn-networkmigrationdefinition-sourceconfiguration.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_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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mgn-networkmigrationdefinition-sourceconfiguration.html#cfn-mgn-networkmigrationdefinition-sourceconfiguration-sourceenvironment

source_s3_configuration

S3 configuration for source network data.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mgn-networkmigrationdefinition-sourceconfiguration.html#cfn-mgn-networkmigrationdefinition-sourceconfiguration-sources3configuration

SourceS3ConfigurationProperty

class CfnNetworkMigrationDefinitionPropsMixin.SourceS3ConfigurationProperty(*, s3_bucket=None, s3_bucket_owner=None, s3_key=None)

Bases: object

S3 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mgn-networkmigrationdefinition-sources3configuration.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_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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mgn-networkmigrationdefinition-sources3configuration.html#cfn-mgn-networkmigrationdefinition-sources3configuration-s3bucket

s3_bucket_owner

The AWS account ID of the S3 bucket owner.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mgn-networkmigrationdefinition-sources3configuration.html#cfn-mgn-networkmigrationdefinition-sources3configuration-s3bucketowner

s3_key

The S3 key (path) for the source data.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mgn-networkmigrationdefinition-sources3configuration.html#cfn-mgn-networkmigrationdefinition-sources3configuration-s3key

TargetNetworkProperty

class CfnNetworkMigrationDefinitionPropsMixin.TargetNetworkProperty(*, inbound_cidr=None, inspection_cidr=None, outbound_cidr=None, topology=None)

Bases: object

Configuration 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mgn-networkmigrationdefinition-targetnetwork.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_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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mgn-networkmigrationdefinition-targetnetwork.html#cfn-mgn-networkmigrationdefinition-targetnetwork-inboundcidr

inspection_cidr

The CIDR block for inspection traffic in the target network.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mgn-networkmigrationdefinition-targetnetwork.html#cfn-mgn-networkmigrationdefinition-targetnetwork-inspectioncidr

outbound_cidr

The CIDR block for outbound traffic in the target network.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mgn-networkmigrationdefinition-targetnetwork.html#cfn-mgn-networkmigrationdefinition-targetnetwork-outboundcidr

topology

The network topology type for the target environment.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mgn-networkmigrationdefinition-targetnetwork.html#cfn-mgn-networkmigrationdefinition-targetnetwork-topology

TargetS3ConfigurationProperty

class CfnNetworkMigrationDefinitionPropsMixin.TargetS3ConfigurationProperty(*, s3_bucket=None, s3_bucket_owner=None)

Bases: object

S3 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mgn-networkmigrationdefinition-targets3configuration.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_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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mgn-networkmigrationdefinition-targets3configuration.html#cfn-mgn-networkmigrationdefinition-targets3configuration-s3bucket

s3_bucket_owner

The AWS account ID of the S3 bucket owner.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mgn-networkmigrationdefinition-targets3configuration.html#cfn-mgn-networkmigrationdefinition-targets3configuration-s3bucketowner