Skip to main content

configured_table_associations

Creates, updates, deletes or gets a configured_table_association resource or lists configured_table_associations in a region

Overview

Nameconfigured_table_associations
TypeResource
DescriptionRepresents a table that can be queried within a collaboration
Idawscc.cleanrooms.configured_table_associations

Fields

NameDatatypeDescription
arnstring
tagsarrayAn arbitrary set of tags (key-value pairs) for this cleanrooms collaboration.
configured_table_association_identifierstring
configured_table_identifierstring
descriptionstring
membership_identifierstring
namestring
role_arnstring
configured_table_association_analysis_rulesarray
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceconfigured_table_associationsINSERTConfiguredTableIdentifier, Name, RoleArn, MembershipIdentifier, region
delete_resourceconfigured_table_associationsDELETEIdentifier, region
update_resourceconfigured_table_associationsUPDATEIdentifier, PatchDocument, region
list_resourcesconfigured_table_associations_list_onlySELECTregion
get_resourceconfigured_table_associationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual configured_table_association.

SELECT
region,
arn,
tags,
configured_table_association_identifier,
configured_table_identifier,
description,
membership_identifier,
name,
role_arn,
configured_table_association_analysis_rules
FROM awscc.cleanrooms.configured_table_associations
WHERE
region = '{{ region }}' AND
Identifier = '{{ configured_table_association_identifier }}|{{ membership_identifier }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.cleanrooms.configured_table_associations (
ConfiguredTableIdentifier,
MembershipIdentifier,
Name,
RoleArn,
region
)
SELECT
'{{ configured_table_identifier }}',
'{{ membership_identifier }}',
'{{ name }}',
'{{ role_arn }}',
'{{ 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 configured_table_association resource, using stack-deploy.

/*+ update */
UPDATE awscc.cleanrooms.configured_table_associations
SET PatchDocument = string('{{ {
"Tags": tags,
"Description": description,
"RoleArn": role_arn,
"ConfiguredTableAssociationAnalysisRules": configured_table_association_analysis_rules
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ configured_table_association_identifier }}|{{ membership_identifier }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

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

cleanrooms:CreateConfiguredTableAssociation,
iam:PassRole,
cleanrooms:ListTagsForResource,
cleanrooms:TagResource,
cleanrooms:GetConfiguredTableAssociation,
cleanrooms:ListConfiguredTableAssociations,
cleanrooms:DeleteConfiguredTableAssociation,
cleanrooms:DeleteConfiguredTableAssociationAnalysisRule,
cleanrooms:CreateConfiguredTableAssociationAnalysisRule,
cleanrooms:GetConfiguredTableAssociationAnalysisRule