Skip to content

Search

Source: src/AWS/ResourceExplorer/Search.ts

Runtime binding for resource-explorer-2:Search.

Bind this operation to a View inside a function runtime to get a callable that automatically injects the view’s ARN. Results are the intersection of the QueryString and the view’s filter. Provide the implementation with Effect.provide(AWS.ResourceExplorer.SearchHttp).

const search = yield* AWS.ResourceExplorer.Search(view);
const results = yield* search({
QueryString: "service:s3",
MaxResults: 50,
});
// results.Resources, results.Count?.TotalResources