Skip to main content

intermediate_table_analysis_rules

Creates, updates, deletes, gets or lists an intermediate_table_analysis_rules resource.

Overview

Nameintermediate_table_analysis_rules
TypeResource
Idaws.cleanrooms.intermediate_table_analysis_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
analysis_rule_policyobjectContains the policy for an intermediate table analysis rule.
analysis_rule_typestringThe type of the analysis rule. (CUSTOM)
create_timestring (date-time)The time the analysis rule was created.
intermediate_table_arnstringThe Amazon Resource Name (ARN) of the intermediate table associated with this analysis rule. (pattern: <code>arn:aws:cleanrooms:[\w]{2}-[\w]{4,9}-[\d]:[\d]{12}:membership/[\d\w-]+/intermediatetable/[\d\w-]+</code>)
intermediate_table_identifierstringThe unique identifier of the intermediate table associated with this analysis rule. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
update_timestring (date-time)The time the analysis rule was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_intermediate_table_analysis_ruleselectmembership_identifier, intermediate_table_identifier, analysis_rule_type, regionRetrieves the analysis rule for an intermediate table.
create_intermediate_table_analysis_ruleinsertmembership_identifier, intermediate_table_identifier, region, analysisRuleType, analysisRulePolicyCreates an analysis rule for an intermediate table. Only the CUSTOM analysis rule type is supported. Only the intermediate table owner can call this operation.
update_intermediate_table_analysis_ruleupdatemembership_identifier, intermediate_table_identifier, analysis_rule_type, region, analysisRulePolicyUpdates the analysis rule policy for an intermediate table. Only the intermediate table owner can call this operation.
delete_intermediate_table_analysis_ruledeletemembership_identifier, intermediate_table_identifier, analysis_rule_type, regionDeletes an analysis rule from an intermediate table. After the analysis rule is deleted, the intermediate table becomes unqueryable until a new analysis rule is attached. Only the intermediate table owner can call this operation.

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 type of analysis rule to delete. Currently, only CUSTOM is supported.
intermediate_table_identifierstringThe unique identifier of the intermediate table from which to delete the analysis rule.
membership_identifierstringThe unique identifier of the membership that contains the intermediate table.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the analysis rule for an intermediate table.

SELECT
analysis_rule_policy,
analysis_rule_type,
create_time,
intermediate_table_arn,
intermediate_table_identifier,
update_time
FROM aws.cleanrooms.intermediate_table_analysis_rules
WHERE membership_identifier = '{{ membership_identifier }}' -- required
AND intermediate_table_identifier = '{{ intermediate_table_identifier }}' -- required
AND analysis_rule_type = '{{ analysis_rule_type }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an analysis rule for an intermediate table. Only the CUSTOM analysis rule type is supported. Only the intermediate table owner can call this operation.

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

UPDATE examples

Updates the analysis rule policy for an intermediate table. Only the intermediate table owner can call this operation.

UPDATE aws.cleanrooms.intermediate_table_analysis_rules
SET
analysisRulePolicy = '{{ analysisRulePolicy }}'
WHERE
membership_identifier = '{{ membership_identifier }}' --required
AND intermediate_table_identifier = '{{ intermediate_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 an analysis rule from an intermediate table. After the analysis rule is deleted, the intermediate table becomes unqueryable until a new analysis rule is attached. Only the intermediate table owner can call this operation.

DELETE FROM aws.cleanrooms.intermediate_table_analysis_rules
WHERE membership_identifier = '{{ membership_identifier }}' --required
AND intermediate_table_identifier = '{{ intermediate_table_identifier }}' --required
AND analysis_rule_type = '{{ analysis_rule_type }}' --required
AND region = '{{ region }}' --required
;