Skip to main content

schema_version_metadata

Creates, updates, deletes or gets a schema_version_metadatum resource or lists schema_version_metadata in a region

Overview

Nameschema_version_metadata
TypeResource
DescriptionThis resource adds Key-Value metadata to a Schema version of Glue Schema Registry.
Idaws.glue.schema_version_metadata

Fields

NameDatatypeDescription
schema_version_idstringRepresents the version ID associated with the schema version.
keystringMetadata key
valuestringMetadata value
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTSchemaVersionId, Key, Value, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all schema_version_metadata in a region.

SELECT
region,
schema_version_id,
key,
value
FROM aws.glue.schema_version_metadata
WHERE region = 'us-east-1';

Gets all properties from an individual schema_version_metadatum.

SELECT
region,
schema_version_id,
key,
value
FROM aws.glue.schema_version_metadata
WHERE region = 'us-east-1' AND data__Identifier = '<SchemaVersionId>|<Key>|<Value>';

INSERT example

Use the following StackQL query and manifest file to create a new schema_version_metadatum resource, using stack-deploy.

/*+ create */
INSERT INTO aws.glue.schema_version_metadata (
SchemaVersionId,
Key,
Value,
region
)
SELECT
'{{ SchemaVersionId }}',
'{{ Key }}',
'{{ Value }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.glue.schema_version_metadata
WHERE data__Identifier = '<SchemaVersionId|Key|Value>'
AND region = 'us-east-1';

Permissions

To operate on the schema_version_metadata resource, the following permissions are required:

Create

glue:putSchemaVersionMetadata

Read

glue:querySchemaVersionMetadata

Delete

glue:removeSchemaVersionMetadata

List

glue:querySchemaVersionMetadata