public static final class CfnEndpoint.TrafficRoutingConfigProperty.Builder
extends java.lang.Object
CfnEndpoint.TrafficRoutingConfigProperty
Constructor and Description |
---|
Builder() |
public CfnEndpoint.TrafficRoutingConfigProperty.Builder type(java.lang.String type)
CfnEndpoint.TrafficRoutingConfigProperty.getType()
type
- Traffic routing strategy type. This parameter is required.
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.this
public CfnEndpoint.TrafficRoutingConfigProperty.Builder canarySize(IResolvable canarySize)
CfnEndpoint.TrafficRoutingConfigProperty.getCanarySize()
canarySize
- Batch size for the first step to turn on traffic on the new endpoint fleet.
Value
must be less than or equal to 50% of the variant's total instance count.this
public CfnEndpoint.TrafficRoutingConfigProperty.Builder canarySize(CfnEndpoint.CapacitySizeProperty canarySize)
CfnEndpoint.TrafficRoutingConfigProperty.getCanarySize()
canarySize
- Batch size for the first step to turn on traffic on the new endpoint fleet.
Value
must be less than or equal to 50% of the variant's total instance count.this
public CfnEndpoint.TrafficRoutingConfigProperty.Builder linearStepSize(IResolvable linearStepSize)
CfnEndpoint.TrafficRoutingConfigProperty.getLinearStepSize()
linearStepSize
- Batch size for each step to turn on traffic on the new endpoint fleet.
Value
must be 10-50% of the variant's total instance count.this
public CfnEndpoint.TrafficRoutingConfigProperty.Builder linearStepSize(CfnEndpoint.CapacitySizeProperty linearStepSize)
CfnEndpoint.TrafficRoutingConfigProperty.getLinearStepSize()
linearStepSize
- Batch size for each step to turn on traffic on the new endpoint fleet.
Value
must be 10-50% of the variant's total instance count.this
public CfnEndpoint.TrafficRoutingConfigProperty.Builder waitIntervalInSeconds(java.lang.Number waitIntervalInSeconds)
CfnEndpoint.TrafficRoutingConfigProperty.getWaitIntervalInSeconds()
waitIntervalInSeconds
- The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet.this
public CfnEndpoint.TrafficRoutingConfigProperty build()
CfnEndpoint.TrafficRoutingConfigProperty
java.lang.NullPointerException
- if any required attribute was not provided