Uploads an SSH public key and associates it with the specified IAM user.
The SSH public key uploaded by this operation can be used only for authenticating the
associated IAM user to an CodeCommit repository. For more information about using SSH keys
to authenticate to an CodeCommit repository, see Set up CodeCommit for
SSH connections in the CodeCommit User Guide.
Example
Use a bare-bones client and the command you need to make an API call.
The request was rejected because it attempted to create resources beyond the current
Amazon Web Services account limits. The error message describes the limit exceeded.
Uploads an SSH public key and associates it with the specified IAM user.
The SSH public key uploaded by this operation can be used only for authenticating the associated IAM user to an CodeCommit repository. For more information about using SSH keys to authenticate to an CodeCommit repository, see Set up CodeCommit for SSH connections in the CodeCommit User Guide.
Example
Use a bare-bones client and the command you need to make an API call.
Param
UploadSSHPublicKeyCommandInput
Returns
UploadSSHPublicKeyCommandOutput
See
input
shape.response
shape.config
shape.Throws
DuplicateSSHPublicKeyException (client fault)
The request was rejected because the SSH public key is already associated with the specified IAM user.
Throws
InvalidPublicKeyException (client fault)
The request was rejected because the public key is malformed or otherwise invalid.
Throws
LimitExceededException (client fault)
The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
Throws
NoSuchEntityException (client fault)
The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
Throws
UnrecognizedPublicKeyEncodingException (client fault)
The request was rejected because the public key encoding format is unsupported or unrecognized.
Throws
IAMServiceException
Base exception class for all service exceptions from IAM service.