Show / Hide Table of Contents

Class 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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
JobQueue
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Batch
Assembly: Pulumi.Aws.dll
Syntax
public class JobQueue : CustomResource

Constructors

View Source

JobQueue(String, JobQueueArgs, CustomResourceOptions)

Create a JobQueue resource with the given unique name, arguments, and options.

Declaration
public JobQueue(string name, JobQueueArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

JobQueueArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Arn

The Amazon Resource Name of the job queue.

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

ComputeEnvironments

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.

Declaration
public Output<ImmutableArray<string>> ComputeEnvironments { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Name

Specifies the name of the job queue.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Priority

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

Declaration
public Output<int> Priority { get; }
Property Value
Type Description
Output<System.Int32>
View Source

State

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

Declaration
public Output<string> State { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, JobQueueState, CustomResourceOptions)

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

Declaration
public static JobQueue Get(string name, Input<string> id, JobQueueState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

JobQueueState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
JobQueue
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.