Skip to main content

queue_limit_associations

Creates, updates, deletes, gets or lists a queue_limit_associations resource.

Overview

Namequeue_limit_associations
TypeResource
Idaws.deadline.queue_limit_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The Unix timestamp of the date and time that the association was created.
created_bystringThe user identifier of the person that created the association.
limit_idstringThe unique identifier of the limit associated with the queue. (pattern: <code>limit-[0-9a-f]{32}</code>)
queue_idstringThe unique identifier of the queue associated with the limit. (pattern: <code>queue-[0-9a-f]{32}</code>)
statusstringThe current status of the limit. (ACTIVE, STOP_LIMIT_USAGE_AND_COMPLETE_TASKS, STOP_LIMIT_USAGE_AND_CANCEL_TASKS, STOPPED)
updated_atstring (date-time)The Unix timestamp of the date and time that the association was last updated.
updated_bystringThe user identifier of the person that last updated the association.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_queue_limit_associationselectfarm_id, queue_id, limit_id, regionGets information about a specific association between a queue and a limit.
list_queue_limit_associationsselectfarm_id, regionnextToken, maxResults, queueId, limitIdGets a list of the associations between queues and limits defined in a farm.
create_queue_limit_associationinsertfarm_id, region, queueId, limitIdAssociates a limit with a particular queue. After the limit is associated, all workers for jobs that specify the limit associated with the queue are subject to the limit. You can't associate two limits with the same amountRequirementName to the same queue.
update_queue_limit_associationupdatefarm_id, queue_id, limit_id, region, statusUpdates the status of the queue. If you set the status to one of the STOP_LIMIT_USAGE* values, there will be a delay before the status transitions to the STOPPED state.
delete_queue_limit_associationdeletefarm_id, queue_id, limit_id, regionRemoves the association between a queue and a limit. You must use the UpdateQueueLimitAssociation operation to set the status to STOP_LIMIT_USAGE_AND_COMPLETE_TASKS or STOP_LIMIT_USAGE_AND_CANCEL_TASKS. The status does not change immediately. Use the GetQueueLimitAssociation operation to see if the status changed to STOPPED before deleting the association.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
farm_idstringThe unique identifier of the farm that contains the queue and limit to disassociate.
limit_idstringThe unique identifier of the limit to disassociate.
queue_idstringThe unique identifier of the queue to disassociate.
regionstringAWS region (default: us-east-1)
limitIdstringSpecifies that the operation should return only the queue limit associations for the specified limit. If you specify both the queueId and the limitId, only the specified limit is returned if it exists.
maxResultsintegerThe maximum number of associations to return in each page of results.
nextTokenstringThe token for the next set of results, or null to start from the beginning.
queueIdstringSpecifies that the operation should return only the queue limit associations for the specified queue. If you specify both the queueId and the limitId, only the specified limit is returned if it exists.

SELECT examples

Gets information about a specific association between a queue and a limit.

SELECT
created_at,
created_by,
limit_id,
queue_id,
status,
updated_at,
updated_by
FROM aws.deadline.queue_limit_associations
WHERE farm_id = '{{ farm_id }}' -- required
AND queue_id = '{{ queue_id }}' -- required
AND limit_id = '{{ limit_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Associates a limit with a particular queue. After the limit is associated, all workers for jobs that specify the limit associated with the queue are subject to the limit. You can't associate two limits with the same amountRequirementName to the same queue.

INSERT INTO aws.deadline.queue_limit_associations (
queueId,
limitId,
farm_id,
region
)
SELECT
'{{ queueId }}' /* required */,
'{{ limitId }}' /* required */,
'{{ farm_id }}',
'{{ region }}'
;

UPDATE examples

Updates the status of the queue. If you set the status to one of the STOP_LIMIT_USAGE* values, there will be a delay before the status transitions to the STOPPED state.

UPDATE aws.deadline.queue_limit_associations
SET
status = '{{ status }}'
WHERE
farm_id = '{{ farm_id }}' --required
AND queue_id = '{{ queue_id }}' --required
AND limit_id = '{{ limit_id }}' --required
AND region = '{{ region }}' --required
AND status = '{{ status }}' --required;

DELETE examples

Removes the association between a queue and a limit. You must use the UpdateQueueLimitAssociation operation to set the status to STOP_LIMIT_USAGE_AND_COMPLETE_TASKS or STOP_LIMIT_USAGE_AND_CANCEL_TASKS. The status does not change immediately. Use the GetQueueLimitAssociation operation to see if the status changed to STOPPED before deleting the association.

DELETE FROM aws.deadline.queue_limit_associations
WHERE farm_id = '{{ farm_id }}' --required
AND queue_id = '{{ queue_id }}' --required
AND limit_id = '{{ limit_id }}' --required
AND region = '{{ region }}' --required
;