You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::IoTEvents::Types::IotTopicPublishAction
- Inherits:
-
Struct
- Object
- Struct
- Aws::IoTEvents::Types::IotTopicPublishAction
- Defined in:
- (unknown)
Overview
Note:
When passing IotTopicPublishAction as input to an Aws::Client method, you can use a vanilla Hash:
{
mqtt_topic: "MQTTTopic", # required
payload: {
content_expression: "ContentExpression", # required
type: "STRING", # required, accepts STRING, JSON
},
}
Information required to publish the MQTT message through the AWS IoT message broker.
Returned by:
Instance Attribute Summary collapse
-
#mqtt_topic ⇒ String
The MQTT topic of the message.
-
#payload ⇒ Types::Payload
You can configure the action payload when you publish a message to an AWS IoT Core topic.
Instance Attribute Details
#mqtt_topic ⇒ String
The MQTT topic of the message. You can use a string expression that
includes variables ($variable.<variable-name>
) and input values
($input.<input-name>.<path-to-datum>
) as the topic string.
#payload ⇒ Types::Payload
You can configure the action payload when you publish a message to an AWS IoT Core topic.