Class: AWSCDK::IoTSiteWise::CfnAssetModel::EnforcedAssetModelInterfaceRelationshipProperty

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

Overview

Contains information about applied interface hierarchy and asset model hierarchy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(interface_asset_model_id: nil, property_mappings: nil) ⇒ EnforcedAssetModelInterfaceRelationshipProperty

Returns a new instance of EnforcedAssetModelInterfaceRelationshipProperty.

Parameters:



1084
1085
1086
1087
1088
1089
# File 'io_t_site_wise/cfn_asset_model.rb', line 1084

def initialize(interface_asset_model_id: nil, property_mappings: nil)
  @interface_asset_model_id = interface_asset_model_id
  Jsii::Type.check_type(@interface_asset_model_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "interfaceAssetModelId") unless @interface_asset_model_id.nil?
  @property_mappings = property_mappings
  Jsii::Type.check_type(@property_mappings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW90c2l0ZXdpc2UuQ2ZuQXNzZXRNb2RlbC5FbmZvcmNlZEFzc2V0TW9kZWxJbnRlcmZhY2VQcm9wZXJ0eU1hcHBpbmdQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "propertyMappings") unless @property_mappings.nil?
end

Instance Attribute Details

#interface_asset_model_idString? (readonly)

The ID of the asset model that has the interface applied to it.



1095
1096
1097
# File 'io_t_site_wise/cfn_asset_model.rb', line 1095

def interface_asset_model_id
  @interface_asset_model_id
end

#property_mappingsAWSCDK::IResolvable, ... (readonly)

A list of property mappings between the interface asset model and the asset model where the interface is applied.



1100
1101
1102
# File 'io_t_site_wise/cfn_asset_model.rb', line 1100

def property_mappings
  @property_mappings
end

Class Method Details

.jsii_propertiesObject



1102
1103
1104
1105
1106
1107
# File 'io_t_site_wise/cfn_asset_model.rb', line 1102

def self.jsii_properties
  {
    :interface_asset_model_id => "interfaceAssetModelId",
    :property_mappings => "propertyMappings",
  }
end

Instance Method Details

#to_jsiiObject



1109
1110
1111
1112
1113
1114
1115
1116
# File 'io_t_site_wise/cfn_asset_model.rb', line 1109

def to_jsii
  result = {}
  result.merge!({
    "interfaceAssetModelId" => @interface_asset_model_id,
    "propertyMappings" => @property_mappings,
  })
  result.compact
end