Class: AWSCDK::IoTTwinMaker::CfnComponentType::PropertyDefinitionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTTwinMaker::CfnComponentType::PropertyDefinitionProperty
- Defined in:
- io_t_twin_maker/cfn_component_type.rb
Overview
PropertyDefinition is an object that maps strings to the property definitions in the component type.
Instance Attribute Summary collapse
-
#configurations ⇒ AWSCDK::IResolvable, ...
readonly
A mapping that specifies configuration information about the property.
-
#data_type ⇒ AWSCDK::IResolvable, ...
readonly
An object that specifies the data type of a property.
-
#default_value ⇒ AWSCDK::IResolvable, ...
readonly
A boolean value that specifies whether the property ID comes from an external data store.
-
#is_external_id ⇒ Boolean, ...
readonly
A Boolean value that specifies whether the property ID comes from an external data source.
-
#is_required_in_entity ⇒ Boolean, ...
readonly
A boolean value that specifies whether the property is required in an entity.
-
#is_stored_externally ⇒ Boolean, ...
readonly
A boolean value that specifies whether the property is stored externally.
-
#is_time_series ⇒ Boolean, ...
readonly
A boolean value that specifies whether the property consists of time series data.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(configurations: nil, data_type: nil, default_value: nil, is_external_id: nil, is_required_in_entity: nil, is_stored_externally: nil, is_time_series: nil) ⇒ PropertyDefinitionProperty
constructor
A new instance of PropertyDefinitionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(configurations: nil, data_type: nil, default_value: nil, is_external_id: nil, is_required_in_entity: nil, is_stored_externally: nil, is_time_series: nil) ⇒ PropertyDefinitionProperty
Returns a new instance of PropertyDefinitionProperty.
1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 1094 def initialize(configurations: nil, data_type: nil, default_value: nil, is_external_id: nil, is_required_in_entity: nil, is_stored_externally: nil, is_time_series: nil) @configurations = configurations Jsii::Type.check_type(@configurations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "configurations") unless @configurations.nil? @data_type = data_type.is_a?(Hash) ? ::AWSCDK::IoTTwinMaker::CfnComponentType::DataTypeProperty.new(**data_type.transform_keys(&:to_sym)) : data_type Jsii::Type.check_type(@data_type, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R0d2lubWFrZXIuQ2ZuQ29tcG9uZW50VHlwZS5EYXRhVHlwZVByb3BlcnR5In1dfX0=")), "dataType") unless @data_type.nil? @default_value = default_value.is_a?(Hash) ? ::AWSCDK::IoTTwinMaker::CfnComponentType::DataValueProperty.new(**default_value.transform_keys(&:to_sym)) : default_value Jsii::Type.check_type(@default_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R0d2lubWFrZXIuQ2ZuQ29tcG9uZW50VHlwZS5EYXRhVmFsdWVQcm9wZXJ0eSJ9XX19")), "defaultValue") unless @default_value.nil? @is_external_id = is_external_id Jsii::Type.check_type(@is_external_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "isExternalId") unless @is_external_id.nil? @is_required_in_entity = is_required_in_entity Jsii::Type.check_type(@is_required_in_entity, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "isRequiredInEntity") unless @is_required_in_entity.nil? @is_stored_externally = is_stored_externally Jsii::Type.check_type(@is_stored_externally, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "isStoredExternally") unless @is_stored_externally.nil? @is_time_series = is_time_series Jsii::Type.check_type(@is_time_series, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "isTimeSeries") unless @is_time_series.nil? end |
Instance Attribute Details
#configurations ⇒ AWSCDK::IResolvable, ... (readonly)
A mapping that specifies configuration information about the property.
1115 1116 1117 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 1115 def configurations @configurations end |
#data_type ⇒ AWSCDK::IResolvable, ... (readonly)
An object that specifies the data type of a property.
1120 1121 1122 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 1120 def data_type @data_type end |
#default_value ⇒ AWSCDK::IResolvable, ... (readonly)
A boolean value that specifies whether the property ID comes from an external data store.
1125 1126 1127 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 1125 def default_value @default_value end |
#is_external_id ⇒ Boolean, ... (readonly)
A Boolean value that specifies whether the property ID comes from an external data source.
1130 1131 1132 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 1130 def is_external_id @is_external_id end |
#is_required_in_entity ⇒ Boolean, ... (readonly)
A boolean value that specifies whether the property is required in an entity.
1135 1136 1137 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 1135 def is_required_in_entity @is_required_in_entity end |
#is_stored_externally ⇒ Boolean, ... (readonly)
A boolean value that specifies whether the property is stored externally.
1140 1141 1142 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 1140 def is_stored_externally @is_stored_externally end |
#is_time_series ⇒ Boolean, ... (readonly)
A boolean value that specifies whether the property consists of time series data.
1145 1146 1147 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 1145 def is_time_series @is_time_series end |
Class Method Details
.jsii_properties ⇒ Object
1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 1147 def self.jsii_properties { :configurations => "configurations", :data_type => "dataType", :default_value => "defaultValue", :is_external_id => "isExternalId", :is_required_in_entity => "isRequiredInEntity", :is_stored_externally => "isStoredExternally", :is_time_series => "isTimeSeries", } end |
Instance Method Details
#to_jsii ⇒ Object
1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 |
# File 'io_t_twin_maker/cfn_component_type.rb', line 1159 def to_jsii result = {} result.merge!({ "configurations" => @configurations, "dataType" => @data_type, "defaultValue" => @default_value, "isExternalId" => @is_external_id, "isRequiredInEntity" => @is_required_in_entity, "isStoredExternally" => @is_stored_externally, "isTimeSeries" => @is_time_series, }) result.compact end |