Class: AWSCDK::SES::CfnMailManagerRuleSet::RuleDmarcExpressionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SES::CfnMailManagerRuleSet::RuleDmarcExpressionProperty
- 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
-
#operator ⇒ String
readonly
The operator to apply to the DMARC policy of the incoming email.
-
#values ⇒ Array<String>
readonly
The values to use for the given DMARC policy operator.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(operator:, values:) ⇒ RuleDmarcExpressionProperty
constructor
A new instance of RuleDmarcExpressionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(operator:, values:) ⇒ RuleDmarcExpressionProperty
Returns a new instance of RuleDmarcExpressionProperty.
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
#operator ⇒ String (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 |
#values ⇒ Array<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_properties ⇒ Object
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_jsii ⇒ Object
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 |