CloudTrail / Client / list_import_failures

list_import_failures#

CloudTrail.Client.list_import_failures(**kwargs)#

Returns a list of failures for the specified import.

See also: AWS API Documentation

Request Syntax

response = client.list_import_failures(
    ImportId='string',
    MaxResults=123,
    NextToken='string'
)
Parameters:
  • ImportId (string) –

    [REQUIRED]

    The ID of the import.

  • MaxResults (integer) – The maximum number of failures to display on a single page.

  • NextToken (string) – A token you can use to get the next page of import failures.

Return type:

dict

Returns:

Response Syntax

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

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.

    • NextToken (string) –

      A token you can use to get the next page of results.

Exceptions

  • CloudTrail.Client.exceptions.InvalidNextTokenException

  • CloudTrail.Client.exceptions.OperationNotPermittedException

  • CloudTrail.Client.exceptions.UnsupportedOperationException