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
LookupJobQueuein the Go SDK.
public static class GetJobQueue {
public static Task<GetJobQueueResult> InvokeAsync(GetJobQueueArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetJobQueue Result
The following output properties are available:
- Arn string
The ARN of the job queue.
- Compute
Environment List<GetOrders Job Queue Compute Environment Order> 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,
ENABLEDorDISABLED).- Status string
The current status of the job queue (for example,
CREATINGorVALID).- Status
Reason 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.
- Compute
Environment []GetOrders Job Queue Compute Environment Order 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,
ENABLEDorDISABLED).- Status string
The current status of the job queue (for example,
CREATINGorVALID).- Status
Reason 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.
- compute
Environment GetOrders Job Queue Compute Environment Order[] 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,
ENABLEDorDISABLED).- status string
The current status of the job queue (for example,
CREATINGorVALID).- status
Reason 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_ List[Getorders Job Queue Compute Environment Order] 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,
ENABLEDorDISABLED).- status str
The current status of the job queue (for example,
CREATINGorVALID).- 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.