

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::PCS::Queue
<a name="aws-resource-pcs-queue"></a>

Creates an AWS PCS queue resource. For more information, see [Creating a queue in AWS PCS](https://docs.aws.amazon.com/pcs/latest/userguide/working-with_queues_create.html) in the *AWS PCS User Guide*.

## Syntax
<a name="aws-resource-pcs-queue-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-resource-pcs-queue-syntax.json"></a>

```
{
  "Type" : "AWS::PCS::Queue",
  "Properties" : {
      "[ClusterId](#cfn-pcs-queue-clusterid)" : String,
      "[ComputeNodeGroupConfigurations](#cfn-pcs-queue-computenodegroupconfigurations)" : [ ComputeNodeGroupConfiguration, ... ],
      "[Name](#cfn-pcs-queue-name)" : String,
      "[SlurmConfiguration](#cfn-pcs-queue-slurmconfiguration)" : SlurmConfiguration,
      "[Tags](#cfn-pcs-queue-tags)" : {Key: Value, ...}
    }
}
```

### YAML
<a name="aws-resource-pcs-queue-syntax.yaml"></a>

```
Type: AWS::PCS::Queue
Properties:
  [ClusterId](#cfn-pcs-queue-clusterid): String
  [ComputeNodeGroupConfigurations](#cfn-pcs-queue-computenodegroupconfigurations): 
    - ComputeNodeGroupConfiguration
  [Name](#cfn-pcs-queue-name): String
  [SlurmConfiguration](#cfn-pcs-queue-slurmconfiguration): 
    SlurmConfiguration
  [Tags](#cfn-pcs-queue-tags): 
    Key: Value
```

## Properties
<a name="aws-resource-pcs-queue-properties"></a>

`ClusterId`  <a name="cfn-pcs-queue-clusterid"></a>
The ID of the cluster of the queue.  
*Required*: Yes  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`ComputeNodeGroupConfigurations`  <a name="cfn-pcs-queue-computenodegroupconfigurations"></a>
The list of compute node group configurations associated with the queue. Queues assign jobs to associated compute node groups.  
*Required*: No  
*Type*: Array of [ComputeNodeGroupConfiguration](aws-properties-pcs-queue-computenodegroupconfiguration.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Name`  <a name="cfn-pcs-queue-name"></a>
The name that identifies the queue.  
*Required*: No  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`SlurmConfiguration`  <a name="cfn-pcs-queue-slurmconfiguration"></a>
Additional options related to the Slurm scheduler.  
*Required*: No  
*Type*: [SlurmConfiguration](aws-properties-pcs-queue-slurmconfiguration.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Tags`  <a name="cfn-pcs-queue-tags"></a>
1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.  
*Required*: No  
*Type*: Object of String  
*Pattern*: `^.+$`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## Return values
<a name="aws-resource-pcs-queue-return-values"></a>

### Ref
<a name="aws-resource-pcs-queue-return-values-ref"></a>

### Fn::GetAtt
<a name="aws-resource-pcs-queue-return-values-fn--getatt"></a>

#### 
<a name="aws-resource-pcs-queue-return-values-fn--getatt-fn--getatt"></a>

`Arn`  <a name="Arn-fn::getatt"></a>
The unique Amazon Resource Name (ARN) of the queue.

`ErrorInfo`  <a name="ErrorInfo-fn::getatt"></a>
The list of errors that occurred during queue provisioning.

`Id`  <a name="Id-fn::getatt"></a>
The generated unique ID of the queue.

`Status`  <a name="Status-fn::getatt"></a>
The provisioning status of the queue.  
The provisioning status doesn't indicate the overall health of the queue.
The resource enters the `SUSPENDING` and `SUSPENDED` states 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 is `SUSPENDED`. For more information, see [Frequently asked questions about Slurm versions in AWS PCS](https://docs.aws.amazon.com//pcs/latest/userguide/slurm-versions_faq.html) in the *AWS PCS User Guide*.

# AWS::PCS::Queue ComputeNodeGroupConfiguration
<a name="aws-properties-pcs-queue-computenodegroupconfiguration"></a>

The compute node group configuration for a queue.

## Syntax
<a name="aws-properties-pcs-queue-computenodegroupconfiguration-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-pcs-queue-computenodegroupconfiguration-syntax.json"></a>

```
{
  "[ComputeNodeGroupId](#cfn-pcs-queue-computenodegroupconfiguration-computenodegroupid)" : String
}
```

### YAML
<a name="aws-properties-pcs-queue-computenodegroupconfiguration-syntax.yaml"></a>

```
  [ComputeNodeGroupId](#cfn-pcs-queue-computenodegroupconfiguration-computenodegroupid): String
```

## Properties
<a name="aws-properties-pcs-queue-computenodegroupconfiguration-properties"></a>

`ComputeNodeGroupId`  <a name="cfn-pcs-queue-computenodegroupconfiguration-computenodegroupid"></a>
The compute node group ID for the compute node group configuration.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::PCS::Queue ErrorInfo
<a name="aws-properties-pcs-queue-errorinfo"></a>

An error that occurred during resource creation.

## Syntax
<a name="aws-properties-pcs-queue-errorinfo-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-pcs-queue-errorinfo-syntax.json"></a>

```
{
  "[Code](#cfn-pcs-queue-errorinfo-code)" : String,
  "[Message](#cfn-pcs-queue-errorinfo-message)" : String
}
```

### YAML
<a name="aws-properties-pcs-queue-errorinfo-syntax.yaml"></a>

```
  [Code](#cfn-pcs-queue-errorinfo-code): String
  [Message](#cfn-pcs-queue-errorinfo-message): String
```

## Properties
<a name="aws-properties-pcs-queue-errorinfo-properties"></a>

`Code`  <a name="cfn-pcs-queue-errorinfo-code"></a>
The short-form error code.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Message`  <a name="cfn-pcs-queue-errorinfo-message"></a>
The detailed error information.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::PCS::Queue SlurmConfiguration
<a name="aws-properties-pcs-queue-slurmconfiguration"></a>

Additional options related to the Slurm scheduler.

## Syntax
<a name="aws-properties-pcs-queue-slurmconfiguration-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-pcs-queue-slurmconfiguration-syntax.json"></a>

```
{
  "[SlurmCustomSettings](#cfn-pcs-queue-slurmconfiguration-slurmcustomsettings)" : [ SlurmCustomSetting, ... ]
}
```

### YAML
<a name="aws-properties-pcs-queue-slurmconfiguration-syntax.yaml"></a>

```
  [SlurmCustomSettings](#cfn-pcs-queue-slurmconfiguration-slurmcustomsettings): 
    - SlurmCustomSetting
```

## Properties
<a name="aws-properties-pcs-queue-slurmconfiguration-properties"></a>

`SlurmCustomSettings`  <a name="cfn-pcs-queue-slurmconfiguration-slurmcustomsettings"></a>
Additional Slurm-specific configuration that directly maps to Slurm settings.  
*Required*: No  
*Type*: Array of [SlurmCustomSetting](aws-properties-pcs-queue-slurmcustomsetting.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::PCS::Queue SlurmCustomSetting
<a name="aws-properties-pcs-queue-slurmcustomsetting"></a>

Additional settings that directly map to Slurm settings.

**Important**  
AWS PCS supports a subset of Slurm settings. For more information, see [Configuring custom Slurm settings in AWS PCS](https://docs.aws.amazon.com//pcs/latest/userguide/slurm-custom-settings.html) in the *AWS PCS User Guide*.

## Syntax
<a name="aws-properties-pcs-queue-slurmcustomsetting-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-pcs-queue-slurmcustomsetting-syntax.json"></a>

```
{
  "[ParameterName](#cfn-pcs-queue-slurmcustomsetting-parametername)" : String,
  "[ParameterValue](#cfn-pcs-queue-slurmcustomsetting-parametervalue)" : String
}
```

### YAML
<a name="aws-properties-pcs-queue-slurmcustomsetting-syntax.yaml"></a>

```
  [ParameterName](#cfn-pcs-queue-slurmcustomsetting-parametername): String
  [ParameterValue](#cfn-pcs-queue-slurmcustomsetting-parametervalue): String
```

## Properties
<a name="aws-properties-pcs-queue-slurmcustomsetting-properties"></a>

`ParameterName`  <a name="cfn-pcs-queue-slurmcustomsetting-parametername"></a>
AWS PCS supports custom Slurm settings for clusters, compute node groups, and queues. For more information, see [Configuring custom Slurm settings in AWS PCS](https://docs.aws.amazon.com//pcs/latest/userguide/slurm-custom-settings.html) in the *AWS PCS User Guide*.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ParameterValue`  <a name="cfn-pcs-queue-slurmcustomsetting-parametervalue"></a>
The values for the configured Slurm settings.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)