Skip to main content

schema_analysis_rules

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

Overview

Nameschema_analysis_rules
TypeResource
Idaws.cleanrooms.schema_analysis_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name for the analysis rule. (pattern: <code>[a-zA-Z0-9_](([a-zA-Z0-9_ ]+-)*([a-zA-Z0-9_ ]+))?</code>)
collaboration_idstringThe unique ID for the associated collaboration. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
collaboration_policyobjectControls on the query specifications that can be run on an associated configured table.
consolidated_policyobjectThe consolidated policy for the analysis rule.
create_timestring (date-time)The time the analysis rule was created.
policyobjectA policy that describes the associated data usage limitations.
type_stringThe type of analysis rule. (AGGREGATION, LIST, CUSTOM, ID_MAPPING_TABLE)
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_schema_analysis_ruleselectcollaboration_identifier, name, type, regionRetrieves a schema analysis rule.
batch_get_schema_analysis_ruleselectcollaboration_identifier, regionRetrieves multiple analysis rule schemas.

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
collaboration_identifierstringThe unique identifier of the collaboration that contains the schema analysis rule.
namestringThe name of the schema to retrieve the analysis rule for.
regionstringAWS region (default: us-east-1)
typestringThe type of the schema analysis rule to retrieve. Schema analysis rules are uniquely identified by a combination of the collaboration, the schema name, and their type.

SELECT examples

Retrieves a schema analysis rule.

SELECT
name,
collaboration_id,
collaboration_policy,
consolidated_policy,
create_time,
policy,
type_,
update_time
FROM aws.cleanrooms.schema_analysis_rules
WHERE collaboration_identifier = '{{ collaboration_identifier }}' -- required
AND name = '{{ name }}' -- required
AND type = '{{ type }}' -- required
AND region = '{{ region }}' -- required
;