Skip to main content

collaborations

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

Overview

Namecollaborations
TypeResource
Idaws.cleanrooms.collaborations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique ID for the collaboration. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
namestringA human-readable identifier provided by the collaboration owner. Display names are not unique. (pattern: <code>(?!\s*$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t]*</code>)
allowed_result_regionsarrayThe Amazon Web Services Regions where collaboration query results can be stored. Returns the list of Region identifiers that were specified when the collaboration was created. This list is used to enforce regional storage policies and compliance requirements.
analytics_enginestringThe analytics engine for the collaboration. After July 16, 2025, the CLEAN_ROOMS_SQL parameter will no longer be available. (SPARK, CLEAN_ROOMS_SQL)
arnstringThe unique ARN for the collaboration. (pattern: <code>arn:aws:[\w]+:[\w]{2}-[\w]{4,9}-[\d]:[\d]{12}:collaboration/[\d\w-]+</code>)
auto_approved_change_typesarrayThe types of change requests that are automatically approved for this collaboration.
create_timestring (date-time)The time when the collaboration was created.
creator_account_idstringThe identifier used to reference members of the collaboration. Currently only supports Amazon Web Services account ID. (pattern: <code>\d+</code>)
creator_display_namestringA display name of the collaboration creator. (pattern: <code>(?!\s*$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t]*</code>)
data_encryption_metadataobjectThe settings for client-side encryption for cryptographic computing.
descriptionstringA description of the collaboration provided by the collaboration owner. (pattern: <code>(?!\s+$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]*</code>)
is_metrics_enabledbooleanAn indicator as to whether metrics are enabled for the collaboration. When true, collaboration members can opt in to Amazon CloudWatch metrics for their membership queries.
job_log_statusstringAn indicator as to whether job logging has been enabled or disabled for the collaboration. When ENABLED, Clean Rooms logs details about jobs run within this collaboration and those logs can be viewed in Amazon CloudWatch Logs. The default value is DISABLED. (ENABLED, DISABLED)
member_statusstringThe status of a member in a collaboration. (INVITED, ACTIVE, LEFT, REMOVED)
membership_arnstringThe unique ARN for your membership within the collaboration. (pattern: <code>arn:aws:[\w]+:[\w]{2}-[\w]{4,9}-[\d]:[\d]{12}:membership/[\d\w-]+</code>)
membership_idstringThe unique ID for your membership within the collaboration. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
query_log_statusstringAn indicator as to whether query logging has been enabled or disabled for the collaboration. When ENABLED, Clean Rooms logs details about queries run within this collaboration and those logs can be viewed in Amazon CloudWatch Logs. The default value is DISABLED. (ENABLED, DISABLED)
update_timestring (date-time)The time the collaboration metadata was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_collaborationselectcollaboration_identifier, regionReturns metadata about a collaboration.
list_collaborationsselectregionnextToken, maxResults, memberStatusLists collaborations the caller owns, is active in, or has been invited to.
create_collaborationinsertregion, members, name, creatorMemberAbilities, creatorDisplayName, queryLogStatusCreates a new collaboration.
update_collaborationupdatecollaboration_identifier, regionUpdates collaboration metadata and can only be called by the collaboration owner.
delete_collaborationdeletecollaboration_identifier, regionDeletes a collaboration. It can only be called by the collaboration owner.

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
collaboration_identifierstringThe identifier for the collaboration.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results that are returned for an API request call. The service chooses a default number if you don't set one. The service might return a nextToken even if the maxResults value has not been met.
memberStatusstringThe caller's status in a collaboration.
nextTokenstringThe pagination token that's used to fetch the next set of results.

SELECT examples

Returns metadata about a collaboration.

SELECT
id,
name,
allowed_result_regions,
analytics_engine,
arn,
auto_approved_change_types,
create_time,
creator_account_id,
creator_display_name,
data_encryption_metadata,
description,
is_metrics_enabled,
job_log_status,
member_status,
membership_arn,
membership_id,
query_log_status,
update_time
FROM aws.cleanrooms.collaborations
WHERE collaboration_identifier = '{{ collaboration_identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new collaboration.

INSERT INTO aws.cleanrooms.collaborations (
members,
name,
description,
creatorMemberAbilities,
creatorMLMemberAbilities,
creatorDisplayName,
dataEncryptionMetadata,
queryLogStatus,
jobLogStatus,
tags,
creatorPaymentConfiguration,
analyticsEngine,
autoApprovedChangeRequestTypes,
allowedResultRegions,
isMetricsEnabled,
region
)
SELECT
'{{ members }}' /* required */,
'{{ name }}' /* required */,
'{{ description }}',
'{{ creatorMemberAbilities }}' /* required */,
'{{ creatorMLMemberAbilities }}',
'{{ creatorDisplayName }}' /* required */,
'{{ dataEncryptionMetadata }}',
'{{ queryLogStatus }}' /* required */,
'{{ jobLogStatus }}',
'{{ tags }}',
'{{ creatorPaymentConfiguration }}',
'{{ analyticsEngine }}',
'{{ autoApprovedChangeRequestTypes }}',
'{{ allowedResultRegions }}',
{{ isMetricsEnabled }},
'{{ region }}'
RETURNING
collaboration
;

UPDATE examples

Updates collaboration metadata and can only be called by the collaboration owner.

UPDATE aws.cleanrooms.collaborations
SET
name = '{{ name }}',
description = '{{ description }}',
analyticsEngine = '{{ analyticsEngine }}'
WHERE
collaboration_identifier = '{{ collaboration_identifier }}' --required
AND region = '{{ region }}' --required
RETURNING
collaboration;

DELETE examples

Deletes a collaboration. It can only be called by the collaboration owner.

DELETE FROM aws.cleanrooms.collaborations
WHERE collaboration_identifier = '{{ collaboration_identifier }}' --required
AND region = '{{ region }}' --required
;