Skip to content

Search

Source: src/AWS/DataZone/Search.ts

Runtime binding for datazone:Search.

Searches the bound domain’s inventory — assets, glossaries, and data products visible to the calling project. The domain id is injected from the binding. Provide the implementation with Effect.provide(AWS.DataZone.SearchHttp).

// init — bind the operation to the domain
const search = yield* AWS.DataZone.Search(domain);
// runtime
const result = yield* search({ searchScope: "ASSET", searchText: "orders" });
const names = result.items?.map((i) => i.assetItem?.name);