Class: AWSCDK::SESActions::AddHeaderProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SESActions::AddHeaderProps
- Defined in:
- ses_actions/add_header_props.rb
Overview
Construction properties for a add header action.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of the header to add.
-
#value ⇒ String
readonly
The value of the header to add.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, value:) ⇒ AddHeaderProps
constructor
A new instance of AddHeaderProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, value:) ⇒ AddHeaderProps
Returns a new instance of AddHeaderProps.
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
#name ⇒ String (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.
23 24 25 |
# File 'ses_actions/add_header_props.rb', line 23 def name @name end |
#value ⇒ String (readonly)
The value of the header to add.
Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
30 31 32 |
# File 'ses_actions/add_header_props.rb', line 30 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |