# CfnQueueProps

Properties for defining a `CfnQueue`.

Used as props by: [CfnQueue](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pcs.CfnQueue.html)

- Source: Generated at build time
- Type last changed: v2.220.0 · 14 Oct 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pcs as pcs } from 'aws-cdk-lib';
const cfnQueueProps: pcs.CfnQueueProps = {
  clusterId: 'clusterId',

  // the properties below are optional
  computeNodeGroupConfigurations: [{
    computeNodeGroupId: 'computeNodeGroupId',
  }],
  name: 'name',
  slurmConfiguration: {
    slurmCustomSettings: [{
      parameterName: 'parameterName',
      parameterValue: 'parameterValue',
    }],
  },
  tags: {
    tagsKey: 'tags',
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_pcs as pcs

cfn_queue_props = pcs.CfnQueueProps(
    cluster_id="clusterId",

    # the properties below are optional
    compute_node_group_configurations=[pcs.CfnQueue.ComputeNodeGroupConfigurationProperty(
        compute_node_group_id="computeNodeGroupId"
    )],
    name="name",
    slurm_configuration=pcs.CfnQueue.SlurmConfigurationProperty(
        slurm_custom_settings=[pcs.CfnQueue.SlurmCustomSettingProperty(
            parameter_name="parameterName",
            parameter_value="parameterValue"
        )]
    ),
    tags={
        "tags_key": "tags"
    }
)
```

Java:

```java
// 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.*;

CfnQueueProps cfnQueueProps = CfnQueueProps.builder()
        .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();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.PCS;

var cfnQueueProps = new CfnQueueProps {
    ClusterId = "clusterId",

    // the properties below are optional
    ComputeNodeGroupConfigurations = new [] { new ComputeNodeGroupConfigurationProperty {
        ComputeNodeGroupId = "computeNodeGroupId"
    } },
    Name = "name",
    SlurmConfiguration = new SlurmConfigurationProperty {
        SlurmCustomSettings = new [] { new SlurmCustomSettingProperty {
            ParameterName = "parameterName",
            ParameterValue = "parameterValue"
        } }
    },
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnQueueProps := &CfnQueueProps{
	ClusterId: jsii.String("clusterId"),

	// the properties below are optional
	ComputeNodeGroupConfigurations: []interface{}{
		&ComputeNodeGroupConfigurationProperty{
			ComputeNodeGroupId: jsii.String("computeNodeGroupId"),
		},
	},
	Name: jsii.String("name"),
	SlurmConfiguration: &SlurmConfigurationProperty{
		SlurmCustomSettings: []interface{}{
			&SlurmCustomSettingProperty{
				ParameterName: jsii.String("parameterName"),
				ParameterValue: jsii.String("parameterValue"),
			},
		},
	},
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}
```

## Properties

- `clusterId`: string (required) — The ID of the cluster of the queue.

- `computeNodeGroupConfigurations`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnQueue.ComputeNodeGroupConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pcs.CfnQueue.ComputeNodeGroupConfigurationProperty.html)[] — The list of compute node group configurations associated with the queue.

  Queues assign jobs to associated compute node groups.

- `name`: string — The name that identifies the queue.

- `slurmConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnQueue.SlurmConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pcs.CfnQueue.SlurmConfigurationProperty.html) — Additional options related to the Slurm scheduler.

- `tags`: { [key: string]: string } — 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.
