Copyright | (c) 2013-2021 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 |
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, see Enabling a virtual multi-factor authentication (MFA) device in the IAM User Guide.
Synopsis
- data DeactivateMFADevice = DeactivateMFADevice' {
- userName :: Text
- serialNumber :: Text
- newDeactivateMFADevice :: Text -> Text -> DeactivateMFADevice
- deactivateMFADevice_userName :: Lens' DeactivateMFADevice Text
- deactivateMFADevice_serialNumber :: Lens' DeactivateMFADevice Text
- data DeactivateMFADeviceResponse = DeactivateMFADeviceResponse' {
- newDeactivateMFADeviceResponse :: DeactivateMFADeviceResponse
Creating a Request
data DeactivateMFADevice Source #
See: newDeactivateMFADevice
smart constructor.
DeactivateMFADevice' | |
|
Instances
newDeactivateMFADevice Source #
:: Text | |
-> Text | |
-> DeactivateMFADevice |
Create a value of DeactivateMFADevice
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:userName:DeactivateMFADevice'
, deactivateMFADevice_userName
- The name of the user whose MFA device you want to deactivate.
This parameter allows (through 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: _+=,.@-
$sel:serialNumber:DeactivateMFADevice'
, deactivateMFADevice_serialNumber
- The serial number that uniquely identifies the MFA device. For virtual
MFA devices, the serial number is the device ARN.
This parameter allows (through 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: =,.@:/-
Request Lenses
deactivateMFADevice_userName :: Lens' DeactivateMFADevice Text Source #
The name of the user whose MFA device you want to deactivate.
This parameter allows (through 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: _+=,.@-
deactivateMFADevice_serialNumber :: Lens' DeactivateMFADevice Text Source #
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
This parameter allows (through 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
data DeactivateMFADeviceResponse Source #
See: newDeactivateMFADeviceResponse
smart constructor.
Instances
newDeactivateMFADeviceResponse :: DeactivateMFADeviceResponse Source #
Create a value of DeactivateMFADeviceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.