Class: AWSCDK::IoTSiteWise::CfnComputationModel::AssetPropertyBindingValueProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_site_wise/cfn_computation_model.rb

Overview

Represents a data binding value referencing a specific asset property.

It's used to bind computation model variables to actual asset property values for processing.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(asset_id:, property_id:) ⇒ AssetPropertyBindingValueProperty

Returns a new instance of AssetPropertyBindingValueProperty.

Parameters:

  • asset_id (String)

    The ID of the asset containing the property.

  • property_id (String)

    The ID of the property within the asset.



695
696
697
698
699
700
# File 'io_t_site_wise/cfn_computation_model.rb', line 695

def initialize(asset_id:, property_id:)
  @asset_id = asset_id
  Jsii::Type.check_type(@asset_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "assetId")
  @property_id = property_id
  Jsii::Type.check_type(@property_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "propertyId")
end

Instance Attribute Details

#asset_idString (readonly)

The ID of the asset containing the property.

This identifies the specific asset instance's property value used in the computation model.



708
709
710
# File 'io_t_site_wise/cfn_computation_model.rb', line 708

def asset_id
  @asset_id
end

#property_idString (readonly)

The ID of the property within the asset.

This identifies the specific property's value used in the computation model.



715
716
717
# File 'io_t_site_wise/cfn_computation_model.rb', line 715

def property_id
  @property_id
end

Class Method Details

.jsii_propertiesObject



717
718
719
720
721
722
# File 'io_t_site_wise/cfn_computation_model.rb', line 717

def self.jsii_properties
  {
    :asset_id => "assetId",
    :property_id => "propertyId",
  }
end

Instance Method Details

#to_jsiiObject



724
725
726
727
728
729
730
731
# File 'io_t_site_wise/cfn_computation_model.rb', line 724

def to_jsii
  result = {}
  result.merge!({
    "assetId" => @asset_id,
    "propertyId" => @property_id,
  })
  result.compact
end