class Aws::IoTDataPlane::Types::PublishRequest

The input for the Publish operation.

@note When making an API call, you may pass PublishRequest

data as a hash:

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

@!attribute [rw] topic

The name of the MQTT topic.
@return [String]

@!attribute [rw] qos

The Quality of Service (QoS) level.
@return [Integer]

@!attribute [rw] retain

A Boolean value that determines whether to set the RETAIN flag when
the message is published.

Setting the RETAIN flag causes the message to be retained and sent
to new subscribers to the topic.

Valid values: `true` \| `false`

Default value: `false`
@return [Boolean]

@!attribute [rw] payload

The message body. MQTT accepts text, binary, and empty (null)
message payloads.

Publishing an empty (null) payload with **retain** = `true` deletes
the retained message identified by **topic** from IoT Core.
@return [String]

Constants

SENSITIVE