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
Idaws.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
data_encryption_metadataobject
descriptionstring
membersarray
namestring
query_log_statusstring
creator_payment_configurationobject
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTCreatorDisplayName, CreatorMemberAbilities, Members, Name, Description, QueryLogStatus, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all collaborations in a region.

SELECT
region,
arn,
tags,
collaboration_identifier,
creator_display_name,
creator_member_abilities,
data_encryption_metadata,
description,
members,
name,
query_log_status,
creator_payment_configuration
FROM aws.cleanrooms.collaborations
WHERE region = 'us-east-1';

Gets all properties from an individual collaboration.

SELECT
region,
arn,
tags,
collaboration_identifier,
creator_display_name,
creator_member_abilities,
data_encryption_metadata,
description,
members,
name,
query_log_status,
creator_payment_configuration
FROM aws.cleanrooms.collaborations
WHERE region = 'us-east-1' AND data__Identifier = '<CollaborationIdentifier>';

INSERT example

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

/*+ create */
INSERT INTO aws.cleanrooms.collaborations (
CreatorDisplayName,
CreatorMemberAbilities,
Description,
Members,
Name,
QueryLogStatus,
region
)
SELECT
'{{ CreatorDisplayName }}',
'{{ CreatorMemberAbilities }}',
'{{ Description }}',
'{{ Members }}',
'{{ Name }}',
'{{ QueryLogStatus }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.cleanrooms.collaborations
WHERE data__Identifier = '<CollaborationIdentifier>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

cleanrooms:GetCollaboration,
cleanrooms:ListMembers,
cleanrooms:ListTagsForResource

Update

cleanrooms:UpdateCollaboration,
cleanrooms:GetCollaboration,
cleanrooms:ListMembers,
cleanrooms:ListTagsForResource,
cleanrooms:TagResource,
cleanrooms:UntagResource

Delete

cleanrooms:DeleteCollaboration,
cleanrooms:GetCollaboration,
cleanrooms:ListTagsForResource,
cleanrooms:UntagResource,
cleanrooms:ListMembers,
cleanrooms:ListCollaborations

List

cleanrooms:ListCollaborations