Class: AWSCDK::SES::CfnMailManagerRuleSet::RuleIsInAddressListProperty

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

Overview

The structure type for a boolean condition that provides the address lists and address list attribute to evaluate.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address_lists:, attribute:) ⇒ RuleIsInAddressListProperty

Returns a new instance of RuleIsInAddressListProperty.

Parameters:

  • address_lists (Array<String>)

    The address lists that will be used for evaluation.

  • attribute (String)

    The email attribute that needs to be evaluated against the address list.



1526
1527
1528
1529
1530
1531
# File 'ses/cfn_mail_manager_rule_set.rb', line 1526

def initialize(address_lists:, attribute:)
  @address_lists = address_lists
  Jsii::Type.check_type(@address_lists, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "addressLists")
  @attribute = attribute
  Jsii::Type.check_type(@attribute, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attribute")
end

Instance Attribute Details

#address_listsArray<String> (readonly)

The address lists that will be used for evaluation.



1537
1538
1539
# File 'ses/cfn_mail_manager_rule_set.rb', line 1537

def address_lists
  @address_lists
end

#attributeString (readonly)

The email attribute that needs to be evaluated against the address list.



1542
1543
1544
# File 'ses/cfn_mail_manager_rule_set.rb', line 1542

def attribute
  @attribute
end

Class Method Details

.jsii_propertiesObject



1544
1545
1546
1547
1548
1549
# File 'ses/cfn_mail_manager_rule_set.rb', line 1544

def self.jsii_properties
  {
    :address_lists => "addressLists",
    :attribute => "attribute",
  }
end

Instance Method Details

#to_jsiiObject



1551
1552
1553
1554
1555
1556
1557
1558
# File 'ses/cfn_mail_manager_rule_set.rb', line 1551

def to_jsii
  result = {}
  result.merge!({
    "addressLists" => @address_lists,
    "attribute" => @attribute,
  })
  result.compact
end