Skip to main content

configured_tables

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

Overview

Nameconfigured_tables
TypeResource
Idaws.cleanrooms.configured_tables

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique ID for the configured table. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
namestringA name for the configured table. (pattern: <code>(?!\s*$)[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t]*</code>)
allowed_columnsarrayThe columns within the underlying Glue table that can be used within collaborations.
analysis_methodstringThe analysis method for the configured table. DIRECT_QUERY allows SQL queries to be run directly on this table. DIRECT_JOB allows PySpark jobs to be run directly on this table. MULTIPLE allows both SQL queries and PySpark jobs to be run directly on this table. (DIRECT_QUERY, DIRECT_JOB, MULTIPLE)
analysis_rule_typesarrayThe types of analysis rules associated with this configured table. Currently, only one analysis rule may be associated with a configured table.
arnstringThe unique ARN for the configured table. (pattern: <code>arn:aws:[\w]+:[\w]{2}-[\w]{4,9}-[\d]:[\d]{12}:configuredtable/[\d\w-]+</code>)
create_timestring (date-time)The time the configured table was created.
descriptionstringA description for the configured table. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDBFF-\uDC00\uDFFF\t\r\n]*</code>)
selected_analysis_methodsarrayThe selected analysis methods for the configured table.
table_referenceobjectA pointer to the dataset that underlies this table.
update_timestring (date-time)The time the configured table was last updated

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_configured_tableselectconfigured_table_identifier, regionRetrieves a configured table.
list_configured_tablesselectregionnextToken, maxResultsLists configured tables.
create_configured_tableinsertregion, name, tableReference, allowedColumns, analysisMethodCreates a new configured table resource.
update_configured_tableupdateconfigured_table_identifier, regionUpdates a configured table.
delete_configured_tabledeleteconfigured_table_identifier, regionDeletes a configured table.

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_identifierstringThe unique ID for the configured table to delete.
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.

SELECT
id,
name,
allowed_columns,
analysis_method,
analysis_rule_types,
arn,
create_time,
description,
selected_analysis_methods,
table_reference,
update_time
FROM aws.cleanrooms.configured_tables
WHERE configured_table_identifier = '{{ configured_table_identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new configured table resource.

INSERT INTO aws.cleanrooms.configured_tables (
name,
description,
tableReference,
allowedColumns,
analysisMethod,
selectedAnalysisMethods,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ tableReference }}' /* required */,
'{{ allowedColumns }}' /* required */,
'{{ analysisMethod }}' /* required */,
'{{ selectedAnalysisMethods }}',
'{{ tags }}',
'{{ region }}'
RETURNING
configured_table
;

UPDATE examples

Updates a configured table.

UPDATE aws.cleanrooms.configured_tables
SET
name = '{{ name }}',
description = '{{ description }}',
tableReference = '{{ tableReference }}',
allowedColumns = '{{ allowedColumns }}',
analysisMethod = '{{ analysisMethod }}',
selectedAnalysisMethods = '{{ selectedAnalysisMethods }}'
WHERE
configured_table_identifier = '{{ configured_table_identifier }}' --required
AND region = '{{ region }}' --required
RETURNING
configured_table;

DELETE examples

Deletes a configured table.

DELETE FROM aws.cleanrooms.configured_tables
WHERE configured_table_identifier = '{{ configured_table_identifier }}' --required
AND region = '{{ region }}' --required
;