interface CfnClusterProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Sagemaker.CfnClusterProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssagemaker#CfnClusterProps |
Java | software.amazon.awscdk.services.sagemaker.CfnClusterProps |
Python | aws_cdk.aws_sagemaker.CfnClusterProps |
TypeScript | aws-cdk-lib » aws_sagemaker » CfnClusterProps |
Properties for defining a CfnCluster
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-cluster.html
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 cfnClusterProps: sagemaker.CfnClusterProps = {
instanceGroups: [{
executionRole: 'executionRole',
instanceCount: 123,
instanceGroupName: 'instanceGroupName',
instanceType: 'instanceType',
lifeCycleConfig: {
onCreate: 'onCreate',
sourceS3Uri: 'sourceS3Uri',
},
// the properties below are optional
currentCount: 123,
instanceStorageConfigs: [{
ebsVolumeConfig: {
volumeSizeInGb: 123,
},
}],
onStartDeepHealthChecks: ['onStartDeepHealthChecks'],
threadsPerCore: 123,
}],
// the properties below are optional
clusterName: 'clusterName',
nodeRecovery: 'nodeRecovery',
orchestrator: {
eks: {
clusterArn: 'clusterArn',
},
},
tags: [{
key: 'key',
value: 'value',
}],
vpcConfig: {
securityGroupIds: ['securityGroupIds'],
subnets: ['subnets'],
},
};
Properties
Name | Type | Description |
---|---|---|
instance | IResolvable | IResolvable | Cluster [] | The instance groups of the SageMaker HyperPod cluster. |
cluster | string | The name of the HyperPod Cluster. |
node | string | If node auto-recovery is set to true, faulty nodes will be replaced or rebooted when a failure is detected. |
orchestrator? | IResolvable | Orchestrator | Specifies parameter(s) specific to the orchestrator, e.g. specify the EKS cluster. |
tags? | Cfn [] | Custom tags for managing the SageMaker HyperPod cluster as an AWS resource. |
vpc | IResolvable | Vpc | Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. |
instanceGroups
Type:
IResolvable
|
IResolvable
|
Cluster
[]
The instance groups of the SageMaker HyperPod cluster.
clusterName?
Type:
string
(optional)
The name of the HyperPod Cluster.
nodeRecovery?
Type:
string
(optional)
If node auto-recovery is set to true, faulty nodes will be replaced or rebooted when a failure is detected.
If set to false, nodes will be labelled when a fault is detected.
orchestrator?
Type:
IResolvable
|
Orchestrator
(optional)
Specifies parameter(s) specific to the orchestrator, e.g. specify the EKS cluster.
tags?
Type:
Cfn
[]
(optional)
Custom tags for managing the SageMaker HyperPod cluster as an AWS resource.
You can add tags to your cluster in the same way you add them in other AWS services that support tagging.
vpcConfig?
Type:
IResolvable
|
Vpc
(optional)
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.