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.pcs.CfnCluster
- All Implemented Interfaces:
IInspectable,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-22T23:08:17.048Z")
@Stability(Stable)
public class CfnCluster
extends CfnResource
implements IInspectable, ITaggableV2
The
AWS::PCS::Cluster resource creates an AWS PCS cluster.
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.pcs.*;
CfnCluster cfnCluster = CfnCluster.Builder.create(this, "MyCfnCluster")
.networking(NetworkingProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.build())
.scheduler(SchedulerProperty.builder()
.type("type")
.version("version")
.build())
.size("size")
// the properties below are optional
.name("name")
.slurmConfiguration(SlurmConfigurationProperty.builder()
.authKey(AuthKeyProperty.builder()
.secretArn("secretArn")
.secretVersion("secretVersion")
.build())
.scaleDownIdleTimeInSeconds(123)
.slurmCustomSettings(List.of(SlurmCustomSettingProperty.builder()
.parameterName("parameterName")
.parameterValue("parameterValue")
.build()))
.build())
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe shared Slurm key for authentication, also known as the cluster secret .static final classA fluent builder forCfnCluster.static interfaceAn endpoint available for interaction with the scheduler.static interfaceAn error that occurred during resource provisioning.static interfaceTThe networking configuration for the cluster's control plane.static interfaceThe cluster management and job scheduling software associated with the cluster.static interfaceAdditional options related to the Slurm scheduler.static interfaceAdditional settings that directly map to Slurm settings.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCluster(software.amazon.jsii.JsiiObjectRef objRef) CfnCluster(software.constructs.Construct scope, String id, CfnClusterProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe unique Amazon Resource Name (ARN) of the cluster.The list of endpoints available for interaction with the scheduler.The list of errors that occurred during cluster provisioning.The generated unique ID of the cluster.The provisioning status of the cluster.Tag Manager which manages the tags for this resource.getName()The name that identifies the cluster.The networking configuration for the cluster's control plane.The cluster management and job scheduling software associated with the cluster.getSize()The size of the cluster.Additional options related to the Slurm scheduler.getTags()1 or more tags added to the resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe name that identifies the cluster.voidsetNetworking(IResolvable value) The networking configuration for the cluster's control plane.voidThe networking configuration for the cluster's control plane.voidsetScheduler(IResolvable value) The cluster management and job scheduling software associated with the cluster.voidThe cluster management and job scheduling software associated with the cluster.voidThe size of the cluster.voidsetSlurmConfiguration(IResolvable value) Additional options related to the Slurm scheduler.voidAdditional options related to the Slurm scheduler.void1 or more tags added to the resource.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, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The unique Amazon Resource Name (ARN) of the cluster. -
getAttrEndpoints
The list of endpoints available for interaction with the scheduler. -
getAttrErrorInfo
The list of errors that occurred during cluster provisioning. -
getAttrId
The generated unique ID of the cluster. -
getAttrStatus
The provisioning status of the cluster.The provisioning status doesn't indicate the overall health of the cluster.
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getNetworking
The networking configuration for the cluster's control plane. -
setNetworking
The networking configuration for the cluster's control plane. -
setNetworking
The networking configuration for the cluster's control plane. -
getScheduler
The cluster management and job scheduling software associated with the cluster. -
setScheduler
The cluster management and job scheduling software associated with the cluster. -
setScheduler
The cluster management and job scheduling software associated with the cluster. -
getSize
The size of the cluster. -
setSize
The size of the cluster. -
getName
The name that identifies the cluster. -
setName
The name that identifies the cluster. -
getSlurmConfiguration
Additional options related to the Slurm scheduler. -
setSlurmConfiguration
Additional options related to the Slurm scheduler. -
setSlurmConfiguration
@Stability(Stable) public void setSlurmConfiguration(@Nullable CfnCluster.SlurmConfigurationProperty value) Additional options related to the Slurm scheduler. -
getTags
1 or more tags added to the resource. -
setTags
1 or more tags added to the resource.
-