# RoutingConfigProperty

Settings that control how the endpoint routes incoming traffic to the instances that the endpoint hosts.

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

TypeScript:

```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 routingConfigProperty: sagemaker.CfnEndpointConfig.RoutingConfigProperty = {
  prefixAwareRoutingConfig: {
    concurrencyThreshold: 123,
    prefixLength: 123,
  },
  routingStrategy: 'routingStrategy',
};
```

Python:

```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

routing_config_property = sagemaker.CfnEndpointConfig.RoutingConfigProperty(
    prefix_aware_routing_config=sagemaker.CfnEndpointConfig.PrefixAwareRoutingConfigProperty(
        concurrency_threshold=123,
        prefix_length=123
    ),
    routing_strategy="routingStrategy"
)
```

Java:

```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.*;

RoutingConfigProperty routingConfigProperty = RoutingConfigProperty.builder()
        .prefixAwareRoutingConfig(PrefixAwareRoutingConfigProperty.builder()
                .concurrencyThreshold(123)
                .prefixLength(123)
                .build())
        .routingStrategy("routingStrategy")
        .build();
```

C# / .NET:

```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 routingConfigProperty = new RoutingConfigProperty {
    PrefixAwareRoutingConfig = new PrefixAwareRoutingConfigProperty {
        ConcurrencyThreshold = 123,
        PrefixLength = 123
    },
    RoutingStrategy = "routingStrategy"
};
```

Golang:

```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"

routingConfigProperty := &RoutingConfigProperty{
	PrefixAwareRoutingConfig: &PrefixAwareRoutingConfigProperty{
		ConcurrencyThreshold: jsii.Number(123),
		PrefixLength: jsii.Number(123),
	},
	RoutingStrategy: jsii.String("routingStrategy"),
}
```

## Properties

- `prefixAwareRoutingConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEndpointConfig.PrefixAwareRoutingConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnEndpointConfig.PrefixAwareRoutingConfigProperty.html) — The configuration for prefix-aware routing on a SageMaker real-time inference endpoint.

  Specify PrefixLength and ConcurrencyThreshold to control routing behavior.

- `routingStrategy`: string — Sets how the endpoint routes incoming traffic.
