Show / Hide Table of Contents

Class IotRepublishMqttAction

(experimental) The action to put the record from an MQTT message to republish another MQTT topic.

Inheritance
object
IotRepublishMqttAction
Implements
IAction
Namespace: Amazon.CDK.AWS.IoT.Actions.Alpha
Assembly: Amazon.CDK.AWS.IoT.Actions.Alpha.dll
Syntax (csharp)
public class IotRepublishMqttAction : DeputyBase, IAction
Syntax (vb)
Public Class IotRepublishMqttAction Inherits DeputyBase Implements IAction
Remarks

Stability: Experimental

ExampleMetadata: infused

Examples
new TopicRule(this, "TopicRule", new TopicRuleProps {
                 Sql = IotSql.FromStringAsVer20160323("SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'"),
                 Actions = new [] {
                     new IotRepublishMqttAction("${topic()}/republish", new IotRepublishMqttActionProps {
                         QualityOfService = MqttQualityOfService.AT_LEAST_ONCE
                     }) }
             });

Synopsis

Constructors

IotRepublishMqttAction(string, IIotRepublishMqttActionProps?)

(experimental) The action to put the record from an MQTT message to republish another MQTT topic.

Constructors

IotRepublishMqttAction(string, IIotRepublishMqttActionProps?)

(experimental) The action to put the record from an MQTT message to republish another MQTT topic.

public IotRepublishMqttAction(string topic, IIotRepublishMqttActionProps? props = null)
Parameters
topic string

The MQTT topic to which to republish the message.

props IIotRepublishMqttActionProps

Optional properties to not use default.

Remarks

Stability: Experimental

Implements

IAction
Back to top Generated by DocFX