Skip to main content

fleets

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

Overview

Namefleets
TypeResource
Idaws.deadline.fleets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
auto_scaling_statusstringThe Auto Scaling status of the fleet. Either GROWING, STEADY, or SHRINKING. (GROWING, STEADY, SHRINKING)
capabilitiesobjectOutlines what the fleet is capable of for minimums, maximums, and naming, in addition to attribute names and values.
configurationobjectFleet configuration details.
created_atstring (date-time)The date and time the resource was created.
created_bystringThe user or system that created this resource.
descriptionstringThe description of the fleet. 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 fleet. 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 farm ID of the farm in the fleet. (pattern: <code>farm-[0-9a-f]{32}</code>)
fleet_idstringThe fleet ID. (pattern: <code>fleet-[0-9a-f]{32}</code>)
host_configurationobjectProvides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet. To remove a script from a fleet, use the UpdateFleet operation with the hostConfiguration scriptBody parameter set to an empty string ("").
max_worker_countintegerThe maximum number of workers specified in the fleet.
min_worker_countintegerThe minimum number of workers specified in the fleet.
role_arnstringThe IAM role ARN. (pattern: <code>arn:(aws[a-zA-Z-]):iam::\d{12}:role(/[!-.0-~]+)/[\w+=,.@-]+</code>)
statusstringThe status of the fleet. (ACTIVE, CREATE_IN_PROGRESS, UPDATE_IN_PROGRESS, CREATE_FAILED, UPDATE_FAILED, SUSPENDED)
status_messagestringA message that communicates a suspended status of the fleet.
target_worker_countintegerThe number of target workers in the fleet.
updated_atstring (date-time)The date and time the resource was updated.
updated_bystringThe user or system that updated this resource.
worker_countintegerThe number of workers in the fleet.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_fleetselectfarm_id, fleet_id, regionGet a fleet.
list_fleetsselectfarm_id, regionnextToken, maxResults, principalId, displayName, statusLists fleets.
create_fleetinsertfarm_id, region, displayName, roleArn, maxWorkerCount, configurationX-Amz-Client-TokenCreates a fleet. Fleets gather information relating to compute, or capacity, for renders within your farms. You can choose to manage your own capacity or opt to have fleets fully managed by Deadline Cloud.
associate_member_to_fleetupdatefarm_id, fleet_id, principal_id, region, principalType, identityStoreId, membershipLevelAssigns a fleet membership level to a member.
disassociate_member_from_fleetupdatefarm_id, fleet_id, principal_id, regionDisassociates a member from a fleet.
update_fleetupdatefarm_id, fleet_id, regionX-Amz-Client-TokenUpdates a fleet.
delete_fleetdeletefarm_id, fleet_id, regionX-Amz-Client-TokenDeletes a fleet.
assume_fleet_role_for_readexecfarm_id, fleet_id, regionGet Amazon Web Services credentials from the fleet role. The IAM permissions of the credentials are scoped down to have read-only access.

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 for the fleet's farm.
fleet_idstringThe fleet ID.
principal_idstringA member's principal ID to disassociate from a fleet.
regionstringAWS region (default: us-east-1)
X-Amz-Client-TokenstringThe unique token which the server uses to recognize retries of the same request.
displayNamestringThe display names of a list of fleets. 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.
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.
principalIdstringThe principal ID of the members to include in the fleet.
statusstringThe status of the fleet.

SELECT examples

Get a fleet.

SELECT
auto_scaling_status,
capabilities,
configuration,
created_at,
created_by,
description,
display_name,
farm_id,
fleet_id,
host_configuration,
max_worker_count,
min_worker_count,
role_arn,
status,
status_message,
target_worker_count,
updated_at,
updated_by,
worker_count
FROM aws.deadline.fleets
WHERE farm_id = '{{ farm_id }}' -- required
AND fleet_id = '{{ fleet_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a fleet. Fleets gather information relating to compute, or capacity, for renders within your farms. You can choose to manage your own capacity or opt to have fleets fully managed by Deadline Cloud.

INSERT INTO aws.deadline.fleets (
displayName,
description,
roleArn,
minWorkerCount,
maxWorkerCount,
configuration,
tags,
hostConfiguration,
farm_id,
region,
`X-Amz-Client-Token`
)
SELECT
'{{ displayName }}' /* required */,
'{{ description }}',
'{{ roleArn }}' /* required */,
{{ minWorkerCount }},
{{ maxWorkerCount }} /* required */,
'{{ configuration }}' /* required */,
'{{ tags }}',
'{{ hostConfiguration }}',
'{{ farm_id }}',
'{{ region }}',
'{{ X-Amz-Client-Token }}'
RETURNING
fleet_id
;

UPDATE examples

Assigns a fleet membership level to a member.

UPDATE aws.deadline.fleets
SET
principalType = '{{ principalType }}',
identityStoreId = '{{ identityStoreId }}',
membershipLevel = '{{ membershipLevel }}',
identityCenterRegion = '{{ identityCenterRegion }}'
WHERE
farm_id = '{{ farm_id }}' --required
AND fleet_id = '{{ fleet_id }}' --required
AND principal_id = '{{ principal_id }}' --required
AND region = '{{ region }}' --required
AND principalType = '{{ principalType }}' --required
AND identityStoreId = '{{ identityStoreId }}' --required
AND membershipLevel = '{{ membershipLevel }}' --required;

DELETE examples

Deletes a fleet.

DELETE FROM aws.deadline.fleets
WHERE farm_id = '{{ farm_id }}' --required
AND fleet_id = '{{ fleet_id }}' --required
AND region = '{{ region }}' --required
AND `X-Amz-Client-Token` = '{{ X-Amz-Client-Token }}'
;

Lifecycle Methods

Get Amazon Web Services credentials from the fleet role. The IAM permissions of the credentials are scoped down to have read-only access.

EXEC aws.deadline.fleets.assume_fleet_role_for_read
@farm_id='{{ farm_id }}' --required,
@fleet_id='{{ fleet_id }}' --required,
@region='{{ region }}' --required
;