Class: AWSCDK::IoTTwinMaker::CfnComponentType::DataConnectorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTTwinMaker::CfnComponentType::DataConnectorProperty
- Defined in:
- io_t_twin_maker/cfn_component_type.rb
Overview
The data connector.
Instance Attribute Summary collapse
-
#is_native ⇒ Boolean, ...
readonly
A boolean value that specifies whether the data connector is native to IoT TwinMaker.
-
#lambda ⇒ AWSCDK::IResolvable, ...
readonly
The Lambda function associated with the data connector.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(is_native: nil, lambda: nil) ⇒ DataConnectorProperty
constructor
A new instance of DataConnectorProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(is_native: nil, lambda: nil) ⇒ DataConnectorProperty
Returns a new instance of DataConnectorProperty.
729 730 731 732 733 734 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 729 def initialize(is_native: nil, lambda: nil) @is_native = is_native Jsii::Type.check_type(@is_native, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "isNative") unless @is_native.nil? @lambda = lambda.is_a?(Hash) ? ::AWSCDK::IoTTwinMaker::CfnComponentType::LambdaFunctionProperty.new(**lambda.transform_keys(&:to_sym)) : lambda Jsii::Type.check_type(@lambda, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R0d2lubWFrZXIuQ2ZuQ29tcG9uZW50VHlwZS5MYW1iZGFGdW5jdGlvblByb3BlcnR5In1dfX0=")), "lambda") unless @lambda.nil? end |
Instance Attribute Details
#is_native ⇒ Boolean, ... (readonly)
A boolean value that specifies whether the data connector is native to IoT TwinMaker.
740 741 742 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 740 def is_native @is_native end |
#lambda ⇒ AWSCDK::IResolvable, ... (readonly)
The Lambda function associated with the data connector.
745 746 747 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 745 def lambda @lambda end |
Class Method Details
.jsii_properties ⇒ Object
747 748 749 750 751 752 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 747 def self.jsii_properties { :is_native => "isNative", :lambda => "lambda", } end |
Instance Method Details
#to_jsii ⇒ Object
754 755 756 757 758 759 760 761 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 754 def to_jsii result = {} result.merge!({ "isNative" => @is_native, "lambda" => @lambda, }) result.compact end |