Skip to main content

queues

Creates, updates, deletes or gets a queue resource or lists queues in a region

Overview

Namequeues
TypeResource
DescriptionDefinition of AWS::Deadline::Queue Resource Type
Idawscc.deadline.queues

Fields

NameDatatypeDescription
allowed_storage_profile_idsarray
default_budget_actionstring
descriptionstring
display_namestring
farm_idstring
job_attachment_settingsobject
job_run_as_userobject
queue_idstring
required_file_system_location_namesarray
role_arnstring
arnstring
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::Deadline::Queue.

Methods

NameResourceAccessible byRequired Params
create_resourcequeuesINSERTDisplayName, FarmId, region
delete_resourcequeuesDELETEIdentifier, region
update_resourcequeuesUPDATEIdentifier, PatchDocument, region
list_resourcesqueues_list_onlySELECTregion
get_resourcequeuesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual queue.

SELECT
region,
allowed_storage_profile_ids,
default_budget_action,
description,
display_name,
farm_id,
job_attachment_settings,
job_run_as_user,
queue_id,
required_file_system_location_names,
role_arn,
arn,
tags
FROM awscc.deadline.queues
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.deadline.queues (
DisplayName,
FarmId,
region
)
SELECT
'{{ display_name }}',
'{{ farm_id }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a queue resource, using stack-deploy.

/*+ update */
UPDATE awscc.deadline.queues
SET PatchDocument = string('{{ {
"AllowedStorageProfileIds": allowed_storage_profile_ids,
"DefaultBudgetAction": default_budget_action,
"Description": description,
"DisplayName": display_name,
"JobAttachmentSettings": job_attachment_settings,
"JobRunAsUser": job_run_as_user,
"RequiredFileSystemLocationNames": required_file_system_location_names,
"RoleArn": role_arn,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.deadline.queues
WHERE
Identifier = '{{ arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

deadline:CreateQueue,
deadline:GetQueue,
iam:PassRole,
identitystore:ListGroupMembershipsForMember,
logs:CreateLogGroup,
s3:ListBucket,
deadline:TagResource,
deadline:ListTagsForResource