amazonka-iam-1.6.1: Amazon Identity and Access Management SDK.

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

Network.AWS.IAM.DeactivateMFADevice

Contents

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 .

Synopsis

Creating a Request

deactivateMFADevice Source #

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 Source #

See: deactivateMFADevice smart constructor.

Instances
Eq DeactivateMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

Data DeactivateMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeactivateMFADevice -> c DeactivateMFADevice #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeactivateMFADevice #

toConstr :: DeactivateMFADevice -> Constr #

dataTypeOf :: DeactivateMFADevice -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DeactivateMFADevice) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeactivateMFADevice) #

gmapT :: (forall b. Data b => b -> b) -> DeactivateMFADevice -> DeactivateMFADevice #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeactivateMFADevice -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeactivateMFADevice -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeactivateMFADevice -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeactivateMFADevice -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeactivateMFADevice -> m DeactivateMFADevice #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeactivateMFADevice -> m DeactivateMFADevice #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeactivateMFADevice -> m DeactivateMFADevice #

Read DeactivateMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

Show DeactivateMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

Generic DeactivateMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

Associated Types

type Rep DeactivateMFADevice :: Type -> Type #

Hashable DeactivateMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

AWSRequest DeactivateMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

Associated Types

type Rs DeactivateMFADevice :: Type #

ToHeaders DeactivateMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

ToPath DeactivateMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

ToQuery DeactivateMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

NFData DeactivateMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

Methods

rnf :: DeactivateMFADevice -> () #

type Rep DeactivateMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

type Rep DeactivateMFADevice = D1 (MetaData "DeactivateMFADevice" "Network.AWS.IAM.DeactivateMFADevice" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" False) (C1 (MetaCons "DeactivateMFADevice'" PrefixI True) (S1 (MetaSel (Just "_dmdUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_dmdSerialNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs DeactivateMFADevice Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

Request Lenses

dmdUserName :: Lens' DeactivateMFADevice Text Source #

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 Source #

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 Source #

Creates a value of DeactivateMFADeviceResponse with the minimum fields required to make a request.

data DeactivateMFADeviceResponse Source #

See: deactivateMFADeviceResponse smart constructor.

Instances
Eq DeactivateMFADeviceResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

Data DeactivateMFADeviceResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeactivateMFADeviceResponse -> c DeactivateMFADeviceResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeactivateMFADeviceResponse #

toConstr :: DeactivateMFADeviceResponse -> Constr #

dataTypeOf :: DeactivateMFADeviceResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DeactivateMFADeviceResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeactivateMFADeviceResponse) #

gmapT :: (forall b. Data b => b -> b) -> DeactivateMFADeviceResponse -> DeactivateMFADeviceResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeactivateMFADeviceResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeactivateMFADeviceResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeactivateMFADeviceResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeactivateMFADeviceResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeactivateMFADeviceResponse -> m DeactivateMFADeviceResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeactivateMFADeviceResponse -> m DeactivateMFADeviceResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeactivateMFADeviceResponse -> m DeactivateMFADeviceResponse #

Read DeactivateMFADeviceResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

Show DeactivateMFADeviceResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

Generic DeactivateMFADeviceResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

Associated Types

type Rep DeactivateMFADeviceResponse :: Type -> Type #

NFData DeactivateMFADeviceResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

type Rep DeactivateMFADeviceResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeactivateMFADevice

type Rep DeactivateMFADeviceResponse = D1 (MetaData "DeactivateMFADeviceResponse" "Network.AWS.IAM.DeactivateMFADevice" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" False) (C1 (MetaCons "DeactivateMFADeviceResponse'" PrefixI False) (U1 :: Type -> Type))