Skip to main content

schema_versions

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

Overview

Nameschema_versions
TypeResource
Idaws.schemas.schema_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
schema_arnstringThe ARN of the schema version.
schema_namestringThe name of the schema.
schema_versionstringThe version number of the schema.
typestringThe type of schema. (OpenApi3, JSONSchemaDraft4)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_schema_versionsselectregistry_name, schema_name, regionlimit, nextTokenProvides a list of the schema versions and related information.
delete_schema_versiondeleteregistry_name, schema_name, schema_version, regionDelete the schema version definition

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
regionstringAWS region (default: us-east-1)
registry_namestringThe name of the registry.
schema_namestringThe name of the schema.
schema_versionstringThe version number of the schema
limitinteger
nextTokenstringThe token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.

SELECT examples

Provides a list of the schema versions and related information.

SELECT
schema_arn,
schema_name,
schema_version,
type
FROM aws.schemas.schema_versions
WHERE registry_name = '{{ registry_name }}' -- required
AND schema_name = '{{ schema_name }}' -- required
AND region = '{{ region }}' -- required
AND limit = '{{ limit }}'
AND nextToken = '{{ nextToken }}'
;

DELETE examples

Delete the schema version definition

DELETE FROM aws.schemas.schema_versions
WHERE registry_name = '{{ registry_name }}' --required
AND schema_name = '{{ schema_name }}' --required
AND schema_version = '{{ schema_version }}' --required
AND region = '{{ region }}' --required
;