@Generated(value="jsii-pacmak/1.78.1 (build 878761e)", date="2023-04-17T22:38:13.260Z") @Stability(value=Experimental) public interface IotEventsPutMessageActionProps extends software.amazon.jsii.JsiiSerializable, CommonActionProps
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
IotEventsPutMessageActionProps.Builder
A builder for
IotEventsPutMessageActionProps |
static class |
IotEventsPutMessageActionProps.Jsii$Proxy
An implementation for
IotEventsPutMessageActionProps |
| Modifier and Type | Method and Description |
|---|---|
static IotEventsPutMessageActionProps.Builder |
builder() |
default Boolean |
getBatchMode()
(experimental) Whether to process the event actions as a batch.
|
default String |
getMessageId()
(experimental) The ID of the message.
|
getRole@Stability(value=Experimental) @Nullable default Boolean getBatchMode()
When batchMode is true, you can't specify a messageId.
When batchMode is true and the rule SQL statement evaluates to an Array, each Array element is treated as a separate message when Events by calling BatchPutMessage. The resulting array can't have more than 10 messages.
Default: false
@Stability(value=Experimental) @Nullable default String getMessageId()
When batchMode is true, you can't specify a messageId--a new UUID value will be assigned. Assign a value to this property to ensure that only one input (message) with a given messageId will be processed by an AWS IoT Events detector.
Default: - none -- a new UUID value will be assigned
@Stability(value=Experimental) static IotEventsPutMessageActionProps.Builder builder()
builder in interface CommonActionPropsIotEventsPutMessageActionProps.Builder of IotEventsPutMessageActionPropsCopyright © 2023. All rights reserved.