aws-sdk-iotevents 1.10.0 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,6 +19,7 @@ module Aws::IoTEvents
19
19
  Attributes = Shapes::ListShape.new(name: 'Attributes')
20
20
  ClearTimerAction = Shapes::StructureShape.new(name: 'ClearTimerAction')
21
21
  Condition = Shapes::StringShape.new(name: 'Condition')
22
+ ContentExpression = Shapes::StringShape.new(name: 'ContentExpression')
22
23
  CreateDetectorModelRequest = Shapes::StructureShape.new(name: 'CreateDetectorModelRequest')
23
24
  CreateDetectorModelResponse = Shapes::StructureShape.new(name: 'CreateDetectorModelResponse')
24
25
  CreateInputRequest = Shapes::StructureShape.new(name: 'CreateInputRequest')
@@ -48,6 +49,13 @@ module Aws::IoTEvents
48
49
  DetectorModelVersionStatus = Shapes::StringShape.new(name: 'DetectorModelVersionStatus')
49
50
  DetectorModelVersionSummaries = Shapes::ListShape.new(name: 'DetectorModelVersionSummaries')
50
51
  DetectorModelVersionSummary = Shapes::StructureShape.new(name: 'DetectorModelVersionSummary')
52
+ DynamoDBAction = Shapes::StructureShape.new(name: 'DynamoDBAction')
53
+ DynamoDBv2Action = Shapes::StructureShape.new(name: 'DynamoDBv2Action')
54
+ DynamoKeyField = Shapes::StringShape.new(name: 'DynamoKeyField')
55
+ DynamoKeyType = Shapes::StringShape.new(name: 'DynamoKeyType')
56
+ DynamoKeyValue = Shapes::StringShape.new(name: 'DynamoKeyValue')
57
+ DynamoOperation = Shapes::StringShape.new(name: 'DynamoOperation')
58
+ DynamoTableName = Shapes::StringShape.new(name: 'DynamoTableName')
51
59
  EvaluationMethod = Shapes::StringShape.new(name: 'EvaluationMethod')
52
60
  Event = Shapes::StructureShape.new(name: 'Event')
53
61
  EventName = Shapes::StringShape.new(name: 'EventName')
@@ -87,6 +95,8 @@ module Aws::IoTEvents
87
95
  OnEnterLifecycle = Shapes::StructureShape.new(name: 'OnEnterLifecycle')
88
96
  OnExitLifecycle = Shapes::StructureShape.new(name: 'OnExitLifecycle')
89
97
  OnInputLifecycle = Shapes::StructureShape.new(name: 'OnInputLifecycle')
98
+ Payload = Shapes::StructureShape.new(name: 'Payload')
99
+ PayloadType = Shapes::StringShape.new(name: 'PayloadType')
90
100
  PutLoggingOptionsRequest = Shapes::StructureShape.new(name: 'PutLoggingOptionsRequest')
91
101
  QueueUrl = Shapes::StringShape.new(name: 'QueueUrl')
92
102
  ResetTimerAction = Shapes::StructureShape.new(name: 'ResetTimerAction')
@@ -138,6 +148,8 @@ module Aws::IoTEvents
138
148
  Action.add_member(:iot_events, Shapes::ShapeRef.new(shape: IotEventsAction, location_name: "iotEvents"))
139
149
  Action.add_member(:sqs, Shapes::ShapeRef.new(shape: SqsAction, location_name: "sqs"))
140
150
  Action.add_member(:firehose, Shapes::ShapeRef.new(shape: FirehoseAction, location_name: "firehose"))
151
+ Action.add_member(:dynamo_db, Shapes::ShapeRef.new(shape: DynamoDBAction, location_name: "dynamoDB"))
152
+ Action.add_member(:dynamo_d_bv_2, Shapes::ShapeRef.new(shape: DynamoDBv2Action, location_name: "dynamoDBv2"))
141
153
  Action.struct_class = Types::Action
142
154
 
143
155
  Actions.member = Shapes::ShapeRef.new(shape: Action)
@@ -244,6 +256,22 @@ module Aws::IoTEvents
244
256
  DetectorModelVersionSummary.add_member(:evaluation_method, Shapes::ShapeRef.new(shape: EvaluationMethod, location_name: "evaluationMethod"))
245
257
  DetectorModelVersionSummary.struct_class = Types::DetectorModelVersionSummary
246
258
 
259
+ DynamoDBAction.add_member(:hash_key_type, Shapes::ShapeRef.new(shape: DynamoKeyType, location_name: "hashKeyType"))
260
+ DynamoDBAction.add_member(:hash_key_field, Shapes::ShapeRef.new(shape: DynamoKeyField, required: true, location_name: "hashKeyField"))
261
+ DynamoDBAction.add_member(:hash_key_value, Shapes::ShapeRef.new(shape: DynamoKeyValue, required: true, location_name: "hashKeyValue"))
262
+ DynamoDBAction.add_member(:range_key_type, Shapes::ShapeRef.new(shape: DynamoKeyType, location_name: "rangeKeyType"))
263
+ DynamoDBAction.add_member(:range_key_field, Shapes::ShapeRef.new(shape: DynamoKeyField, location_name: "rangeKeyField"))
264
+ DynamoDBAction.add_member(:range_key_value, Shapes::ShapeRef.new(shape: DynamoKeyValue, location_name: "rangeKeyValue"))
265
+ DynamoDBAction.add_member(:operation, Shapes::ShapeRef.new(shape: DynamoOperation, location_name: "operation"))
266
+ DynamoDBAction.add_member(:payload_field, Shapes::ShapeRef.new(shape: DynamoKeyField, location_name: "payloadField"))
267
+ DynamoDBAction.add_member(:table_name, Shapes::ShapeRef.new(shape: DynamoTableName, required: true, location_name: "tableName"))
268
+ DynamoDBAction.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, location_name: "payload"))
269
+ DynamoDBAction.struct_class = Types::DynamoDBAction
270
+
271
+ DynamoDBv2Action.add_member(:table_name, Shapes::ShapeRef.new(shape: DynamoTableName, required: true, location_name: "tableName"))
272
+ DynamoDBv2Action.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, location_name: "payload"))
273
+ DynamoDBv2Action.struct_class = Types::DynamoDBv2Action
274
+
247
275
  Event.add_member(:event_name, Shapes::ShapeRef.new(shape: EventName, required: true, location_name: "eventName"))
248
276
  Event.add_member(:condition, Shapes::ShapeRef.new(shape: Condition, location_name: "condition"))
249
277
  Event.add_member(:actions, Shapes::ShapeRef.new(shape: Actions, location_name: "actions"))
@@ -253,6 +281,7 @@ module Aws::IoTEvents
253
281
 
254
282
  FirehoseAction.add_member(:delivery_stream_name, Shapes::ShapeRef.new(shape: DeliveryStreamName, required: true, location_name: "deliveryStreamName"))
255
283
  FirehoseAction.add_member(:separator, Shapes::ShapeRef.new(shape: FirehoseSeparator, location_name: "separator"))
284
+ FirehoseAction.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, location_name: "payload"))
256
285
  FirehoseAction.struct_class = Types::FirehoseAction
257
286
 
258
287
  Input.add_member(:input_configuration, Shapes::ShapeRef.new(shape: InputConfiguration, location_name: "inputConfiguration"))
@@ -287,12 +316,15 @@ module Aws::IoTEvents
287
316
  InvalidRequestException.struct_class = Types::InvalidRequestException
288
317
 
289
318
  IotEventsAction.add_member(:input_name, Shapes::ShapeRef.new(shape: InputName, required: true, location_name: "inputName"))
319
+ IotEventsAction.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, location_name: "payload"))
290
320
  IotEventsAction.struct_class = Types::IotEventsAction
291
321
 
292
322
  IotTopicPublishAction.add_member(:mqtt_topic, Shapes::ShapeRef.new(shape: MQTTTopic, required: true, location_name: "mqttTopic"))
323
+ IotTopicPublishAction.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, location_name: "payload"))
293
324
  IotTopicPublishAction.struct_class = Types::IotTopicPublishAction
294
325
 
295
326
  LambdaAction.add_member(:function_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "functionArn"))
327
+ LambdaAction.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, location_name: "payload"))
296
328
  LambdaAction.struct_class = Types::LambdaAction
297
329
 
298
330
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
@@ -345,6 +377,10 @@ module Aws::IoTEvents
345
377
  OnInputLifecycle.add_member(:transition_events, Shapes::ShapeRef.new(shape: TransitionEvents, location_name: "transitionEvents"))
346
378
  OnInputLifecycle.struct_class = Types::OnInputLifecycle
347
379
 
380
+ Payload.add_member(:content_expression, Shapes::ShapeRef.new(shape: ContentExpression, required: true, location_name: "contentExpression"))
381
+ Payload.add_member(:type, Shapes::ShapeRef.new(shape: PayloadType, required: true, location_name: "type"))
382
+ Payload.struct_class = Types::Payload
383
+
348
384
  PutLoggingOptionsRequest.add_member(:logging_options, Shapes::ShapeRef.new(shape: LoggingOptions, required: true, location_name: "loggingOptions"))
349
385
  PutLoggingOptionsRequest.struct_class = Types::PutLoggingOptionsRequest
350
386
 
@@ -363,6 +399,7 @@ module Aws::IoTEvents
363
399
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
364
400
 
365
401
  SNSTopicPublishAction.add_member(:target_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "targetArn"))
402
+ SNSTopicPublishAction.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, location_name: "payload"))
366
403
  SNSTopicPublishAction.struct_class = Types::SNSTopicPublishAction
367
404
 
368
405
  ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
@@ -379,6 +416,7 @@ module Aws::IoTEvents
379
416
 
380
417
  SqsAction.add_member(:queue_url, Shapes::ShapeRef.new(shape: QueueUrl, required: true, location_name: "queueUrl"))
381
418
  SqsAction.add_member(:use_base_64, Shapes::ShapeRef.new(shape: UseBase64, location_name: "useBase64"))
419
+ SqsAction.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, location_name: "payload"))
382
420
  SqsAction.struct_class = Types::SqsAction
383
421
 
384
422
  State.add_member(:state_name, Shapes::ShapeRef.new(shape: StateName, required: true, location_name: "stateName"))
@@ -6,13 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::IoTEvents
9
- # This class provides a resource oriented interface for IoTEvents.
10
- # To create a resource object:
11
- # resource = Aws::IoTEvents::Resource.new(region: 'us-west-2')
12
- # You can supply a client object with custom configuration that will be used for all resource operations.
13
- # If you do not pass +:client+, a default client will be constructed.
14
- # client = Aws::IoTEvents::Client.new(region: 'us-west-2')
15
- # resource = Aws::IoTEvents::Resource.new(client: client)
9
+
16
10
  class Resource
17
11
 
18
12
  # @param options ({})
@@ -20,9 +20,17 @@ module Aws::IoTEvents
20
20
  # },
21
21
  # sns: {
22
22
  # target_arn: "AmazonResourceName", # required
23
+ # payload: {
24
+ # content_expression: "ContentExpression", # required
25
+ # type: "STRING", # required, accepts STRING, JSON
26
+ # },
23
27
  # },
24
28
  # iot_topic_publish: {
25
29
  # mqtt_topic: "MQTTTopic", # required
30
+ # payload: {
31
+ # content_expression: "ContentExpression", # required
32
+ # type: "STRING", # required, accepts STRING, JSON
33
+ # },
26
34
  # },
27
35
  # set_timer: {
28
36
  # timer_name: "TimerName", # required
@@ -37,17 +45,55 @@ module Aws::IoTEvents
37
45
  # },
38
46
  # lambda: {
39
47
  # function_arn: "AmazonResourceName", # required
48
+ # payload: {
49
+ # content_expression: "ContentExpression", # required
50
+ # type: "STRING", # required, accepts STRING, JSON
51
+ # },
40
52
  # },
41
53
  # iot_events: {
42
54
  # input_name: "InputName", # required
55
+ # payload: {
56
+ # content_expression: "ContentExpression", # required
57
+ # type: "STRING", # required, accepts STRING, JSON
58
+ # },
43
59
  # },
44
60
  # sqs: {
45
61
  # queue_url: "QueueUrl", # required
46
62
  # use_base_64: false,
63
+ # payload: {
64
+ # content_expression: "ContentExpression", # required
65
+ # type: "STRING", # required, accepts STRING, JSON
66
+ # },
47
67
  # },
48
68
  # firehose: {
49
69
  # delivery_stream_name: "DeliveryStreamName", # required
50
70
  # separator: "FirehoseSeparator",
71
+ # payload: {
72
+ # content_expression: "ContentExpression", # required
73
+ # type: "STRING", # required, accepts STRING, JSON
74
+ # },
75
+ # },
76
+ # dynamo_db: {
77
+ # hash_key_type: "DynamoKeyType",
78
+ # hash_key_field: "DynamoKeyField", # required
79
+ # hash_key_value: "DynamoKeyValue", # required
80
+ # range_key_type: "DynamoKeyType",
81
+ # range_key_field: "DynamoKeyField",
82
+ # range_key_value: "DynamoKeyValue",
83
+ # operation: "DynamoOperation",
84
+ # payload_field: "DynamoKeyField",
85
+ # table_name: "DynamoTableName", # required
86
+ # payload: {
87
+ # content_expression: "ContentExpression", # required
88
+ # type: "STRING", # required, accepts STRING, JSON
89
+ # },
90
+ # },
91
+ # dynamo_d_bv_2: {
92
+ # table_name: "DynamoTableName", # required
93
+ # payload: {
94
+ # content_expression: "ContentExpression", # required
95
+ # type: "STRING", # required, accepts STRING, JSON
96
+ # },
51
97
  # },
52
98
  # }
53
99
  #
@@ -82,7 +128,7 @@ module Aws::IoTEvents
82
128
  # @return [Types::LambdaAction]
83
129
  #
84
130
  # @!attribute [rw] iot_events
85
- # Sends an AWS IoT Events input, passing in information about the
131
+ # Sends AWS IoT Events input, which passes information about the
86
132
  # detector model instance and the event that triggered the action.
87
133
  # @return [Types::IotEventsAction]
88
134
  #
@@ -97,6 +143,36 @@ module Aws::IoTEvents
97
143
  # delivery stream.
98
144
  # @return [Types::FirehoseAction]
99
145
  #
146
+ # @!attribute [rw] dynamo_db
147
+ # Writes to the DynamoDB table that you created. The default action
148
+ # payload contains all attribute-value pairs that have the information
149
+ # about the detector model instance and the event that triggered the
150
+ # action. You can also customize the [payload][1]. One column of the
151
+ # DynamoDB table receives all attribute-value pairs in the payload
152
+ # that you specify. For more information, see [Actions][2] in *AWS IoT
153
+ # Events Developer Guide*.
154
+ #
155
+ #
156
+ #
157
+ # [1]: https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html
158
+ # [2]: https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html
159
+ # @return [Types::DynamoDBAction]
160
+ #
161
+ # @!attribute [rw] dynamo_d_bv_2
162
+ # Writes to the DynamoDB table that you created. The default action
163
+ # payload contains all attribute-value pairs that have the information
164
+ # about the detector model instance and the event that triggered the
165
+ # action. You can also customize the [payload][1]. A separate column
166
+ # of the DynamoDB table receives one attribute-value pair in the
167
+ # payload that you specify. For more information, see [Actions][2] in
168
+ # *AWS IoT Events Developer Guide*.
169
+ #
170
+ #
171
+ #
172
+ # [1]: https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html
173
+ # [2]: https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html
174
+ # @return [Types::DynamoDBv2Action]
175
+ #
100
176
  class Action < Struct.new(
101
177
  :set_variable,
102
178
  :sns,
@@ -107,7 +183,9 @@ module Aws::IoTEvents
107
183
  :lambda,
108
184
  :iot_events,
109
185
  :sqs,
110
- :firehose)
186
+ :firehose,
187
+ :dynamo_db,
188
+ :dynamo_d_bv_2)
111
189
  include Aws::Structure
112
190
  end
113
191
 
@@ -181,9 +259,17 @@ module Aws::IoTEvents
181
259
  # },
182
260
  # sns: {
183
261
  # target_arn: "AmazonResourceName", # required
262
+ # payload: {
263
+ # content_expression: "ContentExpression", # required
264
+ # type: "STRING", # required, accepts STRING, JSON
265
+ # },
184
266
  # },
185
267
  # iot_topic_publish: {
186
268
  # mqtt_topic: "MQTTTopic", # required
269
+ # payload: {
270
+ # content_expression: "ContentExpression", # required
271
+ # type: "STRING", # required, accepts STRING, JSON
272
+ # },
187
273
  # },
188
274
  # set_timer: {
189
275
  # timer_name: "TimerName", # required
@@ -198,17 +284,55 @@ module Aws::IoTEvents
198
284
  # },
199
285
  # lambda: {
200
286
  # function_arn: "AmazonResourceName", # required
287
+ # payload: {
288
+ # content_expression: "ContentExpression", # required
289
+ # type: "STRING", # required, accepts STRING, JSON
290
+ # },
201
291
  # },
202
292
  # iot_events: {
203
293
  # input_name: "InputName", # required
294
+ # payload: {
295
+ # content_expression: "ContentExpression", # required
296
+ # type: "STRING", # required, accepts STRING, JSON
297
+ # },
204
298
  # },
205
299
  # sqs: {
206
300
  # queue_url: "QueueUrl", # required
207
301
  # use_base_64: false,
302
+ # payload: {
303
+ # content_expression: "ContentExpression", # required
304
+ # type: "STRING", # required, accepts STRING, JSON
305
+ # },
208
306
  # },
209
307
  # firehose: {
210
308
  # delivery_stream_name: "DeliveryStreamName", # required
211
309
  # separator: "FirehoseSeparator",
310
+ # payload: {
311
+ # content_expression: "ContentExpression", # required
312
+ # type: "STRING", # required, accepts STRING, JSON
313
+ # },
314
+ # },
315
+ # dynamo_db: {
316
+ # hash_key_type: "DynamoKeyType",
317
+ # hash_key_field: "DynamoKeyField", # required
318
+ # hash_key_value: "DynamoKeyValue", # required
319
+ # range_key_type: "DynamoKeyType",
320
+ # range_key_field: "DynamoKeyField",
321
+ # range_key_value: "DynamoKeyValue",
322
+ # operation: "DynamoOperation",
323
+ # payload_field: "DynamoKeyField",
324
+ # table_name: "DynamoTableName", # required
325
+ # payload: {
326
+ # content_expression: "ContentExpression", # required
327
+ # type: "STRING", # required, accepts STRING, JSON
328
+ # },
329
+ # },
330
+ # dynamo_d_bv_2: {
331
+ # table_name: "DynamoTableName", # required
332
+ # payload: {
333
+ # content_expression: "ContentExpression", # required
334
+ # type: "STRING", # required, accepts STRING, JSON
335
+ # },
212
336
  # },
213
337
  # },
214
338
  # ],
@@ -226,9 +350,17 @@ module Aws::IoTEvents
226
350
  # },
227
351
  # sns: {
228
352
  # target_arn: "AmazonResourceName", # required
353
+ # payload: {
354
+ # content_expression: "ContentExpression", # required
355
+ # type: "STRING", # required, accepts STRING, JSON
356
+ # },
229
357
  # },
230
358
  # iot_topic_publish: {
231
359
  # mqtt_topic: "MQTTTopic", # required
360
+ # payload: {
361
+ # content_expression: "ContentExpression", # required
362
+ # type: "STRING", # required, accepts STRING, JSON
363
+ # },
232
364
  # },
233
365
  # set_timer: {
234
366
  # timer_name: "TimerName", # required
@@ -243,17 +375,55 @@ module Aws::IoTEvents
243
375
  # },
244
376
  # lambda: {
245
377
  # function_arn: "AmazonResourceName", # required
378
+ # payload: {
379
+ # content_expression: "ContentExpression", # required
380
+ # type: "STRING", # required, accepts STRING, JSON
381
+ # },
246
382
  # },
247
383
  # iot_events: {
248
384
  # input_name: "InputName", # required
385
+ # payload: {
386
+ # content_expression: "ContentExpression", # required
387
+ # type: "STRING", # required, accepts STRING, JSON
388
+ # },
249
389
  # },
250
390
  # sqs: {
251
391
  # queue_url: "QueueUrl", # required
252
392
  # use_base_64: false,
393
+ # payload: {
394
+ # content_expression: "ContentExpression", # required
395
+ # type: "STRING", # required, accepts STRING, JSON
396
+ # },
253
397
  # },
254
398
  # firehose: {
255
399
  # delivery_stream_name: "DeliveryStreamName", # required
256
400
  # separator: "FirehoseSeparator",
401
+ # payload: {
402
+ # content_expression: "ContentExpression", # required
403
+ # type: "STRING", # required, accepts STRING, JSON
404
+ # },
405
+ # },
406
+ # dynamo_db: {
407
+ # hash_key_type: "DynamoKeyType",
408
+ # hash_key_field: "DynamoKeyField", # required
409
+ # hash_key_value: "DynamoKeyValue", # required
410
+ # range_key_type: "DynamoKeyType",
411
+ # range_key_field: "DynamoKeyField",
412
+ # range_key_value: "DynamoKeyValue",
413
+ # operation: "DynamoOperation",
414
+ # payload_field: "DynamoKeyField",
415
+ # table_name: "DynamoTableName", # required
416
+ # payload: {
417
+ # content_expression: "ContentExpression", # required
418
+ # type: "STRING", # required, accepts STRING, JSON
419
+ # },
420
+ # },
421
+ # dynamo_d_bv_2: {
422
+ # table_name: "DynamoTableName", # required
423
+ # payload: {
424
+ # content_expression: "ContentExpression", # required
425
+ # type: "STRING", # required, accepts STRING, JSON
426
+ # },
257
427
  # },
258
428
  # },
259
429
  # ],
@@ -274,9 +444,17 @@ module Aws::IoTEvents
274
444
  # },
275
445
  # sns: {
276
446
  # target_arn: "AmazonResourceName", # required
447
+ # payload: {
448
+ # content_expression: "ContentExpression", # required
449
+ # type: "STRING", # required, accepts STRING, JSON
450
+ # },
277
451
  # },
278
452
  # iot_topic_publish: {
279
453
  # mqtt_topic: "MQTTTopic", # required
454
+ # payload: {
455
+ # content_expression: "ContentExpression", # required
456
+ # type: "STRING", # required, accepts STRING, JSON
457
+ # },
280
458
  # },
281
459
  # set_timer: {
282
460
  # timer_name: "TimerName", # required
@@ -291,17 +469,55 @@ module Aws::IoTEvents
291
469
  # },
292
470
  # lambda: {
293
471
  # function_arn: "AmazonResourceName", # required
472
+ # payload: {
473
+ # content_expression: "ContentExpression", # required
474
+ # type: "STRING", # required, accepts STRING, JSON
475
+ # },
294
476
  # },
295
477
  # iot_events: {
296
478
  # input_name: "InputName", # required
479
+ # payload: {
480
+ # content_expression: "ContentExpression", # required
481
+ # type: "STRING", # required, accepts STRING, JSON
482
+ # },
297
483
  # },
298
484
  # sqs: {
299
485
  # queue_url: "QueueUrl", # required
300
486
  # use_base_64: false,
487
+ # payload: {
488
+ # content_expression: "ContentExpression", # required
489
+ # type: "STRING", # required, accepts STRING, JSON
490
+ # },
301
491
  # },
302
492
  # firehose: {
303
493
  # delivery_stream_name: "DeliveryStreamName", # required
304
494
  # separator: "FirehoseSeparator",
495
+ # payload: {
496
+ # content_expression: "ContentExpression", # required
497
+ # type: "STRING", # required, accepts STRING, JSON
498
+ # },
499
+ # },
500
+ # dynamo_db: {
501
+ # hash_key_type: "DynamoKeyType",
502
+ # hash_key_field: "DynamoKeyField", # required
503
+ # hash_key_value: "DynamoKeyValue", # required
504
+ # range_key_type: "DynamoKeyType",
505
+ # range_key_field: "DynamoKeyField",
506
+ # range_key_value: "DynamoKeyValue",
507
+ # operation: "DynamoOperation",
508
+ # payload_field: "DynamoKeyField",
509
+ # table_name: "DynamoTableName", # required
510
+ # payload: {
511
+ # content_expression: "ContentExpression", # required
512
+ # type: "STRING", # required, accepts STRING, JSON
513
+ # },
514
+ # },
515
+ # dynamo_d_bv_2: {
516
+ # table_name: "DynamoTableName", # required
517
+ # payload: {
518
+ # content_expression: "ContentExpression", # required
519
+ # type: "STRING", # required, accepts STRING, JSON
520
+ # },
305
521
  # },
306
522
  # },
307
523
  # ],
@@ -321,9 +537,17 @@ module Aws::IoTEvents
321
537
  # },
322
538
  # sns: {
323
539
  # target_arn: "AmazonResourceName", # required
540
+ # payload: {
541
+ # content_expression: "ContentExpression", # required
542
+ # type: "STRING", # required, accepts STRING, JSON
543
+ # },
324
544
  # },
325
545
  # iot_topic_publish: {
326
546
  # mqtt_topic: "MQTTTopic", # required
547
+ # payload: {
548
+ # content_expression: "ContentExpression", # required
549
+ # type: "STRING", # required, accepts STRING, JSON
550
+ # },
327
551
  # },
328
552
  # set_timer: {
329
553
  # timer_name: "TimerName", # required
@@ -338,17 +562,55 @@ module Aws::IoTEvents
338
562
  # },
339
563
  # lambda: {
340
564
  # function_arn: "AmazonResourceName", # required
565
+ # payload: {
566
+ # content_expression: "ContentExpression", # required
567
+ # type: "STRING", # required, accepts STRING, JSON
568
+ # },
341
569
  # },
342
570
  # iot_events: {
343
571
  # input_name: "InputName", # required
572
+ # payload: {
573
+ # content_expression: "ContentExpression", # required
574
+ # type: "STRING", # required, accepts STRING, JSON
575
+ # },
344
576
  # },
345
577
  # sqs: {
346
578
  # queue_url: "QueueUrl", # required
347
579
  # use_base_64: false,
580
+ # payload: {
581
+ # content_expression: "ContentExpression", # required
582
+ # type: "STRING", # required, accepts STRING, JSON
583
+ # },
348
584
  # },
349
585
  # firehose: {
350
586
  # delivery_stream_name: "DeliveryStreamName", # required
351
587
  # separator: "FirehoseSeparator",
588
+ # payload: {
589
+ # content_expression: "ContentExpression", # required
590
+ # type: "STRING", # required, accepts STRING, JSON
591
+ # },
592
+ # },
593
+ # dynamo_db: {
594
+ # hash_key_type: "DynamoKeyType",
595
+ # hash_key_field: "DynamoKeyField", # required
596
+ # hash_key_value: "DynamoKeyValue", # required
597
+ # range_key_type: "DynamoKeyType",
598
+ # range_key_field: "DynamoKeyField",
599
+ # range_key_value: "DynamoKeyValue",
600
+ # operation: "DynamoOperation",
601
+ # payload_field: "DynamoKeyField",
602
+ # table_name: "DynamoTableName", # required
603
+ # payload: {
604
+ # content_expression: "ContentExpression", # required
605
+ # type: "STRING", # required, accepts STRING, JSON
606
+ # },
607
+ # },
608
+ # dynamo_d_bv_2: {
609
+ # table_name: "DynamoTableName", # required
610
+ # payload: {
611
+ # content_expression: "ContentExpression", # required
612
+ # type: "STRING", # required, accepts STRING, JSON
613
+ # },
352
614
  # },
353
615
  # },
354
616
  # ],
@@ -663,12 +925,17 @@ module Aws::IoTEvents
663
925
  # @return [String]
664
926
  #
665
927
  # @!attribute [rw] key
666
- # The input attribute key used to identify a device or system to
667
- # create a detector (an instance of the detector model) and then to
668
- # route each input received to the appropriate detector (instance).
669
- # This parameter uses a JSON-path expression in the message payload of
670
- # each input to specify the attribute-value pair that is used to
671
- # identify the device associated with the input.
928
+ # The value used to identify a detector instance. When a device or
929
+ # system sends input, a new detector instance with a unique key value
930
+ # is created. AWS IoT Events can continue to route input to its
931
+ # corresponding detector instance based on this identifying
932
+ # information.
933
+ #
934
+ # This parameter uses a JSON-path expression to select the
935
+ # attribute-value pair in the message payload that is used for
936
+ # identification. To route the message to the correct detector
937
+ # instance, the device must send a message payload that contains the
938
+ # same attribute-value.
672
939
  # @return [String]
673
940
  #
674
941
  # @!attribute [rw] evaluation_method
@@ -712,9 +979,17 @@ module Aws::IoTEvents
712
979
  # },
713
980
  # sns: {
714
981
  # target_arn: "AmazonResourceName", # required
982
+ # payload: {
983
+ # content_expression: "ContentExpression", # required
984
+ # type: "STRING", # required, accepts STRING, JSON
985
+ # },
715
986
  # },
716
987
  # iot_topic_publish: {
717
988
  # mqtt_topic: "MQTTTopic", # required
989
+ # payload: {
990
+ # content_expression: "ContentExpression", # required
991
+ # type: "STRING", # required, accepts STRING, JSON
992
+ # },
718
993
  # },
719
994
  # set_timer: {
720
995
  # timer_name: "TimerName", # required
@@ -729,17 +1004,55 @@ module Aws::IoTEvents
729
1004
  # },
730
1005
  # lambda: {
731
1006
  # function_arn: "AmazonResourceName", # required
1007
+ # payload: {
1008
+ # content_expression: "ContentExpression", # required
1009
+ # type: "STRING", # required, accepts STRING, JSON
1010
+ # },
732
1011
  # },
733
1012
  # iot_events: {
734
1013
  # input_name: "InputName", # required
1014
+ # payload: {
1015
+ # content_expression: "ContentExpression", # required
1016
+ # type: "STRING", # required, accepts STRING, JSON
1017
+ # },
735
1018
  # },
736
1019
  # sqs: {
737
1020
  # queue_url: "QueueUrl", # required
738
1021
  # use_base_64: false,
1022
+ # payload: {
1023
+ # content_expression: "ContentExpression", # required
1024
+ # type: "STRING", # required, accepts STRING, JSON
1025
+ # },
739
1026
  # },
740
1027
  # firehose: {
741
1028
  # delivery_stream_name: "DeliveryStreamName", # required
742
1029
  # separator: "FirehoseSeparator",
1030
+ # payload: {
1031
+ # content_expression: "ContentExpression", # required
1032
+ # type: "STRING", # required, accepts STRING, JSON
1033
+ # },
1034
+ # },
1035
+ # dynamo_db: {
1036
+ # hash_key_type: "DynamoKeyType",
1037
+ # hash_key_field: "DynamoKeyField", # required
1038
+ # hash_key_value: "DynamoKeyValue", # required
1039
+ # range_key_type: "DynamoKeyType",
1040
+ # range_key_field: "DynamoKeyField",
1041
+ # range_key_value: "DynamoKeyValue",
1042
+ # operation: "DynamoOperation",
1043
+ # payload_field: "DynamoKeyField",
1044
+ # table_name: "DynamoTableName", # required
1045
+ # payload: {
1046
+ # content_expression: "ContentExpression", # required
1047
+ # type: "STRING", # required, accepts STRING, JSON
1048
+ # },
1049
+ # },
1050
+ # dynamo_d_bv_2: {
1051
+ # table_name: "DynamoTableName", # required
1052
+ # payload: {
1053
+ # content_expression: "ContentExpression", # required
1054
+ # type: "STRING", # required, accepts STRING, JSON
1055
+ # },
743
1056
  # },
744
1057
  # },
745
1058
  # ],
@@ -757,9 +1070,17 @@ module Aws::IoTEvents
757
1070
  # },
758
1071
  # sns: {
759
1072
  # target_arn: "AmazonResourceName", # required
1073
+ # payload: {
1074
+ # content_expression: "ContentExpression", # required
1075
+ # type: "STRING", # required, accepts STRING, JSON
1076
+ # },
760
1077
  # },
761
1078
  # iot_topic_publish: {
762
1079
  # mqtt_topic: "MQTTTopic", # required
1080
+ # payload: {
1081
+ # content_expression: "ContentExpression", # required
1082
+ # type: "STRING", # required, accepts STRING, JSON
1083
+ # },
763
1084
  # },
764
1085
  # set_timer: {
765
1086
  # timer_name: "TimerName", # required
@@ -774,17 +1095,55 @@ module Aws::IoTEvents
774
1095
  # },
775
1096
  # lambda: {
776
1097
  # function_arn: "AmazonResourceName", # required
1098
+ # payload: {
1099
+ # content_expression: "ContentExpression", # required
1100
+ # type: "STRING", # required, accepts STRING, JSON
1101
+ # },
777
1102
  # },
778
1103
  # iot_events: {
779
1104
  # input_name: "InputName", # required
1105
+ # payload: {
1106
+ # content_expression: "ContentExpression", # required
1107
+ # type: "STRING", # required, accepts STRING, JSON
1108
+ # },
780
1109
  # },
781
1110
  # sqs: {
782
1111
  # queue_url: "QueueUrl", # required
783
1112
  # use_base_64: false,
1113
+ # payload: {
1114
+ # content_expression: "ContentExpression", # required
1115
+ # type: "STRING", # required, accepts STRING, JSON
1116
+ # },
784
1117
  # },
785
1118
  # firehose: {
786
1119
  # delivery_stream_name: "DeliveryStreamName", # required
787
1120
  # separator: "FirehoseSeparator",
1121
+ # payload: {
1122
+ # content_expression: "ContentExpression", # required
1123
+ # type: "STRING", # required, accepts STRING, JSON
1124
+ # },
1125
+ # },
1126
+ # dynamo_db: {
1127
+ # hash_key_type: "DynamoKeyType",
1128
+ # hash_key_field: "DynamoKeyField", # required
1129
+ # hash_key_value: "DynamoKeyValue", # required
1130
+ # range_key_type: "DynamoKeyType",
1131
+ # range_key_field: "DynamoKeyField",
1132
+ # range_key_value: "DynamoKeyValue",
1133
+ # operation: "DynamoOperation",
1134
+ # payload_field: "DynamoKeyField",
1135
+ # table_name: "DynamoTableName", # required
1136
+ # payload: {
1137
+ # content_expression: "ContentExpression", # required
1138
+ # type: "STRING", # required, accepts STRING, JSON
1139
+ # },
1140
+ # },
1141
+ # dynamo_d_bv_2: {
1142
+ # table_name: "DynamoTableName", # required
1143
+ # payload: {
1144
+ # content_expression: "ContentExpression", # required
1145
+ # type: "STRING", # required, accepts STRING, JSON
1146
+ # },
788
1147
  # },
789
1148
  # },
790
1149
  # ],
@@ -805,9 +1164,17 @@ module Aws::IoTEvents
805
1164
  # },
806
1165
  # sns: {
807
1166
  # target_arn: "AmazonResourceName", # required
1167
+ # payload: {
1168
+ # content_expression: "ContentExpression", # required
1169
+ # type: "STRING", # required, accepts STRING, JSON
1170
+ # },
808
1171
  # },
809
1172
  # iot_topic_publish: {
810
1173
  # mqtt_topic: "MQTTTopic", # required
1174
+ # payload: {
1175
+ # content_expression: "ContentExpression", # required
1176
+ # type: "STRING", # required, accepts STRING, JSON
1177
+ # },
811
1178
  # },
812
1179
  # set_timer: {
813
1180
  # timer_name: "TimerName", # required
@@ -822,17 +1189,55 @@ module Aws::IoTEvents
822
1189
  # },
823
1190
  # lambda: {
824
1191
  # function_arn: "AmazonResourceName", # required
1192
+ # payload: {
1193
+ # content_expression: "ContentExpression", # required
1194
+ # type: "STRING", # required, accepts STRING, JSON
1195
+ # },
825
1196
  # },
826
1197
  # iot_events: {
827
1198
  # input_name: "InputName", # required
1199
+ # payload: {
1200
+ # content_expression: "ContentExpression", # required
1201
+ # type: "STRING", # required, accepts STRING, JSON
1202
+ # },
828
1203
  # },
829
1204
  # sqs: {
830
1205
  # queue_url: "QueueUrl", # required
831
1206
  # use_base_64: false,
1207
+ # payload: {
1208
+ # content_expression: "ContentExpression", # required
1209
+ # type: "STRING", # required, accepts STRING, JSON
1210
+ # },
832
1211
  # },
833
1212
  # firehose: {
834
1213
  # delivery_stream_name: "DeliveryStreamName", # required
835
1214
  # separator: "FirehoseSeparator",
1215
+ # payload: {
1216
+ # content_expression: "ContentExpression", # required
1217
+ # type: "STRING", # required, accepts STRING, JSON
1218
+ # },
1219
+ # },
1220
+ # dynamo_db: {
1221
+ # hash_key_type: "DynamoKeyType",
1222
+ # hash_key_field: "DynamoKeyField", # required
1223
+ # hash_key_value: "DynamoKeyValue", # required
1224
+ # range_key_type: "DynamoKeyType",
1225
+ # range_key_field: "DynamoKeyField",
1226
+ # range_key_value: "DynamoKeyValue",
1227
+ # operation: "DynamoOperation",
1228
+ # payload_field: "DynamoKeyField",
1229
+ # table_name: "DynamoTableName", # required
1230
+ # payload: {
1231
+ # content_expression: "ContentExpression", # required
1232
+ # type: "STRING", # required, accepts STRING, JSON
1233
+ # },
1234
+ # },
1235
+ # dynamo_d_bv_2: {
1236
+ # table_name: "DynamoTableName", # required
1237
+ # payload: {
1238
+ # content_expression: "ContentExpression", # required
1239
+ # type: "STRING", # required, accepts STRING, JSON
1240
+ # },
836
1241
  # },
837
1242
  # },
838
1243
  # ],
@@ -852,9 +1257,17 @@ module Aws::IoTEvents
852
1257
  # },
853
1258
  # sns: {
854
1259
  # target_arn: "AmazonResourceName", # required
1260
+ # payload: {
1261
+ # content_expression: "ContentExpression", # required
1262
+ # type: "STRING", # required, accepts STRING, JSON
1263
+ # },
855
1264
  # },
856
1265
  # iot_topic_publish: {
857
1266
  # mqtt_topic: "MQTTTopic", # required
1267
+ # payload: {
1268
+ # content_expression: "ContentExpression", # required
1269
+ # type: "STRING", # required, accepts STRING, JSON
1270
+ # },
858
1271
  # },
859
1272
  # set_timer: {
860
1273
  # timer_name: "TimerName", # required
@@ -869,17 +1282,55 @@ module Aws::IoTEvents
869
1282
  # },
870
1283
  # lambda: {
871
1284
  # function_arn: "AmazonResourceName", # required
1285
+ # payload: {
1286
+ # content_expression: "ContentExpression", # required
1287
+ # type: "STRING", # required, accepts STRING, JSON
1288
+ # },
872
1289
  # },
873
1290
  # iot_events: {
874
1291
  # input_name: "InputName", # required
1292
+ # payload: {
1293
+ # content_expression: "ContentExpression", # required
1294
+ # type: "STRING", # required, accepts STRING, JSON
1295
+ # },
875
1296
  # },
876
1297
  # sqs: {
877
1298
  # queue_url: "QueueUrl", # required
878
1299
  # use_base_64: false,
1300
+ # payload: {
1301
+ # content_expression: "ContentExpression", # required
1302
+ # type: "STRING", # required, accepts STRING, JSON
1303
+ # },
879
1304
  # },
880
1305
  # firehose: {
881
1306
  # delivery_stream_name: "DeliveryStreamName", # required
882
1307
  # separator: "FirehoseSeparator",
1308
+ # payload: {
1309
+ # content_expression: "ContentExpression", # required
1310
+ # type: "STRING", # required, accepts STRING, JSON
1311
+ # },
1312
+ # },
1313
+ # dynamo_db: {
1314
+ # hash_key_type: "DynamoKeyType",
1315
+ # hash_key_field: "DynamoKeyField", # required
1316
+ # hash_key_value: "DynamoKeyValue", # required
1317
+ # range_key_type: "DynamoKeyType",
1318
+ # range_key_field: "DynamoKeyField",
1319
+ # range_key_value: "DynamoKeyValue",
1320
+ # operation: "DynamoOperation",
1321
+ # payload_field: "DynamoKeyField",
1322
+ # table_name: "DynamoTableName", # required
1323
+ # payload: {
1324
+ # content_expression: "ContentExpression", # required
1325
+ # type: "STRING", # required, accepts STRING, JSON
1326
+ # },
1327
+ # },
1328
+ # dynamo_d_bv_2: {
1329
+ # table_name: "DynamoTableName", # required
1330
+ # payload: {
1331
+ # content_expression: "ContentExpression", # required
1332
+ # type: "STRING", # required, accepts STRING, JSON
1333
+ # },
883
1334
  # },
884
1335
  # },
885
1336
  # ],
@@ -975,6 +1426,207 @@ module Aws::IoTEvents
975
1426
  include Aws::Structure
976
1427
  end
977
1428
 
1429
+ # Defines an action to write to the Amazon DynamoDB table that you
1430
+ # created. The standard action payload contains all attribute-value
1431
+ # pairs that have the information about the detector model instance and
1432
+ # the event that triggered the action. You can also customize the
1433
+ # [payload][1]. One column of the DynamoDB table receives all
1434
+ # attribute-value pairs in the payload that you specify.
1435
+ #
1436
+ # The `tableName` and `hashKeyField` values must match the table name
1437
+ # and the partition key of the DynamoDB table.
1438
+ #
1439
+ # <note markdown="1"> If the DynamoDB table also has a sort key, you must specify
1440
+ # `rangeKeyField`. The `rangeKeyField` value must match the sort key.
1441
+ #
1442
+ # </note>
1443
+ #
1444
+ #
1445
+ #
1446
+ # The `hashKeyValue` and `rangeKeyValue` use substitution templates.
1447
+ # These templates provide data at runtime. The syntax is
1448
+ # `$\{sql-expression\}`.
1449
+ #
1450
+ # You can use expressions for parameters that are string data type. For
1451
+ # more information, see [Expressions][2] in the *AWS IoT Events
1452
+ # Developer Guide*.
1453
+ #
1454
+ # <note markdown="1"> If the defined payload type is a string, `DynamoDBAction` writes
1455
+ # non-JSON data to the DynamoDB table as binary data. The DynamoDB
1456
+ # console displays the data as Base64-encoded text. The `payloadField`
1457
+ # is `<payload-field>_raw`.
1458
+ #
1459
+ # </note>
1460
+ #
1461
+ #
1462
+ #
1463
+ # [1]: https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html
1464
+ # [2]: https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html
1465
+ #
1466
+ # @note When making an API call, you may pass DynamoDBAction
1467
+ # data as a hash:
1468
+ #
1469
+ # {
1470
+ # hash_key_type: "DynamoKeyType",
1471
+ # hash_key_field: "DynamoKeyField", # required
1472
+ # hash_key_value: "DynamoKeyValue", # required
1473
+ # range_key_type: "DynamoKeyType",
1474
+ # range_key_field: "DynamoKeyField",
1475
+ # range_key_value: "DynamoKeyValue",
1476
+ # operation: "DynamoOperation",
1477
+ # payload_field: "DynamoKeyField",
1478
+ # table_name: "DynamoTableName", # required
1479
+ # payload: {
1480
+ # content_expression: "ContentExpression", # required
1481
+ # type: "STRING", # required, accepts STRING, JSON
1482
+ # },
1483
+ # }
1484
+ #
1485
+ # @!attribute [rw] hash_key_type
1486
+ # The data type for the hash key (also called the partition key). You
1487
+ # can specify the following values:
1488
+ #
1489
+ # * `STRING` - The hash key is a string.
1490
+ #
1491
+ # * `NUMBER` - The hash key is a number.
1492
+ #
1493
+ # If you don't specify `hashKeyType`, the default value is `STRING`.
1494
+ # @return [String]
1495
+ #
1496
+ # @!attribute [rw] hash_key_field
1497
+ # The name of the hash key (also called the partition key).
1498
+ # @return [String]
1499
+ #
1500
+ # @!attribute [rw] hash_key_value
1501
+ # The value of the hash key (also called the partition key).
1502
+ # @return [String]
1503
+ #
1504
+ # @!attribute [rw] range_key_type
1505
+ # The data type for the range key (also called the sort key), You can
1506
+ # specify the following values:
1507
+ #
1508
+ # * `STRING` - The range key is a string.
1509
+ #
1510
+ # * `NUMBER` - The range key is number.
1511
+ #
1512
+ # If you don't specify `rangeKeyField`, the default value is
1513
+ # `STRING`.
1514
+ # @return [String]
1515
+ #
1516
+ # @!attribute [rw] range_key_field
1517
+ # The name of the range key (also called the sort key).
1518
+ # @return [String]
1519
+ #
1520
+ # @!attribute [rw] range_key_value
1521
+ # The value of the range key (also called the sort key).
1522
+ # @return [String]
1523
+ #
1524
+ # @!attribute [rw] operation
1525
+ # The type of operation to perform. You can specify the following
1526
+ # values:
1527
+ #
1528
+ # * `INSERT` - Insert data as a new item into the DynamoDB table. This
1529
+ # item uses the specified hash key as a partition key. If you
1530
+ # specified a range key, the item uses the range key as a sort key.
1531
+ #
1532
+ # * `UPDATE` - Update an existing item of the DynamoDB table with new
1533
+ # data. This item's partition key must match the specified hash
1534
+ # key. If you specified a range key, the range key must match the
1535
+ # item's sort key.
1536
+ #
1537
+ # * `DELETE` - Delete an existing item of the DynamoDB table. This
1538
+ # item's partition key must match the specified hash key. If you
1539
+ # specified a range key, the range key must match the item's sort
1540
+ # key.
1541
+ #
1542
+ # If you don't specify this parameter, AWS IoT Events triggers the
1543
+ # `INSERT` operation.
1544
+ # @return [String]
1545
+ #
1546
+ # @!attribute [rw] payload_field
1547
+ # The name of the DynamoDB column that receives the action payload.
1548
+ #
1549
+ # If you don't specify this parameter, the name of the DynamoDB
1550
+ # column is `payload`.
1551
+ # @return [String]
1552
+ #
1553
+ # @!attribute [rw] table_name
1554
+ # The name of the DynamoDB table.
1555
+ # @return [String]
1556
+ #
1557
+ # @!attribute [rw] payload
1558
+ # Information needed to configure the payload.
1559
+ #
1560
+ # By default, AWS IoT Events generates a standard payload in JSON for
1561
+ # any action. This action payload contains all attribute-value pairs
1562
+ # that have the information about the detector model instance and the
1563
+ # event triggered the action. To configure the action payload, you can
1564
+ # use `contentExpression`.
1565
+ # @return [Types::Payload]
1566
+ #
1567
+ class DynamoDBAction < Struct.new(
1568
+ :hash_key_type,
1569
+ :hash_key_field,
1570
+ :hash_key_value,
1571
+ :range_key_type,
1572
+ :range_key_field,
1573
+ :range_key_value,
1574
+ :operation,
1575
+ :payload_field,
1576
+ :table_name,
1577
+ :payload)
1578
+ include Aws::Structure
1579
+ end
1580
+
1581
+ # Defines an action to write to the Amazon DynamoDB table that you
1582
+ # created. The default action payload contains all attribute-value pairs
1583
+ # that have the information about the detector model instance and the
1584
+ # event that triggered the action. You can also customize the
1585
+ # [payload][1]. A separate column of the DynamoDB table receives one
1586
+ # attribute-value pair in the payload that you specify.
1587
+ #
1588
+ # The `type` value for `Payload` must be `JSON`.
1589
+ #
1590
+ # You can use expressions for parameters that are strings. For more
1591
+ # information, see [Expressions][2] in the *AWS IoT Events Developer
1592
+ # Guide*.
1593
+ #
1594
+ #
1595
+ #
1596
+ # [1]: https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html
1597
+ # [2]: https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html
1598
+ #
1599
+ # @note When making an API call, you may pass DynamoDBv2Action
1600
+ # data as a hash:
1601
+ #
1602
+ # {
1603
+ # table_name: "DynamoTableName", # required
1604
+ # payload: {
1605
+ # content_expression: "ContentExpression", # required
1606
+ # type: "STRING", # required, accepts STRING, JSON
1607
+ # },
1608
+ # }
1609
+ #
1610
+ # @!attribute [rw] table_name
1611
+ # The name of the DynamoDB table.
1612
+ # @return [String]
1613
+ #
1614
+ # @!attribute [rw] payload
1615
+ # Information needed to configure the payload.
1616
+ #
1617
+ # By default, AWS IoT Events generates a standard payload in JSON for
1618
+ # any action. This action payload contains all attribute-value pairs
1619
+ # that have the information about the detector model instance and the
1620
+ # event triggered the action. To configure the action payload, you can
1621
+ # use `contentExpression`.
1622
+ # @return [Types::Payload]
1623
+ #
1624
+ class DynamoDBv2Action < Struct.new(
1625
+ :table_name,
1626
+ :payload)
1627
+ include Aws::Structure
1628
+ end
1629
+
978
1630
  # Specifies the `actions` to be performed when the `condition` evaluates
979
1631
  # to TRUE.
980
1632
  #
@@ -992,9 +1644,17 @@ module Aws::IoTEvents
992
1644
  # },
993
1645
  # sns: {
994
1646
  # target_arn: "AmazonResourceName", # required
1647
+ # payload: {
1648
+ # content_expression: "ContentExpression", # required
1649
+ # type: "STRING", # required, accepts STRING, JSON
1650
+ # },
995
1651
  # },
996
1652
  # iot_topic_publish: {
997
1653
  # mqtt_topic: "MQTTTopic", # required
1654
+ # payload: {
1655
+ # content_expression: "ContentExpression", # required
1656
+ # type: "STRING", # required, accepts STRING, JSON
1657
+ # },
998
1658
  # },
999
1659
  # set_timer: {
1000
1660
  # timer_name: "TimerName", # required
@@ -1009,17 +1669,55 @@ module Aws::IoTEvents
1009
1669
  # },
1010
1670
  # lambda: {
1011
1671
  # function_arn: "AmazonResourceName", # required
1672
+ # payload: {
1673
+ # content_expression: "ContentExpression", # required
1674
+ # type: "STRING", # required, accepts STRING, JSON
1675
+ # },
1012
1676
  # },
1013
1677
  # iot_events: {
1014
1678
  # input_name: "InputName", # required
1679
+ # payload: {
1680
+ # content_expression: "ContentExpression", # required
1681
+ # type: "STRING", # required, accepts STRING, JSON
1682
+ # },
1015
1683
  # },
1016
1684
  # sqs: {
1017
1685
  # queue_url: "QueueUrl", # required
1018
1686
  # use_base_64: false,
1687
+ # payload: {
1688
+ # content_expression: "ContentExpression", # required
1689
+ # type: "STRING", # required, accepts STRING, JSON
1690
+ # },
1019
1691
  # },
1020
1692
  # firehose: {
1021
1693
  # delivery_stream_name: "DeliveryStreamName", # required
1022
1694
  # separator: "FirehoseSeparator",
1695
+ # payload: {
1696
+ # content_expression: "ContentExpression", # required
1697
+ # type: "STRING", # required, accepts STRING, JSON
1698
+ # },
1699
+ # },
1700
+ # dynamo_db: {
1701
+ # hash_key_type: "DynamoKeyType",
1702
+ # hash_key_field: "DynamoKeyField", # required
1703
+ # hash_key_value: "DynamoKeyValue", # required
1704
+ # range_key_type: "DynamoKeyType",
1705
+ # range_key_field: "DynamoKeyField",
1706
+ # range_key_value: "DynamoKeyValue",
1707
+ # operation: "DynamoOperation",
1708
+ # payload_field: "DynamoKeyField",
1709
+ # table_name: "DynamoTableName", # required
1710
+ # payload: {
1711
+ # content_expression: "ContentExpression", # required
1712
+ # type: "STRING", # required, accepts STRING, JSON
1713
+ # },
1714
+ # },
1715
+ # dynamo_d_bv_2: {
1716
+ # table_name: "DynamoTableName", # required
1717
+ # payload: {
1718
+ # content_expression: "ContentExpression", # required
1719
+ # type: "STRING", # required, accepts STRING, JSON
1720
+ # },
1023
1721
  # },
1024
1722
  # },
1025
1723
  # ],
@@ -1057,6 +1755,10 @@ module Aws::IoTEvents
1057
1755
  # {
1058
1756
  # delivery_stream_name: "DeliveryStreamName", # required
1059
1757
  # separator: "FirehoseSeparator",
1758
+ # payload: {
1759
+ # content_expression: "ContentExpression", # required
1760
+ # type: "STRING", # required, accepts STRING, JSON
1761
+ # },
1060
1762
  # }
1061
1763
  #
1062
1764
  # @!attribute [rw] delivery_stream_name
@@ -1071,9 +1773,15 @@ module Aws::IoTEvents
1071
1773
  # (comma).
1072
1774
  # @return [String]
1073
1775
  #
1776
+ # @!attribute [rw] payload
1777
+ # You can configure the action payload when you send a message to an
1778
+ # Amazon Kinesis Data Firehose delivery stream.
1779
+ # @return [Types::Payload]
1780
+ #
1074
1781
  class FirehoseAction < Struct.new(
1075
1782
  :delivery_stream_name,
1076
- :separator)
1783
+ :separator,
1784
+ :payload)
1077
1785
  include Aws::Structure
1078
1786
  end
1079
1787
 
@@ -1222,14 +1930,24 @@ module Aws::IoTEvents
1222
1930
  #
1223
1931
  # {
1224
1932
  # input_name: "InputName", # required
1933
+ # payload: {
1934
+ # content_expression: "ContentExpression", # required
1935
+ # type: "STRING", # required, accepts STRING, JSON
1936
+ # },
1225
1937
  # }
1226
1938
  #
1227
1939
  # @!attribute [rw] input_name
1228
1940
  # The name of the AWS IoT Events input where the data is sent.
1229
1941
  # @return [String]
1230
1942
  #
1943
+ # @!attribute [rw] payload
1944
+ # You can configure the action payload when you send a message to an
1945
+ # AWS IoT Events input.
1946
+ # @return [Types::Payload]
1947
+ #
1231
1948
  class IotEventsAction < Struct.new(
1232
- :input_name)
1949
+ :input_name,
1950
+ :payload)
1233
1951
  include Aws::Structure
1234
1952
  end
1235
1953
 
@@ -1241,6 +1959,10 @@ module Aws::IoTEvents
1241
1959
  #
1242
1960
  # {
1243
1961
  # mqtt_topic: "MQTTTopic", # required
1962
+ # payload: {
1963
+ # content_expression: "ContentExpression", # required
1964
+ # type: "STRING", # required, accepts STRING, JSON
1965
+ # },
1244
1966
  # }
1245
1967
  #
1246
1968
  # @!attribute [rw] mqtt_topic
@@ -1249,8 +1971,14 @@ module Aws::IoTEvents
1249
1971
  # (`$input.<input-name>.<path-to-datum>`) as the topic string.
1250
1972
  # @return [String]
1251
1973
  #
1974
+ # @!attribute [rw] payload
1975
+ # You can configure the action payload when you publish a message to
1976
+ # an AWS IoT Core topic.
1977
+ # @return [Types::Payload]
1978
+ #
1252
1979
  class IotTopicPublishAction < Struct.new(
1253
- :mqtt_topic)
1980
+ :mqtt_topic,
1981
+ :payload)
1254
1982
  include Aws::Structure
1255
1983
  end
1256
1984
 
@@ -1262,14 +1990,24 @@ module Aws::IoTEvents
1262
1990
  #
1263
1991
  # {
1264
1992
  # function_arn: "AmazonResourceName", # required
1993
+ # payload: {
1994
+ # content_expression: "ContentExpression", # required
1995
+ # type: "STRING", # required, accepts STRING, JSON
1996
+ # },
1265
1997
  # }
1266
1998
  #
1267
1999
  # @!attribute [rw] function_arn
1268
2000
  # The ARN of the Lambda function that is executed.
1269
2001
  # @return [String]
1270
2002
  #
2003
+ # @!attribute [rw] payload
2004
+ # You can configure the action payload when you send a message to a
2005
+ # Lambda function.
2006
+ # @return [Types::Payload]
2007
+ #
1271
2008
  class LambdaAction < Struct.new(
1272
- :function_arn)
2009
+ :function_arn,
2010
+ :payload)
1273
2011
  include Aws::Structure
1274
2012
  end
1275
2013
 
@@ -1488,9 +2226,17 @@ module Aws::IoTEvents
1488
2226
  # },
1489
2227
  # sns: {
1490
2228
  # target_arn: "AmazonResourceName", # required
2229
+ # payload: {
2230
+ # content_expression: "ContentExpression", # required
2231
+ # type: "STRING", # required, accepts STRING, JSON
2232
+ # },
1491
2233
  # },
1492
2234
  # iot_topic_publish: {
1493
2235
  # mqtt_topic: "MQTTTopic", # required
2236
+ # payload: {
2237
+ # content_expression: "ContentExpression", # required
2238
+ # type: "STRING", # required, accepts STRING, JSON
2239
+ # },
1494
2240
  # },
1495
2241
  # set_timer: {
1496
2242
  # timer_name: "TimerName", # required
@@ -1505,17 +2251,55 @@ module Aws::IoTEvents
1505
2251
  # },
1506
2252
  # lambda: {
1507
2253
  # function_arn: "AmazonResourceName", # required
2254
+ # payload: {
2255
+ # content_expression: "ContentExpression", # required
2256
+ # type: "STRING", # required, accepts STRING, JSON
2257
+ # },
1508
2258
  # },
1509
2259
  # iot_events: {
1510
2260
  # input_name: "InputName", # required
2261
+ # payload: {
2262
+ # content_expression: "ContentExpression", # required
2263
+ # type: "STRING", # required, accepts STRING, JSON
2264
+ # },
1511
2265
  # },
1512
2266
  # sqs: {
1513
2267
  # queue_url: "QueueUrl", # required
1514
2268
  # use_base_64: false,
2269
+ # payload: {
2270
+ # content_expression: "ContentExpression", # required
2271
+ # type: "STRING", # required, accepts STRING, JSON
2272
+ # },
1515
2273
  # },
1516
2274
  # firehose: {
1517
2275
  # delivery_stream_name: "DeliveryStreamName", # required
1518
2276
  # separator: "FirehoseSeparator",
2277
+ # payload: {
2278
+ # content_expression: "ContentExpression", # required
2279
+ # type: "STRING", # required, accepts STRING, JSON
2280
+ # },
2281
+ # },
2282
+ # dynamo_db: {
2283
+ # hash_key_type: "DynamoKeyType",
2284
+ # hash_key_field: "DynamoKeyField", # required
2285
+ # hash_key_value: "DynamoKeyValue", # required
2286
+ # range_key_type: "DynamoKeyType",
2287
+ # range_key_field: "DynamoKeyField",
2288
+ # range_key_value: "DynamoKeyValue",
2289
+ # operation: "DynamoOperation",
2290
+ # payload_field: "DynamoKeyField",
2291
+ # table_name: "DynamoTableName", # required
2292
+ # payload: {
2293
+ # content_expression: "ContentExpression", # required
2294
+ # type: "STRING", # required, accepts STRING, JSON
2295
+ # },
2296
+ # },
2297
+ # dynamo_d_bv_2: {
2298
+ # table_name: "DynamoTableName", # required
2299
+ # payload: {
2300
+ # content_expression: "ContentExpression", # required
2301
+ # type: "STRING", # required, accepts STRING, JSON
2302
+ # },
1519
2303
  # },
1520
2304
  # },
1521
2305
  # ],
@@ -1525,7 +2309,7 @@ module Aws::IoTEvents
1525
2309
  #
1526
2310
  # @!attribute [rw] events
1527
2311
  # Specifies the actions that are performed when the state is entered
1528
- # and the `condition` is TRUE.
2312
+ # and the `condition` is `TRUE`.
1529
2313
  # @return [Array<Types::Event>]
1530
2314
  #
1531
2315
  class OnEnterLifecycle < Struct.new(
@@ -1534,7 +2318,7 @@ module Aws::IoTEvents
1534
2318
  end
1535
2319
 
1536
2320
  # When exiting this state, perform these `actions` if the specified
1537
- # `condition` is TRUE.
2321
+ # `condition` is `TRUE`.
1538
2322
  #
1539
2323
  # @note When making an API call, you may pass OnExitLifecycle
1540
2324
  # data as a hash:
@@ -1552,9 +2336,17 @@ module Aws::IoTEvents
1552
2336
  # },
1553
2337
  # sns: {
1554
2338
  # target_arn: "AmazonResourceName", # required
2339
+ # payload: {
2340
+ # content_expression: "ContentExpression", # required
2341
+ # type: "STRING", # required, accepts STRING, JSON
2342
+ # },
1555
2343
  # },
1556
2344
  # iot_topic_publish: {
1557
2345
  # mqtt_topic: "MQTTTopic", # required
2346
+ # payload: {
2347
+ # content_expression: "ContentExpression", # required
2348
+ # type: "STRING", # required, accepts STRING, JSON
2349
+ # },
1558
2350
  # },
1559
2351
  # set_timer: {
1560
2352
  # timer_name: "TimerName", # required
@@ -1569,17 +2361,55 @@ module Aws::IoTEvents
1569
2361
  # },
1570
2362
  # lambda: {
1571
2363
  # function_arn: "AmazonResourceName", # required
2364
+ # payload: {
2365
+ # content_expression: "ContentExpression", # required
2366
+ # type: "STRING", # required, accepts STRING, JSON
2367
+ # },
1572
2368
  # },
1573
2369
  # iot_events: {
1574
2370
  # input_name: "InputName", # required
2371
+ # payload: {
2372
+ # content_expression: "ContentExpression", # required
2373
+ # type: "STRING", # required, accepts STRING, JSON
2374
+ # },
1575
2375
  # },
1576
2376
  # sqs: {
1577
2377
  # queue_url: "QueueUrl", # required
1578
2378
  # use_base_64: false,
2379
+ # payload: {
2380
+ # content_expression: "ContentExpression", # required
2381
+ # type: "STRING", # required, accepts STRING, JSON
2382
+ # },
1579
2383
  # },
1580
2384
  # firehose: {
1581
2385
  # delivery_stream_name: "DeliveryStreamName", # required
1582
2386
  # separator: "FirehoseSeparator",
2387
+ # payload: {
2388
+ # content_expression: "ContentExpression", # required
2389
+ # type: "STRING", # required, accepts STRING, JSON
2390
+ # },
2391
+ # },
2392
+ # dynamo_db: {
2393
+ # hash_key_type: "DynamoKeyType",
2394
+ # hash_key_field: "DynamoKeyField", # required
2395
+ # hash_key_value: "DynamoKeyValue", # required
2396
+ # range_key_type: "DynamoKeyType",
2397
+ # range_key_field: "DynamoKeyField",
2398
+ # range_key_value: "DynamoKeyValue",
2399
+ # operation: "DynamoOperation",
2400
+ # payload_field: "DynamoKeyField",
2401
+ # table_name: "DynamoTableName", # required
2402
+ # payload: {
2403
+ # content_expression: "ContentExpression", # required
2404
+ # type: "STRING", # required, accepts STRING, JSON
2405
+ # },
2406
+ # },
2407
+ # dynamo_d_bv_2: {
2408
+ # table_name: "DynamoTableName", # required
2409
+ # payload: {
2410
+ # content_expression: "ContentExpression", # required
2411
+ # type: "STRING", # required, accepts STRING, JSON
2412
+ # },
1583
2413
  # },
1584
2414
  # },
1585
2415
  # ],
@@ -1589,7 +2419,7 @@ module Aws::IoTEvents
1589
2419
  #
1590
2420
  # @!attribute [rw] events
1591
2421
  # Specifies the `actions` that are performed when the state is exited
1592
- # and the `condition` is TRUE.
2422
+ # and the `condition` is `TRUE`.
1593
2423
  # @return [Array<Types::Event>]
1594
2424
  #
1595
2425
  class OnExitLifecycle < Struct.new(
@@ -1616,9 +2446,17 @@ module Aws::IoTEvents
1616
2446
  # },
1617
2447
  # sns: {
1618
2448
  # target_arn: "AmazonResourceName", # required
2449
+ # payload: {
2450
+ # content_expression: "ContentExpression", # required
2451
+ # type: "STRING", # required, accepts STRING, JSON
2452
+ # },
1619
2453
  # },
1620
2454
  # iot_topic_publish: {
1621
2455
  # mqtt_topic: "MQTTTopic", # required
2456
+ # payload: {
2457
+ # content_expression: "ContentExpression", # required
2458
+ # type: "STRING", # required, accepts STRING, JSON
2459
+ # },
1622
2460
  # },
1623
2461
  # set_timer: {
1624
2462
  # timer_name: "TimerName", # required
@@ -1633,17 +2471,55 @@ module Aws::IoTEvents
1633
2471
  # },
1634
2472
  # lambda: {
1635
2473
  # function_arn: "AmazonResourceName", # required
2474
+ # payload: {
2475
+ # content_expression: "ContentExpression", # required
2476
+ # type: "STRING", # required, accepts STRING, JSON
2477
+ # },
1636
2478
  # },
1637
2479
  # iot_events: {
1638
2480
  # input_name: "InputName", # required
2481
+ # payload: {
2482
+ # content_expression: "ContentExpression", # required
2483
+ # type: "STRING", # required, accepts STRING, JSON
2484
+ # },
1639
2485
  # },
1640
2486
  # sqs: {
1641
2487
  # queue_url: "QueueUrl", # required
1642
2488
  # use_base_64: false,
2489
+ # payload: {
2490
+ # content_expression: "ContentExpression", # required
2491
+ # type: "STRING", # required, accepts STRING, JSON
2492
+ # },
1643
2493
  # },
1644
2494
  # firehose: {
1645
2495
  # delivery_stream_name: "DeliveryStreamName", # required
1646
2496
  # separator: "FirehoseSeparator",
2497
+ # payload: {
2498
+ # content_expression: "ContentExpression", # required
2499
+ # type: "STRING", # required, accepts STRING, JSON
2500
+ # },
2501
+ # },
2502
+ # dynamo_db: {
2503
+ # hash_key_type: "DynamoKeyType",
2504
+ # hash_key_field: "DynamoKeyField", # required
2505
+ # hash_key_value: "DynamoKeyValue", # required
2506
+ # range_key_type: "DynamoKeyType",
2507
+ # range_key_field: "DynamoKeyField",
2508
+ # range_key_value: "DynamoKeyValue",
2509
+ # operation: "DynamoOperation",
2510
+ # payload_field: "DynamoKeyField",
2511
+ # table_name: "DynamoTableName", # required
2512
+ # payload: {
2513
+ # content_expression: "ContentExpression", # required
2514
+ # type: "STRING", # required, accepts STRING, JSON
2515
+ # },
2516
+ # },
2517
+ # dynamo_d_bv_2: {
2518
+ # table_name: "DynamoTableName", # required
2519
+ # payload: {
2520
+ # content_expression: "ContentExpression", # required
2521
+ # type: "STRING", # required, accepts STRING, JSON
2522
+ # },
1647
2523
  # },
1648
2524
  # },
1649
2525
  # ],
@@ -1661,9 +2537,17 @@ module Aws::IoTEvents
1661
2537
  # },
1662
2538
  # sns: {
1663
2539
  # target_arn: "AmazonResourceName", # required
2540
+ # payload: {
2541
+ # content_expression: "ContentExpression", # required
2542
+ # type: "STRING", # required, accepts STRING, JSON
2543
+ # },
1664
2544
  # },
1665
2545
  # iot_topic_publish: {
1666
2546
  # mqtt_topic: "MQTTTopic", # required
2547
+ # payload: {
2548
+ # content_expression: "ContentExpression", # required
2549
+ # type: "STRING", # required, accepts STRING, JSON
2550
+ # },
1667
2551
  # },
1668
2552
  # set_timer: {
1669
2553
  # timer_name: "TimerName", # required
@@ -1678,17 +2562,55 @@ module Aws::IoTEvents
1678
2562
  # },
1679
2563
  # lambda: {
1680
2564
  # function_arn: "AmazonResourceName", # required
2565
+ # payload: {
2566
+ # content_expression: "ContentExpression", # required
2567
+ # type: "STRING", # required, accepts STRING, JSON
2568
+ # },
1681
2569
  # },
1682
2570
  # iot_events: {
1683
2571
  # input_name: "InputName", # required
2572
+ # payload: {
2573
+ # content_expression: "ContentExpression", # required
2574
+ # type: "STRING", # required, accepts STRING, JSON
2575
+ # },
1684
2576
  # },
1685
2577
  # sqs: {
1686
2578
  # queue_url: "QueueUrl", # required
1687
2579
  # use_base_64: false,
2580
+ # payload: {
2581
+ # content_expression: "ContentExpression", # required
2582
+ # type: "STRING", # required, accepts STRING, JSON
2583
+ # },
1688
2584
  # },
1689
2585
  # firehose: {
1690
2586
  # delivery_stream_name: "DeliveryStreamName", # required
1691
2587
  # separator: "FirehoseSeparator",
2588
+ # payload: {
2589
+ # content_expression: "ContentExpression", # required
2590
+ # type: "STRING", # required, accepts STRING, JSON
2591
+ # },
2592
+ # },
2593
+ # dynamo_db: {
2594
+ # hash_key_type: "DynamoKeyType",
2595
+ # hash_key_field: "DynamoKeyField", # required
2596
+ # hash_key_value: "DynamoKeyValue", # required
2597
+ # range_key_type: "DynamoKeyType",
2598
+ # range_key_field: "DynamoKeyField",
2599
+ # range_key_value: "DynamoKeyValue",
2600
+ # operation: "DynamoOperation",
2601
+ # payload_field: "DynamoKeyField",
2602
+ # table_name: "DynamoTableName", # required
2603
+ # payload: {
2604
+ # content_expression: "ContentExpression", # required
2605
+ # type: "STRING", # required, accepts STRING, JSON
2606
+ # },
2607
+ # },
2608
+ # dynamo_d_bv_2: {
2609
+ # table_name: "DynamoTableName", # required
2610
+ # payload: {
2611
+ # content_expression: "ContentExpression", # required
2612
+ # type: "STRING", # required, accepts STRING, JSON
2613
+ # },
1692
2614
  # },
1693
2615
  # },
1694
2616
  # ],
@@ -1713,6 +2635,41 @@ module Aws::IoTEvents
1713
2635
  include Aws::Structure
1714
2636
  end
1715
2637
 
2638
+ # Information needed to configure the payload.
2639
+ #
2640
+ # By default, AWS IoT Events generates a standard payload in JSON for
2641
+ # any action. This action payload contains all attribute-value pairs
2642
+ # that have the information about the detector model instance and the
2643
+ # event triggered the action. To configure the action payload, you can
2644
+ # use `contentExpression`.
2645
+ #
2646
+ # @note When making an API call, you may pass Payload
2647
+ # data as a hash:
2648
+ #
2649
+ # {
2650
+ # content_expression: "ContentExpression", # required
2651
+ # type: "STRING", # required, accepts STRING, JSON
2652
+ # }
2653
+ #
2654
+ # @!attribute [rw] content_expression
2655
+ # The content of the payload. You can use a string expression that
2656
+ # includes quoted strings (`'<string>'`), variables
2657
+ # (`$variable.<variable-name>`), input values
2658
+ # (`$input.<input-name>.<path-to-datum>`), string concatenations, and
2659
+ # quoted strings that contain `$\{\}` as the content. The recommended
2660
+ # maximum size of a content expression is 1 KB.
2661
+ # @return [String]
2662
+ #
2663
+ # @!attribute [rw] type
2664
+ # The value of the payload type can be either `STRING` or `JSON`.
2665
+ # @return [String]
2666
+ #
2667
+ class Payload < Struct.new(
2668
+ :content_expression,
2669
+ :type)
2670
+ include Aws::Structure
2671
+ end
2672
+
1716
2673
  # @note When making an API call, you may pass PutLoggingOptionsRequest
1717
2674
  # data as a hash:
1718
2675
  #
@@ -1740,7 +2697,8 @@ module Aws::IoTEvents
1740
2697
  end
1741
2698
 
1742
2699
  # Information required to reset the timer. The timer is reset to the
1743
- # previously evaluated result of the duration.
2700
+ # previously evaluated result of the duration. The duration expression
2701
+ # isn't reevaluated when you reset the timer.
1744
2702
  #
1745
2703
  # @note When making an API call, you may pass ResetTimerAction
1746
2704
  # data as a hash:
@@ -1808,14 +2766,24 @@ module Aws::IoTEvents
1808
2766
  #
1809
2767
  # {
1810
2768
  # target_arn: "AmazonResourceName", # required
2769
+ # payload: {
2770
+ # content_expression: "ContentExpression", # required
2771
+ # type: "STRING", # required, accepts STRING, JSON
2772
+ # },
1811
2773
  # }
1812
2774
  #
1813
2775
  # @!attribute [rw] target_arn
1814
2776
  # The ARN of the Amazon SNS target where the message is sent.
1815
2777
  # @return [String]
1816
2778
  #
2779
+ # @!attribute [rw] payload
2780
+ # You can configure the action payload when you send a message as an
2781
+ # Amazon SNS push notification.
2782
+ # @return [Types::Payload]
2783
+ #
1817
2784
  class SNSTopicPublishAction < Struct.new(
1818
- :target_arn)
2785
+ :target_arn,
2786
+ :payload)
1819
2787
  include Aws::Structure
1820
2788
  end
1821
2789
 
@@ -1847,7 +2815,8 @@ module Aws::IoTEvents
1847
2815
  #
1848
2816
  # @!attribute [rw] seconds
1849
2817
  # The number of seconds until the timer expires. The minimum value is
1850
- # 60 seconds to ensure accuracy.
2818
+ # 60 seconds to ensure accuracy. The maximum value is 31622400
2819
+ # seconds.
1851
2820
  # @return [Integer]
1852
2821
  #
1853
2822
  # @!attribute [rw] duration_expression
@@ -1900,6 +2869,10 @@ module Aws::IoTEvents
1900
2869
  # {
1901
2870
  # queue_url: "QueueUrl", # required
1902
2871
  # use_base_64: false,
2872
+ # payload: {
2873
+ # content_expression: "ContentExpression", # required
2874
+ # type: "STRING", # required, accepts STRING, JSON
2875
+ # },
1903
2876
  # }
1904
2877
  #
1905
2878
  # @!attribute [rw] queue_url
@@ -1908,12 +2881,18 @@ module Aws::IoTEvents
1908
2881
  #
1909
2882
  # @!attribute [rw] use_base_64
1910
2883
  # Set this to TRUE if you want the data to be base-64 encoded before
1911
- # it is written to the queue.
2884
+ # it is written to the queue. Otherwise, set this to FALSE.
1912
2885
  # @return [Boolean]
1913
2886
  #
2887
+ # @!attribute [rw] payload
2888
+ # You can configure the action payload when you send a message to an
2889
+ # Amazon SQS queue.
2890
+ # @return [Types::Payload]
2891
+ #
1914
2892
  class SqsAction < Struct.new(
1915
2893
  :queue_url,
1916
- :use_base_64)
2894
+ :use_base_64,
2895
+ :payload)
1917
2896
  include Aws::Structure
1918
2897
  end
1919
2898
 
@@ -1937,9 +2916,17 @@ module Aws::IoTEvents
1937
2916
  # },
1938
2917
  # sns: {
1939
2918
  # target_arn: "AmazonResourceName", # required
2919
+ # payload: {
2920
+ # content_expression: "ContentExpression", # required
2921
+ # type: "STRING", # required, accepts STRING, JSON
2922
+ # },
1940
2923
  # },
1941
2924
  # iot_topic_publish: {
1942
2925
  # mqtt_topic: "MQTTTopic", # required
2926
+ # payload: {
2927
+ # content_expression: "ContentExpression", # required
2928
+ # type: "STRING", # required, accepts STRING, JSON
2929
+ # },
1943
2930
  # },
1944
2931
  # set_timer: {
1945
2932
  # timer_name: "TimerName", # required
@@ -1954,17 +2941,55 @@ module Aws::IoTEvents
1954
2941
  # },
1955
2942
  # lambda: {
1956
2943
  # function_arn: "AmazonResourceName", # required
2944
+ # payload: {
2945
+ # content_expression: "ContentExpression", # required
2946
+ # type: "STRING", # required, accepts STRING, JSON
2947
+ # },
1957
2948
  # },
1958
2949
  # iot_events: {
1959
2950
  # input_name: "InputName", # required
2951
+ # payload: {
2952
+ # content_expression: "ContentExpression", # required
2953
+ # type: "STRING", # required, accepts STRING, JSON
2954
+ # },
1960
2955
  # },
1961
2956
  # sqs: {
1962
2957
  # queue_url: "QueueUrl", # required
1963
2958
  # use_base_64: false,
2959
+ # payload: {
2960
+ # content_expression: "ContentExpression", # required
2961
+ # type: "STRING", # required, accepts STRING, JSON
2962
+ # },
1964
2963
  # },
1965
2964
  # firehose: {
1966
2965
  # delivery_stream_name: "DeliveryStreamName", # required
1967
2966
  # separator: "FirehoseSeparator",
2967
+ # payload: {
2968
+ # content_expression: "ContentExpression", # required
2969
+ # type: "STRING", # required, accepts STRING, JSON
2970
+ # },
2971
+ # },
2972
+ # dynamo_db: {
2973
+ # hash_key_type: "DynamoKeyType",
2974
+ # hash_key_field: "DynamoKeyField", # required
2975
+ # hash_key_value: "DynamoKeyValue", # required
2976
+ # range_key_type: "DynamoKeyType",
2977
+ # range_key_field: "DynamoKeyField",
2978
+ # range_key_value: "DynamoKeyValue",
2979
+ # operation: "DynamoOperation",
2980
+ # payload_field: "DynamoKeyField",
2981
+ # table_name: "DynamoTableName", # required
2982
+ # payload: {
2983
+ # content_expression: "ContentExpression", # required
2984
+ # type: "STRING", # required, accepts STRING, JSON
2985
+ # },
2986
+ # },
2987
+ # dynamo_d_bv_2: {
2988
+ # table_name: "DynamoTableName", # required
2989
+ # payload: {
2990
+ # content_expression: "ContentExpression", # required
2991
+ # type: "STRING", # required, accepts STRING, JSON
2992
+ # },
1968
2993
  # },
1969
2994
  # },
1970
2995
  # ],
@@ -1982,9 +3007,17 @@ module Aws::IoTEvents
1982
3007
  # },
1983
3008
  # sns: {
1984
3009
  # target_arn: "AmazonResourceName", # required
3010
+ # payload: {
3011
+ # content_expression: "ContentExpression", # required
3012
+ # type: "STRING", # required, accepts STRING, JSON
3013
+ # },
1985
3014
  # },
1986
3015
  # iot_topic_publish: {
1987
3016
  # mqtt_topic: "MQTTTopic", # required
3017
+ # payload: {
3018
+ # content_expression: "ContentExpression", # required
3019
+ # type: "STRING", # required, accepts STRING, JSON
3020
+ # },
1988
3021
  # },
1989
3022
  # set_timer: {
1990
3023
  # timer_name: "TimerName", # required
@@ -1999,17 +3032,55 @@ module Aws::IoTEvents
1999
3032
  # },
2000
3033
  # lambda: {
2001
3034
  # function_arn: "AmazonResourceName", # required
3035
+ # payload: {
3036
+ # content_expression: "ContentExpression", # required
3037
+ # type: "STRING", # required, accepts STRING, JSON
3038
+ # },
2002
3039
  # },
2003
3040
  # iot_events: {
2004
3041
  # input_name: "InputName", # required
3042
+ # payload: {
3043
+ # content_expression: "ContentExpression", # required
3044
+ # type: "STRING", # required, accepts STRING, JSON
3045
+ # },
2005
3046
  # },
2006
3047
  # sqs: {
2007
3048
  # queue_url: "QueueUrl", # required
2008
3049
  # use_base_64: false,
3050
+ # payload: {
3051
+ # content_expression: "ContentExpression", # required
3052
+ # type: "STRING", # required, accepts STRING, JSON
3053
+ # },
2009
3054
  # },
2010
3055
  # firehose: {
2011
3056
  # delivery_stream_name: "DeliveryStreamName", # required
2012
3057
  # separator: "FirehoseSeparator",
3058
+ # payload: {
3059
+ # content_expression: "ContentExpression", # required
3060
+ # type: "STRING", # required, accepts STRING, JSON
3061
+ # },
3062
+ # },
3063
+ # dynamo_db: {
3064
+ # hash_key_type: "DynamoKeyType",
3065
+ # hash_key_field: "DynamoKeyField", # required
3066
+ # hash_key_value: "DynamoKeyValue", # required
3067
+ # range_key_type: "DynamoKeyType",
3068
+ # range_key_field: "DynamoKeyField",
3069
+ # range_key_value: "DynamoKeyValue",
3070
+ # operation: "DynamoOperation",
3071
+ # payload_field: "DynamoKeyField",
3072
+ # table_name: "DynamoTableName", # required
3073
+ # payload: {
3074
+ # content_expression: "ContentExpression", # required
3075
+ # type: "STRING", # required, accepts STRING, JSON
3076
+ # },
3077
+ # },
3078
+ # dynamo_d_bv_2: {
3079
+ # table_name: "DynamoTableName", # required
3080
+ # payload: {
3081
+ # content_expression: "ContentExpression", # required
3082
+ # type: "STRING", # required, accepts STRING, JSON
3083
+ # },
2013
3084
  # },
2014
3085
  # },
2015
3086
  # ],
@@ -2030,9 +3101,17 @@ module Aws::IoTEvents
2030
3101
  # },
2031
3102
  # sns: {
2032
3103
  # target_arn: "AmazonResourceName", # required
3104
+ # payload: {
3105
+ # content_expression: "ContentExpression", # required
3106
+ # type: "STRING", # required, accepts STRING, JSON
3107
+ # },
2033
3108
  # },
2034
3109
  # iot_topic_publish: {
2035
3110
  # mqtt_topic: "MQTTTopic", # required
3111
+ # payload: {
3112
+ # content_expression: "ContentExpression", # required
3113
+ # type: "STRING", # required, accepts STRING, JSON
3114
+ # },
2036
3115
  # },
2037
3116
  # set_timer: {
2038
3117
  # timer_name: "TimerName", # required
@@ -2047,17 +3126,55 @@ module Aws::IoTEvents
2047
3126
  # },
2048
3127
  # lambda: {
2049
3128
  # function_arn: "AmazonResourceName", # required
3129
+ # payload: {
3130
+ # content_expression: "ContentExpression", # required
3131
+ # type: "STRING", # required, accepts STRING, JSON
3132
+ # },
2050
3133
  # },
2051
3134
  # iot_events: {
2052
3135
  # input_name: "InputName", # required
3136
+ # payload: {
3137
+ # content_expression: "ContentExpression", # required
3138
+ # type: "STRING", # required, accepts STRING, JSON
3139
+ # },
2053
3140
  # },
2054
3141
  # sqs: {
2055
3142
  # queue_url: "QueueUrl", # required
2056
3143
  # use_base_64: false,
3144
+ # payload: {
3145
+ # content_expression: "ContentExpression", # required
3146
+ # type: "STRING", # required, accepts STRING, JSON
3147
+ # },
2057
3148
  # },
2058
3149
  # firehose: {
2059
3150
  # delivery_stream_name: "DeliveryStreamName", # required
2060
3151
  # separator: "FirehoseSeparator",
3152
+ # payload: {
3153
+ # content_expression: "ContentExpression", # required
3154
+ # type: "STRING", # required, accepts STRING, JSON
3155
+ # },
3156
+ # },
3157
+ # dynamo_db: {
3158
+ # hash_key_type: "DynamoKeyType",
3159
+ # hash_key_field: "DynamoKeyField", # required
3160
+ # hash_key_value: "DynamoKeyValue", # required
3161
+ # range_key_type: "DynamoKeyType",
3162
+ # range_key_field: "DynamoKeyField",
3163
+ # range_key_value: "DynamoKeyValue",
3164
+ # operation: "DynamoOperation",
3165
+ # payload_field: "DynamoKeyField",
3166
+ # table_name: "DynamoTableName", # required
3167
+ # payload: {
3168
+ # content_expression: "ContentExpression", # required
3169
+ # type: "STRING", # required, accepts STRING, JSON
3170
+ # },
3171
+ # },
3172
+ # dynamo_d_bv_2: {
3173
+ # table_name: "DynamoTableName", # required
3174
+ # payload: {
3175
+ # content_expression: "ContentExpression", # required
3176
+ # type: "STRING", # required, accepts STRING, JSON
3177
+ # },
2061
3178
  # },
2062
3179
  # },
2063
3180
  # ],
@@ -2077,9 +3194,17 @@ module Aws::IoTEvents
2077
3194
  # },
2078
3195
  # sns: {
2079
3196
  # target_arn: "AmazonResourceName", # required
3197
+ # payload: {
3198
+ # content_expression: "ContentExpression", # required
3199
+ # type: "STRING", # required, accepts STRING, JSON
3200
+ # },
2080
3201
  # },
2081
3202
  # iot_topic_publish: {
2082
3203
  # mqtt_topic: "MQTTTopic", # required
3204
+ # payload: {
3205
+ # content_expression: "ContentExpression", # required
3206
+ # type: "STRING", # required, accepts STRING, JSON
3207
+ # },
2083
3208
  # },
2084
3209
  # set_timer: {
2085
3210
  # timer_name: "TimerName", # required
@@ -2094,17 +3219,55 @@ module Aws::IoTEvents
2094
3219
  # },
2095
3220
  # lambda: {
2096
3221
  # function_arn: "AmazonResourceName", # required
3222
+ # payload: {
3223
+ # content_expression: "ContentExpression", # required
3224
+ # type: "STRING", # required, accepts STRING, JSON
3225
+ # },
2097
3226
  # },
2098
3227
  # iot_events: {
2099
3228
  # input_name: "InputName", # required
3229
+ # payload: {
3230
+ # content_expression: "ContentExpression", # required
3231
+ # type: "STRING", # required, accepts STRING, JSON
3232
+ # },
2100
3233
  # },
2101
3234
  # sqs: {
2102
3235
  # queue_url: "QueueUrl", # required
2103
3236
  # use_base_64: false,
3237
+ # payload: {
3238
+ # content_expression: "ContentExpression", # required
3239
+ # type: "STRING", # required, accepts STRING, JSON
3240
+ # },
2104
3241
  # },
2105
3242
  # firehose: {
2106
3243
  # delivery_stream_name: "DeliveryStreamName", # required
2107
3244
  # separator: "FirehoseSeparator",
3245
+ # payload: {
3246
+ # content_expression: "ContentExpression", # required
3247
+ # type: "STRING", # required, accepts STRING, JSON
3248
+ # },
3249
+ # },
3250
+ # dynamo_db: {
3251
+ # hash_key_type: "DynamoKeyType",
3252
+ # hash_key_field: "DynamoKeyField", # required
3253
+ # hash_key_value: "DynamoKeyValue", # required
3254
+ # range_key_type: "DynamoKeyType",
3255
+ # range_key_field: "DynamoKeyField",
3256
+ # range_key_value: "DynamoKeyValue",
3257
+ # operation: "DynamoOperation",
3258
+ # payload_field: "DynamoKeyField",
3259
+ # table_name: "DynamoTableName", # required
3260
+ # payload: {
3261
+ # content_expression: "ContentExpression", # required
3262
+ # type: "STRING", # required, accepts STRING, JSON
3263
+ # },
3264
+ # },
3265
+ # dynamo_d_bv_2: {
3266
+ # table_name: "DynamoTableName", # required
3267
+ # payload: {
3268
+ # content_expression: "ContentExpression", # required
3269
+ # type: "STRING", # required, accepts STRING, JSON
3270
+ # },
2108
3271
  # },
2109
3272
  # },
2110
3273
  # ],
@@ -2129,7 +3292,7 @@ module Aws::IoTEvents
2129
3292
  #
2130
3293
  # @!attribute [rw] on_exit
2131
3294
  # When exiting this state, perform these `actions` if the specified
2132
- # `condition` is TRUE.
3295
+ # `condition` is `TRUE`.
2133
3296
  # @return [Types::OnExitLifecycle]
2134
3297
  #
2135
3298
  class State < Struct.new(
@@ -2221,9 +3384,17 @@ module Aws::IoTEvents
2221
3384
  # },
2222
3385
  # sns: {
2223
3386
  # target_arn: "AmazonResourceName", # required
3387
+ # payload: {
3388
+ # content_expression: "ContentExpression", # required
3389
+ # type: "STRING", # required, accepts STRING, JSON
3390
+ # },
2224
3391
  # },
2225
3392
  # iot_topic_publish: {
2226
3393
  # mqtt_topic: "MQTTTopic", # required
3394
+ # payload: {
3395
+ # content_expression: "ContentExpression", # required
3396
+ # type: "STRING", # required, accepts STRING, JSON
3397
+ # },
2227
3398
  # },
2228
3399
  # set_timer: {
2229
3400
  # timer_name: "TimerName", # required
@@ -2238,17 +3409,55 @@ module Aws::IoTEvents
2238
3409
  # },
2239
3410
  # lambda: {
2240
3411
  # function_arn: "AmazonResourceName", # required
3412
+ # payload: {
3413
+ # content_expression: "ContentExpression", # required
3414
+ # type: "STRING", # required, accepts STRING, JSON
3415
+ # },
2241
3416
  # },
2242
3417
  # iot_events: {
2243
3418
  # input_name: "InputName", # required
3419
+ # payload: {
3420
+ # content_expression: "ContentExpression", # required
3421
+ # type: "STRING", # required, accepts STRING, JSON
3422
+ # },
2244
3423
  # },
2245
3424
  # sqs: {
2246
3425
  # queue_url: "QueueUrl", # required
2247
3426
  # use_base_64: false,
3427
+ # payload: {
3428
+ # content_expression: "ContentExpression", # required
3429
+ # type: "STRING", # required, accepts STRING, JSON
3430
+ # },
2248
3431
  # },
2249
3432
  # firehose: {
2250
3433
  # delivery_stream_name: "DeliveryStreamName", # required
2251
3434
  # separator: "FirehoseSeparator",
3435
+ # payload: {
3436
+ # content_expression: "ContentExpression", # required
3437
+ # type: "STRING", # required, accepts STRING, JSON
3438
+ # },
3439
+ # },
3440
+ # dynamo_db: {
3441
+ # hash_key_type: "DynamoKeyType",
3442
+ # hash_key_field: "DynamoKeyField", # required
3443
+ # hash_key_value: "DynamoKeyValue", # required
3444
+ # range_key_type: "DynamoKeyType",
3445
+ # range_key_field: "DynamoKeyField",
3446
+ # range_key_value: "DynamoKeyValue",
3447
+ # operation: "DynamoOperation",
3448
+ # payload_field: "DynamoKeyField",
3449
+ # table_name: "DynamoTableName", # required
3450
+ # payload: {
3451
+ # content_expression: "ContentExpression", # required
3452
+ # type: "STRING", # required, accepts STRING, JSON
3453
+ # },
3454
+ # },
3455
+ # dynamo_d_bv_2: {
3456
+ # table_name: "DynamoTableName", # required
3457
+ # payload: {
3458
+ # content_expression: "ContentExpression", # required
3459
+ # type: "STRING", # required, accepts STRING, JSON
3460
+ # },
2252
3461
  # },
2253
3462
  # },
2254
3463
  # ],
@@ -2337,9 +3546,17 @@ module Aws::IoTEvents
2337
3546
  # },
2338
3547
  # sns: {
2339
3548
  # target_arn: "AmazonResourceName", # required
3549
+ # payload: {
3550
+ # content_expression: "ContentExpression", # required
3551
+ # type: "STRING", # required, accepts STRING, JSON
3552
+ # },
2340
3553
  # },
2341
3554
  # iot_topic_publish: {
2342
3555
  # mqtt_topic: "MQTTTopic", # required
3556
+ # payload: {
3557
+ # content_expression: "ContentExpression", # required
3558
+ # type: "STRING", # required, accepts STRING, JSON
3559
+ # },
2343
3560
  # },
2344
3561
  # set_timer: {
2345
3562
  # timer_name: "TimerName", # required
@@ -2354,17 +3571,55 @@ module Aws::IoTEvents
2354
3571
  # },
2355
3572
  # lambda: {
2356
3573
  # function_arn: "AmazonResourceName", # required
3574
+ # payload: {
3575
+ # content_expression: "ContentExpression", # required
3576
+ # type: "STRING", # required, accepts STRING, JSON
3577
+ # },
2357
3578
  # },
2358
3579
  # iot_events: {
2359
3580
  # input_name: "InputName", # required
3581
+ # payload: {
3582
+ # content_expression: "ContentExpression", # required
3583
+ # type: "STRING", # required, accepts STRING, JSON
3584
+ # },
2360
3585
  # },
2361
3586
  # sqs: {
2362
3587
  # queue_url: "QueueUrl", # required
2363
3588
  # use_base_64: false,
3589
+ # payload: {
3590
+ # content_expression: "ContentExpression", # required
3591
+ # type: "STRING", # required, accepts STRING, JSON
3592
+ # },
2364
3593
  # },
2365
3594
  # firehose: {
2366
3595
  # delivery_stream_name: "DeliveryStreamName", # required
2367
3596
  # separator: "FirehoseSeparator",
3597
+ # payload: {
3598
+ # content_expression: "ContentExpression", # required
3599
+ # type: "STRING", # required, accepts STRING, JSON
3600
+ # },
3601
+ # },
3602
+ # dynamo_db: {
3603
+ # hash_key_type: "DynamoKeyType",
3604
+ # hash_key_field: "DynamoKeyField", # required
3605
+ # hash_key_value: "DynamoKeyValue", # required
3606
+ # range_key_type: "DynamoKeyType",
3607
+ # range_key_field: "DynamoKeyField",
3608
+ # range_key_value: "DynamoKeyValue",
3609
+ # operation: "DynamoOperation",
3610
+ # payload_field: "DynamoKeyField",
3611
+ # table_name: "DynamoTableName", # required
3612
+ # payload: {
3613
+ # content_expression: "ContentExpression", # required
3614
+ # type: "STRING", # required, accepts STRING, JSON
3615
+ # },
3616
+ # },
3617
+ # dynamo_d_bv_2: {
3618
+ # table_name: "DynamoTableName", # required
3619
+ # payload: {
3620
+ # content_expression: "ContentExpression", # required
3621
+ # type: "STRING", # required, accepts STRING, JSON
3622
+ # },
2368
3623
  # },
2369
3624
  # },
2370
3625
  # ],
@@ -2382,9 +3637,17 @@ module Aws::IoTEvents
2382
3637
  # },
2383
3638
  # sns: {
2384
3639
  # target_arn: "AmazonResourceName", # required
3640
+ # payload: {
3641
+ # content_expression: "ContentExpression", # required
3642
+ # type: "STRING", # required, accepts STRING, JSON
3643
+ # },
2385
3644
  # },
2386
3645
  # iot_topic_publish: {
2387
3646
  # mqtt_topic: "MQTTTopic", # required
3647
+ # payload: {
3648
+ # content_expression: "ContentExpression", # required
3649
+ # type: "STRING", # required, accepts STRING, JSON
3650
+ # },
2388
3651
  # },
2389
3652
  # set_timer: {
2390
3653
  # timer_name: "TimerName", # required
@@ -2399,17 +3662,55 @@ module Aws::IoTEvents
2399
3662
  # },
2400
3663
  # lambda: {
2401
3664
  # function_arn: "AmazonResourceName", # required
3665
+ # payload: {
3666
+ # content_expression: "ContentExpression", # required
3667
+ # type: "STRING", # required, accepts STRING, JSON
3668
+ # },
2402
3669
  # },
2403
3670
  # iot_events: {
2404
3671
  # input_name: "InputName", # required
3672
+ # payload: {
3673
+ # content_expression: "ContentExpression", # required
3674
+ # type: "STRING", # required, accepts STRING, JSON
3675
+ # },
2405
3676
  # },
2406
3677
  # sqs: {
2407
3678
  # queue_url: "QueueUrl", # required
2408
3679
  # use_base_64: false,
3680
+ # payload: {
3681
+ # content_expression: "ContentExpression", # required
3682
+ # type: "STRING", # required, accepts STRING, JSON
3683
+ # },
2409
3684
  # },
2410
3685
  # firehose: {
2411
3686
  # delivery_stream_name: "DeliveryStreamName", # required
2412
3687
  # separator: "FirehoseSeparator",
3688
+ # payload: {
3689
+ # content_expression: "ContentExpression", # required
3690
+ # type: "STRING", # required, accepts STRING, JSON
3691
+ # },
3692
+ # },
3693
+ # dynamo_db: {
3694
+ # hash_key_type: "DynamoKeyType",
3695
+ # hash_key_field: "DynamoKeyField", # required
3696
+ # hash_key_value: "DynamoKeyValue", # required
3697
+ # range_key_type: "DynamoKeyType",
3698
+ # range_key_field: "DynamoKeyField",
3699
+ # range_key_value: "DynamoKeyValue",
3700
+ # operation: "DynamoOperation",
3701
+ # payload_field: "DynamoKeyField",
3702
+ # table_name: "DynamoTableName", # required
3703
+ # payload: {
3704
+ # content_expression: "ContentExpression", # required
3705
+ # type: "STRING", # required, accepts STRING, JSON
3706
+ # },
3707
+ # },
3708
+ # dynamo_d_bv_2: {
3709
+ # table_name: "DynamoTableName", # required
3710
+ # payload: {
3711
+ # content_expression: "ContentExpression", # required
3712
+ # type: "STRING", # required, accepts STRING, JSON
3713
+ # },
2413
3714
  # },
2414
3715
  # },
2415
3716
  # ],
@@ -2430,9 +3731,17 @@ module Aws::IoTEvents
2430
3731
  # },
2431
3732
  # sns: {
2432
3733
  # target_arn: "AmazonResourceName", # required
3734
+ # payload: {
3735
+ # content_expression: "ContentExpression", # required
3736
+ # type: "STRING", # required, accepts STRING, JSON
3737
+ # },
2433
3738
  # },
2434
3739
  # iot_topic_publish: {
2435
3740
  # mqtt_topic: "MQTTTopic", # required
3741
+ # payload: {
3742
+ # content_expression: "ContentExpression", # required
3743
+ # type: "STRING", # required, accepts STRING, JSON
3744
+ # },
2436
3745
  # },
2437
3746
  # set_timer: {
2438
3747
  # timer_name: "TimerName", # required
@@ -2447,17 +3756,55 @@ module Aws::IoTEvents
2447
3756
  # },
2448
3757
  # lambda: {
2449
3758
  # function_arn: "AmazonResourceName", # required
3759
+ # payload: {
3760
+ # content_expression: "ContentExpression", # required
3761
+ # type: "STRING", # required, accepts STRING, JSON
3762
+ # },
2450
3763
  # },
2451
3764
  # iot_events: {
2452
3765
  # input_name: "InputName", # required
3766
+ # payload: {
3767
+ # content_expression: "ContentExpression", # required
3768
+ # type: "STRING", # required, accepts STRING, JSON
3769
+ # },
2453
3770
  # },
2454
3771
  # sqs: {
2455
3772
  # queue_url: "QueueUrl", # required
2456
3773
  # use_base_64: false,
3774
+ # payload: {
3775
+ # content_expression: "ContentExpression", # required
3776
+ # type: "STRING", # required, accepts STRING, JSON
3777
+ # },
2457
3778
  # },
2458
3779
  # firehose: {
2459
3780
  # delivery_stream_name: "DeliveryStreamName", # required
2460
3781
  # separator: "FirehoseSeparator",
3782
+ # payload: {
3783
+ # content_expression: "ContentExpression", # required
3784
+ # type: "STRING", # required, accepts STRING, JSON
3785
+ # },
3786
+ # },
3787
+ # dynamo_db: {
3788
+ # hash_key_type: "DynamoKeyType",
3789
+ # hash_key_field: "DynamoKeyField", # required
3790
+ # hash_key_value: "DynamoKeyValue", # required
3791
+ # range_key_type: "DynamoKeyType",
3792
+ # range_key_field: "DynamoKeyField",
3793
+ # range_key_value: "DynamoKeyValue",
3794
+ # operation: "DynamoOperation",
3795
+ # payload_field: "DynamoKeyField",
3796
+ # table_name: "DynamoTableName", # required
3797
+ # payload: {
3798
+ # content_expression: "ContentExpression", # required
3799
+ # type: "STRING", # required, accepts STRING, JSON
3800
+ # },
3801
+ # },
3802
+ # dynamo_d_bv_2: {
3803
+ # table_name: "DynamoTableName", # required
3804
+ # payload: {
3805
+ # content_expression: "ContentExpression", # required
3806
+ # type: "STRING", # required, accepts STRING, JSON
3807
+ # },
2461
3808
  # },
2462
3809
  # },
2463
3810
  # ],
@@ -2477,9 +3824,17 @@ module Aws::IoTEvents
2477
3824
  # },
2478
3825
  # sns: {
2479
3826
  # target_arn: "AmazonResourceName", # required
3827
+ # payload: {
3828
+ # content_expression: "ContentExpression", # required
3829
+ # type: "STRING", # required, accepts STRING, JSON
3830
+ # },
2480
3831
  # },
2481
3832
  # iot_topic_publish: {
2482
3833
  # mqtt_topic: "MQTTTopic", # required
3834
+ # payload: {
3835
+ # content_expression: "ContentExpression", # required
3836
+ # type: "STRING", # required, accepts STRING, JSON
3837
+ # },
2483
3838
  # },
2484
3839
  # set_timer: {
2485
3840
  # timer_name: "TimerName", # required
@@ -2494,17 +3849,55 @@ module Aws::IoTEvents
2494
3849
  # },
2495
3850
  # lambda: {
2496
3851
  # function_arn: "AmazonResourceName", # required
3852
+ # payload: {
3853
+ # content_expression: "ContentExpression", # required
3854
+ # type: "STRING", # required, accepts STRING, JSON
3855
+ # },
2497
3856
  # },
2498
3857
  # iot_events: {
2499
3858
  # input_name: "InputName", # required
3859
+ # payload: {
3860
+ # content_expression: "ContentExpression", # required
3861
+ # type: "STRING", # required, accepts STRING, JSON
3862
+ # },
2500
3863
  # },
2501
3864
  # sqs: {
2502
3865
  # queue_url: "QueueUrl", # required
2503
3866
  # use_base_64: false,
3867
+ # payload: {
3868
+ # content_expression: "ContentExpression", # required
3869
+ # type: "STRING", # required, accepts STRING, JSON
3870
+ # },
2504
3871
  # },
2505
3872
  # firehose: {
2506
3873
  # delivery_stream_name: "DeliveryStreamName", # required
2507
3874
  # separator: "FirehoseSeparator",
3875
+ # payload: {
3876
+ # content_expression: "ContentExpression", # required
3877
+ # type: "STRING", # required, accepts STRING, JSON
3878
+ # },
3879
+ # },
3880
+ # dynamo_db: {
3881
+ # hash_key_type: "DynamoKeyType",
3882
+ # hash_key_field: "DynamoKeyField", # required
3883
+ # hash_key_value: "DynamoKeyValue", # required
3884
+ # range_key_type: "DynamoKeyType",
3885
+ # range_key_field: "DynamoKeyField",
3886
+ # range_key_value: "DynamoKeyValue",
3887
+ # operation: "DynamoOperation",
3888
+ # payload_field: "DynamoKeyField",
3889
+ # table_name: "DynamoTableName", # required
3890
+ # payload: {
3891
+ # content_expression: "ContentExpression", # required
3892
+ # type: "STRING", # required, accepts STRING, JSON
3893
+ # },
3894
+ # },
3895
+ # dynamo_d_bv_2: {
3896
+ # table_name: "DynamoTableName", # required
3897
+ # payload: {
3898
+ # content_expression: "ContentExpression", # required
3899
+ # type: "STRING", # required, accepts STRING, JSON
3900
+ # },
2508
3901
  # },
2509
3902
  # },
2510
3903
  # ],