Skip to content
v2.278.0

ClusterEbsVolumeConfigProperty Struct ​

Defines the configuration for attaching an additional Amazon Elastic Block Store (EBS) volume to each instance of the SageMaker HyperPod cluster instance group.

To learn more, see SageMaker HyperPod release notes: June 20, 2024 .

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 clusterEbsVolumeConfigProperty: sagemaker.CfnCluster.ClusterEbsVolumeConfigProperty = {
  rootVolume: false,
  volumeKmsKeyId: 'volumeKmsKeyId',
  volumeSizeInGb: 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

cluster_ebs_volume_config_property = sagemaker.CfnCluster.ClusterEbsVolumeConfigProperty(
    root_volume=False,
    volume_kms_key_id="volumeKmsKeyId",
    volume_size_in_gb=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.*;

ClusterEbsVolumeConfigProperty clusterEbsVolumeConfigProperty = ClusterEbsVolumeConfigProperty.builder()
        .rootVolume(false)
        .volumeKmsKeyId("volumeKmsKeyId")
        .volumeSizeInGb(123)
        .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 clusterEbsVolumeConfigProperty = new ClusterEbsVolumeConfigProperty {
    RootVolume = false,
    VolumeKmsKeyId = "volumeKmsKeyId",
    VolumeSizeInGb = 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"

clusterEbsVolumeConfigProperty := &ClusterEbsVolumeConfigProperty{
	RootVolume: jsii.Boolean(false),
	VolumeKmsKeyId: jsii.String("volumeKmsKeyId"),
	VolumeSizeInGb: jsii.Number(123),
}

Properties ​

rootVolumeoptionalboolean | IResolvableroot_volumeoptionaltyping.Union[bool, IResolvable]rootVolumeoptionalBooleanRootVolumeoptionalboolRootVolumeoptionalinterface{} #
Specifies whether the configuration is for the cluster's root or secondary Amazon EBS volume.
notes

You can specify two ClusterEbsVolumeConfig fields to configure both the root and secondary volumes. Set the value to True if you'd like to provide your own customer managed AWS KMS key to encrypt the root volume. When True :

  • The configuration is applied to the root volume.
  • You can't specify the VolumeSizeInGB field. The size of the root volume is determined for you.
  • You must specify a KMS key ID for VolumeKmsKeyId to encrypt the root volume with your own KMS key instead of an AWS owned KMS key.

Otherwise, by default, the value is False , and the following applies:

  • The configuration is applied to the secondary volume, while the root volume is encrypted with an AWS owned key.
  • You must specify the VolumeSizeInGB field.
  • You can optionally specify the VolumeKmsKeyId to encrypt the secondary volume with your own KMS key instead of an AWS owned KMS key.
volumeKmsKeyIdoptionalstringvolume_kms_key_idoptionalstrvolumeKmsKeyIdoptionalStringVolumeKmsKeyIdoptionalstringVolumeKmsKeyIdoptional*string #
The ID of a KMS key to encrypt the Amazon EBS volume.
volumeSizeInGboptionalnumbervolume_size_in_gboptionalint | floatvolumeSizeInGboptionalNumberVolumeSizeInGboptionaldoubleVolumeSizeInGboptional*float64 #
The size in gigabytes (GB) of the additional EBS volume to be attached 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 .