fleets
Creates, updates, deletes or gets a fleet
resource or lists fleets
in a region
Overview
Name | fleets |
Type | Resource |
Description | Definition of AWS::Deadline::Fleet Resource Type |
Id | aws.deadline.fleets |
Fields
Name | Datatype | Description |
---|---|---|
capabilities | object | |
configuration | undefined | |
description | string | |
display_name | string | |
farm_id | string | |
fleet_id | string | |
max_worker_count | integer | |
min_worker_count | integer | |
role_arn | string | |
status | string | |
worker_count | integer | |
arn | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Configuration, DisplayName, MaxWorkerCount, RoleArn, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.deadline.fleets (
Configuration,
DisplayName,
MaxWorkerCount,
RoleArn,
region
)
SELECT
'{{ Configuration }}',
'{{ DisplayName }}',
'{{ MaxWorkerCount }}',
'{{ RoleArn }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.deadline.fleets (
Configuration,
Description,
DisplayName,
FarmId,
MaxWorkerCount,
MinWorkerCount,
RoleArn,
region
)
SELECT
'{{ Configuration }}',
'{{ Description }}',
'{{ DisplayName }}',
'{{ FarmId }}',
'{{ MaxWorkerCount }}',
'{{ MinWorkerCount }}',
'{{ RoleArn }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: fleet
props:
- name: Configuration
value: null
- name: Description
value: '{{ Description }}'
- name: DisplayName
value: '{{ DisplayName }}'
- name: FarmId
value: '{{ FarmId }}'
- name: MaxWorkerCount
value: '{{ MaxWorkerCount }}'
- name: MinWorkerCount
value: '{{ MinWorkerCount }}'
- name: RoleArn
value: '{{ RoleArn }}'
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