mgn / Client / start_network_migration_code_generation

start_network_migration_code_generation

mgn.Client.start_network_migration_code_generation(**kwargs)

Starts a code generation job to convert network migration mappings into infrastructure-as-code templates.

See also: AWS API Documentation

Request Syntax

response = client.start_network_migration_code_generation(
    networkMigrationExecutionID='string',
    networkMigrationDefinitionID='string',
    codeGenerationOutputFormatTypes=[
        'CDK_L1'|'CDK_L2'|'TERRAFORM'|'LZA',
    ]
)
Parameters:
  • networkMigrationExecutionID (string) –

    [REQUIRED]

    The unique identifier of the network migration execution.

  • networkMigrationDefinitionID (string) –

    [REQUIRED]

    The unique identifier of the network migration definition.

  • codeGenerationOutputFormatTypes (list) –

    The output format types for code generation, such as CloudFormation or Terraform.

    • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'jobID': 'string'
}

Response Structure

  • (dict) –

    • jobID (string) –

      The unique identifier of the code generation job that was started.

Exceptions

  • mgn.Client.exceptions.ResourceNotFoundException

  • mgn.Client.exceptions.ThrottlingException

  • mgn.Client.exceptions.AccessDeniedException

  • mgn.Client.exceptions.ValidationException

  • mgn.Client.exceptions.ServiceQuotaExceededException

  • mgn.Client.exceptions.ConflictException