Skip to content
v2.278.0

InstanceRequirementsProperty Struct ​

The instance requirements for the instance group.

Specifies a list of instance types that can be used.

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 instanceRequirementsProperty: sagemaker.CfnCluster.InstanceRequirementsProperty = {
  instanceTypes: ['instanceTypes'],
};
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

instance_requirements_property = sagemaker.CfnCluster.InstanceRequirementsProperty(
    instance_types=["instanceTypes"]
)
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.*;

InstanceRequirementsProperty instanceRequirementsProperty = InstanceRequirementsProperty.builder()
        .instanceTypes(List.of("instanceTypes"))
        .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 instanceRequirementsProperty = new InstanceRequirementsProperty {
    InstanceTypes = new [] { "instanceTypes" }
};
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"

instanceRequirementsProperty := &InstanceRequirementsProperty{
	InstanceTypes: []*string{
		jsii.String("instanceTypes"),
	},
}

Properties ​

instanceTypesstring[]instance_typestyping.List[str]instanceTypesList<String>InstanceTypesstring[]InstanceTypes*[]*string required #
A list of instance types that can be used for this instance group.