Class CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty
This configuration determines the percentage of HTTP requests that are sent to the staging distribution.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty : CfnContinuousDeploymentPolicyPropsMixin.ISingleWeightConfigProperty
Syntax (vb)
Public Class CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty Implements CfnContinuousDeploymentPolicyPropsMixin.ISingleWeightConfigProperty
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 singleWeightConfigProperty = new SingleWeightConfigProperty {
SessionStickinessConfig = new SessionStickinessConfigProperty {
IdleTtl = 123,
MaximumTtl = 123
},
Weight = 123
};
Synopsis
Constructors
| SingleWeightConfigProperty() | This configuration determines the percentage of HTTP requests that are sent to the staging distribution. |
Properties
| SessionStickinessConfig | Session stickiness provides the ability to define multiple requests from a single viewer as a single session. |
| Weight | The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution. |
Constructors
SingleWeightConfigProperty()
This configuration determines the percentage of HTTP requests that are sent to the staging distribution.
public SingleWeightConfigProperty()
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 singleWeightConfigProperty = new SingleWeightConfigProperty {
SessionStickinessConfig = new SessionStickinessConfigProperty {
IdleTtl = 123,
MaximumTtl = 123
},
Weight = 123
};
Properties
SessionStickinessConfig
Session stickiness provides the ability to define multiple requests from a single viewer as a single session.
public object? SessionStickinessConfig { get; set; }
Property Value
Remarks
This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
Type union: either IResolvable or CfnContinuousDeploymentPolicyPropsMixin.ISessionStickinessConfigProperty
Weight
The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution.
public double? Weight { get; set; }