Skip to content

ListSearchJobResults

Source: src/AWS/BackupSearch/ListSearchJobResults.ts

Runtime binding for backup-search:ListSearchJobResults.

Pages through the search results (matched S3 objects / EBS files) of the bound search job. Results stream in while the job is RUNNING and are retained for seven days after it completes. Provide the implementation with Effect.provide(AWS.BackupSearch.ListSearchJobResultsHttp).

// init — bind the operation to the search job
const listSearchJobResults =
yield* AWS.BackupSearch.ListSearchJobResults(search);
// runtime
const page = yield* listSearchJobResults({ MaxResults: 100 });
for (const item of page.Results) {
if (item.S3ResultItem) console.log(item.S3ResultItem.BackupVaultName);
}