Class: AWSCDK::SES::CfnReceiptRule::AddHeaderActionProperty

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

Overview

When included in a receipt rule, this action adds a header to the received email.

For information about adding a header using a receipt rule, see the Amazon SES Developer Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(header_name:, header_value:) ⇒ AddHeaderActionProperty

Returns a new instance of AddHeaderActionProperty.

Parameters:

  • header_name (String)

    The name of the header to add to the incoming message.

  • header_value (String)

    The content to include in the header.



635
636
637
638
639
640
# File 'ses/cfn_receipt_rule.rb', line 635

def initialize(header_name:, header_value:)
  @header_name = header_name
  Jsii::Type.check_type(@header_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "headerName")
  @header_value = header_value
  Jsii::Type.check_type(@header_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "headerValue")
end

Instance Attribute Details

#header_nameString (readonly)

The name of the header to add to the incoming message.

The name must contain at least one character, and can contain up to 50 characters. It consists of alphanumeric ( a–z, A–Z, 0–9 ) characters and dashes.



648
649
650
# File 'ses/cfn_receipt_rule.rb', line 648

def header_name
  @header_name
end

#header_valueString (readonly)

The content to include in the header.

This value can contain up to 2048 characters. It can't contain newline ( \n ) or carriage return ( \r ) characters.



655
656
657
# File 'ses/cfn_receipt_rule.rb', line 655

def header_value
  @header_value
end

Class Method Details

.jsii_propertiesObject



657
658
659
660
661
662
# File 'ses/cfn_receipt_rule.rb', line 657

def self.jsii_properties
  {
    :header_name => "headerName",
    :header_value => "headerValue",
  }
end

Instance Method Details

#to_jsiiObject



664
665
666
667
668
669
670
671
# File 'ses/cfn_receipt_rule.rb', line 664

def to_jsii
  result = {}
  result.merge!({
    "headerName" => @header_name,
    "headerValue" => @header_value,
  })
  result.compact
end