aws_sdk_iam/client/get_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 [`GetMFADevice`](crate::operation::get_mfa_device::builders::GetMFADeviceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - On success, responds with [`GetMfaDeviceOutput`](crate::operation::get_mfa_device::GetMfaDeviceOutput) with field(s):
9 /// - [`user_name(Option<String>)`](crate::operation::get_mfa_device::GetMfaDeviceOutput::user_name): <p>The friendly name identifying the user.</p>
10 /// - [`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>
11 /// - [`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>
12 /// - [`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>
13 /// - On failure, responds with [`SdkError<GetMFADeviceError>`](crate::operation::get_mfa_device::GetMFADeviceError)
14 pub fn get_mfa_device(&self) -> crate::operation::get_mfa_device::builders::GetMFADeviceFluentBuilder {
15 crate::operation::get_mfa_device::builders::GetMFADeviceFluentBuilder::new(self.handle.clone())
16 }
17}