Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class UpdateAccountSendingEnabledCommandProtected

Enables or disables email sending across your entire Amazon SES account in the current Amazon Web Services 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 Amazon Web Services 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 input = { // UpdateAccountSendingEnabledRequest
Enabled: true || false,
};
const command = new UpdateAccountSendingEnabledCommand(input);
const response = await client.send(command);
// {};

Param

UpdateAccountSendingEnabledCommandInput

Returns

UpdateAccountSendingEnabledCommandOutput

See

Throws

SESServiceException

Base exception class for all service exceptions from SES service.

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

Constructors

Properties

Methods