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

Contents

Description

Sets the status of an IAM user's SSH public key to active or inactive. SSH public keys that are inactive cannot be used for authentication. This operation can be used to disable a user's SSH public key as part of a key rotation work flow.

The SSH public key affected by this operation is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide .

Synopsis

Creating a Request

updateSSHPublicKey Source #

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

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

  • uspkUserName - The name of the IAM user associated with the SSH public key. 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: _+=,.@-
  • uspkSSHPublicKeyId - The unique identifier for the SSH public key. This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.
  • uspkStatus - The status to assign to the SSH public key. Active means that the key can be used for authentication with an AWS CodeCommit repository. Inactive means that the key cannot be used.

data UpdateSSHPublicKey Source #

See: updateSSHPublicKey smart constructor.

Instances
Eq UpdateSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

Data UpdateSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

Methods

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

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

toConstr :: UpdateSSHPublicKey -> Constr #

dataTypeOf :: UpdateSSHPublicKey -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

Show UpdateSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

Generic UpdateSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

Associated Types

type Rep UpdateSSHPublicKey :: Type -> Type #

Hashable UpdateSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

AWSRequest UpdateSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

Associated Types

type Rs UpdateSSHPublicKey :: Type #

ToHeaders UpdateSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

ToPath UpdateSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

ToQuery UpdateSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

NFData UpdateSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

Methods

rnf :: UpdateSSHPublicKey -> () #

type Rep UpdateSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

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

Defined in Network.AWS.IAM.UpdateSSHPublicKey

Request Lenses

uspkUserName :: Lens' UpdateSSHPublicKey Text Source #

The name of the IAM user associated with the SSH public key. 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: _+=,.@-

uspkSSHPublicKeyId :: Lens' UpdateSSHPublicKey Text Source #

The unique identifier for the SSH public key. This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.

uspkStatus :: Lens' UpdateSSHPublicKey StatusType Source #

The status to assign to the SSH public key. Active means that the key can be used for authentication with an AWS CodeCommit repository. Inactive means that the key cannot be used.

Destructuring the Response

updateSSHPublicKeyResponse :: UpdateSSHPublicKeyResponse Source #

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

data UpdateSSHPublicKeyResponse Source #

See: updateSSHPublicKeyResponse smart constructor.

Instances
Eq UpdateSSHPublicKeyResponse Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

Data UpdateSSHPublicKeyResponse Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

Methods

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

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

toConstr :: UpdateSSHPublicKeyResponse -> Constr #

dataTypeOf :: UpdateSSHPublicKeyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateSSHPublicKeyResponse Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

Show UpdateSSHPublicKeyResponse Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

Generic UpdateSSHPublicKeyResponse Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

Associated Types

type Rep UpdateSSHPublicKeyResponse :: Type -> Type #

NFData UpdateSSHPublicKeyResponse Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

type Rep UpdateSSHPublicKeyResponse Source # 
Instance details

Defined in Network.AWS.IAM.UpdateSSHPublicKey

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