Expand description
An API client for the AWS Glue Schema Registry.
This crate is the Glue analogue of mz-ccsr, the Confluent Schema
Registry client. It is intentionally narrow: only the surface needed by
the current Materialize integration is implemented.
Currently implemented:
Client::get_registry— used byGlueSchemaRegistryConnection::validateto verify a registry exists atCREATE CONNECTIONtime.Client::get_schema_version_by_id— source decode: fetch a writer schema by the UUID embedded in each record’s Glue wire-format header.Client::get_schema_version_latest_by_name— DDL planning: pin a reader schema to the registry’s current “latest” version.
Future work will add:
register_schema_version,get_schema_version_by_definition,get_compatibility,update_compatibility— sink encode.
§Example usage
use mz_aws_glue_schema_registry::{Client, ClientConfig};
use aws_types::SdkConfig;
let sdk_config: SdkConfig = unimplemented!("from AwsConnection::load_sdk_config");
let client = ClientConfig::new(sdk_config).build();
let registry = client.get_registry("my-registry").await?;Structs§
- Client
- An API client for the AWS Glue Schema Registry.
- Client
Config - Builder for
Client. - Registry
- A Glue Schema Registry, as returned by
Client::get_registry. - Schema
Version - A Glue schema version, as returned by
Client::get_schema_version_by_idandClient::get_schema_version_latest_by_name.
Enums§
- GetRegistry
Error - Errors returned by
Client::get_registry. - GetSchema
Version Error - Errors returned by
Client::get_schema_version_by_idandClient::get_schema_version_latest_by_name. - Registry
Lifecycle Status - Lifecycle status of a Glue registry.
- Schema
Version Lifecycle Status - Lifecycle status of a Glue schema version.