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.119.0 (build 1634eac)",
date="2025-11-13T16:10:18.798Z")
@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();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forIotEventsPutMessageAction.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.iot.alpha.IAction
IAction.Jsii$Default, IAction.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionIotEventsPutMessageAction(IInput input) IotEventsPutMessageAction(IInput input, IotEventsPutMessageActionProps props) protectedIotEventsPutMessageAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedIotEventsPutMessageAction(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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
- Parameters:
input- The IoT Events input to put messages. This parameter is required.
-