amazonka-cloudfront-1.6.1: 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 # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

Data CreatePublicKey Source # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

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 # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

Show CreatePublicKey Source # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

Generic CreatePublicKey Source # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

Associated Types

type Rep CreatePublicKey :: Type -> Type #

Hashable CreatePublicKey Source # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

AWSRequest CreatePublicKey Source # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

Associated Types

type Rs CreatePublicKey :: Type #

ToElement CreatePublicKey Source # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

ToHeaders CreatePublicKey Source # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

ToPath CreatePublicKey Source # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

ToQuery CreatePublicKey Source # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

NFData CreatePublicKey Source # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

Methods

rnf :: CreatePublicKey -> () #

type Rep CreatePublicKey Source # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

type Rep CreatePublicKey = D1 (MetaData "CreatePublicKey" "Network.AWS.CloudFront.CreatePublicKey" "amazonka-cloudfront-1.6.1-4jyCxtauObV85CKHrmGQe5" True) (C1 (MetaCons "CreatePublicKey'" PrefixI True) (S1 (MetaSel (Just "_cpkPublicKeyConfig") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PublicKeyConfig)))
type Rs CreatePublicKey Source # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

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 # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

Data CreatePublicKeyResponse Source # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

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 # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

Show CreatePublicKeyResponse Source # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

Generic CreatePublicKeyResponse Source # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

Associated Types

type Rep CreatePublicKeyResponse :: Type -> Type #

NFData CreatePublicKeyResponse Source # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

Methods

rnf :: CreatePublicKeyResponse -> () #

type Rep CreatePublicKeyResponse Source # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

type Rep CreatePublicKeyResponse = D1 (MetaData "CreatePublicKeyResponse" "Network.AWS.CloudFront.CreatePublicKey" "amazonka-cloudfront-1.6.1-4jyCxtauObV85CKHrmGQe5" False) (C1 (MetaCons "CreatePublicKeyResponse'" PrefixI True) ((S1 (MetaSel (Just "_cpkrsETag") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cpkrsLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cpkrsPublicKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PublicKey)) :*: S1 (MetaSel (Just "_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.