Skip to main content

configured_table_analysis_rules

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

Overview

Nameconfigured_table_analysis_rules
TypeResource
Idaws.cleanrooms.configured_table_analysis_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
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>)
configured_table_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>)
create_timestring (date-time)The time the configured table analysis rule was created.
policyobjectControls on the query specifications that can be run on a configured table.
type_stringThe type of configured table analysis rule. (AGGREGATION, LIST, CUSTOM)
update_timestring (date-time)The time the configured table analysis rule was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_configured_table_analysis_ruleselectconfigured_table_identifier, analysis_rule_type, regionRetrieves a configured table analysis rule.
create_configured_table_analysis_ruleinsertconfigured_table_identifier, region, analysisRuleType, analysisRulePolicyCreates a new analysis rule for a configured table. Currently, only one analysis rule can be created for a given configured table.
update_configured_table_analysis_ruleupdateconfigured_table_identifier, analysis_rule_type, region, analysisRulePolicyUpdates a configured table analysis rule.
delete_configured_table_analysis_ruledeleteconfigured_table_identifier, analysis_rule_type, regionDeletes a configured table analysis rule.

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
analysis_rule_typestringThe analysis rule type to be deleted. Configured table analysis rules are uniquely identified by their configured table identifier and analysis rule type.
configured_table_identifierstringThe unique identifier for the configured table that the analysis rule applies to. Currently accepts the configured table ID.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves a configured table analysis rule.

SELECT
configured_table_arn,
configured_table_id,
create_time,
policy,
type_,
update_time
FROM aws.cleanrooms.configured_table_analysis_rules
WHERE configured_table_identifier = '{{ configured_table_identifier }}' -- required
AND analysis_rule_type = '{{ analysis_rule_type }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new analysis rule for a configured table. Currently, only one analysis rule can be created for a given configured table.

INSERT INTO aws.cleanrooms.configured_table_analysis_rules (
analysisRuleType,
analysisRulePolicy,
configured_table_identifier,
region
)
SELECT
'{{ analysisRuleType }}' /* required */,
'{{ analysisRulePolicy }}' /* required */,
'{{ configured_table_identifier }}',
'{{ region }}'
RETURNING
analysis_rule
;

UPDATE examples

Updates a configured table analysis rule.

UPDATE aws.cleanrooms.configured_table_analysis_rules
SET
analysisRulePolicy = '{{ analysisRulePolicy }}'
WHERE
configured_table_identifier = '{{ configured_table_identifier }}' --required
AND analysis_rule_type = '{{ analysis_rule_type }}' --required
AND region = '{{ region }}' --required
AND analysisRulePolicy = '{{ analysisRulePolicy }}' --required
RETURNING
analysis_rule;

DELETE examples

Deletes a configured table analysis rule.

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