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 = '{{ region }}' 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 }}'
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 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.cleanrooms.configured_tables
WHERE
Identifier = '{{ configured_table_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_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