1. Packages
  2. AWS Classic
  3. API Docs
  4. ses
  5. ReceiptFilter

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.2.1 published on Friday, Sep 22, 2023 by Pulumi

aws.ses.ReceiptFilter

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.2.1 published on Friday, Sep 22, 2023 by Pulumi

    Provides an SES receipt filter resource

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var filter = new Aws.Ses.ReceiptFilter("filter", new()
        {
            Cidr = "10.10.10.10",
            Policy = "Block",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ses"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ses.NewReceiptFilter(ctx, "filter", &ses.ReceiptFilterArgs{
    			Cidr:   pulumi.String("10.10.10.10"),
    			Policy: pulumi.String("Block"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.ses.ReceiptFilter;
    import com.pulumi.aws.ses.ReceiptFilterArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var filter = new ReceiptFilter("filter", ReceiptFilterArgs.builder()        
                .cidr("10.10.10.10")
                .policy("Block")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    filter = aws.ses.ReceiptFilter("filter",
        cidr="10.10.10.10",
        policy="Block")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const filter = new aws.ses.ReceiptFilter("filter", {
        cidr: "10.10.10.10",
        policy: "Block",
    });
    
    resources:
      filter:
        type: aws:ses:ReceiptFilter
        properties:
          cidr: 10.10.10.10
          policy: Block
    

    Create ReceiptFilter Resource

    new ReceiptFilter(name: string, args: ReceiptFilterArgs, opts?: CustomResourceOptions);
    @overload
    def ReceiptFilter(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      cidr: Optional[str] = None,
                      name: Optional[str] = None,
                      policy: Optional[str] = None)
    @overload
    def ReceiptFilter(resource_name: str,
                      args: ReceiptFilterArgs,
                      opts: Optional[ResourceOptions] = 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:ses:ReceiptFilter
    properties: # The arguments to resource properties.
    options: # 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.
    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

    The ReceiptFilter resource accepts the following input properties:

    Cidr string

    The IP address or address range to filter, in CIDR notation

    Policy string

    Block or Allow

    Name string

    The name of the filter

    Cidr string

    The IP address or address range to filter, in CIDR notation

    Policy string

    Block or Allow

    Name string

    The name of the filter

    cidr String

    The IP address or address range to filter, in CIDR notation

    policy String

    Block or Allow

    name String

    The name of the filter

    cidr string

    The IP address or address range to filter, in CIDR notation

    policy string

    Block or Allow

    name string

    The name of the filter

    cidr str

    The IP address or address range to filter, in CIDR notation

    policy str

    Block or Allow

    name str

    The name of the filter

    cidr String

    The IP address or address range to filter, in CIDR notation

    policy String

    Block or Allow

    name String

    The name of the filter

    Outputs

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

    Arn string

    The SES receipt filter ARN.

    Id string

    The provider-assigned unique ID for this managed resource.

    Arn string

    The SES receipt filter ARN.

    Id string

    The provider-assigned unique ID for this managed resource.

    arn String

    The SES receipt filter ARN.

    id String

    The provider-assigned unique ID for this managed resource.

    arn string

    The SES receipt filter ARN.

    id string

    The provider-assigned unique ID for this managed resource.

    arn str

    The SES receipt filter ARN.

    id str

    The provider-assigned unique ID for this managed resource.

    arn String

    The SES receipt filter ARN.

    id String

    The provider-assigned unique ID for this managed resource.

    Look up Existing ReceiptFilter Resource

    Get an existing ReceiptFilter resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ReceiptFilterState, opts?: CustomResourceOptions): ReceiptFilter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            cidr: Optional[str] = None,
            name: Optional[str] = None,
            policy: Optional[str] = None) -> ReceiptFilter
    func GetReceiptFilter(ctx *Context, name string, id IDInput, state *ReceiptFilterState, opts ...ResourceOption) (*ReceiptFilter, error)
    public static ReceiptFilter Get(string name, Input<string> id, ReceiptFilterState? state, CustomResourceOptions? opts = null)
    public static ReceiptFilter get(String name, Output<String> id, ReceiptFilterState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string

    The SES receipt filter ARN.

    Cidr string

    The IP address or address range to filter, in CIDR notation

    Name string

    The name of the filter

    Policy string

    Block or Allow

    Arn string

    The SES receipt filter ARN.

    Cidr string

    The IP address or address range to filter, in CIDR notation

    Name string

    The name of the filter

    Policy string

    Block or Allow

    arn String

    The SES receipt filter ARN.

    cidr String

    The IP address or address range to filter, in CIDR notation

    name String

    The name of the filter

    policy String

    Block or Allow

    arn string

    The SES receipt filter ARN.

    cidr string

    The IP address or address range to filter, in CIDR notation

    name string

    The name of the filter

    policy string

    Block or Allow

    arn str

    The SES receipt filter ARN.

    cidr str

    The IP address or address range to filter, in CIDR notation

    name str

    The name of the filter

    policy str

    Block or Allow

    arn String

    The SES receipt filter ARN.

    cidr String

    The IP address or address range to filter, in CIDR notation

    name String

    The name of the filter

    policy String

    Block or Allow

    Import

    Using pulumi import, import SES Receipt Filter using their name. For example:

     $ pulumi import aws:ses/receiptFilter:ReceiptFilter test some-filter
    

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the aws Terraform Provider.

    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.2.1 published on Friday, Sep 22, 2023 by Pulumi