Struct aws_sdk_iam::input::EnableMfaDeviceInput
source · [−]#[non_exhaustive]pub struct EnableMfaDeviceInput {
pub user_name: Option<String>,
pub serial_number: Option<String>,
pub authentication_code1: Option<String>,
pub authentication_code2: Option<String>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.user_name: Option<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: _+=,.@-
serial_number: Option<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: =,.@:/-
authentication_code1: Option<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_code2: Option<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.
Implementations
sourceimpl EnableMfaDeviceInput
impl EnableMfaDeviceInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<EnableMFADevice, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<EnableMFADevice, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<EnableMFADevice
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture EnableMfaDeviceInput
sourceimpl EnableMfaDeviceInput
impl EnableMfaDeviceInput
sourcepub fn user_name(&self) -> Option<&str>
pub fn user_name(&self) -> Option<&str>
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: _+=,.@-
sourcepub fn serial_number(&self) -> Option<&str>
pub fn serial_number(&self) -> Option<&str>
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: =,.@:/-
sourcepub fn authentication_code1(&self) -> Option<&str>
pub fn authentication_code1(&self) -> Option<&str>
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.
sourcepub fn authentication_code2(&self) -> Option<&str>
pub fn authentication_code2(&self) -> Option<&str>
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.
Trait Implementations
sourceimpl Clone for EnableMfaDeviceInput
impl Clone for EnableMfaDeviceInput
sourcefn clone(&self) -> EnableMfaDeviceInput
fn clone(&self) -> EnableMfaDeviceInput
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 EnableMfaDeviceInput
impl Debug for EnableMfaDeviceInput
sourceimpl PartialEq<EnableMfaDeviceInput> for EnableMfaDeviceInput
impl PartialEq<EnableMfaDeviceInput> for EnableMfaDeviceInput
sourcefn eq(&self, other: &EnableMfaDeviceInput) -> bool
fn eq(&self, other: &EnableMfaDeviceInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EnableMfaDeviceInput) -> bool
fn ne(&self, other: &EnableMfaDeviceInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for EnableMfaDeviceInput
Auto Trait Implementations
impl RefUnwindSafe for EnableMfaDeviceInput
impl Send for EnableMfaDeviceInput
impl Sync for EnableMfaDeviceInput
impl Unpin for EnableMfaDeviceInput
impl UnwindSafe for EnableMfaDeviceInput
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> 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