aws-sdk-iotevents 1.19.0 → 1.24.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d10019fadca29151cc2a7f5f5dccd228f745c0e1ba23eafd048ba7cbda9e8d5
4
- data.tar.gz: 48c1b787bd8823ae30abf49fef4a98c18a63a7a11a96a592345ef0c2e632db63
3
+ metadata.gz: e706ccce48a9ad942029176c51724961ebde648bf4bb34e61ce228dc291ad9ad
4
+ data.tar.gz: b3fa17248c45a24d867ac337d9090f0423562b21e1285723e7e03a840d3a68eb
5
5
  SHA512:
6
- metadata.gz: a9ac3d14888165f9eccc2125373bec7f3b197b8b6095bbf83a9ebf683a0aeffa1ea9aa89210bf9d5a07d75e57ca6789452244f369fc9776cc7a4e3b0f771380d
7
- data.tar.gz: 8aa6a6d2fdf698266eeefb06b9fcf0e53fd48837abc80e2ae3e575ba7a77696a22251db87d11f9ca26750c76dca4eb76e7a0be2f580f1f76ee2389b124db97b7
6
+ metadata.gz: ee9bac7c226f1d921f2bd2076e329f291f31d90e6024ce520b3862fefa4c7320a0356883b087f8f00d6c5c772b3b59c52435b9b8ef36400e4722339c90e754a5
7
+ data.tar.gz: 936ea65b5bd7a7e34df4314ce40c7ac199832631140cb250772ec220ebcab11c52f028e5bc30e40a4ee7c5d35c4644b13288d397f277fee2ce381cc6b857c140
data/CHANGELOG.md ADDED
@@ -0,0 +1,133 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 1.24.0 (2021-05-27)
5
+ ------------------
6
+
7
+ * Feature - Releasing new APIs for AWS IoT Events Alarms
8
+
9
+ 1.23.0 (2021-03-10)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.22.0 (2021-02-23)
15
+ ------------------
16
+
17
+ * Feature - This release adds an Analyze feature to AWS IoT Events that lets customers analyze their detector models for runtime issues.
18
+
19
+ 1.21.0 (2021-02-02)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
24
+ 1.20.0 (2020-09-30)
25
+ ------------------
26
+
27
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
28
+
29
+ 1.19.0 (2020-09-15)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.18.0 (2020-08-25)
35
+ ------------------
36
+
37
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
38
+
39
+ 1.17.0 (2020-06-23)
40
+ ------------------
41
+
42
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
43
+
44
+ 1.16.1 (2020-06-11)
45
+ ------------------
46
+
47
+ * Issue - Republish previous version with correct dependency on `aws-sdk-core`.
48
+
49
+ 1.16.0 (2020-06-10)
50
+ ------------------
51
+
52
+ * Issue - This version has been yanked. (#2327).
53
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
54
+
55
+ 1.15.0 (2020-05-28)
56
+ ------------------
57
+
58
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
59
+
60
+ 1.14.0 (2020-05-07)
61
+ ------------------
62
+
63
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
64
+
65
+ 1.13.0 (2020-04-30)
66
+ ------------------
67
+
68
+ * Feature - Doc only update to correct APIs and related descriptions
69
+
70
+ 1.12.0 (2020-04-20)
71
+ ------------------
72
+
73
+ * Feature - API update that allows users to add AWS Iot SiteWise actions while creating Detector Model in AWS Iot Events
74
+
75
+ 1.11.0 (2020-04-16)
76
+ ------------------
77
+
78
+ * Feature - API update that allows users to customize event action payloads, and adds support for Amazon DynamoDB actions.
79
+
80
+ 1.10.0 (2020-03-10)
81
+ ------------------
82
+
83
+ * Feature - API update that adds a new parameter, durationExpression, to SetTimerAction, and deprecates seconds
84
+
85
+ 1.9.0 (2020-03-09)
86
+ ------------------
87
+
88
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
89
+
90
+ 1.8.0 (2020-02-24)
91
+ ------------------
92
+
93
+ * Feature - Documentation updates for iotcolumbo
94
+
95
+ 1.7.0 (2020-01-21)
96
+ ------------------
97
+
98
+ * Feature - Documentation updates for iotcolumbo
99
+
100
+ 1.6.0 (2019-10-23)
101
+ ------------------
102
+
103
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
104
+
105
+ 1.5.0 (2019-10-22)
106
+ ------------------
107
+
108
+ * Feature - Add support for new serial evaluation method for events in a detector model.
109
+
110
+ 1.4.0 (2019-07-25)
111
+ ------------------
112
+
113
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
114
+
115
+ 1.3.0 (2019-07-19)
116
+ ------------------
117
+
118
+ * Feature - Adds support for IoT Events, Lambda, SQS and Kinesis Firehose actions.
119
+
120
+ 1.2.0 (2019-07-01)
121
+ ------------------
122
+
123
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
124
+
125
+ 1.1.0 (2019-06-17)
126
+ ------------------
127
+
128
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
129
+
130
+ 1.0.0 (2019-05-30)
131
+ ------------------
132
+
133
+ * Feature - Initial release of `aws-sdk-iotevents`.
data/LICENSE.txt ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.24.0
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -28,7 +28,7 @@ require_relative 'aws-sdk-iotevents/customizations'
28
28
  # structure.
29
29
  #
30
30
  # io_t_events = Aws::IoTEvents::Client.new
31
- # resp = io_t_events.create_detector_model(params)
31
+ # resp = io_t_events.create_alarm_model(params)
32
32
  #
33
33
  # See {Client} for more information.
34
34
  #
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-iotevents/customizations'
48
48
  # @!group service
49
49
  module Aws::IoTEvents
50
50
 
51
- GEM_VERSION = '1.19.0'
51
+ GEM_VERSION = '1.24.0'
52
52
 
53
53
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -327,6 +327,259 @@ module Aws::IoTEvents
327
327
 
328
328
  # @!group API Operations
329
329
 
330
+ # Creates an alarm model to monitor an AWS IoT Events input attribute.
331
+ # You can use the alarm to get notified when the value is outside a
332
+ # specified range. For more information, see [Create an alarm model][1]
333
+ # in the *AWS IoT Events Developer Guide*.
334
+ #
335
+ #
336
+ #
337
+ # [1]: https://docs.aws.amazon.com/iotevents/latest/developerguide/create-alarms.html
338
+ #
339
+ # @option params [required, String] :alarm_model_name
340
+ # A unique name that helps you identify the alarm model. You can't
341
+ # change this name after you create the alarm model.
342
+ #
343
+ # @option params [String] :alarm_model_description
344
+ # A description that tells you what the alarm model detects.
345
+ #
346
+ # @option params [required, String] :role_arn
347
+ # The ARN of the IAM role that allows the alarm to perform actions and
348
+ # access AWS resources. For more information, see [Amazon Resource Names
349
+ # (ARNs)][1] in the *AWS General Reference*.
350
+ #
351
+ #
352
+ #
353
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
354
+ #
355
+ # @option params [Array<Types::Tag>] :tags
356
+ # A list of key-value pairs that contain metadata for the alarm model.
357
+ # The tags help you manage the alarm model. For more information, see
358
+ # [Tagging your AWS IoT Events resources][1] in the *AWS IoT Events
359
+ # Developer Guide*.
360
+ #
361
+ # You can create up to 50 tags for one alarm model.
362
+ #
363
+ #
364
+ #
365
+ # [1]: https://docs.aws.amazon.com/iotevents/latest/developerguide/tagging-iotevents.html
366
+ #
367
+ # @option params [String] :key
368
+ # An input attribute used as a key to create an alarm. AWS IoT Events
369
+ # routes [inputs][1] associated with this key to the alarm.
370
+ #
371
+ #
372
+ #
373
+ # [1]: https://docs.aws.amazon.com/iotevents/latest/apireference/API_Input.html
374
+ #
375
+ # @option params [Integer] :severity
376
+ # A non-negative integer that reflects the severity level of the alarm.
377
+ #
378
+ # @option params [required, Types::AlarmRule] :alarm_rule
379
+ # Defines when your alarm is invoked.
380
+ #
381
+ # @option params [Types::AlarmNotification] :alarm_notification
382
+ # Contains information about one or more notification actions.
383
+ #
384
+ # @option params [Types::AlarmEventActions] :alarm_event_actions
385
+ # Contains information about one or more alarm actions.
386
+ #
387
+ # @option params [Types::AlarmCapabilities] :alarm_capabilities
388
+ # Contains the configuration information of alarm state changes.
389
+ #
390
+ # @return [Types::CreateAlarmModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
391
+ #
392
+ # * {Types::CreateAlarmModelResponse#creation_time #creation_time} => Time
393
+ # * {Types::CreateAlarmModelResponse#alarm_model_arn #alarm_model_arn} => String
394
+ # * {Types::CreateAlarmModelResponse#alarm_model_version #alarm_model_version} => String
395
+ # * {Types::CreateAlarmModelResponse#last_update_time #last_update_time} => Time
396
+ # * {Types::CreateAlarmModelResponse#status #status} => String
397
+ #
398
+ # @example Request syntax with placeholder values
399
+ #
400
+ # resp = client.create_alarm_model({
401
+ # alarm_model_name: "AlarmModelName", # required
402
+ # alarm_model_description: "AlarmModelDescription",
403
+ # role_arn: "AmazonResourceName", # required
404
+ # tags: [
405
+ # {
406
+ # key: "TagKey", # required
407
+ # value: "TagValue", # required
408
+ # },
409
+ # ],
410
+ # key: "AttributeJsonPath",
411
+ # severity: 1,
412
+ # alarm_rule: { # required
413
+ # simple_rule: {
414
+ # input_property: "InputProperty", # required
415
+ # comparison_operator: "GREATER", # required, accepts GREATER, GREATER_OR_EQUAL, LESS, LESS_OR_EQUAL, EQUAL, NOT_EQUAL
416
+ # threshold: "Threshold", # required
417
+ # },
418
+ # },
419
+ # alarm_notification: {
420
+ # notification_actions: [
421
+ # {
422
+ # action: { # required
423
+ # lambda_action: {
424
+ # function_arn: "AmazonResourceName", # required
425
+ # payload: {
426
+ # content_expression: "ContentExpression", # required
427
+ # type: "STRING", # required, accepts STRING, JSON
428
+ # },
429
+ # },
430
+ # },
431
+ # sms_configurations: [
432
+ # {
433
+ # sender_id: "SMSSenderId",
434
+ # additional_message: "NotificationAdditionalMessage",
435
+ # recipients: [ # required
436
+ # {
437
+ # sso_identity: {
438
+ # identity_store_id: "IdentityStoreId", # required
439
+ # user_id: "SSOReferenceId",
440
+ # },
441
+ # },
442
+ # ],
443
+ # },
444
+ # ],
445
+ # email_configurations: [
446
+ # {
447
+ # from: "FromEmail", # required
448
+ # content: {
449
+ # subject: "EmailSubject",
450
+ # additional_message: "NotificationAdditionalMessage",
451
+ # },
452
+ # recipients: { # required
453
+ # to: [
454
+ # {
455
+ # sso_identity: {
456
+ # identity_store_id: "IdentityStoreId", # required
457
+ # user_id: "SSOReferenceId",
458
+ # },
459
+ # },
460
+ # ],
461
+ # },
462
+ # },
463
+ # ],
464
+ # },
465
+ # ],
466
+ # },
467
+ # alarm_event_actions: {
468
+ # alarm_actions: [
469
+ # {
470
+ # sns: {
471
+ # target_arn: "AmazonResourceName", # required
472
+ # payload: {
473
+ # content_expression: "ContentExpression", # required
474
+ # type: "STRING", # required, accepts STRING, JSON
475
+ # },
476
+ # },
477
+ # iot_topic_publish: {
478
+ # mqtt_topic: "MQTTTopic", # required
479
+ # payload: {
480
+ # content_expression: "ContentExpression", # required
481
+ # type: "STRING", # required, accepts STRING, JSON
482
+ # },
483
+ # },
484
+ # lambda: {
485
+ # function_arn: "AmazonResourceName", # required
486
+ # payload: {
487
+ # content_expression: "ContentExpression", # required
488
+ # type: "STRING", # required, accepts STRING, JSON
489
+ # },
490
+ # },
491
+ # iot_events: {
492
+ # input_name: "InputName", # required
493
+ # payload: {
494
+ # content_expression: "ContentExpression", # required
495
+ # type: "STRING", # required, accepts STRING, JSON
496
+ # },
497
+ # },
498
+ # sqs: {
499
+ # queue_url: "QueueUrl", # required
500
+ # use_base_64: false,
501
+ # payload: {
502
+ # content_expression: "ContentExpression", # required
503
+ # type: "STRING", # required, accepts STRING, JSON
504
+ # },
505
+ # },
506
+ # firehose: {
507
+ # delivery_stream_name: "DeliveryStreamName", # required
508
+ # separator: "FirehoseSeparator",
509
+ # payload: {
510
+ # content_expression: "ContentExpression", # required
511
+ # type: "STRING", # required, accepts STRING, JSON
512
+ # },
513
+ # },
514
+ # dynamo_db: {
515
+ # hash_key_type: "DynamoKeyType",
516
+ # hash_key_field: "DynamoKeyField", # required
517
+ # hash_key_value: "DynamoKeyValue", # required
518
+ # range_key_type: "DynamoKeyType",
519
+ # range_key_field: "DynamoKeyField",
520
+ # range_key_value: "DynamoKeyValue",
521
+ # operation: "DynamoOperation",
522
+ # payload_field: "DynamoKeyField",
523
+ # table_name: "DynamoTableName", # required
524
+ # payload: {
525
+ # content_expression: "ContentExpression", # required
526
+ # type: "STRING", # required, accepts STRING, JSON
527
+ # },
528
+ # },
529
+ # dynamo_d_bv_2: {
530
+ # table_name: "DynamoTableName", # required
531
+ # payload: {
532
+ # content_expression: "ContentExpression", # required
533
+ # type: "STRING", # required, accepts STRING, JSON
534
+ # },
535
+ # },
536
+ # iot_site_wise: {
537
+ # entry_id: "AssetPropertyEntryId",
538
+ # asset_id: "AssetId",
539
+ # property_id: "AssetPropertyId",
540
+ # property_alias: "AssetPropertyAlias",
541
+ # property_value: {
542
+ # value: {
543
+ # string_value: "AssetPropertyStringValue",
544
+ # integer_value: "AssetPropertyIntegerValue",
545
+ # double_value: "AssetPropertyDoubleValue",
546
+ # boolean_value: "AssetPropertyBooleanValue",
547
+ # },
548
+ # timestamp: {
549
+ # time_in_seconds: "AssetPropertyTimeInSeconds", # required
550
+ # offset_in_nanos: "AssetPropertyOffsetInNanos",
551
+ # },
552
+ # quality: "AssetPropertyQuality",
553
+ # },
554
+ # },
555
+ # },
556
+ # ],
557
+ # },
558
+ # alarm_capabilities: {
559
+ # initialization_configuration: {
560
+ # disabled_on_initialization: false, # required
561
+ # },
562
+ # acknowledge_flow: {
563
+ # enabled: false, # required
564
+ # },
565
+ # },
566
+ # })
567
+ #
568
+ # @example Response structure
569
+ #
570
+ # resp.creation_time #=> Time
571
+ # resp.alarm_model_arn #=> String
572
+ # resp.alarm_model_version #=> String
573
+ # resp.last_update_time #=> Time
574
+ # resp.status #=> String, one of "ACTIVE", "ACTIVATING", "INACTIVE", "FAILED"
575
+ #
576
+ # @overload create_alarm_model(params = {})
577
+ # @param [Hash] params ({})
578
+ def create_alarm_model(params = {}, options = {})
579
+ req = build_request(:create_alarm_model, params)
580
+ req.send_request(options)
581
+ end
582
+
330
583
  # Creates a detector model.
331
584
  #
332
585
  # @option params [required, String] :detector_model_name
@@ -462,8 +715,8 @@ module Aws::IoTEvents
462
715
  # asset_id: "AssetId",
463
716
  # property_id: "AssetPropertyId",
464
717
  # property_alias: "AssetPropertyAlias",
465
- # property_value: { # required
466
- # value: { # required
718
+ # property_value: {
719
+ # value: {
467
720
  # string_value: "AssetPropertyStringValue",
468
721
  # integer_value: "AssetPropertyIntegerValue",
469
722
  # double_value: "AssetPropertyDoubleValue",
@@ -572,8 +825,8 @@ module Aws::IoTEvents
572
825
  # asset_id: "AssetId",
573
826
  # property_id: "AssetPropertyId",
574
827
  # property_alias: "AssetPropertyAlias",
575
- # property_value: { # required
576
- # value: { # required
828
+ # property_value: {
829
+ # value: {
577
830
  # string_value: "AssetPropertyStringValue",
578
831
  # integer_value: "AssetPropertyIntegerValue",
579
832
  # double_value: "AssetPropertyDoubleValue",
@@ -685,8 +938,8 @@ module Aws::IoTEvents
685
938
  # asset_id: "AssetId",
686
939
  # property_id: "AssetPropertyId",
687
940
  # property_alias: "AssetPropertyAlias",
688
- # property_value: { # required
689
- # value: { # required
941
+ # property_value: {
942
+ # value: {
690
943
  # string_value: "AssetPropertyStringValue",
691
944
  # integer_value: "AssetPropertyIntegerValue",
692
945
  # double_value: "AssetPropertyDoubleValue",
@@ -797,8 +1050,8 @@ module Aws::IoTEvents
797
1050
  # asset_id: "AssetId",
798
1051
  # property_id: "AssetPropertyId",
799
1052
  # property_alias: "AssetPropertyAlias",
800
- # property_value: { # required
801
- # value: { # required
1053
+ # property_value: {
1054
+ # value: {
802
1055
  # string_value: "AssetPropertyStringValue",
803
1056
  # integer_value: "AssetPropertyIntegerValue",
804
1057
  # double_value: "AssetPropertyDoubleValue",
@@ -906,6 +1159,27 @@ module Aws::IoTEvents
906
1159
  req.send_request(options)
907
1160
  end
908
1161
 
1162
+ # Deletes an alarm model. Any alarm instances that were created based on
1163
+ # this alarm model are also deleted. This action can't be undone.
1164
+ #
1165
+ # @option params [required, String] :alarm_model_name
1166
+ # The name of the alarm model.
1167
+ #
1168
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1169
+ #
1170
+ # @example Request syntax with placeholder values
1171
+ #
1172
+ # resp = client.delete_alarm_model({
1173
+ # alarm_model_name: "AlarmModelName", # required
1174
+ # })
1175
+ #
1176
+ # @overload delete_alarm_model(params = {})
1177
+ # @param [Hash] params ({})
1178
+ def delete_alarm_model(params = {}, options = {})
1179
+ req = build_request(:delete_alarm_model, params)
1180
+ req.send_request(options)
1181
+ end
1182
+
909
1183
  # Deletes a detector model. Any active instances of the detector model
910
1184
  # are also deleted.
911
1185
  #
@@ -947,6 +1221,130 @@ module Aws::IoTEvents
947
1221
  req.send_request(options)
948
1222
  end
949
1223
 
1224
+ # Retrieves information about an alarm model. If you don't specify a
1225
+ # value for the `alarmModelVersion` parameter, the latest version is
1226
+ # returned.
1227
+ #
1228
+ # @option params [required, String] :alarm_model_name
1229
+ # The name of the alarm model.
1230
+ #
1231
+ # @option params [String] :alarm_model_version
1232
+ # The version of the alarm model.
1233
+ #
1234
+ # @return [Types::DescribeAlarmModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1235
+ #
1236
+ # * {Types::DescribeAlarmModelResponse#creation_time #creation_time} => Time
1237
+ # * {Types::DescribeAlarmModelResponse#alarm_model_arn #alarm_model_arn} => String
1238
+ # * {Types::DescribeAlarmModelResponse#alarm_model_version #alarm_model_version} => String
1239
+ # * {Types::DescribeAlarmModelResponse#last_update_time #last_update_time} => Time
1240
+ # * {Types::DescribeAlarmModelResponse#status #status} => String
1241
+ # * {Types::DescribeAlarmModelResponse#status_message #status_message} => String
1242
+ # * {Types::DescribeAlarmModelResponse#alarm_model_name #alarm_model_name} => String
1243
+ # * {Types::DescribeAlarmModelResponse#alarm_model_description #alarm_model_description} => String
1244
+ # * {Types::DescribeAlarmModelResponse#role_arn #role_arn} => String
1245
+ # * {Types::DescribeAlarmModelResponse#key #key} => String
1246
+ # * {Types::DescribeAlarmModelResponse#severity #severity} => Integer
1247
+ # * {Types::DescribeAlarmModelResponse#alarm_rule #alarm_rule} => Types::AlarmRule
1248
+ # * {Types::DescribeAlarmModelResponse#alarm_notification #alarm_notification} => Types::AlarmNotification
1249
+ # * {Types::DescribeAlarmModelResponse#alarm_event_actions #alarm_event_actions} => Types::AlarmEventActions
1250
+ # * {Types::DescribeAlarmModelResponse#alarm_capabilities #alarm_capabilities} => Types::AlarmCapabilities
1251
+ #
1252
+ # @example Request syntax with placeholder values
1253
+ #
1254
+ # resp = client.describe_alarm_model({
1255
+ # alarm_model_name: "AlarmModelName", # required
1256
+ # alarm_model_version: "AlarmModelVersion",
1257
+ # })
1258
+ #
1259
+ # @example Response structure
1260
+ #
1261
+ # resp.creation_time #=> Time
1262
+ # resp.alarm_model_arn #=> String
1263
+ # resp.alarm_model_version #=> String
1264
+ # resp.last_update_time #=> Time
1265
+ # resp.status #=> String, one of "ACTIVE", "ACTIVATING", "INACTIVE", "FAILED"
1266
+ # resp.status_message #=> String
1267
+ # resp.alarm_model_name #=> String
1268
+ # resp.alarm_model_description #=> String
1269
+ # resp.role_arn #=> String
1270
+ # resp.key #=> String
1271
+ # resp.severity #=> Integer
1272
+ # resp.alarm_rule.simple_rule.input_property #=> String
1273
+ # resp.alarm_rule.simple_rule.comparison_operator #=> String, one of "GREATER", "GREATER_OR_EQUAL", "LESS", "LESS_OR_EQUAL", "EQUAL", "NOT_EQUAL"
1274
+ # resp.alarm_rule.simple_rule.threshold #=> String
1275
+ # resp.alarm_notification.notification_actions #=> Array
1276
+ # resp.alarm_notification.notification_actions[0].action.lambda_action.function_arn #=> String
1277
+ # resp.alarm_notification.notification_actions[0].action.lambda_action.payload.content_expression #=> String
1278
+ # resp.alarm_notification.notification_actions[0].action.lambda_action.payload.type #=> String, one of "STRING", "JSON"
1279
+ # resp.alarm_notification.notification_actions[0].sms_configurations #=> Array
1280
+ # resp.alarm_notification.notification_actions[0].sms_configurations[0].sender_id #=> String
1281
+ # resp.alarm_notification.notification_actions[0].sms_configurations[0].additional_message #=> String
1282
+ # resp.alarm_notification.notification_actions[0].sms_configurations[0].recipients #=> Array
1283
+ # resp.alarm_notification.notification_actions[0].sms_configurations[0].recipients[0].sso_identity.identity_store_id #=> String
1284
+ # resp.alarm_notification.notification_actions[0].sms_configurations[0].recipients[0].sso_identity.user_id #=> String
1285
+ # resp.alarm_notification.notification_actions[0].email_configurations #=> Array
1286
+ # resp.alarm_notification.notification_actions[0].email_configurations[0].from #=> String
1287
+ # resp.alarm_notification.notification_actions[0].email_configurations[0].content.subject #=> String
1288
+ # resp.alarm_notification.notification_actions[0].email_configurations[0].content.additional_message #=> String
1289
+ # resp.alarm_notification.notification_actions[0].email_configurations[0].recipients.to #=> Array
1290
+ # resp.alarm_notification.notification_actions[0].email_configurations[0].recipients.to[0].sso_identity.identity_store_id #=> String
1291
+ # resp.alarm_notification.notification_actions[0].email_configurations[0].recipients.to[0].sso_identity.user_id #=> String
1292
+ # resp.alarm_event_actions.alarm_actions #=> Array
1293
+ # resp.alarm_event_actions.alarm_actions[0].sns.target_arn #=> String
1294
+ # resp.alarm_event_actions.alarm_actions[0].sns.payload.content_expression #=> String
1295
+ # resp.alarm_event_actions.alarm_actions[0].sns.payload.type #=> String, one of "STRING", "JSON"
1296
+ # resp.alarm_event_actions.alarm_actions[0].iot_topic_publish.mqtt_topic #=> String
1297
+ # resp.alarm_event_actions.alarm_actions[0].iot_topic_publish.payload.content_expression #=> String
1298
+ # resp.alarm_event_actions.alarm_actions[0].iot_topic_publish.payload.type #=> String, one of "STRING", "JSON"
1299
+ # resp.alarm_event_actions.alarm_actions[0].lambda.function_arn #=> String
1300
+ # resp.alarm_event_actions.alarm_actions[0].lambda.payload.content_expression #=> String
1301
+ # resp.alarm_event_actions.alarm_actions[0].lambda.payload.type #=> String, one of "STRING", "JSON"
1302
+ # resp.alarm_event_actions.alarm_actions[0].iot_events.input_name #=> String
1303
+ # resp.alarm_event_actions.alarm_actions[0].iot_events.payload.content_expression #=> String
1304
+ # resp.alarm_event_actions.alarm_actions[0].iot_events.payload.type #=> String, one of "STRING", "JSON"
1305
+ # resp.alarm_event_actions.alarm_actions[0].sqs.queue_url #=> String
1306
+ # resp.alarm_event_actions.alarm_actions[0].sqs.use_base_64 #=> Boolean
1307
+ # resp.alarm_event_actions.alarm_actions[0].sqs.payload.content_expression #=> String
1308
+ # resp.alarm_event_actions.alarm_actions[0].sqs.payload.type #=> String, one of "STRING", "JSON"
1309
+ # resp.alarm_event_actions.alarm_actions[0].firehose.delivery_stream_name #=> String
1310
+ # resp.alarm_event_actions.alarm_actions[0].firehose.separator #=> String
1311
+ # resp.alarm_event_actions.alarm_actions[0].firehose.payload.content_expression #=> String
1312
+ # resp.alarm_event_actions.alarm_actions[0].firehose.payload.type #=> String, one of "STRING", "JSON"
1313
+ # resp.alarm_event_actions.alarm_actions[0].dynamo_db.hash_key_type #=> String
1314
+ # resp.alarm_event_actions.alarm_actions[0].dynamo_db.hash_key_field #=> String
1315
+ # resp.alarm_event_actions.alarm_actions[0].dynamo_db.hash_key_value #=> String
1316
+ # resp.alarm_event_actions.alarm_actions[0].dynamo_db.range_key_type #=> String
1317
+ # resp.alarm_event_actions.alarm_actions[0].dynamo_db.range_key_field #=> String
1318
+ # resp.alarm_event_actions.alarm_actions[0].dynamo_db.range_key_value #=> String
1319
+ # resp.alarm_event_actions.alarm_actions[0].dynamo_db.operation #=> String
1320
+ # resp.alarm_event_actions.alarm_actions[0].dynamo_db.payload_field #=> String
1321
+ # resp.alarm_event_actions.alarm_actions[0].dynamo_db.table_name #=> String
1322
+ # resp.alarm_event_actions.alarm_actions[0].dynamo_db.payload.content_expression #=> String
1323
+ # resp.alarm_event_actions.alarm_actions[0].dynamo_db.payload.type #=> String, one of "STRING", "JSON"
1324
+ # resp.alarm_event_actions.alarm_actions[0].dynamo_d_bv_2.table_name #=> String
1325
+ # resp.alarm_event_actions.alarm_actions[0].dynamo_d_bv_2.payload.content_expression #=> String
1326
+ # resp.alarm_event_actions.alarm_actions[0].dynamo_d_bv_2.payload.type #=> String, one of "STRING", "JSON"
1327
+ # resp.alarm_event_actions.alarm_actions[0].iot_site_wise.entry_id #=> String
1328
+ # resp.alarm_event_actions.alarm_actions[0].iot_site_wise.asset_id #=> String
1329
+ # resp.alarm_event_actions.alarm_actions[0].iot_site_wise.property_id #=> String
1330
+ # resp.alarm_event_actions.alarm_actions[0].iot_site_wise.property_alias #=> String
1331
+ # resp.alarm_event_actions.alarm_actions[0].iot_site_wise.property_value.value.string_value #=> String
1332
+ # resp.alarm_event_actions.alarm_actions[0].iot_site_wise.property_value.value.integer_value #=> String
1333
+ # resp.alarm_event_actions.alarm_actions[0].iot_site_wise.property_value.value.double_value #=> String
1334
+ # resp.alarm_event_actions.alarm_actions[0].iot_site_wise.property_value.value.boolean_value #=> String
1335
+ # resp.alarm_event_actions.alarm_actions[0].iot_site_wise.property_value.timestamp.time_in_seconds #=> String
1336
+ # resp.alarm_event_actions.alarm_actions[0].iot_site_wise.property_value.timestamp.offset_in_nanos #=> String
1337
+ # resp.alarm_event_actions.alarm_actions[0].iot_site_wise.property_value.quality #=> String
1338
+ # resp.alarm_capabilities.initialization_configuration.disabled_on_initialization #=> Boolean
1339
+ # resp.alarm_capabilities.acknowledge_flow.enabled #=> Boolean
1340
+ #
1341
+ # @overload describe_alarm_model(params = {})
1342
+ # @param [Hash] params ({})
1343
+ def describe_alarm_model(params = {}, options = {})
1344
+ req = build_request(:describe_alarm_model, params)
1345
+ req.send_request(options)
1346
+ end
1347
+
950
1348
  # Describes a detector model. If the `version` parameter is not
951
1349
  # specified, information about the latest version is returned.
952
1350
  #
@@ -1215,6 +1613,37 @@ module Aws::IoTEvents
1215
1613
  req.send_request(options)
1216
1614
  end
1217
1615
 
1616
+ # Retrieves runtime information about a detector model analysis.
1617
+ #
1618
+ # <note markdown="1"> After AWS IoT Events starts analyzing your detector model, you have up
1619
+ # to 24 hours to retrieve the analysis results.
1620
+ #
1621
+ # </note>
1622
+ #
1623
+ # @option params [required, String] :analysis_id
1624
+ # The ID of the analysis result that you want to retrieve.
1625
+ #
1626
+ # @return [Types::DescribeDetectorModelAnalysisResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1627
+ #
1628
+ # * {Types::DescribeDetectorModelAnalysisResponse#status #status} => String
1629
+ #
1630
+ # @example Request syntax with placeholder values
1631
+ #
1632
+ # resp = client.describe_detector_model_analysis({
1633
+ # analysis_id: "AnalysisId", # required
1634
+ # })
1635
+ #
1636
+ # @example Response structure
1637
+ #
1638
+ # resp.status #=> String, one of "RUNNING", "COMPLETE", "FAILED"
1639
+ #
1640
+ # @overload describe_detector_model_analysis(params = {})
1641
+ # @param [Hash] params ({})
1642
+ def describe_detector_model_analysis(params = {}, options = {})
1643
+ req = build_request(:describe_detector_model_analysis, params)
1644
+ req.send_request(options)
1645
+ end
1646
+
1218
1647
  # Describes an input.
1219
1648
  #
1220
1649
  # @option params [required, String] :input_name
@@ -1270,6 +1699,133 @@ module Aws::IoTEvents
1270
1699
  req.send_request(options)
1271
1700
  end
1272
1701
 
1702
+ # Retrieves one or more analysis results of the detector model.
1703
+ #
1704
+ # <note markdown="1"> After AWS IoT Events starts analyzing your detector model, you have up
1705
+ # to 24 hours to retrieve the analysis results.
1706
+ #
1707
+ # </note>
1708
+ #
1709
+ # @option params [required, String] :analysis_id
1710
+ # The ID of the analysis result that you want to retrieve.
1711
+ #
1712
+ # @option params [String] :next_token
1713
+ # The token that you can use to return the next set of results.
1714
+ #
1715
+ # @option params [Integer] :max_results
1716
+ # The maximum number of results to be returned per request.
1717
+ #
1718
+ # @return [Types::GetDetectorModelAnalysisResultsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1719
+ #
1720
+ # * {Types::GetDetectorModelAnalysisResultsResponse#analysis_results #analysis_results} => Array&lt;Types::AnalysisResult&gt;
1721
+ # * {Types::GetDetectorModelAnalysisResultsResponse#next_token #next_token} => String
1722
+ #
1723
+ # @example Request syntax with placeholder values
1724
+ #
1725
+ # resp = client.get_detector_model_analysis_results({
1726
+ # analysis_id: "AnalysisId", # required
1727
+ # next_token: "NextToken",
1728
+ # max_results: 1,
1729
+ # })
1730
+ #
1731
+ # @example Response structure
1732
+ #
1733
+ # resp.analysis_results #=> Array
1734
+ # resp.analysis_results[0].type #=> String
1735
+ # resp.analysis_results[0].level #=> String, one of "INFO", "WARNING", "ERROR"
1736
+ # resp.analysis_results[0].message #=> String
1737
+ # resp.analysis_results[0].locations #=> Array
1738
+ # resp.analysis_results[0].locations[0].path #=> String
1739
+ # resp.next_token #=> String
1740
+ #
1741
+ # @overload get_detector_model_analysis_results(params = {})
1742
+ # @param [Hash] params ({})
1743
+ def get_detector_model_analysis_results(params = {}, options = {})
1744
+ req = build_request(:get_detector_model_analysis_results, params)
1745
+ req.send_request(options)
1746
+ end
1747
+
1748
+ # Lists all the versions of an alarm model. The operation returns only
1749
+ # the metadata associated with each alarm model version.
1750
+ #
1751
+ # @option params [required, String] :alarm_model_name
1752
+ # The name of the alarm model.
1753
+ #
1754
+ # @option params [String] :next_token
1755
+ # The token that you can use to return the next set of results.
1756
+ #
1757
+ # @option params [Integer] :max_results
1758
+ # The maximum number of results to be returned per request.
1759
+ #
1760
+ # @return [Types::ListAlarmModelVersionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1761
+ #
1762
+ # * {Types::ListAlarmModelVersionsResponse#alarm_model_version_summaries #alarm_model_version_summaries} => Array&lt;Types::AlarmModelVersionSummary&gt;
1763
+ # * {Types::ListAlarmModelVersionsResponse#next_token #next_token} => String
1764
+ #
1765
+ # @example Request syntax with placeholder values
1766
+ #
1767
+ # resp = client.list_alarm_model_versions({
1768
+ # alarm_model_name: "AlarmModelName", # required
1769
+ # next_token: "NextToken",
1770
+ # max_results: 1,
1771
+ # })
1772
+ #
1773
+ # @example Response structure
1774
+ #
1775
+ # resp.alarm_model_version_summaries #=> Array
1776
+ # resp.alarm_model_version_summaries[0].alarm_model_name #=> String
1777
+ # resp.alarm_model_version_summaries[0].alarm_model_arn #=> String
1778
+ # resp.alarm_model_version_summaries[0].alarm_model_version #=> String
1779
+ # resp.alarm_model_version_summaries[0].role_arn #=> String
1780
+ # resp.alarm_model_version_summaries[0].creation_time #=> Time
1781
+ # resp.alarm_model_version_summaries[0].last_update_time #=> Time
1782
+ # resp.alarm_model_version_summaries[0].status #=> String, one of "ACTIVE", "ACTIVATING", "INACTIVE", "FAILED"
1783
+ # resp.alarm_model_version_summaries[0].status_message #=> String
1784
+ # resp.next_token #=> String
1785
+ #
1786
+ # @overload list_alarm_model_versions(params = {})
1787
+ # @param [Hash] params ({})
1788
+ def list_alarm_model_versions(params = {}, options = {})
1789
+ req = build_request(:list_alarm_model_versions, params)
1790
+ req.send_request(options)
1791
+ end
1792
+
1793
+ # Lists the alarm models that you created. The operation returns only
1794
+ # the metadata associated with each alarm model.
1795
+ #
1796
+ # @option params [String] :next_token
1797
+ # The token that you can use to return the next set of results.
1798
+ #
1799
+ # @option params [Integer] :max_results
1800
+ # The maximum number of results to be returned per request.
1801
+ #
1802
+ # @return [Types::ListAlarmModelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1803
+ #
1804
+ # * {Types::ListAlarmModelsResponse#alarm_model_summaries #alarm_model_summaries} => Array&lt;Types::AlarmModelSummary&gt;
1805
+ # * {Types::ListAlarmModelsResponse#next_token #next_token} => String
1806
+ #
1807
+ # @example Request syntax with placeholder values
1808
+ #
1809
+ # resp = client.list_alarm_models({
1810
+ # next_token: "NextToken",
1811
+ # max_results: 1,
1812
+ # })
1813
+ #
1814
+ # @example Response structure
1815
+ #
1816
+ # resp.alarm_model_summaries #=> Array
1817
+ # resp.alarm_model_summaries[0].creation_time #=> Time
1818
+ # resp.alarm_model_summaries[0].alarm_model_description #=> String
1819
+ # resp.alarm_model_summaries[0].alarm_model_name #=> String
1820
+ # resp.next_token #=> String
1821
+ #
1822
+ # @overload list_alarm_models(params = {})
1823
+ # @param [Hash] params ({})
1824
+ def list_alarm_models(params = {}, options = {})
1825
+ req = build_request(:list_alarm_models, params)
1826
+ req.send_request(options)
1827
+ end
1828
+
1273
1829
  # Lists all the versions of a detector model. Only the metadata
1274
1830
  # associated with each detector model version is returned.
1275
1831
  #
@@ -1277,10 +1833,10 @@ module Aws::IoTEvents
1277
1833
  # The name of the detector model whose versions are returned.
1278
1834
  #
1279
1835
  # @option params [String] :next_token
1280
- # The token for the next set of results.
1836
+ # The token that you can use to return the next set of results.
1281
1837
  #
1282
1838
  # @option params [Integer] :max_results
1283
- # The maximum number of results to return at one time.
1839
+ # The maximum number of results to be returned per request.
1284
1840
  #
1285
1841
  # @return [Types::ListDetectorModelVersionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1286
1842
  #
@@ -1319,10 +1875,10 @@ module Aws::IoTEvents
1319
1875
  # associated with each detector model is returned.
1320
1876
  #
1321
1877
  # @option params [String] :next_token
1322
- # The token for the next set of results.
1878
+ # The token that you can use to return the next set of results.
1323
1879
  #
1324
1880
  # @option params [Integer] :max_results
1325
- # The maximum number of results to return at one time.
1881
+ # The maximum number of results to be returned per request.
1326
1882
  #
1327
1883
  # @return [Types::ListDetectorModelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1328
1884
  #
@@ -1351,13 +1907,61 @@ module Aws::IoTEvents
1351
1907
  req.send_request(options)
1352
1908
  end
1353
1909
 
1910
+ # Lists one or more input routings.
1911
+ #
1912
+ # @option params [required, Types::InputIdentifier] :input_identifier
1913
+ # The identifer of the routed input.
1914
+ #
1915
+ # @option params [Integer] :max_results
1916
+ # The maximum number of results to be returned per request.
1917
+ #
1918
+ # @option params [String] :next_token
1919
+ # The token that you can use to return the next set of results.
1920
+ #
1921
+ # @return [Types::ListInputRoutingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1922
+ #
1923
+ # * {Types::ListInputRoutingsResponse#routed_resources #routed_resources} => Array&lt;Types::RoutedResource&gt;
1924
+ # * {Types::ListInputRoutingsResponse#next_token #next_token} => String
1925
+ #
1926
+ # @example Request syntax with placeholder values
1927
+ #
1928
+ # resp = client.list_input_routings({
1929
+ # input_identifier: { # required
1930
+ # iot_events_input_identifier: {
1931
+ # input_name: "InputName", # required
1932
+ # },
1933
+ # iot_site_wise_input_identifier: {
1934
+ # iot_site_wise_asset_model_property_identifier: {
1935
+ # asset_model_id: "AssetModelId", # required
1936
+ # property_id: "AssetPropertyId", # required
1937
+ # },
1938
+ # },
1939
+ # },
1940
+ # max_results: 1,
1941
+ # next_token: "NextToken",
1942
+ # })
1943
+ #
1944
+ # @example Response structure
1945
+ #
1946
+ # resp.routed_resources #=> Array
1947
+ # resp.routed_resources[0].name #=> String
1948
+ # resp.routed_resources[0].arn #=> String
1949
+ # resp.next_token #=> String
1950
+ #
1951
+ # @overload list_input_routings(params = {})
1952
+ # @param [Hash] params ({})
1953
+ def list_input_routings(params = {}, options = {})
1954
+ req = build_request(:list_input_routings, params)
1955
+ req.send_request(options)
1956
+ end
1957
+
1354
1958
  # Lists the inputs you have created.
1355
1959
  #
1356
1960
  # @option params [String] :next_token
1357
- # The token for the next set of results.
1961
+ # The token that you can use to return the next set of results.
1358
1962
  #
1359
1963
  # @option params [Integer] :max_results
1360
- # The maximum number of results to return at one time.
1964
+ # The maximum number of results to be returned per request.
1361
1965
  #
1362
1966
  # @return [Types::ListInputsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1363
1967
  #
@@ -1453,60 +2057,766 @@ module Aws::IoTEvents
1453
2057
  req.send_request(options)
1454
2058
  end
1455
2059
 
1456
- # Adds to or modifies the tags of the given resource. Tags are metadata
1457
- # that can be used to manage a resource.
1458
- #
1459
- # @option params [required, String] :resource_arn
1460
- # The ARN of the resource.
1461
- #
1462
- # @option params [required, Array<Types::Tag>] :tags
1463
- # The new or modified tags for the resource.
1464
- #
1465
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2060
+ # Performs an analysis of your detector model. For more information, see
2061
+ # [Troubleshooting a detector model][1] in the *AWS IoT Events Developer
2062
+ # Guide*.
1466
2063
  #
1467
- # @example Request syntax with placeholder values
1468
2064
  #
1469
- # resp = client.tag_resource({
1470
- # resource_arn: "AmazonResourceName", # required
1471
- # tags: [ # required
1472
- # {
1473
- # key: "TagKey", # required
1474
- # value: "TagValue", # required
1475
- # },
1476
- # ],
1477
- # })
1478
2065
  #
1479
- # @overload tag_resource(params = {})
1480
- # @param [Hash] params ({})
1481
- def tag_resource(params = {}, options = {})
1482
- req = build_request(:tag_resource, params)
1483
- req.send_request(options)
1484
- end
1485
-
1486
- # Removes the given tags (metadata) from the resource.
2066
+ # [1]: https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-analyze-api.html
1487
2067
  #
1488
- # @option params [required, String] :resource_arn
1489
- # The ARN of the resource.
2068
+ # @option params [required, Types::DetectorModelDefinition] :detector_model_definition
2069
+ # Information that defines how a detector operates.
1490
2070
  #
1491
- # @option params [required, Array<String>] :tag_keys
1492
- # A list of the keys of the tags to be removed from the resource.
2071
+ # @return [Types::StartDetectorModelAnalysisResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1493
2072
  #
1494
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2073
+ # * {Types::StartDetectorModelAnalysisResponse#analysis_id #analysis_id} => String
1495
2074
  #
1496
2075
  # @example Request syntax with placeholder values
1497
2076
  #
1498
- # resp = client.untag_resource({
1499
- # resource_arn: "AmazonResourceName", # required
1500
- # tag_keys: ["TagKey"], # required
1501
- # })
1502
- #
1503
- # @overload untag_resource(params = {})
1504
- # @param [Hash] params ({})
2077
+ # resp = client.start_detector_model_analysis({
2078
+ # detector_model_definition: { # required
2079
+ # states: [ # required
2080
+ # {
2081
+ # state_name: "StateName", # required
2082
+ # on_input: {
2083
+ # events: [
2084
+ # {
2085
+ # event_name: "EventName", # required
2086
+ # condition: "Condition",
2087
+ # actions: [
2088
+ # {
2089
+ # set_variable: {
2090
+ # variable_name: "VariableName", # required
2091
+ # value: "VariableValue", # required
2092
+ # },
2093
+ # sns: {
2094
+ # target_arn: "AmazonResourceName", # required
2095
+ # payload: {
2096
+ # content_expression: "ContentExpression", # required
2097
+ # type: "STRING", # required, accepts STRING, JSON
2098
+ # },
2099
+ # },
2100
+ # iot_topic_publish: {
2101
+ # mqtt_topic: "MQTTTopic", # required
2102
+ # payload: {
2103
+ # content_expression: "ContentExpression", # required
2104
+ # type: "STRING", # required, accepts STRING, JSON
2105
+ # },
2106
+ # },
2107
+ # set_timer: {
2108
+ # timer_name: "TimerName", # required
2109
+ # seconds: 1,
2110
+ # duration_expression: "VariableValue",
2111
+ # },
2112
+ # clear_timer: {
2113
+ # timer_name: "TimerName", # required
2114
+ # },
2115
+ # reset_timer: {
2116
+ # timer_name: "TimerName", # required
2117
+ # },
2118
+ # lambda: {
2119
+ # function_arn: "AmazonResourceName", # required
2120
+ # payload: {
2121
+ # content_expression: "ContentExpression", # required
2122
+ # type: "STRING", # required, accepts STRING, JSON
2123
+ # },
2124
+ # },
2125
+ # iot_events: {
2126
+ # input_name: "InputName", # required
2127
+ # payload: {
2128
+ # content_expression: "ContentExpression", # required
2129
+ # type: "STRING", # required, accepts STRING, JSON
2130
+ # },
2131
+ # },
2132
+ # sqs: {
2133
+ # queue_url: "QueueUrl", # required
2134
+ # use_base_64: false,
2135
+ # payload: {
2136
+ # content_expression: "ContentExpression", # required
2137
+ # type: "STRING", # required, accepts STRING, JSON
2138
+ # },
2139
+ # },
2140
+ # firehose: {
2141
+ # delivery_stream_name: "DeliveryStreamName", # required
2142
+ # separator: "FirehoseSeparator",
2143
+ # payload: {
2144
+ # content_expression: "ContentExpression", # required
2145
+ # type: "STRING", # required, accepts STRING, JSON
2146
+ # },
2147
+ # },
2148
+ # dynamo_db: {
2149
+ # hash_key_type: "DynamoKeyType",
2150
+ # hash_key_field: "DynamoKeyField", # required
2151
+ # hash_key_value: "DynamoKeyValue", # required
2152
+ # range_key_type: "DynamoKeyType",
2153
+ # range_key_field: "DynamoKeyField",
2154
+ # range_key_value: "DynamoKeyValue",
2155
+ # operation: "DynamoOperation",
2156
+ # payload_field: "DynamoKeyField",
2157
+ # table_name: "DynamoTableName", # required
2158
+ # payload: {
2159
+ # content_expression: "ContentExpression", # required
2160
+ # type: "STRING", # required, accepts STRING, JSON
2161
+ # },
2162
+ # },
2163
+ # dynamo_d_bv_2: {
2164
+ # table_name: "DynamoTableName", # required
2165
+ # payload: {
2166
+ # content_expression: "ContentExpression", # required
2167
+ # type: "STRING", # required, accepts STRING, JSON
2168
+ # },
2169
+ # },
2170
+ # iot_site_wise: {
2171
+ # entry_id: "AssetPropertyEntryId",
2172
+ # asset_id: "AssetId",
2173
+ # property_id: "AssetPropertyId",
2174
+ # property_alias: "AssetPropertyAlias",
2175
+ # property_value: {
2176
+ # value: {
2177
+ # string_value: "AssetPropertyStringValue",
2178
+ # integer_value: "AssetPropertyIntegerValue",
2179
+ # double_value: "AssetPropertyDoubleValue",
2180
+ # boolean_value: "AssetPropertyBooleanValue",
2181
+ # },
2182
+ # timestamp: {
2183
+ # time_in_seconds: "AssetPropertyTimeInSeconds", # required
2184
+ # offset_in_nanos: "AssetPropertyOffsetInNanos",
2185
+ # },
2186
+ # quality: "AssetPropertyQuality",
2187
+ # },
2188
+ # },
2189
+ # },
2190
+ # ],
2191
+ # },
2192
+ # ],
2193
+ # transition_events: [
2194
+ # {
2195
+ # event_name: "EventName", # required
2196
+ # condition: "Condition", # required
2197
+ # actions: [
2198
+ # {
2199
+ # set_variable: {
2200
+ # variable_name: "VariableName", # required
2201
+ # value: "VariableValue", # required
2202
+ # },
2203
+ # sns: {
2204
+ # target_arn: "AmazonResourceName", # required
2205
+ # payload: {
2206
+ # content_expression: "ContentExpression", # required
2207
+ # type: "STRING", # required, accepts STRING, JSON
2208
+ # },
2209
+ # },
2210
+ # iot_topic_publish: {
2211
+ # mqtt_topic: "MQTTTopic", # required
2212
+ # payload: {
2213
+ # content_expression: "ContentExpression", # required
2214
+ # type: "STRING", # required, accepts STRING, JSON
2215
+ # },
2216
+ # },
2217
+ # set_timer: {
2218
+ # timer_name: "TimerName", # required
2219
+ # seconds: 1,
2220
+ # duration_expression: "VariableValue",
2221
+ # },
2222
+ # clear_timer: {
2223
+ # timer_name: "TimerName", # required
2224
+ # },
2225
+ # reset_timer: {
2226
+ # timer_name: "TimerName", # required
2227
+ # },
2228
+ # lambda: {
2229
+ # function_arn: "AmazonResourceName", # required
2230
+ # payload: {
2231
+ # content_expression: "ContentExpression", # required
2232
+ # type: "STRING", # required, accepts STRING, JSON
2233
+ # },
2234
+ # },
2235
+ # iot_events: {
2236
+ # input_name: "InputName", # required
2237
+ # payload: {
2238
+ # content_expression: "ContentExpression", # required
2239
+ # type: "STRING", # required, accepts STRING, JSON
2240
+ # },
2241
+ # },
2242
+ # sqs: {
2243
+ # queue_url: "QueueUrl", # required
2244
+ # use_base_64: false,
2245
+ # payload: {
2246
+ # content_expression: "ContentExpression", # required
2247
+ # type: "STRING", # required, accepts STRING, JSON
2248
+ # },
2249
+ # },
2250
+ # firehose: {
2251
+ # delivery_stream_name: "DeliveryStreamName", # required
2252
+ # separator: "FirehoseSeparator",
2253
+ # payload: {
2254
+ # content_expression: "ContentExpression", # required
2255
+ # type: "STRING", # required, accepts STRING, JSON
2256
+ # },
2257
+ # },
2258
+ # dynamo_db: {
2259
+ # hash_key_type: "DynamoKeyType",
2260
+ # hash_key_field: "DynamoKeyField", # required
2261
+ # hash_key_value: "DynamoKeyValue", # required
2262
+ # range_key_type: "DynamoKeyType",
2263
+ # range_key_field: "DynamoKeyField",
2264
+ # range_key_value: "DynamoKeyValue",
2265
+ # operation: "DynamoOperation",
2266
+ # payload_field: "DynamoKeyField",
2267
+ # table_name: "DynamoTableName", # required
2268
+ # payload: {
2269
+ # content_expression: "ContentExpression", # required
2270
+ # type: "STRING", # required, accepts STRING, JSON
2271
+ # },
2272
+ # },
2273
+ # dynamo_d_bv_2: {
2274
+ # table_name: "DynamoTableName", # required
2275
+ # payload: {
2276
+ # content_expression: "ContentExpression", # required
2277
+ # type: "STRING", # required, accepts STRING, JSON
2278
+ # },
2279
+ # },
2280
+ # iot_site_wise: {
2281
+ # entry_id: "AssetPropertyEntryId",
2282
+ # asset_id: "AssetId",
2283
+ # property_id: "AssetPropertyId",
2284
+ # property_alias: "AssetPropertyAlias",
2285
+ # property_value: {
2286
+ # value: {
2287
+ # string_value: "AssetPropertyStringValue",
2288
+ # integer_value: "AssetPropertyIntegerValue",
2289
+ # double_value: "AssetPropertyDoubleValue",
2290
+ # boolean_value: "AssetPropertyBooleanValue",
2291
+ # },
2292
+ # timestamp: {
2293
+ # time_in_seconds: "AssetPropertyTimeInSeconds", # required
2294
+ # offset_in_nanos: "AssetPropertyOffsetInNanos",
2295
+ # },
2296
+ # quality: "AssetPropertyQuality",
2297
+ # },
2298
+ # },
2299
+ # },
2300
+ # ],
2301
+ # next_state: "StateName", # required
2302
+ # },
2303
+ # ],
2304
+ # },
2305
+ # on_enter: {
2306
+ # events: [
2307
+ # {
2308
+ # event_name: "EventName", # required
2309
+ # condition: "Condition",
2310
+ # actions: [
2311
+ # {
2312
+ # set_variable: {
2313
+ # variable_name: "VariableName", # required
2314
+ # value: "VariableValue", # required
2315
+ # },
2316
+ # sns: {
2317
+ # target_arn: "AmazonResourceName", # required
2318
+ # payload: {
2319
+ # content_expression: "ContentExpression", # required
2320
+ # type: "STRING", # required, accepts STRING, JSON
2321
+ # },
2322
+ # },
2323
+ # iot_topic_publish: {
2324
+ # mqtt_topic: "MQTTTopic", # required
2325
+ # payload: {
2326
+ # content_expression: "ContentExpression", # required
2327
+ # type: "STRING", # required, accepts STRING, JSON
2328
+ # },
2329
+ # },
2330
+ # set_timer: {
2331
+ # timer_name: "TimerName", # required
2332
+ # seconds: 1,
2333
+ # duration_expression: "VariableValue",
2334
+ # },
2335
+ # clear_timer: {
2336
+ # timer_name: "TimerName", # required
2337
+ # },
2338
+ # reset_timer: {
2339
+ # timer_name: "TimerName", # required
2340
+ # },
2341
+ # lambda: {
2342
+ # function_arn: "AmazonResourceName", # required
2343
+ # payload: {
2344
+ # content_expression: "ContentExpression", # required
2345
+ # type: "STRING", # required, accepts STRING, JSON
2346
+ # },
2347
+ # },
2348
+ # iot_events: {
2349
+ # input_name: "InputName", # required
2350
+ # payload: {
2351
+ # content_expression: "ContentExpression", # required
2352
+ # type: "STRING", # required, accepts STRING, JSON
2353
+ # },
2354
+ # },
2355
+ # sqs: {
2356
+ # queue_url: "QueueUrl", # required
2357
+ # use_base_64: false,
2358
+ # payload: {
2359
+ # content_expression: "ContentExpression", # required
2360
+ # type: "STRING", # required, accepts STRING, JSON
2361
+ # },
2362
+ # },
2363
+ # firehose: {
2364
+ # delivery_stream_name: "DeliveryStreamName", # required
2365
+ # separator: "FirehoseSeparator",
2366
+ # payload: {
2367
+ # content_expression: "ContentExpression", # required
2368
+ # type: "STRING", # required, accepts STRING, JSON
2369
+ # },
2370
+ # },
2371
+ # dynamo_db: {
2372
+ # hash_key_type: "DynamoKeyType",
2373
+ # hash_key_field: "DynamoKeyField", # required
2374
+ # hash_key_value: "DynamoKeyValue", # required
2375
+ # range_key_type: "DynamoKeyType",
2376
+ # range_key_field: "DynamoKeyField",
2377
+ # range_key_value: "DynamoKeyValue",
2378
+ # operation: "DynamoOperation",
2379
+ # payload_field: "DynamoKeyField",
2380
+ # table_name: "DynamoTableName", # required
2381
+ # payload: {
2382
+ # content_expression: "ContentExpression", # required
2383
+ # type: "STRING", # required, accepts STRING, JSON
2384
+ # },
2385
+ # },
2386
+ # dynamo_d_bv_2: {
2387
+ # table_name: "DynamoTableName", # required
2388
+ # payload: {
2389
+ # content_expression: "ContentExpression", # required
2390
+ # type: "STRING", # required, accepts STRING, JSON
2391
+ # },
2392
+ # },
2393
+ # iot_site_wise: {
2394
+ # entry_id: "AssetPropertyEntryId",
2395
+ # asset_id: "AssetId",
2396
+ # property_id: "AssetPropertyId",
2397
+ # property_alias: "AssetPropertyAlias",
2398
+ # property_value: {
2399
+ # value: {
2400
+ # string_value: "AssetPropertyStringValue",
2401
+ # integer_value: "AssetPropertyIntegerValue",
2402
+ # double_value: "AssetPropertyDoubleValue",
2403
+ # boolean_value: "AssetPropertyBooleanValue",
2404
+ # },
2405
+ # timestamp: {
2406
+ # time_in_seconds: "AssetPropertyTimeInSeconds", # required
2407
+ # offset_in_nanos: "AssetPropertyOffsetInNanos",
2408
+ # },
2409
+ # quality: "AssetPropertyQuality",
2410
+ # },
2411
+ # },
2412
+ # },
2413
+ # ],
2414
+ # },
2415
+ # ],
2416
+ # },
2417
+ # on_exit: {
2418
+ # events: [
2419
+ # {
2420
+ # event_name: "EventName", # required
2421
+ # condition: "Condition",
2422
+ # actions: [
2423
+ # {
2424
+ # set_variable: {
2425
+ # variable_name: "VariableName", # required
2426
+ # value: "VariableValue", # required
2427
+ # },
2428
+ # sns: {
2429
+ # target_arn: "AmazonResourceName", # required
2430
+ # payload: {
2431
+ # content_expression: "ContentExpression", # required
2432
+ # type: "STRING", # required, accepts STRING, JSON
2433
+ # },
2434
+ # },
2435
+ # iot_topic_publish: {
2436
+ # mqtt_topic: "MQTTTopic", # required
2437
+ # payload: {
2438
+ # content_expression: "ContentExpression", # required
2439
+ # type: "STRING", # required, accepts STRING, JSON
2440
+ # },
2441
+ # },
2442
+ # set_timer: {
2443
+ # timer_name: "TimerName", # required
2444
+ # seconds: 1,
2445
+ # duration_expression: "VariableValue",
2446
+ # },
2447
+ # clear_timer: {
2448
+ # timer_name: "TimerName", # required
2449
+ # },
2450
+ # reset_timer: {
2451
+ # timer_name: "TimerName", # required
2452
+ # },
2453
+ # lambda: {
2454
+ # function_arn: "AmazonResourceName", # required
2455
+ # payload: {
2456
+ # content_expression: "ContentExpression", # required
2457
+ # type: "STRING", # required, accepts STRING, JSON
2458
+ # },
2459
+ # },
2460
+ # iot_events: {
2461
+ # input_name: "InputName", # required
2462
+ # payload: {
2463
+ # content_expression: "ContentExpression", # required
2464
+ # type: "STRING", # required, accepts STRING, JSON
2465
+ # },
2466
+ # },
2467
+ # sqs: {
2468
+ # queue_url: "QueueUrl", # required
2469
+ # use_base_64: false,
2470
+ # payload: {
2471
+ # content_expression: "ContentExpression", # required
2472
+ # type: "STRING", # required, accepts STRING, JSON
2473
+ # },
2474
+ # },
2475
+ # firehose: {
2476
+ # delivery_stream_name: "DeliveryStreamName", # required
2477
+ # separator: "FirehoseSeparator",
2478
+ # payload: {
2479
+ # content_expression: "ContentExpression", # required
2480
+ # type: "STRING", # required, accepts STRING, JSON
2481
+ # },
2482
+ # },
2483
+ # dynamo_db: {
2484
+ # hash_key_type: "DynamoKeyType",
2485
+ # hash_key_field: "DynamoKeyField", # required
2486
+ # hash_key_value: "DynamoKeyValue", # required
2487
+ # range_key_type: "DynamoKeyType",
2488
+ # range_key_field: "DynamoKeyField",
2489
+ # range_key_value: "DynamoKeyValue",
2490
+ # operation: "DynamoOperation",
2491
+ # payload_field: "DynamoKeyField",
2492
+ # table_name: "DynamoTableName", # required
2493
+ # payload: {
2494
+ # content_expression: "ContentExpression", # required
2495
+ # type: "STRING", # required, accepts STRING, JSON
2496
+ # },
2497
+ # },
2498
+ # dynamo_d_bv_2: {
2499
+ # table_name: "DynamoTableName", # required
2500
+ # payload: {
2501
+ # content_expression: "ContentExpression", # required
2502
+ # type: "STRING", # required, accepts STRING, JSON
2503
+ # },
2504
+ # },
2505
+ # iot_site_wise: {
2506
+ # entry_id: "AssetPropertyEntryId",
2507
+ # asset_id: "AssetId",
2508
+ # property_id: "AssetPropertyId",
2509
+ # property_alias: "AssetPropertyAlias",
2510
+ # property_value: {
2511
+ # value: {
2512
+ # string_value: "AssetPropertyStringValue",
2513
+ # integer_value: "AssetPropertyIntegerValue",
2514
+ # double_value: "AssetPropertyDoubleValue",
2515
+ # boolean_value: "AssetPropertyBooleanValue",
2516
+ # },
2517
+ # timestamp: {
2518
+ # time_in_seconds: "AssetPropertyTimeInSeconds", # required
2519
+ # offset_in_nanos: "AssetPropertyOffsetInNanos",
2520
+ # },
2521
+ # quality: "AssetPropertyQuality",
2522
+ # },
2523
+ # },
2524
+ # },
2525
+ # ],
2526
+ # },
2527
+ # ],
2528
+ # },
2529
+ # },
2530
+ # ],
2531
+ # initial_state_name: "StateName", # required
2532
+ # },
2533
+ # })
2534
+ #
2535
+ # @example Response structure
2536
+ #
2537
+ # resp.analysis_id #=> String
2538
+ #
2539
+ # @overload start_detector_model_analysis(params = {})
2540
+ # @param [Hash] params ({})
2541
+ def start_detector_model_analysis(params = {}, options = {})
2542
+ req = build_request(:start_detector_model_analysis, params)
2543
+ req.send_request(options)
2544
+ end
2545
+
2546
+ # Adds to or modifies the tags of the given resource. Tags are metadata
2547
+ # that can be used to manage a resource.
2548
+ #
2549
+ # @option params [required, String] :resource_arn
2550
+ # The ARN of the resource.
2551
+ #
2552
+ # @option params [required, Array<Types::Tag>] :tags
2553
+ # The new or modified tags for the resource.
2554
+ #
2555
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2556
+ #
2557
+ # @example Request syntax with placeholder values
2558
+ #
2559
+ # resp = client.tag_resource({
2560
+ # resource_arn: "AmazonResourceName", # required
2561
+ # tags: [ # required
2562
+ # {
2563
+ # key: "TagKey", # required
2564
+ # value: "TagValue", # required
2565
+ # },
2566
+ # ],
2567
+ # })
2568
+ #
2569
+ # @overload tag_resource(params = {})
2570
+ # @param [Hash] params ({})
2571
+ def tag_resource(params = {}, options = {})
2572
+ req = build_request(:tag_resource, params)
2573
+ req.send_request(options)
2574
+ end
2575
+
2576
+ # Removes the given tags (metadata) from the resource.
2577
+ #
2578
+ # @option params [required, String] :resource_arn
2579
+ # The ARN of the resource.
2580
+ #
2581
+ # @option params [required, Array<String>] :tag_keys
2582
+ # A list of the keys of the tags to be removed from the resource.
2583
+ #
2584
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2585
+ #
2586
+ # @example Request syntax with placeholder values
2587
+ #
2588
+ # resp = client.untag_resource({
2589
+ # resource_arn: "AmazonResourceName", # required
2590
+ # tag_keys: ["TagKey"], # required
2591
+ # })
2592
+ #
2593
+ # @overload untag_resource(params = {})
2594
+ # @param [Hash] params ({})
1505
2595
  def untag_resource(params = {}, options = {})
1506
2596
  req = build_request(:untag_resource, params)
1507
2597
  req.send_request(options)
1508
2598
  end
1509
2599
 
2600
+ # Updates an alarm model. Any alarms that were created based on the
2601
+ # previous version are deleted and then created again as new data
2602
+ # arrives.
2603
+ #
2604
+ # @option params [required, String] :alarm_model_name
2605
+ # The name of the alarm model.
2606
+ #
2607
+ # @option params [String] :alarm_model_description
2608
+ # The description of the alarm model.
2609
+ #
2610
+ # @option params [required, String] :role_arn
2611
+ # The ARN of the IAM role that allows the alarm to perform actions and
2612
+ # access AWS resources. For more information, see [Amazon Resource Names
2613
+ # (ARNs)][1] in the *AWS General Reference*.
2614
+ #
2615
+ #
2616
+ #
2617
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
2618
+ #
2619
+ # @option params [Integer] :severity
2620
+ # A non-negative integer that reflects the severity level of the alarm.
2621
+ #
2622
+ # @option params [required, Types::AlarmRule] :alarm_rule
2623
+ # Defines when your alarm is invoked.
2624
+ #
2625
+ # @option params [Types::AlarmNotification] :alarm_notification
2626
+ # Contains information about one or more notification actions.
2627
+ #
2628
+ # @option params [Types::AlarmEventActions] :alarm_event_actions
2629
+ # Contains information about one or more alarm actions.
2630
+ #
2631
+ # @option params [Types::AlarmCapabilities] :alarm_capabilities
2632
+ # Contains the configuration information of alarm state changes.
2633
+ #
2634
+ # @return [Types::UpdateAlarmModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2635
+ #
2636
+ # * {Types::UpdateAlarmModelResponse#creation_time #creation_time} => Time
2637
+ # * {Types::UpdateAlarmModelResponse#alarm_model_arn #alarm_model_arn} => String
2638
+ # * {Types::UpdateAlarmModelResponse#alarm_model_version #alarm_model_version} => String
2639
+ # * {Types::UpdateAlarmModelResponse#last_update_time #last_update_time} => Time
2640
+ # * {Types::UpdateAlarmModelResponse#status #status} => String
2641
+ #
2642
+ # @example Request syntax with placeholder values
2643
+ #
2644
+ # resp = client.update_alarm_model({
2645
+ # alarm_model_name: "AlarmModelName", # required
2646
+ # alarm_model_description: "AlarmModelDescription",
2647
+ # role_arn: "AmazonResourceName", # required
2648
+ # severity: 1,
2649
+ # alarm_rule: { # required
2650
+ # simple_rule: {
2651
+ # input_property: "InputProperty", # required
2652
+ # comparison_operator: "GREATER", # required, accepts GREATER, GREATER_OR_EQUAL, LESS, LESS_OR_EQUAL, EQUAL, NOT_EQUAL
2653
+ # threshold: "Threshold", # required
2654
+ # },
2655
+ # },
2656
+ # alarm_notification: {
2657
+ # notification_actions: [
2658
+ # {
2659
+ # action: { # required
2660
+ # lambda_action: {
2661
+ # function_arn: "AmazonResourceName", # required
2662
+ # payload: {
2663
+ # content_expression: "ContentExpression", # required
2664
+ # type: "STRING", # required, accepts STRING, JSON
2665
+ # },
2666
+ # },
2667
+ # },
2668
+ # sms_configurations: [
2669
+ # {
2670
+ # sender_id: "SMSSenderId",
2671
+ # additional_message: "NotificationAdditionalMessage",
2672
+ # recipients: [ # required
2673
+ # {
2674
+ # sso_identity: {
2675
+ # identity_store_id: "IdentityStoreId", # required
2676
+ # user_id: "SSOReferenceId",
2677
+ # },
2678
+ # },
2679
+ # ],
2680
+ # },
2681
+ # ],
2682
+ # email_configurations: [
2683
+ # {
2684
+ # from: "FromEmail", # required
2685
+ # content: {
2686
+ # subject: "EmailSubject",
2687
+ # additional_message: "NotificationAdditionalMessage",
2688
+ # },
2689
+ # recipients: { # required
2690
+ # to: [
2691
+ # {
2692
+ # sso_identity: {
2693
+ # identity_store_id: "IdentityStoreId", # required
2694
+ # user_id: "SSOReferenceId",
2695
+ # },
2696
+ # },
2697
+ # ],
2698
+ # },
2699
+ # },
2700
+ # ],
2701
+ # },
2702
+ # ],
2703
+ # },
2704
+ # alarm_event_actions: {
2705
+ # alarm_actions: [
2706
+ # {
2707
+ # sns: {
2708
+ # target_arn: "AmazonResourceName", # required
2709
+ # payload: {
2710
+ # content_expression: "ContentExpression", # required
2711
+ # type: "STRING", # required, accepts STRING, JSON
2712
+ # },
2713
+ # },
2714
+ # iot_topic_publish: {
2715
+ # mqtt_topic: "MQTTTopic", # required
2716
+ # payload: {
2717
+ # content_expression: "ContentExpression", # required
2718
+ # type: "STRING", # required, accepts STRING, JSON
2719
+ # },
2720
+ # },
2721
+ # lambda: {
2722
+ # function_arn: "AmazonResourceName", # required
2723
+ # payload: {
2724
+ # content_expression: "ContentExpression", # required
2725
+ # type: "STRING", # required, accepts STRING, JSON
2726
+ # },
2727
+ # },
2728
+ # iot_events: {
2729
+ # input_name: "InputName", # required
2730
+ # payload: {
2731
+ # content_expression: "ContentExpression", # required
2732
+ # type: "STRING", # required, accepts STRING, JSON
2733
+ # },
2734
+ # },
2735
+ # sqs: {
2736
+ # queue_url: "QueueUrl", # required
2737
+ # use_base_64: false,
2738
+ # payload: {
2739
+ # content_expression: "ContentExpression", # required
2740
+ # type: "STRING", # required, accepts STRING, JSON
2741
+ # },
2742
+ # },
2743
+ # firehose: {
2744
+ # delivery_stream_name: "DeliveryStreamName", # required
2745
+ # separator: "FirehoseSeparator",
2746
+ # payload: {
2747
+ # content_expression: "ContentExpression", # required
2748
+ # type: "STRING", # required, accepts STRING, JSON
2749
+ # },
2750
+ # },
2751
+ # dynamo_db: {
2752
+ # hash_key_type: "DynamoKeyType",
2753
+ # hash_key_field: "DynamoKeyField", # required
2754
+ # hash_key_value: "DynamoKeyValue", # required
2755
+ # range_key_type: "DynamoKeyType",
2756
+ # range_key_field: "DynamoKeyField",
2757
+ # range_key_value: "DynamoKeyValue",
2758
+ # operation: "DynamoOperation",
2759
+ # payload_field: "DynamoKeyField",
2760
+ # table_name: "DynamoTableName", # required
2761
+ # payload: {
2762
+ # content_expression: "ContentExpression", # required
2763
+ # type: "STRING", # required, accepts STRING, JSON
2764
+ # },
2765
+ # },
2766
+ # dynamo_d_bv_2: {
2767
+ # table_name: "DynamoTableName", # required
2768
+ # payload: {
2769
+ # content_expression: "ContentExpression", # required
2770
+ # type: "STRING", # required, accepts STRING, JSON
2771
+ # },
2772
+ # },
2773
+ # iot_site_wise: {
2774
+ # entry_id: "AssetPropertyEntryId",
2775
+ # asset_id: "AssetId",
2776
+ # property_id: "AssetPropertyId",
2777
+ # property_alias: "AssetPropertyAlias",
2778
+ # property_value: {
2779
+ # value: {
2780
+ # string_value: "AssetPropertyStringValue",
2781
+ # integer_value: "AssetPropertyIntegerValue",
2782
+ # double_value: "AssetPropertyDoubleValue",
2783
+ # boolean_value: "AssetPropertyBooleanValue",
2784
+ # },
2785
+ # timestamp: {
2786
+ # time_in_seconds: "AssetPropertyTimeInSeconds", # required
2787
+ # offset_in_nanos: "AssetPropertyOffsetInNanos",
2788
+ # },
2789
+ # quality: "AssetPropertyQuality",
2790
+ # },
2791
+ # },
2792
+ # },
2793
+ # ],
2794
+ # },
2795
+ # alarm_capabilities: {
2796
+ # initialization_configuration: {
2797
+ # disabled_on_initialization: false, # required
2798
+ # },
2799
+ # acknowledge_flow: {
2800
+ # enabled: false, # required
2801
+ # },
2802
+ # },
2803
+ # })
2804
+ #
2805
+ # @example Response structure
2806
+ #
2807
+ # resp.creation_time #=> Time
2808
+ # resp.alarm_model_arn #=> String
2809
+ # resp.alarm_model_version #=> String
2810
+ # resp.last_update_time #=> Time
2811
+ # resp.status #=> String, one of "ACTIVE", "ACTIVATING", "INACTIVE", "FAILED"
2812
+ #
2813
+ # @overload update_alarm_model(params = {})
2814
+ # @param [Hash] params ({})
2815
+ def update_alarm_model(params = {}, options = {})
2816
+ req = build_request(:update_alarm_model, params)
2817
+ req.send_request(options)
2818
+ end
2819
+
1510
2820
  # Updates a detector model. Detectors (instances) spawned by the
1511
2821
  # previous version are deleted and then re-created as new inputs arrive.
1512
2822
  #
@@ -1632,8 +2942,8 @@ module Aws::IoTEvents
1632
2942
  # asset_id: "AssetId",
1633
2943
  # property_id: "AssetPropertyId",
1634
2944
  # property_alias: "AssetPropertyAlias",
1635
- # property_value: { # required
1636
- # value: { # required
2945
+ # property_value: {
2946
+ # value: {
1637
2947
  # string_value: "AssetPropertyStringValue",
1638
2948
  # integer_value: "AssetPropertyIntegerValue",
1639
2949
  # double_value: "AssetPropertyDoubleValue",
@@ -1742,8 +3052,8 @@ module Aws::IoTEvents
1742
3052
  # asset_id: "AssetId",
1743
3053
  # property_id: "AssetPropertyId",
1744
3054
  # property_alias: "AssetPropertyAlias",
1745
- # property_value: { # required
1746
- # value: { # required
3055
+ # property_value: {
3056
+ # value: {
1747
3057
  # string_value: "AssetPropertyStringValue",
1748
3058
  # integer_value: "AssetPropertyIntegerValue",
1749
3059
  # double_value: "AssetPropertyDoubleValue",
@@ -1855,8 +3165,8 @@ module Aws::IoTEvents
1855
3165
  # asset_id: "AssetId",
1856
3166
  # property_id: "AssetPropertyId",
1857
3167
  # property_alias: "AssetPropertyAlias",
1858
- # property_value: { # required
1859
- # value: { # required
3168
+ # property_value: {
3169
+ # value: {
1860
3170
  # string_value: "AssetPropertyStringValue",
1861
3171
  # integer_value: "AssetPropertyIntegerValue",
1862
3172
  # double_value: "AssetPropertyDoubleValue",
@@ -1967,8 +3277,8 @@ module Aws::IoTEvents
1967
3277
  # asset_id: "AssetId",
1968
3278
  # property_id: "AssetPropertyId",
1969
3279
  # property_alias: "AssetPropertyAlias",
1970
- # property_value: { # required
1971
- # value: { # required
3280
+ # property_value: {
3281
+ # value: {
1972
3282
  # string_value: "AssetPropertyStringValue",
1973
3283
  # integer_value: "AssetPropertyIntegerValue",
1974
3284
  # double_value: "AssetPropertyDoubleValue",
@@ -2073,7 +3383,7 @@ module Aws::IoTEvents
2073
3383
  params: params,
2074
3384
  config: config)
2075
3385
  context[:gem_name] = 'aws-sdk-iotevents'
2076
- context[:gem_version] = '1.19.0'
3386
+ context[:gem_version] = '1.24.0'
2077
3387
  Seahorse::Client::Request.new(handlers, context)
2078
3388
  end
2079
3389