Class IotEventsPutMessageAction

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

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:16.094Z") @Stability(Experimental) public class IotEventsPutMessageAction extends software.amazon.jsii.JsiiObject implements IAction
(experimental) The action to put the message from an MQTT message to the IoT Events input.

Example:

 import software.amazon.awscdk.services.iotevents.alpha.*;
 import software.amazon.awscdk.services.iam.*;
 IRole role;
 Input input = Input.Builder.create(this, "MyInput")
         .attributeJsonPaths(List.of("payload.temperature", "payload.transactionId"))
         .build();
 TopicRule topicRule = TopicRule.Builder.create(this, "TopicRule")
         .sql(IotSql.fromStringAsVer20160323("SELECT * FROM 'device/+/data'"))
         .actions(List.of(
             IotEventsPutMessageAction.Builder.create(input)
                     .batchMode(true) // optional property, default is 'false'
                     .messageId("${payload.transactionId}") // optional property, default is a new UUID
                     .role(role)
                     .build()))
         .build();
 
  • Constructor Details

    • IotEventsPutMessageAction

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

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

      @Stability(Experimental) public IotEventsPutMessageAction(@NotNull IInput input, @Nullable IotEventsPutMessageActionProps props)
      Parameters:
      input - The IoT Events input to put messages. This parameter is required.
      props - Optional properties to not use default.
    • IotEventsPutMessageAction

      @Stability(Experimental) public IotEventsPutMessageAction(@NotNull IInput input)
      Parameters:
      input - The IoT Events input to put messages. This parameter is required.