AWS Identity and Access Management

2023/06/26 - AWS Identity and Access Management - 1 new api methods

Changes  Support for a new API "GetMFADevice" to present MFA device metadata such as device certifications

GetMFADevice (new) Link ΒΆ

Retrieves information about an MFA device for a specified user.

See also: AWS API Documentation

Request Syntax

client.get_mfa_device(
    SerialNumber='string',
    UserName='string'
)
type SerialNumber

string

param SerialNumber

[REQUIRED]

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

type UserName

string

param UserName

The friendly name identifying the user.

rtype

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) --