Class: AWSCDK::SES::CfnMailManagerRuleSet::RuleNumberExpressionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SES::CfnMailManagerRuleSet::RuleNumberExpressionProperty
- 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
-
#evaluate ⇒ AWSCDK::IResolvable, AWSCDK::SES::CfnMailManagerRuleSet::RuleNumberToEvaluateProperty
readonly
The number to evaluate in a numeric condition expression.
-
#operator ⇒ String
readonly
The operator for a numeric condition expression.
-
#value ⇒ Numeric
readonly
The value to evaluate in a numeric condition expression.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(evaluate:, operator:, value:) ⇒ RuleNumberExpressionProperty
constructor
A new instance of RuleNumberExpressionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(evaluate:, operator:, value:) ⇒ RuleNumberExpressionProperty
Returns a new instance of RuleNumberExpressionProperty.
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
#evaluate ⇒ AWSCDK::IResolvable, AWSCDK::SES::CfnMailManagerRuleSet::RuleNumberToEvaluateProperty (readonly)
The number to evaluate in a numeric condition expression.
1583 1584 1585 |
# File 'ses/cfn_mail_manager_rule_set.rb', line 1583 def evaluate @evaluate end |
#operator ⇒ String (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 |
#value ⇒ Numeric (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_properties ⇒ Object
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_jsii ⇒ Object
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 |