start_network_migration_mapping_update
async
¶
start_network_migration_mapping_update(
network_migration_execution_id: NetworkMigrationExecutionID,
network_migration_definition_id: NetworkMigrationDefinitionID,
*,
config_overrides: Optional[AsyncmgnClientConfig] = None,
constructs: Optional[StartNetworkMigrationMappingUpdateConstructs] = None,
segments: Optional[StartNetworkMigrationMappingUpdateSegments] = None,
) -> StartNetworkMigrationMappingUpdateResponse
Starts a job to apply customer modifications to network migration mappings, such as changing properties.
Parameters:
-
network_migration_execution_id(NetworkMigrationExecutionID) –The unique identifier of the network migration execution.
-
network_migration_definition_id(NetworkMigrationDefinitionID) –The unique identifier of the network migration definition.
-
constructs(Optional[StartNetworkMigrationMappingUpdateConstructs], default:None) –A list of construct updates to apply.
-
segments(Optional[StartNetworkMigrationMappingUpdateSegments], default:None) –A list of segment updates to apply.
Raises:
-
AccessDeniedException–Operation denied due to a file permission or access check error.
-
ConflictException–The request could not be completed due to a conflict with the current state of the target resource.
-
ResourceNotFoundException–Resource not found exception.
-
ServiceQuotaExceededException–The request could not be completed because it exceeded the service quota.
-
ThrottlingException–Reached throttling quota exception.
-
ValidationException–Validate exception.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Sample StartNetworkMigrationMappingUpdate call
>>> await client.start_network_migration_mapping_update(network_migration_execution_id='01234567-abcd-abcd-abcd-0123456789ab', network_migration_definition_id='nmd-01234567891234567', constructs=[{'segmentID': '12345678-abcd-abcd-efab-0123456789ab', 'constructID': 'abc45678-abcd-abcd-efab-012345678abc', 'constructType': 'AWS::EC2::VPC', 'operation': {'update': {'properties': {'CidrBlock': '10.31.0.0/22'}}}}], segments=[{'segmentID': '12345678-abcd-abcd-efab-0123456789ab', 'targetAccount': '234567890123', 'scopeTags': {'key1': 'val1', 'key2': 'val2'}}])
Source code in docs_src/capo_mgn/_services/async_mgn.py
5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 | |