Skip to main content

job_queues

Creates, updates, deletes or gets a job_queue resource or lists job_queues in a region

Overview

Namejob_queues
TypeResource
DescriptionResource Type definition for AWS::Batch::JobQueue
Idaws.batch.job_queues

Fields

NameDatatypeDescription
job_queue_namestring
job_queue_arnstringARN of the Scheduling Policy.
compute_environment_orderarray
job_state_time_limit_actionsarray
priorityinteger
statestring
scheduling_policy_arnstringARN of the Scheduling Policy.
tagsobjectA key-value pair to associate with a resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTComputeEnvironmentOrder, Priority, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all job_queues in a region.

SELECT
region,
job_queue_name,
job_queue_arn,
compute_environment_order,
job_state_time_limit_actions,
priority,
state,
scheduling_policy_arn,
tags
FROM aws.batch.job_queues
WHERE region = 'us-east-1';

Gets all properties from an individual job_queue.

SELECT
region,
job_queue_name,
job_queue_arn,
compute_environment_order,
job_state_time_limit_actions,
priority,
state,
scheduling_policy_arn,
tags
FROM aws.batch.job_queues
WHERE region = 'us-east-1' AND data__Identifier = '<JobQueueArn>';

INSERT example

Use the following StackQL query and manifest file to create a new job_queue resource, using stack-deploy.

/*+ create */
INSERT INTO aws.batch.job_queues (
ComputeEnvironmentOrder,
Priority,
region
)
SELECT
'{{ ComputeEnvironmentOrder }}',
'{{ Priority }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.batch.job_queues
WHERE data__Identifier = '<JobQueueArn>'
AND region = 'us-east-1';

Permissions

To operate on the job_queues resource, the following permissions are required:

Create

Batch:CreateJobQueue,
Batch:TagResource,
Batch:DescribeJobQueues

Read

Batch:DescribeJobQueues

Update

Batch:DescribeJobQueues,
Batch:UpdateJobQueue,
Batch:TagResource,
Batch:UnTagResource

Delete

Batch:UpdateJobQueue,
Batch:DescribeJobQueues,
Batch:DeleteJobQueue

List

Batch:DescribeJobQueues