Class CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty
Contains the configuration for a continuous deployment policy.
Inheritance
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.AWS.CloudFront.dll
Syntax (csharp)
public class ContinuousDeploymentPolicyConfigProperty : Object, CfnContinuousDeploymentPolicy.IContinuousDeploymentPolicyConfigProperty
Syntax (vb)
Public Class ContinuousDeploymentPolicyConfigProperty
Inherits Object
Implements CfnContinuousDeploymentPolicy.IContinuousDeploymentPolicyConfigProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var continuousDeploymentPolicyConfigProperty = new ContinuousDeploymentPolicyConfigProperty {
Enabled = false,
StagingDistributionDnsNames = new [] { "stagingDistributionDnsNames" },
// the properties below are optional
TrafficConfig = new TrafficConfigProperty {
Type = "type",
// the properties below are optional
SingleHeaderConfig = new SingleHeaderConfigProperty {
Header = "header",
Value = "value"
},
SingleWeightConfig = new SingleWeightConfigProperty {
Weight = 123,
// the properties below are optional
SessionStickinessConfig = new SessionStickinessConfigProperty {
IdleTtl = 123,
MaximumTtl = 123
}
}
}
};
Synopsis
Constructors
ContinuousDeploymentPolicyConfigProperty() |
Properties
Enabled | A Boolean that indicates whether this continuous deployment policy is enabled (in effect). |
StagingDistributionDnsNames | The CloudFront domain name of the staging distribution. |
TrafficConfig | Contains the parameters for routing production traffic from your primary to staging distributions. |
Constructors
ContinuousDeploymentPolicyConfigProperty()
public ContinuousDeploymentPolicyConfigProperty()
Properties
Enabled
A Boolean that indicates whether this continuous deployment policy is enabled (in effect).
public object Enabled { get; set; }
Property Value
System.Object
Remarks
When this value is true
, this policy is enabled and in effect. When this value is false
, this policy is not enabled and has no effect.
StagingDistributionDnsNames
The CloudFront domain name of the staging distribution.
public string[] StagingDistributionDnsNames { get; set; }
Property Value
System.String[]
Remarks
For example: d111111abcdef8.cloudfront.net
.
TrafficConfig
Contains the parameters for routing production traffic from your primary to staging distributions.
public object TrafficConfig { get; set; }
Property Value
System.Object