Class: AWSCDK::IoTEvents::CfnInput::InputDefinitionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTEvents::CfnInput::InputDefinitionProperty
- Defined in:
- io_t_events/cfn_input.rb
Overview
The definition of the input.
Instance Attribute Summary collapse
-
#attributes ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::IoTEvents::CfnInput::AttributeProperty>
readonly
The attributes from the JSON payload that are made available by the input.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes:) ⇒ InputDefinitionProperty
constructor
A new instance of InputDefinitionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(attributes:) ⇒ InputDefinitionProperty
Returns a new instance of InputDefinitionProperty.
603 604 605 606 |
# File 'io_t_events/cfn_input.rb', line 603 def initialize(attributes:) @attributes = attributes Jsii::Type.check_type(@attributes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW90ZXZlbnRzLkNmbklucHV0LkF0dHJpYnV0ZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "attributes") end |
Instance Attribute Details
#attributes ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::IoTEvents::CfnInput::AttributeProperty> (readonly)
The attributes from the JSON payload that are made available by the input.
Inputs are derived from messages sent to the AWS IoT Events system using BatchPutMessage . Each such message contains a JSON payload, and those attributes (and their paired values) specified here are available for use in the condition expressions used by detectors that monitor this input.
614 615 616 |
# File 'io_t_events/cfn_input.rb', line 614 def attributes @attributes end |
Class Method Details
.jsii_properties ⇒ Object
616 617 618 619 620 |
# File 'io_t_events/cfn_input.rb', line 616 def self.jsii_properties { :attributes => "attributes", } end |
Instance Method Details
#to_jsii ⇒ Object
622 623 624 625 626 627 628 |
# File 'io_t_events/cfn_input.rb', line 622 def to_jsii result = {} result.merge!({ "attributes" => @attributes, }) result.compact end |