Skip to content

SearchSchemas

Source: src/AWS/Schemas/SearchSchemas.ts

Runtime binding for schemas:SearchSchemas.

Searches the bound Registry’s schemas by keyword — matching both schema names and content — so a function can discover event contracts at runtime. The registry name is injected from the binding. Provide the implementation with Effect.provide(AWS.Schemas.SearchSchemasHttp).

// init — bind the operation to the registry
const searchSchemas = yield* AWS.Schemas.SearchSchemas(registry);
// runtime
const { Schemas } = yield* searchSchemas({ Keywords: "order" });
const names = (Schemas ?? []).map((s) => s.SchemaName);