Jump to Content

Class UpdateAccountSendingEnabledCommandProtected

Enables or disables email sending across your entire Amazon SES account in the current AWS Region. You can use this operation in conjunction with Amazon CloudWatch alarms to temporarily pause email sending across your Amazon SES account in a given AWS Region when reputation metrics (such as your bounce or complaint rates) reach certain thresholds.

You can execute this operation no more than once per second.

Example

Use a bare-bones client and the command you need to make an API call.

import { SESClient, UpdateAccountSendingEnabledCommand } from "@aws-sdk/client-ses"; // ES Modules import
// const { SESClient, UpdateAccountSendingEnabledCommand } = require("@aws-sdk/client-ses"); // CommonJS import
const client = new SESClient(config);
const command = new UpdateAccountSendingEnabledCommand(input);
const response = await client.send(command);

Param

UpdateAccountSendingEnabledCommandInput

Returns

UpdateAccountSendingEnabledCommandOutput

See

Example

UpdateAccountSendingEnabled

// The following example updated the sending status for this account.
const input = {
"Enabled": true
};
const command = new UpdateAccountSendingEnabledCommand(input);
await client.send(command);
// example id: updateaccountsendingenabled-1469047741333

Hierarchy

Constructors

Properties

Methods