Class: AWSCDK::SESActions::AddHeaderProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ses_actions/add_header_props.rb

Overview

Construction properties for a add header action.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, value:) ⇒ AddHeaderProps

Returns a new instance of AddHeaderProps.

Parameters:

  • name (String)

    The name of the header to add.

  • value (String)

    The value of the header to add.



9
10
11
12
13
14
# File 'ses_actions/add_header_props.rb', line 9

def initialize(name:, value:)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
end

Instance Attribute Details

#nameString (readonly)

The name of the header to add.

Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.

Returns:

  • (String)


23
24
25
# File 'ses_actions/add_header_props.rb', line 23

def name
  @name
end

#valueString (readonly)

The value of the header to add.

Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").

Returns:

  • (String)


30
31
32
# File 'ses_actions/add_header_props.rb', line 30

def value
  @value
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
# File 'ses_actions/add_header_props.rb', line 32

def self.jsii_properties
  {
    :name => "name",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



39
40
41
42
43
44
45
46
# File 'ses_actions/add_header_props.rb', line 39

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