Class CfnEndpoint.TrafficRoutingConfigProperty
Defines the traffic routing strategy during an endpoint deployment to shift traffic from the old fleet to the new fleet.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Sagemaker
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TrafficRoutingConfigProperty : Object, CfnEndpoint.ITrafficRoutingConfigProperty
Syntax (vb)
Public Class TrafficRoutingConfigProperty
Inherits Object
Implements CfnEndpoint.ITrafficRoutingConfigProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;
var trafficRoutingConfigProperty = new TrafficRoutingConfigProperty {
Type = "type",
// the properties below are optional
CanarySize = new CapacitySizeProperty {
Type = "type",
Value = 123
},
LinearStepSize = new CapacitySizeProperty {
Type = "type",
Value = 123
},
WaitIntervalInSeconds = 123
};
Synopsis
Constructors
TrafficRoutingConfigProperty() |
Properties
CanarySize | Batch size for the first step to turn on traffic on the new endpoint fleet. |
LinearStepSize | Batch size for each step to turn on traffic on the new endpoint fleet. |
Type | Traffic routing strategy type. |
WaitIntervalInSeconds | The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet. |
Constructors
TrafficRoutingConfigProperty()
public TrafficRoutingConfigProperty()
Properties
CanarySize
Batch size for the first step to turn on traffic on the new endpoint fleet.
public object CanarySize { get; set; }
Property Value
System.Object
Remarks
Value
must be less than or equal to 50% of the variant's total instance count.
LinearStepSize
Batch size for each step to turn on traffic on the new endpoint fleet.
public object LinearStepSize { get; set; }
Property Value
System.Object
Remarks
Value
must be 10-50% of the variant's total instance count.
Type
Traffic routing strategy type.
public string Type { get; set; }
Property Value
System.String
Remarks
WaitIntervalInSeconds
The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet.
public Nullable<double> WaitIntervalInSeconds { get; set; }
Property Value
System.Nullable<System.Double>