Class: AWSCDK::IoTTwinMaker::CfnComponentType::FunctionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTTwinMaker::CfnComponentType::FunctionProperty
- Defined in:
- io_t_twin_maker/cfn_component_type.rb
Overview
The function body.
Instance Attribute Summary collapse
-
#implemented_by ⇒ AWSCDK::IResolvable, ...
readonly
The data connector.
-
#required_properties ⇒ Array<String>?
readonly
The required properties of the function.
-
#scope ⇒ String?
readonly
The scope of the function.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(implemented_by: nil, required_properties: nil, scope: nil) ⇒ FunctionProperty
constructor
A new instance of FunctionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(implemented_by: nil, required_properties: nil, scope: nil) ⇒ FunctionProperty
Returns a new instance of FunctionProperty.
1004 1005 1006 1007 1008 1009 1010 1011 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 1004 def initialize(implemented_by: nil, required_properties: nil, scope: nil) @implemented_by = implemented_by.is_a?(Hash) ? ::AWSCDK::IoTTwinMaker::CfnComponentType::DataConnectorProperty.new(**implemented_by.transform_keys(&:to_sym)) : implemented_by Jsii::Type.check_type(@implemented_by, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R0d2lubWFrZXIuQ2ZuQ29tcG9uZW50VHlwZS5EYXRhQ29ubmVjdG9yUHJvcGVydHkifV19fQ==")), "implementedBy") unless @implemented_by.nil? @required_properties = required_properties Jsii::Type.check_type(@required_properties, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "requiredProperties") unless @required_properties.nil? @scope = scope Jsii::Type.check_type(@scope, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scope") unless @scope.nil? end |
Instance Attribute Details
#implemented_by ⇒ AWSCDK::IResolvable, ... (readonly)
The data connector.
1017 1018 1019 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 1017 def implemented_by @implemented_by end |
#required_properties ⇒ Array<String>? (readonly)
The required properties of the function.
1022 1023 1024 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 1022 def required_properties @required_properties end |
#scope ⇒ String? (readonly)
The scope of the function.
1027 1028 1029 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 1027 def scope @scope end |
Class Method Details
.jsii_properties ⇒ Object
1029 1030 1031 1032 1033 1034 1035 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 1029 def self.jsii_properties { :implemented_by => "implementedBy", :required_properties => "requiredProperties", :scope => "scope", } end |
Instance Method Details
#to_jsii ⇒ Object
1037 1038 1039 1040 1041 1042 1043 1044 1045 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 1037 def to_jsii result = {} result.merge!({ "implementedBy" => @implemented_by, "requiredProperties" => @required_properties, "scope" => @scope, }) result.compact end |