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

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <>
Portabilitynon-portable (GHC extensions)
Safe HaskellNone




Sets the status of the specified SSH public key to active or inactive. SSH public keys that are inactive cannot be used for authentication. This action 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 action 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.

See: AWS API Reference for UpdateSSHPublicKey.


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:

Request Lenses

uspkUserName :: Lens' UpdateSSHPublicKey Text Source

The name of the IAM user associated with the SSH public key.

uspkSSHPublicKeyId :: Lens' UpdateSSHPublicKey Text Source

The unique identifier for the SSH public key.

uspkStatus :: Lens' UpdateSSHPublicKey StatusType Source

The status to assign to the SSH public key. Active means the key can be used for authentication with an AWS CodeCommit repository. Inactive means 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.