Class: AWSCDK::SES::CfnMailManagerRuleSet::RuleStringExpressionProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(evaluate:, operator:, values:) ⇒ RuleStringExpressionProperty

Returns a new instance of RuleStringExpressionProperty.

Parameters:



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

#operatorString (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

#valuesArray<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_propertiesObject



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_jsiiObject



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