Batch / Paginator / DescribeJobQueues
DescribeJobQueues#
- class Batch.Paginator.DescribeJobQueues#
paginator = client.get_paginator('describe_job_queues')
- paginate(**kwargs)#
Creates an iterator that will paginate through responses from
Batch.Client.describe_job_queues().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( jobQueues=[ 'string', ], PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
jobQueues (list) –
A list of up to 100 queue names or full queue Amazon Resource Name (ARN) entries.
(string) –
PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextTokenwill be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextTokenfrom a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'jobQueues': [ { 'jobQueueName': 'string', 'jobQueueArn': 'string', 'state': 'ENABLED'|'DISABLED', 'schedulingPolicyArn': 'string', 'status': 'CREATING'|'UPDATING'|'DELETING'|'DELETED'|'VALID'|'INVALID', 'statusReason': 'string', 'priority': 123, 'computeEnvironmentOrder': [ { 'order': 123, 'computeEnvironment': 'string' }, ], 'tags': { 'string': 'string' } }, ], 'NextToken': 'string' }
Response Structure
(dict) –
jobQueues (list) –
The list of job queues.
(dict) –
An object that represents the details for an Batch job queue.
jobQueueName (string) –
The job queue name.
jobQueueArn (string) –
The Amazon Resource Name (ARN) of the job queue.
state (string) –
Describes the ability of the queue to accept new jobs. If the job queue state is
ENABLED, it can 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.schedulingPolicyArn (string) –
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.status (string) –
The status of the job queue (for example,
CREATINGorVALID).statusReason (string) –
A short, human-readable string to provide additional details for the current status of the job queue.
priority (integer) –
The priority of the job queue. Job queues with a higher priority (or a higher integer value for the
priorityparameter) 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 of10is given scheduling preference over a job queue with a priority value of1. All of the compute environments must be either EC2 (EC2orSPOT) or Fargate (FARGATEorFARGATE_SPOT). EC2 and Fargate compute environments can’t be mixed.computeEnvironmentOrder (list) –
The compute environments that are attached to the job queue and the order that job placement is preferred. Compute environments are selected for job placement in ascending order.
(dict) –
The order that compute environments are tried in for job placement within a queue. 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 environments must be in the
VALIDstate before you can associate them with a job queue. All of the compute environments must be either EC2 (EC2orSPOT) or Fargate (FARGATEorFARGATE_SPOT); EC2 and Fargate compute environments can’t be mixed.Note
All compute environments that are associated with a job queue must share the same architecture. Batch doesn’t support mixing compute environment architecture types in a single job queue.
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
orderinteger value is tried for job placement first.computeEnvironment (string) –
The Amazon Resource Name (ARN) of the compute environment.
tags (dict) –
The tags that are applied to the job queue. For more information, see Tagging your Batch resources in Batch User Guide.
(string) –
(string) –
NextToken (string) –
A token to resume pagination.