Class: AWSCDK::SESActions::StopProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SESActions::StopProps
- Defined in:
- ses_actions/stop_props.rb
Overview
Construction properties for a stop action.
Instance Attribute Summary collapse
-
#topic ⇒ AWSCDK::SNS::ITopic?
readonly
The SNS topic to notify when the stop action is taken.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(topic: nil) ⇒ StopProps
constructor
A new instance of StopProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(topic: nil) ⇒ StopProps
Returns a new instance of StopProps.
8 9 10 11 |
# File 'ses_actions/stop_props.rb', line 8 def initialize(topic: nil) @topic = topic Jsii::Type.check_type(@topic, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc25zLklUb3BpYyJ9")), "topic") unless @topic.nil? end |
Instance Attribute Details
#topic ⇒ AWSCDK::SNS::ITopic? (readonly)
The SNS topic to notify when the stop action is taken.
16 17 18 |
# File 'ses_actions/stop_props.rb', line 16 def topic @topic end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'ses_actions/stop_props.rb', line 18 def self.jsii_properties { :topic => "topic", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'ses_actions/stop_props.rb', line 24 def to_jsii result = {} result.merge!({ "topic" => @topic, }) result.compact end |