mgn / Client / list_network_migration_code_generations
list_network_migration_code_generations¶
- mgn.Client.list_network_migration_code_generations(**kwargs)¶
Lists network migration code generation jobs, which convert network mappings into infrastructure-as-code templates.
See also: AWS API Documentation
Request Syntax
response = client.list_network_migration_code_generations( networkMigrationExecutionID='string', networkMigrationDefinitionID='string', filters={ 'jobIDs': [ 'string', ] }, maxResults=123, nextToken='string' )
- Parameters:
networkMigrationExecutionID (string) –
[REQUIRED]
The unique identifier of the network migration execution.
networkMigrationDefinitionID (string) –
[REQUIRED]
The unique identifier of the network migration definition.
filters (dict) –
Filters to apply when listing code generation jobs.
jobIDs (list) –
A list of job IDs to filter by.
(string) –
maxResults (integer) – The maximum number of results to return in a single call.
nextToken (string) – The token for the next page of results.
- Return type:
dict
- Returns:
Response Syntax
{ 'items': [ { 'jobID': 'string', 'networkMigrationExecutionID': 'string', 'networkMigrationDefinitionID': 'string', 'createdAt': datetime(2015, 1, 1), 'endedAt': datetime(2015, 1, 1), 'status': 'PENDING'|'STARTED'|'SUCCEEDED'|'FAILED', 'statusDetails': 'string', 'codeGenerationOutputFormatStatusDetailsMap': { 'string': { 'status': 'SUCCEEDED'|'FAILED', 'statusDetailList': 'string' } } }, ], 'nextToken': 'string' }
Response Structure
(dict) –
items (list) –
A list of network migration code generation job details.
(dict) –
Details about a network migration code generation job.
jobID (string) –
The unique identifier of the code generation job.
networkMigrationExecutionID (string) –
The unique identifier of the network migration execution.
networkMigrationDefinitionID (string) –
The unique identifier of the network migration definition.
createdAt (datetime) –
The timestamp when the job was created.
endedAt (datetime) –
The timestamp when the job completed or failed.
status (string) –
The current status of the code generation job.
statusDetails (string) –
Detailed status information about the job.
codeGenerationOutputFormatStatusDetailsMap (dict) –
A map of output format types to their status details.
(string) –
(dict) –
Status details for a specific code generation output format.
status (string) –
The status of the code generation for this output format.
statusDetailList (string) –
A list of detailed status information for the code generation.
nextToken (string) –
The token to use to retrieve the next page of results. This value is null when there are no more results to return.
Exceptions
mgn.Client.exceptions.ResourceNotFoundExceptionmgn.Client.exceptions.ThrottlingExceptionmgn.Client.exceptions.AccessDeniedExceptionmgn.Client.exceptions.ValidationException