Create Continuous Deployment Policy
cloudfront_create_continuous_deployment_policy | R Documentation |
Creates a continuous deployment policy that distributes traffic for a custom domain name to two different CloudFront distributions¶
Description¶
Creates a continuous deployment policy that distributes traffic for a custom domain name to two different CloudFront distributions.
To use a continuous deployment policy, first use copy_distribution
to
create a staging distribution, then use update_distribution
to modify
the staging distribution's configuration.
After you create and update a staging distribution, you can use a continuous deployment policy to incrementally move traffic to the staging distribution. This workflow enables you to test changes to a distribution's configuration before moving all of your domain's production traffic to the new configuration.
Usage¶
Arguments¶
ContinuousDeploymentPolicyConfig
[required] Contains the configuration for a continuous deployment policy.
Value¶
A list with the following syntax:
list(
ContinuousDeploymentPolicy = list(
Id = "string",
LastModifiedTime = as.POSIXct(
"2015-01-01"
),
ContinuousDeploymentPolicyConfig = list(
StagingDistributionDnsNames = list(
Quantity = 123,
Items = list(
"string"
)
),
Enabled = TRUE|FALSE,
TrafficConfig = list(
SingleWeightConfig = list(
Weight = 123.0,
SessionStickinessConfig = list(
IdleTTL = 123,
MaximumTTL = 123
)
),
SingleHeaderConfig = list(
Header = "string",
Value = "string"
),
Type = "SingleWeight"|"SingleHeader"
)
)
),
Location = "string",
ETag = "string"
)
Request syntax¶
svc$create_continuous_deployment_policy(
ContinuousDeploymentPolicyConfig = list(
StagingDistributionDnsNames = list(
Quantity = 123,
Items = list(
"string"
)
),
Enabled = TRUE|FALSE,
TrafficConfig = list(
SingleWeightConfig = list(
Weight = 123.0,
SessionStickinessConfig = list(
IdleTTL = 123,
MaximumTTL = 123
)
),
SingleHeaderConfig = list(
Header = "string",
Value = "string"
),
Type = "SingleWeight"|"SingleHeader"
)
)
)