Class CfnContinuousDeploymentPolicy.SingleWeightConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicy.SingleWeightConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContinuousDeploymentPolicy.SingleWeightConfigProperty>
- Enclosing interface:
CfnContinuousDeploymentPolicy.SingleWeightConfigProperty
@Stability(Stable)
public static final class CfnContinuousDeploymentPolicy.SingleWeightConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContinuousDeploymentPolicy.SingleWeightConfigProperty>
A builder for
CfnContinuousDeploymentPolicy.SingleWeightConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.sessionStickinessConfig
(IResolvable sessionStickinessConfig) sessionStickinessConfig
(CfnContinuousDeploymentPolicy.SessionStickinessConfigProperty sessionStickinessConfig) Sets the value ofCfnContinuousDeploymentPolicy.SingleWeightConfigProperty.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
weight
@Stability(Stable) public CfnContinuousDeploymentPolicy.SingleWeightConfigProperty.Builder weight(Number weight) Sets the value ofCfnContinuousDeploymentPolicy.SingleWeightConfigProperty.getWeight()
- Parameters:
weight
- The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and .15. This parameter is required.- Returns:
this
-
sessionStickinessConfig
@Stability(Stable) public CfnContinuousDeploymentPolicy.SingleWeightConfigProperty.Builder sessionStickinessConfig(IResolvable sessionStickinessConfig) Sets the value ofCfnContinuousDeploymentPolicy.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 CfnContinuousDeploymentPolicy.SingleWeightConfigProperty.Builder sessionStickinessConfig(CfnContinuousDeploymentPolicy.SessionStickinessConfigProperty sessionStickinessConfig) Sets the value ofCfnContinuousDeploymentPolicy.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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContinuousDeploymentPolicy.SingleWeightConfigProperty>
- Returns:
- a new instance of
CfnContinuousDeploymentPolicy.SingleWeightConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-