Skip to main content

farms

Creates, updates, deletes or gets a farm resource or lists farms in a region

Overview

Namefarms
TypeResource
DescriptionDefinition of AWS::Deadline::Farm Resource Type
Idaws.deadline.farms

Fields

NameDatatypeDescription
descriptionstring
display_namestring
farm_idstring
kms_key_arnstring
arnstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDisplayName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all farms in a region.

SELECT
region,
description,
display_name,
farm_id,
kms_key_arn,
arn
FROM aws.deadline.farms
WHERE region = 'us-east-1';

Gets all properties from an individual farm.

SELECT
region,
description,
display_name,
farm_id,
kms_key_arn,
arn
FROM aws.deadline.farms
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.deadline.farms (
DisplayName,
region
)
SELECT
'{{ DisplayName }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

deadline:CreateFarm,
deadline:GetFarm,
kms:Encrypt,
kms:Decrypt,
kms:CreateGrant,
kms:GenerateDataKey

Read

deadline:GetFarm,
identitystore:ListGroupMembershipsForMember,
kms:Encrypt,
kms:Decrypt,
kms:CreateGrant,
kms:GenerateDataKey

Update

deadline:UpdateFarm,
deadline:GetFarm,
identitystore:ListGroupMembershipsForMember,
kms:Encrypt,
kms:Decrypt,
kms:CreateGrant,
kms:GenerateDataKey

Delete

deadline:DeleteFarm,
deadline:GetFarm,
identitystore:ListGroupMembershipsForMember,
kms:Encrypt,
kms:Decrypt,
kms:CreateGrant,
kms:GenerateDataKey

List

deadline:ListFarms,
identitystore:ListGroupMembershipsForMember