CfnQueueProps Struct
Properties for defining a CfnQueue.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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" }
}
};
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
The ID of the cluster of the queue.
computeNodeGroupConfigurationsoptionalIResolvable | IResolvable | CfnQueue.compute_node_group_configurationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ComputeNodeGroupConfigurationProperty]]]computeNodeGroupConfigurationsoptionalIResolvableComputeNodeGroupConfigurationsoptionalIResolvableComputeNodeGroupConfigurationsoptionalinterface{} #The list of compute node group configurations associated with the queue.
Queues assign jobs to associated compute node groups.
The name that identifies the queue.
slurmConfigurationoptionalIResolvable | CfnQueue.slurm_configurationoptionaltyping.Union[IResolvable, SlurmConfigurationProperty]slurmConfigurationoptionalIResolvableSlurmConfigurationoptionalIResolvableSlurmConfigurationoptionalinterface{} #Additional options related to the Slurm scheduler.
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[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.