start_network_migration_code_generation
async
¶
start_network_migration_code_generation(
network_migration_execution_id: NetworkMigrationExecutionID,
network_migration_definition_id: NetworkMigrationDefinitionID,
*,
config_overrides: Optional[AsyncmgnClientConfig] = None,
code_generation_output_format_types: Optional[
CodeGenerationOutputFormatTypes
] = None,
) -> StartNetworkMigrationCodeGenerationResponse
Starts a code generation job to convert network migration mappings into infrastructure-as-code templates.
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.
-
code_generation_output_format_types(Optional[CodeGenerationOutputFormatTypes], default:None) –The output format types for code generation, such as CloudFormation or Terraform.
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 StartNetworkMigrationCodeGeneration call
>>> await client.start_network_migration_code_generation(network_migration_execution_id='01234567-abcd-abcd-abcd-0123456789ab', network_migration_definition_id='nmd-01234567891234567')
Source code in docs_src/capo_mgn/_services/async_mgn.py
4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 | |