Class CfnCluster
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggableV2,IClusterRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
For more information, see Creating a cluster in AWS Parallel Computing Service in the AWS PCS User 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.pcs.*;
CfnCluster cfnCluster = CfnCluster.Builder.create(this, "MyCfnCluster")
.networking(NetworkingProperty.builder()
.networkType("networkType")
.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()
.accounting(AccountingProperty.builder()
.mode("mode")
// the properties below are optional
.defaultPurgeTimeInDays(123)
.build())
.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 accounting configuration includes configurable settings for Slurm accounting.static 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 creation.static interfaceThe 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.amazon.awscdk.services.pcs.IClusterRef
IClusterRef.Jsii$Default, IClusterRef.Jsii$ProxyNested 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.A reference to a Cluster 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, getEnv, 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.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods 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. > The resource enters the
SUSPENDINGandSUSPENDEDstates when the scheduler is beyond end of life and we have suspended the cluster. When in these states, you can't use the cluster. The cluster controller is down and all compute instances are terminated. The resources still count toward your service quotas. You can delete a resource if its status isSUSPENDED. For more information, see Frequently asked questions about Slurm versions in AWS PCS in the AWS PCS User Guide . -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getClusterRef
A reference to a Cluster resource.- Specified by:
getClusterRefin interfaceIClusterRef
-
getNetworking
The networking configuration for the cluster's control plane.Returns union: either
IResolvableorCfnCluster.NetworkingProperty -
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.Returns union: either
IResolvableorCfnCluster.SchedulerProperty -
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.Returns union: either
IResolvableorCfnCluster.SlurmConfigurationProperty -
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.
-