Skip to main content

publish_glue_schema

Function publish_glue_schema 

Source
pub async fn publish_glue_schema(
    client: Client,
    registry_name: String,
    schema_name: String,
    schema: String,
    compatibility: Option<Compatibility>,
) -> Result<Uuid, Error>
Expand description

Register schema for a sink in an AWS Glue Schema Registry, returning the schema-version UUID to frame records with.

Reuses an already-registered definition so a sink restart does not create a duplicate version. On first publish the schema is created with compatibility as its evolution policy, defaulting to Glue’s BACKWARD when unset. For an existing schema the compatibility is only read and warned on when it differs, never overwritten: Glue fixes compatibility at creation time, and the sink must not silently change a policy it may share with other producers.