AWS::SES::ReceiptFilter - AWS CloudFormation

AWS::SES::ReceiptFilter

Specify a new IP address filter. You use IP address filters when you receive email with Amazon SES.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::SES::ReceiptFilter", "Properties" : { "Filter" : Filter } }

YAML

Type: AWS::SES::ReceiptFilter Properties: Filter: Filter

Properties

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

Return values

Fn::GetAtt

Examples

Specifies an IP address filter for incoming email.

JSON

{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "AWS SES ReceiptFilter Sample Template", "Parameters": { "FilterName": { "Type": "String" }, "Policy": { "Type": "String" }, "Cidr": { "Type": "String" } }, "Resources": { "ReceiptFilter": { "Type": "AWS::SES::ReceiptFilter", "Properties": { "Filter": { "Name": { "Ref": "FilterName" }, "IpFilter": { "Policy": { "Ref": "Policy" }, "Cidr": { "Ref": "Cidr" } } } } } } }

YAML

AWSTemplateFormatVersion: 2010-09-09 Description: AWS SES ReceiptFilter Sample Template Parameters: FilterName: Type: String Policy: Type: String Cidr: Type: String Resources: ReceiptFilter: Type: 'AWS::SES::ReceiptFilter' Properties: Filter: Name: !Ref FilterName IpFilter: Policy: !Ref Policy Cidr: !Ref Cidr