Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Class ListReceiptRuleSetsCommandProtected

Lists the receipt rule sets that exist under your AWS account in the current AWS Region. If there are additional receipt rule sets to be retrieved, you will receive a NextToken that you can provide to the next call to ListReceiptRuleSets to retrieve the additional entries.

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, ListReceiptRuleSetsCommand } from "@aws-sdk/client-ses"; // ES Modules import
// const { SESClient, ListReceiptRuleSetsCommand } = require("@aws-sdk/client-ses"); // CommonJS import
const client = new SESClient(config);
const input = { // ListReceiptRuleSetsRequest
NextToken: "STRING_VALUE",
};
const command = new ListReceiptRuleSetsCommand(input);
const response = await client.send(command);
// { // ListReceiptRuleSetsResponse
// RuleSets: [ // ReceiptRuleSetsLists
// { // ReceiptRuleSetMetadata
// Name: "STRING_VALUE",
// CreatedTimestamp: new Date("TIMESTAMP"),
// },
// ],
// NextToken: "STRING_VALUE",
// };

Param

ListReceiptRuleSetsCommandInput

Returns

ListReceiptRuleSetsCommandOutput

See

Throws

SESServiceException

Base exception class for all service exceptions from SES service.

Example

ListReceiptRuleSets

// The following example lists the receipt rule sets that exist under an AWS account:
const input = {
"NextToken": ""
};
const command = new ListReceiptRuleSetsCommand(input);
const response = await client.send(command);
/* response ==
{
"NextToken": "",
"RuleSets": [
{
"CreatedTimestamp": "2016-07-15T16:25:59.607Z",
"Name": "MyRuleSet"
}
]
}
*/
// example id: listreceiptrulesets-1469121037235

Hierarchy

Constructors

Properties

Methods