Class: AWSCDK::IoT::CfnTopicRule::PutAssetPropertyValueEntryProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_topic_rule.rb

Overview

An asset property value entry containing the following information.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(property_values:, asset_id: nil, entry_id: nil, property_alias: nil, property_id: nil) ⇒ PutAssetPropertyValueEntryProperty

Returns a new instance of PutAssetPropertyValueEntryProperty.

Parameters:

  • property_values (AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::IoT::CfnTopicRule::AssetPropertyValueProperty>)

    A list of property values to insert that each contain timestamp, quality, and value (TQV) information.

  • asset_id (String, nil) (defaults to: nil)

    The ID of the AWS IoT SiteWise asset.

  • entry_id (String, nil) (defaults to: nil)

    Optional.

  • property_alias (String, nil) (defaults to: nil)

    The name of the property alias associated with your asset property.

  • property_id (String, nil) (defaults to: nil)

    The ID of the asset's property.



2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
# File 'io_t/cfn_topic_rule.rb', line 2282

def initialize(property_values:, asset_id: nil, entry_id: nil, property_alias: nil, property_id: nil)
  @property_values = property_values
  Jsii::Type.check_type(@property_values, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW90LkNmblRvcGljUnVsZS5Bc3NldFByb3BlcnR5VmFsdWVQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "propertyValues")
  @asset_id = asset_id
  Jsii::Type.check_type(@asset_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "assetId") unless @asset_id.nil?
  @entry_id = entry_id
  Jsii::Type.check_type(@entry_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "entryId") unless @entry_id.nil?
  @property_alias = property_alias
  Jsii::Type.check_type(@property_alias, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "propertyAlias") unless @property_alias.nil?
  @property_id = property_id
  Jsii::Type.check_type(@property_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "propertyId") unless @property_id.nil?
end

Instance Attribute Details

#asset_idString? (readonly)

The ID of the AWS IoT SiteWise asset.

You must specify either a property_alias or both an alias_id and a property_id . Accepts substitution templates.



2306
2307
2308
# File 'io_t/cfn_topic_rule.rb', line 2306

def asset_id
  @asset_id
end

#entry_idString? (readonly)

Optional.

A unique identifier for this entry that you can define to better track which message caused an error in case of failure. Accepts substitution templates. Defaults to a new UUID.



2313
2314
2315
# File 'io_t/cfn_topic_rule.rb', line 2313

def entry_id
  @entry_id
end

#property_aliasString? (readonly)

The name of the property alias associated with your asset property.

You must specify either a property_alias or both an alias_id and a property_id . Accepts substitution templates.



2320
2321
2322
# File 'io_t/cfn_topic_rule.rb', line 2320

def property_alias
  @property_alias
end

#property_idString? (readonly)

The ID of the asset's property.

You must specify either a property_alias or both an alias_id and a property_id . Accepts substitution templates.



2327
2328
2329
# File 'io_t/cfn_topic_rule.rb', line 2327

def property_id
  @property_id
end

#property_valuesAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::IoT::CfnTopicRule::AssetPropertyValueProperty> (readonly)

A list of property values to insert that each contain timestamp, quality, and value (TQV) information.



2299
2300
2301
# File 'io_t/cfn_topic_rule.rb', line 2299

def property_values
  @property_values
end

Class Method Details

.jsii_propertiesObject



2329
2330
2331
2332
2333
2334
2335
2336
2337
# File 'io_t/cfn_topic_rule.rb', line 2329

def self.jsii_properties
  {
    :property_values => "propertyValues",
    :asset_id => "assetId",
    :entry_id => "entryId",
    :property_alias => "propertyAlias",
    :property_id => "propertyId",
  }
end

Instance Method Details

#to_jsiiObject



2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
# File 'io_t/cfn_topic_rule.rb', line 2339

def to_jsii
  result = {}
  result.merge!({
    "propertyValues" => @property_values,
    "assetId" => @asset_id,
    "entryId" => @entry_id,
    "propertyAlias" => @property_alias,
    "propertyId" => @property_id,
  })
  result.compact
end