schema_version_metadata
Creates, updates, deletes or gets a schema_version_metadatum
resource or lists schema_version_metadata
in a region
Overview
Name | schema_version_metadata |
Type | Resource |
Description | This resource adds Key-Value metadata to a Schema version of Glue Schema Registry. |
Id | aws.glue.schema_version_metadata |
Fields
Name | Datatype | Description |
---|---|---|
schema_version_id | string | Represents the version ID associated with the schema version. |
key | string | Metadata key |
value | string | Metadata value |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | SchemaVersionId, Key, Value, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.glue.schema_version_metadata (
SchemaVersionId,
Key,
Value,
region
)
SELECT
'{{ SchemaVersionId }}',
'{{ Key }}',
'{{ Value }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.glue.schema_version_metadata (
SchemaVersionId,
Key,
Value,
region
)
SELECT
'{{ SchemaVersionId }}',
'{{ Key }}',
'{{ Value }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: schema_version_metadatum
props:
- name: SchemaVersionId
value: '{{ SchemaVersionId }}'
- name: Key
value: '{{ Key }}'
- name: Value
value: '{{ Value }}'
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