Skip to content
v2.278.0

InferenceComponentSchedulingConfigProperty Struct ​

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

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

    // the properties below are optional
    maxImbalance: 123,
  },
  placementStrategy: 'placementStrategy',
};
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
// 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();
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"
};
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 ​

availabilityZoneBalanceIResolvable | CfnInferenceComponent.InferenceComponentAvailabilityZoneBalancePropertyavailability_zone_balancetyping.Union[IResolvable, InferenceComponentAvailabilityZoneBalanceProperty]availabilityZoneBalanceIResolvableAvailabilityZoneBalanceIResolvableAvailabilityZoneBalanceinterface{} required #
Configuration for balancing inference component copies across Availability Zones.
placementStrategystringplacement_strategystrplacementStrategyStringPlacementStrategystringPlacementStrategy*string required #