Class: AWSCDK::SES::CfnMailManagerRuleSet::RuleDmarcExpressionProperty

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

Overview

A DMARC policy expression.

The condition matches if the given DMARC policy matches that of the incoming email.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operator:, values:) ⇒ RuleDmarcExpressionProperty

Returns a new instance of RuleDmarcExpressionProperty.

Parameters:

  • operator (String)

    The operator to apply to the DMARC policy of the incoming email.

  • values (Array<String>)

    The values to use for the given DMARC policy operator.



1395
1396
1397
1398
1399
1400
# File 'ses/cfn_mail_manager_rule_set.rb', line 1395

def initialize(operator:, values:)
  @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 operator to apply to the DMARC policy of the incoming email.



1406
1407
1408
# File 'ses/cfn_mail_manager_rule_set.rb', line 1406

def operator
  @operator
end

#valuesArray<String> (readonly)

The values to use for the given DMARC policy operator.

For the operator EQUALS, if multiple values are given, they are evaluated as an OR. That is, if any of the given values match, the condition is deemed to match. For the operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is, only if the email's DMARC policy is not equal to any of the given values, then the condition is deemed to match.



1413
1414
1415
# File 'ses/cfn_mail_manager_rule_set.rb', line 1413

def values
  @values
end

Class Method Details

.jsii_propertiesObject



1415
1416
1417
1418
1419
1420
# File 'ses/cfn_mail_manager_rule_set.rb', line 1415

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

Instance Method Details

#to_jsiiObject



1422
1423
1424
1425
1426
1427
1428
1429
# File 'ses/cfn_mail_manager_rule_set.rb', line 1422

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