Skip to main content

schema_versions

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

Overview

Nameschema_versions
TypeResource
Idaws.iot_managed_integrations.schema_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
descriptionstringThe description of the schema version. (pattern: <code>[a-zA-Z0-9.,/ -]+</code>)
namespacestringThe name of the schema version. (pattern: <code>[a-z0-9]+</code>)
schemaobjectThe schema of the schema version.
schema_idstringThe id of the schema version. (pattern: <code>[a-zA-Z0-9.]+</code>)
semantic_versionstringThe schema version. If this is left blank, it defaults to the latest version. (pattern: <code>(\d+.\d+(.\d+)?|$latest)</code>)
typestringThe type of schema version. (capability, definition)
visibilitystringThe visibility of the schema version. (PUBLIC, PRIVATE)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_schema_versionselecttype, schema_versioned_id, regionFormatGets a schema version with the provided information.
list_schema_versionsselecttype, regionMaxResults, NextToken, SchemaIdFilter, NamespaceFilter, VisibilityFilter, SemanticVersionFilterLists schema versions with the provided information.

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)
schema_versioned_idstringSchema id with a version specified. If the version is missing, it defaults to latest version.
typestringFilter on the type of schema version.
FormatstringThe format of the schema version.
MaxResultsintegerThe maximum number of results to return at one time.
NamespaceFilterstringFilter on the name of the schema version.
NextTokenstringA token that can be used to retrieve the next set of results.
SchemaIdFilterstringFilter on the id of the schema version.
SemanticVersionFilterstringThe schema version. If this is left blank, it defaults to the latest version.
VisibilityFilterstringThe visibility of the schema version.

SELECT examples

Gets a schema version with the provided information.

SELECT
description,
namespace,
schema,
schema_id,
semantic_version,
type,
visibility
FROM aws.iot_managed_integrations.schema_versions
WHERE type = '{{ type }}' -- required
AND schema_versioned_id = '{{ schema_versioned_id }}' -- required
AND region = '{{ region }}' -- required
AND Format = '{{ Format }}'
;