Class: AWSCDK::SESActions::SNSProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SESActions::SNSProps
- Defined in:
- ses_actions/sns_props.rb
Overview
Construction properties for a SNS action.
Instance Attribute Summary collapse
-
#encoding ⇒ AWSCDK::SESActions::EmailEncoding?
readonly
The encoding to use for the email within the Amazon SNS notification.
-
#topic ⇒ AWSCDK::SNS::ITopic
readonly
The SNS topic to notify.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(topic:, encoding: nil) ⇒ SNSProps
constructor
A new instance of SNSProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(topic:, encoding: nil) ⇒ SNSProps
Returns a new instance of SNSProps.
9 10 11 12 13 14 |
# File 'ses_actions/sns_props.rb', line 9 def initialize(topic:, encoding: nil) @topic = topic Jsii::Type.check_type(@topic, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc25zLklUb3BpYyJ9")), "topic") @encoding = encoding Jsii::Type.check_type(@encoding, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VzX2FjdGlvbnMuRW1haWxFbmNvZGluZyJ9")), "encoding") unless @encoding.nil? end |
Instance Attribute Details
#encoding ⇒ AWSCDK::SESActions::EmailEncoding? (readonly)
Note:
Default: UTF-8
The encoding to use for the email within the Amazon SNS notification.
24 25 26 |
# File 'ses_actions/sns_props.rb', line 24 def encoding @encoding end |
#topic ⇒ AWSCDK::SNS::ITopic (readonly)
The SNS topic to notify.
19 20 21 |
# File 'ses_actions/sns_props.rb', line 19 def topic @topic end |
Class Method Details
.jsii_properties ⇒ Object
26 27 28 29 30 31 |
# File 'ses_actions/sns_props.rb', line 26 def self.jsii_properties { :topic => "topic", :encoding => "encoding", } end |
Instance Method Details
#to_jsii ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'ses_actions/sns_props.rb', line 33 def to_jsii result = {} result.merge!({ "topic" => @topic, "encoding" => @encoding, }) result.compact end |