Skip to content

StartArchiveSearch

Source: src/AWS/MailManager/StartArchiveSearch.ts

Runtime binding for ses:StartArchiveSearch.

Starts an asynchronous search of the bound archive over a time window with optional filters, returning a SearchId to poll. The archive id is injected from the binding. Provide the implementation with Effect.provide(AWS.MailManager.StartArchiveSearchHttp).

const startSearch = yield* MailManager.StartArchiveSearch(archive);
// runtime
const { SearchId } = yield* startSearch({
FromTimestamp: new Date(Date.now() - 86_400_000),
ToTimestamp: new Date(),
MaxResults: 100,
});