Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Uploads an SSH public key and associates it with the specified IAM user.
The SSH public key uploaded by this action can be 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 UploadSSHPublicKey.
- uploadSSHPublicKey :: Text -> Text -> UploadSSHPublicKey
- data UploadSSHPublicKey
- usshpkUserName :: Lens' UploadSSHPublicKey Text
- usshpkSSHPublicKeyBody :: Lens' UploadSSHPublicKey Text
- uploadSSHPublicKeyResponse :: Int -> UploadSSHPublicKeyResponse
- data UploadSSHPublicKeyResponse
- uspkrsSSHPublicKey :: Lens' UploadSSHPublicKeyResponse (Maybe SSHPublicKey)
- uspkrsResponseStatus :: Lens' UploadSSHPublicKeyResponse Int
Creating a Request
Creates a value of UploadSSHPublicKey
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UploadSSHPublicKey Source
See: uploadSSHPublicKey
smart constructor.
Request Lenses
usshpkUserName :: Lens' UploadSSHPublicKey Text Source
The name of the IAM user to associate the SSH public key with.
usshpkSSHPublicKeyBody :: Lens' UploadSSHPublicKey Text Source
The SSH public key. The public key must be encoded in ssh-rsa format or PEM format.
Destructuring the Response
uploadSSHPublicKeyResponse Source
Creates a value of UploadSSHPublicKeyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UploadSSHPublicKeyResponse Source
Contains the response to a successful UploadSSHPublicKey request.
See: uploadSSHPublicKeyResponse
smart constructor.
Response Lenses
uspkrsSSHPublicKey :: Lens' UploadSSHPublicKeyResponse (Maybe SSHPublicKey) Source
Contains information about the SSH public key.
uspkrsResponseStatus :: Lens' UploadSSHPublicKeyResponse Int Source
The response status code.