Class: AWSCDK::SES::CfnReceiptFilter::IPFilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SES::CfnReceiptFilter::IPFilterProperty
- Defined in:
- ses/cfn_receipt_filter.rb
Overview
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
-
#cidr ⇒ String
readonly
A single IP address or a range of IP addresses to block or allow, specified in Classless Inter-Domain Routing (CIDR) notation.
-
#policy ⇒ String
readonly
Indicates whether to block or allow incoming mail from the specified IP addresses.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cidr:, policy:) ⇒ IPFilterProperty
constructor
A new instance of IPFilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cidr:, policy:) ⇒ IPFilterProperty
Returns a new instance of IPFilterProperty.
551 552 553 554 555 556 |
# File 'ses/cfn_receipt_filter.rb', line 551 def initialize(cidr:, policy:) @cidr = cidr Jsii::Type.check_type(@cidr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cidr") @policy = policy Jsii::Type.check_type(@policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policy") end |
Instance Attribute Details
#cidr ⇒ String (readonly)
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 .
564 565 566 |
# File 'ses/cfn_receipt_filter.rb', line 564 def cidr @cidr end |
#policy ⇒ String (readonly)
Indicates whether to block or allow incoming mail from the specified IP addresses.
569 570 571 |
# File 'ses/cfn_receipt_filter.rb', line 569 def policy @policy end |
Class Method Details
.jsii_properties ⇒ Object
571 572 573 574 575 576 |
# File 'ses/cfn_receipt_filter.rb', line 571 def self.jsii_properties { :cidr => "cidr", :policy => "policy", } end |
Instance Method Details
#to_jsii ⇒ Object
578 579 580 581 582 583 584 585 |
# File 'ses/cfn_receipt_filter.rb', line 578 def to_jsii result = {} result.merge!({ "cidr" => @cidr, "policy" => @policy, }) result.compact end |