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 |
Retrieves the specified SSH public key, including metadata about the key.
The SSH public key retrieved 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.
See: AWS API Reference for GetSSHPublicKey.
- 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:
data GetSSHPublicKey Source
See: getSSHPublicKey
smart constructor.
Request Lenses
gspkUserName :: Lens' GetSSHPublicKey Text Source
The name of the IAM user associated with the SSH public key.
gspkSSHPublicKeyId :: Lens' GetSSHPublicKey Text Source
The unique identifier for the SSH public key.
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:
data GetSSHPublicKeyResponse Source
Contains the response to a successful GetSSHPublicKey request.
See: getSSHPublicKeyResponse
smart constructor.
Response Lenses
gspkrsSSHPublicKey :: Lens' GetSSHPublicKeyResponse (Maybe SSHPublicKey) Source
Information about the SSH public key.
gspkrsResponseStatus :: Lens' GetSSHPublicKeyResponse Int Source
The response status code.