CmdID / aws / aws iot-data
aws iot-data publish
Publishes an MQTT message. AWS CLI reference
10 options Its page in the AWS CLI reference
Options
--content-typeA UTF-8 encoded string that describes the content of the publishing message.--correlation-dataThe base64-encoded binary data used by the sender of the request message to identify which request the response message is for when it's received.--message-expiryA user-defined integer value that represents the message expiry interval in seconds.--payload-format-indicatorAn Enum string value that indicates whether the payload is formatted as UTF-8.--payloadThe message body.--qosThe Quality of Service (QoS) level.--response-topicA UTF-8 encoded string that's used as the topic name for a response message.--retainA Boolean value that determines whether to set the RETAIN flag when the message is published.--topicThe name of the MQTT topic.--user-propertiesA JSON string that contains an array of JSON objects.