aws-sdk-ioteventsdata 1.26.0 → 1.27.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-ioteventsdata/client.rb +43 -1
- data/lib/aws-sdk-ioteventsdata/client_api.rb +38 -0
- data/lib/aws-sdk-ioteventsdata/types.rb +100 -0
- data/lib/aws-sdk-ioteventsdata.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 898dc31a30e4a618a2e7920ac235ab574e4672c216cb3e247feb144c1e0d7f91
|
|
4
|
+
data.tar.gz: f2fb81e173ca9704b61fcf29a444431ef838b6fa577d6b9184dc86e14c405bff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b44079fe0b9a5b85704541b9cd821d964ec9bd4d722e11b90c716702fedc9a25c96e4c29062d0c6ca3b89f7cb0fa5d422dee65be3771b486321b61c27f641f87
|
|
7
|
+
data.tar.gz: db8e71efc2e30ddd5f01fd2eafbc6c5399c4a009952a5ee4c7bddafe6be93109d9152ab7f3980bc358cc6b984fe0cfd9698667ca1df244f9fa499d0c20b536ea
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.27.0
|
|
@@ -389,6 +389,48 @@ module Aws::IoTEventsData
|
|
|
389
389
|
req.send_request(options)
|
|
390
390
|
end
|
|
391
391
|
|
|
392
|
+
# Deletes one or more detectors that were created. When a detector is
|
|
393
|
+
# deleted, its state will be cleared and the detector will be removed
|
|
394
|
+
# from the list of detectors. The deleted detector will no longer appear
|
|
395
|
+
# if referenced in the [ListDetectors][1] API call.
|
|
396
|
+
#
|
|
397
|
+
#
|
|
398
|
+
#
|
|
399
|
+
# [1]: https://docs.aws.amazon.com/iotevents/latest/apireference/API_iotevents-data_ListDetectors.html
|
|
400
|
+
#
|
|
401
|
+
# @option params [required, Array<Types::DeleteDetectorRequest>] :detectors
|
|
402
|
+
# The list of one or more detectors to be deleted.
|
|
403
|
+
#
|
|
404
|
+
# @return [Types::BatchDeleteDetectorResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
405
|
+
#
|
|
406
|
+
# * {Types::BatchDeleteDetectorResponse#batch_delete_detector_error_entries #batch_delete_detector_error_entries} => Array<Types::BatchDeleteDetectorErrorEntry>
|
|
407
|
+
#
|
|
408
|
+
# @example Request syntax with placeholder values
|
|
409
|
+
#
|
|
410
|
+
# resp = client.batch_delete_detector({
|
|
411
|
+
# detectors: [ # required
|
|
412
|
+
# {
|
|
413
|
+
# message_id: "MessageId", # required
|
|
414
|
+
# detector_model_name: "DetectorModelName", # required
|
|
415
|
+
# key_value: "KeyValue",
|
|
416
|
+
# },
|
|
417
|
+
# ],
|
|
418
|
+
# })
|
|
419
|
+
#
|
|
420
|
+
# @example Response structure
|
|
421
|
+
#
|
|
422
|
+
# resp.batch_delete_detector_error_entries #=> Array
|
|
423
|
+
# resp.batch_delete_detector_error_entries[0].message_id #=> String
|
|
424
|
+
# resp.batch_delete_detector_error_entries[0].error_code #=> String, one of "ResourceNotFoundException", "InvalidRequestException", "InternalFailureException", "ServiceUnavailableException", "ThrottlingException"
|
|
425
|
+
# resp.batch_delete_detector_error_entries[0].error_message #=> String
|
|
426
|
+
#
|
|
427
|
+
# @overload batch_delete_detector(params = {})
|
|
428
|
+
# @param [Hash] params ({})
|
|
429
|
+
def batch_delete_detector(params = {}, options = {})
|
|
430
|
+
req = build_request(:batch_delete_detector, params)
|
|
431
|
+
req.send_request(options)
|
|
432
|
+
end
|
|
433
|
+
|
|
392
434
|
# Disables one or more alarms. The alarms change to the `DISABLED` state
|
|
393
435
|
# after you disable them.
|
|
394
436
|
#
|
|
@@ -838,7 +880,7 @@ module Aws::IoTEventsData
|
|
|
838
880
|
params: params,
|
|
839
881
|
config: config)
|
|
840
882
|
context[:gem_name] = 'aws-sdk-ioteventsdata'
|
|
841
|
-
context[:gem_version] = '1.
|
|
883
|
+
context[:gem_version] = '1.27.0'
|
|
842
884
|
Seahorse::Client::Request.new(handlers, context)
|
|
843
885
|
end
|
|
844
886
|
|
|
@@ -27,6 +27,10 @@ module Aws::IoTEventsData
|
|
|
27
27
|
BatchAcknowledgeAlarmResponse = Shapes::StructureShape.new(name: 'BatchAcknowledgeAlarmResponse')
|
|
28
28
|
BatchAlarmActionErrorEntries = Shapes::ListShape.new(name: 'BatchAlarmActionErrorEntries')
|
|
29
29
|
BatchAlarmActionErrorEntry = Shapes::StructureShape.new(name: 'BatchAlarmActionErrorEntry')
|
|
30
|
+
BatchDeleteDetectorErrorEntries = Shapes::ListShape.new(name: 'BatchDeleteDetectorErrorEntries')
|
|
31
|
+
BatchDeleteDetectorErrorEntry = Shapes::StructureShape.new(name: 'BatchDeleteDetectorErrorEntry')
|
|
32
|
+
BatchDeleteDetectorRequest = Shapes::StructureShape.new(name: 'BatchDeleteDetectorRequest')
|
|
33
|
+
BatchDeleteDetectorResponse = Shapes::StructureShape.new(name: 'BatchDeleteDetectorResponse')
|
|
30
34
|
BatchDisableAlarmRequest = Shapes::StructureShape.new(name: 'BatchDisableAlarmRequest')
|
|
31
35
|
BatchDisableAlarmResponse = Shapes::StructureShape.new(name: 'BatchDisableAlarmResponse')
|
|
32
36
|
BatchEnableAlarmRequest = Shapes::StructureShape.new(name: 'BatchEnableAlarmRequest')
|
|
@@ -46,6 +50,8 @@ module Aws::IoTEventsData
|
|
|
46
50
|
ComparisonOperator = Shapes::StringShape.new(name: 'ComparisonOperator')
|
|
47
51
|
CustomerAction = Shapes::StructureShape.new(name: 'CustomerAction')
|
|
48
52
|
CustomerActionName = Shapes::StringShape.new(name: 'CustomerActionName')
|
|
53
|
+
DeleteDetectorRequest = Shapes::StructureShape.new(name: 'DeleteDetectorRequest')
|
|
54
|
+
DeleteDetectorRequests = Shapes::ListShape.new(name: 'DeleteDetectorRequests')
|
|
49
55
|
DescribeAlarmRequest = Shapes::StructureShape.new(name: 'DescribeAlarmRequest')
|
|
50
56
|
DescribeAlarmResponse = Shapes::StructureShape.new(name: 'DescribeAlarmResponse')
|
|
51
57
|
DescribeDetectorRequest = Shapes::StructureShape.new(name: 'DescribeDetectorRequest')
|
|
@@ -170,6 +176,19 @@ module Aws::IoTEventsData
|
|
|
170
176
|
BatchAlarmActionErrorEntry.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "errorMessage"))
|
|
171
177
|
BatchAlarmActionErrorEntry.struct_class = Types::BatchAlarmActionErrorEntry
|
|
172
178
|
|
|
179
|
+
BatchDeleteDetectorErrorEntries.member = Shapes::ShapeRef.new(shape: BatchDeleteDetectorErrorEntry)
|
|
180
|
+
|
|
181
|
+
BatchDeleteDetectorErrorEntry.add_member(:message_id, Shapes::ShapeRef.new(shape: MessageId, location_name: "messageId"))
|
|
182
|
+
BatchDeleteDetectorErrorEntry.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "errorCode"))
|
|
183
|
+
BatchDeleteDetectorErrorEntry.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "errorMessage"))
|
|
184
|
+
BatchDeleteDetectorErrorEntry.struct_class = Types::BatchDeleteDetectorErrorEntry
|
|
185
|
+
|
|
186
|
+
BatchDeleteDetectorRequest.add_member(:detectors, Shapes::ShapeRef.new(shape: DeleteDetectorRequests, required: true, location_name: "detectors"))
|
|
187
|
+
BatchDeleteDetectorRequest.struct_class = Types::BatchDeleteDetectorRequest
|
|
188
|
+
|
|
189
|
+
BatchDeleteDetectorResponse.add_member(:batch_delete_detector_error_entries, Shapes::ShapeRef.new(shape: BatchDeleteDetectorErrorEntries, location_name: "batchDeleteDetectorErrorEntries"))
|
|
190
|
+
BatchDeleteDetectorResponse.struct_class = Types::BatchDeleteDetectorResponse
|
|
191
|
+
|
|
173
192
|
BatchDisableAlarmRequest.add_member(:disable_action_requests, Shapes::ShapeRef.new(shape: DisableAlarmActionRequests, required: true, location_name: "disableActionRequests"))
|
|
174
193
|
BatchDisableAlarmRequest.struct_class = Types::BatchDisableAlarmRequest
|
|
175
194
|
|
|
@@ -228,6 +247,13 @@ module Aws::IoTEventsData
|
|
|
228
247
|
CustomerAction.add_member(:reset_action_configuration, Shapes::ShapeRef.new(shape: ResetActionConfiguration, location_name: "resetActionConfiguration"))
|
|
229
248
|
CustomerAction.struct_class = Types::CustomerAction
|
|
230
249
|
|
|
250
|
+
DeleteDetectorRequest.add_member(:message_id, Shapes::ShapeRef.new(shape: MessageId, required: true, location_name: "messageId"))
|
|
251
|
+
DeleteDetectorRequest.add_member(:detector_model_name, Shapes::ShapeRef.new(shape: DetectorModelName, required: true, location_name: "detectorModelName"))
|
|
252
|
+
DeleteDetectorRequest.add_member(:key_value, Shapes::ShapeRef.new(shape: KeyValue, location_name: "keyValue"))
|
|
253
|
+
DeleteDetectorRequest.struct_class = Types::DeleteDetectorRequest
|
|
254
|
+
|
|
255
|
+
DeleteDetectorRequests.member = Shapes::ShapeRef.new(shape: DeleteDetectorRequest)
|
|
256
|
+
|
|
231
257
|
DescribeAlarmRequest.add_member(:alarm_model_name, Shapes::ShapeRef.new(shape: AlarmModelName, required: true, location: "uri", location_name: "alarmModelName"))
|
|
232
258
|
DescribeAlarmRequest.add_member(:key_value, Shapes::ShapeRef.new(shape: KeyValue, location: "querystring", location_name: "keyValue"))
|
|
233
259
|
DescribeAlarmRequest.struct_class = Types::DescribeAlarmRequest
|
|
@@ -440,6 +466,18 @@ module Aws::IoTEventsData
|
|
|
440
466
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
441
467
|
end)
|
|
442
468
|
|
|
469
|
+
api.add_operation(:batch_delete_detector, Seahorse::Model::Operation.new.tap do |o|
|
|
470
|
+
o.name = "BatchDeleteDetector"
|
|
471
|
+
o.http_method = "POST"
|
|
472
|
+
o.http_request_uri = "/detectors/delete"
|
|
473
|
+
o.input = Shapes::ShapeRef.new(shape: BatchDeleteDetectorRequest)
|
|
474
|
+
o.output = Shapes::ShapeRef.new(shape: BatchDeleteDetectorResponse)
|
|
475
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
|
476
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
|
477
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
|
478
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
479
|
+
end)
|
|
480
|
+
|
|
443
481
|
api.add_operation(:batch_disable_alarm, Seahorse::Model::Operation.new.tap do |o|
|
|
444
482
|
o.name = "BatchDisableAlarm"
|
|
445
483
|
o.http_method = "POST"
|
|
@@ -307,6 +307,69 @@ module Aws::IoTEventsData
|
|
|
307
307
|
include Aws::Structure
|
|
308
308
|
end
|
|
309
309
|
|
|
310
|
+
# Contains error messages associated with the deletion request.
|
|
311
|
+
#
|
|
312
|
+
# @!attribute [rw] message_id
|
|
313
|
+
# The ID of the message that caused the error. (See the value of the
|
|
314
|
+
# `"messageId"` in the [detectors][1] object of the
|
|
315
|
+
# `DeleteDetectorRequest`.)
|
|
316
|
+
#
|
|
317
|
+
#
|
|
318
|
+
#
|
|
319
|
+
# [1]: https://docs.aws.amazon.com/iotevents/latest/apireference/API_iotevents-data_BatchDeleteDetector.html#iotevents-iotevents-data_BatchDeleteDetector-request-detectors
|
|
320
|
+
# @return [String]
|
|
321
|
+
#
|
|
322
|
+
# @!attribute [rw] error_code
|
|
323
|
+
# The error code.
|
|
324
|
+
# @return [String]
|
|
325
|
+
#
|
|
326
|
+
# @!attribute [rw] error_message
|
|
327
|
+
# A message that describes the error.
|
|
328
|
+
# @return [String]
|
|
329
|
+
#
|
|
330
|
+
class BatchDeleteDetectorErrorEntry < Struct.new(
|
|
331
|
+
:message_id,
|
|
332
|
+
:error_code,
|
|
333
|
+
:error_message)
|
|
334
|
+
SENSITIVE = []
|
|
335
|
+
include Aws::Structure
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
# @note When making an API call, you may pass BatchDeleteDetectorRequest
|
|
339
|
+
# data as a hash:
|
|
340
|
+
#
|
|
341
|
+
# {
|
|
342
|
+
# detectors: [ # required
|
|
343
|
+
# {
|
|
344
|
+
# message_id: "MessageId", # required
|
|
345
|
+
# detector_model_name: "DetectorModelName", # required
|
|
346
|
+
# key_value: "KeyValue",
|
|
347
|
+
# },
|
|
348
|
+
# ],
|
|
349
|
+
# }
|
|
350
|
+
#
|
|
351
|
+
# @!attribute [rw] detectors
|
|
352
|
+
# The list of one or more detectors to be deleted.
|
|
353
|
+
# @return [Array<Types::DeleteDetectorRequest>]
|
|
354
|
+
#
|
|
355
|
+
class BatchDeleteDetectorRequest < Struct.new(
|
|
356
|
+
:detectors)
|
|
357
|
+
SENSITIVE = []
|
|
358
|
+
include Aws::Structure
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
# @!attribute [rw] batch_delete_detector_error_entries
|
|
362
|
+
# A list of errors associated with the request, or an empty array
|
|
363
|
+
# (`[]`) if there are no errors. Each error entry contains a
|
|
364
|
+
# `messageId` that helps you identify the entry that failed.
|
|
365
|
+
# @return [Array<Types::BatchDeleteDetectorErrorEntry>]
|
|
366
|
+
#
|
|
367
|
+
class BatchDeleteDetectorResponse < Struct.new(
|
|
368
|
+
:batch_delete_detector_error_entries)
|
|
369
|
+
SENSITIVE = []
|
|
370
|
+
include Aws::Structure
|
|
371
|
+
end
|
|
372
|
+
|
|
310
373
|
# @note When making an API call, you may pass BatchDisableAlarmRequest
|
|
311
374
|
# data as a hash:
|
|
312
375
|
#
|
|
@@ -652,6 +715,43 @@ module Aws::IoTEventsData
|
|
|
652
715
|
include Aws::Structure
|
|
653
716
|
end
|
|
654
717
|
|
|
718
|
+
# Information used to delete the detector model.
|
|
719
|
+
#
|
|
720
|
+
# @note When making an API call, you may pass DeleteDetectorRequest
|
|
721
|
+
# data as a hash:
|
|
722
|
+
#
|
|
723
|
+
# {
|
|
724
|
+
# message_id: "MessageId", # required
|
|
725
|
+
# detector_model_name: "DetectorModelName", # required
|
|
726
|
+
# key_value: "KeyValue",
|
|
727
|
+
# }
|
|
728
|
+
#
|
|
729
|
+
# @!attribute [rw] message_id
|
|
730
|
+
# The ID to assign to the `DeleteDetectorRequest`. Each `"messageId"`
|
|
731
|
+
# must be unique within each batch sent.
|
|
732
|
+
# @return [String]
|
|
733
|
+
#
|
|
734
|
+
# @!attribute [rw] detector_model_name
|
|
735
|
+
# The name of the detector model that was used to create the detector
|
|
736
|
+
# instance.
|
|
737
|
+
# @return [String]
|
|
738
|
+
#
|
|
739
|
+
# @!attribute [rw] key_value
|
|
740
|
+
# The value of the [key][1] used to identify the detector.
|
|
741
|
+
#
|
|
742
|
+
#
|
|
743
|
+
#
|
|
744
|
+
# [1]: https://docs.aws.amazon.com/iotevents/latest/apireference/API_CreateDetectorModel.html#iotevents-CreateDetectorModel-request-key
|
|
745
|
+
# @return [String]
|
|
746
|
+
#
|
|
747
|
+
class DeleteDetectorRequest < Struct.new(
|
|
748
|
+
:message_id,
|
|
749
|
+
:detector_model_name,
|
|
750
|
+
:key_value)
|
|
751
|
+
SENSITIVE = []
|
|
752
|
+
include Aws::Structure
|
|
753
|
+
end
|
|
754
|
+
|
|
655
755
|
# @note When making an API call, you may pass DescribeAlarmRequest
|
|
656
756
|
# data as a hash:
|
|
657
757
|
#
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-ioteventsdata
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.27.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-05-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|