getMFADevice method
Retrieves information about an MFA device for a specified user.
May throw NoSuchEntityException.
May throw ServiceFailureException.
Parameter serialNumber :
Serial number that uniquely identifies the MFA device. For this API, we
only accept FIDO security key ARNs.
Parameter userName :
The friendly name identifying the user.
Implementation
Future<GetMFADeviceResponse> getMFADevice({
required String serialNumber,
String? userName,
}) async {
final $request = <String, String>{
'SerialNumber': serialNumber,
if (userName != null) 'UserName': userName,
};
final $result = await _protocol.send(
$request,
action: 'GetMFADevice',
version: '2010-05-08',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
resultWrapper: 'GetMFADeviceResult',
);
return GetMFADeviceResponse.fromXml($result);
}