Class CfnQueue
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IQueueRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
For more information, see Creating a queue in AWS PCS 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.*;
CfnQueue cfnQueue = CfnQueue.Builder.create(this, "MyCfnQueue")
.clusterId("clusterId")
// the properties below are optional
.computeNodeGroupConfigurations(List.of(ComputeNodeGroupConfigurationProperty.builder()
.computeNodeGroupId("computeNodeGroupId")
.build()))
.name("name")
.slurmConfiguration(SlurmConfigurationProperty.builder()
.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 final classA fluent builder forCfnQueue.static interfaceThe compute node group configuration for a queue.static interfaceAn error that occurred during resource creation.static interfaceThe Slurm configuration for the queue.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.interfaces.pcs.IQueueRef
IQueueRef.Jsii$Default, IQueueRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnQueue(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnQueue(software.amazon.jsii.JsiiObjectRef objRef) CfnQueue(software.constructs.Construct scope, String id, CfnQueueProps props) Create a newAWS::PCS::Queue. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForQueue(IQueueRef resource) The unique Amazon Resource Name (ARN) of the queue.The list of errors that occurred during queue provisioning.The generated unique ID of the queue.The provisioning status of the queue.Tag Manager which manages the tags for this resource.The ID of the cluster of the queue.The list of compute node group configurations associated with the queue.getName()The name that identifies the queue.A reference to a Queue resource.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.static BooleanisCfnQueue(Object x) Checks whether the given object is a CfnQueue.renderProperties(Map<String, Object> props) voidsetClusterId(String value) The ID of the cluster of the queue.voidThe list of compute node group configurations associated with the queue.voidThe list of compute node group configurations associated with the queue.voidThe name that identifies the queue.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.interfaces.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
-
CfnQueue
protected CfnQueue(software.amazon.jsii.JsiiObjectRef objRef) -
CfnQueue
protected CfnQueue(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnQueue
@Stability(Stable) public CfnQueue(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnQueueProps props) Create a newAWS::PCS::Queue.- 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
-
arnForQueue
- Parameters:
resource- This parameter is required.
-
isCfnQueue
Checks whether the given object is a CfnQueue.- Parameters:
x- This parameter is required.
-
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 queue. -
getAttrErrorInfo
The list of errors that occurred during queue provisioning. -
getAttrId
The generated unique ID of the queue. -
getAttrStatus
The provisioning status of the queue.The provisioning status doesn't indicate the overall health of the queue. > 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
-
getQueueRef
A reference to a Queue resource.- Specified by:
getQueueRefin interfaceIQueueRef
-
getClusterId
The ID of the cluster of the queue. -
setClusterId
The ID of the cluster of the queue. -
getComputeNodeGroupConfigurations
The list of compute node group configurations associated with the queue.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnQueue.ComputeNodeGroupConfigurationProperty> -
setComputeNodeGroupConfigurations
The list of compute node group configurations associated with the queue. -
setComputeNodeGroupConfigurations
The list of compute node group configurations associated with the queue. -
getName
The name that identifies the queue. -
setName
The name that identifies the queue. -
getSlurmConfiguration
Additional options related to the Slurm scheduler.Returns union: either
IResolvableorCfnQueue.SlurmConfigurationProperty -
setSlurmConfiguration
Additional options related to the Slurm scheduler. -
setSlurmConfiguration
@Stability(Stable) public void setSlurmConfiguration(@Nullable CfnQueue.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.
-