Skip to main content

limits

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

Overview

Namelimits
TypeResource
Idaws.deadline.limits

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
amount_requirement_namestringThe value that you specify as the name in the amounts field of the hostRequirements in a step of a job template to declare the limit requirement.
created_atstring (date-time)The Unix timestamp of the date and time that the limit was created.
created_bystringThe user identifier of the person that created the limit.
current_countintegerThe number of resources from the limit that are being used by jobs. The result is delayed and may not be the count at the time that you called the operation.
descriptionstringThe description of the limit that helps identify what the limit is used for. This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
display_namestringThe display name of the limit. This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
farm_idstringThe unique identifier of the farm that contains the limit. (pattern: <code>farm-[0-9a-f]{32}</code>)
limit_idstringThe unique identifier of the limit. (pattern: <code>limit-[0-9a-f]{32}</code>)
max_countintegerThe maximum number of resources constrained by this limit. When all of the resources are in use, steps that require the limit won't be scheduled until the resource is available. The maxValue must not be 0. If the value is -1, there is no restriction on the number of resources that can be acquired for this limit.
updated_atstring (date-time)The Unix timestamp of the date and time that the limit was last updated.
updated_bystringThe user identifier of the person that last updated the limit.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_limitselectfarm_id, limit_id, regionGets information about a specific limit.
list_limitsselectfarm_id, regionnextToken, maxResultsGets a list of limits defined in the specified farm.
create_limitinsertfarm_id, region, displayName, amountRequirementName, maxCountX-Amz-Client-TokenCreates a limit that manages the distribution of shared resources, such as floating licenses. A limit can throttle work assignments, help manage workloads, and track current usage. Before you use a limit, you must associate the limit with one or more queues. You must add the amountRequirementName to a step in a job template to declare the limit requirement.
update_limitupdatefarm_id, limit_id, regionUpdates the properties of the specified limit.
delete_limitdeletefarm_id, limit_id, regionRemoves a limit from the specified farm. Before you delete a limit you must use the DeleteQueueLimitAssociation operation to remove the association with any queues.

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 limit to delete.
limit_idstringThe unique identifier of the limit to delete.
regionstringAWS region (default: us-east-1)
X-Amz-Client-TokenstringThe unique token which the server uses to recognize retries of the same request.
maxResultsintegerThe maximum number of limits to return in each page of results.
nextTokenstringThe token for the next set of results, or null to start from the beginning.

SELECT examples

Gets information about a specific limit.

SELECT
amount_requirement_name,
created_at,
created_by,
current_count,
description,
display_name,
farm_id,
limit_id,
max_count,
updated_at,
updated_by
FROM aws.deadline.limits
WHERE farm_id = '{{ farm_id }}' -- required
AND limit_id = '{{ limit_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a limit that manages the distribution of shared resources, such as floating licenses. A limit can throttle work assignments, help manage workloads, and track current usage. Before you use a limit, you must associate the limit with one or more queues. You must add the amountRequirementName to a step in a job template to declare the limit requirement.

INSERT INTO aws.deadline.limits (
displayName,
amountRequirementName,
maxCount,
description,
farm_id,
region,
`X-Amz-Client-Token`
)
SELECT
'{{ displayName }}' /* required */,
'{{ amountRequirementName }}' /* required */,
{{ maxCount }} /* required */,
'{{ description }}',
'{{ farm_id }}',
'{{ region }}',
'{{ X-Amz-Client-Token }}'
RETURNING
limit_id
;

UPDATE examples

Updates the properties of the specified limit.

UPDATE aws.deadline.limits
SET
displayName = '{{ displayName }}',
description = '{{ description }}',
maxCount = {{ maxCount }}
WHERE
farm_id = '{{ farm_id }}' --required
AND limit_id = '{{ limit_id }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Removes a limit from the specified farm. Before you delete a limit you must use the DeleteQueueLimitAssociation operation to remove the association with any queues.

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