Jump to Content

Class CreateReceiptFilterCommandProtected

Creates a new IP address filter.

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

Param

CreateReceiptFilterCommandInput

Returns

CreateReceiptFilterCommandOutput

See

Throws

AlreadyExistsException (client fault)

Indicates that a resource could not be created because of a naming conflict.

Throws

LimitExceededException (client fault)

Indicates that a resource could not be created because of service limits. For a list of Amazon SES limits, see the Amazon SES Developer Guide.

Example

CreateReceiptFilter

// The following example creates a new IP address filter:
const input = {
"Filter": {
"IpFilter": {
"Cidr": "1.2.3.4/24",
"Policy": "Allow"
},
"Name": "MyFilter"
}
};
const command = new CreateReceiptFilterCommand(input);
await client.send(command);
// example id: createreceiptfilter-1469122681253

Hierarchy

Constructors

Properties

Methods