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 |
Gets a public key.
Synopsis
- data GetPublicKey = GetPublicKey' {}
- newGetPublicKey :: Text -> GetPublicKey
- getPublicKey_id :: Lens' GetPublicKey Text
- data GetPublicKeyResponse = GetPublicKeyResponse' {}
- newGetPublicKeyResponse :: Int -> GetPublicKeyResponse
- getPublicKeyResponse_eTag :: Lens' GetPublicKeyResponse (Maybe Text)
- getPublicKeyResponse_publicKey :: Lens' GetPublicKeyResponse (Maybe PublicKey)
- getPublicKeyResponse_httpStatus :: Lens' GetPublicKeyResponse Int
Creating a Request
data GetPublicKey Source #
See: newGetPublicKey
smart constructor.
Instances
Create a value of GetPublicKey
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:id:GetPublicKey'
, getPublicKey_id
- The identifier of the public key you are getting.
Request Lenses
getPublicKey_id :: Lens' GetPublicKey Text Source #
The identifier of the public key you are getting.
Destructuring the Response
data GetPublicKeyResponse Source #
See: newGetPublicKeyResponse
smart constructor.
Instances
newGetPublicKeyResponse Source #
Create a value of GetPublicKeyResponse
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:eTag:GetPublicKeyResponse'
, getPublicKeyResponse_eTag
- The identifier for this version of the public key.
$sel:publicKey:GetPublicKeyResponse'
, getPublicKeyResponse_publicKey
- The public key.
$sel:httpStatus:GetPublicKeyResponse'
, getPublicKeyResponse_httpStatus
- The response's http status code.
Response Lenses
getPublicKeyResponse_eTag :: Lens' GetPublicKeyResponse (Maybe Text) Source #
The identifier for this version of the public key.
getPublicKeyResponse_publicKey :: Lens' GetPublicKeyResponse (Maybe PublicKey) Source #
The public key.
getPublicKeyResponse_httpStatus :: Lens' GetPublicKeyResponse Int Source #
The response's http status code.