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",
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Batch
Assembly: Pulumi.Aws.dll
Syntax
public class JobQueue : CustomResource
Constructors
View SourceJobQueue(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 SourceArn
The Amazon Resource Name of the job queue.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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>> |
Name
Specifies the name of the job queue.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
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 SourceGet(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 |