Skip to main content

configured_table_association_analysis_rules

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

Overview

Nameconfigured_table_association_analysis_rules
TypeResource
Idaws.cleanrooms.configured_table_association_analysis_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
configured_table_association_arnstringThe Amazon Resource Name (ARN) of the configured table association. (pattern: <code>arn:aws:[\w]+:[\w]{2}-[\w]{4,9}-[\d]:[\d]{12}:configuredtableassociation/[\d\w-]+/[\d\w-]+</code>)
configured_table_association_idstringThe unique identifier for the configured table association. (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 creation time of the configured table association analysis rule.
membership_identifierstringThe membership identifier for the configured table association 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>)
policyobjectControls on the query specifications that can be run on an associated configured table.
type_stringThe type of the configured table association analysis rule. (AGGREGATION, LIST, CUSTOM)
update_timestring (date-time)The update time of the configured table association analysis rule.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_configured_table_association_analysis_ruleselectmembership_identifier, configured_table_association_identifier, analysis_rule_type, regionRetrieves the analysis rule for a configured table association.
create_configured_table_association_analysis_ruleinsertmembership_identifier, configured_table_association_identifier, region, analysisRuleType, analysisRulePolicyCreates a new analysis rule for an associated configured table.
update_configured_table_association_analysis_ruleupdatemembership_identifier, configured_table_association_identifier, analysis_rule_type, region, analysisRulePolicyUpdates the analysis rule for a configured table association.
delete_configured_table_association_analysis_ruledeletemembership_identifier, configured_table_association_identifier, analysis_rule_type, regionDeletes an analysis rule for a configured table association.

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 the analysis rule that you want to delete.
configured_table_association_identifierstringThe identifier for the configured table association that's related to the analysis rule that you want to delete.
membership_identifierstringA unique identifier for the membership that the configured table association belongs to. Currently accepts the membership ID.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the analysis rule for a configured table association.

SELECT
configured_table_association_arn,
configured_table_association_id,
create_time,
membership_identifier,
policy,
type_,
update_time
FROM aws.cleanrooms.configured_table_association_analysis_rules
WHERE membership_identifier = '{{ membership_identifier }}' -- required
AND configured_table_association_identifier = '{{ configured_table_association_identifier }}' -- required
AND analysis_rule_type = '{{ analysis_rule_type }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new analysis rule for an associated configured table.

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

UPDATE examples

Updates the analysis rule for a configured table association.

UPDATE aws.cleanrooms.configured_table_association_analysis_rules
SET
analysisRulePolicy = '{{ analysisRulePolicy }}'
WHERE
membership_identifier = '{{ membership_identifier }}' --required
AND configured_table_association_identifier = '{{ configured_table_association_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 for a configured table association.

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