# InferenceComponentSchedulingConfigProperty

The scheduling configuration that determines how inference component copies are placed across available instances.

- 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 inferenceComponentSchedulingConfigProperty: sagemaker.CfnInferenceComponent.InferenceComponentSchedulingConfigProperty = {
  availabilityZoneBalance: {
    enforcementMode: 'enforcementMode',

    // the properties below are optional
    maxImbalance: 123,
  },
  placementStrategy: 'placementStrategy',
};
```

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

inference_component_scheduling_config_property = sagemaker.CfnInferenceComponent.InferenceComponentSchedulingConfigProperty(
    availability_zone_balance=sagemaker.CfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty(
        enforcement_mode="enforcementMode",

        # the properties below are optional
        max_imbalance=123
    ),
    placement_strategy="placementStrategy"
)
```

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

InferenceComponentSchedulingConfigProperty inferenceComponentSchedulingConfigProperty = InferenceComponentSchedulingConfigProperty.builder()
        .availabilityZoneBalance(InferenceComponentAvailabilityZoneBalanceProperty.builder()
                .enforcementMode("enforcementMode")

                // the properties below are optional
                .maxImbalance(123)
                .build())
        .placementStrategy("placementStrategy")
        .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 inferenceComponentSchedulingConfigProperty = new InferenceComponentSchedulingConfigProperty {
    AvailabilityZoneBalance = new InferenceComponentAvailabilityZoneBalanceProperty {
        EnforcementMode = "enforcementMode",

        // the properties below are optional
        MaxImbalance = 123
    },
    PlacementStrategy = "placementStrategy"
};
```

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"

inferenceComponentSchedulingConfigProperty := &InferenceComponentSchedulingConfigProperty{
	AvailabilityZoneBalance: &InferenceComponentAvailabilityZoneBalanceProperty{
		EnforcementMode: jsii.String("enforcementMode"),

		// the properties below are optional
		MaxImbalance: jsii.Number(123),
	},
	PlacementStrategy: jsii.String("placementStrategy"),
}
```

## Properties

- `availabilityZoneBalance`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty.html) (required) — Configuration for balancing inference component copies across Availability Zones.

- `placementStrategy`: string (required)
