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 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.
For information about the parameters that are common to all actions, see Common Parameters.
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.
Length Constraints: Minimum length of 20. Maximum length of 128.
The status to assign to the SSH public key.
Activemeans the key can be used for authentication with an AWS CodeCommit repository.
Inactivemeans the key cannot be used.
Active | Inactive
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: =,.@-
Length Constraints: Minimum length of 1. Maximum length of 64.
For information about the errors that are common to all actions, see Common Errors.
The request was rejected because it referenced an entity that does not exist. The error message describes the entity.
HTTP Status Code: 404
https://iam.amazonaws.com/?Action=UpdateSSHPublicKey &SSHPublicKeyId=APKAEIVFHP46CEXAMPLE &Status=Inactive &UserName=Jane &Version=2010-05-08 &AUTHPARAMS
<UpdateSSHPublicKeyResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/"> <ResponseMetadata> <RequestId>d3d9215c-f36b-11e4-97ab-c53b2EXAMPLE</RequestId> </ResponseMetadata> </UpdateSSHPublicKeyResponse>
For more information about using this API in one of the language-specific AWS SDKs, see the following: