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 |
Retrieves the specified SSH public key, including metadata about the key.
The SSH public key retrieved by this operation 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 .
Synopsis
- getSSHPublicKey :: Text -> Text -> EncodingType -> GetSSHPublicKey
- data GetSSHPublicKey
- gspkUserName :: Lens' GetSSHPublicKey Text
- gspkSSHPublicKeyId :: Lens' GetSSHPublicKey Text
- gspkEncoding :: Lens' GetSSHPublicKey EncodingType
- getSSHPublicKeyResponse :: Int -> GetSSHPublicKeyResponse
- data GetSSHPublicKeyResponse
- gspkrsSSHPublicKey :: Lens' GetSSHPublicKeyResponse (Maybe SSHPublicKey)
- gspkrsResponseStatus :: Lens' GetSSHPublicKeyResponse Int
Creating a Request
Creates a value of GetSSHPublicKey
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gspkUserName
- 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: _+=,.@-gspkSSHPublicKeyId
- 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.gspkEncoding
- Specifies the public key encoding format to use in the response. To retrieve the public key in ssh-rsa format, useSSH
. To retrieve the public key in PEM format, usePEM
.
data GetSSHPublicKey Source #
See: getSSHPublicKey
smart constructor.
Instances
Request Lenses
gspkUserName :: Lens' GetSSHPublicKey Text Source #
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: _+=,.@-
gspkSSHPublicKeyId :: Lens' GetSSHPublicKey Text Source #
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.
gspkEncoding :: Lens' GetSSHPublicKey EncodingType Source #
Specifies the public key encoding format to use in the response. To retrieve the public key in ssh-rsa format, use SSH
. To retrieve the public key in PEM format, use PEM
.
Destructuring the Response
getSSHPublicKeyResponse Source #
Creates a value of GetSSHPublicKeyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gspkrsSSHPublicKey
- A structure containing details about the SSH public key.gspkrsResponseStatus
- -- | The response status code.
data GetSSHPublicKeyResponse Source #
Contains the response to a successful GetSSHPublicKey
request.
See: getSSHPublicKeyResponse
smart constructor.
Instances
Response Lenses
gspkrsSSHPublicKey :: Lens' GetSSHPublicKeyResponse (Maybe SSHPublicKey) Source #
A structure containing details about the SSH public key.
gspkrsResponseStatus :: Lens' GetSSHPublicKeyResponse Int Source #
- - | The response status code.