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
Idawscc.deadline.fleets

Fields

NameDatatypeDescription
capabilitiesobject
configurationobject
descriptionstring
display_namestring
farm_idstring
fleet_idstring
host_configurationobject
max_worker_countinteger
min_worker_countinteger
role_arnstring
statusstring
status_messagestring
worker_countinteger
arnstring
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::Deadline::Fleet.

Methods

NameResourceAccessible byRequired Params
create_resourcefleetsINSERTConfiguration, DisplayName, FarmId, MaxWorkerCount, RoleArn, region
delete_resourcefleetsDELETEIdentifier, region
update_resourcefleetsUPDATEIdentifier, PatchDocument, region
list_resourcesfleets_list_onlySELECTregion
get_resourcefleetsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual fleet.

SELECT
region,
capabilities,
configuration,
description,
display_name,
farm_id,
fleet_id,
host_configuration,
max_worker_count,
min_worker_count,
role_arn,
status,
status_message,
worker_count,
arn,
tags
FROM awscc.deadline.fleets
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.deadline.fleets (
Configuration,
DisplayName,
FarmId,
MaxWorkerCount,
RoleArn,
region
)
SELECT
'{{ configuration }}',
'{{ display_name }}',
'{{ farm_id }}',
'{{ max_worker_count }}',
'{{ role_arn }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.deadline.fleets
SET PatchDocument = string('{{ {
"Configuration": configuration,
"Description": description,
"DisplayName": display_name,
"HostConfiguration": host_configuration,
"MaxWorkerCount": max_worker_count,
"MinWorkerCount": min_worker_count,
"RoleArn": role_arn,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.deadline.fleets
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

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

deadline:CreateFleet,
deadline:GetFleet,
iam:PassRole,
identitystore:ListGroupMembershipsForMember,
logs:CreateLogGroup,
deadline:TagResource,
deadline:ListTagsForResource,
vpc-lattice:GetResourceGateway,
vpc-lattice:GetResourceConfiguration,
ec2:CreateVpcEndpoint,
ec2:DescribeSubnets,
ec2:DescribeSecurityGroups,
ec2:DescribeVpcs