Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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 operation 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 .
Synopsis
- 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:
usshpkUserName
- The name of the IAM user to associate the SSH public key with. 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: _+=,.@-usshpkSSHPublicKeyBody
- The SSH public key. The public key must be encoded in ssh-rsa format or PEM format. The regex pattern used to validate this parameter is a string of characters consisting of the following: * Any printable ASCII character ranging from the space character (u0020) through the end of the ASCII character range * The printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF) * The special characters tab (u0009), line feed (u000A), and carriage return (u000D)
data UploadSSHPublicKey Source #
See: uploadSSHPublicKey
smart constructor.
Instances
Request Lenses
usshpkUserName :: Lens' UploadSSHPublicKey Text Source #
The name of the IAM user to associate the SSH public key with. 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: _+=,.@-
usshpkSSHPublicKeyBody :: Lens' UploadSSHPublicKey Text Source #
The SSH public key. The public key must be encoded in ssh-rsa format or PEM format. The regex pattern used to validate this parameter is a string of characters consisting of the following: * Any printable ASCII character ranging from the space character (u0020) through the end of the ASCII character range * The printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF) * The special characters tab (u0009), line feed (u000A), and carriage return (u000D)
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:
uspkrsSSHPublicKey
- Contains information about the SSH public key.uspkrsResponseStatus
- -- | The response status code.
data UploadSSHPublicKeyResponse Source #
Contains the response to a successful UploadSSHPublicKey
request.
See: uploadSSHPublicKeyResponse
smart constructor.
Instances
Response Lenses
uspkrsSSHPublicKey :: Lens' UploadSSHPublicKeyResponse (Maybe SSHPublicKey) Source #
Contains information about the SSH public key.
uspkrsResponseStatus :: Lens' UploadSSHPublicKeyResponse Int Source #
- - | The response status code.