Class: AWSCDK::SAM::CfnFunction::SNSEventProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SAM::CfnFunction::SNSEventProperty
- Defined in:
- sam/cfn_function.rb
Overview
Instance Attribute Summary collapse
- #topic ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(topic:) ⇒ SNSEventProperty
constructor
A new instance of SNSEventProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(topic:) ⇒ SNSEventProperty
Returns a new instance of SNSEventProperty.
3177 3178 3179 3180 |
# File 'sam/cfn_function.rb', line 3177 def initialize(topic:) @topic = topic Jsii::Type.check_type(@topic, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "topic") end |
Instance Attribute Details
#topic ⇒ String (readonly)
3184 3185 3186 |
# File 'sam/cfn_function.rb', line 3184 def topic @topic end |
Class Method Details
.jsii_properties ⇒ Object
3186 3187 3188 3189 3190 |
# File 'sam/cfn_function.rb', line 3186 def self.jsii_properties { :topic => "topic", } end |
Instance Method Details
#to_jsii ⇒ Object
3192 3193 3194 3195 3196 3197 3198 |
# File 'sam/cfn_function.rb', line 3192 def to_jsii result = {} result.merge!({ "topic" => @topic, }) result.compact end |