create_network_migration_definition
¶
create_network_migration_definition(
name: NetworkMigrationDefinitionName,
target_s3_configuration: TargetS3Configuration,
target_network: TargetNetwork,
*,
config_overrides: Optional[mgnClientConfig] = None,
description: Optional[NetworkMigrationDefinitionDescription] = None,
source_configurations: Optional[SourceConfigurationList] = None,
target_deployment: Optional[TargetDeployment] = None,
vpc_provisioning_strategy: Optional[VpcProvisioningStrategy] = None,
cidr_mappings: Optional[CidrMappingsList] = None,
tags: Optional[TagsMap] = None,
scope_tags: Optional[ScopeTagsMap] = None,
) -> NetworkMigrationDefinition
Creates a new network migration definition that specifies the source and target network configuration for a migration.
Parameters:
-
name(NetworkMigrationDefinitionName) –The name of the network migration definition.
-
description(Optional[NetworkMigrationDefinitionDescription], default:None) –A description of the network migration definition.
-
source_configurations(Optional[SourceConfigurationList], default:None) –A list of source configurations for the network migration.
-
target_s3_configuration(TargetS3Configuration) –The S3 configuration for storing the target network artifacts.
-
target_network(TargetNetwork) –The target network configuration including topology and CIDR ranges.
-
target_deployment(Optional[TargetDeployment], default:None) –The target deployment configuration for the migrated network.
-
vpc_provisioning_strategy(Optional[VpcProvisioningStrategy], default:None) –Specifies whether to create new target VPCs or use existing ones. Set to
CREATE_NEWto provision new target VPCs as part of the migration, orUSE_EXISTINGto migrate into existing VPCs in the target account. -
cidr_mappings(Optional[CidrMappingsList], default:None) –A list of CIDR mappings that map original source CIDR ranges to updated target CIDR ranges. CIDR mappings can be provided only when
vpcProvisioningStrategyis set toUSE_EXISTING. -
tags(Optional[TagsMap], default:None) –Tags to assign to the network migration definition.
-
scope_tags(Optional[ScopeTagsMap], default:None) –Scope tags for the network migration definition to control access and organization.
Raises:
-
ServiceQuotaExceededException–The request could not be completed because it exceeded the service quota.
-
ValidationException–Validate exception.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Sample CreateNetworkMigrationDefinition call
>>> client.create_network_migration_definition(name='network1', description='network 1 description', target_deployment='SINGLE_ACCOUNT', source_configurations=[{'sourceEnvironment': 'NSX', 'sourceS3Configuration': {'s3Bucket': 'source_bucket', 's3Key': 'source_key', 's3BucketOwner': '012345678901'}}], target_s3_configuration={'s3Bucket': 'target_bucket', 's3BucketOwner': '012345678901'}, target_network={'topology': 'ISOLATED_VPC', 'inboundCidr': '192.168.1.0/24'})
Source code in docs_src/capo_mgn/_services/mgn.py
3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 | |