CfnNetworkMigrationDefinitionProps Struct
Properties for defining a CfnNetworkMigrationDefinition.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mgn as mgn } from 'aws-cdk-lib';
const cfnNetworkMigrationDefinitionProps: mgn.CfnNetworkMigrationDefinitionProps = {
name: 'name',
sourceConfigurations: [{
sourceEnvironment: 'sourceEnvironment',
sourceS3Configuration: {
s3Bucket: 's3Bucket',
s3BucketOwner: 's3BucketOwner',
s3Key: 's3Key',
},
}],
targetNetwork: {
topology: 'topology',
// the properties below are optional
inboundCidr: 'inboundCidr',
inspectionCidr: 'inspectionCidr',
outboundCidr: 'outboundCidr',
},
targetS3Configuration: {
s3Bucket: 's3Bucket',
s3BucketOwner: 's3BucketOwner',
},
// the properties below are optional
description: 'description',
scopeTags: {
scopeTagsKey: 'scopeTags',
},
tags: [{
key: 'key',
value: 'value',
}],
targetDeployment: 'targetDeployment',
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mgn as mgn
cfn_network_migration_definition_props = mgn.CfnNetworkMigrationDefinitionProps(
name="name",
source_configurations=[mgn.CfnNetworkMigrationDefinition.SourceConfigurationProperty(
source_environment="sourceEnvironment",
source_s3_configuration=mgn.CfnNetworkMigrationDefinition.SourceS3ConfigurationProperty(
s3_bucket="s3Bucket",
s3_bucket_owner="s3BucketOwner",
s3_key="s3Key"
)
)],
target_network=mgn.CfnNetworkMigrationDefinition.TargetNetworkProperty(
topology="topology",
# the properties below are optional
inbound_cidr="inboundCidr",
inspection_cidr="inspectionCidr",
outbound_cidr="outboundCidr"
),
target_s3_configuration=mgn.CfnNetworkMigrationDefinition.TargetS3ConfigurationProperty(
s3_bucket="s3Bucket",
s3_bucket_owner="s3BucketOwner"
),
# the properties below are optional
description="description",
scope_tags={
"scope_tags_key": "scopeTags"
},
tags=[CfnTag(
key="key",
value="value"
)],
target_deployment="targetDeployment"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.mgn.*;
CfnNetworkMigrationDefinitionProps cfnNetworkMigrationDefinitionProps = CfnNetworkMigrationDefinitionProps.builder()
.name("name")
.sourceConfigurations(List.of(SourceConfigurationProperty.builder()
.sourceEnvironment("sourceEnvironment")
.sourceS3Configuration(SourceS3ConfigurationProperty.builder()
.s3Bucket("s3Bucket")
.s3BucketOwner("s3BucketOwner")
.s3Key("s3Key")
.build())
.build()))
.targetNetwork(TargetNetworkProperty.builder()
.topology("topology")
// the properties below are optional
.inboundCidr("inboundCidr")
.inspectionCidr("inspectionCidr")
.outboundCidr("outboundCidr")
.build())
.targetS3Configuration(TargetS3ConfigurationProperty.builder()
.s3Bucket("s3Bucket")
.s3BucketOwner("s3BucketOwner")
.build())
// the properties below are optional
.description("description")
.scopeTags(Map.of(
"scopeTagsKey", "scopeTags"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.targetDeployment("targetDeployment")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MGN;
var cfnNetworkMigrationDefinitionProps = new CfnNetworkMigrationDefinitionProps {
Name = "name",
SourceConfigurations = new [] { new SourceConfigurationProperty {
SourceEnvironment = "sourceEnvironment",
SourceS3Configuration = new SourceS3ConfigurationProperty {
S3Bucket = "s3Bucket",
S3BucketOwner = "s3BucketOwner",
S3Key = "s3Key"
}
} },
TargetNetwork = new TargetNetworkProperty {
Topology = "topology",
// the properties below are optional
InboundCidr = "inboundCidr",
InspectionCidr = "inspectionCidr",
OutboundCidr = "outboundCidr"
},
TargetS3Configuration = new TargetS3ConfigurationProperty {
S3Bucket = "s3Bucket",
S3BucketOwner = "s3BucketOwner"
},
// the properties below are optional
Description = "description",
ScopeTags = new Dictionary<string, string> {
{ "scopeTagsKey", "scopeTags" }
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TargetDeployment = "targetDeployment"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnNetworkMigrationDefinitionProps := &CfnNetworkMigrationDefinitionProps{
Name: jsii.String("name"),
SourceConfigurations: []interface{}{
&SourceConfigurationProperty{
SourceEnvironment: jsii.String("sourceEnvironment"),
SourceS3Configuration: &SourceS3ConfigurationProperty{
S3Bucket: jsii.String("s3Bucket"),
S3BucketOwner: jsii.String("s3BucketOwner"),
S3Key: jsii.String("s3Key"),
},
},
},
TargetNetwork: &TargetNetworkProperty{
Topology: jsii.String("topology"),
// the properties below are optional
InboundCidr: jsii.String("inboundCidr"),
InspectionCidr: jsii.String("inspectionCidr"),
OutboundCidr: jsii.String("outboundCidr"),
},
TargetS3Configuration: &TargetS3ConfigurationProperty{
S3Bucket: jsii.String("s3Bucket"),
S3BucketOwner: jsii.String("s3BucketOwner"),
},
// the properties below are optional
Description: jsii.String("description"),
ScopeTags: map[string]*string{
"scopeTagsKey": jsii.String("scopeTags"),
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
TargetDeployment: jsii.String("targetDeployment"),
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A description of the network migration definition.
The name of the network migration definition.
scopeTagsoptionalIResolvable | { [key: string]: string }scope_tagsoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]scopeTagsoptionalIResolvableScopeTagsoptionalIResolvableScopeTagsoptionalinterface{} #Scope tags map for the network migration definition.
sourceConfigurationsIResolvable | IResolvable | CfnNetworkMigrationDefinition.source_configurationstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SourceConfigurationProperty]]]sourceConfigurationsIResolvableSourceConfigurationsIResolvableSourceConfigurationsinterface{} required #A list of source configurations for the network migration.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #Tags to assign to the network migration definition.
targetDeploymentoptionalstringtarget_deploymentoptionalstrtargetDeploymentoptionalStringTargetDeploymentoptionalstringTargetDeploymentoptional*string #The target deployment configuration for the migrated network.
targetNetworkIResolvable | CfnNetworkMigrationDefinition.target_networktyping.Union[IResolvable, TargetNetworkProperty]targetNetworkIResolvableTargetNetworkIResolvableTargetNetworkinterface{} required #Configuration for the target network topology and addressing.
targetS3ConfigurationIResolvable | CfnNetworkMigrationDefinition.target_s3_configurationtyping.Union[IResolvable, TargetS3ConfigurationProperty]targetS3ConfigurationIResolvableTargetS3ConfigurationIResolvableTargetS3Configurationinterface{} required #S3 configuration for storing target network artifacts.