Skip to content
v2.278.0

CfnReceiptFilterProps Struct ​

Properties for defining a CfnReceiptFilter.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ses as ses } from 'aws-cdk-lib';
const cfnReceiptFilterProps: ses.CfnReceiptFilterProps = {
  filter: {
    ipFilter: {
      cidr: 'cidr',
      policy: 'policy',
    },

    // the properties below are optional
    name: 'name',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ses as ses

cfn_receipt_filter_props = ses.CfnReceiptFilterProps(
    filter=ses.CfnReceiptFilter.FilterProperty(
        ip_filter=ses.CfnReceiptFilter.IpFilterProperty(
            cidr="cidr",
            policy="policy"
        ),

        # the properties below are optional
        name="name"
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ses.*;

CfnReceiptFilterProps cfnReceiptFilterProps = CfnReceiptFilterProps.builder()
        .filter(FilterProperty.builder()
                .ipFilter(IpFilterProperty.builder()
                        .cidr("cidr")
                        .policy("policy")
                        .build())

                // the properties below are optional
                .name("name")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SES;

var cfnReceiptFilterProps = new CfnReceiptFilterProps {
    Filter = new FilterProperty {
        IpFilter = new IpFilterProperty {
            Cidr = "cidr",
            Policy = "policy"
        },

        // the properties below are optional
        Name = "name"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnReceiptFilterProps := &CfnReceiptFilterProps{
	Filter: &FilterProperty{
		IpFilter: &IpFilterProperty{
			Cidr: jsii.String("cidr"),
			Policy: jsii.String("policy"),
		},

		// the properties below are optional
		Name: jsii.String("name"),
	},
}

Properties ​

filterIResolvable | CfnReceiptFilter.FilterPropertyfiltertyping.Union[IResolvable, FilterProperty]filterIResolvableFilterIResolvableFilterinterface{} required #
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.