Class IotRepublishMqttAction

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.iot.actions.alpha.IotRepublishMqttAction
All Implemented Interfaces:
IAction, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-06T23:25:19.323Z") @Stability(Experimental) public class IotRepublishMqttAction extends software.amazon.jsii.JsiiObject implements IAction
(experimental) The action to put the record from an MQTT message to republish another MQTT topic.

Example:

 TopicRule.Builder.create(this, "TopicRule")
         .sql(IotSql.fromStringAsVer20160323("SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'"))
         .actions(List.of(
             IotRepublishMqttAction.Builder.create("${topic()}/republish")
                     .qualityOfService(MqttQualityOfService.AT_LEAST_ONCE)
                     .build()))
         .build();
 
  • Constructor Details

    • IotRepublishMqttAction

      protected IotRepublishMqttAction(software.amazon.jsii.JsiiObjectRef objRef)
    • IotRepublishMqttAction

      protected IotRepublishMqttAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • IotRepublishMqttAction

      @Stability(Experimental) public IotRepublishMqttAction(@NotNull String topic, @Nullable IotRepublishMqttActionProps props)
      Parameters:
      topic - The MQTT topic to which to republish the message. This parameter is required.
      props - Optional properties to not use default.
    • IotRepublishMqttAction

      @Stability(Experimental) public IotRepublishMqttAction(@NotNull String topic)
      Parameters:
      topic - The MQTT topic to which to republish the message. This parameter is required.