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.DeleteAccessKey

Contents

Description

Deletes the access key pair associated with the specified IAM user.

If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this operation works for access keys under the AWS account, you can use this operation to manage AWS account root user credentials even if the AWS account has no associated users.

Synopsis

Creating a Request

deleteAccessKey Source #

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

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

  • dakUserName - The name of the user whose access key pair you want to delete. 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: _+=,.@-
  • dakAccessKeyId - The access key ID for the access key ID and secret access key you want to delete. This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.

data DeleteAccessKey Source #

See: deleteAccessKey smart constructor.

Instances

Eq DeleteAccessKey Source # 
Data DeleteAccessKey Source # 

Methods

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

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

toConstr :: DeleteAccessKey -> Constr #

dataTypeOf :: DeleteAccessKey -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteAccessKey Source # 
Show DeleteAccessKey Source # 
Generic DeleteAccessKey Source # 
Hashable DeleteAccessKey Source # 
NFData DeleteAccessKey Source # 

Methods

rnf :: DeleteAccessKey -> () #

AWSRequest DeleteAccessKey Source # 
ToHeaders DeleteAccessKey Source # 
ToPath DeleteAccessKey Source # 
ToQuery DeleteAccessKey Source # 
type Rep DeleteAccessKey Source # 
type Rep DeleteAccessKey = D1 * (MetaData "DeleteAccessKey" "Network.AWS.IAM.DeleteAccessKey" "amazonka-iam-1.6.0-CI3f7XZIc4eD0Ehb04tNY7" False) (C1 * (MetaCons "DeleteAccessKey'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dakUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_dakAccessKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * AccessKey))))
type Rs DeleteAccessKey Source # 

Request Lenses

dakUserName :: Lens' DeleteAccessKey (Maybe Text) Source #

The name of the user whose access key pair you want to delete. 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: _+=,.@-

dakAccessKeyId :: Lens' DeleteAccessKey AccessKey Source #

The access key ID for the access key ID and secret access key you want to delete. This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.

Destructuring the Response

deleteAccessKeyResponse :: DeleteAccessKeyResponse Source #

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

data DeleteAccessKeyResponse Source #

See: deleteAccessKeyResponse smart constructor.

Instances

Eq DeleteAccessKeyResponse Source # 
Data DeleteAccessKeyResponse Source # 

Methods

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

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

toConstr :: DeleteAccessKeyResponse -> Constr #

dataTypeOf :: DeleteAccessKeyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteAccessKeyResponse Source # 
Show DeleteAccessKeyResponse Source # 
Generic DeleteAccessKeyResponse Source # 
NFData DeleteAccessKeyResponse Source # 

Methods

rnf :: DeleteAccessKeyResponse -> () #

type Rep DeleteAccessKeyResponse Source # 
type Rep DeleteAccessKeyResponse = D1 * (MetaData "DeleteAccessKeyResponse" "Network.AWS.IAM.DeleteAccessKey" "amazonka-iam-1.6.0-CI3f7XZIc4eD0Ehb04tNY7" False) (C1 * (MetaCons "DeleteAccessKeyResponse'" PrefixI False) (U1 *))