amazonka-iam-1.6.1: 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.UpdateSigningCertificate

Contents

Description

Changes the status of the specified user signing certificate from active to disabled, or vice versa. This operation 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 user name is determined implicitly based on the AWS access key ID used to sign 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

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 that the certificate can be used for API calls to AWS Inactive means that the certificate cannot be used.

data UpdateSigningCertificate Source #

See: updateSigningCertificate smart constructor.

Instances
Eq UpdateSigningCertificate Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

Data UpdateSigningCertificate Source # 
Instance details

Defined in Network.AWS.IAM.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 Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

Show UpdateSigningCertificate Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

Generic UpdateSigningCertificate Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

Associated Types

type Rep UpdateSigningCertificate :: Type -> Type #

Hashable UpdateSigningCertificate Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

AWSRequest UpdateSigningCertificate Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

Associated Types

type Rs UpdateSigningCertificate :: Type #

ToHeaders UpdateSigningCertificate Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

ToPath UpdateSigningCertificate Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

ToQuery UpdateSigningCertificate Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

NFData UpdateSigningCertificate Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

type Rep UpdateSigningCertificate Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

type Rep UpdateSigningCertificate = D1 (MetaData "UpdateSigningCertificate" "Network.AWS.IAM.UpdateSigningCertificate" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" False) (C1 (MetaCons "UpdateSigningCertificate'" PrefixI True) (S1 (MetaSel (Just "_uscUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_uscCertificateId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_uscStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 StatusType))))
type Rs UpdateSigningCertificate Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

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 that the certificate can be used for API calls to AWS Inactive means that 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 # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

Data UpdateSigningCertificateResponse Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

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 # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

Show UpdateSigningCertificateResponse Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

Generic UpdateSigningCertificateResponse Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

Associated Types

type Rep UpdateSigningCertificateResponse :: Type -> Type #

NFData UpdateSigningCertificateResponse Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

type Rep UpdateSigningCertificateResponse Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSigningCertificate

type Rep UpdateSigningCertificateResponse = D1 (MetaData "UpdateSigningCertificateResponse" "Network.AWS.IAM.UpdateSigningCertificate" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" False) (C1 (MetaCons "UpdateSigningCertificateResponse'" PrefixI False) (U1 :: Type -> Type))