Class: AWSCDK::IoT::CfnTopicRule::IotSiteWiseActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnTopicRule::IotSiteWiseActionProperty
- 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
-
#put_asset_property_value_entries ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::IoT::CfnTopicRule::PutAssetPropertyValueEntryProperty>
readonly
A list of asset property value entries.
-
#role_arn ⇒ String
readonly
The ARN of the role that grants AWS IoT permission to send an asset property value to AWS IoT SiteWise.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(put_asset_property_value_entries:, role_arn:) ⇒ IotSiteWiseActionProperty
constructor
A new instance of IotSiteWiseActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(put_asset_property_value_entries:, role_arn:) ⇒ IotSiteWiseActionProperty
Returns a new instance of IotSiteWiseActionProperty.
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_entries ⇒ AWSCDK::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_arn ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |