ClusterConfigProperty Struct
Configuration for the cluster used to run a processing job.
| Source | |
|---|---|
| Type last changed |
Example
// 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 clusterConfigProperty: sagemaker.CfnProcessingJob.ClusterConfigProperty = {
instanceCount: 123,
instanceType: 'instanceType',
volumeSizeInGb: 123,
// the properties below are optional
volumeKmsKeyId: 'volumeKmsKeyId',
};
# 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_config_property = sagemaker.CfnProcessingJob.ClusterConfigProperty(
instance_count=123,
instance_type="instanceType",
volume_size_in_gb=123,
# the properties below are optional
volume_kms_key_id="volumeKmsKeyId"
)
// 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.*;
ClusterConfigProperty clusterConfigProperty = ClusterConfigProperty.builder()
.instanceCount(123)
.instanceType("instanceType")
.volumeSizeInGb(123)
// the properties below are optional
.volumeKmsKeyId("volumeKmsKeyId")
.build();
// 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 clusterConfigProperty = new ClusterConfigProperty {
InstanceCount = 123,
InstanceType = "instanceType",
VolumeSizeInGb = 123,
// the properties below are optional
VolumeKmsKeyId = "volumeKmsKeyId"
};
// 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"
clusterConfigProperty := &ClusterConfigProperty{
InstanceCount: jsii.Number(123),
InstanceType: jsii.String("instanceType"),
VolumeSizeInGb: jsii.Number(123),
// the properties below are optional
VolumeKmsKeyId: jsii.String("volumeKmsKeyId"),
}
Properties
instanceCountnumberinstance_countint | floatinstanceCountNumberInstanceCountdoubleInstanceCount*float64 required #For distributed processing jobs, specify a value greater than 1. The default value is 1.
instanceTypestringinstance_typestrinstanceTypeStringInstanceTypestringInstanceType*string required #volumeKmsKeyIdoptionalstringvolume_kms_key_idoptionalstrvolumeKmsKeyIdoptionalStringVolumeKmsKeyIdoptionalstringVolumeKmsKeyIdoptional*string #notes
Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a
VolumeKmsKeyIdwhen using an instance type with local storage.For a list of instance types that support local instance storage, see Instance Store Volumes .
For more information about local instance storage encryption, see SSD Instance Store Volumes .
volumeSizeInGbnumbervolume_size_in_gbint | floatvolumeSizeInGbNumberVolumeSizeInGbdoubleVolumeSizeInGb*float64 required #notes
You must specify sufficient ML storage for your scenario.
Certain Nitro-based instances include local storage with a fixed total size, dependent on the instance type. When using these instances for processing, Amazon SageMaker mounts the local instance storage instead of Amazon EBS gp2 storage. You can't request a
VolumeSizeInGBgreater than the total size of the local instance storage.For a list of instance types that support local instance storage, including the total size per instance type, see Instance Store Volumes .