Class CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty>
- Enclosing interface:
CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty
@Stability(Stable)
public static final class CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.sessionStickinessConfig(CfnContinuousDeploymentPolicyPropsMixin.SessionStickinessConfigProperty sessionStickinessConfig) sessionStickinessConfig(IResolvable sessionStickinessConfig)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sessionStickinessConfig
@Stability(Stable) public CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty.Builder sessionStickinessConfig(IResolvable sessionStickinessConfig) Sets the value ofCfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty.getSessionStickinessConfig()- Parameters:
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 your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.- Returns:
this
-
sessionStickinessConfig
@Stability(Stable) public CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty.Builder sessionStickinessConfig(CfnContinuousDeploymentPolicyPropsMixin.SessionStickinessConfigProperty sessionStickinessConfig) Sets the value ofCfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty.getSessionStickinessConfig()- Parameters:
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 your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.- Returns:
this
-
weight
@Stability(Stable) public CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty.Builder weight(Number weight) - Parameters:
weight- 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.- Returns:
this
-
build
@Stability(Stable) public CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty>- Returns:
- a new instance of
CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-