1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. ses
  6. ReceiptFilter

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.76.0
published on Monday, Aug 24, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.76.0
published on Monday, Aug 24, 2026 by Pulumi

    Resource Type definition for AWS::SES::ReceiptFilter

    Example Usage

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var filterName = config.Require("filterName");
        var policy = config.Require("policy");
        var cidr = config.Require("cidr");
        var receiptFilter = new AwsNative.Ses.ReceiptFilter("receiptFilter", new()
        {
            Filter = new AwsNative.Ses.Inputs.ReceiptFilterFilterArgs
            {
                Name = filterName,
                IpFilter = new AwsNative.Ses.Inputs.ReceiptFilterIpFilterArgs
                {
                    Policy = policy,
                    Cidr = cidr,
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ses"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		filterName := cfg.Require("filterName")
    		policy := cfg.Require("policy")
    		cidr := cfg.Require("cidr")
    		_, err := ses.NewReceiptFilter(ctx, "receiptFilter", &ses.ReceiptFilterArgs{
    			Filter: &ses.ReceiptFilterFilterArgs{
    				Name: pulumi.String(filterName),
    				IpFilter: &ses.ReceiptFilterIpFilterArgs{
    					Policy: pulumi.String(policy),
    					Cidr:   pulumi.String(cidr),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const config = new pulumi.Config();
    const filterName = config.require("filterName");
    const policy = config.require("policy");
    const cidr = config.require("cidr");
    const receiptFilter = new aws_native.ses.ReceiptFilter("receiptFilter", {filter: {
        name: filterName,
        ipFilter: {
            policy: policy,
            cidr: cidr,
        },
    }});
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    config = pulumi.Config()
    filter_name = config.require("filterName")
    policy = config.require("policy")
    cidr = config.require("cidr")
    receipt_filter = aws_native.ses.ReceiptFilter("receiptFilter", filter={
        "name": filter_name,
        "ip_filter": {
            "policy": policy,
            "cidr": cidr,
        },
    })
    

    Example coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var filterName = config.Require("filterName");
        var policy = config.Require("policy");
        var cidr = config.Require("cidr");
        var receiptFilter = new AwsNative.Ses.ReceiptFilter("receiptFilter", new()
        {
            Filter = new AwsNative.Ses.Inputs.ReceiptFilterFilterArgs
            {
                Name = filterName,
                IpFilter = new AwsNative.Ses.Inputs.ReceiptFilterIpFilterArgs
                {
                    Policy = policy,
                    Cidr = cidr,
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ses"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		filterName := cfg.Require("filterName")
    		policy := cfg.Require("policy")
    		cidr := cfg.Require("cidr")
    		_, err := ses.NewReceiptFilter(ctx, "receiptFilter", &ses.ReceiptFilterArgs{
    			Filter: &ses.ReceiptFilterFilterArgs{
    				Name: pulumi.String(filterName),
    				IpFilter: &ses.ReceiptFilterIpFilterArgs{
    					Policy: pulumi.String(policy),
    					Cidr:   pulumi.String(cidr),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const config = new pulumi.Config();
    const filterName = config.require("filterName");
    const policy = config.require("policy");
    const cidr = config.require("cidr");
    const receiptFilter = new aws_native.ses.ReceiptFilter("receiptFilter", {filter: {
        name: filterName,
        ipFilter: {
            policy: policy,
            cidr: cidr,
        },
    }});
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    config = pulumi.Config()
    filter_name = config.require("filterName")
    policy = config.require("policy")
    cidr = config.require("cidr")
    receipt_filter = aws_native.ses.ReceiptFilter("receiptFilter", filter={
        "name": filter_name,
        "ip_filter": {
            "policy": policy,
            "cidr": cidr,
        },
    })
    

    Example coming soon!

    Create ReceiptFilter Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ReceiptFilter(name: string, args: ReceiptFilterArgs, opts?: CustomResourceOptions);
    @overload
    def ReceiptFilter(resource_name: str,
                      args: ReceiptFilterArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ReceiptFilter(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      filter: Optional[ReceiptFilterFilterArgs] = None)
    func NewReceiptFilter(ctx *Context, name string, args ReceiptFilterArgs, opts ...ResourceOption) (*ReceiptFilter, error)
    public ReceiptFilter(string name, ReceiptFilterArgs args, CustomResourceOptions? opts = null)
    public ReceiptFilter(String name, ReceiptFilterArgs args)
    public ReceiptFilter(String name, ReceiptFilterArgs args, CustomResourceOptions options)
    
    type: aws-native:ses:ReceiptFilter
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_ses_receipt_filter" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ReceiptFilterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ReceiptFilterArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ReceiptFilterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReceiptFilterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReceiptFilterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ReceiptFilter Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ReceiptFilter resource accepts the following input properties:

    Filter Pulumi.AwsNative.Ses.Inputs.ReceiptFilterFilter
    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.
    Filter ReceiptFilterFilterArgs
    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.
    filter object
    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.
    filter ReceiptFilterFilter
    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.
    filter ReceiptFilterFilter
    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.
    filter ReceiptFilterFilterArgs
    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.
    filter Property Map
    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ReceiptFilter resource produces the following output properties:

    AwsId string
    Id string
    The provider-assigned unique ID for this managed resource.
    AwsId string
    Id string
    The provider-assigned unique ID for this managed resource.
    aws_id string
    id string
    The provider-assigned unique ID for this managed resource.
    awsId String
    id String
    The provider-assigned unique ID for this managed resource.
    awsId string
    id string
    The provider-assigned unique ID for this managed resource.
    aws_id str
    id str
    The provider-assigned unique ID for this managed resource.
    awsId String
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    ReceiptFilterFilter, ReceiptFilterFilterArgs

    A 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.
    IpFilter Pulumi.AwsNative.Ses.Inputs.ReceiptFilterIpFilter
    A structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.
    Name string
    The name of the IP address filter.
    IpFilter ReceiptFilterIpFilter
    A structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.
    Name string
    The name of the IP address filter.
    ip_filter object
    A structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.
    name string
    The name of the IP address filter.
    ipFilter ReceiptFilterIpFilter
    A structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.
    name String
    The name of the IP address filter.
    ipFilter ReceiptFilterIpFilter
    A structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.
    name string
    The name of the IP address filter.
    ip_filter ReceiptFilterIpFilter
    A structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.
    name str
    The name of the IP address filter.
    ipFilter Property Map
    A structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.
    name String
    The name of the IP address filter.

    ReceiptFilterIpFilter, ReceiptFilterIpFilterArgs

    A structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.
    Cidr string
    A single IP address or a range of IP addresses to block or allow, specified in CIDR notation.
    Policy string
    Indicates whether to block or allow incoming mail from the specified IP addresses.
    Cidr string
    A single IP address or a range of IP addresses to block or allow, specified in CIDR notation.
    Policy string
    Indicates whether to block or allow incoming mail from the specified IP addresses.
    cidr string
    A single IP address or a range of IP addresses to block or allow, specified in CIDR notation.
    policy string
    Indicates whether to block or allow incoming mail from the specified IP addresses.
    cidr String
    A single IP address or a range of IP addresses to block or allow, specified in CIDR notation.
    policy String
    Indicates whether to block or allow incoming mail from the specified IP addresses.
    cidr string
    A single IP address or a range of IP addresses to block or allow, specified in CIDR notation.
    policy string
    Indicates whether to block or allow incoming mail from the specified IP addresses.
    cidr str
    A single IP address or a range of IP addresses to block or allow, specified in CIDR notation.
    policy str
    Indicates whether to block or allow incoming mail from the specified IP addresses.
    cidr String
    A single IP address or a range of IP addresses to block or allow, specified in CIDR notation.
    policy String
    Indicates whether to block or allow incoming mail from the specified IP addresses.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.76.0
    published on Monday, Aug 24, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial