ContinuousDeploymentPolicyTrafficConfigSingleWeightConfig constructor

const ContinuousDeploymentPolicyTrafficConfigSingleWeightConfig({
  1. Input<ContinuousDeploymentPolicyTrafficConfigSingleWeightConfigSessionStickinessConfig?>? sessionStickinessConfig,
  2. required Input<double> weight,
})

Creates a new ContinuousDeploymentPolicyTrafficConfigSingleWeightConfig. sessionStickinessConfig 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 the staging distribution, while others are sent to the primary distribution. Define the session duration using TTL values. See sessionStickinessConfig. weight The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and .15.

Implementation

const ContinuousDeploymentPolicyTrafficConfigSingleWeightConfig({
  this.sessionStickinessConfig,
  required this.weight,
});