Skip to main content

collaborations

Creates, updates, deletes or gets a collaboration resource or lists collaborations in a region

Overview

Namecollaborations
TypeResource
DescriptionRepresents a collaboration between AWS accounts that allows for secure data collaboration
Idawscc.cleanrooms.collaborations

Fields

NameDatatypeDescription
arnstring
tagsarrayAn arbitrary set of tags (key-value pairs) for this cleanrooms collaboration.
collaboration_identifierstring
creator_display_namestring
creator_member_abilitiesarray
creator_ml_member_abilitiesobject
data_encryption_metadataobject
descriptionstring
membersarray
namestring
job_log_statusstring
query_log_statusstring
analytics_enginestring
creator_payment_configurationobject
regionstringAWS region.

For more information, see AWS::CleanRooms::Collaboration.

Methods

NameResourceAccessible byRequired Params
create_resourcecollaborationsINSERTCreatorDisplayName, Name, Description, QueryLogStatus, region
delete_resourcecollaborationsDELETEIdentifier, region
update_resourcecollaborationsUPDATEIdentifier, PatchDocument, region
list_resourcescollaborations_list_onlySELECTregion
get_resourcecollaborationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual collaboration.

SELECT
region,
arn,
tags,
collaboration_identifier,
creator_display_name,
creator_member_abilities,
creator_ml_member_abilities,
data_encryption_metadata,
description,
members,
name,
job_log_status,
query_log_status,
analytics_engine,
creator_payment_configuration
FROM awscc.cleanrooms.collaborations
WHERE
region = '{{ region }}' AND
Identifier = '{{ collaboration_identifier }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.cleanrooms.collaborations (
CreatorDisplayName,
Description,
Name,
QueryLogStatus,
region
)
SELECT
'{{ creator_display_name }}',
'{{ description }}',
'{{ name }}',
'{{ query_log_status }}',
'{{ 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 collaboration resource, using stack-deploy.

/*+ update */
UPDATE awscc.cleanrooms.collaborations
SET PatchDocument = string('{{ {
"Tags": tags,
"Description": description,
"Name": name,
"AnalyticsEngine": analytics_engine
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ collaboration_identifier }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.cleanrooms.collaborations
WHERE
Identifier = '{{ collaboration_identifier }}' 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 collaborations resource, the following permissions are required:

cleanrooms:CreateCollaboration,
cleanrooms:GetCollaboration,
cleanrooms:ListMembers,
cleanrooms:ListTagsForResource,
cleanrooms:TagResource,
cleanrooms:GetCollaboration,
cleanrooms:ListCollaborations