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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-iotdataplane/lib/aws-sdk-iotdataplane/types.rb

Overview

Note:

When making an API call, you may pass PublishRequest data as a 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)


92
93
94
95
96
97
# File 'gems/aws-sdk-iotdataplane/lib/aws-sdk-iotdataplane/types.rb', line 92

class PublishRequest < Struct.new(
  :topic,
  :qos,
  :payload)
  include Aws::Structure
end

#qosInteger

The Quality of Service (QoS) level.

Returns:

  • (Integer)


92
93
94
95
96
97
# File 'gems/aws-sdk-iotdataplane/lib/aws-sdk-iotdataplane/types.rb', line 92

class PublishRequest < Struct.new(
  :topic,
  :qos,
  :payload)
  include Aws::Structure
end

#topicString

The name of the MQTT topic.

Returns:

  • (String)


92
93
94
95
96
97
# File 'gems/aws-sdk-iotdataplane/lib/aws-sdk-iotdataplane/types.rb', line 92

class PublishRequest < Struct.new(
  :topic,
  :qos,
  :payload)
  include Aws::Structure
end