start_network_migration_code_generation
¶
start_network_migration_code_generation(
network_migration_execution_id: NetworkMigrationExecutionID,
network_migration_definition_id: NetworkMigrationDefinitionID,
*,
config_overrides: Optional[mgnClientConfig] = 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
>>> 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/mgn.py
4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 | |