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 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.
authentication_code_2: String
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.
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]
impl Default for EnableMFADeviceRequest
fn default() -> EnableMFADeviceRequest
[src]
fn default() -> EnableMFADeviceRequest
Returns the "default value" for a type. Read more
impl Debug for EnableMFADeviceRequest
[src]
impl Debug for EnableMFADeviceRequest
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for EnableMFADeviceRequest
[src]
impl Clone for EnableMFADeviceRequest
fn clone(&self) -> EnableMFADeviceRequest
[src]
fn clone(&self) -> EnableMFADeviceRequest
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for EnableMFADeviceRequest
[src]
impl PartialEq for EnableMFADeviceRequest
fn eq(&self, other: &EnableMFADeviceRequest) -> bool
[src]
fn eq(&self, other: &EnableMFADeviceRequest) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &EnableMFADeviceRequest) -> bool
[src]
fn ne(&self, other: &EnableMFADeviceRequest) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for EnableMFADeviceRequest
impl Send for EnableMFADeviceRequest
impl Sync for EnableMFADeviceRequest
impl Sync for EnableMFADeviceRequest