Class: AWSCDK::IoTTwinMaker::CfnEntity::PropertyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_twin_maker/cfn_entity.rb

Overview

An object that sets information about a property.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(definition: nil, value: nil) ⇒ PropertyProperty

Returns a new instance of PropertyProperty.

Parameters:



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

#definitionObject? (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

#valueAWSCDK::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_propertiesObject



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_jsiiObject



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