aws-sdk-lookoutmetrics 1.12.0 → 1.13.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cc8c97bd83155d122b2ce3a58022bcb99f68fdb9e29f3010ab418c26c9ce523
4
- data.tar.gz: 4b5940a08fbbe0f1e67866a6f6c39030294d77c5e7d625ded4c416d0cc727319
3
+ metadata.gz: 7988015864c401e8fed30ac06ab13d414c960abf7e9ee123bb038398aa509bae
4
+ data.tar.gz: 1c50397984fdcdd15e8fd9327d125f359bc0505c60aba217131fb26a264704c6
5
5
  SHA512:
6
- metadata.gz: b5a51ac5cb361e5ad7d72195aa244740082903205e141722e2df9e5e6505ccffed9595571083347f087bf779e1effd2d5390c27962490398bfd4772e3acab886
7
- data.tar.gz: f1e824e124fe97453783a8f89f814dc5fbfe96c24c7ce933b95e0cf8adb37f4d17c7d61afee32883cc368505caec1e31458fefbcbc41640952eb8852796fe7ed
6
+ metadata.gz: 7a1ecfe4784652b216bd5b12f53fa799821ce1faa8f1f412b09f30413fe04d0d48d831bcc363479ec778a5d2e986d9f6440e277488dfac73bdf9ffcdc9e6776d
7
+ data.tar.gz: 320dfa149f67655d730b55b6faf1a1ce976bd5fc75f695224043bb6e744662c06da69a1d2637420b901d34b515c7cc8e8ab3d819aca7263353ae34f571ed3923
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.13.0 (2022-01-14)
5
+ ------------------
6
+
7
+ * Feature - This release adds a new DeactivateAnomalyDetector API operation.
8
+
4
9
  1.12.0 (2022-01-10)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.12.0
1
+ 1.13.0
@@ -646,6 +646,28 @@ module Aws::LookoutMetrics
646
646
  req.send_request(options)
647
647
  end
648
648
 
649
+ # Deactivates an anomaly detector.
650
+ #
651
+ # @option params [required, String] :anomaly_detector_arn
652
+ # The Amazon Resource Name (ARN) of the anomaly detector.
653
+ #
654
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
655
+ #
656
+ # @example Request syntax with placeholder values
657
+ #
658
+ # resp = client.deactivate_anomaly_detector({
659
+ # anomaly_detector_arn: "Arn", # required
660
+ # })
661
+ #
662
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DeactivateAnomalyDetector AWS API Documentation
663
+ #
664
+ # @overload deactivate_anomaly_detector(params = {})
665
+ # @param [Hash] params ({})
666
+ def deactivate_anomaly_detector(params = {}, options = {})
667
+ req = build_request(:deactivate_anomaly_detector, params)
668
+ req.send_request(options)
669
+ end
670
+
649
671
  # Deletes an alert.
650
672
  #
651
673
  # @option params [required, String] :alert_arn
@@ -823,10 +845,10 @@ module Aws::LookoutMetrics
823
845
  # resp.anomaly_detector_config.anomaly_detector_frequency #=> String, one of "P1D", "PT1H", "PT10M", "PT5M"
824
846
  # resp.creation_time #=> Time
825
847
  # resp.last_modification_time #=> Time
826
- # resp.status #=> String, one of "ACTIVE", "ACTIVATING", "DELETING", "FAILED", "INACTIVE", "LEARNING", "BACK_TEST_ACTIVATING", "BACK_TEST_ACTIVE", "BACK_TEST_COMPLETE"
848
+ # resp.status #=> String, one of "ACTIVE", "ACTIVATING", "DELETING", "FAILED", "INACTIVE", "LEARNING", "BACK_TEST_ACTIVATING", "BACK_TEST_ACTIVE", "BACK_TEST_COMPLETE", "DEACTIVATED", "DEACTIVATING"
827
849
  # resp.failure_reason #=> String
828
850
  # resp.kms_key_arn #=> String
829
- # resp.failure_type #=> String, one of "ACTIVATION_FAILURE", "BACK_TEST_ACTIVATION_FAILURE", "DELETION_FAILURE"
851
+ # resp.failure_type #=> String, one of "ACTIVATION_FAILURE", "BACK_TEST_ACTIVATION_FAILURE", "DELETION_FAILURE", "DEACTIVATION_FAILURE"
830
852
  #
831
853
  # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DescribeAnomalyDetector AWS API Documentation
832
854
  #
@@ -1176,7 +1198,7 @@ module Aws::LookoutMetrics
1176
1198
  # resp.anomaly_detector_summary_list[0].anomaly_detector_description #=> String
1177
1199
  # resp.anomaly_detector_summary_list[0].creation_time #=> Time
1178
1200
  # resp.anomaly_detector_summary_list[0].last_modification_time #=> Time
1179
- # resp.anomaly_detector_summary_list[0].status #=> String, one of "ACTIVE", "ACTIVATING", "DELETING", "FAILED", "INACTIVE", "LEARNING", "BACK_TEST_ACTIVATING", "BACK_TEST_ACTIVE", "BACK_TEST_COMPLETE"
1201
+ # resp.anomaly_detector_summary_list[0].status #=> String, one of "ACTIVE", "ACTIVATING", "DELETING", "FAILED", "INACTIVE", "LEARNING", "BACK_TEST_ACTIVATING", "BACK_TEST_ACTIVE", "BACK_TEST_COMPLETE", "DEACTIVATED", "DEACTIVATING"
1180
1202
  # resp.anomaly_detector_summary_list[0].tags #=> Hash
1181
1203
  # resp.anomaly_detector_summary_list[0].tags["TagKey"] #=> String
1182
1204
  # resp.next_token #=> String
@@ -1722,7 +1744,7 @@ module Aws::LookoutMetrics
1722
1744
  params: params,
1723
1745
  config: config)
1724
1746
  context[:gem_name] = 'aws-sdk-lookoutmetrics'
1725
- context[:gem_version] = '1.12.0'
1747
+ context[:gem_version] = '1.13.0'
1726
1748
  Seahorse::Client::Request.new(handlers, context)
1727
1749
  end
1728
1750
 
@@ -63,6 +63,8 @@ module Aws::LookoutMetrics
63
63
  DatabaseHost = Shapes::StringShape.new(name: 'DatabaseHost')
64
64
  DatabasePort = Shapes::IntegerShape.new(name: 'DatabasePort')
65
65
  DateTimeFormat = Shapes::StringShape.new(name: 'DateTimeFormat')
66
+ DeactivateAnomalyDetectorRequest = Shapes::StructureShape.new(name: 'DeactivateAnomalyDetectorRequest')
67
+ DeactivateAnomalyDetectorResponse = Shapes::StructureShape.new(name: 'DeactivateAnomalyDetectorResponse')
66
68
  DeleteAlertRequest = Shapes::StructureShape.new(name: 'DeleteAlertRequest')
67
69
  DeleteAlertResponse = Shapes::StructureShape.new(name: 'DeleteAlertResponse')
68
70
  DeleteAnomalyDetectorRequest = Shapes::StructureShape.new(name: 'DeleteAnomalyDetectorRequest')
@@ -355,6 +357,11 @@ module Aws::LookoutMetrics
355
357
  CsvFormatDescriptor.add_member(:quote_symbol, Shapes::ShapeRef.new(shape: QuoteSymbol, location_name: "QuoteSymbol"))
356
358
  CsvFormatDescriptor.struct_class = Types::CsvFormatDescriptor
357
359
 
360
+ DeactivateAnomalyDetectorRequest.add_member(:anomaly_detector_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AnomalyDetectorArn"))
361
+ DeactivateAnomalyDetectorRequest.struct_class = Types::DeactivateAnomalyDetectorRequest
362
+
363
+ DeactivateAnomalyDetectorResponse.struct_class = Types::DeactivateAnomalyDetectorResponse
364
+
358
365
  DeleteAlertRequest.add_member(:alert_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "AlertArn"))
359
366
  DeleteAlertRequest.struct_class = Types::DeleteAlertRequest
360
367
 
@@ -833,6 +840,20 @@ module Aws::LookoutMetrics
833
840
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
834
841
  end)
835
842
 
843
+ api.add_operation(:deactivate_anomaly_detector, Seahorse::Model::Operation.new.tap do |o|
844
+ o.name = "DeactivateAnomalyDetector"
845
+ o.http_method = "POST"
846
+ o.http_request_uri = "/DeactivateAnomalyDetector"
847
+ o.input = Shapes::ShapeRef.new(shape: DeactivateAnomalyDetectorRequest)
848
+ o.output = Shapes::ShapeRef.new(shape: DeactivateAnomalyDetectorResponse)
849
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
850
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
851
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
852
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
853
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
854
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
855
+ end)
856
+
836
857
  api.add_operation(:delete_alert, Seahorse::Model::Operation.new.tap do |o|
837
858
  o.name = "DeleteAlert"
838
859
  o.http_method = "POST"
@@ -903,6 +903,29 @@ module Aws::LookoutMetrics
903
903
  include Aws::Structure
904
904
  end
905
905
 
906
+ # @note When making an API call, you may pass DeactivateAnomalyDetectorRequest
907
+ # data as a hash:
908
+ #
909
+ # {
910
+ # anomaly_detector_arn: "Arn", # required
911
+ # }
912
+ #
913
+ # @!attribute [rw] anomaly_detector_arn
914
+ # The Amazon Resource Name (ARN) of the anomaly detector.
915
+ # @return [String]
916
+ #
917
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DeactivateAnomalyDetectorRequest AWS API Documentation
918
+ #
919
+ class DeactivateAnomalyDetectorRequest < Struct.new(
920
+ :anomaly_detector_arn)
921
+ SENSITIVE = []
922
+ include Aws::Structure
923
+ end
924
+
925
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/DeactivateAnomalyDetectorResponse AWS API Documentation
926
+ #
927
+ class DeactivateAnomalyDetectorResponse < Aws::EmptyStructure; end
928
+
906
929
  # @note When making an API call, you may pass DeleteAlertRequest
907
930
  # data as a hash:
908
931
  #
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-lookoutmetrics/customizations'
48
48
  # @!group service
49
49
  module Aws::LookoutMetrics
50
50
 
51
- GEM_VERSION = '1.12.0'
51
+ GEM_VERSION = '1.13.0'
52
52
 
53
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-lookoutmetrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.13.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-10 00:00:00.000000000 Z
11
+ date: 2022-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core