User / Sub-Resource / MfaDevice

MfaDevice#

IAM.User.MfaDevice(serial_number)#

Creates a MfaDevice resource.:

mfa_device = user.MfaDevice('serial_number')
Parameters:

serial_number (string) – The MfaDevice’s serial_number identifier. This must be set.

Return type:

IAM.MfaDevice

Returns:

A MfaDevice resource