Skip to content

IAM  >  Structures  >  VirtualMFADevice

VirtualMFADevice

Structure Class

VirtualMFADevice dataclass

Bases: _SerdeShape

Contains information about a virtual MFA device.

Attributes

base32_string_seed class-attribute instance-attribute
base32_string_seed: bytes | None = ...

The base32 seed defined as specified in RFC3548. The Base32StringSeed is base32-encoded.

enable_date class-attribute instance-attribute
enable_date: datetime | None = ...

The date and time on which the virtual MFA device was enabled.

qr_code_png class-attribute instance-attribute
qr_code_png: bytes | None = ...

A QR code PNG image that encodes otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String where $virtualMFADeviceName is one of the create call arguments. AccountName is the user name if set (otherwise, the account ID otherwise), and Base32String is the seed in base32 format. The Base32String value is base64-encoded.

serial_number instance-attribute
serial_number: str

The serial number associated with VirtualMFADevice.

tags class-attribute instance-attribute
tags: list[Tag] | None = ...

A list of tags that are attached to the virtual MFA device. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

user class-attribute instance-attribute
user: User | None = ...

The IAM user associated with this virtual MFA device.