Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Add a new public key to CloudFront to use, for example, for field-level encryption. You can add a maximum of 10 public keys with one AWS account.
Synopsis
- createPublicKey :: PublicKeyConfig -> CreatePublicKey
- data CreatePublicKey
- cpkPublicKeyConfig :: Lens' CreatePublicKey PublicKeyConfig
- createPublicKeyResponse :: Int -> CreatePublicKeyResponse
- data CreatePublicKeyResponse
- cpkrsETag :: Lens' CreatePublicKeyResponse (Maybe Text)
- cpkrsLocation :: Lens' CreatePublicKeyResponse (Maybe Text)
- cpkrsPublicKey :: Lens' CreatePublicKeyResponse (Maybe PublicKey)
- cpkrsResponseStatus :: Lens' CreatePublicKeyResponse Int
Creating a Request
Creates a value of CreatePublicKey
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cpkPublicKeyConfig
- The request to add a public key to CloudFront.
data CreatePublicKey Source #
See: createPublicKey
smart constructor.
Instances
Request Lenses
cpkPublicKeyConfig :: Lens' CreatePublicKey PublicKeyConfig Source #
The request to add a public key to CloudFront.
Destructuring the Response
createPublicKeyResponse Source #
Creates a value of CreatePublicKeyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cpkrsETag
- The current version of the public key. For example:E2QWRUHAPOMQZL
.cpkrsLocation
- The fully qualified URI of the new public key resource just created. For example:https://cloudfront.amazonaws.com/2010-11-01/cloudfront-public-key/EDFDVBD632BHDS5
.cpkrsPublicKey
- Returned when you add a public key.cpkrsResponseStatus
- -- | The response status code.
data CreatePublicKeyResponse Source #
See: createPublicKeyResponse
smart constructor.
Instances
Response Lenses
cpkrsETag :: Lens' CreatePublicKeyResponse (Maybe Text) Source #
The current version of the public key. For example: E2QWRUHAPOMQZL
.
cpkrsLocation :: Lens' CreatePublicKeyResponse (Maybe Text) Source #
The fully qualified URI of the new public key resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/cloudfront-public-key/EDFDVBD632BHDS5
.
cpkrsPublicKey :: Lens' CreatePublicKeyResponse (Maybe PublicKey) Source #
Returned when you add a public key.
cpkrsResponseStatus :: Lens' CreatePublicKeyResponse Int Source #
- - | The response status code.