ClusterInstanceStorageConfigProperty Struct
Defines the configuration for attaching additional storage to the instances in the SageMaker HyperPod cluster instance group.
To learn more, see SageMaker HyperPod release notes: June 20, 2024 .
| 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 clusterInstanceStorageConfigProperty: sagemaker.CfnCluster.ClusterInstanceStorageConfigProperty = {
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',
},
};
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_instance_storage_config_property = 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"
)
)
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.*;
ClusterInstanceStorageConfigProperty clusterInstanceStorageConfigProperty = 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();
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 clusterInstanceStorageConfigProperty = 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"
}
};
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"
clusterInstanceStorageConfigProperty := &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"),
},
}
Properties
ebsVolumeConfigoptionalIResolvable | CfnCluster.ebs_volume_configoptionaltyping.Union[IResolvable, ClusterEbsVolumeConfigProperty]ebsVolumeConfigoptionalIResolvableEbsVolumeConfigoptionalIResolvableEbsVolumeConfigoptionalinterface{} #Defines the configuration for attaching additional Amazon Elastic Block Store (EBS) volumes to the instances in the SageMaker HyperPod cluster instance group.
The additional EBS volume is attached to each instance within the SageMaker HyperPod cluster instance group and mounted to /opt/sagemaker .
fsxLustreConfigoptionalIResolvable | CfnCluster.fsx_lustre_configoptionaltyping.Union[IResolvable, ClusterFsxLustreConfigProperty]fsxLustreConfigoptionalIResolvableFsxLustreConfigoptionalIResolvableFsxLustreConfigoptionalinterface{} #Configuration for mounting an Amazon FSx Lustre file system to the instances in the SageMaker HyperPod cluster instance group.
fsxOpenZfsConfigoptionalIResolvable | CfnCluster.fsx_open_zfs_configoptionaltyping.Union[IResolvable, ClusterFsxOpenZfsConfigProperty]fsxOpenZfsConfigoptionalIResolvableFsxOpenZfsConfigoptionalIResolvableFsxOpenZfsConfigoptionalinterface{} #Configuration for mounting an Amazon FSx OpenZFS file system to the instances in the SageMaker HyperPod cluster instance group.