public static interface CfnEndpoint.TrafficRoutingConfigProperty
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.sagemaker.*; TrafficRoutingConfigProperty trafficRoutingConfigProperty = TrafficRoutingConfigProperty.builder() .type("type") // the properties below are optional .canarySize(CapacitySizeProperty.builder() .type("type") .value(123) .build()) .linearStepSize(CapacitySizeProperty.builder() .type("type") .value(123) .build()) .waitIntervalInSeconds(123) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnEndpoint.TrafficRoutingConfigProperty.Builder
A builder for
CfnEndpoint.TrafficRoutingConfigProperty |
static class |
CfnEndpoint.TrafficRoutingConfigProperty.Jsii$Proxy
An implementation for
CfnEndpoint.TrafficRoutingConfigProperty |
Modifier and Type | Method and Description |
---|---|
static CfnEndpoint.TrafficRoutingConfigProperty.Builder |
builder() |
default java.lang.Object |
getCanarySize()
Batch size for the first step to turn on traffic on the new endpoint fleet.
|
default java.lang.Object |
getLinearStepSize()
Batch size for each step to turn on traffic on the new endpoint fleet.
|
java.lang.String |
getType()
Traffic routing strategy type.
|
default java.lang.Number |
getWaitIntervalInSeconds()
The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet.
|
java.lang.String getType()
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.default java.lang.Object getCanarySize()
Value
must be less than or equal to 50% of the variant's total instance count.
default java.lang.Object getLinearStepSize()
Value
must be 10-50% of the variant's total instance count.
default java.lang.Number getWaitIntervalInSeconds()
static CfnEndpoint.TrafficRoutingConfigProperty.Builder builder()