Class: AWSCDK::SESActions::StopProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ses_actions/stop_props.rb

Overview

Construction properties for a stop action.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topic: nil) ⇒ StopProps

Returns a new instance of StopProps.

Parameters:

  • topic (AWSCDK::SNS::ITopic, nil) (defaults to: nil)

    The SNS topic to notify when the stop action is taken.



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

#topicAWSCDK::SNS::ITopic? (readonly)

The SNS topic to notify when the stop action is taken.

Returns:



16
17
18
# File 'ses_actions/stop_props.rb', line 16

def topic
  @topic
end

Class Method Details

.jsii_propertiesObject



18
19
20
21
22
# File 'ses_actions/stop_props.rb', line 18

def self.jsii_properties
  {
    :topic => "topic",
  }
end

Instance Method Details

#to_jsiiObject



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