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 |
Copies the staging distribution's configuration to its corresponding
primary distribution. The primary distribution retains its Aliases
(also known as alternate domain names or CNAMEs) and
ContinuousDeploymentPolicyId
value, but otherwise its configuration is
overwritten to match the staging distribution.
You can use this operation in a continuous deployment workflow after you have tested configuration changes on the staging distribution. After using a continuous deployment policy to move a portion of your domain name's traffic to the staging distribution and verifying that it works as intended, you can use this operation to copy the staging distribution's configuration to the primary distribution. This action will disable the continuous deployment policy and move your domain's traffic back to the primary distribution.
Synopsis
- data UpdateDistributionWithStagingConfig = UpdateDistributionWithStagingConfig' {}
- newUpdateDistributionWithStagingConfig :: Text -> UpdateDistributionWithStagingConfig
- updateDistributionWithStagingConfig_ifMatch :: Lens' UpdateDistributionWithStagingConfig (Maybe Text)
- updateDistributionWithStagingConfig_stagingDistributionId :: Lens' UpdateDistributionWithStagingConfig (Maybe Text)
- updateDistributionWithStagingConfig_id :: Lens' UpdateDistributionWithStagingConfig Text
- data UpdateDistributionWithStagingConfigResponse = UpdateDistributionWithStagingConfigResponse' {
- distribution :: Maybe Distribution
- eTag :: Maybe Text
- httpStatus :: Int
- newUpdateDistributionWithStagingConfigResponse :: Int -> UpdateDistributionWithStagingConfigResponse
- updateDistributionWithStagingConfigResponse_distribution :: Lens' UpdateDistributionWithStagingConfigResponse (Maybe Distribution)
- updateDistributionWithStagingConfigResponse_eTag :: Lens' UpdateDistributionWithStagingConfigResponse (Maybe Text)
- updateDistributionWithStagingConfigResponse_httpStatus :: Lens' UpdateDistributionWithStagingConfigResponse Int
Creating a Request
data UpdateDistributionWithStagingConfig Source #
See: newUpdateDistributionWithStagingConfig
smart constructor.
UpdateDistributionWithStagingConfig' | |
|
Instances
newUpdateDistributionWithStagingConfig Source #
Create a value of UpdateDistributionWithStagingConfig
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:UpdateDistributionWithStagingConfig'
, updateDistributionWithStagingConfig_ifMatch
- The current versions (ETag
values) of both primary and staging
distributions. Provide these in the following format:
<primary ETag>, <staging ETag>
$sel:stagingDistributionId:UpdateDistributionWithStagingConfig'
, updateDistributionWithStagingConfig_stagingDistributionId
- The identifier of the staging distribution whose configuration you are
copying to the primary distribution.
UpdateDistributionWithStagingConfig
, updateDistributionWithStagingConfig_id
- The identifier of the primary distribution to which you are copying a
staging distribution's configuration.
Request Lenses
updateDistributionWithStagingConfig_ifMatch :: Lens' UpdateDistributionWithStagingConfig (Maybe Text) Source #
The current versions (ETag
values) of both primary and staging
distributions. Provide these in the following format:
<primary ETag>, <staging ETag>
updateDistributionWithStagingConfig_stagingDistributionId :: Lens' UpdateDistributionWithStagingConfig (Maybe Text) Source #
The identifier of the staging distribution whose configuration you are copying to the primary distribution.
updateDistributionWithStagingConfig_id :: Lens' UpdateDistributionWithStagingConfig Text Source #
The identifier of the primary distribution to which you are copying a staging distribution's configuration.
Destructuring the Response
data UpdateDistributionWithStagingConfigResponse Source #
See: newUpdateDistributionWithStagingConfigResponse
smart constructor.
UpdateDistributionWithStagingConfigResponse' | |
|
Instances
newUpdateDistributionWithStagingConfigResponse Source #
:: Int |
|
-> UpdateDistributionWithStagingConfigResponse |
Create a value of UpdateDistributionWithStagingConfigResponse
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:UpdateDistributionWithStagingConfigResponse'
, updateDistributionWithStagingConfigResponse_distribution
- Undocumented member.
$sel:eTag:UpdateDistributionWithStagingConfigResponse'
, updateDistributionWithStagingConfigResponse_eTag
- The current version of the primary distribution (after it's updated).
$sel:httpStatus:UpdateDistributionWithStagingConfigResponse'
, updateDistributionWithStagingConfigResponse_httpStatus
- The response's http status code.
Response Lenses
updateDistributionWithStagingConfigResponse_distribution :: Lens' UpdateDistributionWithStagingConfigResponse (Maybe Distribution) Source #
Undocumented member.
updateDistributionWithStagingConfigResponse_eTag :: Lens' UpdateDistributionWithStagingConfigResponse (Maybe Text) Source #
The current version of the primary distribution (after it's updated).
updateDistributionWithStagingConfigResponse_httpStatus :: Lens' UpdateDistributionWithStagingConfigResponse Int Source #
The response's http status code.