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

Amazonka.CloudFront.CreateDistribution

Description

Creates a new web distribution. You create a CloudFront distribution to tell CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery. Send a POST request to the /CloudFront API version/distribution/distribution ID resource.

When you update a distribution, there are more required fields than when you create a distribution. When you update your distribution by using UpdateDistribution, follow the steps included in the documentation to get the current configuration and then make your updates. This helps to make sure that you include all of the required fields. To view a summary, see Required Fields for Create Distribution and Update Distribution in the Amazon CloudFront Developer Guide.

Synopsis

Creating a Request

data CreateDistribution Source #

The request to create a new distribution.

See: newCreateDistribution smart constructor.

Constructors

CreateDistribution' 

Fields

Instances

Instances details
Eq CreateDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CreateDistribution

Show CreateDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CreateDistribution

Generic CreateDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CreateDistribution

Associated Types

type Rep CreateDistribution :: Type -> Type #

NFData CreateDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CreateDistribution

Methods

rnf :: CreateDistribution -> () #

Hashable CreateDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CreateDistribution

AWSRequest CreateDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CreateDistribution

Associated Types

type AWSResponse CreateDistribution #

ToHeaders CreateDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CreateDistribution

ToPath CreateDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CreateDistribution

ToQuery CreateDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CreateDistribution

ToElement CreateDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CreateDistribution

type Rep CreateDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CreateDistribution

type Rep CreateDistribution = D1 ('MetaData "CreateDistribution" "Amazonka.CloudFront.CreateDistribution" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "CreateDistribution'" 'PrefixI 'True) (S1 ('MetaSel ('Just "distributionConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DistributionConfig)))
type AWSResponse CreateDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.CreateDistribution

newCreateDistribution Source #

Create a value of CreateDistribution with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:distributionConfig:CreateDistribution', createDistribution_distributionConfig - The distribution's configuration information.

Request Lenses

Destructuring the Response

data CreateDistributionResponse Source #

The returned result of the corresponding request.

See: newCreateDistributionResponse smart constructor.

Constructors

CreateDistributionResponse' 

Fields

Instances

Instances details
Eq CreateDistributionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateDistribution

Show CreateDistributionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateDistribution

Generic CreateDistributionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateDistribution

Associated Types

type Rep CreateDistributionResponse :: Type -> Type #

NFData CreateDistributionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateDistribution

type Rep CreateDistributionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.CreateDistribution

type Rep CreateDistributionResponse = D1 ('MetaData "CreateDistributionResponse" "Amazonka.CloudFront.CreateDistribution" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "CreateDistributionResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "eTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "distribution") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Distribution))) :*: (S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateDistributionResponse Source #

Create a value of CreateDistributionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:eTag:CreateDistributionResponse', createDistributionResponse_eTag - The current version of the distribution created.

$sel:distribution:CreateDistributionResponse', createDistributionResponse_distribution - The distribution's information.

$sel:location:CreateDistributionResponse', createDistributionResponse_location - The fully qualified URI of the new distribution resource just created.

$sel:httpStatus:CreateDistributionResponse', createDistributionResponse_httpStatus - The response's http status code.

Response Lenses

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

The current version of the distribution created.

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

The fully qualified URI of the new distribution resource just created.