PutAccountSuppressionAttributesCommand

Change the settings for the account-level suppression list.

Example Syntax

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

import { SESv2Client, PutAccountSuppressionAttributesCommand } from "@aws-sdk/client-sesv2"; // ES Modules import
// const { SESv2Client, PutAccountSuppressionAttributesCommand } = require("@aws-sdk/client-sesv2"); // CommonJS import
const client = new SESv2Client(config);
const input = { // PutAccountSuppressionAttributesRequest
  SuppressedReasons: [ // SuppressionListReasons
    "BOUNCE" || "COMPLAINT",
  ],
};
const command = new PutAccountSuppressionAttributesCommand(input);
const response = await client.send(command);
// {};

PutAccountSuppressionAttributesCommand Input

Parameter
Type
Description
SuppressedReasons
SuppressionListReason[] | undefined

A list that contains the reasons that email addresses will be automatically added to the suppression list for your account. This list can contain any or all of the following:

  • COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint.

  • BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce.

PutAccountSuppressionAttributesCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
BadRequestException
client

The input you provided is invalid.

TooManyRequestsException
client

Too many requests have been made to the operation.

SESv2ServiceException
Base exception class for all service exceptions from SESv2 service.