mgn / Paginator / ListNetworkMigrationExecutions

ListNetworkMigrationExecutions

class mgn.Paginator.ListNetworkMigrationExecutions
paginator = client.get_paginator('list_network_migration_executions')
paginate(**kwargs)

Creates an iterator that will paginate through responses from mgn.Client.list_network_migration_executions().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    networkMigrationDefinitionID='string',
    filters={
        'networkMigrationExecutionIDs': [
            'string',
        ],
        'networkMigrationExecutionStatuses': [
            'PENDING'|'STARTED'|'SUCCEEDED'|'FAILED',
        ]
    },
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • networkMigrationDefinitionID (string) –

    [REQUIRED]

    The unique identifier of the network migration definition to list executions for.

  • filters (dict) –

    Filters to apply when listing executions, such as status or execution ID.

    • networkMigrationExecutionIDs (list) –

      A list of execution IDs to filter by.

      • (string) –

    • networkMigrationExecutionStatuses (list) –

      A list of execution statuses to filter by.

      • (string) –

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'items': [
        {
            'networkMigrationDefinitionID': 'string',
            'networkMigrationExecutionID': 'string',
            'status': 'PENDING'|'STARTED'|'SUCCEEDED'|'FAILED',
            'stage': 'MAPPING'|'CODE_GENERATION'|'DEPLOY'|'DEPLOYED_STACKS_DELETION'|'ANALYZE',
            'activity': 'MAPPING'|'MAPPING_UPDATE'|'CODE_GENERATION'|'DEPLOY'|'DEPLOYED_STACKS_DELETION'|'ANALYZE',
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1),
            'tags': {
                'string': 'string'
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • items (list) –

      A list of network migration execution details.

      • (dict) –

        Details about a network migration execution instance.

        • networkMigrationDefinitionID (string) –

          The unique identifier of the network migration definition used by this execution.

        • networkMigrationExecutionID (string) –

          The unique identifier of the execution.

        • status (string) –

          The current status of the execution.

        • stage (string) –

          The current stage of the execution in the migration workflow.

        • activity (string) –

          The current activity being performed in the execution.

        • createdAt (datetime) –

          The timestamp when the execution was created.

        • updatedAt (datetime) –

          The timestamp when the execution was last updated.

        • tags (dict) –

          Tags assigned to the execution.

          • (string) –

            • (string) –

    • NextToken (string) –

      A token to resume pagination.