GetJobQueue

The Batch Job Queue data source allows access to details of a specific job queue within AWS Batch.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var test_queue = Output.Create(Aws.Batch.GetJobQueue.InvokeAsync(new Aws.Batch.GetJobQueueArgs
        {
            Name = "tf-test-batch-job-queue",
        }));
    }

}
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.LookupJobQueue(ctx, &batch.LookupJobQueueArgs{
            Name: "tf-test-batch-job-queue",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

test_queue = aws.batch.get_job_queue(name="tf-test-batch-job-queue")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test_queue = pulumi.output(aws.batch.getJobQueue({
    name: "tf-test-batch-job-queue",
}, { async: true }));

Using GetJobQueue

function getJobQueue(args: GetJobQueueArgs, opts?: InvokeOptions): Promise<GetJobQueueResult>
function  get_job_queue(name=None, opts=None)
func LookupJobQueue(ctx *Context, args *LookupJobQueueArgs, opts ...InvokeOption) (*LookupJobQueueResult, error)

Note: This function is named LookupJobQueue in the Go SDK.

public static class GetJobQueue {
    public static Task<GetJobQueueResult> InvokeAsync(GetJobQueueArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the job queue.

Name string

The name of the job queue.

name string

The name of the job queue.

name str

The name of the job queue.

GetJobQueue Result

The following output properties are available:

Arn string

The ARN of the job queue.

ComputeEnvironmentOrders List<GetJobQueueComputeEnvironmentOrder>

The compute environments that are attached to the job queue and the order in which job placement is preferred. Compute environments are selected for job placement in ascending order. * compute_environment_order.#.order - The order of the compute environment. * compute_environment_order.#.compute_environment - The ARN of the compute environment.

Id string

The provider-assigned unique ID for this managed resource.

Name string
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

Describes the ability of the queue to accept new jobs (for example, ENABLED or DISABLED).

Status string

The current status of the job queue (for example, CREATING or VALID).

StatusReason string

A short, human-readable string to provide additional details about the current status of the job queue.

Arn string

The ARN of the job queue.

ComputeEnvironmentOrders []GetJobQueueComputeEnvironmentOrder

The compute environments that are attached to the job queue and the order in which job placement is preferred. Compute environments are selected for job placement in ascending order. * compute_environment_order.#.order - The order of the compute environment. * compute_environment_order.#.compute_environment - The ARN of the compute environment.

Id string

The provider-assigned unique ID for this managed resource.

Name string
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

Describes the ability of the queue to accept new jobs (for example, ENABLED or DISABLED).

Status string

The current status of the job queue (for example, CREATING or VALID).

StatusReason string

A short, human-readable string to provide additional details about the current status of the job queue.

arn string

The ARN of the job queue.

computeEnvironmentOrders GetJobQueueComputeEnvironmentOrder[]

The compute environments that are attached to the job queue and the order in which job placement is preferred. Compute environments are selected for job placement in ascending order. * compute_environment_order.#.order - The order of the compute environment. * compute_environment_order.#.compute_environment - The ARN of the compute environment.

id string

The provider-assigned unique ID for this managed resource.

name string
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

Describes the ability of the queue to accept new jobs (for example, ENABLED or DISABLED).

status string

The current status of the job queue (for example, CREATING or VALID).

statusReason string

A short, human-readable string to provide additional details about the current status of the job queue.

arn str

The ARN of the job queue.

compute_environment_orders List[GetJobQueueComputeEnvironmentOrder]

The compute environments that are attached to the job queue and the order in which job placement is preferred. Compute environments are selected for job placement in ascending order. * compute_environment_order.#.order - The order of the compute environment. * compute_environment_order.#.compute_environment - The ARN of the compute environment.

id str

The provider-assigned unique ID for this managed resource.

name str
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

Describes the ability of the queue to accept new jobs (for example, ENABLED or DISABLED).

status str

The current status of the job queue (for example, CREATING or VALID).

status_reason str

A short, human-readable string to provide additional details about the current status of the job queue.

Supporting Types

GetJobQueueComputeEnvironmentOrder

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

ComputeEnvironment string
Order int
ComputeEnvironment string
Order int
computeEnvironment string
order number
computeEnvironment str
order float

Package Details

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