update_network_migration_definition
¶
update_network_migration_definition(
network_migration_definition_id: NetworkMigrationDefinitionID,
*,
config_overrides: Optional[mgnClientConfig] = None,
name: Optional[NetworkMigrationDefinitionName] = None,
description: Optional[NetworkMigrationDefinitionDescription] = None,
source_configurations: Optional[SourceConfigurationList] = None,
target_s3_configuration: Optional[TargetS3ConfigurationUpdate] = None,
target_network: Optional[TargetNetworkUpdate] = None,
target_deployment: Optional[TargetDeployment] = None,
vpc_provisioning_strategy: Optional[VpcProvisioningStrategy] = None,
cidr_mappings: Optional[CidrMappingsList] = None,
scope_tags: Optional[ScopeTagsMap] = None,
definition_type: Optional[DefinitionType] = None,
) -> NetworkMigrationDefinition
Updates an existing network migration definition with new source or target configurations.
Parameters:
-
network_migration_definition_id(NetworkMigrationDefinitionID) –The unique identifier of the network migration definition to update.
-
name(Optional[NetworkMigrationDefinitionName], default:None) –The updated name of the network migration definition.
-
description(Optional[NetworkMigrationDefinitionDescription], default:None) –The updated description of the network migration definition.
-
source_configurations(Optional[SourceConfigurationList], default:None) –The updated list of source configurations.
-
target_s3_configuration(Optional[TargetS3ConfigurationUpdate], default:None) –The updated S3 configuration for storing the target network artifacts.
-
target_network(Optional[TargetNetworkUpdate], default:None) –The updated target network configuration.
-
target_deployment(Optional[TargetDeployment], default:None) –The updated target deployment configuration.
-
vpc_provisioning_strategy(Optional[VpcProvisioningStrategy], default:None) –Updates whether the migration creates new target VPCs or uses existing ones. Set to
USE_EXISTINGto migrate into existing VPCs in the target account, or toCREATE_NEWto provision new target VPCs. -
cidr_mappings(Optional[CidrMappingsList], default:None) –The updated 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. -
scope_tags(Optional[ScopeTagsMap], default:None) –The updated scope tags for the network migration definition.
-
definition_type(Optional[DefinitionType], default:None) –The updated type of the network migration definition.
Raises:
-
AccessDeniedException–Operation denied due to a file permission or access check error.
-
ResourceNotFoundException–Resource not found exception.
-
ValidationException–Validate exception.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Sample UpdateNetworkMigrationDefinition call
>>> client.update_network_migration_definition(network_migration_definition_id='nmd-01234567891234567', name='network1', description='network 1 description', 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
3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 | |