amazonka-cloudfront-1.6.0: Amazon CloudFront SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudFront.CreatePublicKey

Contents

Description

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

Creating a Request

createPublicKey Source #

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:

data CreatePublicKey Source #

See: createPublicKey smart constructor.

Instances

Eq CreatePublicKey Source # 
Data CreatePublicKey Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreatePublicKey -> c CreatePublicKey #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreatePublicKey #

toConstr :: CreatePublicKey -> Constr #

dataTypeOf :: CreatePublicKey -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreatePublicKey) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreatePublicKey) #

gmapT :: (forall b. Data b => b -> b) -> CreatePublicKey -> CreatePublicKey #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreatePublicKey -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreatePublicKey -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreatePublicKey -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreatePublicKey -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreatePublicKey -> m CreatePublicKey #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreatePublicKey -> m CreatePublicKey #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreatePublicKey -> m CreatePublicKey #

Read CreatePublicKey Source # 
Show CreatePublicKey Source # 
Generic CreatePublicKey Source # 
Hashable CreatePublicKey Source # 
NFData CreatePublicKey Source # 

Methods

rnf :: CreatePublicKey -> () #

AWSRequest CreatePublicKey Source # 
ToElement CreatePublicKey Source # 
ToHeaders CreatePublicKey Source # 
ToPath CreatePublicKey Source # 
ToQuery CreatePublicKey Source # 
type Rep CreatePublicKey Source # 
type Rep CreatePublicKey = D1 * (MetaData "CreatePublicKey" "Network.AWS.CloudFront.CreatePublicKey" "amazonka-cloudfront-1.6.0-GTmJBWQTc5OFcqzFNdHHM3" True) (C1 * (MetaCons "CreatePublicKey'" PrefixI True) (S1 * (MetaSel (Just Symbol "_cpkPublicKeyConfig") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * PublicKeyConfig)))
type Rs CreatePublicKey Source # 

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:

data CreatePublicKeyResponse Source #

See: createPublicKeyResponse smart constructor.

Instances

Eq CreatePublicKeyResponse Source # 
Data CreatePublicKeyResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreatePublicKeyResponse -> c CreatePublicKeyResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreatePublicKeyResponse #

toConstr :: CreatePublicKeyResponse -> Constr #

dataTypeOf :: CreatePublicKeyResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreatePublicKeyResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreatePublicKeyResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreatePublicKeyResponse -> CreatePublicKeyResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreatePublicKeyResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreatePublicKeyResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreatePublicKeyResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreatePublicKeyResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreatePublicKeyResponse -> m CreatePublicKeyResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreatePublicKeyResponse -> m CreatePublicKeyResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreatePublicKeyResponse -> m CreatePublicKeyResponse #

Read CreatePublicKeyResponse Source # 
Show CreatePublicKeyResponse Source # 
Generic CreatePublicKeyResponse Source # 
NFData CreatePublicKeyResponse Source # 

Methods

rnf :: CreatePublicKeyResponse -> () #

type Rep CreatePublicKeyResponse Source # 
type Rep CreatePublicKeyResponse = D1 * (MetaData "CreatePublicKeyResponse" "Network.AWS.CloudFront.CreatePublicKey" "amazonka-cloudfront-1.6.0-GTmJBWQTc5OFcqzFNdHHM3" False) (C1 * (MetaCons "CreatePublicKeyResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cpkrsETag") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cpkrsLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cpkrsPublicKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe PublicKey))) (S1 * (MetaSel (Just Symbol "_cpkrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

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.