Class: AWSCDK::SES::AddHeaderActionConfig

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

Overview

AddHeaderAction configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(header_name:, header_value:) ⇒ AddHeaderActionConfig

Returns a new instance of AddHeaderActionConfig.

Parameters:

  • header_name (String)

    The name of the header that you want to add to the incoming message.

  • header_value (String)

    The content that you want to include in the header.



9
10
11
12
13
14
# File 'ses/add_header_action_config.rb', line 9

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 that you want to add to the incoming message.

Returns:

  • (String)


19
20
21
# File 'ses/add_header_action_config.rb', line 19

def header_name
  @header_name
end

#header_valueString (readonly)

The content that you want to include in the header.

Returns:

  • (String)


23
24
25
# File 'ses/add_header_action_config.rb', line 23

def header_value
  @header_value
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'ses/add_header_action_config.rb', line 25

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

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'ses/add_header_action_config.rb', line 32

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