Skip to content
v2.278.0

InferenceComponentAvailabilityZoneBalanceProperty Struct ​

Configuration for balancing inference component copies across Availability Zones.

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

  // the properties below are optional
  maxImbalance: 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

inference_component_availability_zone_balance_property = sagemaker.CfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty(
    enforcement_mode="enforcementMode",

    # the properties below are optional
    max_imbalance=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.*;

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

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

    // the properties below are optional
    MaxImbalance = 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"

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

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

Properties ​

enforcementModestringenforcement_modestrenforcementModeStringEnforcementModestringEnforcementMode*string required #
maxImbalanceoptionalnumbermax_imbalanceoptionalint | floatmaxImbalanceoptionalNumberMaxImbalanceoptionaldoubleMaxImbalanceoptional*float64 #
The maximum allowed difference in the number of inference component copies between any two Availability Zones.