Class CfnCluster
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.sagemaker.CfnCluster
- All Implemented Interfaces:
IInspectable
,ITaggableV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-27T17:02:09.540Z")
@Stability(Stable)
public class CfnCluster
extends CfnResource
implements IInspectable, ITaggableV2
Creates a SageMaker HyperPod cluster.
SageMaker HyperPod is a capability of SageMaker for creating and managing persistent clusters for developing large machine learning models, such as large language models (LLMs) and diffusion models. To learn more, see Amazon SageMaker HyperPod in the Amazon SageMaker Developer Guide .
Example:
// 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.*; CfnCluster cfnCluster = CfnCluster.Builder.create(this, "MyCfnCluster") .instanceGroups(List.of(ClusterInstanceGroupProperty.builder() .executionRole("executionRole") .instanceCount(123) .instanceGroupName("instanceGroupName") .instanceType("instanceType") .lifeCycleConfig(ClusterLifeCycleConfigProperty.builder() .onCreate("onCreate") .sourceS3Uri("sourceS3Uri") .build()) // the properties below are optional .currentCount(123) .instanceStorageConfigs(List.of(ClusterInstanceStorageConfigProperty.builder() .ebsVolumeConfig(ClusterEbsVolumeConfigProperty.builder() .volumeSizeInGb(123) .build()) .build())) .onStartDeepHealthChecks(List.of("onStartDeepHealthChecks")) .overrideVpcConfig(VpcConfigProperty.builder() .securityGroupIds(List.of("securityGroupIds")) .subnets(List.of("subnets")) .build()) .threadsPerCore(123) .build())) // the properties below are optional .clusterName("clusterName") .nodeRecovery("nodeRecovery") .orchestrator(OrchestratorProperty.builder() .eks(ClusterOrchestratorEksConfigProperty.builder() .clusterArn("clusterArn") .build()) .build()) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .vpcConfig(VpcConfigProperty.builder() .securityGroupIds(List.of("securityGroupIds")) .subnets(List.of("subnets")) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnCluster
.static interface
Defines the configuration for attaching an additional Amazon Elastic Block Store (EBS) volume to each instance of the SageMaker HyperPod cluster instance group.static interface
The configuration information of the instance group within the HyperPod cluster.static interface
Defines the configuration for attaching additional storage to the instances in the SageMaker HyperPod cluster instance group.static interface
The lifecycle configuration for a SageMaker HyperPod cluster.static interface
The configuration for the Amazon EKS cluster that is used as the orchestrator for the SageMaker HyperPod cluster.static interface
The orchestrator for a SageMaker HyperPod cluster.static interface
Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnCluster
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnCluster
(software.amazon.jsii.JsiiObjectRef objRef) CfnCluster
(software.constructs.Construct scope, String id, CfnClusterProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the SageMaker HyperPod cluster.The status of the SageMaker HyperPod cluster.The time when the SageMaker HyperPod cluster is created.The failure message of the SageMaker HyperPod cluster.Tag Manager which manages the tags for this resource.The name of the SageMaker HyperPod cluster.The instance groups of the SageMaker HyperPod cluster.Specifies whether to enable or disable the automatic node recovery feature of SageMaker HyperPod.The orchestrator type for the SageMaker HyperPod cluster.getTags()
A tag object that consists of a key and an optional value, used to manage metadata for SageMaker AWS resources.Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setClusterName
(String value) The name of the SageMaker HyperPod cluster.void
setInstanceGroups
(List<Object> value) The instance groups of the SageMaker HyperPod cluster.void
setInstanceGroups
(IResolvable value) The instance groups of the SageMaker HyperPod cluster.void
setNodeRecovery
(String value) Specifies whether to enable or disable the automatic node recovery feature of SageMaker HyperPod.void
setOrchestrator
(IResolvable value) The orchestrator type for the SageMaker HyperPod cluster.void
The orchestrator type for the SageMaker HyperPod cluster.void
A tag object that consists of a key and an optional value, used to manage metadata for SageMaker AWS resources.void
setVpcConfig
(IResolvable value) Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to.void
Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCluster
protected CfnCluster(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCluster
protected CfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCluster
@Stability(Stable) public CfnCluster(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnClusterProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrClusterArn
The Amazon Resource Name (ARN) of the SageMaker HyperPod cluster. -
getAttrClusterStatus
The status of the SageMaker HyperPod cluster. -
getAttrCreationTime
The time when the SageMaker HyperPod cluster is created. -
getAttrFailureMessage
The failure message of the SageMaker HyperPod cluster. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getInstanceGroups
The instance groups of the SageMaker HyperPod cluster. -
setInstanceGroups
The instance groups of the SageMaker HyperPod cluster. -
setInstanceGroups
The instance groups of the SageMaker HyperPod cluster. -
getClusterName
The name of the SageMaker HyperPod cluster. -
setClusterName
The name of the SageMaker HyperPod cluster. -
getNodeRecovery
Specifies whether to enable or disable the automatic node recovery feature of SageMaker HyperPod. -
setNodeRecovery
Specifies whether to enable or disable the automatic node recovery feature of SageMaker HyperPod. -
getOrchestrator
The orchestrator type for the SageMaker HyperPod cluster. -
setOrchestrator
The orchestrator type for the SageMaker HyperPod cluster. -
setOrchestrator
The orchestrator type for the SageMaker HyperPod cluster. -
getTags
A tag object that consists of a key and an optional value, used to manage metadata for SageMaker AWS resources. -
setTags
A tag object that consists of a key and an optional value, used to manage metadata for SageMaker AWS resources. -
getVpcConfig
Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. -
setVpcConfig
Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. -
setVpcConfig
Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to.
-