ListImportFailures

class CloudTrail.Paginator.ListImportFailures
paginator = client.get_paginator('list_import_failures')
paginate(**kwargs)

Creates an iterator that will paginate through responses from CloudTrail.Client.list_import_failures().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    ImportId='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • ImportId (string) --

    [REQUIRED]

    The ID of the import.

  • 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

{
    'Failures': [
        {
            'Location': 'string',
            'Status': 'FAILED'|'RETRY'|'SUCCEEDED',
            'ErrorType': 'string',
            'ErrorMessage': 'string',
            'LastUpdatedTime': datetime(2015, 1, 1)
        },
    ],

}

Response Structure

  • (dict) --

    • Failures (list) --

      Contains information about the import failures.

      • (dict) --

        Provides information about an import failure.

        • Location (string) --

          The location of the failure in the S3 bucket.

        • Status (string) --

          The status of the import.

        • ErrorType (string) --

          The type of import error.

        • ErrorMessage (string) --

          Provides the reason the import failed.

        • LastUpdatedTime (datetime) --

          When the import was last updated.