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
5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 | |