AWSIoTIotEventsAction
Objective-C
@interface AWSIoTIotEventsAction
Swift
class AWSIoTIotEventsAction
Sends an input to an IoT Events detector.
Required parameters: [inputName, roleArn]
-
Whether to process the event actions as a batch. The default value is
false
.When
batchMode
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 it’s sent to IoT Events by callingBatchPutMessage
. The resulting array can’t have more than 10 messages.Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nullable batchMode;
Swift
var batchMode: NSNumber? { get set }
-
The name of the IoT Events input.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable inputName;
Swift
var inputName: String? { get set }
-
The ID of the message. The default
messageId
is a new UUID value.When
batchMode
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 IoT Events detector.Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable messageId;
Swift
var messageId: String? { get set }
-
The ARN of the role that grants IoT permission to send an input to an IoT Events detector. (“Action”:“iotevents:BatchPutMessage”).
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable roleArn;
Swift
var roleArn: String? { get set }