ClusterRestrictedInstanceGroupProperty Struct
Details of a restricted instance group in a SageMaker HyperPod cluster.
| 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 clusterRestrictedInstanceGroupProperty: sagemaker.CfnCluster.ClusterRestrictedInstanceGroupProperty = {
executionRole: 'executionRole',
instanceCount: 123,
instanceGroupName: 'instanceGroupName',
instanceType: 'instanceType',
// the properties below are optional
currentCount: 123,
environmentConfig: {
fSxLustreConfig: {
perUnitStorageThroughput: 123,
sizeInGiB: 123,
},
},
instanceStorageConfigs: [{
ebsVolumeConfig: {
rootVolume: false,
volumeKmsKeyId: 'volumeKmsKeyId',
volumeSizeInGb: 123,
},
fsxLustreConfig: {
dnsName: 'dnsName',
mountName: 'mountName',
// the properties below are optional
mountPath: 'mountPath',
},
fsxOpenZfsConfig: {
dnsName: 'dnsName',
// the properties below are optional
mountPath: 'mountPath',
},
}],
onStartDeepHealthChecks: ['onStartDeepHealthChecks'],
overrideVpcConfig: {
securityGroupIds: ['securityGroupIds'],
subnets: ['subnets'],
},
threadsPerCore: 123,
trainingPlanArn: 'trainingPlanArn',
};
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
cluster_restricted_instance_group_property = sagemaker.CfnCluster.ClusterRestrictedInstanceGroupProperty(
execution_role="executionRole",
instance_count=123,
instance_group_name="instanceGroupName",
instance_type="instanceType",
# the properties below are optional
current_count=123,
environment_config=sagemaker.CfnCluster.EnvironmentConfigProperty(
f_sx_lustre_config=sagemaker.CfnCluster.FSxLustreConfigProperty(
per_unit_storage_throughput=123,
size_in_gi_b=123
)
),
instance_storage_configs=[sagemaker.CfnCluster.ClusterInstanceStorageConfigProperty(
ebs_volume_config=sagemaker.CfnCluster.ClusterEbsVolumeConfigProperty(
root_volume=False,
volume_kms_key_id="volumeKmsKeyId",
volume_size_in_gb=123
),
fsx_lustre_config=sagemaker.CfnCluster.ClusterFsxLustreConfigProperty(
dns_name="dnsName",
mount_name="mountName",
# the properties below are optional
mount_path="mountPath"
),
fsx_open_zfs_config=sagemaker.CfnCluster.ClusterFsxOpenZfsConfigProperty(
dns_name="dnsName",
# the properties below are optional
mount_path="mountPath"
)
)],
on_start_deep_health_checks=["onStartDeepHealthChecks"],
override_vpc_config=sagemaker.CfnCluster.VpcConfigProperty(
security_group_ids=["securityGroupIds"],
subnets=["subnets"]
),
threads_per_core=123,
training_plan_arn="trainingPlanArn"
)
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.*;
ClusterRestrictedInstanceGroupProperty clusterRestrictedInstanceGroupProperty = ClusterRestrictedInstanceGroupProperty.builder()
.executionRole("executionRole")
.instanceCount(123)
.instanceGroupName("instanceGroupName")
.instanceType("instanceType")
// the properties below are optional
.currentCount(123)
.environmentConfig(EnvironmentConfigProperty.builder()
.fSxLustreConfig(FSxLustreConfigProperty.builder()
.perUnitStorageThroughput(123)
.sizeInGiB(123)
.build())
.build())
.instanceStorageConfigs(List.of(ClusterInstanceStorageConfigProperty.builder()
.ebsVolumeConfig(ClusterEbsVolumeConfigProperty.builder()
.rootVolume(false)
.volumeKmsKeyId("volumeKmsKeyId")
.volumeSizeInGb(123)
.build())
.fsxLustreConfig(ClusterFsxLustreConfigProperty.builder()
.dnsName("dnsName")
.mountName("mountName")
// the properties below are optional
.mountPath("mountPath")
.build())
.fsxOpenZfsConfig(ClusterFsxOpenZfsConfigProperty.builder()
.dnsName("dnsName")
// the properties below are optional
.mountPath("mountPath")
.build())
.build()))
.onStartDeepHealthChecks(List.of("onStartDeepHealthChecks"))
.overrideVpcConfig(VpcConfigProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnets(List.of("subnets"))
.build())
.threadsPerCore(123)
.trainingPlanArn("trainingPlanArn")
.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 clusterRestrictedInstanceGroupProperty = new ClusterRestrictedInstanceGroupProperty {
ExecutionRole = "executionRole",
InstanceCount = 123,
InstanceGroupName = "instanceGroupName",
InstanceType = "instanceType",
// the properties below are optional
CurrentCount = 123,
EnvironmentConfig = new EnvironmentConfigProperty {
FSxLustreConfig = new FSxLustreConfigProperty {
PerUnitStorageThroughput = 123,
SizeInGiB = 123
}
},
InstanceStorageConfigs = new [] { new ClusterInstanceStorageConfigProperty {
EbsVolumeConfig = new ClusterEbsVolumeConfigProperty {
RootVolume = false,
VolumeKmsKeyId = "volumeKmsKeyId",
VolumeSizeInGb = 123
},
FsxLustreConfig = new ClusterFsxLustreConfigProperty {
DnsName = "dnsName",
MountName = "mountName",
// the properties below are optional
MountPath = "mountPath"
},
FsxOpenZfsConfig = new ClusterFsxOpenZfsConfigProperty {
DnsName = "dnsName",
// the properties below are optional
MountPath = "mountPath"
}
} },
OnStartDeepHealthChecks = new [] { "onStartDeepHealthChecks" },
OverrideVpcConfig = new VpcConfigProperty {
SecurityGroupIds = new [] { "securityGroupIds" },
Subnets = new [] { "subnets" }
},
ThreadsPerCore = 123,
TrainingPlanArn = "trainingPlanArn"
};
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"
clusterRestrictedInstanceGroupProperty := &ClusterRestrictedInstanceGroupProperty{
ExecutionRole: jsii.String("executionRole"),
InstanceCount: jsii.Number(123),
InstanceGroupName: jsii.String("instanceGroupName"),
InstanceType: jsii.String("instanceType"),
// the properties below are optional
CurrentCount: jsii.Number(123),
EnvironmentConfig: &EnvironmentConfigProperty{
FSxLustreConfig: &FSxLustreConfigProperty{
PerUnitStorageThroughput: jsii.Number(123),
SizeInGiB: jsii.Number(123),
},
},
InstanceStorageConfigs: []interface{}{
&ClusterInstanceStorageConfigProperty{
EbsVolumeConfig: &ClusterEbsVolumeConfigProperty{
RootVolume: jsii.Boolean(false),
VolumeKmsKeyId: jsii.String("volumeKmsKeyId"),
VolumeSizeInGb: jsii.Number(123),
},
FsxLustreConfig: &ClusterFsxLustreConfigProperty{
DnsName: jsii.String("dnsName"),
MountName: jsii.String("mountName"),
// the properties below are optional
MountPath: jsii.String("mountPath"),
},
FsxOpenZfsConfig: &ClusterFsxOpenZfsConfigProperty{
DnsName: jsii.String("dnsName"),
// the properties below are optional
MountPath: jsii.String("mountPath"),
},
},
},
OnStartDeepHealthChecks: []*string{
jsii.String("onStartDeepHealthChecks"),
},
OverrideVpcConfig: &VpcConfigProperty{
SecurityGroupIds: []*string{
jsii.String("securityGroupIds"),
},
Subnets: []*string{
jsii.String("subnets"),
},
},
ThreadsPerCore: jsii.Number(123),
TrainingPlanArn: jsii.String("trainingPlanArn"),
}
Properties
currentCountoptionalnumbercurrent_countoptionalint | floatcurrentCountoptionalNumberCurrentCountoptionaldoubleCurrentCountoptional*float64 #The number of instances that are currently in the restricted instance group of a SageMaker HyperPod cluster.
environmentConfigoptionalIResolvable | CfnCluster.environment_configoptionaltyping.Union[IResolvable, EnvironmentConfigProperty]environmentConfigoptionalIResolvableEnvironmentConfigoptionalIResolvableEnvironmentConfigoptionalinterface{} #The configuration for the restricted instance groups (RIG) environment.
executionRolestringexecution_rolestrexecutionRoleStringExecutionRolestringExecutionRole*string required #The execution role for the instance group to assume.
instanceCountnumberinstance_countint | floatinstanceCountNumberInstanceCountdoubleInstanceCount*float64 required #The number of instances you specified to add to the restricted instance group of a SageMaker HyperPod cluster.
instanceGroupNamestringinstance_group_namestrinstanceGroupNameStringInstanceGroupNamestringInstanceGroupName*string required #The name of the instance group of a SageMaker HyperPod cluster.
instanceStorageConfigsoptionalIResolvable | IResolvable | CfnCluster.instance_storage_configsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ClusterInstanceStorageConfigProperty]]]instanceStorageConfigsoptionalIResolvableInstanceStorageConfigsoptionalIResolvableInstanceStorageConfigsoptionalinterface{} #The instance storage configuration for the instance group.
instanceTypestringinstance_typestrinstanceTypeStringInstanceTypestringInstanceType*string required #The instance type of the instance group of a SageMaker HyperPod cluster.
onStartDeepHealthChecksoptionalstring[]on_start_deep_health_checksoptionaltyping.List[str]onStartDeepHealthChecksoptionalList<String>OnStartDeepHealthChecksoptionalstring[]OnStartDeepHealthChecksoptional*[]*string #Nodes will undergo advanced stress test to detect and replace faulty instances, based on the type of deep health check(s) passed in.
overrideVpcConfigoptionalIResolvable | CfnCluster.VpcConfigPropertyoverride_vpc_configoptionaltyping.Union[IResolvable, VpcConfigProperty]overrideVpcConfigoptionalIResolvableOverrideVpcConfigoptionalIResolvableOverrideVpcConfigoptionalinterface{} #Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to.
You can control access to and from your resources by configuring a VPC.
threadsPerCoreoptionalnumberthreads_per_coreoptionalint | floatthreadsPerCoreoptionalNumberThreadsPerCoreoptionaldoubleThreadsPerCoreoptional*float64 #The number you specified to TreadsPerCore in CreateCluster for enabling or disabling multithreading.
For instance types that support multithreading, you can specify 1 for disabling multithreading and 2 for enabling multithreading.
trainingPlanArnoptionalstringtraining_plan_arnoptionalstrtrainingPlanArnoptionalStringTrainingPlanArnoptionalstringTrainingPlanArnoptional*string #The Amazon Resource Name (ARN) of the training plan to use for this cluster restricted instance group.
For more information about how to reserve GPU capacity for your SageMaker HyperPod clusters using Amazon SageMaker Training Plan, see CreateTrainingPlan.