Class: AWSCDK::AppSync::CfnChannelNamespace::HandlerConfigsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppSync::CfnChannelNamespace::HandlerConfigsProperty
- Defined in:
- app_sync/cfn_channel_namespace.rb
Overview
The HandlerConfigs property type specifies the configuration for the OnPublish and OnSubscribe handlers.
Instance Attribute Summary collapse
-
#on_publish ⇒ AWSCDK::IResolvable, ...
readonly
The configuration for the
OnPublishhandler. -
#on_subscribe ⇒ AWSCDK::IResolvable, ...
readonly
The configuration for the
OnSubscribehandler.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(on_publish: nil, on_subscribe: nil) ⇒ HandlerConfigsProperty
constructor
A new instance of HandlerConfigsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(on_publish: nil, on_subscribe: nil) ⇒ HandlerConfigsProperty
Returns a new instance of HandlerConfigsProperty.
690 691 692 693 694 695 |
# File 'app_sync/cfn_channel_namespace.rb', line 690 def initialize(on_publish: nil, on_subscribe: nil) @on_publish = on_publish.is_a?(Hash) ? ::AWSCDK::AppSync::CfnChannelNamespace::HandlerConfigProperty.new(**on_publish.transform_keys(&:to_sym)) : on_publish Jsii::Type.check_type(@on_publish, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBzeW5jLkNmbkNoYW5uZWxOYW1lc3BhY2UuSGFuZGxlckNvbmZpZ1Byb3BlcnR5In1dfX0=")), "onPublish") unless @on_publish.nil? @on_subscribe = on_subscribe.is_a?(Hash) ? ::AWSCDK::AppSync::CfnChannelNamespace::HandlerConfigProperty.new(**on_subscribe.transform_keys(&:to_sym)) : on_subscribe Jsii::Type.check_type(@on_subscribe, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBzeW5jLkNmbkNoYW5uZWxOYW1lc3BhY2UuSGFuZGxlckNvbmZpZ1Byb3BlcnR5In1dfX0=")), "onSubscribe") unless @on_subscribe.nil? end |
Instance Attribute Details
#on_publish ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration for the OnPublish handler.
701 702 703 |
# File 'app_sync/cfn_channel_namespace.rb', line 701 def on_publish @on_publish end |
#on_subscribe ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration for the OnSubscribe handler.
706 707 708 |
# File 'app_sync/cfn_channel_namespace.rb', line 706 def on_subscribe @on_subscribe end |
Class Method Details
.jsii_properties ⇒ Object
708 709 710 711 712 713 |
# File 'app_sync/cfn_channel_namespace.rb', line 708 def self.jsii_properties { :on_publish => "onPublish", :on_subscribe => "onSubscribe", } end |
Instance Method Details
#to_jsii ⇒ Object
715 716 717 718 719 720 721 722 |
# File 'app_sync/cfn_channel_namespace.rb', line 715 def to_jsii result = {} result.merge!({ "onPublish" => @on_publish, "onSubscribe" => @on_subscribe, }) result.compact end |