Skip to main content

storage_profiles

Creates, updates, deletes or gets a storage_profile resource or lists storage_profiles in a region

Overview

Namestorage_profiles
TypeResource
DescriptionDefinition of AWS::Deadline::StorageProfile Resource Type
Idawscc.deadline.storage_profiles

Fields

NameDatatypeDescription
display_namestring
farm_idstring
file_system_locationsarray
os_familystring
storage_profile_idstring
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcestorage_profilesINSERTDisplayName, FarmId, OsFamily, region
delete_resourcestorage_profilesDELETEIdentifier, region
update_resourcestorage_profilesUPDATEIdentifier, PatchDocument, region
list_resourcesstorage_profiles_list_onlySELECTregion
get_resourcestorage_profilesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual storage_profile.

SELECT
region,
display_name,
farm_id,
file_system_locations,
os_family,
storage_profile_id
FROM awscc.deadline.storage_profiles
WHERE
region = '{{ region }}' AND
Identifier = '{{ farm_id }}|{{ storage_profile_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.deadline.storage_profiles (
DisplayName,
FarmId,
OsFamily,
region
)
SELECT
'{{ display_name }}',
'{{ farm_id }}',
'{{ os_family }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.deadline.storage_profiles
SET PatchDocument = string('{{ {
"DisplayName": display_name,
"FileSystemLocations": file_system_locations,
"OsFamily": os_family
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ farm_id }}|{{ storage_profile_id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.deadline.storage_profiles
WHERE
Identifier = '{{ farm_id }}|{{ storage_profile_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

deadline:CreateStorageProfile,
deadline:GetStorageProfile,
identitystore:ListGroupMembershipsForMember