Skip to main content

fleets

Creates, updates, deletes or gets a fleet resource or lists fleets in a region

Overview

Namefleets
TypeResource
DescriptionDefinition of AWS::Deadline::Fleet Resource Type
Idaws.deadline.fleets

Fields

NameDatatypeDescription
capabilitiesobject
configurationundefined
descriptionstring
display_namestring
farm_idstring
fleet_idstring
max_worker_countinteger
min_worker_countinteger
role_arnstring
statusstring
worker_countinteger
arnstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTConfiguration, DisplayName, MaxWorkerCount, RoleArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all fleets in a region.

SELECT
region,
capabilities,
configuration,
description,
display_name,
farm_id,
fleet_id,
max_worker_count,
min_worker_count,
role_arn,
status,
worker_count,
arn
FROM aws.deadline.fleets
WHERE region = 'us-east-1';

Gets all properties from an individual fleet.

SELECT
region,
capabilities,
configuration,
description,
display_name,
farm_id,
fleet_id,
max_worker_count,
min_worker_count,
role_arn,
status,
worker_count,
arn
FROM aws.deadline.fleets
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

Use the following StackQL query and manifest file to create a new fleet resource, using stack-deploy.

/*+ create */
INSERT INTO aws.deadline.fleets (
Configuration,
DisplayName,
MaxWorkerCount,
RoleArn,
region
)
SELECT
'{{ Configuration }}',
'{{ DisplayName }}',
'{{ MaxWorkerCount }}',
'{{ RoleArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.deadline.fleets
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

To operate on the fleets resource, the following permissions are required:

Create

deadline:CreateFleet,
deadline:GetFleet,
iam:PassRole,
identitystore:ListGroupMembershipsForMember,
logs:CreateLogGroup

Read

deadline:GetFleet,
identitystore:ListGroupMembershipsForMember

Update

deadline:UpdateFleet,
deadline:GetFleet,
iam:PassRole,
identitystore:ListGroupMembershipsForMember

Delete

deadline:DeleteFleet,
deadline:GetFleet,
identitystore:ListGroupMembershipsForMember

List

deadline:ListFleets,
identitystore:DescribeGroup,
identitystore:DescribeUser,
identitystore:ListGroupMembershipsForMember