Skip to main content

configured_table_associations

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

Overview

Nameconfigured_table_associations
TypeResource
Idaws.cleanrooms.configured_table_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique ID for the configured table association. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
namestringThe name of the configured table association, in lowercase. The table is identified by this name when running protected queries against the underlying data. (pattern: <code>[a-zA-Z0-9_](([a-zA-Z0-9_ ]+-)*([a-zA-Z0-9_ ]+))?</code>)
analysis_rule_typesarrayThe analysis rule types for the configured table association.
arnstringThe unique ARN for the configured table association. (pattern: <code>arn:aws:[\w]+:[\w]{2}-[\w]{4,9}-[\d]:[\d]{12}:configuredtableassociation/[\d\w-]+/[\d\w-]+</code>)
child_resourcesarrayThe child resources that depend on this configured table association.
configured_table_arnstringThe unique ARN for the configured table that the association refers to. (pattern: <code>arn:aws:[\w]+:[\w]{2}-[\w]{4,9}-[\d]:[\d]{12}:configuredtable/[\d\w-]+</code>)
configured_table_idstringThe unique ID for the configured table that the association refers to. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
create_timestring (date-time)The time the configured table association was created.
descriptionstringA description of the configured table association. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]*</code>)
membership_arnstringThe unique ARN for the membership this configured table association belongs to. (pattern: <code>arn:aws:[\w]+:[\w]{2}-[\w]{4,9}-[\d]:[\d]{12}:membership/[\d\w-]+</code>)
membership_idstringThe unique ID for the membership this configured table association belongs to. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
role_arnstringThe service will assume this role to access catalog metadata and query the table. (pattern: <code>arn:aws:iam::[\w]+:role/[\w+=./@-]+</code>)
update_timestring (date-time)The time the configured table association was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_configured_table_associationselectconfigured_table_association_identifier, membership_identifier, regionRetrieves a configured table association.
list_configured_table_associationsselectmembership_identifier, regionnextToken, maxResultsLists configured table associations for a membership.
create_configured_table_associationinsertmembership_identifier, region, name, configuredTableIdentifier, roleArnCreates a configured table association. A configured table association links a configured table with a collaboration.
update_configured_table_associationupdateconfigured_table_association_identifier, membership_identifier, regionUpdates a configured table association.
delete_configured_table_associationdeleteconfigured_table_association_identifier, membership_identifier, regionDeletes a configured table association.

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
configured_table_association_identifierstringThe unique ID for the configured table association to be deleted. Currently accepts the configured table ID.
membership_identifierstringA unique identifier for the membership that the configured table association belongs to. Currently accepts the membership ID.
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.
nextTokenstringThe pagination token that's used to fetch the next set of results.

SELECT examples

Retrieves a configured table association.

SELECT
id,
name,
analysis_rule_types,
arn,
child_resources,
configured_table_arn,
configured_table_id,
create_time,
description,
membership_arn,
membership_id,
role_arn,
update_time
FROM aws.cleanrooms.configured_table_associations
WHERE configured_table_association_identifier = '{{ configured_table_association_identifier }}' -- required
AND membership_identifier = '{{ membership_identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a configured table association. A configured table association links a configured table with a collaboration.

INSERT INTO aws.cleanrooms.configured_table_associations (
name,
description,
configuredTableIdentifier,
roleArn,
tags,
membership_identifier,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ configuredTableIdentifier }}' /* required */,
'{{ roleArn }}' /* required */,
'{{ tags }}',
'{{ membership_identifier }}',
'{{ region }}'
RETURNING
configured_table_association
;

UPDATE examples

Updates a configured table association.

UPDATE aws.cleanrooms.configured_table_associations
SET
description = '{{ description }}',
roleArn = '{{ roleArn }}'
WHERE
configured_table_association_identifier = '{{ configured_table_association_identifier }}' --required
AND membership_identifier = '{{ membership_identifier }}' --required
AND region = '{{ region }}' --required
RETURNING
configured_table_association;

DELETE examples

Deletes a configured table association.

DELETE FROM aws.cleanrooms.configured_table_associations
WHERE configured_table_association_identifier = '{{ configured_table_association_identifier }}' --required
AND membership_identifier = '{{ membership_identifier }}' --required
AND region = '{{ region }}' --required
;