Class: AWSCDK::SES::CfnMailManagerRuleSet::RuleVerdictExpressionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ses/cfn_mail_manager_rule_set.rb

Overview

A verdict expression is evaluated against verdicts of the email.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of RuleVerdictExpressionProperty.

Parameters:



1843
1844
1845
1846
1847
1848
1849
1850
# File 'ses/cfn_mail_manager_rule_set.rb', line 1843

def initialize(evaluate:, operator:, values:)
  @evaluate = evaluate.is_a?(Hash) ? ::AWSCDK::SES::CfnMailManagerRuleSet::RuleVerdictToEvaluateProperty.new(**evaluate.transform_keys(&:to_sym)) : evaluate
  Jsii::Type.check_type(@evaluate, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuQ2ZuTWFpbE1hbmFnZXJSdWxlU2V0LlJ1bGVWZXJkaWN0VG9FdmFsdWF0ZVByb3BlcnR5In1dfX0=")), "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 verdict condition expression.



1861
1862
1863
# File 'ses/cfn_mail_manager_rule_set.rb', line 1861

def operator
  @operator
end

#valuesArray<String> (readonly)

The values to match with the email's verdict using the given operator.

For the EQUALS operator, if multiple values are given, the condition is deemed to match if any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple values are given, the condition is deemed to match of none of the given verdicts match the verdict of the email.



1868
1869
1870
# File 'ses/cfn_mail_manager_rule_set.rb', line 1868

def values
  @values
end

Class Method Details

.jsii_propertiesObject



1870
1871
1872
1873
1874
1875
1876
# File 'ses/cfn_mail_manager_rule_set.rb', line 1870

def self.jsii_properties
  {
    :evaluate => "evaluate",
    :operator => "operator",
    :values => "values",
  }
end

Instance Method Details

#to_jsiiObject



1878
1879
1880
1881
1882
1883
1884
1885
1886
# File 'ses/cfn_mail_manager_rule_set.rb', line 1878

def to_jsii
  result = {}
  result.merge!({
    "evaluate" => @evaluate,
    "operator" => @operator,
    "values" => @values,
  })
  result.compact
end