get_credential_report

IAM.Client.get_credential_report()

Retrieves a credential report for the Amazon Web Services account. For more information about the credential report, see Getting credential reports in the IAM User Guide .

See also: AWS API Documentation

Request Syntax

response = client.get_credential_report()
Return type
dict
Returns
Response Syntax
{
    'Content': b'bytes',
    'ReportFormat': 'text/csv',
    'GeneratedTime': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    Contains the response to a successful GetCredentialReport request.

    • Content (bytes) --

      Contains the credential report. The report is Base64-encoded.

    • ReportFormat (string) --

      The format (MIME type) of the credential report.

    • GeneratedTime (datetime) --

      The date and time when the credential report was created, in ISO 8601 date-time format.

Exceptions

  • IAM.Client.exceptions.CredentialReportNotPresentException
  • IAM.Client.exceptions.CredentialReportExpiredException
  • IAM.Client.exceptions.CredentialReportNotReadyException
  • IAM.Client.exceptions.ServiceFailureException