Skip to main content

quota_shares

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

Overview

Namequota_shares
TypeResource
Idaws.batch.quota_shares

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
capacity_limitsarrayA list that specifies the quantity and type of compute capacity allocated to the quota share.
job_queue_arnstringThe ARN of the job queue associated with the quota share.
preemption_configurationobjectSpecifies the preemption behavior for jobs in a quota share.
quota_share_arnstringThe Amazon Resource Name (ARN) of the quota share.
quota_share_namestringThe name of the quota share.
resource_sharing_configurationobjectSpecifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.
statestringThe state of the quota share. (ENABLED, DISABLED)
statusstringThe current status of the quota share. (CREATING, VALID, INVALID, UPDATING, DELETING)
tagsobjectThe tags applied to the quota share.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_quota_shareselectregionReturns a description of the specified quota share.
list_quota_sharesselectregionReturns a list of Batch quota shares associated with a job queue.
create_quota_shareinsertregion, quotaShareName, jobQueue, capacityLimits, resourceSharingConfiguration, preemptionConfigurationCreates an Batch quota share. Each quota share operates as a virtual queue with a configured compute capacity, resource sharing strategy, and borrow limits.
update_quota_shareupdateregion, quotaShareArnUpdates a quota share.
delete_quota_sharedeleteregionDeletes the specified quota share. You must first disable submissions for the share by updating the state to DISABLED using the UpdateQuotaShare operation. All jobs in the share are eventually terminated when you delete a quota share.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a description of the specified quota share.

SELECT
capacity_limits,
job_queue_arn,
preemption_configuration,
quota_share_arn,
quota_share_name,
resource_sharing_configuration,
state,
status,
tags
FROM aws.batch.quota_shares
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an Batch quota share. Each quota share operates as a virtual queue with a configured compute capacity, resource sharing strategy, and borrow limits.

INSERT INTO aws.batch.quota_shares (
quotaShareName,
jobQueue,
capacityLimits,
resourceSharingConfiguration,
preemptionConfiguration,
state,
tags,
region
)
SELECT
'{{ quotaShareName }}' /* required */,
'{{ jobQueue }}' /* required */,
'{{ capacityLimits }}' /* required */,
'{{ resourceSharingConfiguration }}' /* required */,
'{{ preemptionConfiguration }}' /* required */,
'{{ state }}',
'{{ tags }}',
'{{ region }}'
RETURNING
quota_share_arn,
quota_share_name
;

UPDATE examples

Updates a quota share.

UPDATE aws.batch.quota_shares
SET
quotaShareArn = '{{ quotaShareArn }}',
capacityLimits = '{{ capacityLimits }}',
resourceSharingConfiguration = '{{ resourceSharingConfiguration }}',
preemptionConfiguration = '{{ preemptionConfiguration }}',
state = '{{ state }}'
WHERE
region = '{{ region }}' --required
AND quotaShareArn = '{{ quotaShareArn }}' --required
RETURNING
quota_share_arn,
quota_share_name;

DELETE examples

Deletes the specified quota share. You must first disable submissions for the share by updating the state to DISABLED using the UpdateQuotaShare operation. All jobs in the share are eventually terminated when you delete a quota share.

DELETE FROM aws.batch.quota_shares
WHERE region = '{{ region }}' --required
;