Skip to content

CloudFront  >  Structures  >  ContinuousDeploymentSingleWeightConfig

ContinuousDeploymentSingleWeightConfig

Structure Class

ContinuousDeploymentSingleWeightConfig dataclass

Bases: _SerdeShape

Contains the percentage of traffic to send to a staging distribution.

Attributes

session_stickiness_config class-attribute instance-attribute
session_stickiness_config: SessionStickinessConfig | None = ...

Session stickiness provides the ability to define multiple requests from a single viewer as a single session. 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 instance-attribute
weight: float

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.