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.CreateDistribution

Contents

Description

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

Synopsis

Creating a Request

createDistribution Source #

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

The request to create a new distribution.

See: createDistribution smart constructor.

Instances
Eq CreateDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.CreateDistribution

Data CreateDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.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 Source # 
Instance details

Defined in Network.AWS.CloudFront.CreateDistribution

Show CreateDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.CreateDistribution

Generic CreateDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.CreateDistribution

Associated Types

type Rep CreateDistribution :: Type -> Type #

Hashable CreateDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.CreateDistribution

AWSRequest CreateDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.CreateDistribution

Associated Types

type Rs CreateDistribution :: Type #

ToElement CreateDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.CreateDistribution

ToHeaders CreateDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.CreateDistribution

ToPath CreateDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.CreateDistribution

ToQuery CreateDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.CreateDistribution

NFData CreateDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.CreateDistribution

Methods

rnf :: CreateDistribution -> () #

type Rep CreateDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.CreateDistribution

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

Defined in Network.AWS.CloudFront.CreateDistribution

Request Lenses

cdDistributionConfig :: Lens' CreateDistribution DistributionConfig Source #

The distribution's configuration information.

Destructuring the Response

createDistributionResponse Source #

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

The returned result of the corresponding request.

See: createDistributionResponse smart constructor.

Instances
Eq CreateDistributionResponse Source # 
Instance details

Defined in Network.AWS.CloudFront.CreateDistribution

Data CreateDistributionResponse Source # 
Instance details

Defined in Network.AWS.CloudFront.CreateDistribution

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

Defined in Network.AWS.CloudFront.CreateDistribution

Show CreateDistributionResponse Source # 
Instance details

Defined in Network.AWS.CloudFront.CreateDistribution

Generic CreateDistributionResponse Source # 
Instance details

Defined in Network.AWS.CloudFront.CreateDistribution

Associated Types

type Rep CreateDistributionResponse :: Type -> Type #

NFData CreateDistributionResponse Source # 
Instance details

Defined in Network.AWS.CloudFront.CreateDistribution

type Rep CreateDistributionResponse Source # 
Instance details

Defined in Network.AWS.CloudFront.CreateDistribution

type Rep CreateDistributionResponse = D1 (MetaData "CreateDistributionResponse" "Network.AWS.CloudFront.CreateDistribution" "amazonka-cloudfront-1.6.1-4jyCxtauObV85CKHrmGQe5" False) (C1 (MetaCons "CreateDistributionResponse'" PrefixI True) ((S1 (MetaSel (Just "_cdrsETag") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cdrsDistribution") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Distribution))) :*: (S1 (MetaSel (Just "_cdrsLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

cdrsETag :: Lens' CreateDistributionResponse (Maybe Text) Source #

The current version of the distribution created.

cdrsLocation :: Lens' CreateDistributionResponse (Maybe Text) Source #

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