Class CfnContinuousDeploymentPolicy.SingleWeightConfigProperty
This configuration determines the percentage of HTTP requests that are sent to the staging distribution.
Inheritance
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.AWS.CloudFront.dll
Syntax (csharp)
public class SingleWeightConfigProperty : Object, CfnContinuousDeploymentPolicy.ISingleWeightConfigProperty
Syntax (vb)
Public Class SingleWeightConfigProperty
Inherits Object
Implements CfnContinuousDeploymentPolicy.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
Constructors
SingleWeightConfigProperty() |
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 .15. |
Constructors
SingleWeightConfigProperty()
public SingleWeightConfigProperty()
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
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 .15.
public double Weight { get; set; }
Property Value
System.Double