| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CloudFront.GetPublicKey
Description
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.
Constructors
| GetPublicKey' | |
Instances
Arguments
| :: Text | |
| -> GetPublicKey |
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:
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.
Constructors
| GetPublicKeyResponse' | |
Instances
newGetPublicKeyResponse Source #
Arguments
| :: Int | |
| -> GetPublicKeyResponse |
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.