Skip to main content

configured_tables

Creates, updates, deletes or gets a configured_table resource or lists configured_tables in a region

Overview

Nameconfigured_tables
TypeResource
DescriptionRepresents a table that can be associated with collaborations
Idawscc.cleanrooms.configured_tables

Fields

NameDatatypeDescription
arnstring
tagsarrayAn arbitrary set of tags (key-value pairs) for this cleanrooms collaboration.
allowed_columnsarray
analysis_methodstring
selected_analysis_methodsarray
configured_table_identifierstring
descriptionstring
namestring
analysis_rulesarray
table_referenceobject
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceconfigured_tablesINSERTAllowedColumns, AnalysisMethod, Name, TableReference, region
delete_resourceconfigured_tablesDELETEIdentifier, region
update_resourceconfigured_tablesUPDATEIdentifier, PatchDocument, region
list_resourcesconfigured_tables_list_onlySELECTregion
get_resourceconfigured_tablesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual configured_table.

SELECT
region,
arn,
tags,
allowed_columns,
analysis_method,
selected_analysis_methods,
configured_table_identifier,
description,
name,
analysis_rules,
table_reference
FROM awscc.cleanrooms.configured_tables
WHERE
region = 'us-east-1' AND
Identifier = '{{ configured_table_identifier }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.cleanrooms.configured_tables (
AllowedColumns,
AnalysisMethod,
Name,
TableReference,
region
)
SELECT
'{{ allowed_columns }}',
'{{ analysis_method }}',
'{{ name }}',
'{{ table_reference }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a configured_table resource, using stack-deploy.

/*+ update */
UPDATE awscc.cleanrooms.configured_tables
SET PatchDocument = string('{{ {
"Tags": tags,
"AllowedColumns": allowed_columns,
"AnalysisMethod": analysis_method,
"SelectedAnalysisMethods": selected_analysis_methods,
"Description": description,
"Name": name,
"AnalysisRules": analysis_rules,
"TableReference": table_reference
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ configured_table_identifier }}';

DELETE example

/*+ delete */
DELETE FROM awscc.cleanrooms.configured_tables
WHERE
Identifier = '{{ configured_table_identifier }}' AND
region = 'us-east-1';

Permissions

To operate on the configured_tables resource, the following permissions are required:

cleanrooms:CreateConfiguredTable,
cleanrooms:DeleteConfiguredTable,
cleanrooms:DeleteConfiguredTableAnalysisRule,
cleanrooms:CreateConfiguredTableAnalysisRule,
cleanrooms:GetConfiguredTable,
cleanrooms:GetConfiguredTableAnalysisRule,
glue:GetDatabase,
glue:GetDatabases,
glue:GetTable,
glue:GetTables,
glue:GetPartition,
glue:GetPartitions,
glue:BatchGetPartition,
glue:GetSchemaVersion,
cleanrooms:ListTagsForResource,
cleanrooms:TagResource,
cleanrooms:ListConfiguredTables,
athena:GetTableMetadata