Interface CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty.Jsii$Proxy
- Enclosing class:
CfnContinuousDeploymentPolicyPropsMixin
@Stability(Stable)
public static interface CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty
extends software.amazon.jsii.JsiiSerializable
This configuration determines the percentage of HTTP requests that are sent to the staging distribution.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.cloudfront.*;
SingleWeightConfigProperty singleWeightConfigProperty = SingleWeightConfigProperty.builder()
.sessionStickinessConfig(SessionStickinessConfigProperty.builder()
.idleTtl(123)
.maximumTtl(123)
.build())
.weight(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSessionStickinessConfig
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.
Returns union: either
IResolvableorCfnContinuousDeploymentPolicyPropsMixin.SessionStickinessConfigProperty- See Also:
-
getWeight
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.- See Also:
-
builder
@Stability(Stable) static CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty.Builder builder()
-