Interface CfnContinuousDeploymentPolicy.SingleWeightPolicyConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnContinuousDeploymentPolicy.SingleWeightPolicyConfigProperty.Jsii$Proxy
- Enclosing class:
CfnContinuousDeploymentPolicy
@Stability(Stable)
public static interface CfnContinuousDeploymentPolicy.SingleWeightPolicyConfigProperty
extends software.amazon.jsii.JsiiSerializable
Configure a policy that CloudFront uses to route requests to different origins or use different cache settings, based on the weight assigned to each option.
This property is legacy. We recommend that you use TrafficConfig and specify the SingleWeightConfig property instead.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.cloudfront.*; SingleWeightPolicyConfigProperty singleWeightPolicyConfigProperty = SingleWeightPolicyConfigProperty.builder() .weight(123) // the properties below are optional .sessionStickinessConfig(SessionStickinessConfigProperty.builder() .idleTtl(123) .maximumTtl(123) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
static final class
An implementation forCfnContinuousDeploymentPolicy.SingleWeightPolicyConfigProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getWeight
The percentage of requests that CloudFront will use to send to an associated origin or cache settings.- See Also:
-
getSessionStickinessConfig
Enable session stickiness for the associated origin or cache settings.- See Also:
-
builder
@Stability(Stable) static CfnContinuousDeploymentPolicy.SingleWeightPolicyConfigProperty.Builder builder()
-