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

Copyright(c) 2013-2017 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.UpdateSigningCertificate

Contents

Description

Changes the status of the specified user signing certificate from active to disabled, or vice versa. This action can be used to disable an IAM user's signing certificate as part of a certificate 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.

Synopsis

Creating a Request

updateSigningCertificate Source #

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

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

  • uscUserName - The name of the IAM user the signing certificate belongs to. 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: =,.@-
  • uscCertificateId - The ID of the signing certificate you want to update. This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.
  • uscStatus - The status you want to assign to the certificate. Active means the certificate can be used for API calls to AWS, while Inactive means the certificate cannot be used.

data UpdateSigningCertificate Source #

See: updateSigningCertificate smart constructor.

Instances

Eq UpdateSigningCertificate Source # 
Data UpdateSigningCertificate Source # 

Methods

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

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

toConstr :: UpdateSigningCertificate -> Constr #

dataTypeOf :: UpdateSigningCertificate -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateSigningCertificate Source # 
Show UpdateSigningCertificate Source # 
Generic UpdateSigningCertificate Source # 
Hashable UpdateSigningCertificate Source # 
NFData UpdateSigningCertificate Source # 
AWSRequest UpdateSigningCertificate Source # 
ToQuery UpdateSigningCertificate Source # 
ToPath UpdateSigningCertificate Source # 
ToHeaders UpdateSigningCertificate Source # 
type Rep UpdateSigningCertificate Source # 
type Rep UpdateSigningCertificate = D1 (MetaData "UpdateSigningCertificate" "Network.AWS.IAM.UpdateSigningCertificate" "amazonka-iam-1.5.0-2w4nVHAOrDgI2P1QVLKd9e" False) (C1 (MetaCons "UpdateSigningCertificate'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_uscUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_uscCertificateId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_uscStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 StatusType)))))
type Rs UpdateSigningCertificate Source # 

Request Lenses

uscUserName :: Lens' UpdateSigningCertificate (Maybe Text) Source #

The name of the IAM user the signing certificate belongs to. 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: =,.@-

uscCertificateId :: Lens' UpdateSigningCertificate Text Source #

The ID of the signing certificate you want to update. This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.

uscStatus :: Lens' UpdateSigningCertificate StatusType Source #

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

Destructuring the Response

updateSigningCertificateResponse :: UpdateSigningCertificateResponse Source #

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

data UpdateSigningCertificateResponse Source #

See: updateSigningCertificateResponse smart constructor.

Instances

Eq UpdateSigningCertificateResponse Source # 
Data UpdateSigningCertificateResponse Source # 

Methods

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

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

toConstr :: UpdateSigningCertificateResponse -> Constr #

dataTypeOf :: UpdateSigningCertificateResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateSigningCertificateResponse Source # 
Show UpdateSigningCertificateResponse Source # 
Generic UpdateSigningCertificateResponse Source # 
NFData UpdateSigningCertificateResponse Source # 
type Rep UpdateSigningCertificateResponse Source # 
type Rep UpdateSigningCertificateResponse = D1 (MetaData "UpdateSigningCertificateResponse" "Network.AWS.IAM.UpdateSigningCertificate" "amazonka-iam-1.5.0-2w4nVHAOrDgI2P1QVLKd9e" False) (C1 (MetaCons "UpdateSigningCertificateResponse'" PrefixI False) U1)