We recommend new projects start with resources from the AWS provider.
aws-native.batch.getJobQueue
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::Batch::JobQueue
Using getJobQueue
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getJobQueue(args: GetJobQueueArgs, opts?: InvokeOptions): Promise<GetJobQueueResult>
function getJobQueueOutput(args: GetJobQueueOutputArgs, opts?: InvokeOptions): Output<GetJobQueueResult>
def get_job_queue(job_queue_arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetJobQueueResult
def get_job_queue_output(job_queue_arn: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetJobQueueResult]
func LookupJobQueue(ctx *Context, args *LookupJobQueueArgs, opts ...InvokeOption) (*LookupJobQueueResult, error)
func LookupJobQueueOutput(ctx *Context, args *LookupJobQueueOutputArgs, opts ...InvokeOption) LookupJobQueueResultOutput
> Note: This function is named LookupJobQueue
in the Go SDK.
public static class GetJobQueue
{
public static Task<GetJobQueueResult> InvokeAsync(GetJobQueueArgs args, InvokeOptions? opts = null)
public static Output<GetJobQueueResult> Invoke(GetJobQueueInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetJobQueueResult> getJobQueue(GetJobQueueArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:batch:getJobQueue
arguments:
# arguments dictionary
The following arguments are supported:
- Job
Queue stringArn - Returns the job queue ARN, such as
batch: *us-east-1* : *111122223333* :job-queue/ *JobQueueName*
.
- Job
Queue stringArn - Returns the job queue ARN, such as
batch: *us-east-1* : *111122223333* :job-queue/ *JobQueueName*
.
- job
Queue StringArn - Returns the job queue ARN, such as
batch: *us-east-1* : *111122223333* :job-queue/ *JobQueueName*
.
- job
Queue stringArn - Returns the job queue ARN, such as
batch: *us-east-1* : *111122223333* :job-queue/ *JobQueueName*
.
- job_
queue_ strarn - Returns the job queue ARN, such as
batch: *us-east-1* : *111122223333* :job-queue/ *JobQueueName*
.
- job
Queue StringArn - Returns the job queue ARN, such as
batch: *us-east-1* : *111122223333* :job-queue/ *JobQueueName*
.
getJobQueue Result
The following output properties are available:
- Compute
Environment List<Pulumi.Order Aws Native. Batch. Outputs. Job Queue Compute Environment Order> The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler uses this parameter to determine which compute environment runs a specific job. Compute environments must be in the
VALID
state before you can associate them with a job queue. You can associate up to three compute environments with a job queue. All of the compute environments must be either EC2 (EC2
orSPOT
) or Fargate (FARGATE
orFARGATE_SPOT
); EC2 and Fargate compute environments can't be mixed.All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
- Job
Queue stringArn - Returns the job queue ARN, such as
batch: *us-east-1* : *111122223333* :job-queue/ *JobQueueName*
. - Job
State List<Pulumi.Time Limit Actions Aws Native. Batch. Outputs. Job Queue Job State Time Limit Action> - The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in the specified state longer than specified times. AWS Batch will perform each action after
maxTimeSeconds
has passed. - Priority int
- The priority of the job queue. Job queues with a higher priority (or a higher integer value for the
priority
parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of10
is given scheduling preference over a job queue with a priority value of1
. All of the compute environments must be either EC2 (EC2
orSPOT
) or Fargate (FARGATE
orFARGATE_SPOT
); EC2 and Fargate compute environments can't be mixed. - Scheduling
Policy stringArn - The Amazon Resource Name (ARN) of the scheduling policy. The format is
aws: *Partition* :batch: *Region* : *Account* :scheduling-policy/ *Name*
. For example,aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy
. - State
Pulumi.
Aws Native. Batch. Job Queue State - The state of the job queue. If the job queue state is
ENABLED
, it is able to accept jobs. If the job queue state isDISABLED
, new jobs can't be added to the queue, but jobs already in the queue can finish.
- Compute
Environment []JobOrder Queue Compute Environment Order The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler uses this parameter to determine which compute environment runs a specific job. Compute environments must be in the
VALID
state before you can associate them with a job queue. You can associate up to three compute environments with a job queue. All of the compute environments must be either EC2 (EC2
orSPOT
) or Fargate (FARGATE
orFARGATE_SPOT
); EC2 and Fargate compute environments can't be mixed.All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
- Job
Queue stringArn - Returns the job queue ARN, such as
batch: *us-east-1* : *111122223333* :job-queue/ *JobQueueName*
. - Job
State []JobTime Limit Actions Queue Job State Time Limit Action - The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in the specified state longer than specified times. AWS Batch will perform each action after
maxTimeSeconds
has passed. - Priority int
- The priority of the job queue. Job queues with a higher priority (or a higher integer value for the
priority
parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of10
is given scheduling preference over a job queue with a priority value of1
. All of the compute environments must be either EC2 (EC2
orSPOT
) or Fargate (FARGATE
orFARGATE_SPOT
); EC2 and Fargate compute environments can't be mixed. - Scheduling
Policy stringArn - The Amazon Resource Name (ARN) of the scheduling policy. The format is
aws: *Partition* :batch: *Region* : *Account* :scheduling-policy/ *Name*
. For example,aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy
. - State
Job
Queue State Enum - The state of the job queue. If the job queue state is
ENABLED
, it is able to accept jobs. If the job queue state isDISABLED
, new jobs can't be added to the queue, but jobs already in the queue can finish.
- compute
Environment List<JobOrder Queue Compute Environment Order> The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler uses this parameter to determine which compute environment runs a specific job. Compute environments must be in the
VALID
state before you can associate them with a job queue. You can associate up to three compute environments with a job queue. All of the compute environments must be either EC2 (EC2
orSPOT
) or Fargate (FARGATE
orFARGATE_SPOT
); EC2 and Fargate compute environments can't be mixed.All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
- job
Queue StringArn - Returns the job queue ARN, such as
batch: *us-east-1* : *111122223333* :job-queue/ *JobQueueName*
. - job
State List<JobTime Limit Actions Queue Job State Time Limit Action> - The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in the specified state longer than specified times. AWS Batch will perform each action after
maxTimeSeconds
has passed. - priority Integer
- The priority of the job queue. Job queues with a higher priority (or a higher integer value for the
priority
parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of10
is given scheduling preference over a job queue with a priority value of1
. All of the compute environments must be either EC2 (EC2
orSPOT
) or Fargate (FARGATE
orFARGATE_SPOT
); EC2 and Fargate compute environments can't be mixed. - scheduling
Policy StringArn - The Amazon Resource Name (ARN) of the scheduling policy. The format is
aws: *Partition* :batch: *Region* : *Account* :scheduling-policy/ *Name*
. For example,aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy
. - state
Job
Queue State - The state of the job queue. If the job queue state is
ENABLED
, it is able to accept jobs. If the job queue state isDISABLED
, new jobs can't be added to the queue, but jobs already in the queue can finish.
- compute
Environment JobOrder Queue Compute Environment Order[] The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler uses this parameter to determine which compute environment runs a specific job. Compute environments must be in the
VALID
state before you can associate them with a job queue. You can associate up to three compute environments with a job queue. All of the compute environments must be either EC2 (EC2
orSPOT
) or Fargate (FARGATE
orFARGATE_SPOT
); EC2 and Fargate compute environments can't be mixed.All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
- job
Queue stringArn - Returns the job queue ARN, such as
batch: *us-east-1* : *111122223333* :job-queue/ *JobQueueName*
. - job
State JobTime Limit Actions Queue Job State Time Limit Action[] - The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in the specified state longer than specified times. AWS Batch will perform each action after
maxTimeSeconds
has passed. - priority number
- The priority of the job queue. Job queues with a higher priority (or a higher integer value for the
priority
parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of10
is given scheduling preference over a job queue with a priority value of1
. All of the compute environments must be either EC2 (EC2
orSPOT
) or Fargate (FARGATE
orFARGATE_SPOT
); EC2 and Fargate compute environments can't be mixed. - scheduling
Policy stringArn - The Amazon Resource Name (ARN) of the scheduling policy. The format is
aws: *Partition* :batch: *Region* : *Account* :scheduling-policy/ *Name*
. For example,aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy
. - state
Job
Queue State - The state of the job queue. If the job queue state is
ENABLED
, it is able to accept jobs. If the job queue state isDISABLED
, new jobs can't be added to the queue, but jobs already in the queue can finish.
- compute_
environment_ Sequence[Joborder Queue Compute Environment Order] The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler uses this parameter to determine which compute environment runs a specific job. Compute environments must be in the
VALID
state before you can associate them with a job queue. You can associate up to three compute environments with a job queue. All of the compute environments must be either EC2 (EC2
orSPOT
) or Fargate (FARGATE
orFARGATE_SPOT
); EC2 and Fargate compute environments can't be mixed.All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
- job_
queue_ strarn - Returns the job queue ARN, such as
batch: *us-east-1* : *111122223333* :job-queue/ *JobQueueName*
. - job_
state_ Sequence[Jobtime_ limit_ actions Queue Job State Time Limit Action] - The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in the specified state longer than specified times. AWS Batch will perform each action after
maxTimeSeconds
has passed. - priority int
- The priority of the job queue. Job queues with a higher priority (or a higher integer value for the
priority
parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of10
is given scheduling preference over a job queue with a priority value of1
. All of the compute environments must be either EC2 (EC2
orSPOT
) or Fargate (FARGATE
orFARGATE_SPOT
); EC2 and Fargate compute environments can't be mixed. - scheduling_
policy_ strarn - The Amazon Resource Name (ARN) of the scheduling policy. The format is
aws: *Partition* :batch: *Region* : *Account* :scheduling-policy/ *Name*
. For example,aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy
. - state
Job
Queue State - The state of the job queue. If the job queue state is
ENABLED
, it is able to accept jobs. If the job queue state isDISABLED
, new jobs can't be added to the queue, but jobs already in the queue can finish.
- compute
Environment List<Property Map>Order The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler uses this parameter to determine which compute environment runs a specific job. Compute environments must be in the
VALID
state before you can associate them with a job queue. You can associate up to three compute environments with a job queue. All of the compute environments must be either EC2 (EC2
orSPOT
) or Fargate (FARGATE
orFARGATE_SPOT
); EC2 and Fargate compute environments can't be mixed.All compute environments that are associated with a job queue must share the same architecture. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
- job
Queue StringArn - Returns the job queue ARN, such as
batch: *us-east-1* : *111122223333* :job-queue/ *JobQueueName*
. - job
State List<Property Map>Time Limit Actions - The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in the specified state longer than specified times. AWS Batch will perform each action after
maxTimeSeconds
has passed. - priority Number
- The priority of the job queue. Job queues with a higher priority (or a higher integer value for the
priority
parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of10
is given scheduling preference over a job queue with a priority value of1
. All of the compute environments must be either EC2 (EC2
orSPOT
) or Fargate (FARGATE
orFARGATE_SPOT
); EC2 and Fargate compute environments can't be mixed. - scheduling
Policy StringArn - The Amazon Resource Name (ARN) of the scheduling policy. The format is
aws: *Partition* :batch: *Region* : *Account* :scheduling-policy/ *Name*
. For example,aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy
. - state "DISABLED" | "ENABLED"
- The state of the job queue. If the job queue state is
ENABLED
, it is able to accept jobs. If the job queue state isDISABLED
, new jobs can't be added to the queue, but jobs already in the queue can finish.
Supporting Types
JobQueueComputeEnvironmentOrder
- Compute
Environment string - The Amazon Resource Name (ARN) of the compute environment.
- Order int
- The order of the compute environment. Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower
order
integer value is tried for job placement first.
- Compute
Environment string - The Amazon Resource Name (ARN) of the compute environment.
- Order int
- The order of the compute environment. Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower
order
integer value is tried for job placement first.
- compute
Environment String - The Amazon Resource Name (ARN) of the compute environment.
- order Integer
- The order of the compute environment. Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower
order
integer value is tried for job placement first.
- compute
Environment string - The Amazon Resource Name (ARN) of the compute environment.
- order number
- The order of the compute environment. Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower
order
integer value is tried for job placement first.
- compute_
environment str - The Amazon Resource Name (ARN) of the compute environment.
- order int
- The order of the compute environment. Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower
order
integer value is tried for job placement first.
- compute
Environment String - The Amazon Resource Name (ARN) of the compute environment.
- order Number
- The order of the compute environment. Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower
order
integer value is tried for job placement first.
JobQueueJobStateTimeLimitAction
- Action
Pulumi.
Aws Native. Batch. Job Queue Job State Time Limit Action Action - The action to take when a job is at the head of the job queue in the specified state for the specified period of time. The only supported value is
CANCEL
, which will cancel the job. - Max
Time intSeconds - The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).
- Reason string
- The reason to log for the action being taken.
- State
Pulumi.
Aws Native. Batch. Job Queue Job State Time Limit Action State - The state of the job needed to trigger the action. The only supported value is
RUNNABLE
.
- Action
Job
Queue Job State Time Limit Action Action - The action to take when a job is at the head of the job queue in the specified state for the specified period of time. The only supported value is
CANCEL
, which will cancel the job. - Max
Time intSeconds - The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).
- Reason string
- The reason to log for the action being taken.
- State
Job
Queue Job State Time Limit Action State - The state of the job needed to trigger the action. The only supported value is
RUNNABLE
.
- action
Job
Queue Job State Time Limit Action Action - The action to take when a job is at the head of the job queue in the specified state for the specified period of time. The only supported value is
CANCEL
, which will cancel the job. - max
Time IntegerSeconds - The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).
- reason String
- The reason to log for the action being taken.
- state
Job
Queue Job State Time Limit Action State - The state of the job needed to trigger the action. The only supported value is
RUNNABLE
.
- action
Job
Queue Job State Time Limit Action Action - The action to take when a job is at the head of the job queue in the specified state for the specified period of time. The only supported value is
CANCEL
, which will cancel the job. - max
Time numberSeconds - The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).
- reason string
- The reason to log for the action being taken.
- state
Job
Queue Job State Time Limit Action State - The state of the job needed to trigger the action. The only supported value is
RUNNABLE
.
- action
Job
Queue Job State Time Limit Action Action - The action to take when a job is at the head of the job queue in the specified state for the specified period of time. The only supported value is
CANCEL
, which will cancel the job. - max_
time_ intseconds - The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).
- reason str
- The reason to log for the action being taken.
- state
Job
Queue Job State Time Limit Action State - The state of the job needed to trigger the action. The only supported value is
RUNNABLE
.
- action "CANCEL"
- The action to take when a job is at the head of the job queue in the specified state for the specified period of time. The only supported value is
CANCEL
, which will cancel the job. - max
Time NumberSeconds - The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).
- reason String
- The reason to log for the action being taken.
- state "RUNNABLE"
- The state of the job needed to trigger the action. The only supported value is
RUNNABLE
.
JobQueueJobStateTimeLimitActionAction
JobQueueJobStateTimeLimitActionState
JobQueueState
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.