Struct rusoto_iam::EnableMFADeviceRequest[][src]

pub struct EnableMFADeviceRequest {
    pub authentication_code_1: String,
    pub authentication_code_2: String,
    pub serial_number: String,
    pub user_name: String,
}

Fields

An authentication code emitted by the device.

The format for this parameter is a string of six digits.

Submit your request immediately after generating the authentication codes. If you generate the codes and then wait too long to submit the request, the MFA device successfully associates with the user but the MFA device becomes out of sync. This happens because time-based one-time passwords (TOTP) expire after a short period of time. If this happens, you can resync the device.

A subsequent authentication code emitted by the device.

The format for this parameter is a string of six digits.

Submit your request immediately after generating the authentication codes. If you generate the codes and then wait too long to submit the request, the MFA device successfully associates with the user but the MFA device becomes out of sync. This happens because time-based one-time passwords (TOTP) expire after a short period of time. If this happens, you can resync the device.

The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@:/-

The name of the IAM user for whom you want to enable the MFA device.

This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Trait Implementations

impl Default for EnableMFADeviceRequest
[src]

Returns the "default value" for a type. Read more

impl Debug for EnableMFADeviceRequest
[src]

Formats the value using the given formatter. Read more

impl Clone for EnableMFADeviceRequest
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for EnableMFADeviceRequest
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations