Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.IAM.DeactivateMFADevice
Description
Deactivates the specified MFA device and removes it from association with the user name for which it was originally enabled.
For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the IAM User Guide .
Creating a Request
Arguments
:: Text | |
-> Text | |
-> DeactivateMFADevice |
Creates a value of DeactivateMFADevice
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dmdUserName
- The name of the user whose MFA device you want to deactivate. This parameter allows (per 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: _+=,.@-dmdSerialNumber
- The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN. This parameter allows (per 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: =,.@:/-
data DeactivateMFADevice #
See: deactivateMFADevice
smart constructor.
Instances
Request Lenses
dmdUserName :: Lens' DeactivateMFADevice Text #
The name of the user whose MFA device you want to deactivate. This parameter allows (per 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: _+=,.@-
dmdSerialNumber :: Lens' DeactivateMFADevice Text #
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN. This parameter allows (per 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: =,.@:/-
Destructuring the Response
deactivateMFADeviceResponse :: DeactivateMFADeviceResponse #
Creates a value of DeactivateMFADeviceResponse
with the minimum fields required to make a request.
data DeactivateMFADeviceResponse #
See: deactivateMFADeviceResponse
smart constructor.