Class IotRepublishMqttAction
(experimental) The action to put the record from an MQTT message to republish another MQTT topic.
Inheritance
Implements
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
Iot |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Iot |
Used by jsii to construct an instance of this class from DeputyProps |
Iot |
Constructors
IotRepublishMqttAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected IotRepublishMqttAction(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
IotRepublishMqttAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected IotRepublishMqttAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
IotRepublishMqttAction(String, IIotRepublishMqttActionProps)
public IotRepublishMqttAction(string topic, IIotRepublishMqttActionProps props = null)
Parameters
- topic System.
String The MQTT topic to which to republish the message.
- props IIot
Republish Mqtt Action Props Optional properties to not use default.
Remarks
Stability: Experimental