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
authentication_code_1: String
An authentication code emitted by the device.
The format for this parameter is a string of 6 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.
authentication_code_2: String
A subsequent authentication code emitted by the device.
The format for this parameter is a string of 6 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.
serial_number: String
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: =,.@:/-
user_name: String
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]
fn default() -> EnableMFADeviceRequest
[src]
Returns the "default value" for a type. Read more
impl Debug for EnableMFADeviceRequest
[src]
impl Clone for EnableMFADeviceRequest
[src]
fn clone(&self) -> EnableMFADeviceRequest
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more