PrefixAwareRoutingConfigProperty Struct
The configuration for prefix-aware routing on a SageMaker real-time inference endpoint.
Specify PrefixLength and ConcurrencyThreshold to control routing behavior.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const prefixAwareRoutingConfigProperty: sagemaker.CfnEndpointConfig.PrefixAwareRoutingConfigProperty = {
concurrencyThreshold: 123,
prefixLength: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker
prefix_aware_routing_config_property = sagemaker.CfnEndpointConfig.PrefixAwareRoutingConfigProperty(
concurrency_threshold=123,
prefix_length=123
)
java
// 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.*;
PrefixAwareRoutingConfigProperty prefixAwareRoutingConfigProperty = PrefixAwareRoutingConfigProperty.builder()
.concurrencyThreshold(123)
.prefixLength(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 prefixAwareRoutingConfigProperty = new PrefixAwareRoutingConfigProperty {
ConcurrencyThreshold = 123,
PrefixLength = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
prefixAwareRoutingConfigProperty := &PrefixAwareRoutingConfigProperty{
ConcurrencyThreshold: jsii.Number(123),
PrefixLength: jsii.Number(123),
}
Properties
concurrencyThresholdoptionalnumberconcurrency_thresholdoptionalint | floatconcurrencyThresholdoptionalNumberConcurrencyThresholdoptionaldoubleConcurrencyThresholdoptional*float64 #The maximum number of in-flight requests on the target instance before the endpoint routes to another instance.
Required when RoutingStrategy is PREFIX_AWARE. Valid values are 1 to 1024.
prefixLengthoptionalnumberprefix_lengthoptionalint | floatprefixLengthoptionalNumberPrefixLengthoptionaldoublePrefixLengthoptional*float64 #The maximum length of the prefix used for routing decisions.
Required when RoutingStrategy is PREFIX_AWARE. Valid values are 1024 to 65536.