Skip to main content

receipt_filters

Creates, updates, deletes, gets or lists a receipt_filters resource.

Overview

Namereceipt_filters
TypeResource
Idaws.ses.receipt_filters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
ip_filterstringA structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.
namestringThe name of the IP address filter. The name must meet the following requirements: Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). Start and end with a letter or number. Contain 64 characters or fewer.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_receipt_filtersselectregionLists 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.
create_receipt_filterinsertFilter, regionCreates 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.
delete_receipt_filterdeleteFilterName, regionDeletes the specified IP address filter. For information about managing IP address filters, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
FilterobjectA data structure that describes the IP address filter to create, which consists of a name, an IP address range, and whether to allow or block mail from it.
FilterNamestringThe name of the IP address filter to delete.
regionstringAWS region (default: us-east-1)

SELECT examples

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.

SELECT
ip_filter,
name
FROM aws.ses.receipt_filters
WHERE region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.ses.receipt_filters (
Filter,
region
)
SELECT
'{{ Filter }}',
'{{ region }}'
;

DELETE examples

Deletes the specified IP address filter. For information about managing IP address filters, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

DELETE FROM aws.ses.receipt_filters
WHERE FilterName = '{{ FilterName }}' --required
AND region = '{{ region }}' --required
;