Class: AWSCDK::IoTTwinMaker::CfnEntity::PropertyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTTwinMaker::CfnEntity::PropertyProperty
- Defined in:
- io_t_twin_maker/cfn_entity.rb
Overview
An object that sets information about a property.
Instance Attribute Summary collapse
-
#definition ⇒ Object?
readonly
An object that specifies information about a property.
-
#value ⇒ AWSCDK::IResolvable, ...
readonly
An object that contains information about a value for a time series property.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(definition: nil, value: nil) ⇒ PropertyProperty
constructor
A new instance of PropertyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(definition: nil, value: nil) ⇒ PropertyProperty
Returns a new instance of PropertyProperty.
1249 1250 1251 1252 1253 1254 |
# File 'io_t_twin_maker/cfn_entity.rb', line 1249 def initialize(definition: nil, value: nil) @definition = definition Jsii::Type.check_type(@definition, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "definition") unless @definition.nil? @value = value.is_a?(Hash) ? ::AWSCDK::IoTTwinMaker::CfnEntity::DataValueProperty.new(**value.transform_keys(&:to_sym)) : value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R0d2lubWFrZXIuQ2ZuRW50aXR5LkRhdGFWYWx1ZVByb3BlcnR5In1dfX0=")), "value") unless @value.nil? end |
Instance Attribute Details
#definition ⇒ Object? (readonly)
An object that specifies information about a property.
1260 1261 1262 |
# File 'io_t_twin_maker/cfn_entity.rb', line 1260 def definition @definition end |
#value ⇒ AWSCDK::IResolvable, ... (readonly)
An object that contains information about a value for a time series property.
1265 1266 1267 |
# File 'io_t_twin_maker/cfn_entity.rb', line 1265 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1267 1268 1269 1270 1271 1272 |
# File 'io_t_twin_maker/cfn_entity.rb', line 1267 def self.jsii_properties { :definition => "definition", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1274 1275 1276 1277 1278 1279 1280 1281 |
# File 'io_t_twin_maker/cfn_entity.rb', line 1274 def to_jsii result = {} result.merge!({ "definition" => @definition, "value" => @value, }) result.compact end |