Skip to main content

volumes

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

Overview

Namevolumes
TypeResource
Idaws.deadline.volumes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attached_worker_idstringThe worker ID of the worker the volume is attached to. (pattern: <code>worker-[0-9a-f]{32}</code>)
availability_zone_idstringThe Availability Zone ID of the volume.
created_atstring (date-time)The date and time the resource was created.
expires_atstring (date-time)The date and time the volume expires and will be deleted.
farm_idstringThe farm ID of the farm that contains the fleet. (pattern: <code>farm-[0-9a-f]{32}</code>)
fleet_idstringThe fleet ID of the fleet that contains the volume. (pattern: <code>fleet-[0-9a-f]{32}</code>)
iopsintegerThe IOPS of the volume.
last_assigned_atstring (date-time)The date and time the volume was last assigned to a worker.
last_released_atstring (date-time)The date and time the volume was last released from a worker.
size_gi_bintegerThe volume size in GiB.
statestringThe state of the volume. (PENDING_CREATION, PENDING_ATTACHMENT, IN_USE, AVAILABLE, PENDING_DELETION)
throughput_mi_bintegerThe throughput of the volume in MiB.
volume_idstringThe volume ID. (pattern: <code>volume-[0-9a-f]{32}</code>)
volume_typestringThe EBS volume type. (gp3)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_volumeselectfarm_id, fleet_id, volume_id, regionGets a persistent volume.
list_volumesselectfarm_id, fleet_id, regionnextToken, maxResultsLists the persistent volumes in a fleet.
delete_volumedeletefarm_id, fleet_id, volume_id, regionDeletes a persistent volume.

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 contains the fleet.
fleet_idstringThe fleet ID of the fleet that contains the volume.
regionstringAWS region (default: us-east-1)
volume_idstringThe volume ID of the volume to delete.
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.

SELECT examples

Gets a persistent volume.

SELECT
attached_worker_id,
availability_zone_id,
created_at,
expires_at,
farm_id,
fleet_id,
iops,
last_assigned_at,
last_released_at,
size_gi_b,
state,
throughput_mi_b,
volume_id,
volume_type
FROM aws.deadline.volumes
WHERE farm_id = '{{ farm_id }}' -- required
AND fleet_id = '{{ fleet_id }}' -- required
AND volume_id = '{{ volume_id }}' -- required
AND region = '{{ region }}' -- required
;

DELETE examples

Deletes a persistent volume.

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