Class: AWSCDK::AppSync::CfnChannelNamespace::HandlerConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppSync::CfnChannelNamespace::HandlerConfigProperty
- Defined in:
- app_sync/cfn_channel_namespace.rb
Overview
The HandlerConfig property type specifies the configuration for the handler.
Instance Attribute Summary collapse
-
#behavior ⇒ String
readonly
The behavior for the handler.
-
#integration ⇒ AWSCDK::IResolvable, AWSCDK::AppSync::CfnChannelNamespace::IntegrationProperty
readonly
The integration data source configuration for the handler.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(behavior:, integration:) ⇒ HandlerConfigProperty
constructor
A new instance of HandlerConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(behavior:, integration:) ⇒ HandlerConfigProperty
Returns a new instance of HandlerConfigProperty.
647 648 649 650 651 652 |
# File 'app_sync/cfn_channel_namespace.rb', line 647 def initialize(behavior:, integration:) @behavior = behavior Jsii::Type.check_type(@behavior, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "behavior") @integration = integration.is_a?(Hash) ? ::AWSCDK::AppSync::CfnChannelNamespace::IntegrationProperty.new(**integration.transform_keys(&:to_sym)) : integration Jsii::Type.check_type(@integration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBzeW5jLkNmbkNoYW5uZWxOYW1lc3BhY2UuSW50ZWdyYXRpb25Qcm9wZXJ0eSJ9XX19")), "integration") end |
Instance Attribute Details
#behavior ⇒ String (readonly)
The behavior for the handler.
658 659 660 |
# File 'app_sync/cfn_channel_namespace.rb', line 658 def behavior @behavior end |
#integration ⇒ AWSCDK::IResolvable, AWSCDK::AppSync::CfnChannelNamespace::IntegrationProperty (readonly)
The integration data source configuration for the handler.
663 664 665 |
# File 'app_sync/cfn_channel_namespace.rb', line 663 def integration @integration end |
Class Method Details
.jsii_properties ⇒ Object
665 666 667 668 669 670 |
# File 'app_sync/cfn_channel_namespace.rb', line 665 def self.jsii_properties { :behavior => "behavior", :integration => "integration", } end |
Instance Method Details
#to_jsii ⇒ Object
672 673 674 675 676 677 678 679 |
# File 'app_sync/cfn_channel_namespace.rb', line 672 def to_jsii result = {} result.merge!({ "behavior" => @behavior, "integration" => @integration, }) result.compact end |