Class: AWSCDK::SES::CfnMailManagerTrafficPolicy::IngressBooleanExpressionProperty

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

Overview

The structure for a boolean condition matching on the incoming mail.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(evaluate:, operator:) ⇒ IngressBooleanExpressionProperty

Returns a new instance of IngressBooleanExpressionProperty.

Parameters:



647
648
649
650
651
652
# File 'ses/cfn_mail_manager_traffic_policy.rb', line 647

def initialize(evaluate:, operator:)
  @evaluate = evaluate.is_a?(Hash) ? ::AWSCDK::SES::CfnMailManagerTrafficPolicy::IngressBooleanToEvaluateProperty.new(**evaluate.transform_keys(&:to_sym)) : evaluate
  Jsii::Type.check_type(@evaluate, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuQ2ZuTWFpbE1hbmFnZXJUcmFmZmljUG9saWN5LkluZ3Jlc3NCb29sZWFuVG9FdmFsdWF0ZVByb3BlcnR5In1dfX0=")), "evaluate")
  @operator = operator
  Jsii::Type.check_type(@operator, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "operator")
end

Instance Attribute Details

#operatorString (readonly)

The matching operator for a boolean condition expression.



663
664
665
# File 'ses/cfn_mail_manager_traffic_policy.rb', line 663

def operator
  @operator
end

Class Method Details

.jsii_propertiesObject



665
666
667
668
669
670
# File 'ses/cfn_mail_manager_traffic_policy.rb', line 665

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

Instance Method Details

#to_jsiiObject



672
673
674
675
676
677
678
679
# File 'ses/cfn_mail_manager_traffic_policy.rb', line 672

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