#[non_exhaustive]pub struct EnableMfaDeviceInputBuilder { /* private fields */ }
Expand description
A builder for EnableMfaDeviceInput
.
Implementations§
source§impl EnableMfaDeviceInputBuilder
impl EnableMfaDeviceInputBuilder
sourcepub fn user_name(self, input: impl Into<String>) -> Self
pub fn user_name(self, input: impl Into<String>) -> Self
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: _+=,.@-
This field is required.sourcepub fn set_user_name(self, input: Option<String>) -> Self
pub fn set_user_name(self, input: Option<String>) -> Self
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 get_user_name(&self) -> &Option<String>
pub fn get_user_name(&self) -> &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: _+=,.@-
sourcepub fn serial_number(self, input: impl Into<String>) -> Self
pub fn serial_number(self, input: impl Into<String>) -> Self
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: =,.@:/-
This field is required.sourcepub fn set_serial_number(self, input: Option<String>) -> Self
pub fn set_serial_number(self, input: Option<String>) -> Self
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 get_serial_number(&self) -> &Option<String>
pub fn get_serial_number(&self) -> &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: =,.@:/-
sourcepub fn authentication_code1(self, input: impl Into<String>) -> Self
pub fn authentication_code1(self, input: impl Into<String>) -> Self
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 set_authentication_code1(self, input: Option<String>) -> Self
pub fn set_authentication_code1(self, input: Option<String>) -> Self
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 get_authentication_code1(&self) -> &Option<String>
pub fn get_authentication_code1(&self) -> &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.
sourcepub fn authentication_code2(self, input: impl Into<String>) -> Self
pub fn authentication_code2(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_authentication_code2(self, input: Option<String>) -> Self
pub fn set_authentication_code2(self, input: Option<String>) -> Self
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.
sourcepub fn get_authentication_code2(&self) -> &Option<String>
pub fn get_authentication_code2(&self) -> &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.
sourcepub fn build(self) -> Result<EnableMfaDeviceInput, BuildError>
pub fn build(self) -> Result<EnableMfaDeviceInput, BuildError>
Consumes the builder and constructs a EnableMfaDeviceInput
.
source§impl EnableMfaDeviceInputBuilder
impl EnableMfaDeviceInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<EnableMfaDeviceOutput, SdkError<EnableMFADeviceError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<EnableMfaDeviceOutput, SdkError<EnableMFADeviceError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for EnableMfaDeviceInputBuilder
impl Clone for EnableMfaDeviceInputBuilder
source§fn clone(&self) -> EnableMfaDeviceInputBuilder
fn clone(&self) -> EnableMfaDeviceInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EnableMfaDeviceInputBuilder
impl Debug for EnableMfaDeviceInputBuilder
source§impl Default for EnableMfaDeviceInputBuilder
impl Default for EnableMfaDeviceInputBuilder
source§fn default() -> EnableMfaDeviceInputBuilder
fn default() -> EnableMfaDeviceInputBuilder
source§impl PartialEq for EnableMfaDeviceInputBuilder
impl PartialEq for EnableMfaDeviceInputBuilder
source§fn eq(&self, other: &EnableMfaDeviceInputBuilder) -> bool
fn eq(&self, other: &EnableMfaDeviceInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.