aws-sdk-cloudwatch 1.64.0 → 1.65.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: 918f50d5e3f8d43f139fda5f9f3e5cd9b7e5dea0bb93ed7926df40c9d2a5156c
4
- data.tar.gz: c992a354593a95ba169777d3a1b8e28e2136443796a808166dd8f8fcd2a599c0
3
+ metadata.gz: 9882292fa5689699f213f674aca54dfc40cd6dcc3233297a7a447993317fb386
4
+ data.tar.gz: d10daaa3174ea14a2667d4cf28c3758e38609fb0dc942ea5cb957da8d4fd9a7c
5
5
  SHA512:
6
- metadata.gz: 3bd904fd9553fd6709653b1f2c4c9e835e8f0871a866871ae259f177fa0a4fe8faacf4385a2bd7e2a5e55b10aea598d986d280ac9ce695c394c75917734925e8
7
- data.tar.gz: 06e82055db45c57c29cf0dff6a2468b40c887a7dd79b0a2abc89b23ced0b04906dd2f2616b6fad5505b66fbe251133045be966114b4ba30f4c954c0b8123623a
6
+ metadata.gz: 0704a30c53f1ba4a13826c8fa66c3b2a46c6268d877fe26b5f9438919f2bfb9f13e01bb7fabac24434c359fbcf798332d66be78e0cdd3156273f2a8e402245ae
7
+ data.tar.gz: f775047d967d586ece529236c894bf5ca0751b8de3cf29e14deeab0fe4cec346cb94d98f34aea73e9809e76e2a6ceb6aa5f61618e8af87c3087035765af581cd
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.65.0 (2022-07-21)
5
+ ------------------
6
+
7
+ * Feature - Adding support for the suppression of Composite Alarm actions
8
+
4
9
  1.64.0 (2022-04-14)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.64.0
1
+ 1.65.0
@@ -809,6 +809,12 @@ module Aws::CloudWatch
809
809
  # resp.composite_alarms[0].state_reason_data #=> String
810
810
  # resp.composite_alarms[0].state_updated_timestamp #=> Time
811
811
  # resp.composite_alarms[0].state_value #=> String, one of "OK", "ALARM", "INSUFFICIENT_DATA"
812
+ # resp.composite_alarms[0].state_transitioned_timestamp #=> Time
813
+ # resp.composite_alarms[0].actions_suppressed_by #=> String, one of "WaitPeriod", "ExtensionPeriod", "Alarm"
814
+ # resp.composite_alarms[0].actions_suppressed_reason #=> String
815
+ # resp.composite_alarms[0].actions_suppressor #=> String
816
+ # resp.composite_alarms[0].actions_suppressor_wait_period #=> Integer
817
+ # resp.composite_alarms[0].actions_suppressor_extension_period #=> Integer
812
818
  # resp.metric_alarms #=> Array
813
819
  # resp.metric_alarms[0].alarm_name #=> String
814
820
  # resp.metric_alarms[0].alarm_arn #=> String
@@ -2550,6 +2556,26 @@ module Aws::CloudWatch
2550
2556
  # use them to scope user permissions, by granting a user permission to
2551
2557
  # access or change only resources with certain tag values.
2552
2558
  #
2559
+ # @option params [String] :actions_suppressor
2560
+ # Actions will be suppressed if the suppressor alarm is in the `ALARM`
2561
+ # state. `ActionsSuppressor` can be an AlarmName or an Amazon Resource
2562
+ # Name (ARN) from an existing alarm.
2563
+ #
2564
+ # @option params [Integer] :actions_suppressor_wait_period
2565
+ # The maximum time in seconds that the composite alarm waits for the
2566
+ # suppressor alarm to go into the `ALARM` state. After this time, the
2567
+ # composite alarm performs its actions.
2568
+ #
2569
+ # `WaitPeriod` is required only when `ActionsSuppressor` is specified.
2570
+ #
2571
+ # @option params [Integer] :actions_suppressor_extension_period
2572
+ # The maximum time in seconds that the composite alarm waits after
2573
+ # suppressor alarm goes out of the `ALARM` state. After this time, the
2574
+ # composite alarm performs its actions.
2575
+ #
2576
+ # `ExtensionPeriod` is required only when `ActionsSuppressor` is
2577
+ # specified.
2578
+ #
2553
2579
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2554
2580
  #
2555
2581
  # @example Request syntax with placeholder values
@@ -2568,6 +2594,9 @@ module Aws::CloudWatch
2568
2594
  # value: "TagValue", # required
2569
2595
  # },
2570
2596
  # ],
2597
+ # actions_suppressor: "AlarmArn",
2598
+ # actions_suppressor_wait_period: 1,
2599
+ # actions_suppressor_extension_period: 1,
2571
2600
  # })
2572
2601
  #
2573
2602
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutCompositeAlarm AWS API Documentation
@@ -3633,7 +3662,7 @@ module Aws::CloudWatch
3633
3662
  params: params,
3634
3663
  config: config)
3635
3664
  context[:gem_name] = 'aws-sdk-cloudwatch'
3636
- context[:gem_version] = '1.64.0'
3665
+ context[:gem_version] = '1.65.0'
3637
3666
  Seahorse::Client::Request.new(handlers, context)
3638
3667
  end
3639
3668
 
@@ -16,6 +16,8 @@ module Aws::CloudWatch
16
16
  AccountId = Shapes::StringShape.new(name: 'AccountId')
17
17
  ActionPrefix = Shapes::StringShape.new(name: 'ActionPrefix')
18
18
  ActionsEnabled = Shapes::BooleanShape.new(name: 'ActionsEnabled')
19
+ ActionsSuppressedBy = Shapes::StringShape.new(name: 'ActionsSuppressedBy')
20
+ ActionsSuppressedReason = Shapes::StringShape.new(name: 'ActionsSuppressedReason')
19
21
  AlarmArn = Shapes::StringShape.new(name: 'AlarmArn')
20
22
  AlarmDescription = Shapes::StringShape.new(name: 'AlarmDescription')
21
23
  AlarmHistoryItem = Shapes::StructureShape.new(name: 'AlarmHistoryItem')
@@ -246,6 +248,7 @@ module Aws::CloudWatch
246
248
  StopMetricStreamsInput = Shapes::StructureShape.new(name: 'StopMetricStreamsInput')
247
249
  StopMetricStreamsOutput = Shapes::StructureShape.new(name: 'StopMetricStreamsOutput')
248
250
  StorageResolution = Shapes::IntegerShape.new(name: 'StorageResolution')
251
+ SuppressorPeriod = Shapes::IntegerShape.new(name: 'SuppressorPeriod')
249
252
  Tag = Shapes::StructureShape.new(name: 'Tag')
250
253
  TagKey = Shapes::StringShape.new(name: 'TagKey')
251
254
  TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
@@ -310,6 +313,12 @@ module Aws::CloudWatch
310
313
  CompositeAlarm.add_member(:state_reason_data, Shapes::ShapeRef.new(shape: StateReasonData, location_name: "StateReasonData"))
311
314
  CompositeAlarm.add_member(:state_updated_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StateUpdatedTimestamp"))
312
315
  CompositeAlarm.add_member(:state_value, Shapes::ShapeRef.new(shape: StateValue, location_name: "StateValue"))
316
+ CompositeAlarm.add_member(:state_transitioned_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StateTransitionedTimestamp"))
317
+ CompositeAlarm.add_member(:actions_suppressed_by, Shapes::ShapeRef.new(shape: ActionsSuppressedBy, location_name: "ActionsSuppressedBy"))
318
+ CompositeAlarm.add_member(:actions_suppressed_reason, Shapes::ShapeRef.new(shape: ActionsSuppressedReason, location_name: "ActionsSuppressedReason"))
319
+ CompositeAlarm.add_member(:actions_suppressor, Shapes::ShapeRef.new(shape: AlarmArn, location_name: "ActionsSuppressor"))
320
+ CompositeAlarm.add_member(:actions_suppressor_wait_period, Shapes::ShapeRef.new(shape: SuppressorPeriod, location_name: "ActionsSuppressorWaitPeriod"))
321
+ CompositeAlarm.add_member(:actions_suppressor_extension_period, Shapes::ShapeRef.new(shape: SuppressorPeriod, location_name: "ActionsSuppressorExtensionPeriod"))
313
322
  CompositeAlarm.struct_class = Types::CompositeAlarm
314
323
 
315
324
  CompositeAlarms.member = Shapes::ShapeRef.new(shape: CompositeAlarm)
@@ -802,6 +811,9 @@ module Aws::CloudWatch
802
811
  PutCompositeAlarmInput.add_member(:insufficient_data_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "InsufficientDataActions"))
803
812
  PutCompositeAlarmInput.add_member(:ok_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "OKActions"))
804
813
  PutCompositeAlarmInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
814
+ PutCompositeAlarmInput.add_member(:actions_suppressor, Shapes::ShapeRef.new(shape: AlarmArn, location_name: "ActionsSuppressor"))
815
+ PutCompositeAlarmInput.add_member(:actions_suppressor_wait_period, Shapes::ShapeRef.new(shape: SuppressorPeriod, location_name: "ActionsSuppressorWaitPeriod"))
816
+ PutCompositeAlarmInput.add_member(:actions_suppressor_extension_period, Shapes::ShapeRef.new(shape: SuppressorPeriod, location_name: "ActionsSuppressorExtensionPeriod"))
805
817
  PutCompositeAlarmInput.struct_class = Types::PutCompositeAlarmInput
806
818
 
807
819
  PutDashboardInput.add_member(:dashboard_name, Shapes::ShapeRef.new(shape: DashboardName, required: true, location_name: "DashboardName"))
@@ -102,7 +102,8 @@ module Aws::CloudWatch
102
102
  data[:state_reason_data]
103
103
  end
104
104
 
105
- # The time stamp of the last update to the alarm state.
105
+ # Tracks the timestamp of any state update, even if `StateValue`
106
+ # doesn't change.
106
107
  # @return [Time]
107
108
  def state_updated_timestamp
108
109
  data[:state_updated_timestamp]
@@ -114,6 +115,63 @@ module Aws::CloudWatch
114
115
  data[:state_value]
115
116
  end
116
117
 
118
+ # The timestamp of the last change to the alarm's `StateValue`.
119
+ # @return [Time]
120
+ def state_transitioned_timestamp
121
+ data[:state_transitioned_timestamp]
122
+ end
123
+
124
+ # When the value is `ALARM`, it means that the actions are suppressed
125
+ # because the suppressor alarm is in `ALARM` When the value is
126
+ # `WaitPeriod`, it means that the actions are suppressed because the
127
+ # composite alarm is waiting for the suppressor alarm to go into into
128
+ # the `ALARM` state. The maximum waiting time is as specified in
129
+ # `ActionsSuppressorWaitPeriod`. After this time, the composite alarm
130
+ # performs its actions. When the value is `ExtensionPeriod`, it means
131
+ # that the actions are suppressed because the composite alarm is waiting
132
+ # after the suppressor alarm went out of the `ALARM` state. The maximum
133
+ # waiting time is as specified in `ActionsSuppressorExtensionPeriod`.
134
+ # After this time, the composite alarm performs its actions.
135
+ # @return [String]
136
+ def actions_suppressed_by
137
+ data[:actions_suppressed_by]
138
+ end
139
+
140
+ # Captures the reason for action suppression.
141
+ # @return [String]
142
+ def actions_suppressed_reason
143
+ data[:actions_suppressed_reason]
144
+ end
145
+
146
+ # Actions will be suppressed if the suppressor alarm is in the `ALARM`
147
+ # state. `ActionsSuppressor` can be an AlarmName or an Amazon Resource
148
+ # Name (ARN) from an existing alarm.
149
+ # @return [String]
150
+ def actions_suppressor
151
+ data[:actions_suppressor]
152
+ end
153
+
154
+ # The maximum time in seconds that the composite alarm waits for the
155
+ # suppressor alarm to go into the `ALARM` state. After this time, the
156
+ # composite alarm performs its actions.
157
+ #
158
+ # `WaitPeriod` is required only when `ActionsSuppressor` is specified.
159
+ # @return [Integer]
160
+ def actions_suppressor_wait_period
161
+ data[:actions_suppressor_wait_period]
162
+ end
163
+
164
+ # The maximum time in seconds that the composite alarm waits after
165
+ # suppressor alarm goes out of the `ALARM` state. After this time, the
166
+ # composite alarm performs its actions.
167
+ #
168
+ # `ExtensionPeriod` is required only when `ActionsSuppressor` is
169
+ # specified.
170
+ # @return [Integer]
171
+ def actions_suppressor_extension_period
172
+ data[:actions_suppressor_extension_period]
173
+ end
174
+
117
175
  # @!endgroup
118
176
 
119
177
  # @return [Client]
@@ -205,13 +205,60 @@ module Aws::CloudWatch
205
205
  # @return [String]
206
206
  #
207
207
  # @!attribute [rw] state_updated_timestamp
208
- # The time stamp of the last update to the alarm state.
208
+ # Tracks the timestamp of any state update, even if `StateValue`
209
+ # doesn't change.
209
210
  # @return [Time]
210
211
  #
211
212
  # @!attribute [rw] state_value
212
213
  # The state value for the alarm.
213
214
  # @return [String]
214
215
  #
216
+ # @!attribute [rw] state_transitioned_timestamp
217
+ # The timestamp of the last change to the alarm's `StateValue`.
218
+ # @return [Time]
219
+ #
220
+ # @!attribute [rw] actions_suppressed_by
221
+ # When the value is `ALARM`, it means that the actions are suppressed
222
+ # because the suppressor alarm is in `ALARM` When the value is
223
+ # `WaitPeriod`, it means that the actions are suppressed because the
224
+ # composite alarm is waiting for the suppressor alarm to go into into
225
+ # the `ALARM` state. The maximum waiting time is as specified in
226
+ # `ActionsSuppressorWaitPeriod`. After this time, the composite alarm
227
+ # performs its actions. When the value is `ExtensionPeriod`, it means
228
+ # that the actions are suppressed because the composite alarm is
229
+ # waiting after the suppressor alarm went out of the `ALARM` state.
230
+ # The maximum waiting time is as specified in
231
+ # `ActionsSuppressorExtensionPeriod`. After this time, the composite
232
+ # alarm performs its actions.
233
+ # @return [String]
234
+ #
235
+ # @!attribute [rw] actions_suppressed_reason
236
+ # Captures the reason for action suppression.
237
+ # @return [String]
238
+ #
239
+ # @!attribute [rw] actions_suppressor
240
+ # Actions will be suppressed if the suppressor alarm is in the `ALARM`
241
+ # state. `ActionsSuppressor` can be an AlarmName or an Amazon Resource
242
+ # Name (ARN) from an existing alarm.
243
+ # @return [String]
244
+ #
245
+ # @!attribute [rw] actions_suppressor_wait_period
246
+ # The maximum time in seconds that the composite alarm waits for the
247
+ # suppressor alarm to go into the `ALARM` state. After this time, the
248
+ # composite alarm performs its actions.
249
+ #
250
+ # `WaitPeriod` is required only when `ActionsSuppressor` is specified.
251
+ # @return [Integer]
252
+ #
253
+ # @!attribute [rw] actions_suppressor_extension_period
254
+ # The maximum time in seconds that the composite alarm waits after
255
+ # suppressor alarm goes out of the `ALARM` state. After this time, the
256
+ # composite alarm performs its actions.
257
+ #
258
+ # `ExtensionPeriod` is required only when `ActionsSuppressor` is
259
+ # specified.
260
+ # @return [Integer]
261
+ #
215
262
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/CompositeAlarm AWS API Documentation
216
263
  #
217
264
  class CompositeAlarm < Struct.new(
@@ -227,7 +274,13 @@ module Aws::CloudWatch
227
274
  :state_reason,
228
275
  :state_reason_data,
229
276
  :state_updated_timestamp,
230
- :state_value)
277
+ :state_value,
278
+ :state_transitioned_timestamp,
279
+ :actions_suppressed_by,
280
+ :actions_suppressed_reason,
281
+ :actions_suppressor,
282
+ :actions_suppressor_wait_period,
283
+ :actions_suppressor_extension_period)
231
284
  SENSITIVE = []
232
285
  include Aws::Structure
233
286
  end
@@ -3525,6 +3578,9 @@ module Aws::CloudWatch
3525
3578
  # value: "TagValue", # required
3526
3579
  # },
3527
3580
  # ],
3581
+ # actions_suppressor: "AlarmArn",
3582
+ # actions_suppressor_wait_period: 1,
3583
+ # actions_suppressor_extension_period: 1,
3528
3584
  # }
3529
3585
  #
3530
3586
  # @!attribute [rw] actions_enabled
@@ -3635,6 +3691,29 @@ module Aws::CloudWatch
3635
3691
  # values.
3636
3692
  # @return [Array<Types::Tag>]
3637
3693
  #
3694
+ # @!attribute [rw] actions_suppressor
3695
+ # Actions will be suppressed if the suppressor alarm is in the `ALARM`
3696
+ # state. `ActionsSuppressor` can be an AlarmName or an Amazon Resource
3697
+ # Name (ARN) from an existing alarm.
3698
+ # @return [String]
3699
+ #
3700
+ # @!attribute [rw] actions_suppressor_wait_period
3701
+ # The maximum time in seconds that the composite alarm waits for the
3702
+ # suppressor alarm to go into the `ALARM` state. After this time, the
3703
+ # composite alarm performs its actions.
3704
+ #
3705
+ # `WaitPeriod` is required only when `ActionsSuppressor` is specified.
3706
+ # @return [Integer]
3707
+ #
3708
+ # @!attribute [rw] actions_suppressor_extension_period
3709
+ # The maximum time in seconds that the composite alarm waits after
3710
+ # suppressor alarm goes out of the `ALARM` state. After this time, the
3711
+ # composite alarm performs its actions.
3712
+ #
3713
+ # `ExtensionPeriod` is required only when `ActionsSuppressor` is
3714
+ # specified.
3715
+ # @return [Integer]
3716
+ #
3638
3717
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutCompositeAlarmInput AWS API Documentation
3639
3718
  #
3640
3719
  class PutCompositeAlarmInput < Struct.new(
@@ -3645,7 +3724,10 @@ module Aws::CloudWatch
3645
3724
  :alarm_rule,
3646
3725
  :insufficient_data_actions,
3647
3726
  :ok_actions,
3648
- :tags)
3727
+ :tags,
3728
+ :actions_suppressor,
3729
+ :actions_suppressor_wait_period,
3730
+ :actions_suppressor_extension_period)
3649
3731
  SENSITIVE = []
3650
3732
  include Aws::Structure
3651
3733
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-cloudwatch/customizations'
52
52
  # @!group service
53
53
  module Aws::CloudWatch
54
54
 
55
- GEM_VERSION = '1.64.0'
55
+ GEM_VERSION = '1.65.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudwatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.64.0
4
+ version: 1.65.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-04-14 00:00:00.000000000 Z
11
+ date: 2022-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core