Class: AWSCDK::SESActions::AddHeader

Inherits:
Jsii::Object
  • Object
show all
Includes:
AWSCDK::SES::IReceiptRuleAction
Defined in:
ses_actions/add_header.rb

Overview

Adds a header to the received email.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(props) ⇒ AddHeader

Returns a new instance of AddHeader.



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

def initialize(props)
  props = props.is_a?(Hash) ? ::AWSCDK::SESActions::AddHeaderProps.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VzX2FjdGlvbnMuQWRkSGVhZGVyUHJvcHMifQ==")), "props")
  Jsii::Object.instance_method(:initialize).bind(self).call(props)
end

Class Method Details

.jsii_overridable_methodsObject



16
17
18
19
20
# File 'ses_actions/add_header.rb', line 16

def self.jsii_overridable_methods
  {
    :bind => { kind: :method, name: "bind", is_optional: false },
  }
end

Instance Method Details

#bind(_rule) ⇒ AWSCDK::SES::ReceiptRuleActionConfig

Returns the receipt rule action specification.



26
27
28
29
# File 'ses_actions/add_header.rb', line 26

def bind(_rule)
  Jsii::Type.check_type(_rule, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19zZXMuSVJlY2VpcHRSdWxlUmVmIn0=")), "_rule")
  jsii_call_method("bind", [_rule])
end