aws-sdk-cloudwatch 1.139.0 → 1.141.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatch/alarm.rb +3 -3
- data/lib/aws-sdk-cloudwatch/client.rb +491 -15
- data/lib/aws-sdk-cloudwatch/client_api.rb +164 -0
- data/lib/aws-sdk-cloudwatch/composite_alarm.rb +3 -3
- data/lib/aws-sdk-cloudwatch/errors.rb +64 -0
- data/lib/aws-sdk-cloudwatch/resource.rb +18 -12
- data/lib/aws-sdk-cloudwatch/types.rb +600 -10
- data/lib/aws-sdk-cloudwatch/waiters.rb +37 -0
- data/lib/aws-sdk-cloudwatch.rb +2 -2
- data/sig/alarm.rbs +1 -1
- data/sig/client.rbs +90 -4
- data/sig/composite_alarm.rbs +1 -1
- data/sig/errors.rbs +12 -0
- data/sig/resource.rbs +2 -2
- data/sig/types.rbs +116 -3
- data/sig/waiters.rbs +20 -2
- metadata +1 -1
|
@@ -72,6 +72,7 @@ module Aws::CloudWatch
|
|
|
72
72
|
# | alarm_exists | {Client#describe_alarms} | 5 | 40 |
|
|
73
73
|
# | alarm_mute_rule_exists | {Client#get_alarm_mute_rule} | 5 | 40 |
|
|
74
74
|
# | composite_alarm_exists | {Client#describe_alarms} | 5 | 40 |
|
|
75
|
+
# | log_alarm_exists | {Client#describe_alarms} | 5 | 40 |
|
|
75
76
|
#
|
|
76
77
|
module Waiters
|
|
77
78
|
|
|
@@ -188,5 +189,41 @@ module Aws::CloudWatch
|
|
|
188
189
|
attr_reader :waiter
|
|
189
190
|
|
|
190
191
|
end
|
|
192
|
+
|
|
193
|
+
class LogAlarmExists
|
|
194
|
+
|
|
195
|
+
# @param [Hash] options
|
|
196
|
+
# @option options [required, Client] :client
|
|
197
|
+
# @option options [Integer] :max_attempts (40)
|
|
198
|
+
# @option options [Integer] :delay (5)
|
|
199
|
+
# @option options [Proc] :before_attempt
|
|
200
|
+
# @option options [Proc] :before_wait
|
|
201
|
+
def initialize(options)
|
|
202
|
+
@client = options.fetch(:client)
|
|
203
|
+
@waiter = Aws::Waiters::Waiter.new({
|
|
204
|
+
max_attempts: 40,
|
|
205
|
+
delay: 5,
|
|
206
|
+
poller: Aws::Waiters::Poller.new(
|
|
207
|
+
operation_name: :describe_alarms,
|
|
208
|
+
acceptors: [{
|
|
209
|
+
"matcher" => "path",
|
|
210
|
+
"expected" => true,
|
|
211
|
+
"argument" => "length(log_alarms[]) > `0`",
|
|
212
|
+
"state" => "success"
|
|
213
|
+
}]
|
|
214
|
+
)
|
|
215
|
+
}.merge(options))
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# @option (see Client#describe_alarms)
|
|
219
|
+
# @return (see Client#describe_alarms)
|
|
220
|
+
def wait(params = {})
|
|
221
|
+
@waiter.wait(client: @client, params: params)
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# @api private
|
|
225
|
+
attr_reader :waiter
|
|
226
|
+
|
|
227
|
+
end
|
|
191
228
|
end
|
|
192
229
|
end
|
data/lib/aws-sdk-cloudwatch.rb
CHANGED
|
@@ -23,7 +23,7 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:cloudwatch)
|
|
|
23
23
|
# structure.
|
|
24
24
|
#
|
|
25
25
|
# cloud_watch = Aws::CloudWatch::Client.new
|
|
26
|
-
# resp = cloud_watch.
|
|
26
|
+
# resp = cloud_watch.associate_dataset_kms_key(params)
|
|
27
27
|
#
|
|
28
28
|
# See {Client} for more information.
|
|
29
29
|
#
|
|
@@ -58,7 +58,7 @@ module Aws::CloudWatch
|
|
|
58
58
|
autoload :CompositeAlarm, 'aws-sdk-cloudwatch/composite_alarm'
|
|
59
59
|
autoload :Metric, 'aws-sdk-cloudwatch/metric'
|
|
60
60
|
|
|
61
|
-
GEM_VERSION = '1.
|
|
61
|
+
GEM_VERSION = '1.141.0'
|
|
62
62
|
|
|
63
63
|
end
|
|
64
64
|
|
data/sig/alarm.rbs
CHANGED
|
@@ -136,7 +136,7 @@ module Aws
|
|
|
136
136
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Alarm.html#describe_history-instance_method
|
|
137
137
|
def describe_history: (
|
|
138
138
|
?alarm_contributor_id: ::String,
|
|
139
|
-
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm")],
|
|
139
|
+
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm" | "LogAlarm")],
|
|
140
140
|
?history_item_type: ("ConfigurationUpdate" | "StateUpdate" | "Action" | "AlarmContributorStateUpdate" | "AlarmContributorAction"),
|
|
141
141
|
?start_date: ::Time,
|
|
142
142
|
?end_date: ::Time,
|
data/sig/client.rbs
CHANGED
|
@@ -79,6 +79,16 @@ module Aws
|
|
|
79
79
|
| (?Hash[Symbol, untyped]) -> instance
|
|
80
80
|
|
|
81
81
|
|
|
82
|
+
interface _AssociateDatasetKmsKeyResponseSuccess
|
|
83
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::AssociateDatasetKmsKeyOutput]
|
|
84
|
+
end
|
|
85
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Client.html#associate_dataset_kms_key-instance_method
|
|
86
|
+
def associate_dataset_kms_key: (
|
|
87
|
+
dataset_identifier: ::String,
|
|
88
|
+
kms_key_arn: ::String
|
|
89
|
+
) -> _AssociateDatasetKmsKeyResponseSuccess
|
|
90
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AssociateDatasetKmsKeyResponseSuccess
|
|
91
|
+
|
|
82
92
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Client.html#delete_alarm_mute_rule-instance_method
|
|
83
93
|
def delete_alarm_mute_rule: (
|
|
84
94
|
alarm_mute_rule_name: ::String
|
|
@@ -159,7 +169,7 @@ module Aws
|
|
|
159
169
|
def describe_alarm_history: (
|
|
160
170
|
?alarm_name: ::String,
|
|
161
171
|
?alarm_contributor_id: ::String,
|
|
162
|
-
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm")],
|
|
172
|
+
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm" | "LogAlarm")],
|
|
163
173
|
?history_item_type: ("ConfigurationUpdate" | "StateUpdate" | "Action" | "AlarmContributorStateUpdate" | "AlarmContributorAction"),
|
|
164
174
|
?start_date: ::Time,
|
|
165
175
|
?end_date: ::Time,
|
|
@@ -173,13 +183,14 @@ module Aws
|
|
|
173
183
|
include ::Seahorse::Client::_ResponseSuccess[Types::DescribeAlarmsOutput]
|
|
174
184
|
def composite_alarms: () -> ::Array[Types::CompositeAlarm]
|
|
175
185
|
def metric_alarms: () -> ::Array[Types::MetricAlarm]
|
|
186
|
+
def log_alarms: () -> ::Array[Types::LogAlarm]
|
|
176
187
|
def next_token: () -> ::String
|
|
177
188
|
end
|
|
178
189
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Client.html#describe_alarms-instance_method
|
|
179
190
|
def describe_alarms: (
|
|
180
191
|
?alarm_names: Array[::String],
|
|
181
192
|
?alarm_name_prefix: ::String,
|
|
182
|
-
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm")],
|
|
193
|
+
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm" | "LogAlarm")],
|
|
183
194
|
?children_of_alarm_name: ::String,
|
|
184
195
|
?parents_of_alarm_name: ::String,
|
|
185
196
|
?state_value: ("OK" | "ALARM" | "INSUFFICIENT_DATA"),
|
|
@@ -259,6 +270,15 @@ module Aws
|
|
|
259
270
|
) -> _DisableInsightRulesResponseSuccess
|
|
260
271
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DisableInsightRulesResponseSuccess
|
|
261
272
|
|
|
273
|
+
interface _DisassociateDatasetKmsKeyResponseSuccess
|
|
274
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DisassociateDatasetKmsKeyOutput]
|
|
275
|
+
end
|
|
276
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Client.html#disassociate_dataset_kms_key-instance_method
|
|
277
|
+
def disassociate_dataset_kms_key: (
|
|
278
|
+
dataset_identifier: ::String
|
|
279
|
+
) -> _DisassociateDatasetKmsKeyResponseSuccess
|
|
280
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DisassociateDatasetKmsKeyResponseSuccess
|
|
281
|
+
|
|
262
282
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Client.html#enable_alarm_actions-instance_method
|
|
263
283
|
def enable_alarm_actions: (
|
|
264
284
|
alarm_names: Array[::String]
|
|
@@ -306,6 +326,18 @@ module Aws
|
|
|
306
326
|
) -> _GetDashboardResponseSuccess
|
|
307
327
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDashboardResponseSuccess
|
|
308
328
|
|
|
329
|
+
interface _GetDatasetResponseSuccess
|
|
330
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetDatasetOutput]
|
|
331
|
+
def dataset_id: () -> ::String
|
|
332
|
+
def arn: () -> ::String
|
|
333
|
+
def kms_key_arn: () -> ::String
|
|
334
|
+
end
|
|
335
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Client.html#get_dataset-instance_method
|
|
336
|
+
def get_dataset: (
|
|
337
|
+
dataset_identifier: ::String
|
|
338
|
+
) -> _GetDatasetResponseSuccess
|
|
339
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDatasetResponseSuccess
|
|
340
|
+
|
|
309
341
|
interface _GetInsightRuleReportResponseSuccess
|
|
310
342
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetInsightRuleReportOutput]
|
|
311
343
|
def key_labels: () -> ::Array[::String]
|
|
@@ -610,6 +642,48 @@ module Aws
|
|
|
610
642
|
) -> _PutInsightRuleResponseSuccess
|
|
611
643
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutInsightRuleResponseSuccess
|
|
612
644
|
|
|
645
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Client.html#put_log_alarm-instance_method
|
|
646
|
+
def put_log_alarm: (
|
|
647
|
+
alarm_name: ::String,
|
|
648
|
+
?alarm_description: ::String,
|
|
649
|
+
scheduled_query_configuration: {
|
|
650
|
+
query_string: ::String,
|
|
651
|
+
log_group_identifiers: Array[::String]?,
|
|
652
|
+
query_arn: ::String?,
|
|
653
|
+
scheduled_query_role_arn: ::String,
|
|
654
|
+
schedule_configuration: {
|
|
655
|
+
schedule_expression: ::String,
|
|
656
|
+
start_time_offset: ::Integer?,
|
|
657
|
+
end_time_offset: ::Integer?
|
|
658
|
+
},
|
|
659
|
+
aggregation_expression: ::String,
|
|
660
|
+
tags: Array[
|
|
661
|
+
{
|
|
662
|
+
key: ::String,
|
|
663
|
+
value: ::String
|
|
664
|
+
}
|
|
665
|
+
]?
|
|
666
|
+
},
|
|
667
|
+
?action_log_line_count: ::Integer,
|
|
668
|
+
?action_log_line_role_arn: ::String,
|
|
669
|
+
?actions_enabled: bool,
|
|
670
|
+
?ok_actions: Array[::String],
|
|
671
|
+
?alarm_actions: Array[::String],
|
|
672
|
+
?insufficient_data_actions: Array[::String],
|
|
673
|
+
query_results_to_evaluate: ::Integer,
|
|
674
|
+
query_results_to_alarm: ::Integer,
|
|
675
|
+
threshold: ::Float,
|
|
676
|
+
comparison_operator: ("GreaterThanOrEqualToThreshold" | "GreaterThanThreshold" | "LessThanThreshold" | "LessThanOrEqualToThreshold" | "LessThanLowerOrGreaterThanUpperThreshold" | "LessThanLowerThreshold" | "GreaterThanUpperThreshold"),
|
|
677
|
+
?treat_missing_data: ::String,
|
|
678
|
+
?tags: Array[
|
|
679
|
+
{
|
|
680
|
+
key: ::String,
|
|
681
|
+
value: ::String
|
|
682
|
+
}
|
|
683
|
+
]
|
|
684
|
+
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
|
685
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
|
686
|
+
|
|
613
687
|
interface _PutManagedInsightRulesResponseSuccess
|
|
614
688
|
include ::Seahorse::Client::_ResponseSuccess[Types::PutManagedInsightRulesOutput]
|
|
615
689
|
def failures: () -> ::Array[Types::PartialFailure]
|
|
@@ -814,7 +888,7 @@ module Aws
|
|
|
814
888
|
def wait_until: (:alarm_exists waiter_name,
|
|
815
889
|
?alarm_names: Array[::String],
|
|
816
890
|
?alarm_name_prefix: ::String,
|
|
817
|
-
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm")],
|
|
891
|
+
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm" | "LogAlarm")],
|
|
818
892
|
?children_of_alarm_name: ::String,
|
|
819
893
|
?parents_of_alarm_name: ::String,
|
|
820
894
|
?state_value: ("OK" | "ALARM" | "INSUFFICIENT_DATA"),
|
|
@@ -830,7 +904,7 @@ module Aws
|
|
|
830
904
|
| (:composite_alarm_exists waiter_name,
|
|
831
905
|
?alarm_names: Array[::String],
|
|
832
906
|
?alarm_name_prefix: ::String,
|
|
833
|
-
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm")],
|
|
907
|
+
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm" | "LogAlarm")],
|
|
834
908
|
?children_of_alarm_name: ::String,
|
|
835
909
|
?parents_of_alarm_name: ::String,
|
|
836
910
|
?state_value: ("OK" | "ALARM" | "INSUFFICIENT_DATA"),
|
|
@@ -839,6 +913,18 @@ module Aws
|
|
|
839
913
|
?next_token: ::String
|
|
840
914
|
) -> Client::_DescribeAlarmsResponseSuccess
|
|
841
915
|
| (:composite_alarm_exists waiter_name, ?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeAlarmsResponseSuccess
|
|
916
|
+
| (:log_alarm_exists waiter_name,
|
|
917
|
+
?alarm_names: Array[::String],
|
|
918
|
+
?alarm_name_prefix: ::String,
|
|
919
|
+
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm" | "LogAlarm")],
|
|
920
|
+
?children_of_alarm_name: ::String,
|
|
921
|
+
?parents_of_alarm_name: ::String,
|
|
922
|
+
?state_value: ("OK" | "ALARM" | "INSUFFICIENT_DATA"),
|
|
923
|
+
?action_prefix: ::String,
|
|
924
|
+
?max_records: ::Integer,
|
|
925
|
+
?next_token: ::String
|
|
926
|
+
) -> Client::_DescribeAlarmsResponseSuccess
|
|
927
|
+
| (:log_alarm_exists waiter_name, ?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeAlarmsResponseSuccess
|
|
842
928
|
end
|
|
843
929
|
end
|
|
844
930
|
end
|
data/sig/composite_alarm.rbs
CHANGED
|
@@ -100,7 +100,7 @@ module Aws
|
|
|
100
100
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#describe_history-instance_method
|
|
101
101
|
def describe_history: (
|
|
102
102
|
?alarm_contributor_id: ::String,
|
|
103
|
-
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm")],
|
|
103
|
+
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm" | "LogAlarm")],
|
|
104
104
|
?history_item_type: ("ConfigurationUpdate" | "StateUpdate" | "Action" | "AlarmContributorStateUpdate" | "AlarmContributorAction"),
|
|
105
105
|
?start_date: ::Time,
|
|
106
106
|
?end_date: ::Time,
|
data/sig/errors.rbs
CHANGED
|
@@ -38,6 +38,15 @@ module Aws
|
|
|
38
38
|
class InvalidParameterValueException < ::Aws::Errors::ServiceError
|
|
39
39
|
def message: () -> ::String
|
|
40
40
|
end
|
|
41
|
+
class KmsAccessDeniedException < ::Aws::Errors::ServiceError
|
|
42
|
+
def message: () -> ::String
|
|
43
|
+
end
|
|
44
|
+
class KmsKeyDisabledException < ::Aws::Errors::ServiceError
|
|
45
|
+
def message: () -> ::String
|
|
46
|
+
end
|
|
47
|
+
class KmsKeyNotFoundException < ::Aws::Errors::ServiceError
|
|
48
|
+
def message: () -> ::String
|
|
49
|
+
end
|
|
41
50
|
class LimitExceededException < ::Aws::Errors::ServiceError
|
|
42
51
|
end
|
|
43
52
|
class LimitExceededFault < ::Aws::Errors::ServiceError
|
|
@@ -46,6 +55,9 @@ module Aws
|
|
|
46
55
|
class MissingRequiredParameterException < ::Aws::Errors::ServiceError
|
|
47
56
|
def message: () -> ::String
|
|
48
57
|
end
|
|
58
|
+
class ResourceConflict < ::Aws::Errors::ServiceError
|
|
59
|
+
def message: () -> ::String
|
|
60
|
+
end
|
|
49
61
|
class ResourceNotFound < ::Aws::Errors::ServiceError
|
|
50
62
|
def message: () -> ::String
|
|
51
63
|
end
|
data/sig/resource.rbs
CHANGED
|
@@ -89,7 +89,7 @@ module Aws
|
|
|
89
89
|
def alarms: (
|
|
90
90
|
?alarm_names: Array[::String],
|
|
91
91
|
?alarm_name_prefix: ::String,
|
|
92
|
-
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm")],
|
|
92
|
+
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm" | "LogAlarm")],
|
|
93
93
|
?children_of_alarm_name: ::String,
|
|
94
94
|
?parents_of_alarm_name: ::String,
|
|
95
95
|
?state_value: ("OK" | "ALARM" | "INSUFFICIENT_DATA"),
|
|
@@ -104,7 +104,7 @@ module Aws
|
|
|
104
104
|
def composite_alarms: (
|
|
105
105
|
?alarm_names: Array[::String],
|
|
106
106
|
?alarm_name_prefix: ::String,
|
|
107
|
-
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm")],
|
|
107
|
+
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm" | "LogAlarm")],
|
|
108
108
|
?children_of_alarm_name: ::String,
|
|
109
109
|
?parents_of_alarm_name: ::String,
|
|
110
110
|
?state_value: ("OK" | "ALARM" | "INSUFFICIENT_DATA"),
|
data/sig/types.rbs
CHANGED
|
@@ -19,7 +19,7 @@ module Aws::CloudWatch
|
|
|
19
19
|
class AlarmHistoryItem
|
|
20
20
|
attr_accessor alarm_name: ::String
|
|
21
21
|
attr_accessor alarm_contributor_id: ::String
|
|
22
|
-
attr_accessor alarm_type: ("CompositeAlarm" | "MetricAlarm")
|
|
22
|
+
attr_accessor alarm_type: ("CompositeAlarm" | "MetricAlarm" | "LogAlarm")
|
|
23
23
|
attr_accessor timestamp: ::Time
|
|
24
24
|
attr_accessor history_item_type: ("ConfigurationUpdate" | "StateUpdate" | "Action" | "AlarmContributorStateUpdate" | "AlarmContributorAction")
|
|
25
25
|
attr_accessor history_summary: ::String
|
|
@@ -63,6 +63,15 @@ module Aws::CloudWatch
|
|
|
63
63
|
SENSITIVE: []
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
+
class AssociateDatasetKmsKeyInput
|
|
67
|
+
attr_accessor dataset_identifier: ::String
|
|
68
|
+
attr_accessor kms_key_arn: ::String
|
|
69
|
+
SENSITIVE: []
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
class AssociateDatasetKmsKeyOutput < Aws::EmptyStructure
|
|
73
|
+
end
|
|
74
|
+
|
|
66
75
|
class CompositeAlarm
|
|
67
76
|
attr_accessor actions_enabled: bool
|
|
68
77
|
attr_accessor alarm_actions: ::Array[::String]
|
|
@@ -195,7 +204,7 @@ module Aws::CloudWatch
|
|
|
195
204
|
class DescribeAlarmHistoryInput
|
|
196
205
|
attr_accessor alarm_name: ::String
|
|
197
206
|
attr_accessor alarm_contributor_id: ::String
|
|
198
|
-
attr_accessor alarm_types: ::Array[("CompositeAlarm" | "MetricAlarm")]
|
|
207
|
+
attr_accessor alarm_types: ::Array[("CompositeAlarm" | "MetricAlarm" | "LogAlarm")]
|
|
199
208
|
attr_accessor history_item_type: ("ConfigurationUpdate" | "StateUpdate" | "Action" | "AlarmContributorStateUpdate" | "AlarmContributorAction")
|
|
200
209
|
attr_accessor start_date: ::Time
|
|
201
210
|
attr_accessor end_date: ::Time
|
|
@@ -230,7 +239,7 @@ module Aws::CloudWatch
|
|
|
230
239
|
class DescribeAlarmsInput
|
|
231
240
|
attr_accessor alarm_names: ::Array[::String]
|
|
232
241
|
attr_accessor alarm_name_prefix: ::String
|
|
233
|
-
attr_accessor alarm_types: ::Array[("CompositeAlarm" | "MetricAlarm")]
|
|
242
|
+
attr_accessor alarm_types: ::Array[("CompositeAlarm" | "MetricAlarm" | "LogAlarm")]
|
|
234
243
|
attr_accessor children_of_alarm_name: ::String
|
|
235
244
|
attr_accessor parents_of_alarm_name: ::String
|
|
236
245
|
attr_accessor state_value: ("OK" | "ALARM" | "INSUFFICIENT_DATA")
|
|
@@ -243,6 +252,7 @@ module Aws::CloudWatch
|
|
|
243
252
|
class DescribeAlarmsOutput
|
|
244
253
|
attr_accessor composite_alarms: ::Array[Types::CompositeAlarm]
|
|
245
254
|
attr_accessor metric_alarms: ::Array[Types::MetricAlarm]
|
|
255
|
+
attr_accessor log_alarms: ::Array[Types::LogAlarm]
|
|
246
256
|
attr_accessor next_token: ::String
|
|
247
257
|
SENSITIVE: []
|
|
248
258
|
end
|
|
@@ -302,6 +312,14 @@ module Aws::CloudWatch
|
|
|
302
312
|
SENSITIVE: []
|
|
303
313
|
end
|
|
304
314
|
|
|
315
|
+
class DisassociateDatasetKmsKeyInput
|
|
316
|
+
attr_accessor dataset_identifier: ::String
|
|
317
|
+
SENSITIVE: []
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
class DisassociateDatasetKmsKeyOutput < Aws::EmptyStructure
|
|
321
|
+
end
|
|
322
|
+
|
|
305
323
|
class EnableAlarmActionsInput
|
|
306
324
|
attr_accessor alarm_names: ::Array[::String]
|
|
307
325
|
SENSITIVE: []
|
|
@@ -371,6 +389,18 @@ module Aws::CloudWatch
|
|
|
371
389
|
SENSITIVE: []
|
|
372
390
|
end
|
|
373
391
|
|
|
392
|
+
class GetDatasetInput
|
|
393
|
+
attr_accessor dataset_identifier: ::String
|
|
394
|
+
SENSITIVE: []
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
class GetDatasetOutput
|
|
398
|
+
attr_accessor dataset_id: ::String
|
|
399
|
+
attr_accessor arn: ::String
|
|
400
|
+
attr_accessor kms_key_arn: ::String
|
|
401
|
+
SENSITIVE: []
|
|
402
|
+
end
|
|
403
|
+
|
|
374
404
|
class GetInsightRuleReportInput
|
|
375
405
|
attr_accessor rule_name: ::String
|
|
376
406
|
attr_accessor start_time: ::Time
|
|
@@ -529,6 +559,21 @@ module Aws::CloudWatch
|
|
|
529
559
|
SENSITIVE: []
|
|
530
560
|
end
|
|
531
561
|
|
|
562
|
+
class KmsAccessDeniedException
|
|
563
|
+
attr_accessor message: ::String
|
|
564
|
+
SENSITIVE: []
|
|
565
|
+
end
|
|
566
|
+
|
|
567
|
+
class KmsKeyDisabledException
|
|
568
|
+
attr_accessor message: ::String
|
|
569
|
+
SENSITIVE: []
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
class KmsKeyNotFoundException
|
|
573
|
+
attr_accessor message: ::String
|
|
574
|
+
SENSITIVE: []
|
|
575
|
+
end
|
|
576
|
+
|
|
532
577
|
class LabelOptions
|
|
533
578
|
attr_accessor timezone: ::String
|
|
534
579
|
SENSITIVE: []
|
|
@@ -621,6 +666,32 @@ module Aws::CloudWatch
|
|
|
621
666
|
SENSITIVE: []
|
|
622
667
|
end
|
|
623
668
|
|
|
669
|
+
class LogAlarm
|
|
670
|
+
attr_accessor alarm_name: ::String
|
|
671
|
+
attr_accessor alarm_arn: ::String
|
|
672
|
+
attr_accessor alarm_description: ::String
|
|
673
|
+
attr_accessor alarm_configuration_updated_timestamp: ::Time
|
|
674
|
+
attr_accessor actions_enabled: bool
|
|
675
|
+
attr_accessor ok_actions: ::Array[::String]
|
|
676
|
+
attr_accessor alarm_actions: ::Array[::String]
|
|
677
|
+
attr_accessor insufficient_data_actions: ::Array[::String]
|
|
678
|
+
attr_accessor state_value: ("OK" | "ALARM" | "INSUFFICIENT_DATA")
|
|
679
|
+
attr_accessor state_reason: ::String
|
|
680
|
+
attr_accessor state_reason_data: ::String
|
|
681
|
+
attr_accessor state_updated_timestamp: ::Time
|
|
682
|
+
attr_accessor scheduled_query_configuration: Types::ScheduledQueryConfiguration
|
|
683
|
+
attr_accessor query_results_to_evaluate: ::Integer
|
|
684
|
+
attr_accessor query_results_to_alarm: ::Integer
|
|
685
|
+
attr_accessor threshold: ::Float
|
|
686
|
+
attr_accessor comparison_operator: ("GreaterThanOrEqualToThreshold" | "GreaterThanThreshold" | "LessThanThreshold" | "LessThanOrEqualToThreshold" | "LessThanLowerOrGreaterThanUpperThreshold" | "LessThanLowerThreshold" | "GreaterThanUpperThreshold")
|
|
687
|
+
attr_accessor treat_missing_data: ::String
|
|
688
|
+
attr_accessor state_transitioned_timestamp: ::Time
|
|
689
|
+
attr_accessor evaluation_state: ("PARTIAL_DATA" | "EVALUATION_FAILURE" | "EVALUATION_ERROR")
|
|
690
|
+
attr_accessor action_log_line_count: ::Integer
|
|
691
|
+
attr_accessor action_log_line_role_arn: ::String
|
|
692
|
+
SENSITIVE: []
|
|
693
|
+
end
|
|
694
|
+
|
|
624
695
|
class ManagedRule
|
|
625
696
|
attr_accessor template_name: ::String
|
|
626
697
|
attr_accessor resource_arn: ::String
|
|
@@ -853,6 +924,25 @@ module Aws::CloudWatch
|
|
|
853
924
|
class PutInsightRuleOutput < Aws::EmptyStructure
|
|
854
925
|
end
|
|
855
926
|
|
|
927
|
+
class PutLogAlarmInput
|
|
928
|
+
attr_accessor alarm_name: ::String
|
|
929
|
+
attr_accessor alarm_description: ::String
|
|
930
|
+
attr_accessor scheduled_query_configuration: Types::ScheduledQueryConfiguration
|
|
931
|
+
attr_accessor action_log_line_count: ::Integer
|
|
932
|
+
attr_accessor action_log_line_role_arn: ::String
|
|
933
|
+
attr_accessor actions_enabled: bool
|
|
934
|
+
attr_accessor ok_actions: ::Array[::String]
|
|
935
|
+
attr_accessor alarm_actions: ::Array[::String]
|
|
936
|
+
attr_accessor insufficient_data_actions: ::Array[::String]
|
|
937
|
+
attr_accessor query_results_to_evaluate: ::Integer
|
|
938
|
+
attr_accessor query_results_to_alarm: ::Integer
|
|
939
|
+
attr_accessor threshold: ::Float
|
|
940
|
+
attr_accessor comparison_operator: ("GreaterThanOrEqualToThreshold" | "GreaterThanThreshold" | "LessThanThreshold" | "LessThanOrEqualToThreshold" | "LessThanLowerOrGreaterThanUpperThreshold" | "LessThanLowerThreshold" | "GreaterThanUpperThreshold")
|
|
941
|
+
attr_accessor treat_missing_data: ::String
|
|
942
|
+
attr_accessor tags: ::Array[Types::Tag]
|
|
943
|
+
SENSITIVE: []
|
|
944
|
+
end
|
|
945
|
+
|
|
856
946
|
class PutManagedInsightRulesInput
|
|
857
947
|
attr_accessor managed_rules: ::Array[Types::ManagedRule]
|
|
858
948
|
SENSITIVE: []
|
|
@@ -923,6 +1013,11 @@ module Aws::CloudWatch
|
|
|
923
1013
|
SENSITIVE: []
|
|
924
1014
|
end
|
|
925
1015
|
|
|
1016
|
+
class ResourceConflict
|
|
1017
|
+
attr_accessor message: ::String
|
|
1018
|
+
SENSITIVE: []
|
|
1019
|
+
end
|
|
1020
|
+
|
|
926
1021
|
class ResourceNotFound
|
|
927
1022
|
attr_accessor message: ::String
|
|
928
1023
|
SENSITIVE: []
|
|
@@ -946,6 +1041,24 @@ module Aws::CloudWatch
|
|
|
946
1041
|
SENSITIVE: []
|
|
947
1042
|
end
|
|
948
1043
|
|
|
1044
|
+
class ScheduleConfiguration
|
|
1045
|
+
attr_accessor schedule_expression: ::String
|
|
1046
|
+
attr_accessor start_time_offset: ::Integer
|
|
1047
|
+
attr_accessor end_time_offset: ::Integer
|
|
1048
|
+
SENSITIVE: []
|
|
1049
|
+
end
|
|
1050
|
+
|
|
1051
|
+
class ScheduledQueryConfiguration
|
|
1052
|
+
attr_accessor query_string: ::String
|
|
1053
|
+
attr_accessor log_group_identifiers: ::Array[::String]
|
|
1054
|
+
attr_accessor query_arn: ::String
|
|
1055
|
+
attr_accessor scheduled_query_role_arn: ::String
|
|
1056
|
+
attr_accessor schedule_configuration: Types::ScheduleConfiguration
|
|
1057
|
+
attr_accessor aggregation_expression: ::String
|
|
1058
|
+
attr_accessor tags: ::Array[Types::Tag]
|
|
1059
|
+
SENSITIVE: []
|
|
1060
|
+
end
|
|
1061
|
+
|
|
949
1062
|
class SetAlarmStateInput
|
|
950
1063
|
attr_accessor alarm_name: ::String
|
|
951
1064
|
attr_accessor state_value: ("OK" | "ALARM" | "INSUFFICIENT_DATA")
|
data/sig/waiters.rbs
CHANGED
|
@@ -16,7 +16,7 @@ module Aws
|
|
|
16
16
|
def wait: (
|
|
17
17
|
?alarm_names: Array[::String],
|
|
18
18
|
?alarm_name_prefix: ::String,
|
|
19
|
-
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm")],
|
|
19
|
+
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm" | "LogAlarm")],
|
|
20
20
|
?children_of_alarm_name: ::String,
|
|
21
21
|
?parents_of_alarm_name: ::String,
|
|
22
22
|
?state_value: ("OK" | "ALARM" | "INSUFFICIENT_DATA"),
|
|
@@ -44,7 +44,25 @@ module Aws
|
|
|
44
44
|
def wait: (
|
|
45
45
|
?alarm_names: Array[::String],
|
|
46
46
|
?alarm_name_prefix: ::String,
|
|
47
|
-
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm")],
|
|
47
|
+
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm" | "LogAlarm")],
|
|
48
|
+
?children_of_alarm_name: ::String,
|
|
49
|
+
?parents_of_alarm_name: ::String,
|
|
50
|
+
?state_value: ("OK" | "ALARM" | "INSUFFICIENT_DATA"),
|
|
51
|
+
?action_prefix: ::String,
|
|
52
|
+
?max_records: ::Integer,
|
|
53
|
+
?next_token: ::String
|
|
54
|
+
) -> Client::_DescribeAlarmsResponseSuccess
|
|
55
|
+
| (?Hash[Symbol, untyped]) -> Client::_DescribeAlarmsResponseSuccess
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
class LogAlarmExists
|
|
59
|
+
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
|
60
|
+
| (?Hash[Symbol, untyped]) -> void
|
|
61
|
+
|
|
62
|
+
def wait: (
|
|
63
|
+
?alarm_names: Array[::String],
|
|
64
|
+
?alarm_name_prefix: ::String,
|
|
65
|
+
?alarm_types: Array[("CompositeAlarm" | "MetricAlarm" | "LogAlarm")],
|
|
48
66
|
?children_of_alarm_name: ::String,
|
|
49
67
|
?parents_of_alarm_name: ::String,
|
|
50
68
|
?state_value: ("OK" | "ALARM" | "INSUFFICIENT_DATA"),
|