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

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

Network.AWS.IAM.UpdateAccessKey

Contents

Description

Changes the status of the specified access key from Active to Inactive, or vice versa. This action can be used to disable a user's key as part of a key rotation work flow.

If the UserName field is not specified, the UserName is determined implicitly based on the AWS access key ID used to sign the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

For information about rotating keys, see Managing Keys and Certificates in the IAM User Guide.

Synopsis

Creating a Request

updateAccessKey Source #

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

Use one of the following lenses to modify other fields as desired:

data UpdateAccessKey Source #

See: updateAccessKey smart constructor.

Instances

Eq UpdateAccessKey Source # 
Data UpdateAccessKey Source # 

Methods

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

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

toConstr :: UpdateAccessKey -> Constr #

dataTypeOf :: UpdateAccessKey -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateAccessKey Source # 
Show UpdateAccessKey Source # 
Generic UpdateAccessKey Source # 
Hashable UpdateAccessKey Source # 
NFData UpdateAccessKey Source # 

Methods

rnf :: UpdateAccessKey -> () #

AWSRequest UpdateAccessKey Source # 
ToQuery UpdateAccessKey Source # 
ToPath UpdateAccessKey Source # 
ToHeaders UpdateAccessKey Source # 
type Rep UpdateAccessKey Source # 
type Rep UpdateAccessKey = D1 (MetaData "UpdateAccessKey" "Network.AWS.IAM.UpdateAccessKey" "amazonka-iam-1.4.1-7UxTCVdPNcf8CA4oHmoXZ6" False) (C1 (MetaCons "UpdateAccessKey'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_uakUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_uakAccessKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_uakStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 StatusType)))))
type Rs UpdateAccessKey Source # 

Request Lenses

uakUserName :: Lens' UpdateAccessKey (Maybe Text) Source #

The name of the user whose key you want to update.

uakAccessKeyId :: Lens' UpdateAccessKey Text Source #

The access key ID of the secret access key you want to update.

uakStatus :: Lens' UpdateAccessKey StatusType Source #

The status you want to assign to the secret access key. Active means the key can be used for API calls to AWS, while Inactive means the key cannot be used.

Destructuring the Response

updateAccessKeyResponse :: UpdateAccessKeyResponse Source #

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

data UpdateAccessKeyResponse Source #

See: updateAccessKeyResponse smart constructor.

Instances

Eq UpdateAccessKeyResponse Source # 
Data UpdateAccessKeyResponse Source # 

Methods

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

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

toConstr :: UpdateAccessKeyResponse -> Constr #

dataTypeOf :: UpdateAccessKeyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateAccessKeyResponse Source # 
Show UpdateAccessKeyResponse Source # 
Generic UpdateAccessKeyResponse Source # 
NFData UpdateAccessKeyResponse Source # 

Methods

rnf :: UpdateAccessKeyResponse -> () #

type Rep UpdateAccessKeyResponse Source # 
type Rep UpdateAccessKeyResponse = D1 (MetaData "UpdateAccessKeyResponse" "Network.AWS.IAM.UpdateAccessKey" "amazonka-iam-1.4.1-7UxTCVdPNcf8CA4oHmoXZ6" False) (C1 (MetaCons "UpdateAccessKeyResponse'" PrefixI False) U1)