You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::IoTDataPlane::Types::PublishRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing PublishRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  topic: "Topic", # required
  qos: 1,
  payload: "data",
}

The input for the Publish operation.

Instance Attribute Summary collapse

Instance Attribute Details

#payloadString

The state information, in JSON format.

Returns:

  • (String)

    The state information, in JSON format.

#qosInteger

The Quality of Service (QoS) level.

Returns:

  • (Integer)

    The Quality of Service (QoS) level.

#topicString

The name of the MQTT topic.

Returns:

  • (String)

    The name of the MQTT topic.