1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetMFADevice`](crate::operation::get_mfa_device::builders::GetMFADeviceFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`serial_number(impl Into<String>)`](crate::operation::get_mfa_device::builders::GetMFADeviceFluentBuilder::serial_number) / [`set_serial_number(Option<String>)`](crate::operation::get_mfa_device::builders::GetMFADeviceFluentBuilder::set_serial_number):<br>required: **true**<br><p>Serial number that uniquely identifies the MFA device. For this API, we only accept FIDO security key <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference-arns.html">ARNs</a>.</p><br>
    ///   - [`user_name(impl Into<String>)`](crate::operation::get_mfa_device::builders::GetMFADeviceFluentBuilder::user_name) / [`set_user_name(Option<String>)`](crate::operation::get_mfa_device::builders::GetMFADeviceFluentBuilder::set_user_name):<br>required: **false**<br><p>The friendly name identifying the user.</p><br>
    /// - On success, responds with [`GetMfaDeviceOutput`](crate::operation::get_mfa_device::GetMfaDeviceOutput) with field(s):
    ///   - [`user_name(Option<String>)`](crate::operation::get_mfa_device::GetMfaDeviceOutput::user_name): <p>The friendly name identifying the user.</p>
    ///   - [`serial_number(String)`](crate::operation::get_mfa_device::GetMfaDeviceOutput::serial_number): <p>Serial number that uniquely identifies the MFA device. For this API, we only accept FIDO security key <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference-arns.html">ARNs</a>.</p>
    ///   - [`enable_date(Option<DateTime>)`](crate::operation::get_mfa_device::GetMfaDeviceOutput::enable_date): <p>The date that a specified user's MFA device was first enabled.</p>
    ///   - [`certifications(Option<HashMap::<String, String>>)`](crate::operation::get_mfa_device::GetMfaDeviceOutput::certifications): <p>The certifications of a specified user's MFA device. We currently provide FIPS-140-2, FIPS-140-3, and FIDO certification levels obtained from <a href="https://fidoalliance.org/metadata/"> FIDO Alliance Metadata Service (MDS)</a>.</p>
    /// - On failure, responds with [`SdkError<GetMFADeviceError>`](crate::operation::get_mfa_device::GetMFADeviceError)
    pub fn get_mfa_device(&self) -> crate::operation::get_mfa_device::builders::GetMFADeviceFluentBuilder {
        crate::operation::get_mfa_device::builders::GetMFADeviceFluentBuilder::new(self.handle.clone())
    }
}