Jump to Content

Class SetActiveReceiptRuleSetCommandProtected

Sets the specified receipt rule set as the active receipt rule set.

To disable your email-receiving through Amazon SES completely, you can call this API with RuleSetName set to null.

For information about managing receipt rule sets, see the Amazon SES Developer Guide.

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, SetActiveReceiptRuleSetCommand } from "@aws-sdk/client-ses"; // ES Modules import
// const { SESClient, SetActiveReceiptRuleSetCommand } = require("@aws-sdk/client-ses"); // CommonJS import
const client = new SESClient(config);
const command = new SetActiveReceiptRuleSetCommand(input);
const response = await client.send(command);

See

Throws

RuleSetDoesNotExistException (client fault)

Indicates that the provided receipt rule set does not exist.

Example

SetActiveReceiptRuleSet

// The following example sets the active receipt rule set:
const input = {
"RuleSetName": "RuleSetToActivate"
};
const command = new SetActiveReceiptRuleSetCommand(input);
await client.send(command);
// example id: setactivereceiptruleset-1469058391329

Hierarchy

Constructors

Properties

Methods