Copyright | (c) 2013-2021 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 |
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 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.
Synopsis
- data GetSSHPublicKey = GetSSHPublicKey' {}
- newGetSSHPublicKey :: Text -> Text -> EncodingType -> GetSSHPublicKey
- getSSHPublicKey_userName :: Lens' GetSSHPublicKey Text
- getSSHPublicKey_sSHPublicKeyId :: Lens' GetSSHPublicKey Text
- getSSHPublicKey_encoding :: Lens' GetSSHPublicKey EncodingType
- data GetSSHPublicKeyResponse = GetSSHPublicKeyResponse' {}
- newGetSSHPublicKeyResponse :: Int -> GetSSHPublicKeyResponse
- getSSHPublicKeyResponse_sSHPublicKey :: Lens' GetSSHPublicKeyResponse (Maybe SSHPublicKey)
- getSSHPublicKeyResponse_httpStatus :: Lens' GetSSHPublicKeyResponse Int
Creating a Request
data GetSSHPublicKey Source #
See: newGetSSHPublicKey
smart constructor.
GetSSHPublicKey' | |
|
Instances
:: Text | |
-> Text | |
-> EncodingType | |
-> GetSSHPublicKey |
Create a value of GetSSHPublicKey
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:userName:GetSSHPublicKey'
, getSSHPublicKey_userName
- The name of the IAM user associated with the SSH public key.
This parameter allows (through 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: _+=,.@-
$sel:sSHPublicKeyId:GetSSHPublicKey'
, getSSHPublicKey_sSHPublicKeyId
- The unique identifier for the SSH public key.
This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.
$sel:encoding:GetSSHPublicKey'
, getSSHPublicKey_encoding
- 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
.
Request Lenses
getSSHPublicKey_userName :: Lens' GetSSHPublicKey Text Source #
The name of the IAM user associated with the SSH public key.
This parameter allows (through 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: _+=,.@-
getSSHPublicKey_sSHPublicKeyId :: Lens' GetSSHPublicKey Text Source #
The unique identifier for the SSH public key.
This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.
getSSHPublicKey_encoding :: 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
data GetSSHPublicKeyResponse Source #
Contains the response to a successful GetSSHPublicKey request.
See: newGetSSHPublicKeyResponse
smart constructor.
GetSSHPublicKeyResponse' | |
|
Instances
newGetSSHPublicKeyResponse Source #
Create a value of GetSSHPublicKeyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:sSHPublicKey:GetSSHPublicKeyResponse'
, getSSHPublicKeyResponse_sSHPublicKey
- A structure containing details about the SSH public key.
$sel:httpStatus:GetSSHPublicKeyResponse'
, getSSHPublicKeyResponse_httpStatus
- The response's http status code.
Response Lenses
getSSHPublicKeyResponse_sSHPublicKey :: Lens' GetSSHPublicKeyResponse (Maybe SSHPublicKey) Source #
A structure containing details about the SSH public key.
getSSHPublicKeyResponse_httpStatus :: Lens' GetSSHPublicKeyResponse Int Source #
The response's http status code.