Class: AWSCDK::SES::CfnMailManagerRuleSet::RuleConditionProperty

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

Overview

The conditional expression used to evaluate an email for determining if a rule action should be taken.

This data type is a UNION, so only one of the following members can be specified when used or returned.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(boolean_expression: nil, dmarc_expression: nil, ip_expression: nil, number_expression: nil, string_expression: nil, verdict_expression: nil) ⇒ RuleConditionProperty

Returns a new instance of RuleConditionProperty.

Parameters:



1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
# File 'ses/cfn_mail_manager_rule_set.rb', line 1314

def initialize(boolean_expression: nil, dmarc_expression: nil, ip_expression: nil, number_expression: nil, string_expression: nil, verdict_expression: nil)
  @boolean_expression = boolean_expression.is_a?(Hash) ? ::AWSCDK::SES::CfnMailManagerRuleSet::RuleBooleanExpressionProperty.new(**boolean_expression.transform_keys(&:to_sym)) : boolean_expression
  Jsii::Type.check_type(@boolean_expression, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuQ2ZuTWFpbE1hbmFnZXJSdWxlU2V0LlJ1bGVCb29sZWFuRXhwcmVzc2lvblByb3BlcnR5In1dfX0=")), "booleanExpression") unless @boolean_expression.nil?
  @dmarc_expression = dmarc_expression.is_a?(Hash) ? ::AWSCDK::SES::CfnMailManagerRuleSet::RuleDmarcExpressionProperty.new(**dmarc_expression.transform_keys(&:to_sym)) : dmarc_expression
  Jsii::Type.check_type(@dmarc_expression, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuQ2ZuTWFpbE1hbmFnZXJSdWxlU2V0LlJ1bGVEbWFyY0V4cHJlc3Npb25Qcm9wZXJ0eSJ9XX19")), "dmarcExpression") unless @dmarc_expression.nil?
  @ip_expression = ip_expression.is_a?(Hash) ? ::AWSCDK::SES::CfnMailManagerRuleSet::RuleIPExpressionProperty.new(**ip_expression.transform_keys(&:to_sym)) : ip_expression
  Jsii::Type.check_type(@ip_expression, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuQ2ZuTWFpbE1hbmFnZXJSdWxlU2V0LlJ1bGVJcEV4cHJlc3Npb25Qcm9wZXJ0eSJ9XX19")), "ipExpression") unless @ip_expression.nil?
  @number_expression = number_expression.is_a?(Hash) ? ::AWSCDK::SES::CfnMailManagerRuleSet::RuleNumberExpressionProperty.new(**number_expression.transform_keys(&:to_sym)) : number_expression
  Jsii::Type.check_type(@number_expression, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuQ2ZuTWFpbE1hbmFnZXJSdWxlU2V0LlJ1bGVOdW1iZXJFeHByZXNzaW9uUHJvcGVydHkifV19fQ==")), "numberExpression") unless @number_expression.nil?
  @string_expression = string_expression.is_a?(Hash) ? ::AWSCDK::SES::CfnMailManagerRuleSet::RuleStringExpressionProperty.new(**string_expression.transform_keys(&:to_sym)) : string_expression
  Jsii::Type.check_type(@string_expression, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuQ2ZuTWFpbE1hbmFnZXJSdWxlU2V0LlJ1bGVTdHJpbmdFeHByZXNzaW9uUHJvcGVydHkifV19fQ==")), "stringExpression") unless @string_expression.nil?
  @verdict_expression = verdict_expression.is_a?(Hash) ? ::AWSCDK::SES::CfnMailManagerRuleSet::RuleVerdictExpressionProperty.new(**verdict_expression.transform_keys(&:to_sym)) : verdict_expression
  Jsii::Type.check_type(@verdict_expression, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuQ2ZuTWFpbE1hbmFnZXJSdWxlU2V0LlJ1bGVWZXJkaWN0RXhwcmVzc2lvblByb3BlcnR5In1dfX0=")), "verdictExpression") unless @verdict_expression.nil?
end

Instance Attribute Details

#boolean_expressionAWSCDK::IResolvable, ... (readonly)

The condition applies to a boolean expression passed in this field.



1333
1334
1335
# File 'ses/cfn_mail_manager_rule_set.rb', line 1333

def boolean_expression
  @boolean_expression
end

#dmarc_expressionAWSCDK::IResolvable, ... (readonly)

The condition applies to a DMARC policy expression passed in this field.



1338
1339
1340
# File 'ses/cfn_mail_manager_rule_set.rb', line 1338

def dmarc_expression
  @dmarc_expression
end

#ip_expressionAWSCDK::IResolvable, ... (readonly)

The condition applies to an IP address expression passed in this field.



1343
1344
1345
# File 'ses/cfn_mail_manager_rule_set.rb', line 1343

def ip_expression
  @ip_expression
end

#number_expressionAWSCDK::IResolvable, ... (readonly)

The condition applies to a number expression passed in this field.



1348
1349
1350
# File 'ses/cfn_mail_manager_rule_set.rb', line 1348

def number_expression
  @number_expression
end

#string_expressionAWSCDK::IResolvable, ... (readonly)

The condition applies to a string expression passed in this field.



1353
1354
1355
# File 'ses/cfn_mail_manager_rule_set.rb', line 1353

def string_expression
  @string_expression
end

#verdict_expressionAWSCDK::IResolvable, ... (readonly)

The condition applies to a verdict expression passed in this field.



1358
1359
1360
# File 'ses/cfn_mail_manager_rule_set.rb', line 1358

def verdict_expression
  @verdict_expression
end

Class Method Details

.jsii_propertiesObject



1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
# File 'ses/cfn_mail_manager_rule_set.rb', line 1360

def self.jsii_properties
  {
    :boolean_expression => "booleanExpression",
    :dmarc_expression => "dmarcExpression",
    :ip_expression => "ipExpression",
    :number_expression => "numberExpression",
    :string_expression => "stringExpression",
    :verdict_expression => "verdictExpression",
  }
end

Instance Method Details

#to_jsiiObject



1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
# File 'ses/cfn_mail_manager_rule_set.rb', line 1371

def to_jsii
  result = {}
  result.merge!({
    "booleanExpression" => @boolean_expression,
    "dmarcExpression" => @dmarc_expression,
    "ipExpression" => @ip_expression,
    "numberExpression" => @number_expression,
    "stringExpression" => @string_expression,
    "verdictExpression" => @verdict_expression,
  })
  result.compact
end