Class: AWSCDK::SES::CfnReceiptFilterProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SES::CfnReceiptFilterProps
- Defined in:
- ses/cfn_receipt_filter_props.rb
Overview
Properties for defining a CfnReceiptFilter.
Instance Attribute Summary collapse
-
#filter ⇒ AWSCDK::IResolvable, AWSCDK::SES::CfnReceiptFilter::FilterProperty
readonly
A data structure that describes the IP address filter to create, which consists of a name, an IP address range, and whether to allow or block mail from it.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(filter:) ⇒ CfnReceiptFilterProps
constructor
A new instance of CfnReceiptFilterProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(filter:) ⇒ CfnReceiptFilterProps
Returns a new instance of CfnReceiptFilterProps.
10 11 12 13 |
# File 'ses/cfn_receipt_filter_props.rb', line 10 def initialize(filter:) @filter = filter.is_a?(Hash) ? ::AWSCDK::SES::CfnReceiptFilter::FilterProperty.new(**filter.transform_keys(&:to_sym)) : filter Jsii::Type.check_type(@filter, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuQ2ZuUmVjZWlwdEZpbHRlci5GaWx0ZXJQcm9wZXJ0eSJ9XX19")), "filter") end |
Instance Attribute Details
#filter ⇒ AWSCDK::IResolvable, AWSCDK::SES::CfnReceiptFilter::FilterProperty (readonly)
A data structure that describes the IP address filter to create, which consists of a name, an IP address range, and whether to allow or block mail from it.
19 20 21 |
# File 'ses/cfn_receipt_filter_props.rb', line 19 def filter @filter end |
Class Method Details
.jsii_properties ⇒ Object
21 22 23 24 25 |
# File 'ses/cfn_receipt_filter_props.rb', line 21 def self.jsii_properties { :filter => "filter", } end |
Instance Method Details
#to_jsii ⇒ Object
27 28 29 30 31 32 33 |
# File 'ses/cfn_receipt_filter_props.rb', line 27 def to_jsii result = {} result.merge!({ "filter" => @filter, }) result.compact end |