aws-sdk-iotevents 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-iotevents.rb +1 -1
- data/lib/aws-sdk-iotevents/client.rb +149 -13
- data/lib/aws-sdk-iotevents/client_api.rb +26 -0
- data/lib/aws-sdk-iotevents/types.rb +474 -35
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93e89d590632a64f845d4a699801b970db2d643c
|
4
|
+
data.tar.gz: c548958faf942a5d3da2921f56abe6ffd4cf7257
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c14497ea6650ea3d911042176df6e65dd69b30f3c727829cdbf679e0667b8ac29334d1772ee18be81a82c63e1f07b8cfa33a8165eb3c780d1486593a42ec945
|
7
|
+
data.tar.gz: ef105d314504abb65ee3ea7c14c264a22dae0da1c6a3d1eaca0c285c77980789de79ea7e955893baa58cb519a0a04e2400e2665f0ba9d93bf9fa7bd0f84a1191
|
data/lib/aws-sdk-iotevents.rb
CHANGED
@@ -278,7 +278,7 @@ module Aws::IoTEvents
|
|
278
278
|
# perform its operations.
|
279
279
|
#
|
280
280
|
# @option params [Array<Types::Tag>] :tags
|
281
|
-
# Metadata
|
281
|
+
# Metadata that can be used to manage the detector model.
|
282
282
|
#
|
283
283
|
# @return [Types::CreateDetectorModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
284
284
|
#
|
@@ -319,6 +319,20 @@ module Aws::IoTEvents
|
|
319
319
|
# reset_timer: {
|
320
320
|
# timer_name: "TimerName", # required
|
321
321
|
# },
|
322
|
+
# lambda: {
|
323
|
+
# function_arn: "AmazonResourceName", # required
|
324
|
+
# },
|
325
|
+
# iot_events: {
|
326
|
+
# input_name: "InputName", # required
|
327
|
+
# },
|
328
|
+
# sqs: {
|
329
|
+
# queue_url: "QueueUrl", # required
|
330
|
+
# use_base_64: false,
|
331
|
+
# },
|
332
|
+
# firehose: {
|
333
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
334
|
+
# separator: "FirehoseSeparator",
|
335
|
+
# },
|
322
336
|
# },
|
323
337
|
# ],
|
324
338
|
# },
|
@@ -349,6 +363,20 @@ module Aws::IoTEvents
|
|
349
363
|
# reset_timer: {
|
350
364
|
# timer_name: "TimerName", # required
|
351
365
|
# },
|
366
|
+
# lambda: {
|
367
|
+
# function_arn: "AmazonResourceName", # required
|
368
|
+
# },
|
369
|
+
# iot_events: {
|
370
|
+
# input_name: "InputName", # required
|
371
|
+
# },
|
372
|
+
# sqs: {
|
373
|
+
# queue_url: "QueueUrl", # required
|
374
|
+
# use_base_64: false,
|
375
|
+
# },
|
376
|
+
# firehose: {
|
377
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
378
|
+
# separator: "FirehoseSeparator",
|
379
|
+
# },
|
352
380
|
# },
|
353
381
|
# ],
|
354
382
|
# next_state: "StateName", # required
|
@@ -382,6 +410,20 @@ module Aws::IoTEvents
|
|
382
410
|
# reset_timer: {
|
383
411
|
# timer_name: "TimerName", # required
|
384
412
|
# },
|
413
|
+
# lambda: {
|
414
|
+
# function_arn: "AmazonResourceName", # required
|
415
|
+
# },
|
416
|
+
# iot_events: {
|
417
|
+
# input_name: "InputName", # required
|
418
|
+
# },
|
419
|
+
# sqs: {
|
420
|
+
# queue_url: "QueueUrl", # required
|
421
|
+
# use_base_64: false,
|
422
|
+
# },
|
423
|
+
# firehose: {
|
424
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
425
|
+
# separator: "FirehoseSeparator",
|
426
|
+
# },
|
385
427
|
# },
|
386
428
|
# ],
|
387
429
|
# },
|
@@ -414,6 +456,20 @@ module Aws::IoTEvents
|
|
414
456
|
# reset_timer: {
|
415
457
|
# timer_name: "TimerName", # required
|
416
458
|
# },
|
459
|
+
# lambda: {
|
460
|
+
# function_arn: "AmazonResourceName", # required
|
461
|
+
# },
|
462
|
+
# iot_events: {
|
463
|
+
# input_name: "InputName", # required
|
464
|
+
# },
|
465
|
+
# sqs: {
|
466
|
+
# queue_url: "QueueUrl", # required
|
467
|
+
# use_base_64: false,
|
468
|
+
# },
|
469
|
+
# firehose: {
|
470
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
471
|
+
# separator: "FirehoseSeparator",
|
472
|
+
# },
|
417
473
|
# },
|
418
474
|
# ],
|
419
475
|
# },
|
@@ -465,7 +521,7 @@ module Aws::IoTEvents
|
|
465
521
|
# The definition of the input.
|
466
522
|
#
|
467
523
|
# @option params [Array<Types::Tag>] :tags
|
468
|
-
# Metadata
|
524
|
+
# Metadata that can be used to manage the input.
|
469
525
|
#
|
470
526
|
# @return [Types::CreateInputResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
471
527
|
#
|
@@ -531,7 +587,7 @@ module Aws::IoTEvents
|
|
531
587
|
# Deletes an input.
|
532
588
|
#
|
533
589
|
# @option params [required, String] :input_name
|
534
|
-
# The name of the input to
|
590
|
+
# The name of the input to delete.
|
535
591
|
#
|
536
592
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
537
593
|
#
|
@@ -548,7 +604,7 @@ module Aws::IoTEvents
|
|
548
604
|
req.send_request(options)
|
549
605
|
end
|
550
606
|
|
551
|
-
# Describes a detector model. If the `version` parameter is not
|
607
|
+
# Describes a detector model. If the `"version"` parameter is not
|
552
608
|
# specified, information about the latest version is returned.
|
553
609
|
#
|
554
610
|
# @option params [required, String] :detector_model_name
|
@@ -584,6 +640,12 @@ module Aws::IoTEvents
|
|
584
640
|
# resp.detector_model.detector_model_definition.states[0].on_input.events[0].actions[0].set_timer.seconds #=> Integer
|
585
641
|
# resp.detector_model.detector_model_definition.states[0].on_input.events[0].actions[0].clear_timer.timer_name #=> String
|
586
642
|
# resp.detector_model.detector_model_definition.states[0].on_input.events[0].actions[0].reset_timer.timer_name #=> String
|
643
|
+
# resp.detector_model.detector_model_definition.states[0].on_input.events[0].actions[0].lambda.function_arn #=> String
|
644
|
+
# resp.detector_model.detector_model_definition.states[0].on_input.events[0].actions[0].iot_events.input_name #=> String
|
645
|
+
# resp.detector_model.detector_model_definition.states[0].on_input.events[0].actions[0].sqs.queue_url #=> String
|
646
|
+
# resp.detector_model.detector_model_definition.states[0].on_input.events[0].actions[0].sqs.use_base_64 #=> Boolean
|
647
|
+
# resp.detector_model.detector_model_definition.states[0].on_input.events[0].actions[0].firehose.delivery_stream_name #=> String
|
648
|
+
# resp.detector_model.detector_model_definition.states[0].on_input.events[0].actions[0].firehose.separator #=> String
|
587
649
|
# resp.detector_model.detector_model_definition.states[0].on_input.transition_events #=> Array
|
588
650
|
# resp.detector_model.detector_model_definition.states[0].on_input.transition_events[0].event_name #=> String
|
589
651
|
# resp.detector_model.detector_model_definition.states[0].on_input.transition_events[0].condition #=> String
|
@@ -596,6 +658,12 @@ module Aws::IoTEvents
|
|
596
658
|
# resp.detector_model.detector_model_definition.states[0].on_input.transition_events[0].actions[0].set_timer.seconds #=> Integer
|
597
659
|
# resp.detector_model.detector_model_definition.states[0].on_input.transition_events[0].actions[0].clear_timer.timer_name #=> String
|
598
660
|
# resp.detector_model.detector_model_definition.states[0].on_input.transition_events[0].actions[0].reset_timer.timer_name #=> String
|
661
|
+
# resp.detector_model.detector_model_definition.states[0].on_input.transition_events[0].actions[0].lambda.function_arn #=> String
|
662
|
+
# resp.detector_model.detector_model_definition.states[0].on_input.transition_events[0].actions[0].iot_events.input_name #=> String
|
663
|
+
# resp.detector_model.detector_model_definition.states[0].on_input.transition_events[0].actions[0].sqs.queue_url #=> String
|
664
|
+
# resp.detector_model.detector_model_definition.states[0].on_input.transition_events[0].actions[0].sqs.use_base_64 #=> Boolean
|
665
|
+
# resp.detector_model.detector_model_definition.states[0].on_input.transition_events[0].actions[0].firehose.delivery_stream_name #=> String
|
666
|
+
# resp.detector_model.detector_model_definition.states[0].on_input.transition_events[0].actions[0].firehose.separator #=> String
|
599
667
|
# resp.detector_model.detector_model_definition.states[0].on_input.transition_events[0].next_state #=> String
|
600
668
|
# resp.detector_model.detector_model_definition.states[0].on_enter.events #=> Array
|
601
669
|
# resp.detector_model.detector_model_definition.states[0].on_enter.events[0].event_name #=> String
|
@@ -609,6 +677,12 @@ module Aws::IoTEvents
|
|
609
677
|
# resp.detector_model.detector_model_definition.states[0].on_enter.events[0].actions[0].set_timer.seconds #=> Integer
|
610
678
|
# resp.detector_model.detector_model_definition.states[0].on_enter.events[0].actions[0].clear_timer.timer_name #=> String
|
611
679
|
# resp.detector_model.detector_model_definition.states[0].on_enter.events[0].actions[0].reset_timer.timer_name #=> String
|
680
|
+
# resp.detector_model.detector_model_definition.states[0].on_enter.events[0].actions[0].lambda.function_arn #=> String
|
681
|
+
# resp.detector_model.detector_model_definition.states[0].on_enter.events[0].actions[0].iot_events.input_name #=> String
|
682
|
+
# resp.detector_model.detector_model_definition.states[0].on_enter.events[0].actions[0].sqs.queue_url #=> String
|
683
|
+
# resp.detector_model.detector_model_definition.states[0].on_enter.events[0].actions[0].sqs.use_base_64 #=> Boolean
|
684
|
+
# resp.detector_model.detector_model_definition.states[0].on_enter.events[0].actions[0].firehose.delivery_stream_name #=> String
|
685
|
+
# resp.detector_model.detector_model_definition.states[0].on_enter.events[0].actions[0].firehose.separator #=> String
|
612
686
|
# resp.detector_model.detector_model_definition.states[0].on_exit.events #=> Array
|
613
687
|
# resp.detector_model.detector_model_definition.states[0].on_exit.events[0].event_name #=> String
|
614
688
|
# resp.detector_model.detector_model_definition.states[0].on_exit.events[0].condition #=> String
|
@@ -621,6 +695,12 @@ module Aws::IoTEvents
|
|
621
695
|
# resp.detector_model.detector_model_definition.states[0].on_exit.events[0].actions[0].set_timer.seconds #=> Integer
|
622
696
|
# resp.detector_model.detector_model_definition.states[0].on_exit.events[0].actions[0].clear_timer.timer_name #=> String
|
623
697
|
# resp.detector_model.detector_model_definition.states[0].on_exit.events[0].actions[0].reset_timer.timer_name #=> String
|
698
|
+
# resp.detector_model.detector_model_definition.states[0].on_exit.events[0].actions[0].lambda.function_arn #=> String
|
699
|
+
# resp.detector_model.detector_model_definition.states[0].on_exit.events[0].actions[0].iot_events.input_name #=> String
|
700
|
+
# resp.detector_model.detector_model_definition.states[0].on_exit.events[0].actions[0].sqs.queue_url #=> String
|
701
|
+
# resp.detector_model.detector_model_definition.states[0].on_exit.events[0].actions[0].sqs.use_base_64 #=> Boolean
|
702
|
+
# resp.detector_model.detector_model_definition.states[0].on_exit.events[0].actions[0].firehose.delivery_stream_name #=> String
|
703
|
+
# resp.detector_model.detector_model_definition.states[0].on_exit.events[0].actions[0].firehose.separator #=> String
|
624
704
|
# resp.detector_model.detector_model_definition.initial_state_name #=> String
|
625
705
|
# resp.detector_model.detector_model_configuration.detector_model_name #=> String
|
626
706
|
# resp.detector_model.detector_model_configuration.detector_model_version #=> String
|
@@ -842,10 +922,10 @@ module Aws::IoTEvents
|
|
842
922
|
|
843
923
|
# Sets or updates the AWS IoT Events logging options.
|
844
924
|
#
|
845
|
-
#
|
846
|
-
#
|
847
|
-
#
|
848
|
-
#
|
925
|
+
# If you update the value of any `"loggingOptions"` field, it takes up
|
926
|
+
# to one minute for the change to take effect. Also, if you change the
|
927
|
+
# policy attached to the role you specified in the `"roleArn"` field
|
928
|
+
# (for example, to correct an invalid policy) it takes up to five
|
849
929
|
# minutes for that change to take effect.
|
850
930
|
#
|
851
931
|
# @option params [required, Types::LoggingOptions] :logging_options
|
@@ -876,8 +956,8 @@ module Aws::IoTEvents
|
|
876
956
|
req.send_request(options)
|
877
957
|
end
|
878
958
|
|
879
|
-
#
|
880
|
-
#
|
959
|
+
# Adds to or modifies the tags of the given resource. Tags are metadata
|
960
|
+
# that can be used to manage a resource.
|
881
961
|
#
|
882
962
|
# @option params [required, String] :resource_arn
|
883
963
|
# The ARN of the resource.
|
@@ -931,10 +1011,10 @@ module Aws::IoTEvents
|
|
931
1011
|
end
|
932
1012
|
|
933
1013
|
# Updates a detector model. Detectors (instances) spawned by the
|
934
|
-
# previous version
|
1014
|
+
# previous version are deleted and then re-created as new inputs arrive.
|
935
1015
|
#
|
936
1016
|
# @option params [required, String] :detector_model_name
|
937
|
-
# The name of the detector model
|
1017
|
+
# The name of the detector model that is updated.
|
938
1018
|
#
|
939
1019
|
# @option params [required, Types::DetectorModelDefinition] :detector_model_definition
|
940
1020
|
# Information that defines how a detector operates.
|
@@ -985,6 +1065,20 @@ module Aws::IoTEvents
|
|
985
1065
|
# reset_timer: {
|
986
1066
|
# timer_name: "TimerName", # required
|
987
1067
|
# },
|
1068
|
+
# lambda: {
|
1069
|
+
# function_arn: "AmazonResourceName", # required
|
1070
|
+
# },
|
1071
|
+
# iot_events: {
|
1072
|
+
# input_name: "InputName", # required
|
1073
|
+
# },
|
1074
|
+
# sqs: {
|
1075
|
+
# queue_url: "QueueUrl", # required
|
1076
|
+
# use_base_64: false,
|
1077
|
+
# },
|
1078
|
+
# firehose: {
|
1079
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
1080
|
+
# separator: "FirehoseSeparator",
|
1081
|
+
# },
|
988
1082
|
# },
|
989
1083
|
# ],
|
990
1084
|
# },
|
@@ -1015,6 +1109,20 @@ module Aws::IoTEvents
|
|
1015
1109
|
# reset_timer: {
|
1016
1110
|
# timer_name: "TimerName", # required
|
1017
1111
|
# },
|
1112
|
+
# lambda: {
|
1113
|
+
# function_arn: "AmazonResourceName", # required
|
1114
|
+
# },
|
1115
|
+
# iot_events: {
|
1116
|
+
# input_name: "InputName", # required
|
1117
|
+
# },
|
1118
|
+
# sqs: {
|
1119
|
+
# queue_url: "QueueUrl", # required
|
1120
|
+
# use_base_64: false,
|
1121
|
+
# },
|
1122
|
+
# firehose: {
|
1123
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
1124
|
+
# separator: "FirehoseSeparator",
|
1125
|
+
# },
|
1018
1126
|
# },
|
1019
1127
|
# ],
|
1020
1128
|
# next_state: "StateName", # required
|
@@ -1048,6 +1156,20 @@ module Aws::IoTEvents
|
|
1048
1156
|
# reset_timer: {
|
1049
1157
|
# timer_name: "TimerName", # required
|
1050
1158
|
# },
|
1159
|
+
# lambda: {
|
1160
|
+
# function_arn: "AmazonResourceName", # required
|
1161
|
+
# },
|
1162
|
+
# iot_events: {
|
1163
|
+
# input_name: "InputName", # required
|
1164
|
+
# },
|
1165
|
+
# sqs: {
|
1166
|
+
# queue_url: "QueueUrl", # required
|
1167
|
+
# use_base_64: false,
|
1168
|
+
# },
|
1169
|
+
# firehose: {
|
1170
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
1171
|
+
# separator: "FirehoseSeparator",
|
1172
|
+
# },
|
1051
1173
|
# },
|
1052
1174
|
# ],
|
1053
1175
|
# },
|
@@ -1080,6 +1202,20 @@ module Aws::IoTEvents
|
|
1080
1202
|
# reset_timer: {
|
1081
1203
|
# timer_name: "TimerName", # required
|
1082
1204
|
# },
|
1205
|
+
# lambda: {
|
1206
|
+
# function_arn: "AmazonResourceName", # required
|
1207
|
+
# },
|
1208
|
+
# iot_events: {
|
1209
|
+
# input_name: "InputName", # required
|
1210
|
+
# },
|
1211
|
+
# sqs: {
|
1212
|
+
# queue_url: "QueueUrl", # required
|
1213
|
+
# use_base_64: false,
|
1214
|
+
# },
|
1215
|
+
# firehose: {
|
1216
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
1217
|
+
# separator: "FirehoseSeparator",
|
1218
|
+
# },
|
1083
1219
|
# },
|
1084
1220
|
# ],
|
1085
1221
|
# },
|
@@ -1170,7 +1306,7 @@ module Aws::IoTEvents
|
|
1170
1306
|
params: params,
|
1171
1307
|
config: config)
|
1172
1308
|
context[:gem_name] = 'aws-sdk-iotevents'
|
1173
|
-
context[:gem_version] = '1.
|
1309
|
+
context[:gem_version] = '1.3.0'
|
1174
1310
|
Seahorse::Client::Request.new(handlers, context)
|
1175
1311
|
end
|
1176
1312
|
|
@@ -27,6 +27,7 @@ module Aws::IoTEvents
|
|
27
27
|
DeleteDetectorModelResponse = Shapes::StructureShape.new(name: 'DeleteDetectorModelResponse')
|
28
28
|
DeleteInputRequest = Shapes::StructureShape.new(name: 'DeleteInputRequest')
|
29
29
|
DeleteInputResponse = Shapes::StructureShape.new(name: 'DeleteInputResponse')
|
30
|
+
DeliveryStreamName = Shapes::StringShape.new(name: 'DeliveryStreamName')
|
30
31
|
DescribeDetectorModelRequest = Shapes::StructureShape.new(name: 'DescribeDetectorModelRequest')
|
31
32
|
DescribeDetectorModelResponse = Shapes::StructureShape.new(name: 'DescribeDetectorModelResponse')
|
32
33
|
DescribeInputRequest = Shapes::StructureShape.new(name: 'DescribeInputRequest')
|
@@ -50,6 +51,8 @@ module Aws::IoTEvents
|
|
50
51
|
Event = Shapes::StructureShape.new(name: 'Event')
|
51
52
|
EventName = Shapes::StringShape.new(name: 'EventName')
|
52
53
|
Events = Shapes::ListShape.new(name: 'Events')
|
54
|
+
FirehoseAction = Shapes::StructureShape.new(name: 'FirehoseAction')
|
55
|
+
FirehoseSeparator = Shapes::StringShape.new(name: 'FirehoseSeparator')
|
53
56
|
Input = Shapes::StructureShape.new(name: 'Input')
|
54
57
|
InputArn = Shapes::StringShape.new(name: 'InputArn')
|
55
58
|
InputConfiguration = Shapes::StructureShape.new(name: 'InputConfiguration')
|
@@ -61,8 +64,10 @@ module Aws::IoTEvents
|
|
61
64
|
InputSummary = Shapes::StructureShape.new(name: 'InputSummary')
|
62
65
|
InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
|
63
66
|
InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
|
67
|
+
IotEventsAction = Shapes::StructureShape.new(name: 'IotEventsAction')
|
64
68
|
IotTopicPublishAction = Shapes::StructureShape.new(name: 'IotTopicPublishAction')
|
65
69
|
KeyValue = Shapes::StringShape.new(name: 'KeyValue')
|
70
|
+
LambdaAction = Shapes::StructureShape.new(name: 'LambdaAction')
|
66
71
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
67
72
|
ListDetectorModelVersionsRequest = Shapes::StructureShape.new(name: 'ListDetectorModelVersionsRequest')
|
68
73
|
ListDetectorModelVersionsResponse = Shapes::StructureShape.new(name: 'ListDetectorModelVersionsResponse')
|
@@ -82,6 +87,7 @@ module Aws::IoTEvents
|
|
82
87
|
OnExitLifecycle = Shapes::StructureShape.new(name: 'OnExitLifecycle')
|
83
88
|
OnInputLifecycle = Shapes::StructureShape.new(name: 'OnInputLifecycle')
|
84
89
|
PutLoggingOptionsRequest = Shapes::StructureShape.new(name: 'PutLoggingOptionsRequest')
|
90
|
+
QueueUrl = Shapes::StringShape.new(name: 'QueueUrl')
|
85
91
|
ResetTimerAction = Shapes::StructureShape.new(name: 'ResetTimerAction')
|
86
92
|
ResourceAlreadyExistsException = Shapes::StructureShape.new(name: 'ResourceAlreadyExistsException')
|
87
93
|
ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
|
@@ -91,6 +97,7 @@ module Aws::IoTEvents
|
|
91
97
|
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
92
98
|
SetTimerAction = Shapes::StructureShape.new(name: 'SetTimerAction')
|
93
99
|
SetVariableAction = Shapes::StructureShape.new(name: 'SetVariableAction')
|
100
|
+
SqsAction = Shapes::StructureShape.new(name: 'SqsAction')
|
94
101
|
State = Shapes::StructureShape.new(name: 'State')
|
95
102
|
StateName = Shapes::StringShape.new(name: 'StateName')
|
96
103
|
States = Shapes::ListShape.new(name: 'States')
|
@@ -113,6 +120,7 @@ module Aws::IoTEvents
|
|
113
120
|
UpdateDetectorModelResponse = Shapes::StructureShape.new(name: 'UpdateDetectorModelResponse')
|
114
121
|
UpdateInputRequest = Shapes::StructureShape.new(name: 'UpdateInputRequest')
|
115
122
|
UpdateInputResponse = Shapes::StructureShape.new(name: 'UpdateInputResponse')
|
123
|
+
UseBase64 = Shapes::BooleanShape.new(name: 'UseBase64')
|
116
124
|
VariableName = Shapes::StringShape.new(name: 'VariableName')
|
117
125
|
VariableValue = Shapes::StringShape.new(name: 'VariableValue')
|
118
126
|
errorMessage = Shapes::StringShape.new(name: 'errorMessage')
|
@@ -125,6 +133,10 @@ module Aws::IoTEvents
|
|
125
133
|
Action.add_member(:set_timer, Shapes::ShapeRef.new(shape: SetTimerAction, location_name: "setTimer"))
|
126
134
|
Action.add_member(:clear_timer, Shapes::ShapeRef.new(shape: ClearTimerAction, location_name: "clearTimer"))
|
127
135
|
Action.add_member(:reset_timer, Shapes::ShapeRef.new(shape: ResetTimerAction, location_name: "resetTimer"))
|
136
|
+
Action.add_member(:lambda, Shapes::ShapeRef.new(shape: LambdaAction, location_name: "lambda"))
|
137
|
+
Action.add_member(:iot_events, Shapes::ShapeRef.new(shape: IotEventsAction, location_name: "iotEvents"))
|
138
|
+
Action.add_member(:sqs, Shapes::ShapeRef.new(shape: SqsAction, location_name: "sqs"))
|
139
|
+
Action.add_member(:firehose, Shapes::ShapeRef.new(shape: FirehoseAction, location_name: "firehose"))
|
128
140
|
Action.struct_class = Types::Action
|
129
141
|
|
130
142
|
Actions.member = Shapes::ShapeRef.new(shape: Action)
|
@@ -235,6 +247,10 @@ module Aws::IoTEvents
|
|
235
247
|
|
236
248
|
Events.member = Shapes::ShapeRef.new(shape: Event)
|
237
249
|
|
250
|
+
FirehoseAction.add_member(:delivery_stream_name, Shapes::ShapeRef.new(shape: DeliveryStreamName, required: true, location_name: "deliveryStreamName"))
|
251
|
+
FirehoseAction.add_member(:separator, Shapes::ShapeRef.new(shape: FirehoseSeparator, location_name: "separator"))
|
252
|
+
FirehoseAction.struct_class = Types::FirehoseAction
|
253
|
+
|
238
254
|
Input.add_member(:input_configuration, Shapes::ShapeRef.new(shape: InputConfiguration, location_name: "inputConfiguration"))
|
239
255
|
Input.add_member(:input_definition, Shapes::ShapeRef.new(shape: InputDefinition, location_name: "inputDefinition"))
|
240
256
|
Input.struct_class = Types::Input
|
@@ -266,9 +282,15 @@ module Aws::IoTEvents
|
|
266
282
|
InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
|
267
283
|
InvalidRequestException.struct_class = Types::InvalidRequestException
|
268
284
|
|
285
|
+
IotEventsAction.add_member(:input_name, Shapes::ShapeRef.new(shape: InputName, required: true, location_name: "inputName"))
|
286
|
+
IotEventsAction.struct_class = Types::IotEventsAction
|
287
|
+
|
269
288
|
IotTopicPublishAction.add_member(:mqtt_topic, Shapes::ShapeRef.new(shape: MQTTTopic, required: true, location_name: "mqttTopic"))
|
270
289
|
IotTopicPublishAction.struct_class = Types::IotTopicPublishAction
|
271
290
|
|
291
|
+
LambdaAction.add_member(:function_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "functionArn"))
|
292
|
+
LambdaAction.struct_class = Types::LambdaAction
|
293
|
+
|
272
294
|
LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
|
273
295
|
LimitExceededException.struct_class = Types::LimitExceededException
|
274
296
|
|
@@ -350,6 +372,10 @@ module Aws::IoTEvents
|
|
350
372
|
SetVariableAction.add_member(:value, Shapes::ShapeRef.new(shape: VariableValue, required: true, location_name: "value"))
|
351
373
|
SetVariableAction.struct_class = Types::SetVariableAction
|
352
374
|
|
375
|
+
SqsAction.add_member(:queue_url, Shapes::ShapeRef.new(shape: QueueUrl, required: true, location_name: "queueUrl"))
|
376
|
+
SqsAction.add_member(:use_base_64, Shapes::ShapeRef.new(shape: UseBase64, location_name: "useBase64"))
|
377
|
+
SqsAction.struct_class = Types::SqsAction
|
378
|
+
|
353
379
|
State.add_member(:state_name, Shapes::ShapeRef.new(shape: StateName, required: true, location_name: "stateName"))
|
354
380
|
State.add_member(:on_input, Shapes::ShapeRef.new(shape: OnInputLifecycle, location_name: "onInput"))
|
355
381
|
State.add_member(:on_enter, Shapes::ShapeRef.new(shape: OnEnterLifecycle, location_name: "onEnter"))
|
@@ -8,7 +8,7 @@
|
|
8
8
|
module Aws::IoTEvents
|
9
9
|
module Types
|
10
10
|
|
11
|
-
# An action to be performed when the `condition` is TRUE.
|
11
|
+
# An action to be performed when the `"condition"` is TRUE.
|
12
12
|
#
|
13
13
|
# @note When making an API call, you may pass Action
|
14
14
|
# data as a hash:
|
@@ -34,6 +34,20 @@ module Aws::IoTEvents
|
|
34
34
|
# reset_timer: {
|
35
35
|
# timer_name: "TimerName", # required
|
36
36
|
# },
|
37
|
+
# lambda: {
|
38
|
+
# function_arn: "AmazonResourceName", # required
|
39
|
+
# },
|
40
|
+
# iot_events: {
|
41
|
+
# input_name: "InputName", # required
|
42
|
+
# },
|
43
|
+
# sqs: {
|
44
|
+
# queue_url: "QueueUrl", # required
|
45
|
+
# use_base_64: false,
|
46
|
+
# },
|
47
|
+
# firehose: {
|
48
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
49
|
+
# separator: "FirehoseSeparator",
|
50
|
+
# },
|
37
51
|
# }
|
38
52
|
#
|
39
53
|
# @!attribute [rw] set_variable
|
@@ -46,7 +60,7 @@ module Aws::IoTEvents
|
|
46
60
|
#
|
47
61
|
# @!attribute [rw] iot_topic_publish
|
48
62
|
# Publishes an MQTT message with the given topic to the AWS IoT
|
49
|
-
#
|
63
|
+
# message broker.
|
50
64
|
# @return [Types::IotTopicPublishAction]
|
51
65
|
#
|
52
66
|
# @!attribute [rw] set_timer
|
@@ -61,13 +75,37 @@ module Aws::IoTEvents
|
|
61
75
|
# Information needed to reset the timer.
|
62
76
|
# @return [Types::ResetTimerAction]
|
63
77
|
#
|
78
|
+
# @!attribute [rw] lambda
|
79
|
+
# Calls a Lambda function, passing in information about the detector
|
80
|
+
# model instance and the event which triggered the action.
|
81
|
+
# @return [Types::LambdaAction]
|
82
|
+
#
|
83
|
+
# @!attribute [rw] iot_events
|
84
|
+
# Sends an IoT Events input, passing in information about the detector
|
85
|
+
# model instance and the event which triggered the action.
|
86
|
+
# @return [Types::IotEventsAction]
|
87
|
+
#
|
88
|
+
# @!attribute [rw] sqs
|
89
|
+
# Sends information about the detector model instance and the event
|
90
|
+
# which triggered the action to an AWS SQS queue.
|
91
|
+
# @return [Types::SqsAction]
|
92
|
+
#
|
93
|
+
# @!attribute [rw] firehose
|
94
|
+
# Sends information about the detector model instance and the event
|
95
|
+
# which triggered the action to a Kinesis Data Firehose stream.
|
96
|
+
# @return [Types::FirehoseAction]
|
97
|
+
#
|
64
98
|
class Action < Struct.new(
|
65
99
|
:set_variable,
|
66
100
|
:sns,
|
67
101
|
:iot_topic_publish,
|
68
102
|
:set_timer,
|
69
103
|
:clear_timer,
|
70
|
-
:reset_timer
|
104
|
+
:reset_timer,
|
105
|
+
:lambda,
|
106
|
+
:iot_events,
|
107
|
+
:sqs,
|
108
|
+
:firehose)
|
71
109
|
include Aws::Structure
|
72
110
|
end
|
73
111
|
|
@@ -92,7 +130,7 @@ module Aws::IoTEvents
|
|
92
130
|
# messages sent to the AWS IoT Events system (`BatchPutMessage`). Each
|
93
131
|
# such message contains a JSON payload, and the attribute (and its
|
94
132
|
# paired value) specified here are available for use in the
|
95
|
-
# `condition` expressions used by detectors.
|
133
|
+
# `"condition"` expressions used by detectors.
|
96
134
|
#
|
97
135
|
# Syntax: `<field-name>.<field-name>...`
|
98
136
|
# @return [String]
|
@@ -156,6 +194,20 @@ module Aws::IoTEvents
|
|
156
194
|
# reset_timer: {
|
157
195
|
# timer_name: "TimerName", # required
|
158
196
|
# },
|
197
|
+
# lambda: {
|
198
|
+
# function_arn: "AmazonResourceName", # required
|
199
|
+
# },
|
200
|
+
# iot_events: {
|
201
|
+
# input_name: "InputName", # required
|
202
|
+
# },
|
203
|
+
# sqs: {
|
204
|
+
# queue_url: "QueueUrl", # required
|
205
|
+
# use_base_64: false,
|
206
|
+
# },
|
207
|
+
# firehose: {
|
208
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
209
|
+
# separator: "FirehoseSeparator",
|
210
|
+
# },
|
159
211
|
# },
|
160
212
|
# ],
|
161
213
|
# },
|
@@ -186,6 +238,20 @@ module Aws::IoTEvents
|
|
186
238
|
# reset_timer: {
|
187
239
|
# timer_name: "TimerName", # required
|
188
240
|
# },
|
241
|
+
# lambda: {
|
242
|
+
# function_arn: "AmazonResourceName", # required
|
243
|
+
# },
|
244
|
+
# iot_events: {
|
245
|
+
# input_name: "InputName", # required
|
246
|
+
# },
|
247
|
+
# sqs: {
|
248
|
+
# queue_url: "QueueUrl", # required
|
249
|
+
# use_base_64: false,
|
250
|
+
# },
|
251
|
+
# firehose: {
|
252
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
253
|
+
# separator: "FirehoseSeparator",
|
254
|
+
# },
|
189
255
|
# },
|
190
256
|
# ],
|
191
257
|
# next_state: "StateName", # required
|
@@ -219,6 +285,20 @@ module Aws::IoTEvents
|
|
219
285
|
# reset_timer: {
|
220
286
|
# timer_name: "TimerName", # required
|
221
287
|
# },
|
288
|
+
# lambda: {
|
289
|
+
# function_arn: "AmazonResourceName", # required
|
290
|
+
# },
|
291
|
+
# iot_events: {
|
292
|
+
# input_name: "InputName", # required
|
293
|
+
# },
|
294
|
+
# sqs: {
|
295
|
+
# queue_url: "QueueUrl", # required
|
296
|
+
# use_base_64: false,
|
297
|
+
# },
|
298
|
+
# firehose: {
|
299
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
300
|
+
# separator: "FirehoseSeparator",
|
301
|
+
# },
|
222
302
|
# },
|
223
303
|
# ],
|
224
304
|
# },
|
@@ -251,6 +331,20 @@ module Aws::IoTEvents
|
|
251
331
|
# reset_timer: {
|
252
332
|
# timer_name: "TimerName", # required
|
253
333
|
# },
|
334
|
+
# lambda: {
|
335
|
+
# function_arn: "AmazonResourceName", # required
|
336
|
+
# },
|
337
|
+
# iot_events: {
|
338
|
+
# input_name: "InputName", # required
|
339
|
+
# },
|
340
|
+
# sqs: {
|
341
|
+
# queue_url: "QueueUrl", # required
|
342
|
+
# use_base_64: false,
|
343
|
+
# },
|
344
|
+
# firehose: {
|
345
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
346
|
+
# separator: "FirehoseSeparator",
|
347
|
+
# },
|
254
348
|
# },
|
255
349
|
# ],
|
256
350
|
# },
|
@@ -298,7 +392,7 @@ module Aws::IoTEvents
|
|
298
392
|
# @return [String]
|
299
393
|
#
|
300
394
|
# @!attribute [rw] tags
|
301
|
-
# Metadata
|
395
|
+
# Metadata that can be used to manage the detector model.
|
302
396
|
# @return [Array<Types::Tag>]
|
303
397
|
#
|
304
398
|
class CreateDetectorModelRequest < Struct.new(
|
@@ -354,7 +448,7 @@ module Aws::IoTEvents
|
|
354
448
|
# @return [Types::InputDefinition]
|
355
449
|
#
|
356
450
|
# @!attribute [rw] tags
|
357
|
-
# Metadata
|
451
|
+
# Metadata that can be used to manage the input.
|
358
452
|
# @return [Array<Types::Tag>]
|
359
453
|
#
|
360
454
|
class CreateInputRequest < Struct.new(
|
@@ -400,7 +494,7 @@ module Aws::IoTEvents
|
|
400
494
|
# }
|
401
495
|
#
|
402
496
|
# @!attribute [rw] input_name
|
403
|
-
# The name of the input to
|
497
|
+
# The name of the input to delete.
|
404
498
|
# @return [String]
|
405
499
|
#
|
406
500
|
class DeleteInputRequest < Struct.new(
|
@@ -614,6 +708,20 @@ module Aws::IoTEvents
|
|
614
708
|
# reset_timer: {
|
615
709
|
# timer_name: "TimerName", # required
|
616
710
|
# },
|
711
|
+
# lambda: {
|
712
|
+
# function_arn: "AmazonResourceName", # required
|
713
|
+
# },
|
714
|
+
# iot_events: {
|
715
|
+
# input_name: "InputName", # required
|
716
|
+
# },
|
717
|
+
# sqs: {
|
718
|
+
# queue_url: "QueueUrl", # required
|
719
|
+
# use_base_64: false,
|
720
|
+
# },
|
721
|
+
# firehose: {
|
722
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
723
|
+
# separator: "FirehoseSeparator",
|
724
|
+
# },
|
617
725
|
# },
|
618
726
|
# ],
|
619
727
|
# },
|
@@ -644,6 +752,20 @@ module Aws::IoTEvents
|
|
644
752
|
# reset_timer: {
|
645
753
|
# timer_name: "TimerName", # required
|
646
754
|
# },
|
755
|
+
# lambda: {
|
756
|
+
# function_arn: "AmazonResourceName", # required
|
757
|
+
# },
|
758
|
+
# iot_events: {
|
759
|
+
# input_name: "InputName", # required
|
760
|
+
# },
|
761
|
+
# sqs: {
|
762
|
+
# queue_url: "QueueUrl", # required
|
763
|
+
# use_base_64: false,
|
764
|
+
# },
|
765
|
+
# firehose: {
|
766
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
767
|
+
# separator: "FirehoseSeparator",
|
768
|
+
# },
|
647
769
|
# },
|
648
770
|
# ],
|
649
771
|
# next_state: "StateName", # required
|
@@ -677,6 +799,20 @@ module Aws::IoTEvents
|
|
677
799
|
# reset_timer: {
|
678
800
|
# timer_name: "TimerName", # required
|
679
801
|
# },
|
802
|
+
# lambda: {
|
803
|
+
# function_arn: "AmazonResourceName", # required
|
804
|
+
# },
|
805
|
+
# iot_events: {
|
806
|
+
# input_name: "InputName", # required
|
807
|
+
# },
|
808
|
+
# sqs: {
|
809
|
+
# queue_url: "QueueUrl", # required
|
810
|
+
# use_base_64: false,
|
811
|
+
# },
|
812
|
+
# firehose: {
|
813
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
814
|
+
# separator: "FirehoseSeparator",
|
815
|
+
# },
|
680
816
|
# },
|
681
817
|
# ],
|
682
818
|
# },
|
@@ -709,6 +845,20 @@ module Aws::IoTEvents
|
|
709
845
|
# reset_timer: {
|
710
846
|
# timer_name: "TimerName", # required
|
711
847
|
# },
|
848
|
+
# lambda: {
|
849
|
+
# function_arn: "AmazonResourceName", # required
|
850
|
+
# },
|
851
|
+
# iot_events: {
|
852
|
+
# input_name: "InputName", # required
|
853
|
+
# },
|
854
|
+
# sqs: {
|
855
|
+
# queue_url: "QueueUrl", # required
|
856
|
+
# use_base_64: false,
|
857
|
+
# },
|
858
|
+
# firehose: {
|
859
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
860
|
+
# separator: "FirehoseSeparator",
|
861
|
+
# },
|
712
862
|
# },
|
713
863
|
# ],
|
714
864
|
# },
|
@@ -797,8 +947,8 @@ module Aws::IoTEvents
|
|
797
947
|
include Aws::Structure
|
798
948
|
end
|
799
949
|
|
800
|
-
# Specifies the `actions` to be performed when the `condition`
|
801
|
-
# to TRUE.
|
950
|
+
# Specifies the `"actions"` to be performed when the `"condition"`
|
951
|
+
# evaluates to TRUE.
|
802
952
|
#
|
803
953
|
# @note When making an API call, you may pass Event
|
804
954
|
# data as a hash:
|
@@ -828,6 +978,20 @@ module Aws::IoTEvents
|
|
828
978
|
# reset_timer: {
|
829
979
|
# timer_name: "TimerName", # required
|
830
980
|
# },
|
981
|
+
# lambda: {
|
982
|
+
# function_arn: "AmazonResourceName", # required
|
983
|
+
# },
|
984
|
+
# iot_events: {
|
985
|
+
# input_name: "InputName", # required
|
986
|
+
# },
|
987
|
+
# sqs: {
|
988
|
+
# queue_url: "QueueUrl", # required
|
989
|
+
# use_base_64: false,
|
990
|
+
# },
|
991
|
+
# firehose: {
|
992
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
993
|
+
# separator: "FirehoseSeparator",
|
994
|
+
# },
|
831
995
|
# },
|
832
996
|
# ],
|
833
997
|
# }
|
@@ -838,9 +1002,9 @@ module Aws::IoTEvents
|
|
838
1002
|
#
|
839
1003
|
# @!attribute [rw] condition
|
840
1004
|
# \[Optional\] The Boolean expression that when TRUE causes the
|
841
|
-
# `actions` to be performed. If not present, the actions are
|
842
|
-
# (=TRUE); if the expression result is not a Boolean value
|
843
|
-
# are NOT performed (=FALSE).
|
1005
|
+
# `"actions"` to be performed. If not present, the actions are
|
1006
|
+
# performed (=TRUE); if the expression result is not a Boolean value,
|
1007
|
+
# the actions are NOT performed (=FALSE).
|
844
1008
|
# @return [String]
|
845
1009
|
#
|
846
1010
|
# @!attribute [rw] actions
|
@@ -854,6 +1018,35 @@ module Aws::IoTEvents
|
|
854
1018
|
include Aws::Structure
|
855
1019
|
end
|
856
1020
|
|
1021
|
+
# Sends information about the detector model instance and the event
|
1022
|
+
# which triggered the action to a Kinesis Data Firehose stream.
|
1023
|
+
#
|
1024
|
+
# @note When making an API call, you may pass FirehoseAction
|
1025
|
+
# data as a hash:
|
1026
|
+
#
|
1027
|
+
# {
|
1028
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
1029
|
+
# separator: "FirehoseSeparator",
|
1030
|
+
# }
|
1031
|
+
#
|
1032
|
+
# @!attribute [rw] delivery_stream_name
|
1033
|
+
# The name of the Kinesis Data Firehose stream where the data is
|
1034
|
+
# written.
|
1035
|
+
# @return [String]
|
1036
|
+
#
|
1037
|
+
# @!attribute [rw] separator
|
1038
|
+
# A character separator that is used to separate records written to
|
1039
|
+
# the Kinesis Data Firehose stream. Valid values are: '\\n'
|
1040
|
+
# (newline), '\\t' (tab), '\\r\\n' (Windows newline), ','
|
1041
|
+
# (comma).
|
1042
|
+
# @return [String]
|
1043
|
+
#
|
1044
|
+
class FirehoseAction < Struct.new(
|
1045
|
+
:delivery_stream_name,
|
1046
|
+
:separator)
|
1047
|
+
include Aws::Structure
|
1048
|
+
end
|
1049
|
+
|
857
1050
|
# Information about the input.
|
858
1051
|
#
|
859
1052
|
# @!attribute [rw] input_configuration
|
@@ -924,7 +1117,7 @@ module Aws::IoTEvents
|
|
924
1117
|
# input. Inputs are derived from messages sent to the AWS IoT Events
|
925
1118
|
# system using `BatchPutMessage`. Each such message contains a JSON
|
926
1119
|
# payload, and those attributes (and their paired values) specified
|
927
|
-
# here
|
1120
|
+
# here are available for use in the `"condition"` expressions used by
|
928
1121
|
# detectors that monitor this input.
|
929
1122
|
# @return [Array<Types::Attribute>]
|
930
1123
|
#
|
@@ -991,8 +1184,27 @@ module Aws::IoTEvents
|
|
991
1184
|
include Aws::Structure
|
992
1185
|
end
|
993
1186
|
|
1187
|
+
# Sends an IoT Events input, passing in information about the detector
|
1188
|
+
# model instance and the event which triggered the action.
|
1189
|
+
#
|
1190
|
+
# @note When making an API call, you may pass IotEventsAction
|
1191
|
+
# data as a hash:
|
1192
|
+
#
|
1193
|
+
# {
|
1194
|
+
# input_name: "InputName", # required
|
1195
|
+
# }
|
1196
|
+
#
|
1197
|
+
# @!attribute [rw] input_name
|
1198
|
+
# The name of the AWS IoT Events input where the data is sent.
|
1199
|
+
# @return [String]
|
1200
|
+
#
|
1201
|
+
class IotEventsAction < Struct.new(
|
1202
|
+
:input_name)
|
1203
|
+
include Aws::Structure
|
1204
|
+
end
|
1205
|
+
|
994
1206
|
# Information required to publish the MQTT message via the AWS IoT
|
995
|
-
#
|
1207
|
+
# message broker.
|
996
1208
|
#
|
997
1209
|
# @note When making an API call, you may pass IotTopicPublishAction
|
998
1210
|
# data as a hash:
|
@@ -1010,6 +1222,25 @@ module Aws::IoTEvents
|
|
1010
1222
|
include Aws::Structure
|
1011
1223
|
end
|
1012
1224
|
|
1225
|
+
# Calls a Lambda function, passing in information about the detector
|
1226
|
+
# model instance and the event which triggered the action.
|
1227
|
+
#
|
1228
|
+
# @note When making an API call, you may pass LambdaAction
|
1229
|
+
# data as a hash:
|
1230
|
+
#
|
1231
|
+
# {
|
1232
|
+
# function_arn: "AmazonResourceName", # required
|
1233
|
+
# }
|
1234
|
+
#
|
1235
|
+
# @!attribute [rw] function_arn
|
1236
|
+
# The ARN of the Lambda function which is executed.
|
1237
|
+
# @return [String]
|
1238
|
+
#
|
1239
|
+
class LambdaAction < Struct.new(
|
1240
|
+
:function_arn)
|
1241
|
+
include Aws::Structure
|
1242
|
+
end
|
1243
|
+
|
1013
1244
|
# A limit was exceeded.
|
1014
1245
|
#
|
1015
1246
|
# @!attribute [rw] message
|
@@ -1186,7 +1417,7 @@ module Aws::IoTEvents
|
|
1186
1417
|
# @return [String]
|
1187
1418
|
#
|
1188
1419
|
# @!attribute [rw] level
|
1189
|
-
# The logging level.
|
1420
|
+
# The logging level.
|
1190
1421
|
# @return [String]
|
1191
1422
|
#
|
1192
1423
|
# @!attribute [rw] enabled
|
@@ -1239,6 +1470,20 @@ module Aws::IoTEvents
|
|
1239
1470
|
# reset_timer: {
|
1240
1471
|
# timer_name: "TimerName", # required
|
1241
1472
|
# },
|
1473
|
+
# lambda: {
|
1474
|
+
# function_arn: "AmazonResourceName", # required
|
1475
|
+
# },
|
1476
|
+
# iot_events: {
|
1477
|
+
# input_name: "InputName", # required
|
1478
|
+
# },
|
1479
|
+
# sqs: {
|
1480
|
+
# queue_url: "QueueUrl", # required
|
1481
|
+
# use_base_64: false,
|
1482
|
+
# },
|
1483
|
+
# firehose: {
|
1484
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
1485
|
+
# separator: "FirehoseSeparator",
|
1486
|
+
# },
|
1242
1487
|
# },
|
1243
1488
|
# ],
|
1244
1489
|
# },
|
@@ -1247,7 +1492,7 @@ module Aws::IoTEvents
|
|
1247
1492
|
#
|
1248
1493
|
# @!attribute [rw] events
|
1249
1494
|
# Specifies the actions that are performed when the state is entered
|
1250
|
-
# and the `condition` is TRUE.
|
1495
|
+
# and the `"condition"` is TRUE.
|
1251
1496
|
# @return [Array<Types::Event>]
|
1252
1497
|
#
|
1253
1498
|
class OnEnterLifecycle < Struct.new(
|
@@ -1255,8 +1500,8 @@ module Aws::IoTEvents
|
|
1255
1500
|
include Aws::Structure
|
1256
1501
|
end
|
1257
1502
|
|
1258
|
-
# When exiting this state, perform these `actions` if the specified
|
1259
|
-
# `condition` is TRUE.
|
1503
|
+
# When exiting this state, perform these `"actions"` if the specified
|
1504
|
+
# `"condition"` is TRUE.
|
1260
1505
|
#
|
1261
1506
|
# @note When making an API call, you may pass OnExitLifecycle
|
1262
1507
|
# data as a hash:
|
@@ -1288,6 +1533,20 @@ module Aws::IoTEvents
|
|
1288
1533
|
# reset_timer: {
|
1289
1534
|
# timer_name: "TimerName", # required
|
1290
1535
|
# },
|
1536
|
+
# lambda: {
|
1537
|
+
# function_arn: "AmazonResourceName", # required
|
1538
|
+
# },
|
1539
|
+
# iot_events: {
|
1540
|
+
# input_name: "InputName", # required
|
1541
|
+
# },
|
1542
|
+
# sqs: {
|
1543
|
+
# queue_url: "QueueUrl", # required
|
1544
|
+
# use_base_64: false,
|
1545
|
+
# },
|
1546
|
+
# firehose: {
|
1547
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
1548
|
+
# separator: "FirehoseSeparator",
|
1549
|
+
# },
|
1291
1550
|
# },
|
1292
1551
|
# ],
|
1293
1552
|
# },
|
@@ -1295,8 +1554,8 @@ module Aws::IoTEvents
|
|
1295
1554
|
# }
|
1296
1555
|
#
|
1297
1556
|
# @!attribute [rw] events
|
1298
|
-
# Specifies the actions that are performed when the state is
|
1299
|
-
# and the `condition` is TRUE.
|
1557
|
+
# Specifies the `"actions"` that are performed when the state is
|
1558
|
+
# exited and the `"condition"` is TRUE.
|
1300
1559
|
# @return [Array<Types::Event>]
|
1301
1560
|
#
|
1302
1561
|
class OnExitLifecycle < Struct.new(
|
@@ -1304,7 +1563,7 @@ module Aws::IoTEvents
|
|
1304
1563
|
include Aws::Structure
|
1305
1564
|
end
|
1306
1565
|
|
1307
|
-
# Specifies the actions performed when the `condition` evaluates to
|
1566
|
+
# Specifies the actions performed when the `"condition"` evaluates to
|
1308
1567
|
# TRUE.
|
1309
1568
|
#
|
1310
1569
|
# @note When making an API call, you may pass OnInputLifecycle
|
@@ -1337,6 +1596,20 @@ module Aws::IoTEvents
|
|
1337
1596
|
# reset_timer: {
|
1338
1597
|
# timer_name: "TimerName", # required
|
1339
1598
|
# },
|
1599
|
+
# lambda: {
|
1600
|
+
# function_arn: "AmazonResourceName", # required
|
1601
|
+
# },
|
1602
|
+
# iot_events: {
|
1603
|
+
# input_name: "InputName", # required
|
1604
|
+
# },
|
1605
|
+
# sqs: {
|
1606
|
+
# queue_url: "QueueUrl", # required
|
1607
|
+
# use_base_64: false,
|
1608
|
+
# },
|
1609
|
+
# firehose: {
|
1610
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
1611
|
+
# separator: "FirehoseSeparator",
|
1612
|
+
# },
|
1340
1613
|
# },
|
1341
1614
|
# ],
|
1342
1615
|
# },
|
@@ -1367,6 +1640,20 @@ module Aws::IoTEvents
|
|
1367
1640
|
# reset_timer: {
|
1368
1641
|
# timer_name: "TimerName", # required
|
1369
1642
|
# },
|
1643
|
+
# lambda: {
|
1644
|
+
# function_arn: "AmazonResourceName", # required
|
1645
|
+
# },
|
1646
|
+
# iot_events: {
|
1647
|
+
# input_name: "InputName", # required
|
1648
|
+
# },
|
1649
|
+
# sqs: {
|
1650
|
+
# queue_url: "QueueUrl", # required
|
1651
|
+
# use_base_64: false,
|
1652
|
+
# },
|
1653
|
+
# firehose: {
|
1654
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
1655
|
+
# separator: "FirehoseSeparator",
|
1656
|
+
# },
|
1370
1657
|
# },
|
1371
1658
|
# ],
|
1372
1659
|
# next_state: "StateName", # required
|
@@ -1375,13 +1662,13 @@ module Aws::IoTEvents
|
|
1375
1662
|
# }
|
1376
1663
|
#
|
1377
1664
|
# @!attribute [rw] events
|
1378
|
-
# Specifies the actions performed when the `condition` evaluates to
|
1665
|
+
# Specifies the actions performed when the `"condition"` evaluates to
|
1379
1666
|
# TRUE.
|
1380
1667
|
# @return [Array<Types::Event>]
|
1381
1668
|
#
|
1382
1669
|
# @!attribute [rw] transition_events
|
1383
|
-
# Specifies the actions performed and the next state entered when a
|
1384
|
-
# `condition` evaluates to TRUE.
|
1670
|
+
# Specifies the actions performed, and the next state entered, when a
|
1671
|
+
# `"condition"` evaluates to TRUE.
|
1385
1672
|
# @return [Array<Types::TransitionEvent>]
|
1386
1673
|
#
|
1387
1674
|
class OnInputLifecycle < Struct.new(
|
@@ -1487,7 +1774,7 @@ module Aws::IoTEvents
|
|
1487
1774
|
# }
|
1488
1775
|
#
|
1489
1776
|
# @!attribute [rw] target_arn
|
1490
|
-
# The ARN of the Amazon SNS target
|
1777
|
+
# The ARN of the Amazon SNS target where the message is sent.
|
1491
1778
|
# @return [String]
|
1492
1779
|
#
|
1493
1780
|
class SNSTopicPublishAction < Struct.new(
|
@@ -1555,6 +1842,32 @@ module Aws::IoTEvents
|
|
1555
1842
|
include Aws::Structure
|
1556
1843
|
end
|
1557
1844
|
|
1845
|
+
# Sends information about the detector model instance and the event
|
1846
|
+
# which triggered the action to an AWS SQS queue.
|
1847
|
+
#
|
1848
|
+
# @note When making an API call, you may pass SqsAction
|
1849
|
+
# data as a hash:
|
1850
|
+
#
|
1851
|
+
# {
|
1852
|
+
# queue_url: "QueueUrl", # required
|
1853
|
+
# use_base_64: false,
|
1854
|
+
# }
|
1855
|
+
#
|
1856
|
+
# @!attribute [rw] queue_url
|
1857
|
+
# The URL of the SQS queue where the data is written.
|
1858
|
+
# @return [String]
|
1859
|
+
#
|
1860
|
+
# @!attribute [rw] use_base_64
|
1861
|
+
# Set this to TRUE if you want the data to be Base-64 encoded before
|
1862
|
+
# it is written to the queue. Otherwise, set this to FALSE.
|
1863
|
+
# @return [Boolean]
|
1864
|
+
#
|
1865
|
+
class SqsAction < Struct.new(
|
1866
|
+
:queue_url,
|
1867
|
+
:use_base_64)
|
1868
|
+
include Aws::Structure
|
1869
|
+
end
|
1870
|
+
|
1558
1871
|
# Information that defines a state of a detector.
|
1559
1872
|
#
|
1560
1873
|
# @note When making an API call, you may pass State
|
@@ -1589,6 +1902,20 @@ module Aws::IoTEvents
|
|
1589
1902
|
# reset_timer: {
|
1590
1903
|
# timer_name: "TimerName", # required
|
1591
1904
|
# },
|
1905
|
+
# lambda: {
|
1906
|
+
# function_arn: "AmazonResourceName", # required
|
1907
|
+
# },
|
1908
|
+
# iot_events: {
|
1909
|
+
# input_name: "InputName", # required
|
1910
|
+
# },
|
1911
|
+
# sqs: {
|
1912
|
+
# queue_url: "QueueUrl", # required
|
1913
|
+
# use_base_64: false,
|
1914
|
+
# },
|
1915
|
+
# firehose: {
|
1916
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
1917
|
+
# separator: "FirehoseSeparator",
|
1918
|
+
# },
|
1592
1919
|
# },
|
1593
1920
|
# ],
|
1594
1921
|
# },
|
@@ -1619,6 +1946,20 @@ module Aws::IoTEvents
|
|
1619
1946
|
# reset_timer: {
|
1620
1947
|
# timer_name: "TimerName", # required
|
1621
1948
|
# },
|
1949
|
+
# lambda: {
|
1950
|
+
# function_arn: "AmazonResourceName", # required
|
1951
|
+
# },
|
1952
|
+
# iot_events: {
|
1953
|
+
# input_name: "InputName", # required
|
1954
|
+
# },
|
1955
|
+
# sqs: {
|
1956
|
+
# queue_url: "QueueUrl", # required
|
1957
|
+
# use_base_64: false,
|
1958
|
+
# },
|
1959
|
+
# firehose: {
|
1960
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
1961
|
+
# separator: "FirehoseSeparator",
|
1962
|
+
# },
|
1622
1963
|
# },
|
1623
1964
|
# ],
|
1624
1965
|
# next_state: "StateName", # required
|
@@ -1652,6 +1993,20 @@ module Aws::IoTEvents
|
|
1652
1993
|
# reset_timer: {
|
1653
1994
|
# timer_name: "TimerName", # required
|
1654
1995
|
# },
|
1996
|
+
# lambda: {
|
1997
|
+
# function_arn: "AmazonResourceName", # required
|
1998
|
+
# },
|
1999
|
+
# iot_events: {
|
2000
|
+
# input_name: "InputName", # required
|
2001
|
+
# },
|
2002
|
+
# sqs: {
|
2003
|
+
# queue_url: "QueueUrl", # required
|
2004
|
+
# use_base_64: false,
|
2005
|
+
# },
|
2006
|
+
# firehose: {
|
2007
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
2008
|
+
# separator: "FirehoseSeparator",
|
2009
|
+
# },
|
1655
2010
|
# },
|
1656
2011
|
# ],
|
1657
2012
|
# },
|
@@ -1684,6 +2039,20 @@ module Aws::IoTEvents
|
|
1684
2039
|
# reset_timer: {
|
1685
2040
|
# timer_name: "TimerName", # required
|
1686
2041
|
# },
|
2042
|
+
# lambda: {
|
2043
|
+
# function_arn: "AmazonResourceName", # required
|
2044
|
+
# },
|
2045
|
+
# iot_events: {
|
2046
|
+
# input_name: "InputName", # required
|
2047
|
+
# },
|
2048
|
+
# sqs: {
|
2049
|
+
# queue_url: "QueueUrl", # required
|
2050
|
+
# use_base_64: false,
|
2051
|
+
# },
|
2052
|
+
# firehose: {
|
2053
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
2054
|
+
# separator: "FirehoseSeparator",
|
2055
|
+
# },
|
1687
2056
|
# },
|
1688
2057
|
# ],
|
1689
2058
|
# },
|
@@ -1696,18 +2065,18 @@ module Aws::IoTEvents
|
|
1696
2065
|
# @return [String]
|
1697
2066
|
#
|
1698
2067
|
# @!attribute [rw] on_input
|
1699
|
-
# When an input is received and the `condition` is TRUE, perform the
|
1700
|
-
# specified `actions`.
|
2068
|
+
# When an input is received and the `"condition"` is TRUE, perform the
|
2069
|
+
# specified `"actions"`.
|
1701
2070
|
# @return [Types::OnInputLifecycle]
|
1702
2071
|
#
|
1703
2072
|
# @!attribute [rw] on_enter
|
1704
|
-
# When entering this state, perform these `actions` if the
|
1705
|
-
# is TRUE.
|
2073
|
+
# When entering this state, perform these `"actions"` if the
|
2074
|
+
# `"condition"` is TRUE.
|
1706
2075
|
# @return [Types::OnEnterLifecycle]
|
1707
2076
|
#
|
1708
2077
|
# @!attribute [rw] on_exit
|
1709
|
-
# When exiting this state, perform these `actions` if the specified
|
1710
|
-
# `condition` is TRUE.
|
2078
|
+
# When exiting this state, perform these `"actions"` if the specified
|
2079
|
+
# `"condition"` is TRUE.
|
1711
2080
|
# @return [Types::OnExitLifecycle]
|
1712
2081
|
#
|
1713
2082
|
class State < Struct.new(
|
@@ -1718,7 +2087,7 @@ module Aws::IoTEvents
|
|
1718
2087
|
include Aws::Structure
|
1719
2088
|
end
|
1720
2089
|
|
1721
|
-
# Metadata
|
2090
|
+
# Metadata that can be used to manage the resource.
|
1722
2091
|
#
|
1723
2092
|
# @note When making an API call, you may pass Tag
|
1724
2093
|
# data as a hash:
|
@@ -1783,7 +2152,7 @@ module Aws::IoTEvents
|
|
1783
2152
|
end
|
1784
2153
|
|
1785
2154
|
# Specifies the actions performed and the next state entered when a
|
1786
|
-
# `condition` evaluates to TRUE.
|
2155
|
+
# `"condition"` evaluates to TRUE.
|
1787
2156
|
#
|
1788
2157
|
# @note When making an API call, you may pass TransitionEvent
|
1789
2158
|
# data as a hash:
|
@@ -1813,6 +2182,20 @@ module Aws::IoTEvents
|
|
1813
2182
|
# reset_timer: {
|
1814
2183
|
# timer_name: "TimerName", # required
|
1815
2184
|
# },
|
2185
|
+
# lambda: {
|
2186
|
+
# function_arn: "AmazonResourceName", # required
|
2187
|
+
# },
|
2188
|
+
# iot_events: {
|
2189
|
+
# input_name: "InputName", # required
|
2190
|
+
# },
|
2191
|
+
# sqs: {
|
2192
|
+
# queue_url: "QueueUrl", # required
|
2193
|
+
# use_base_64: false,
|
2194
|
+
# },
|
2195
|
+
# firehose: {
|
2196
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
2197
|
+
# separator: "FirehoseSeparator",
|
2198
|
+
# },
|
1816
2199
|
# },
|
1817
2200
|
# ],
|
1818
2201
|
# next_state: "StateName", # required
|
@@ -1824,7 +2207,7 @@ module Aws::IoTEvents
|
|
1824
2207
|
#
|
1825
2208
|
# @!attribute [rw] condition
|
1826
2209
|
# \[Required\] A Boolean expression that when TRUE causes the actions
|
1827
|
-
# to be performed and the `nextState` to be entered.
|
2210
|
+
# to be performed and the `"nextState"` to be entered.
|
1828
2211
|
# @return [String]
|
1829
2212
|
#
|
1830
2213
|
# @!attribute [rw] actions
|
@@ -1914,6 +2297,20 @@ module Aws::IoTEvents
|
|
1914
2297
|
# reset_timer: {
|
1915
2298
|
# timer_name: "TimerName", # required
|
1916
2299
|
# },
|
2300
|
+
# lambda: {
|
2301
|
+
# function_arn: "AmazonResourceName", # required
|
2302
|
+
# },
|
2303
|
+
# iot_events: {
|
2304
|
+
# input_name: "InputName", # required
|
2305
|
+
# },
|
2306
|
+
# sqs: {
|
2307
|
+
# queue_url: "QueueUrl", # required
|
2308
|
+
# use_base_64: false,
|
2309
|
+
# },
|
2310
|
+
# firehose: {
|
2311
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
2312
|
+
# separator: "FirehoseSeparator",
|
2313
|
+
# },
|
1917
2314
|
# },
|
1918
2315
|
# ],
|
1919
2316
|
# },
|
@@ -1944,6 +2341,20 @@ module Aws::IoTEvents
|
|
1944
2341
|
# reset_timer: {
|
1945
2342
|
# timer_name: "TimerName", # required
|
1946
2343
|
# },
|
2344
|
+
# lambda: {
|
2345
|
+
# function_arn: "AmazonResourceName", # required
|
2346
|
+
# },
|
2347
|
+
# iot_events: {
|
2348
|
+
# input_name: "InputName", # required
|
2349
|
+
# },
|
2350
|
+
# sqs: {
|
2351
|
+
# queue_url: "QueueUrl", # required
|
2352
|
+
# use_base_64: false,
|
2353
|
+
# },
|
2354
|
+
# firehose: {
|
2355
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
2356
|
+
# separator: "FirehoseSeparator",
|
2357
|
+
# },
|
1947
2358
|
# },
|
1948
2359
|
# ],
|
1949
2360
|
# next_state: "StateName", # required
|
@@ -1977,6 +2388,20 @@ module Aws::IoTEvents
|
|
1977
2388
|
# reset_timer: {
|
1978
2389
|
# timer_name: "TimerName", # required
|
1979
2390
|
# },
|
2391
|
+
# lambda: {
|
2392
|
+
# function_arn: "AmazonResourceName", # required
|
2393
|
+
# },
|
2394
|
+
# iot_events: {
|
2395
|
+
# input_name: "InputName", # required
|
2396
|
+
# },
|
2397
|
+
# sqs: {
|
2398
|
+
# queue_url: "QueueUrl", # required
|
2399
|
+
# use_base_64: false,
|
2400
|
+
# },
|
2401
|
+
# firehose: {
|
2402
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
2403
|
+
# separator: "FirehoseSeparator",
|
2404
|
+
# },
|
1980
2405
|
# },
|
1981
2406
|
# ],
|
1982
2407
|
# },
|
@@ -2009,6 +2434,20 @@ module Aws::IoTEvents
|
|
2009
2434
|
# reset_timer: {
|
2010
2435
|
# timer_name: "TimerName", # required
|
2011
2436
|
# },
|
2437
|
+
# lambda: {
|
2438
|
+
# function_arn: "AmazonResourceName", # required
|
2439
|
+
# },
|
2440
|
+
# iot_events: {
|
2441
|
+
# input_name: "InputName", # required
|
2442
|
+
# },
|
2443
|
+
# sqs: {
|
2444
|
+
# queue_url: "QueueUrl", # required
|
2445
|
+
# use_base_64: false,
|
2446
|
+
# },
|
2447
|
+
# firehose: {
|
2448
|
+
# delivery_stream_name: "DeliveryStreamName", # required
|
2449
|
+
# separator: "FirehoseSeparator",
|
2450
|
+
# },
|
2012
2451
|
# },
|
2013
2452
|
# ],
|
2014
2453
|
# },
|
@@ -2023,7 +2462,7 @@ module Aws::IoTEvents
|
|
2023
2462
|
# }
|
2024
2463
|
#
|
2025
2464
|
# @!attribute [rw] detector_model_name
|
2026
|
-
# The name of the detector model
|
2465
|
+
# The name of the detector model that is updated.
|
2027
2466
|
# @return [String]
|
2028
2467
|
#
|
2029
2468
|
# @!attribute [rw] detector_model_definition
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-iotevents
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|