Class: AWSCDK::SES::CfnMailManagerTrafficPolicy::IngressIpv4ExpressionProperty

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

Overview

The union type representing the allowed types for the left hand side of an IP condition.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of IngressIpv4ExpressionProperty.

Parameters:



767
768
769
770
771
772
773
774
# File 'ses/cfn_mail_manager_traffic_policy.rb', line 767

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



785
786
787
# File 'ses/cfn_mail_manager_traffic_policy.rb', line 785

def operator
  @operator
end

#valuesArray<String> (readonly)

The right hand side argument of an IP condition expression.



790
791
792
# File 'ses/cfn_mail_manager_traffic_policy.rb', line 790

def values
  @values
end

Class Method Details

.jsii_propertiesObject



792
793
794
795
796
797
798
# File 'ses/cfn_mail_manager_traffic_policy.rb', line 792

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

Instance Method Details

#to_jsiiObject



800
801
802
803
804
805
806
807
808
# File 'ses/cfn_mail_manager_traffic_policy.rb', line 800

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