class Amazonite::Iam::VirtualMFADevice

Overview

Contains information about a virtual MFA device.

Defined in:

iam/virtual_mfa_device.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_xml(node : XML::Node) : self #

[View source]
def self.new(serial_number : String, base_32_string_seed : Bytes | Nil = nil, qr_code_png : Bytes | Nil = nil, user : User | Nil = nil, enable_date : Time | Nil = nil, tags : Array(Tag) | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def base_32_string_seed : Bytes | Nil #

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


[View source]
def base_32_string_seed=(base_32_string_seed : Bytes | Nil) #

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


[View source]
def enable_date : Time | Nil #

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


[View source]
def enable_date=(enable_date : Time | Nil) #

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


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def qr_code_png : Bytes | Nil #

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.


[View source]
def qr_code_png=(qr_code_png : Bytes | Nil) #

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.


[View source]
def serial_number : String #

The serial number associated with VirtualMFADevice.


[View source]
def serial_number=(serial_number : String) #

The serial number associated with VirtualMFADevice.


[View source]
def tags : Array(Tag) | Nil #

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.


[View source]
def tags=(tags : Array(Tag) | Nil) #

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.


[View source]
def to_query_params(prefix : String) : Array(Tuple(String, String)) #

[View source]
def user : User | Nil #

The IAM user associated with this virtual MFA device.


[View source]
def user=(user : User | Nil) #

The IAM user associated with this virtual MFA device.


[View source]
def validate! : Nil #

[View source]