Class IotEventsPutMessageAction.Builder
java.lang.Object
software.amazon.awscdk.services.iot.actions.alpha.IotEventsPutMessageAction.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<IotEventsPutMessageAction>
- Enclosing class:
IotEventsPutMessageAction
@Stability(Experimental)
public static final class IotEventsPutMessageAction.Builder
extends Object
implements software.amazon.jsii.Builder<IotEventsPutMessageAction>
(experimental) A fluent builder for
IotEventsPutMessageAction
.-
Method Summary
Modifier and TypeMethodDescription(experimental) Whether to process the event actions as a batch.build()
(experimental) The ID of the message.(experimental) The IAM role that allows access to AWS service.
-
Method Details
-
create
- Parameters:
input
- The IoT Events input to put messages. This parameter is required.- Returns:
- a new instance of
IotEventsPutMessageAction.Builder
.
-
role
(experimental) The IAM role that allows access to AWS service.Default: a new role will be created
- Parameters:
role
- The IAM role that allows access to AWS service. This parameter is required.- Returns:
this
-
batchMode
(experimental) Whether to process the event actions as a batch.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
- Parameters:
batchMode
- Whether to process the event actions as a batch. This parameter is required.- Returns:
this
-
messageId
(experimental) The ID of the message.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
- Parameters:
messageId
- The ID of the message. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<IotEventsPutMessageAction>
- Returns:
- a newly built instance of
IotEventsPutMessageAction
.
-