collaborations
Creates, updates, deletes or gets a collaboration resource or lists collaborations in a region
Overview
| Name | collaborations |
| Type | Resource |
| Description | Represents a collaboration between AWS accounts that allows for secure data collaboration |
| Id | awscc.cleanrooms.collaborations |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
arn | string | |
tags | array | An arbitrary set of tags (key-value pairs) for this cleanrooms collaboration. |
collaboration_identifier | string | |
creator_display_name | string | |
creator_member_abilities | array | |
creator_ml_member_abilities | object | |
data_encryption_metadata | object | |
description | string | |
members | array | |
name | string | |
job_log_status | string | |
query_log_status | string | |
analytics_engine | string | |
creator_payment_configuration | object | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
collaboration_identifier | string | |
region | string | AWS region. |
For more information, see AWS::CleanRooms::Collaboration.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | collaborations | INSERT | CreatorDisplayName, Name, Description, QueryLogStatus, region |
delete_resource | collaborations | DELETE | Identifier, region |
update_resource | collaborations | UPDATE | Identifier, PatchDocument, region |
list_resources | collaborations_list_only | SELECT | region |
get_resource | collaborations | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 }}';
Lists all collaborations in a region.
SELECT
region,
collaboration_identifier
FROM awscc.cleanrooms.collaborations_list_only
WHERE
region = '{{ region }}';
INSERT example
Use the following StackQL query and manifest file to create a new collaboration resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ 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
;
/*+ create */
INSERT INTO awscc.cleanrooms.collaborations (
Tags,
CreatorDisplayName,
CreatorMemberAbilities,
CreatorMLMemberAbilities,
DataEncryptionMetadata,
Description,
Members,
Name,
JobLogStatus,
QueryLogStatus,
AnalyticsEngine,
CreatorPaymentConfiguration,
region
)
SELECT
'{{ tags }}',
'{{ 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 }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: collaboration
props:
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
- name: creator_display_name
value: '{{ creator_display_name }}'
- name: creator_member_abilities
value:
- '{{ creator_member_abilities[0] }}'
- name: creator_ml_member_abilities
value:
custom_ml_member_abilities:
- '{{ custom_ml_member_abilities[0] }}'
- name: data_encryption_metadata
value:
allow_cleartext: '{{ allow_cleartext }}'
allow_duplicates: '{{ allow_duplicates }}'
allow_joins_on_columns_with_different_names: '{{ allow_joins_on_columns_with_different_names }}'
preserve_nulls: '{{ preserve_nulls }}'
- name: description
value: '{{ description }}'
- name: members
value:
- account_id: '{{ account_id }}'
member_abilities: null
ml_member_abilities: null
display_name: null
payment_configuration:
job_compute:
is_responsible: '{{ is_responsible }}'
query_compute:
is_responsible: '{{ is_responsible }}'
machine_learning:
model_training:
is_responsible: '{{ is_responsible }}'
model_inference:
is_responsible: '{{ is_responsible }}'
- name: name
value: '{{ name }}'
- name: job_log_status
value: '{{ job_log_status }}'
- name: query_log_status
value: '{{ query_log_status }}'
- name: analytics_engine
value: '{{ analytics_engine }}'
- name: creator_payment_configuration
value: null
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:
| Parameter | Description |
|---|---|
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:
- Create
- Read
- Update
- Delete
- List
cleanrooms:CreateCollaboration,
cleanrooms:GetCollaboration,
cleanrooms:ListMembers,
cleanrooms:ListTagsForResource,
cleanrooms:TagResource,
cleanrooms:GetCollaboration,
cleanrooms:ListCollaborations
cleanrooms:GetCollaboration,
cleanrooms:ListMembers,
cleanrooms:ListTagsForResource
cleanrooms:UpdateCollaboration,
cleanrooms:GetCollaboration,
cleanrooms:ListMembers,
cleanrooms:ListTagsForResource,
cleanrooms:TagResource,
cleanrooms:UntagResource
cleanrooms:DeleteCollaboration,
cleanrooms:GetCollaboration,
cleanrooms:ListTagsForResource,
cleanrooms:UntagResource,
cleanrooms:ListMembers,
cleanrooms:ListCollaborations
cleanrooms:ListCollaborations