Skip to main content

memberships

Creates, updates, deletes or gets a membership resource or lists memberships in a region

Overview

Namememberships
TypeResource
DescriptionRepresents an AWS account that is a part of a collaboration
Idawscc.cleanrooms.memberships

Fields

NameDatatypeDescription
arnstring
tagsarrayAn arbitrary set of tags (key-value pairs) for this cleanrooms membership.
collaboration_arnstring
collaboration_creator_account_idstring
collaboration_identifierstring
membership_identifierstring
query_log_statusstring
job_log_statusstring
default_result_configurationobject
default_job_result_configurationobject
payment_configurationobject
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcemembershipsINSERTCollaborationIdentifier, QueryLogStatus, region
delete_resourcemembershipsDELETEIdentifier, region
update_resourcemembershipsUPDATEIdentifier, PatchDocument, region
list_resourcesmemberships_list_onlySELECTregion
get_resourcemembershipsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual membership.

SELECT
region,
arn,
tags,
collaboration_arn,
collaboration_creator_account_id,
collaboration_identifier,
membership_identifier,
query_log_status,
job_log_status,
default_result_configuration,
default_job_result_configuration,
payment_configuration
FROM awscc.cleanrooms.memberships
WHERE
region = '{{ region }}' AND
Identifier = '{{ membership_identifier }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.cleanrooms.memberships (
CollaborationIdentifier,
QueryLogStatus,
region
)
SELECT
'{{ collaboration_identifier }}',
'{{ 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 membership resource, using stack-deploy.

/*+ update */
UPDATE awscc.cleanrooms.memberships
SET PatchDocument = string('{{ {
"Tags": tags,
"QueryLogStatus": query_log_status,
"JobLogStatus": job_log_status,
"DefaultResultConfiguration": default_result_configuration,
"DefaultJobResultConfiguration": default_job_result_configuration,
"PaymentConfiguration": payment_configuration
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ membership_identifier }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

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

cleanrooms:CreateMembership,
logs:CreateLogDelivery,
logs:GetLogDelivery,
logs:UpdateLogDelivery,
logs:DeleteLogDelivery,
logs:ListLogDeliveries,
logs:DescribeLogGroups,
logs:DescribeResourcePolicies,
logs:PutResourcePolicy,
logs:CreateLogGroup,
cleanrooms:GetMembership,
cleanrooms:ListTagsForResource,
cleanrooms:TagResource,
cleanrooms:ListMemberships,
iam:PassRole