amazonka-iam-1.6.0: 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 #

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

Eq DeactivateMFADevice # 
Data 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 # 
Show DeactivateMFADevice # 
Generic DeactivateMFADevice # 
Hashable DeactivateMFADevice # 
NFData DeactivateMFADevice # 

Methods

rnf :: DeactivateMFADevice -> () #

AWSRequest DeactivateMFADevice # 
ToHeaders DeactivateMFADevice # 
ToPath DeactivateMFADevice # 
ToQuery DeactivateMFADevice # 
type Rep DeactivateMFADevice # 
type Rep DeactivateMFADevice = D1 * (MetaData "DeactivateMFADevice" "Network.AWS.IAM.DeactivateMFADevice" "amazonka-iam-1.6.0-1EzdHSXYgBWIEzsCXYmity" False) (C1 * (MetaCons "DeactivateMFADevice'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dmdUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_dmdSerialNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs DeactivateMFADevice # 

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.

Instances

Eq DeactivateMFADeviceResponse # 
Data DeactivateMFADeviceResponse # 

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 # 
Show DeactivateMFADeviceResponse # 
Generic DeactivateMFADeviceResponse # 
NFData DeactivateMFADeviceResponse # 
type Rep DeactivateMFADeviceResponse # 
type Rep DeactivateMFADeviceResponse = D1 * (MetaData "DeactivateMFADeviceResponse" "Network.AWS.IAM.DeactivateMFADevice" "amazonka-iam-1.6.0-1EzdHSXYgBWIEzsCXYmity" False) (C1 * (MetaCons "DeactivateMFADeviceResponse'" PrefixI False) (U1 *))