Skip to main content

scheduling_policies

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

Overview

Namescheduling_policies
TypeResource
Idaws.batch.scheduling_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
scheduling_policiesarrayThe list of scheduling policies.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_scheduling_policiesselectregionDescribes one or more of your scheduling policies.
list_scheduling_policiesselectregionReturns a list of Batch scheduling policies.
create_scheduling_policyinsertregion, nameCreates an Batch scheduling policy.
update_scheduling_policyupdateregion, arnUpdates a scheduling policy.
delete_scheduling_policydeleteregionDeletes the specified scheduling policy. You can't delete a scheduling policy that's used in any job 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
regionstringAWS region (default: us-east-1)

SELECT examples

Describes one or more of your scheduling policies.

SELECT
scheduling_policies
FROM aws.batch.scheduling_policies
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an Batch scheduling policy.

INSERT INTO aws.batch.scheduling_policies (
name,
quotaSharePolicy,
fairsharePolicy,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ quotaSharePolicy }}',
'{{ fairsharePolicy }}',
'{{ tags }}',
'{{ region }}'
RETURNING
name,
arn
;

UPDATE examples

Updates a scheduling policy.

UPDATE aws.batch.scheduling_policies
SET
arn = '{{ arn }}',
quotaSharePolicy = '{{ quotaSharePolicy }}',
fairsharePolicy = '{{ fairsharePolicy }}'
WHERE
region = '{{ region }}' --required
AND arn = '{{ arn }}' --required;

DELETE examples

Deletes the specified scheduling policy. You can't delete a scheduling policy that's used in any job queues.

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