AWS Amazon SES Receipt Filter
This page shows how to write Terraform and CloudFormation for Amazon SES Receipt Filter and write them securely.
aws_ses_receipt_filter (Terraform)
The Receipt Filter in Amazon SES can be configured in Terraform with the resource name aws_ses_receipt_filter
. The following sections describe 2 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_ses_receipt_filter" "this" {
cidr = var.cidr
name = var.name
policy = var.policy
}
resource "aws_ses_receipt_filter" "default" {
count = var.enable_filter ? 1 : 0
name = var.filter_name
cidr = var.filter_cidr
policy = var.filter_policy
}
Parameters
-
arn
optional computed - string -
cidr
required - string -
id
optional computed - string -
name
required - string -
policy
required - string
Explanation in Terraform Registry
Provides an SES receipt filter resource
AWS::SES::ReceiptFilter (CloudFormation)
The ReceiptFilter in SES can be configured in CloudFormation with the resource name AWS::SES::ReceiptFilter
. The following sections describe 10 examples of how to use the resource and its parameters.
Example Usage from GitHub
Type: AWS::SES::ReceiptFilter
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptfilter.html
Properties:
Filter:
IpFilter:
Policy: !Ref 'FilterIpFilterPolicy'
Type: AWS::SES::ReceiptFilter
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptfilter.html
Properties:
Filter:
IpFilter:
Policy: !Ref 'FilterIpFilterPolicy'
Type: AWS::SES::ReceiptFilter
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptfilter.html
Properties:
Filter:
IpFilter:
Policy: !Ref 'FilterIpFilterPolicy'
Type: AWS::SES::ReceiptFilter
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptfilter.html
Properties:
Filter:
IpFilter:
Policy: !Ref 'FilterIpFilterPolicy'
Type: AWS::SES::ReceiptFilter
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptfilter.html
Properties:
Filter:
IpFilter:
Policy: !Ref 'FilterIpFilterPolicy'
"Type": "AWS::SES::ReceiptFilter",
"Properties": {
"Filter": {
"IpFilter": {
"Cidr": "0.0.0.0/0",
"Policy": "Block"
"Type": "AWS::SES::ReceiptFilter",
"Properties": {
"Filter": {
"IpFilter": {
"Cidr": "0.0.0.0/0",
"Policy": "Block"
"Type": "AWS::SES::ReceiptFilter",
"Properties": {
"Filter": {
"IpFilter": {
"Cidr": "0.0.0.0/0",
"Policy": "Block"
"Type": "AWS::SES::ReceiptFilter",
"Properties": {
"Filter": {
"IpFilter": {
"Cidr": "0.0.0.0/0",
"Policy": "Block"
"Type": "AWS::SES::ReceiptFilter",
"Properties": {
"Filter": {
"IpFilter": {
"Cidr": "0.0.0.0/0",
"Policy": "Block"
Parameters
Filter
A 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.
Required: Yes
Type: Filter
Update requires: Replacement
Explanation in CloudFormation Registry
Specify a new IP address filter. You use IP address filters when you receive email with Amazon SES.
Frequently asked questions
What is AWS Amazon SES Receipt Filter?
AWS Amazon SES Receipt Filter is a resource for Amazon SES of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS Amazon SES Receipt Filter?
For Terraform, the niveklabs/aws and AnikG-Org/terraform-aws-service source code examples are useful. See the Terraform Example section for further details.
For CloudFormation, the awslabs/aws-service-catalog-products, awslabs/aws-service-catalog-products and awslabs/aws-service-catalog-products source code examples are useful. See the CloudFormation Example section for further details.