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

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. The regex pattern for this parameter is 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. The regex pattern for this parameter is 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 #

See: updateSigningCertificate smart constructor.

Instances

Eq UpdateSigningCertificate # 
Data UpdateSigningCertificate # 

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 # 
Show UpdateSigningCertificate # 
Generic UpdateSigningCertificate # 
Hashable UpdateSigningCertificate # 
NFData UpdateSigningCertificate # 
AWSRequest UpdateSigningCertificate # 
ToQuery UpdateSigningCertificate # 
ToPath UpdateSigningCertificate # 
ToHeaders UpdateSigningCertificate # 
type Rep UpdateSigningCertificate # 
type Rep UpdateSigningCertificate = D1 (MetaData "UpdateSigningCertificate" "Network.AWS.IAM.UpdateSigningCertificate" "amazonka-iam-1.4.5-1ijrgQyRuWgA7Tx0390Dx2" 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 # 

Request Lenses

uscUserName :: Lens' UpdateSigningCertificate (Maybe Text) #

The name of the IAM user the signing certificate belongs to. The regex pattern for this parameter is 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 #

The ID of the signing certificate you want to update. The regex pattern for this parameter is a string of characters that can consist of any upper or lowercased letter or digit.

uscStatus :: Lens' UpdateSigningCertificate StatusType #

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 #

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

data UpdateSigningCertificateResponse #

See: updateSigningCertificateResponse smart constructor.

Instances

Eq UpdateSigningCertificateResponse # 
Data UpdateSigningCertificateResponse # 

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 # 
Show UpdateSigningCertificateResponse # 
Generic UpdateSigningCertificateResponse # 
NFData UpdateSigningCertificateResponse # 
type Rep UpdateSigningCertificateResponse # 
type Rep UpdateSigningCertificateResponse = D1 (MetaData "UpdateSigningCertificateResponse" "Network.AWS.IAM.UpdateSigningCertificate" "amazonka-iam-1.4.5-1ijrgQyRuWgA7Tx0390Dx2" False) (C1 (MetaCons "UpdateSigningCertificateResponse'" PrefixI False) U1)