Class: Aws::SES::Types::ReceiptFilter

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

Overview

Note:

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

{
  name: "ReceiptFilterName", # required
  ip_filter: { # required
    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].

[1]: docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html

Instance Attribute Summary collapse

Instance Attribute Details

#ip_filterTypes::ReceiptIpFilter

A structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.



3148
3149
3150
3151
3152
# File 'lib/aws-sdk-ses/types.rb', line 3148

class ReceiptFilter < Struct.new(
  :name,
  :ip_filter)
  include Aws::Structure
end

#nameString

The name of the IP address filter. The name must:

  • This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).

  • Start and end with a letter or number.

  • Contain less than 64 characters.

Returns:

  • (String)


3148
3149
3150
3151
3152
# File 'lib/aws-sdk-ses/types.rb', line 3148

class ReceiptFilter < Struct.new(
  :name,
  :ip_filter)
  include Aws::Structure
end