Class: AWSCDK::SESActions::WorkMail

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

Overview

Integrates an Amazon WorkMail action into a receipt rule set, and optionally publishes a notification to Amazon SNS.

Beware that WorkMail should already set up an active INBOUND_MAIL rule set that includes a WorkMail rule action for this exact purpose. This action should be used to customize the behavior of replacement rule set.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(props) ⇒ WorkMail

Returns a new instance of WorkMail.

Parameters:



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

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

Class Method Details

.jsii_overridable_methodsObject



22
23
24
25
26
# File 'ses_actions/work_mail.rb', line 22

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.



32
33
34
35
# File 'ses_actions/work_mail.rb', line 32

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