Class: AWSCDK::SES::CfnMailManagerRuleSet::ReplaceRecipientActionProperty

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

Overview

This action replaces the email envelope recipients with the given list of recipients.

If the condition of this action applies only to a subset of recipients, only those recipients are replaced with the recipients specified in the action. The message contents and headers are unaffected by this action, only the envelope recipients are updated.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(replace_with: nil) ⇒ ReplaceRecipientActionProperty

Returns a new instance of ReplaceRecipientActionProperty.

Parameters:

  • replace_with (Array<String>, nil) (defaults to: nil)

    This action specifies the replacement recipient email addresses to insert.



1033
1034
1035
1036
# File 'ses/cfn_mail_manager_rule_set.rb', line 1033

def initialize(replace_with: nil)
  @replace_with = replace_with
  Jsii::Type.check_type(@replace_with, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "replaceWith") unless @replace_with.nil?
end

Instance Attribute Details

#replace_withArray<String>? (readonly)

This action specifies the replacement recipient email addresses to insert.



1042
1043
1044
# File 'ses/cfn_mail_manager_rule_set.rb', line 1042

def replace_with
  @replace_with
end

Class Method Details

.jsii_propertiesObject



1044
1045
1046
1047
1048
# File 'ses/cfn_mail_manager_rule_set.rb', line 1044

def self.jsii_properties
  {
    :replace_with => "replaceWith",
  }
end

Instance Method Details

#to_jsiiObject



1050
1051
1052
1053
1054
1055
1056
# File 'ses/cfn_mail_manager_rule_set.rb', line 1050

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