Interface CfnContinuousDeploymentPolicy.ISingleWeightConfigProperty
This configuration determines the percentage of HTTP requests that are sent to the staging distribution.
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ISingleWeightConfigProperty
Syntax (vb)
Public Interface 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.AWS.CloudFront;
var singleWeightConfigProperty = new SingleWeightConfigProperty {
Weight = 123,
// the properties below are optional
SessionStickinessConfig = new SessionStickinessConfigProperty {
IdleTtl = 123,
MaximumTtl = 123
}
};
Synopsis
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. |
Properties
SessionStickinessConfig
Session stickiness provides the ability to define multiple requests from a single viewer as a single session.
virtual object SessionStickinessConfig { get; }
Property Value
System.Object
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.
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.
double Weight { get; }
Property Value
System.Double