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
show all
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

Instance Attribute Details

#mqtt_topicString

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.

Returns:

  • (String)

    The MQTT topic of the message.

#payloadTypes::Payload

You can configure the action payload when you publish a message to an AWS IoT Core topic.

Returns:

  • (Types::Payload)

    You can configure the action payload when you publish a message to an AWS IoT Core topic.