interface TrafficRoutingConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.SageMaker.Mixins.CfnEndpointPropsMixin.TrafficRoutingConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awssagemaker/mixins#CfnEndpointPropsMixin_TrafficRoutingConfigProperty |
Java | software.amazon.awscdk.mixins.preview.services.sagemaker.mixins.CfnEndpointPropsMixin.TrafficRoutingConfigProperty |
Python | aws_cdk.mixins_preview.aws_sagemaker.mixins.CfnEndpointPropsMixin.TrafficRoutingConfigProperty |
TypeScript | @aws-cdk/mixins-preview » aws_sagemaker » mixins » CfnEndpointPropsMixin » TrafficRoutingConfigProperty |
Defines the traffic routing strategy during an endpoint deployment to shift traffic from the old fleet to the new fleet.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as sagemaker_mixins } from '@aws-cdk/mixins-preview/aws-sagemaker';
const trafficRoutingConfigProperty: sagemaker_mixins.CfnEndpointPropsMixin.TrafficRoutingConfigProperty = {
canarySize: {
type: 'type',
value: 123,
},
linearStepSize: {
type: 'type',
value: 123,
},
type: 'type',
waitIntervalInSeconds: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| canary | IResolvable | Capacity | Batch size for the first step to turn on traffic on the new endpoint fleet. |
| linear | IResolvable | Capacity | Batch size for each step to turn on traffic on the new endpoint fleet. |
| type? | string | Traffic routing strategy type. |
| wait | number | The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet. |
canarySize?
Type:
IResolvable | Capacity
(optional)
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.
linearStepSize?
Type:
IResolvable | Capacity
(optional)
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.
type?
Type:
string
(optional)
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.
waitIntervalInSeconds?
Type:
number
(optional)
The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet.

.NET
Go
Java
Python
TypeScript