Class: AWSCDK::SES::CfnMailManagerRuleSet::RuleStringExpressionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SES::CfnMailManagerRuleSet::RuleStringExpressionProperty
- Defined in:
- ses/cfn_mail_manager_rule_set.rb
Overview
A string expression is evaluated against strings or substrings of the email.
Instance Attribute Summary collapse
-
#evaluate ⇒ AWSCDK::IResolvable, AWSCDK::SES::CfnMailManagerRuleSet::RuleStringToEvaluateProperty
readonly
The string to evaluate in a string condition expression.
-
#operator ⇒ String
readonly
The matching operator for a string condition expression.
-
#values ⇒ Array<String>
readonly
The string(s) to be evaluated in a string condition expression.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(evaluate:, operator:, values:) ⇒ RuleStringExpressionProperty
constructor
A new instance of RuleStringExpressionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(evaluate:, operator:, values:) ⇒ RuleStringExpressionProperty
Returns a new instance of RuleStringExpressionProperty.
1725 1726 1727 1728 1729 1730 1731 1732 |
# File 'ses/cfn_mail_manager_rule_set.rb', line 1725 def initialize(evaluate:, operator:, values:) @evaluate = evaluate.is_a?(Hash) ? ::AWSCDK::SES::CfnMailManagerRuleSet::RuleStringToEvaluateProperty.new(**evaluate.transform_keys(&:to_sym)) : evaluate Jsii::Type.check_type(@evaluate, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuQ2ZuTWFpbE1hbmFnZXJSdWxlU2V0LlJ1bGVTdHJpbmdUb0V2YWx1YXRlUHJvcGVydHkifV19fQ==")), "evaluate") @operator = operator Jsii::Type.check_type(@operator, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "operator") @values = values Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values") end |
Instance Attribute Details
#evaluate ⇒ AWSCDK::IResolvable, AWSCDK::SES::CfnMailManagerRuleSet::RuleStringToEvaluateProperty (readonly)
The string to evaluate in a string condition expression.
1738 1739 1740 |
# File 'ses/cfn_mail_manager_rule_set.rb', line 1738 def evaluate @evaluate end |
#operator ⇒ String (readonly)
The matching operator for a string condition expression.
1743 1744 1745 |
# File 'ses/cfn_mail_manager_rule_set.rb', line 1743 def operator @operator end |
#values ⇒ Array<String> (readonly)
The string(s) to be evaluated in a string condition expression.
For all operators, except for NOT_EQUALS, if multiple values are given, the values are processed as an OR. That is, if any of the values match the email's string using the given operator, the condition is deemed to match. However, for NOT_EQUALS, the condition is only deemed to match if none of the given strings match the email's string.
1750 1751 1752 |
# File 'ses/cfn_mail_manager_rule_set.rb', line 1750 def values @values end |
Class Method Details
.jsii_properties ⇒ Object
1752 1753 1754 1755 1756 1757 1758 |
# File 'ses/cfn_mail_manager_rule_set.rb', line 1752 def self.jsii_properties { :evaluate => "evaluate", :operator => "operator", :values => "values", } end |
Instance Method Details
#to_jsii ⇒ Object
1760 1761 1762 1763 1764 1765 1766 1767 1768 |
# File 'ses/cfn_mail_manager_rule_set.rb', line 1760 def to_jsii result = {} result.merge!({ "evaluate" => @evaluate, "operator" => @operator, "values" => @values, }) result.compact end |