Skip to content
v2.278.0

IpFilterProperty Struct ​

A receipt IP address filter enables you to specify whether to accept or reject mail originating from an IP address or range of IP addresses.

For information about setting up IP address filters, see the Amazon SES Developer Guide .

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 ipFilterProperty: ses.CfnReceiptFilter.IpFilterProperty = {
  cidr: 'cidr',
  policy: 'policy',
};
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

ip_filter_property = ses.CfnReceiptFilter.IpFilterProperty(
    cidr="cidr",
    policy="policy"
)
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.*;

IpFilterProperty ipFilterProperty = IpFilterProperty.builder()
        .cidr("cidr")
        .policy("policy")
        .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 ipFilterProperty = new IpFilterProperty {
    Cidr = "cidr",
    Policy = "policy"
};
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"

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

Properties ​

cidrstringcidrstrcidrStringCidrstringCidr*string required #
A single IP address or a range of IP addresses to block or allow, specified in Classless Inter-Domain Routing (CIDR) notation.

An example of a single email address is 10.0.0.1. An example of a range of IP addresses is 10.0.0.1/24. For more information about CIDR notation, see RFC 2317 .

policystringpolicystrpolicyStringPolicystringPolicy*string required #
Indicates whether to block or allow incoming mail from the specified IP addresses.