aws_sdk_iam/client/
resync_mfa_device.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`ResyncMFADevice`](crate::operation::resync_mfa_device::builders::ResyncMFADeviceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`user_name(impl Into<String>)`](crate::operation::resync_mfa_device::builders::ResyncMFADeviceFluentBuilder::user_name) / [`set_user_name(Option<String>)`](crate::operation::resync_mfa_device::builders::ResyncMFADeviceFluentBuilder::set_user_name):<br>required: **true**<br><p>The name of the user whose MFA device you want to resynchronize.</p> <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-</p><br>
7    ///   - [`serial_number(impl Into<String>)`](crate::operation::resync_mfa_device::builders::ResyncMFADeviceFluentBuilder::serial_number) / [`set_serial_number(Option<String>)`](crate::operation::resync_mfa_device::builders::ResyncMFADeviceFluentBuilder::set_serial_number):<br>required: **true**<br><p>Serial number that uniquely identifies the MFA device.</p> <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-</p><br>
8    ///   - [`authentication_code1(impl Into<String>)`](crate::operation::resync_mfa_device::builders::ResyncMFADeviceFluentBuilder::authentication_code1) / [`set_authentication_code1(Option<String>)`](crate::operation::resync_mfa_device::builders::ResyncMFADeviceFluentBuilder::set_authentication_code1):<br>required: **true**<br><p>An authentication code emitted by the device.</p> <p>The format for this parameter is a sequence of six digits.</p><br>
9    ///   - [`authentication_code2(impl Into<String>)`](crate::operation::resync_mfa_device::builders::ResyncMFADeviceFluentBuilder::authentication_code2) / [`set_authentication_code2(Option<String>)`](crate::operation::resync_mfa_device::builders::ResyncMFADeviceFluentBuilder::set_authentication_code2):<br>required: **true**<br><p>A subsequent authentication code emitted by the device.</p> <p>The format for this parameter is a sequence of six digits.</p><br>
10    /// - On success, responds with [`ResyncMfaDeviceOutput`](crate::operation::resync_mfa_device::ResyncMfaDeviceOutput)
11    /// - On failure, responds with [`SdkError<ResyncMFADeviceError>`](crate::operation::resync_mfa_device::ResyncMFADeviceError)
12    pub fn resync_mfa_device(&self) -> crate::operation::resync_mfa_device::builders::ResyncMFADeviceFluentBuilder {
13        crate::operation::resync_mfa_device::builders::ResyncMFADeviceFluentBuilder::new(self.handle.clone())
14    }
15}