Skip to content

SearchListings

Source: src/AWS/DataZone/SearchListings.ts

Runtime binding for datazone:SearchListings.

Searches published listings (the catalog of subscribable assets and data products) in the bound domain. The domain id is injected from the binding. Provide the implementation with Effect.provide(AWS.DataZone.SearchListingsHttp).

// init — bind the operation to the domain
const searchListings = yield* AWS.DataZone.SearchListings(domain);
// runtime
const result = yield* searchListings({ searchText: "customer" });
const listings = result.items?.map((i) => i.assetListing?.name);