Class: AWSCDK::IoTAnalytics::CfnPipeline::DeviceShadowEnrichProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTAnalytics::CfnPipeline::DeviceShadowEnrichProperty
- Defined in:
- io_t_analytics/cfn_pipeline.rb
Overview
An activity that adds information from the AWS IoT Device Shadows service to a message.
Instance Attribute Summary collapse
-
#_next ⇒ String?
readonly
The next activity in the pipeline.
-
#attribute ⇒ String
readonly
The name of the attribute that is added to the message.
-
#name ⇒ String
readonly
The name of the 'deviceShadowEnrich' activity.
-
#role_arn ⇒ String
readonly
The ARN of the role that allows access to the device's shadow.
-
#thing_name ⇒ String
readonly
The name of the IoT device whose shadow information is added to the message.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attribute:, name:, role_arn:, thing_name:, _next: nil) ⇒ DeviceShadowEnrichProperty
constructor
A new instance of DeviceShadowEnrichProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(attribute:, name:, role_arn:, thing_name:, _next: nil) ⇒ DeviceShadowEnrichProperty
Returns a new instance of DeviceShadowEnrichProperty.
907 908 909 910 911 912 913 914 915 916 917 918 |
# File 'io_t_analytics/cfn_pipeline.rb', line 907 def initialize(attribute:, name:, role_arn:, thing_name:, _next: nil) @attribute = attribute Jsii::Type.check_type(@attribute, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attribute") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") @thing_name = thing_name Jsii::Type.check_type(@thing_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "thingName") @_next = _next Jsii::Type.check_type(@_next, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "next") unless @_next.nil? end |
Instance Attribute Details
#_next ⇒ String? (readonly)
The next activity in the pipeline.
944 945 946 |
# File 'io_t_analytics/cfn_pipeline.rb', line 944 def _next @_next end |
#attribute ⇒ String (readonly)
The name of the attribute that is added to the message.
924 925 926 |
# File 'io_t_analytics/cfn_pipeline.rb', line 924 def attribute @attribute end |
#name ⇒ String (readonly)
The name of the 'deviceShadowEnrich' activity.
929 930 931 |
# File 'io_t_analytics/cfn_pipeline.rb', line 929 def name @name end |
#role_arn ⇒ String (readonly)
The ARN of the role that allows access to the device's shadow.
934 935 936 |
# File 'io_t_analytics/cfn_pipeline.rb', line 934 def role_arn @role_arn end |
#thing_name ⇒ String (readonly)
The name of the IoT device whose shadow information is added to the message.
939 940 941 |
# File 'io_t_analytics/cfn_pipeline.rb', line 939 def thing_name @thing_name end |
Class Method Details
.jsii_properties ⇒ Object
946 947 948 949 950 951 952 953 954 |
# File 'io_t_analytics/cfn_pipeline.rb', line 946 def self.jsii_properties { :attribute => "attribute", :name => "name", :role_arn => "roleArn", :thing_name => "thingName", :_next => "next", } end |
Instance Method Details
#to_jsii ⇒ Object
956 957 958 959 960 961 962 963 964 965 966 |
# File 'io_t_analytics/cfn_pipeline.rb', line 956 def to_jsii result = {} result.merge!({ "attribute" => @attribute, "name" => @name, "roleArn" => @role_arn, "thingName" => @thing_name, "next" => @_next, }) result.compact end |