Jump to Content

Class UpdateConfigurationSetReputationMetricsEnabledCommandProtected

Enables or disables the publishing of reputation metrics for emails sent using a specific configuration set in a given AWS Region. Reputation metrics include bounce and complaint rates. These metrics are published to Amazon CloudWatch. By using CloudWatch, you can create alarms when bounce or complaint rates exceed 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, UpdateConfigurationSetReputationMetricsEnabledCommand } from "@aws-sdk/client-ses"; // ES Modules import
// const { SESClient, UpdateConfigurationSetReputationMetricsEnabledCommand } = require("@aws-sdk/client-ses"); // CommonJS import
const client = new SESClient(config);
const command = new UpdateConfigurationSetReputationMetricsEnabledCommand(input);
const response = await client.send(command);

Param

UpdateConfigurationSetReputationMetricsEnabledCommandInput

Returns

UpdateConfigurationSetReputationMetricsEnabledCommandOutput

See

Throws

ConfigurationSetDoesNotExistException (client fault)

Indicates that the configuration set does not exist.

Example

UpdateConfigurationSetReputationMetricsEnabled

// Set the reputationMetricsEnabled flag for a specific configuration set.
const input = {
"ConfigurationSetName": "foo",
"Enabled": true
};
const command = new UpdateConfigurationSetReputationMetricsEnabledCommand(input);
await client.send(command);
// example id: updateconfigurationsetreputationmetricsenabled-2362747741333

Hierarchy

Constructors

Properties

Methods