Class CfnTopicRule.IotEventsActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRule.IotEventsActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRule.IotEventsActionProperty>
- Enclosing interface:
CfnTopicRule.IotEventsActionProperty
@Stability(Stable)
public static final class CfnTopicRule.IotEventsActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRule.IotEventsActionProperty>
A builder for
CfnTopicRule.IotEventsActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnTopicRule.IotEventsActionProperty.getBatchMode()
batchMode
(IResolvable batchMode) Sets the value ofCfnTopicRule.IotEventsActionProperty.getBatchMode()
build()
Builds the configured instance.Sets the value ofCfnTopicRule.IotEventsActionProperty.getInputName()
Sets the value ofCfnTopicRule.IotEventsActionProperty.getMessageId()
Sets the value ofCfnTopicRule.IotEventsActionProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
inputName
Sets the value ofCfnTopicRule.IotEventsActionProperty.getInputName()
- Parameters:
inputName
- The name of the AWS IoT Events input. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnTopicRule.IotEventsActionProperty.getRoleArn()
- Parameters:
roleArn
- The ARN of the role that grants AWS IoT permission to send an input to an AWS IoT Events detector. This parameter is required. ("Action":"iotevents:BatchPutMessage").- Returns:
this
-
batchMode
Sets the value ofCfnTopicRule.IotEventsActionProperty.getBatchMode()
- Parameters:
batchMode
- Whether to process the event actions as a batch. The default value isfalse
. WhenbatchMode
istrue
, you can't specify amessageId
.When
batchMode
istrue
and the rule SQL statement evaluates to an Array, each Array element is treated as a separate message when Events by callingBatchPutMessage
. The resulting array can't have more than 10 messages.- Returns:
this
-
batchMode
@Stability(Stable) public CfnTopicRule.IotEventsActionProperty.Builder batchMode(IResolvable batchMode) Sets the value ofCfnTopicRule.IotEventsActionProperty.getBatchMode()
- Parameters:
batchMode
- Whether to process the event actions as a batch. The default value isfalse
. WhenbatchMode
istrue
, you can't specify amessageId
.When
batchMode
istrue
and the rule SQL statement evaluates to an Array, each Array element is treated as a separate message when Events by callingBatchPutMessage
. The resulting array can't have more than 10 messages.- Returns:
this
-
messageId
Sets the value ofCfnTopicRule.IotEventsActionProperty.getMessageId()
- Parameters:
messageId
- The ID of the message. The defaultmessageId
is a new UUID value. WhenbatchMode
istrue
, you can't specify amessageId
--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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTopicRule.IotEventsActionProperty>
- Returns:
- a new instance of
CfnTopicRule.IotEventsActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-