import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { SendBulkTemplatedEmailRequest, SendBulkTemplatedEmailResponse } from "../models/models_0"; import type { ServiceInputTypes, ServiceOutputTypes, SESClientResolvedConfig } from "../SESClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link SendBulkTemplatedEmailCommand}. */ export interface SendBulkTemplatedEmailCommandInput extends SendBulkTemplatedEmailRequest { } /** * @public * * The output of {@link SendBulkTemplatedEmailCommand}. */ export interface SendBulkTemplatedEmailCommandOutput extends SendBulkTemplatedEmailResponse, __MetadataBearer { } declare const SendBulkTemplatedEmailCommand_base: { new (input: SendBulkTemplatedEmailCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: SendBulkTemplatedEmailCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Composes an email message to multiple destinations. The message body is created using * an email template.

*

To send email using this operation, your call must meet the following * requirements:

* * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SESClient, SendBulkTemplatedEmailCommand } from "@aws-sdk/client-ses"; // ES Modules import * // const { SESClient, SendBulkTemplatedEmailCommand } = require("@aws-sdk/client-ses"); // CommonJS import * // import type { SESClientConfig } from "@aws-sdk/client-ses"; * const config = {}; // type is SESClientConfig * const client = new SESClient(config); * const input = { // SendBulkTemplatedEmailRequest * Source: "STRING_VALUE", // required * SourceArn: "STRING_VALUE", * ReplyToAddresses: [ // AddressList * "STRING_VALUE", * ], * ReturnPath: "STRING_VALUE", * ReturnPathArn: "STRING_VALUE", * ConfigurationSetName: "STRING_VALUE", * DefaultTags: [ // MessageTagList * { // MessageTag * Name: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * Template: "STRING_VALUE", // required * TemplateArn: "STRING_VALUE", * DefaultTemplateData: "STRING_VALUE", // required * Destinations: [ // BulkEmailDestinationList // required * { // BulkEmailDestination * Destination: { // Destination * ToAddresses: [ * "STRING_VALUE", * ], * CcAddresses: [ * "STRING_VALUE", * ], * BccAddresses: [ * "STRING_VALUE", * ], * }, * ReplacementTags: [ * { * Name: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * ReplacementTemplateData: "STRING_VALUE", * }, * ], * }; * const command = new SendBulkTemplatedEmailCommand(input); * const response = await client.send(command); * // { // SendBulkTemplatedEmailResponse * // Status: [ // BulkEmailDestinationStatusList // required * // { // BulkEmailDestinationStatus * // Status: "Success" || "MessageRejected" || "MailFromDomainNotVerified" || "ConfigurationSetDoesNotExist" || "TemplateDoesNotExist" || "AccountSuspended" || "AccountThrottled" || "AccountDailyQuotaExceeded" || "InvalidSendingPoolName" || "AccountSendingPaused" || "ConfigurationSetSendingPaused" || "InvalidParameterValue" || "TransientFailure" || "Failed", * // Error: "STRING_VALUE", * // MessageId: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param SendBulkTemplatedEmailCommandInput - {@link SendBulkTemplatedEmailCommandInput} * @returns {@link SendBulkTemplatedEmailCommandOutput} * @see {@link SendBulkTemplatedEmailCommandInput} for command's `input` shape. * @see {@link SendBulkTemplatedEmailCommandOutput} for command's `response` shape. * @see {@link SESClientResolvedConfig | config} for SESClient's `config` shape. * * @throws {@link AccountSendingPausedException} (client fault) *

Indicates that email sending is disabled for your entire Amazon SES account.

*

You can enable or disable email sending for your Amazon SES account using UpdateAccountSendingEnabled.

* * @throws {@link ConfigurationSetDoesNotExistException} (client fault) *

Indicates that the configuration set does not exist.

* * @throws {@link ConfigurationSetSendingPausedException} (client fault) *

Indicates that email sending is disabled for the configuration set.

*

You can enable or disable email sending for a configuration set using UpdateConfigurationSetSendingEnabled.

* * @throws {@link MailFromDomainNotVerifiedException} (client fault) *

Indicates that the message could not be sent because Amazon SES could not read the MX * record required to use the specified MAIL FROM domain. For information about editing the * custom MAIL FROM domain settings for an identity, see the Amazon SES Developer * Guide.

* * @throws {@link MessageRejected} (client fault) *

Indicates that the action failed, and the message could not be sent. Check the error * stack for more information about what caused the error.

* * @throws {@link TemplateDoesNotExistException} (client fault) *

Indicates that the Template object you specified does not exist in your Amazon SES * account.

* * @throws {@link SESServiceException} *

Base exception class for all service exceptions from SES service.

* * * @public */ export declare class SendBulkTemplatedEmailCommand extends SendBulkTemplatedEmailCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: SendBulkTemplatedEmailRequest; output: SendBulkTemplatedEmailResponse; }; sdk: { input: SendBulkTemplatedEmailCommandInput; output: SendBulkTemplatedEmailCommandOutput; }; }; }