Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.CloudFront.CopyDistribution
Description
Creates a staging distribution using the configuration of the provided primary distribution. A staging distribution is a copy of an existing distribution (called the primary distribution) that you can use in a continuous deployment workflow.
After you create a staging distribution, you can use
UpdateDistribution
to modify the staging distribution's
configuration. Then you can use CreateContinuousDeploymentPolicy
to
incrementally move traffic to the staging distribution.
Synopsis
- data CopyDistribution = CopyDistribution' {}
- newCopyDistribution :: Text -> Text -> CopyDistribution
- copyDistribution_ifMatch :: Lens' CopyDistribution (Maybe Text)
- copyDistribution_staging :: Lens' CopyDistribution (Maybe Bool)
- copyDistribution_primaryDistributionId :: Lens' CopyDistribution Text
- copyDistribution_callerReference :: Lens' CopyDistribution Text
- data CopyDistributionResponse = CopyDistributionResponse' {
- distribution :: Maybe Distribution
- eTag :: Maybe Text
- location :: Maybe Text
- httpStatus :: Int
- newCopyDistributionResponse :: Int -> CopyDistributionResponse
- copyDistributionResponse_distribution :: Lens' CopyDistributionResponse (Maybe Distribution)
- copyDistributionResponse_eTag :: Lens' CopyDistributionResponse (Maybe Text)
- copyDistributionResponse_location :: Lens' CopyDistributionResponse (Maybe Text)
- copyDistributionResponse_httpStatus :: Lens' CopyDistributionResponse Int
Creating a Request
data CopyDistribution Source #
See: newCopyDistribution
smart constructor.
Constructors
CopyDistribution' | |
Fields
|
Instances
Arguments
:: Text | |
-> Text | |
-> CopyDistribution |
Create a value of CopyDistribution
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:ifMatch:CopyDistribution'
, copyDistribution_ifMatch
- The version identifier of the primary distribution whose configuration
you are copying. This is the ETag
value returned in the response to
GetDistribution
and GetDistributionConfig
.
CopyDistribution
, copyDistribution_staging
- The type of distribution that your primary distribution will be copied
to. The only valid value is True
, indicating that you are copying to a
staging distribution.
$sel:primaryDistributionId:CopyDistribution'
, copyDistribution_primaryDistributionId
- The identifier of the primary distribution whose configuration you are
copying. To get a distribution ID, use ListDistributions
.
CopyDistribution
, copyDistribution_callerReference
- A value that uniquely identifies a request to create a resource. This
helps to prevent CloudFront from creating a duplicate resource if you
accidentally resubmit an identical request.
Request Lenses
copyDistribution_ifMatch :: Lens' CopyDistribution (Maybe Text) Source #
The version identifier of the primary distribution whose configuration
you are copying. This is the ETag
value returned in the response to
GetDistribution
and GetDistributionConfig
.
copyDistribution_staging :: Lens' CopyDistribution (Maybe Bool) Source #
The type of distribution that your primary distribution will be copied
to. The only valid value is True
, indicating that you are copying to a
staging distribution.
copyDistribution_primaryDistributionId :: Lens' CopyDistribution Text Source #
The identifier of the primary distribution whose configuration you are
copying. To get a distribution ID, use ListDistributions
.
copyDistribution_callerReference :: Lens' CopyDistribution Text Source #
A value that uniquely identifies a request to create a resource. This helps to prevent CloudFront from creating a duplicate resource if you accidentally resubmit an identical request.
Destructuring the Response
data CopyDistributionResponse Source #
See: newCopyDistributionResponse
smart constructor.
Constructors
CopyDistributionResponse' | |
Fields
|
Instances
newCopyDistributionResponse Source #
Create a value of CopyDistributionResponse
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:distribution:CopyDistributionResponse'
, copyDistributionResponse_distribution
- Undocumented member.
$sel:eTag:CopyDistributionResponse'
, copyDistributionResponse_eTag
- The version identifier for the current version of the staging
distribution.
$sel:location:CopyDistributionResponse'
, copyDistributionResponse_location
- The URL of the staging distribution.
$sel:httpStatus:CopyDistributionResponse'
, copyDistributionResponse_httpStatus
- The response's http status code.
Response Lenses
copyDistributionResponse_distribution :: Lens' CopyDistributionResponse (Maybe Distribution) Source #
Undocumented member.
copyDistributionResponse_eTag :: Lens' CopyDistributionResponse (Maybe Text) Source #
The version identifier for the current version of the staging distribution.
copyDistributionResponse_location :: Lens' CopyDistributionResponse (Maybe Text) Source #
The URL of the staging distribution.
copyDistributionResponse_httpStatus :: Lens' CopyDistributionResponse Int Source #
The response's http status code.