Skip to content
v2.277.0

FilterProperty Struct ​

Specifies an IP address filter.

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 filterProperty: ses.CfnReceiptFilter.FilterProperty = {
  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

filter_property = 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.*;

FilterProperty filterProperty = FilterProperty.builder()
        .ipFilter(IpFilterProperty.builder()
                .cidr("cidr")
                .policy("policy")
                .build())

        // the properties below are optional
        .name("name")
        .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 filterProperty = 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"

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

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

Properties ​

ipFilterIResolvable | CfnReceiptFilter.IpFilterPropertyip_filtertyping.Union[IResolvable, IpFilterProperty]ipFilterIResolvableIpFilterIResolvableIpFilterinterface{}required#
A structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.
nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string#
The name of the IP address filter. The name must meet the following requirements:.
  • Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
  • Start and end with a letter or number.
  • Contain 64 characters or fewer.