Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data CreateDistribution = CreateDistribution' {}
- newCreateDistribution :: DistributionConfig -> CreateDistribution
- createDistribution_distributionConfig :: Lens' CreateDistribution DistributionConfig
- data CreateDistributionResponse = CreateDistributionResponse' {
- eTag :: Maybe Text
- distribution :: Maybe Distribution
- location :: Maybe Text
- httpStatus :: Int
- newCreateDistributionResponse :: Int -> CreateDistributionResponse
- createDistributionResponse_eTag :: Lens' CreateDistributionResponse (Maybe Text)
- createDistributionResponse_distribution :: Lens' CreateDistributionResponse (Maybe Distribution)
- createDistributionResponse_location :: Lens' CreateDistributionResponse (Maybe Text)
- createDistributionResponse_httpStatus :: Lens' CreateDistributionResponse Int
Creating a Request
data CreateDistribution Source #
The request to create a new distribution.
See: newCreateDistribution
smart constructor.
CreateDistribution' | |
|
Instances
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
createDistribution_distributionConfig :: Lens' CreateDistribution DistributionConfig Source #
The distribution's configuration information.
Destructuring the Response
data CreateDistributionResponse Source #
The returned result of the corresponding request.
See: newCreateDistributionResponse
smart constructor.
CreateDistributionResponse' | |
|
Instances
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_distribution :: Lens' CreateDistributionResponse (Maybe Distribution) Source #
The distribution's information.
createDistributionResponse_location :: Lens' CreateDistributionResponse (Maybe Text) Source #
The fully qualified URI of the new distribution resource just created.
createDistributionResponse_httpStatus :: Lens' CreateDistributionResponse Int Source #
The response's http status code.