amazonka-cloudfront-1.4.5: Amazon CloudFront SDK.

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

Network.AWS.CloudFront.CreateDistribution

Contents

Description

Creates a new web distribution. Send a GET request to the /CloudFront API version /distribution /distribution ID resource.

Synopsis

Creating a Request

createDistribution #

Creates a value of CreateDistribution with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateDistribution #

The request to create a new distribution.

See: createDistribution smart constructor.

Instances

Eq CreateDistribution # 
Data CreateDistribution # 

Methods

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

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

toConstr :: CreateDistribution -> Constr #

dataTypeOf :: CreateDistribution -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDistribution # 
Show CreateDistribution # 
Generic CreateDistribution # 
Hashable CreateDistribution # 
NFData CreateDistribution # 

Methods

rnf :: CreateDistribution -> () #

AWSRequest CreateDistribution # 
ToElement CreateDistribution # 
ToQuery CreateDistribution # 
ToPath CreateDistribution # 
ToHeaders CreateDistribution # 
type Rep CreateDistribution # 
type Rep CreateDistribution = D1 (MetaData "CreateDistribution" "Network.AWS.CloudFront.CreateDistribution" "amazonka-cloudfront-1.4.5-ASj3DZfX0V52Qz3IKSFVrZ" True) (C1 (MetaCons "CreateDistribution'" PrefixI True) (S1 (MetaSel (Just Symbol "_cdDistributionConfig") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 DistributionConfig)))
type Rs CreateDistribution # 

Request Lenses

cdDistributionConfig :: Lens' CreateDistribution DistributionConfig #

The distribution's configuration information.

Destructuring the Response

createDistributionResponse #

Creates a value of CreateDistributionResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateDistributionResponse #

The returned result of the corresponding request.

See: createDistributionResponse smart constructor.

Instances

Eq CreateDistributionResponse # 
Data CreateDistributionResponse # 

Methods

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

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

toConstr :: CreateDistributionResponse -> Constr #

dataTypeOf :: CreateDistributionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDistributionResponse # 
Show CreateDistributionResponse # 
Generic CreateDistributionResponse # 
NFData CreateDistributionResponse # 
type Rep CreateDistributionResponse # 
type Rep CreateDistributionResponse = D1 (MetaData "CreateDistributionResponse" "Network.AWS.CloudFront.CreateDistribution" "amazonka-cloudfront-1.4.5-ASj3DZfX0V52Qz3IKSFVrZ" False) (C1 (MetaCons "CreateDistributionResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cdrsETag") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cdrsDistribution") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Distribution)))) ((:*:) (S1 (MetaSel (Just Symbol "_cdrsLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

cdrsETag :: Lens' CreateDistributionResponse (Maybe Text) #

The current version of the distribution created.

cdrsLocation :: Lens' CreateDistributionResponse (Maybe Text) #

The fully qualified URI of the new distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/distribution/EDFDVBD632BHDS5 .

cdrsResponseStatus :: Lens' CreateDistributionResponse Int #

  • - | The response status code.