aws-sdk-iotevents 1.23.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-iotevents.rb +2 -2
- data/lib/aws-sdk-iotevents/client.rb +784 -27
- data/lib/aws-sdk-iotevents/client_api.rb +365 -2
- data/lib/aws-sdk-iotevents/types.rb +2101 -109
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e706ccce48a9ad942029176c51724961ebde648bf4bb34e61ce228dc291ad9ad
|
4
|
+
data.tar.gz: b3fa17248c45a24d867ac337d9090f0423562b21e1285723e7e03a840d3a68eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee9bac7c226f1d921f2bd2076e329f291f31d90e6024ce520b3862fefa4c7320a0356883b087f8f00d6c5c772b3b59c52435b9b8ef36400e4722339c90e754a5
|
7
|
+
data.tar.gz: 936ea65b5bd7a7e34df4314ce40c7ac199832631140cb250772ec220ebcab11c52f028e5bc30e40a4ee7c5d35c4644b13288d397f277fee2ce381cc6b857c140
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.24.0
|
data/lib/aws-sdk-iotevents.rb
CHANGED
@@ -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.
|
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.
|
51
|
+
GEM_VERSION = '1.24.0'
|
52
52
|
|
53
53
|
end
|
@@ -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: {
|
466
|
-
# value: {
|
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: {
|
576
|
-
# value: {
|
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: {
|
689
|
-
# value: {
|
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: {
|
801
|
-
# value: {
|
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,7 +1613,12 @@ module Aws::IoTEvents
|
|
1215
1613
|
req.send_request(options)
|
1216
1614
|
end
|
1217
1615
|
|
1218
|
-
# Retrieves
|
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>
|
1219
1622
|
#
|
1220
1623
|
# @option params [required, String] :analysis_id
|
1221
1624
|
# The ID of the analysis result that you want to retrieve.
|
@@ -1298,6 +1701,11 @@ module Aws::IoTEvents
|
|
1298
1701
|
|
1299
1702
|
# Retrieves one or more analysis results of the detector model.
|
1300
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
|
+
#
|
1301
1709
|
# @option params [required, String] :analysis_id
|
1302
1710
|
# The ID of the analysis result that you want to retrieve.
|
1303
1711
|
#
|
@@ -1337,6 +1745,87 @@ module Aws::IoTEvents
|
|
1337
1745
|
req.send_request(options)
|
1338
1746
|
end
|
1339
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<Types::AlarmModelVersionSummary>
|
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<Types::AlarmModelSummary>
|
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
|
+
|
1340
1829
|
# Lists all the versions of a detector model. Only the metadata
|
1341
1830
|
# associated with each detector model version is returned.
|
1342
1831
|
#
|
@@ -1418,6 +1907,54 @@ module Aws::IoTEvents
|
|
1418
1907
|
req.send_request(options)
|
1419
1908
|
end
|
1420
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<Types::RoutedResource>
|
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
|
+
|
1421
1958
|
# Lists the inputs you have created.
|
1422
1959
|
#
|
1423
1960
|
# @option params [String] :next_token
|
@@ -1521,7 +2058,7 @@ module Aws::IoTEvents
|
|
1521
2058
|
end
|
1522
2059
|
|
1523
2060
|
# Performs an analysis of your detector model. For more information, see
|
1524
|
-
# [
|
2061
|
+
# [Troubleshooting a detector model][1] in the *AWS IoT Events Developer
|
1525
2062
|
# Guide*.
|
1526
2063
|
#
|
1527
2064
|
#
|
@@ -1635,8 +2172,8 @@ module Aws::IoTEvents
|
|
1635
2172
|
# asset_id: "AssetId",
|
1636
2173
|
# property_id: "AssetPropertyId",
|
1637
2174
|
# property_alias: "AssetPropertyAlias",
|
1638
|
-
# property_value: {
|
1639
|
-
# value: {
|
2175
|
+
# property_value: {
|
2176
|
+
# value: {
|
1640
2177
|
# string_value: "AssetPropertyStringValue",
|
1641
2178
|
# integer_value: "AssetPropertyIntegerValue",
|
1642
2179
|
# double_value: "AssetPropertyDoubleValue",
|
@@ -1745,8 +2282,8 @@ module Aws::IoTEvents
|
|
1745
2282
|
# asset_id: "AssetId",
|
1746
2283
|
# property_id: "AssetPropertyId",
|
1747
2284
|
# property_alias: "AssetPropertyAlias",
|
1748
|
-
# property_value: {
|
1749
|
-
# value: {
|
2285
|
+
# property_value: {
|
2286
|
+
# value: {
|
1750
2287
|
# string_value: "AssetPropertyStringValue",
|
1751
2288
|
# integer_value: "AssetPropertyIntegerValue",
|
1752
2289
|
# double_value: "AssetPropertyDoubleValue",
|
@@ -1858,8 +2395,8 @@ module Aws::IoTEvents
|
|
1858
2395
|
# asset_id: "AssetId",
|
1859
2396
|
# property_id: "AssetPropertyId",
|
1860
2397
|
# property_alias: "AssetPropertyAlias",
|
1861
|
-
# property_value: {
|
1862
|
-
# value: {
|
2398
|
+
# property_value: {
|
2399
|
+
# value: {
|
1863
2400
|
# string_value: "AssetPropertyStringValue",
|
1864
2401
|
# integer_value: "AssetPropertyIntegerValue",
|
1865
2402
|
# double_value: "AssetPropertyDoubleValue",
|
@@ -1970,8 +2507,8 @@ module Aws::IoTEvents
|
|
1970
2507
|
# asset_id: "AssetId",
|
1971
2508
|
# property_id: "AssetPropertyId",
|
1972
2509
|
# property_alias: "AssetPropertyAlias",
|
1973
|
-
# property_value: {
|
1974
|
-
# value: {
|
2510
|
+
# property_value: {
|
2511
|
+
# value: {
|
1975
2512
|
# string_value: "AssetPropertyStringValue",
|
1976
2513
|
# integer_value: "AssetPropertyIntegerValue",
|
1977
2514
|
# double_value: "AssetPropertyDoubleValue",
|
@@ -2060,6 +2597,226 @@ module Aws::IoTEvents
|
|
2060
2597
|
req.send_request(options)
|
2061
2598
|
end
|
2062
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
|
+
|
2063
2820
|
# Updates a detector model. Detectors (instances) spawned by the
|
2064
2821
|
# previous version are deleted and then re-created as new inputs arrive.
|
2065
2822
|
#
|
@@ -2185,8 +2942,8 @@ module Aws::IoTEvents
|
|
2185
2942
|
# asset_id: "AssetId",
|
2186
2943
|
# property_id: "AssetPropertyId",
|
2187
2944
|
# property_alias: "AssetPropertyAlias",
|
2188
|
-
# property_value: {
|
2189
|
-
# value: {
|
2945
|
+
# property_value: {
|
2946
|
+
# value: {
|
2190
2947
|
# string_value: "AssetPropertyStringValue",
|
2191
2948
|
# integer_value: "AssetPropertyIntegerValue",
|
2192
2949
|
# double_value: "AssetPropertyDoubleValue",
|
@@ -2295,8 +3052,8 @@ module Aws::IoTEvents
|
|
2295
3052
|
# asset_id: "AssetId",
|
2296
3053
|
# property_id: "AssetPropertyId",
|
2297
3054
|
# property_alias: "AssetPropertyAlias",
|
2298
|
-
# property_value: {
|
2299
|
-
# value: {
|
3055
|
+
# property_value: {
|
3056
|
+
# value: {
|
2300
3057
|
# string_value: "AssetPropertyStringValue",
|
2301
3058
|
# integer_value: "AssetPropertyIntegerValue",
|
2302
3059
|
# double_value: "AssetPropertyDoubleValue",
|
@@ -2408,8 +3165,8 @@ module Aws::IoTEvents
|
|
2408
3165
|
# asset_id: "AssetId",
|
2409
3166
|
# property_id: "AssetPropertyId",
|
2410
3167
|
# property_alias: "AssetPropertyAlias",
|
2411
|
-
# property_value: {
|
2412
|
-
# value: {
|
3168
|
+
# property_value: {
|
3169
|
+
# value: {
|
2413
3170
|
# string_value: "AssetPropertyStringValue",
|
2414
3171
|
# integer_value: "AssetPropertyIntegerValue",
|
2415
3172
|
# double_value: "AssetPropertyDoubleValue",
|
@@ -2520,8 +3277,8 @@ module Aws::IoTEvents
|
|
2520
3277
|
# asset_id: "AssetId",
|
2521
3278
|
# property_id: "AssetPropertyId",
|
2522
3279
|
# property_alias: "AssetPropertyAlias",
|
2523
|
-
# property_value: {
|
2524
|
-
# value: {
|
3280
|
+
# property_value: {
|
3281
|
+
# value: {
|
2525
3282
|
# string_value: "AssetPropertyStringValue",
|
2526
3283
|
# integer_value: "AssetPropertyIntegerValue",
|
2527
3284
|
# double_value: "AssetPropertyDoubleValue",
|
@@ -2626,7 +3383,7 @@ module Aws::IoTEvents
|
|
2626
3383
|
params: params,
|
2627
3384
|
config: config)
|
2628
3385
|
context[:gem_name] = 'aws-sdk-iotevents'
|
2629
|
-
context[:gem_version] = '1.
|
3386
|
+
context[:gem_version] = '1.24.0'
|
2630
3387
|
Seahorse::Client::Request.new(handlers, context)
|
2631
3388
|
end
|
2632
3389
|
|