SchedulerConfigProperty Struct
Cluster policy configuration.
| Source | |
|---|---|
| Type last changed |
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 schedulerConfigProperty: sagemaker.CfnClusterSchedulerConfig.SchedulerConfigProperty = {
fairShare: 'fairShare',
idleResourceSharing: 'idleResourceSharing',
priorityClasses: [{
name: 'name',
weight: 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
scheduler_config_property = sagemaker.CfnClusterSchedulerConfig.SchedulerConfigProperty(
fair_share="fairShare",
idle_resource_sharing="idleResourceSharing",
priority_classes=[sagemaker.CfnClusterSchedulerConfig.PriorityClassProperty(
name="name",
weight=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.*;
SchedulerConfigProperty schedulerConfigProperty = SchedulerConfigProperty.builder()
.fairShare("fairShare")
.idleResourceSharing("idleResourceSharing")
.priorityClasses(List.of(PriorityClassProperty.builder()
.name("name")
.weight(123)
.build()))
.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 schedulerConfigProperty = new SchedulerConfigProperty {
FairShare = "fairShare",
IdleResourceSharing = "idleResourceSharing",
PriorityClasses = new [] { new PriorityClassProperty {
Name = "name",
Weight = 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"
schedulerConfigProperty := &SchedulerConfigProperty{
FairShare: jsii.String("fairShare"),
IdleResourceSharing: jsii.String("idleResourceSharing"),
PriorityClasses: []interface{}{
&PriorityClassProperty{
Name: jsii.String("name"),
Weight: jsii.Number(123),
},
},
}
Properties
idleResourceSharingoptionalstringidle_resource_sharingoptionalstridleResourceSharingoptionalStringIdleResourceSharingoptionalstringIdleResourceSharingoptional*string #Configuration for sharing idle compute resources across entities.
priorityClassesoptionalIResolvable | IResolvable | CfnClusterSchedulerConfig.priority_classesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PriorityClassProperty]]]priorityClassesoptionalIResolvablePriorityClassesoptionalIResolvablePriorityClassesoptionalinterface{} #List of priority class configurations.