Skip to main content

queue_fleet_associations

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

Overview

Namequeue_fleet_associations
TypeResource
Idaws.deadline.queue_fleet_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The date and time the resource was created.
created_bystringThe user or system that created this resource.
fleet_idstringThe fleet ID for the queue-fleet association. (pattern: <code>fleet-[0-9a-f]{32}</code>)
queue_idstringThe queue ID for the queue-fleet association. (pattern: <code>queue-[0-9a-f]{32}</code>)
statusstringThe status of the queue-fleet association. (ACTIVE, STOP_SCHEDULING_AND_COMPLETE_TASKS, STOP_SCHEDULING_AND_CANCEL_TASKS, STOPPED)
updated_atstring (date-time)The date and time the resource was updated.
updated_bystringThe user or system that updated this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_queue_fleet_associationselectfarm_id, queue_id, fleet_id, regionGets a queue-fleet association.
list_queue_fleet_associationsselectfarm_id, regionnextToken, maxResults, queueId, fleetIdLists queue-fleet associations.
create_queue_fleet_associationinsertfarm_id, region, queueId, fleetIdCreates an association between a queue and a fleet.
update_queue_fleet_associationupdatefarm_id, queue_id, fleet_id, region, statusUpdates a queue-fleet association.
delete_queue_fleet_associationdeletefarm_id, queue_id, fleet_id, regionDeletes a queue-fleet 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 farm ID of the farm that holds the queue-fleet association.
fleet_idstringThe fleet ID of the queue-fleet association.
queue_idstringThe queue ID of the queue-fleet association.
regionstringAWS region (default: us-east-1)
fleetIdstringThe fleet ID for the queue-fleet association list.
maxResultsintegerThe maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.
nextTokenstringThe token for the next set of results, or null to start from the beginning.
queueIdstringThe queue ID for the queue-fleet association list.

SELECT examples

Gets a queue-fleet association.

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

INSERT examples

Creates an association between a queue and a fleet.

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

UPDATE examples

Updates a queue-fleet association.

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

DELETE examples

Deletes a queue-fleet association.

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