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 |
Uploads a public key to CloudFront that you can use with signed URLs and signed cookies, or with field-level encryption.
Synopsis
- data CreatePublicKey = CreatePublicKey' {}
- newCreatePublicKey :: PublicKeyConfig -> CreatePublicKey
- createPublicKey_publicKeyConfig :: Lens' CreatePublicKey PublicKeyConfig
- data CreatePublicKeyResponse = CreatePublicKeyResponse' {}
- newCreatePublicKeyResponse :: Int -> CreatePublicKeyResponse
- createPublicKeyResponse_eTag :: Lens' CreatePublicKeyResponse (Maybe Text)
- createPublicKeyResponse_location :: Lens' CreatePublicKeyResponse (Maybe Text)
- createPublicKeyResponse_publicKey :: Lens' CreatePublicKeyResponse (Maybe PublicKey)
- createPublicKeyResponse_httpStatus :: Lens' CreatePublicKeyResponse Int
Creating a Request
data CreatePublicKey Source #
See: newCreatePublicKey
smart constructor.
CreatePublicKey' | |
|
Instances
Create a value of CreatePublicKey
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:publicKeyConfig:CreatePublicKey'
, createPublicKey_publicKeyConfig
- A CloudFront public key configuration.
Request Lenses
createPublicKey_publicKeyConfig :: Lens' CreatePublicKey PublicKeyConfig Source #
A CloudFront public key configuration.
Destructuring the Response
data CreatePublicKeyResponse Source #
See: newCreatePublicKeyResponse
smart constructor.
Instances
newCreatePublicKeyResponse Source #
Create a value of CreatePublicKeyResponse
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:CreatePublicKeyResponse'
, createPublicKeyResponse_eTag
- The identifier for this version of the public key.
$sel:location:CreatePublicKeyResponse'
, createPublicKeyResponse_location
- The URL of the public key.
$sel:publicKey:CreatePublicKeyResponse'
, createPublicKeyResponse_publicKey
- The public key.
$sel:httpStatus:CreatePublicKeyResponse'
, createPublicKeyResponse_httpStatus
- The response's http status code.
Response Lenses
createPublicKeyResponse_eTag :: Lens' CreatePublicKeyResponse (Maybe Text) Source #
The identifier for this version of the public key.
createPublicKeyResponse_location :: Lens' CreatePublicKeyResponse (Maybe Text) Source #
The URL of the public key.
createPublicKeyResponse_publicKey :: Lens' CreatePublicKeyResponse (Maybe PublicKey) Source #
The public key.
createPublicKeyResponse_httpStatus :: Lens' CreatePublicKeyResponse Int Source #
The response's http status code.