IAM / Client / get_mfa_device

get_mfa_device#

IAM.Client.get_mfa_device(**kwargs)#

Retrieves information about an MFA device for a specified user.

See also: AWS API Documentation

Request Syntax

response = client.get_mfa_device(
    SerialNumber='string',
    UserName='string'
)
Parameters:
  • SerialNumber (string) –

    [REQUIRED]

    Serial number that uniquely identifies the MFA device. For this API, we only accept FIDO security key ARNs.

  • UserName (string) – The friendly name identifying the user.

Return type:

dict

Returns:

Response Syntax

{
    'UserName': 'string',
    'SerialNumber': 'string',
    'EnableDate': datetime(2015, 1, 1),
    'Certifications': {
        'string': 'string'
    }
}

Response Structure

  • (dict) –

    • UserName (string) –

      The friendly name identifying the user.

    • SerialNumber (string) –

      Serial number that uniquely identifies the MFA device. For this API, we only accept FIDO security key ARNs.

    • EnableDate (datetime) –

      The date that a specified user’s MFA device was first enabled.

    • Certifications (dict) –

      The certifications of a specified user’s MFA device. We currently provide FIPS-140-2, FIPS-140-3, and FIDO certification levels obtained from FIDO Alliance Metadata Service (MDS).

      • (string) –

        • (string) –

Exceptions

  • IAM.Client.exceptions.NoSuchEntityException

  • IAM.Client.exceptions.ServiceFailureException