aws-sdk-ioteventsdata 1.24.0 → 1.27.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: 1c83cf3a7226d285ad6bb9c51eebbda757cb3ff897c43d4d3e31c143240ef6df
4
- data.tar.gz: 8888e362c6082d96c76e38d9bacf5d94c49ebe88732ba92237add75114c526b8
3
+ metadata.gz: 898dc31a30e4a618a2e7920ac235ab574e4672c216cb3e247feb144c1e0d7f91
4
+ data.tar.gz: f2fb81e173ca9704b61fcf29a444431ef838b6fa577d6b9184dc86e14c405bff
5
5
  SHA512:
6
- metadata.gz: 917ba31df4c05fe69dd471ccd9f102d5b627623bde2745fa200c97048781d6416c1f3d9f0b6c97e01d185018f5b1abad4da7e654fa826c0d59c8066205399e79
7
- data.tar.gz: 7c94809e3f15669975e1fd9b8add5de5be0897dd7f9d43c53c0b4a179027a99932dbfa54c14f696a91942a4ce39c497306b5850d97463dd9623bb695df4b243d
6
+ metadata.gz: b44079fe0b9a5b85704541b9cd821d964ec9bd4d722e11b90c716702fedc9a25c96e4c29062d0c6ca3b89f7cb0fa5d422dee65be3771b486321b61c27f641f87
7
+ data.tar.gz: db8e71efc2e30ddd5f01fd2eafbc6c5399c4a009952a5ee4c7bddafe6be93109d9152ab7f3980bc358cc6b984fe0cfd9698667ca1df244f9fa499d0c20b536ea
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.27.0 (2022-05-18)
5
+ ------------------
6
+
7
+ * Feature - Introducing new API for deleting detectors: BatchDeleteDetector.
8
+
9
+ 1.26.0 (2022-02-24)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.25.0 (2022-02-03)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
4
19
  1.24.0 (2022-01-11)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.24.0
1
+ 1.27.0
@@ -27,7 +27,9 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
30
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
+ require 'aws-sdk-core/plugins/recursion_detection.rb'
31
33
  require 'aws-sdk-core/plugins/signature_v4.rb'
32
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
33
35
 
@@ -74,7 +76,9 @@ module Aws::IoTEventsData
74
76
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
75
77
  add_plugin(Aws::Plugins::TransferEncoding)
76
78
  add_plugin(Aws::Plugins::HttpChecksum)
79
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
77
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
+ add_plugin(Aws::Plugins::RecursionDetection)
78
82
  add_plugin(Aws::Plugins::SignatureV4)
79
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
80
84
 
@@ -385,6 +389,48 @@ module Aws::IoTEventsData
385
389
  req.send_request(options)
386
390
  end
387
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&lt;Types::BatchDeleteDetectorErrorEntry&gt;
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
+
388
434
  # Disables one or more alarms. The alarms change to the `DISABLED` state
389
435
  # after you disable them.
390
436
  #
@@ -834,7 +880,7 @@ module Aws::IoTEventsData
834
880
  params: params,
835
881
  config: config)
836
882
  context[:gem_name] = 'aws-sdk-ioteventsdata'
837
- context[:gem_version] = '1.24.0'
883
+ context[:gem_version] = '1.27.0'
838
884
  Seahorse::Client::Request.new(handlers, context)
839
885
  end
840
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
  #
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-ioteventsdata/customizations'
48
48
  # @!group service
49
49
  module Aws::IoTEventsData
50
50
 
51
- GEM_VERSION = '1.24.0'
51
+ GEM_VERSION = '1.27.0'
52
52
 
53
53
  end
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.24.0
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-01-11 00:00:00.000000000 Z
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
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.125.0
22
+ version: 3.127.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.125.0
32
+ version: 3.127.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement