JobQueue

Provides a Batch Job Queue resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var testQueue = new Aws.Batch.JobQueue("testQueue", new Aws.Batch.JobQueueArgs
        {
            ComputeEnvironments = 
            {
                aws_batch_compute_environment.Test_environment_1.Arn,
                aws_batch_compute_environment.Test_environment_2.Arn,
            },
            Priority = 1,
            State = "ENABLED",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/batch"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := batch.NewJobQueue(ctx, "testQueue", &batch.JobQueueArgs{
            ComputeEnvironments: pulumi.StringArray{
                pulumi.String(aws_batch_compute_environment.Test_environment_1.Arn),
                pulumi.String(aws_batch_compute_environment.Test_environment_2.Arn),
            },
            Priority: pulumi.Int(1),
            State:    pulumi.String("ENABLED"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

test_queue = aws.batch.JobQueue("testQueue",
    compute_environments=[
        aws_batch_compute_environment["test_environment_1"]["arn"],
        aws_batch_compute_environment["test_environment_2"]["arn"],
    ],
    priority=1,
    state="ENABLED")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const testQueue = new aws.batch.JobQueue("test_queue", {
    computeEnvironments: [
        aws_batch_compute_environment_test_environment_1.arn,
        aws_batch_compute_environment_test_environment_2.arn,
    ],
    priority: 1,
    state: "ENABLED",
});

Create a JobQueue Resource

def JobQueue(resource_name, opts=None, compute_environments=None, name=None, priority=None, state=None, __props__=None);
func NewJobQueue(ctx *Context, name string, args JobQueueArgs, opts ...ResourceOption) (*JobQueue, error)
public JobQueue(string name, JobQueueArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args JobQueueArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args JobQueueArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args JobQueueArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

JobQueue Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The JobQueue resource accepts the following input properties:

ComputeEnvironments List<string>

Specifies the set of compute environments mapped to a job queue and their order. The position of the compute environments in the list will dictate the order. You can associate up to 3 compute environments with a job queue.

Priority int

The priority of the job queue. Job queues with a higher priority are evaluated first when associated with the same compute environment.

State string

The state of the job queue. Must be one of: ENABLED or DISABLED

Name string

Specifies the name of the job queue.

ComputeEnvironments []string

Specifies the set of compute environments mapped to a job queue and their order. The position of the compute environments in the list will dictate the order. You can associate up to 3 compute environments with a job queue.

Priority int

The priority of the job queue. Job queues with a higher priority are evaluated first when associated with the same compute environment.

State string

The state of the job queue. Must be one of: ENABLED or DISABLED

Name string

Specifies the name of the job queue.

computeEnvironments string[]

Specifies the set of compute environments mapped to a job queue and their order. The position of the compute environments in the list will dictate the order. You can associate up to 3 compute environments with a job queue.

priority number

The priority of the job queue. Job queues with a higher priority are evaluated first when associated with the same compute environment.

state string

The state of the job queue. Must be one of: ENABLED or DISABLED

name string

Specifies the name of the job queue.

compute_environments List[str]

Specifies the set of compute environments mapped to a job queue and their order. The position of the compute environments in the list will dictate the order. You can associate up to 3 compute environments with a job queue.

priority float

The priority of the job queue. Job queues with a higher priority are evaluated first when associated with the same compute environment.

state str

The state of the job queue. Must be one of: ENABLED or DISABLED

name str

Specifies the name of the job queue.

Outputs

All input properties are implicitly available as output properties. Additionally, the JobQueue resource produces the following output properties:

Arn string

The Amazon Resource Name of the job queue.

Id string
The provider-assigned unique ID for this managed resource.
Arn string

The Amazon Resource Name of the job queue.

Id string
The provider-assigned unique ID for this managed resource.
arn string

The Amazon Resource Name of the job queue.

id string
The provider-assigned unique ID for this managed resource.
arn str

The Amazon Resource Name of the job queue.

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing JobQueue Resource

Get an existing JobQueue resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: JobQueueState, opts?: CustomResourceOptions): JobQueue
static get(resource_name, id, opts=None, arn=None, compute_environments=None, name=None, priority=None, state=None, __props__=None);
func GetJobQueue(ctx *Context, name string, id IDInput, state *JobQueueState, opts ...ResourceOption) (*JobQueue, error)
public static JobQueue Get(string name, Input<string> id, JobQueueState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Arn string

The Amazon Resource Name of the job queue.

ComputeEnvironments List<string>

Specifies the set of compute environments mapped to a job queue and their order. The position of the compute environments in the list will dictate the order. You can associate up to 3 compute environments with a job queue.

Name string

Specifies the name of the job queue.

Priority int

The priority of the job queue. Job queues with a higher priority are evaluated first when associated with the same compute environment.

State string

The state of the job queue. Must be one of: ENABLED or DISABLED

Arn string

The Amazon Resource Name of the job queue.

ComputeEnvironments []string

Specifies the set of compute environments mapped to a job queue and their order. The position of the compute environments in the list will dictate the order. You can associate up to 3 compute environments with a job queue.

Name string

Specifies the name of the job queue.

Priority int

The priority of the job queue. Job queues with a higher priority are evaluated first when associated with the same compute environment.

State string

The state of the job queue. Must be one of: ENABLED or DISABLED

arn string

The Amazon Resource Name of the job queue.

computeEnvironments string[]

Specifies the set of compute environments mapped to a job queue and their order. The position of the compute environments in the list will dictate the order. You can associate up to 3 compute environments with a job queue.

name string

Specifies the name of the job queue.

priority number

The priority of the job queue. Job queues with a higher priority are evaluated first when associated with the same compute environment.

state string

The state of the job queue. Must be one of: ENABLED or DISABLED

arn str

The Amazon Resource Name of the job queue.

compute_environments List[str]

Specifies the set of compute environments mapped to a job queue and their order. The position of the compute environments in the list will dictate the order. You can associate up to 3 compute environments with a job queue.

name str

Specifies the name of the job queue.

priority float

The priority of the job queue. Job queues with a higher priority are evaluated first when associated with the same compute environment.

state str

The state of the job queue. Must be one of: ENABLED or DISABLED

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.