Struct rusoto_iam::EnableMFADeviceRequest
source · [−]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 (through 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 (through 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
sourceimpl Clone for EnableMFADeviceRequest
impl Clone for EnableMFADeviceRequest
sourcefn clone(&self) -> EnableMFADeviceRequest
fn clone(&self) -> EnableMFADeviceRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EnableMFADeviceRequest
impl Debug for EnableMFADeviceRequest
sourceimpl Default for EnableMFADeviceRequest
impl Default for EnableMFADeviceRequest
sourcefn default() -> EnableMFADeviceRequest
fn default() -> EnableMFADeviceRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<EnableMFADeviceRequest> for EnableMFADeviceRequest
impl PartialEq<EnableMFADeviceRequest> for EnableMFADeviceRequest
sourcefn eq(&self, other: &EnableMFADeviceRequest) -> bool
fn eq(&self, other: &EnableMFADeviceRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EnableMFADeviceRequest) -> bool
fn ne(&self, other: &EnableMFADeviceRequest) -> bool
This method tests for !=
.
impl StructuralPartialEq for EnableMFADeviceRequest
Auto Trait Implementations
impl RefUnwindSafe for EnableMFADeviceRequest
impl Send for EnableMFADeviceRequest
impl Sync for EnableMFADeviceRequest
impl Unpin for EnableMFADeviceRequest
impl UnwindSafe for EnableMFADeviceRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more