# InferenceComponentAvailabilityZoneBalanceProperty

Configuration for balancing inference component copies across Availability Zones.

- 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 inferenceComponentAvailabilityZoneBalanceProperty: sagemaker.CfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty = {
  enforcementMode: 'enforcementMode',

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

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_availability_zone_balance_property = sagemaker.CfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty(
    enforcement_mode="enforcementMode",

    # the properties below are optional
    max_imbalance=123
)
```

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

InferenceComponentAvailabilityZoneBalanceProperty inferenceComponentAvailabilityZoneBalanceProperty = InferenceComponentAvailabilityZoneBalanceProperty.builder()
        .enforcementMode("enforcementMode")

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

    // the properties below are optional
    MaxImbalance = 123
};
```

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"

inferenceComponentAvailabilityZoneBalanceProperty := &InferenceComponentAvailabilityZoneBalanceProperty{
	EnforcementMode: jsii.String("enforcementMode"),

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

## Properties

- `enforcementMode`: string (required)

- `maxImbalance`: number — The maximum allowed difference in the number of inference component copies between any two Availability Zones.
