Class: AWSCDK::SES::CfnMailManagerRuleSet::RuleNumberExpressionProperty

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

Overview

A number expression to match numeric conditions with integers from the incoming email.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(evaluate:, operator:, value:) ⇒ RuleNumberExpressionProperty

Returns a new instance of RuleNumberExpressionProperty.

Parameters:



1570
1571
1572
1573
1574
1575
1576
1577
# File 'ses/cfn_mail_manager_rule_set.rb', line 1570

def initialize(evaluate:, operator:, value:)
  @evaluate = evaluate.is_a?(Hash) ? ::AWSCDK::SES::CfnMailManagerRuleSet::RuleNumberToEvaluateProperty.new(**evaluate.transform_keys(&:to_sym)) : evaluate
  Jsii::Type.check_type(@evaluate, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuQ2ZuTWFpbE1hbmFnZXJSdWxlU2V0LlJ1bGVOdW1iZXJUb0V2YWx1YXRlUHJvcGVydHkifV19fQ==")), "evaluate")
  @operator = operator
  Jsii::Type.check_type(@operator, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "operator")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value")
end

Instance Attribute Details

#operatorString (readonly)

The operator for a numeric condition expression.



1588
1589
1590
# File 'ses/cfn_mail_manager_rule_set.rb', line 1588

def operator
  @operator
end

#valueNumeric (readonly)

The value to evaluate in a numeric condition expression.



1593
1594
1595
# File 'ses/cfn_mail_manager_rule_set.rb', line 1593

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1595
1596
1597
1598
1599
1600
1601
# File 'ses/cfn_mail_manager_rule_set.rb', line 1595

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

Instance Method Details

#to_jsiiObject



1603
1604
1605
1606
1607
1608
1609
1610
1611
# File 'ses/cfn_mail_manager_rule_set.rb', line 1603

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