Class: AWSCDK::SES::CfnReceiptFilter::FilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SES::CfnReceiptFilter::FilterProperty
- Defined in:
- ses/cfn_receipt_filter.rb
Overview
Specifies an IP address filter.
Instance Attribute Summary collapse
-
#ip_filter ⇒ AWSCDK::IResolvable, AWSCDK::SES::CfnReceiptFilter::IPFilterProperty
readonly
A structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.
-
#name ⇒ String?
readonly
The name of the IP address filter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ip_filter:, name: nil) ⇒ FilterProperty
constructor
A new instance of FilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ip_filter:, name: nil) ⇒ FilterProperty
Returns a new instance of FilterProperty.
502 503 504 505 506 507 |
# File 'ses/cfn_receipt_filter.rb', line 502 def initialize(ip_filter:, name: nil) @ip_filter = ip_filter.is_a?(Hash) ? ::AWSCDK::SES::CfnReceiptFilter::IPFilterProperty.new(**ip_filter.transform_keys(&:to_sym)) : ip_filter Jsii::Type.check_type(@ip_filter, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuQ2ZuUmVjZWlwdEZpbHRlci5JcEZpbHRlclByb3BlcnR5In1dfX0=")), "ipFilter") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? end |
Instance Attribute Details
#ip_filter ⇒ AWSCDK::IResolvable, AWSCDK::SES::CfnReceiptFilter::IPFilterProperty (readonly)
A structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.
513 514 515 |
# File 'ses/cfn_receipt_filter.rb', line 513 def ip_filter @ip_filter end |
#name ⇒ String? (readonly)
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.
522 523 524 |
# File 'ses/cfn_receipt_filter.rb', line 522 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
524 525 526 527 528 529 |
# File 'ses/cfn_receipt_filter.rb', line 524 def self.jsii_properties { :ip_filter => "ipFilter", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
531 532 533 534 535 536 537 538 |
# File 'ses/cfn_receipt_filter.rb', line 531 def to_jsii result = {} result.merge!({ "ipFilter" => @ip_filter, "name" => @name, }) result.compact end |