Class: AWSCDK::AppSync::CfnChannelNamespace::IntegrationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppSync::CfnChannelNamespace::IntegrationProperty
- Defined in:
- app_sync/cfn_channel_namespace.rb
Overview
The Integration property type specifies the integration data source configuration for the handler.
Instance Attribute Summary collapse
-
#data_source_name ⇒ String
readonly
The unique name of the data source that has been configured on the API.
-
#lambda_config ⇒ AWSCDK::IResolvable, ...
readonly
The configuration for a Lambda data source.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data_source_name:, lambda_config: nil) ⇒ IntegrationProperty
constructor
A new instance of IntegrationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(data_source_name:, lambda_config: nil) ⇒ IntegrationProperty
Returns a new instance of IntegrationProperty.
733 734 735 736 737 738 |
# File 'app_sync/cfn_channel_namespace.rb', line 733 def initialize(data_source_name:, lambda_config: nil) @data_source_name = data_source_name Jsii::Type.check_type(@data_source_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dataSourceName") @lambda_config = lambda_config.is_a?(Hash) ? ::AWSCDK::AppSync::CfnChannelNamespace::LambdaConfigProperty.new(**lambda_config.transform_keys(&:to_sym)) : lambda_config Jsii::Type.check_type(@lambda_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBzeW5jLkNmbkNoYW5uZWxOYW1lc3BhY2UuTGFtYmRhQ29uZmlnUHJvcGVydHkifV19fQ==")), "lambdaConfig") unless @lambda_config.nil? end |
Instance Attribute Details
#data_source_name ⇒ String (readonly)
The unique name of the data source that has been configured on the API.
744 745 746 |
# File 'app_sync/cfn_channel_namespace.rb', line 744 def data_source_name @data_source_name end |
#lambda_config ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration for a Lambda data source.
749 750 751 |
# File 'app_sync/cfn_channel_namespace.rb', line 749 def lambda_config @lambda_config end |
Class Method Details
.jsii_properties ⇒ Object
751 752 753 754 755 756 |
# File 'app_sync/cfn_channel_namespace.rb', line 751 def self.jsii_properties { :data_source_name => "dataSourceName", :lambda_config => "lambdaConfig", } end |
Instance Method Details
#to_jsii ⇒ Object
758 759 760 761 762 763 764 765 |
# File 'app_sync/cfn_channel_namespace.rb', line 758 def to_jsii result = {} result.merge!({ "dataSourceName" => @data_source_name, "lambdaConfig" => @lambda_config, }) result.compact end |