UNPKG

@cn-shell/aws-utils

Version:
27 lines (26 loc) 601 B
import * as Aws from "./aws-base"; export interface Opts extends Aws.Opts { source: string; replyTo: string; domain: string; arn: string; } export interface EmailRequest { to?: string[]; cc?: string[]; bcc?: string[]; subject: string; body: string; bodyIsHtml: boolean; } export declare class SESv2 extends Aws.Base { private _ses; private _source; private _replyTo; private _arn; constructor(name: string, opts: Opts); start(): Promise<boolean>; stop(): Promise<void>; healthCheck(): Promise<boolean>; send(request: EmailRequest): Promise<string | undefined>; }