You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::SES::Types::ReceiptIpFilter

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ses/lib/aws-sdk-ses/types.rb

Overview

Note:

When making an API call, you may pass ReceiptIpFilter data as a hash:

{
  policy: "Block", # required, accepts Block, Allow
  cidr: "Cidr", # required
}

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.

Instance Attribute Summary collapse

Instance Attribute Details

#cidrString

A single IP address or a range of IP addresses that you want 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.

Returns:

  • (String)


2569
2570
2571
2572
2573
# File 'gems/aws-sdk-ses/lib/aws-sdk-ses/types.rb', line 2569

class ReceiptIpFilter < Struct.new(
  :policy,
  :cidr)
  include Aws::Structure
end

#policyString

Indicates whether to block or allow incoming mail from the specified IP addresses.

Returns:

  • (String)


2569
2570
2571
2572
2573
# File 'gems/aws-sdk-ses/lib/aws-sdk-ses/types.rb', line 2569

class ReceiptIpFilter < Struct.new(
  :policy,
  :cidr)
  include Aws::Structure
end