AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the CreateReceiptFilter operation. 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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.SimpleEmail.AmazonSimpleEmailServiceRequest
      Amazon.SimpleEmail.Model.CreateReceiptFilterRequest

Namespace: Amazon.SimpleEmail.Model
Assembly: AWSSDK.SimpleEmail.dll
Version: 3.x.y.z

Syntax

C#
public class CreateReceiptFilterRequest : AmazonSimpleEmailServiceRequest
         IAmazonWebServiceRequest

The CreateReceiptFilterRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property Filter Amazon.SimpleEmail.Model.ReceiptFilter

Gets and sets the property 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.

Examples

The following example creates a new IP address filter:

CreateReceiptFilter


var client = new AmazonSimpleEmailServiceClient();
var response = client.CreateReceiptFilter(new CreateReceiptFilterRequest 
{
    Filter = new ReceiptFilter {
        IpFilter = new ReceiptIpFilter {
            Cidr = "1.2.3.4/24",
            Policy = "Allow"
        },
        Name = "MyFilter"
    }
});


            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5