Skip to main content

schemas

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

Overview

Nameschemas
TypeResource
Idaws.cleanrooms.schemas

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
errorsarrayError reasons for schemas that could not be retrieved. One error is returned for every schema that could not be retrieved.
schemasarrayThe retrieved list of schemas.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
batch_get_schemaselectcollaboration_identifier, regionRetrieves multiple schemas by their identifiers.
get_schemaselectcollaboration_identifier, name, regionRetrieves the schema for a relation within a collaboration.
list_schemasselectcollaboration_identifier, regionschemaType, nextToken, maxResultsLists the schemas for relations within a collaboration.

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_identifierstringA unique identifier for the collaboration that the schema belongs to. Currently accepts a collaboration ID.
namestringThe name of the relation to retrieve the schema for.
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.
schemaTypestringIf present, filter schemas by schema type.

SELECT examples

Retrieves multiple schemas by their identifiers.

SELECT
errors,
schemas
FROM aws.cleanrooms.schemas
WHERE collaboration_identifier = '{{ collaboration_identifier }}' -- required
AND region = '{{ region }}' -- required
;