ClusterCapacityRequirementsProperty Struct
Defines the instance capacity requirements for an instance group, including configurations for both Spot and On-Demand capacity types.
| 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';
declare const onDemand: any;
declare const spot: any;
const clusterCapacityRequirementsProperty: sagemaker.CfnCluster.ClusterCapacityRequirementsProperty = {
onDemand: onDemand,
spot: spot,
};
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
# on_demand: Any
# spot: Any
cluster_capacity_requirements_property = sagemaker.CfnCluster.ClusterCapacityRequirementsProperty(
on_demand=on_demand,
spot=spot
)
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.*;
Object onDemand;
Object spot;
ClusterCapacityRequirementsProperty clusterCapacityRequirementsProperty = ClusterCapacityRequirementsProperty.builder()
.onDemand(onDemand)
.spot(spot)
.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 onDemand;
var spot;
var clusterCapacityRequirementsProperty = new ClusterCapacityRequirementsProperty {
OnDemand = onDemand,
Spot = spot
};
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"
var onDemand interface{}
var spot interface{}
clusterCapacityRequirementsProperty := &ClusterCapacityRequirementsProperty{
OnDemand: onDemand,
Spot: spot,
}
Properties
onDemandoptionalanyon_demandoptionalAnyonDemandoptionalObjectOnDemandoptionalobjectOnDemandoptionalinterface{} #Configuration options specific to On-Demand instances.
Configuration options specific to Spot instances.