Skip to content

GetDomainStatisticsReport

Source: src/AWS/SES/GetDomainStatisticsReport.ts

Runtime binding for sesv2:GetDomainStatisticsReport.

Retrieves inbox-placement and engagement statistics for a domain identity over a date range — the data behind the SES deliverability dashboard. Requires the deliverability dashboard subscription; an unknown domain surfaces the typed NotFoundException. Account-level operation. Provide the implementation with Effect.provide(AWS.SES.GetDomainStatisticsReportHttp).

// init — account-level binding, no resource argument
const getReport = yield* SES.GetDomainStatisticsReport();
// runtime
const report = yield* getReport({
Domain: "example.com",
StartDate: new Date(Date.now() - 7 * 24 * 3600 * 1000),
EndDate: new Date(),
});