Class CfnContinuousDeploymentPolicyPropsMixin.ContinuousDeploymentPolicyConfigProperty
Contains the configuration for a continuous deployment policy.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnContinuousDeploymentPolicyPropsMixin.ContinuousDeploymentPolicyConfigProperty : CfnContinuousDeploymentPolicyPropsMixin.IContinuousDeploymentPolicyConfigProperty
Syntax (vb)
Public Class CfnContinuousDeploymentPolicyPropsMixin.ContinuousDeploymentPolicyConfigProperty Implements CfnContinuousDeploymentPolicyPropsMixin.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.Mixins.Preview.AWS.CloudFront.Mixins;
var continuousDeploymentPolicyConfigProperty = new ContinuousDeploymentPolicyConfigProperty {
Enabled = false,
SingleHeaderPolicyConfig = new SingleHeaderPolicyConfigProperty {
Header = "header",
Value = "value"
},
SingleWeightPolicyConfig = new SingleWeightPolicyConfigProperty {
SessionStickinessConfig = new SessionStickinessConfigProperty {
IdleTtl = 123,
MaximumTtl = 123
},
Weight = 123
},
StagingDistributionDnsNames = new [] { "stagingDistributionDnsNames" },
TrafficConfig = new TrafficConfigProperty {
SingleHeaderConfig = new SingleHeaderConfigProperty {
Header = "header",
Value = "value"
},
SingleWeightConfig = new SingleWeightConfigProperty {
SessionStickinessConfig = new SessionStickinessConfigProperty {
IdleTtl = 123,
MaximumTtl = 123
},
Weight = 123
},
Type = "type"
},
Type = "type"
};
Synopsis
Constructors
| ContinuousDeploymentPolicyConfigProperty() | Contains the configuration for a continuous deployment policy. |
Properties
| Enabled | A Boolean that indicates whether this continuous deployment policy is enabled (in effect). |
| SingleHeaderPolicyConfig | This configuration determines which HTTP requests are sent to the staging distribution. |
| SingleWeightPolicyConfig | This configuration determines the percentage of HTTP requests that are sent to the staging distribution. |
| StagingDistributionDnsNames | The CloudFront domain name of the staging distribution. |
| TrafficConfig | Contains the parameters for routing production traffic from your primary to staging distributions. |
| Type | The type of traffic configuration. |
Constructors
ContinuousDeploymentPolicyConfigProperty()
Contains the configuration for a continuous deployment policy.
public ContinuousDeploymentPolicyConfigProperty()
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.Mixins.Preview.AWS.CloudFront.Mixins;
var continuousDeploymentPolicyConfigProperty = new ContinuousDeploymentPolicyConfigProperty {
Enabled = false,
SingleHeaderPolicyConfig = new SingleHeaderPolicyConfigProperty {
Header = "header",
Value = "value"
},
SingleWeightPolicyConfig = new SingleWeightPolicyConfigProperty {
SessionStickinessConfig = new SessionStickinessConfigProperty {
IdleTtl = 123,
MaximumTtl = 123
},
Weight = 123
},
StagingDistributionDnsNames = new [] { "stagingDistributionDnsNames" },
TrafficConfig = new TrafficConfigProperty {
SingleHeaderConfig = new SingleHeaderConfigProperty {
Header = "header",
Value = "value"
},
SingleWeightConfig = new SingleWeightConfigProperty {
SessionStickinessConfig = new SessionStickinessConfigProperty {
IdleTtl = 123,
MaximumTtl = 123
},
Weight = 123
},
Type = "type"
},
Type = "type"
};
Properties
Enabled
A Boolean that indicates whether this continuous deployment policy is enabled (in effect).
public object? Enabled { get; set; }
Property Value
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.
Type union: either bool or IResolvable
SingleHeaderPolicyConfig
This configuration determines which HTTP requests are sent to the staging distribution.
public object? SingleHeaderPolicyConfig { get; set; }
Property Value
Remarks
If the HTTP request contains a header and value that matches what you specify here, the request is sent to the staging distribution. Otherwise the request is sent to the primary distribution.
Type union: either IResolvable or CfnContinuousDeploymentPolicyPropsMixin.ISingleHeaderPolicyConfigProperty
SingleWeightPolicyConfig
This configuration determines the percentage of HTTP requests that are sent to the staging distribution.
public object? SingleWeightPolicyConfig { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnContinuousDeploymentPolicyPropsMixin.ISingleWeightPolicyConfigProperty
StagingDistributionDnsNames
The CloudFront domain name of the staging distribution.
public string[]? StagingDistributionDnsNames { get; set; }
Property Value
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
Remarks
Type union: either IResolvable or CfnContinuousDeploymentPolicyPropsMixin.ITrafficConfigProperty
Type
The type of traffic configuration.
public string? Type { get; set; }