Class CfnEndpointPropsMixin.TrafficRoutingConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnEndpointPropsMixin.TrafficRoutingConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointPropsMixin.TrafficRoutingConfigProperty>
- Enclosing interface:
CfnEndpointPropsMixin.TrafficRoutingConfigProperty
@Stability(Stable)
public static final class CfnEndpointPropsMixin.TrafficRoutingConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointPropsMixin.TrafficRoutingConfigProperty>
A builder for
CfnEndpointPropsMixin.TrafficRoutingConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.canarySize(CfnEndpointPropsMixin.CapacitySizeProperty canarySize) Sets the value ofCfnEndpointPropsMixin.TrafficRoutingConfigProperty.getCanarySize()canarySize(IResolvable canarySize) Sets the value ofCfnEndpointPropsMixin.TrafficRoutingConfigProperty.getCanarySize()linearStepSize(CfnEndpointPropsMixin.CapacitySizeProperty linearStepSize) Sets the value ofCfnEndpointPropsMixin.TrafficRoutingConfigProperty.getLinearStepSize()linearStepSize(IResolvable linearStepSize) Sets the value ofCfnEndpointPropsMixin.TrafficRoutingConfigProperty.getLinearStepSize()Sets the value ofCfnEndpointPropsMixin.TrafficRoutingConfigProperty.getType()waitIntervalInSeconds(Number waitIntervalInSeconds)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
canarySize
@Stability(Stable) public CfnEndpointPropsMixin.TrafficRoutingConfigProperty.Builder canarySize(IResolvable canarySize) Sets the value ofCfnEndpointPropsMixin.TrafficRoutingConfigProperty.getCanarySize()- Parameters:
canarySize- Batch size for the first step to turn on traffic on the new endpoint fleet.Valuemust be less than or equal to 50% of the variant's total instance count.- Returns:
this
-
canarySize
@Stability(Stable) public CfnEndpointPropsMixin.TrafficRoutingConfigProperty.Builder canarySize(CfnEndpointPropsMixin.CapacitySizeProperty canarySize) Sets the value ofCfnEndpointPropsMixin.TrafficRoutingConfigProperty.getCanarySize()- Parameters:
canarySize- Batch size for the first step to turn on traffic on the new endpoint fleet.Valuemust be less than or equal to 50% of the variant's total instance count.- Returns:
this
-
linearStepSize
@Stability(Stable) public CfnEndpointPropsMixin.TrafficRoutingConfigProperty.Builder linearStepSize(IResolvable linearStepSize) Sets the value ofCfnEndpointPropsMixin.TrafficRoutingConfigProperty.getLinearStepSize()- Parameters:
linearStepSize- Batch size for each step to turn on traffic on the new endpoint fleet.Valuemust be 10-50% of the variant's total instance count.- Returns:
this
-
linearStepSize
@Stability(Stable) public CfnEndpointPropsMixin.TrafficRoutingConfigProperty.Builder linearStepSize(CfnEndpointPropsMixin.CapacitySizeProperty linearStepSize) Sets the value ofCfnEndpointPropsMixin.TrafficRoutingConfigProperty.getLinearStepSize()- Parameters:
linearStepSize- Batch size for each step to turn on traffic on the new endpoint fleet.Valuemust be 10-50% of the variant's total instance count.- Returns:
this
-
type
@Stability(Stable) public CfnEndpointPropsMixin.TrafficRoutingConfigProperty.Builder type(String type) Sets the value ofCfnEndpointPropsMixin.TrafficRoutingConfigProperty.getType()- Parameters:
type- Traffic routing strategy type.ALL_AT_ONCE: Endpoint traffic shifts to the new fleet in a single step.CANARY: Endpoint traffic shifts to the new fleet in two steps. The first step is the canary, which is a small portion of the traffic. The second step is the remainder of the traffic.LINEAR: Endpoint traffic shifts to the new fleet in n steps of a configurable size.
- Returns:
this
-
waitIntervalInSeconds
@Stability(Stable) public CfnEndpointPropsMixin.TrafficRoutingConfigProperty.Builder waitIntervalInSeconds(Number waitIntervalInSeconds) - Parameters:
waitIntervalInSeconds- The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointPropsMixin.TrafficRoutingConfigProperty>- Returns:
- a new instance of
CfnEndpointPropsMixin.TrafficRoutingConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-