amazonka-iot-dataplane-1.4.0: Amazon IoT Data Plane SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.IoTDataPlane.Publish

Contents

Description

Publishes state information.

For more information, see HTTP Protocol in the AWS IoT Developer Guide.

Synopsis

Creating a Request

publish Source

Arguments

:: Text

pTopic

-> Publish 

Creates a value of Publish with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

pPayload :: Lens' Publish (Maybe (HashMap Text Value)) Source

The state information, in JSON format.

pQos :: Lens' Publish (Maybe Natural) Source

The Quality of Service (QoS) level.

pTopic :: Lens' Publish Text Source

The name of the MQTT topic.

Destructuring the Response

publishResponse :: PublishResponse Source

Creates a value of PublishResponse with the minimum fields required to make a request.