libZSservicesZSamazonka-iamZSamazonka-iam
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.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, see Enabling a virtual multi-factor authentication (MFA) device in the IAM User Guide.

Synopsis

Creating a Request

data DeactivateMFADevice Source #

See: newDeactivateMFADevice smart constructor.

Constructors

DeactivateMFADevice' 

Fields

  • userName :: Text

    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: _+=,.@-

  • serialNumber :: Text

    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: =,.@:/-

Instances

Instances details
Eq DeactivateMFADevice Source # 
Instance details

Defined in Amazonka.IAM.DeactivateMFADevice

Read DeactivateMFADevice Source # 
Instance details

Defined in Amazonka.IAM.DeactivateMFADevice

Show DeactivateMFADevice Source # 
Instance details

Defined in Amazonka.IAM.DeactivateMFADevice

Generic DeactivateMFADevice Source # 
Instance details

Defined in Amazonka.IAM.DeactivateMFADevice

Associated Types

type Rep DeactivateMFADevice :: Type -> Type #

NFData DeactivateMFADevice Source # 
Instance details

Defined in Amazonka.IAM.DeactivateMFADevice

Methods

rnf :: DeactivateMFADevice -> () #

Hashable DeactivateMFADevice Source # 
Instance details

Defined in Amazonka.IAM.DeactivateMFADevice

AWSRequest DeactivateMFADevice Source # 
Instance details

Defined in Amazonka.IAM.DeactivateMFADevice

Associated Types

type AWSResponse DeactivateMFADevice #

ToHeaders DeactivateMFADevice Source # 
Instance details

Defined in Amazonka.IAM.DeactivateMFADevice

ToPath DeactivateMFADevice Source # 
Instance details

Defined in Amazonka.IAM.DeactivateMFADevice

ToQuery DeactivateMFADevice Source # 
Instance details

Defined in Amazonka.IAM.DeactivateMFADevice

type Rep DeactivateMFADevice Source # 
Instance details

Defined in Amazonka.IAM.DeactivateMFADevice

type Rep DeactivateMFADevice = D1 ('MetaData "DeactivateMFADevice" "Amazonka.IAM.DeactivateMFADevice" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "DeactivateMFADevice'" 'PrefixI 'True) (S1 ('MetaSel ('Just "userName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "serialNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeactivateMFADevice Source # 
Instance details

Defined in Amazonka.IAM.DeactivateMFADevice

newDeactivateMFADevice Source #

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

Instances details
Eq DeactivateMFADeviceResponse Source # 
Instance details

Defined in Amazonka.IAM.DeactivateMFADevice

Read DeactivateMFADeviceResponse Source # 
Instance details

Defined in Amazonka.IAM.DeactivateMFADevice

Show DeactivateMFADeviceResponse Source # 
Instance details

Defined in Amazonka.IAM.DeactivateMFADevice

Generic DeactivateMFADeviceResponse Source # 
Instance details

Defined in Amazonka.IAM.DeactivateMFADevice

Associated Types

type Rep DeactivateMFADeviceResponse :: Type -> Type #

NFData DeactivateMFADeviceResponse Source # 
Instance details

Defined in Amazonka.IAM.DeactivateMFADevice

type Rep DeactivateMFADeviceResponse Source # 
Instance details

Defined in Amazonka.IAM.DeactivateMFADevice

type Rep DeactivateMFADeviceResponse = D1 ('MetaData "DeactivateMFADeviceResponse" "Amazonka.IAM.DeactivateMFADevice" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "DeactivateMFADeviceResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeactivateMFADeviceResponse :: DeactivateMFADeviceResponse Source #

Create a value of DeactivateMFADeviceResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.