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 #

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 #

See: createPublicKey smart constructor.

Instances
Eq CreatePublicKey # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

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

Defined in Network.AWS.CloudFront.CreatePublicKey

Show CreatePublicKey # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

Generic CreatePublicKey # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

Associated Types

type Rep CreatePublicKey :: * -> * #

Hashable CreatePublicKey # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

AWSRequest CreatePublicKey # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

Associated Types

type Rs CreatePublicKey :: * #

ToElement CreatePublicKey # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

ToHeaders CreatePublicKey # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

ToPath CreatePublicKey # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

ToQuery CreatePublicKey # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

NFData CreatePublicKey # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

Methods

rnf :: CreatePublicKey -> () #

type Rep CreatePublicKey # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

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

Defined in Network.AWS.CloudFront.CreatePublicKey

Request Lenses

cpkPublicKeyConfig :: Lens' CreatePublicKey PublicKeyConfig #

The request to add a public key to CloudFront.

Destructuring the Response

createPublicKeyResponse #

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 #

See: createPublicKeyResponse smart constructor.

Instances
Eq CreatePublicKeyResponse # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

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

Defined in Network.AWS.CloudFront.CreatePublicKey

Show CreatePublicKeyResponse # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

Generic CreatePublicKeyResponse # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

Associated Types

type Rep CreatePublicKeyResponse :: * -> * #

NFData CreatePublicKeyResponse # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

Methods

rnf :: CreatePublicKeyResponse -> () #

type Rep CreatePublicKeyResponse # 
Instance details

Defined in Network.AWS.CloudFront.CreatePublicKey

type Rep CreatePublicKeyResponse = D1 (MetaData "CreatePublicKeyResponse" "Network.AWS.CloudFront.CreatePublicKey" "amazonka-cloudfront-1.6.0-UYFoUyWv9X385WP5RsDEn" 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) #

The current version of the public key. For example: E2QWRUHAPOMQZL .

cpkrsLocation :: Lens' CreatePublicKeyResponse (Maybe Text) #

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) #

Returned when you add a public key.

cpkrsResponseStatus :: Lens' CreatePublicKeyResponse Int #

  • - | The response status code.