Skip to main content

farms

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

Overview

Namefarms
TypeResource
Idaws.deadline.farms

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cost_scale_factornumber (float)A multiplier applied to the farm's calculated costs for usage data and budget tracking. A value less than 1 represents a discount, a value greater than 1 represents a premium, and a value of 1 represents no adjustment.
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 farm. 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 farm. 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 to get. (pattern: <code>farm-[0-9a-f]{32}</code>)
kms_key_arnstringThe ARN of the KMS key used on the farm. (pattern: <code>arn:(aws[a-zA-Z-]*):kms:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1}:\d{12}:key/[\w-]{1,120}</code>)
updated_atstring (date-time)The date and time the resource was updated.
updated_bystringThe user or system that updated this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_farmselectfarm_id, regionGet a farm.
list_farmsselectregionnextToken, maxResults, principalIdLists farms.
create_farminsertregion, displayNameX-Amz-Client-TokenCreates a farm to allow space for queues and fleets. Farms are the space where the components of your renders gather and are pieced together in the cloud. Farms contain budgets and allow you to enforce permissions. Deadline Cloud farms are a useful container for large projects.
associate_member_to_farmupdatefarm_id, principal_id, region, principalType, identityStoreId, membershipLevelAssigns a farm membership level to a member.
disassociate_member_from_farmupdatefarm_id, principal_id, regionDisassociates a member from a farm.
update_farmupdatefarm_id, regionUpdates a farm.
delete_farmdeletefarm_id, regionDeletes a farm.

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 of the farm to delete.
principal_idstringA member's principal ID to disassociate from a farm.
regionstringAWS region (default: us-east-1)
X-Amz-Client-TokenstringThe unique token which the server uses to recognize retries of the same request.
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 member to list on the farm.

SELECT examples

Get a farm.

SELECT
cost_scale_factor,
created_at,
created_by,
description,
display_name,
farm_id,
kms_key_arn,
updated_at,
updated_by
FROM aws.deadline.farms
WHERE farm_id = '{{ farm_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a farm to allow space for queues and fleets. Farms are the space where the components of your renders gather and are pieced together in the cloud. Farms contain budgets and allow you to enforce permissions. Deadline Cloud farms are a useful container for large projects.

INSERT INTO aws.deadline.farms (
displayName,
description,
kmsKeyArn,
costScaleFactor,
tags,
region,
`X-Amz-Client-Token`
)
SELECT
'{{ displayName }}' /* required */,
'{{ description }}',
'{{ kmsKeyArn }}',
{{ costScaleFactor }},
'{{ tags }}',
'{{ region }}',
'{{ X-Amz-Client-Token }}'
RETURNING
farm_id
;

UPDATE examples

Assigns a farm membership level to a member.

UPDATE aws.deadline.farms
SET
principalType = '{{ principalType }}',
identityStoreId = '{{ identityStoreId }}',
membershipLevel = '{{ membershipLevel }}',
identityCenterRegion = '{{ identityCenterRegion }}'
WHERE
farm_id = '{{ farm_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 farm.

DELETE FROM aws.deadline.farms
WHERE farm_id = '{{ farm_id }}' --required
AND region = '{{ region }}' --required
;