Class: AWSCDK::IoT::CfnTopicRule::IotSiteWiseActionProperty

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

Overview

Describes an action to send data from an MQTT message that triggered the rule to AWS IoT SiteWise asset properties.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(put_asset_property_value_entries:, role_arn:) ⇒ IotSiteWiseActionProperty

Returns a new instance of IotSiteWiseActionProperty.

Parameters:



1862
1863
1864
1865
1866
1867
# File 'io_t/cfn_topic_rule.rb', line 1862

def initialize(put_asset_property_value_entries:, role_arn:)
  @put_asset_property_value_entries = put_asset_property_value_entries
  Jsii::Type.check_type(@put_asset_property_value_entries, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW90LkNmblRvcGljUnVsZS5QdXRBc3NldFByb3BlcnR5VmFsdWVFbnRyeVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "putAssetPropertyValueEntries")
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn")
end

Instance Attribute Details

#put_asset_property_value_entriesAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::IoT::CfnTopicRule::PutAssetPropertyValueEntryProperty> (readonly)

A list of asset property value entries.



1873
1874
1875
# File 'io_t/cfn_topic_rule.rb', line 1873

def put_asset_property_value_entries
  @put_asset_property_value_entries
end

#role_arnString (readonly)

The ARN of the role that grants AWS IoT permission to send an asset property value to AWS IoT SiteWise.

( "Action": "iotsitewise:BatchPutAssetPropertyValue" ). The trust policy can restrict access to specific asset hierarchy paths.



1880
1881
1882
# File 'io_t/cfn_topic_rule.rb', line 1880

def role_arn
  @role_arn
end

Class Method Details

.jsii_propertiesObject



1882
1883
1884
1885
1886
1887
# File 'io_t/cfn_topic_rule.rb', line 1882

def self.jsii_properties
  {
    :put_asset_property_value_entries => "putAssetPropertyValueEntries",
    :role_arn => "roleArn",
  }
end

Instance Method Details

#to_jsiiObject



1889
1890
1891
1892
1893
1894
1895
1896
# File 'io_t/cfn_topic_rule.rb', line 1889

def to_jsii
  result = {}
  result.merge!({
    "putAssetPropertyValueEntries" => @put_asset_property_value_entries,
    "roleArn" => @role_arn,
  })
  result.compact
end