Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListReceiptFiltersCommandProtected

Lists the IP address filters associated with your Amazon Web Services account in the current Amazon Web Services Region.

For information about managing IP address filters, 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, ListReceiptFiltersCommand } from "@aws-sdk/client-ses"; // ES Modules import
// const { SESClient, ListReceiptFiltersCommand } = require("@aws-sdk/client-ses"); // CommonJS import
const client = new SESClient(config);
const input = {};
const command = new ListReceiptFiltersCommand(input);
const response = await client.send(command);
// { // ListReceiptFiltersResponse
// Filters: [ // ReceiptFilterList
// { // ReceiptFilter
// Name: "STRING_VALUE", // required
// IpFilter: { // ReceiptIpFilter
// Policy: "Block" || "Allow", // required
// Cidr: "STRING_VALUE", // required
// },
// },
// ],
// };

Param

ListReceiptFiltersCommandInput

Returns

ListReceiptFiltersCommandOutput

See

Throws

SESServiceException

Base exception class for all service exceptions from SES service.

Example

ListReceiptFilters

// The following example lists the IP address filters that are associated with an AWS account:
const input = undefined;
const command = new ListReceiptFiltersCommand(input);
const response = await client.send(command);
/* response ==
{
"Filters": [
{
"IpFilter": {
"Cidr": "1.2.3.4/24",
"Policy": "Block"
},
"Name": "MyFilter"
}
]
}
*/
// example id: listreceiptfilters-1469120786789

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods