aws-sdk-cloudwatch 1.140.0 → 1.142.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.
@@ -15,10 +15,13 @@ module Aws::CloudWatch
15
15
  include Seahorse::Model
16
16
 
17
17
  AccountId = Shapes::StringShape.new(name: 'AccountId')
18
+ ActionLogLineCount = Shapes::IntegerShape.new(name: 'ActionLogLineCount')
19
+ ActionLogLineRoleArn = Shapes::StringShape.new(name: 'ActionLogLineRoleArn')
18
20
  ActionPrefix = Shapes::StringShape.new(name: 'ActionPrefix')
19
21
  ActionsEnabled = Shapes::BooleanShape.new(name: 'ActionsEnabled')
20
22
  ActionsSuppressedBy = Shapes::StringShape.new(name: 'ActionsSuppressedBy')
21
23
  ActionsSuppressedReason = Shapes::StringShape.new(name: 'ActionsSuppressedReason')
24
+ AggregationExpression = Shapes::StringShape.new(name: 'AggregationExpression')
22
25
  AlarmArn = Shapes::StringShape.new(name: 'AlarmArn')
23
26
  AlarmContributor = Shapes::StructureShape.new(name: 'AlarmContributor')
24
27
  AlarmContributors = Shapes::ListShape.new(name: 'AlarmContributors')
@@ -120,6 +123,7 @@ module Aws::CloudWatch
120
123
  EnableAlarmActionsInput = Shapes::StructureShape.new(name: 'EnableAlarmActionsInput')
121
124
  EnableInsightRulesInput = Shapes::StructureShape.new(name: 'EnableInsightRulesInput')
122
125
  EnableInsightRulesOutput = Shapes::StructureShape.new(name: 'EnableInsightRulesOutput')
126
+ EndTimeOffset = Shapes::IntegerShape.new(name: 'EndTimeOffset')
123
127
  Entity = Shapes::StructureShape.new(name: 'Entity')
124
128
  EntityAttributesMap = Shapes::MapShape.new(name: 'EntityAttributesMap')
125
129
  EntityAttributesMapKeyString = Shapes::StringShape.new(name: 'EntityAttributesMapKeyString')
@@ -135,6 +139,7 @@ module Aws::CloudWatch
135
139
  EvaluationInterval = Shapes::IntegerShape.new(name: 'EvaluationInterval')
136
140
  EvaluationPeriods = Shapes::IntegerShape.new(name: 'EvaluationPeriods')
137
141
  EvaluationState = Shapes::StringShape.new(name: 'EvaluationState')
142
+ EvaluationWindow = Shapes::UnionShape.new(name: 'EvaluationWindow')
138
143
  ExceptionType = Shapes::StringShape.new(name: 'ExceptionType')
139
144
  Expression = Shapes::StringShape.new(name: 'Expression')
140
145
  ExtendedStatistic = Shapes::StringShape.new(name: 'ExtendedStatistic')
@@ -221,6 +226,9 @@ module Aws::CloudWatch
221
226
  ListMetricsOutput = Shapes::StructureShape.new(name: 'ListMetricsOutput')
222
227
  ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
223
228
  ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
229
+ LogAlarm = Shapes::StructureShape.new(name: 'LogAlarm')
230
+ LogAlarms = Shapes::ListShape.new(name: 'LogAlarms')
231
+ LogGroupIdentifiers = Shapes::ListShape.new(name: 'LogGroupIdentifiers')
224
232
  ManagedRule = Shapes::StructureShape.new(name: 'ManagedRule')
225
233
  ManagedRuleDescription = Shapes::StructureShape.new(name: 'ManagedRuleDescription')
226
234
  ManagedRuleDescriptions = Shapes::ListShape.new(name: 'ManagedRuleDescriptions')
@@ -289,6 +297,7 @@ module Aws::CloudWatch
289
297
  PutDashboardOutput = Shapes::StructureShape.new(name: 'PutDashboardOutput')
290
298
  PutInsightRuleInput = Shapes::StructureShape.new(name: 'PutInsightRuleInput')
291
299
  PutInsightRuleOutput = Shapes::StructureShape.new(name: 'PutInsightRuleOutput')
300
+ PutLogAlarmInput = Shapes::StructureShape.new(name: 'PutLogAlarmInput')
292
301
  PutManagedInsightRulesInput = Shapes::StructureShape.new(name: 'PutManagedInsightRulesInput')
293
302
  PutManagedInsightRulesOutput = Shapes::StructureShape.new(name: 'PutManagedInsightRulesOutput')
294
303
  PutMetricAlarmInput = Shapes::StructureShape.new(name: 'PutMetricAlarmInput')
@@ -296,9 +305,13 @@ module Aws::CloudWatch
296
305
  PutMetricStreamInput = Shapes::StructureShape.new(name: 'PutMetricStreamInput')
297
306
  PutMetricStreamOutput = Shapes::StructureShape.new(name: 'PutMetricStreamOutput')
298
307
  Query = Shapes::StringShape.new(name: 'Query')
308
+ QueryResultsToAlarm = Shapes::IntegerShape.new(name: 'QueryResultsToAlarm')
309
+ QueryResultsToEvaluate = Shapes::IntegerShape.new(name: 'QueryResultsToEvaluate')
310
+ QueryString = Shapes::StringShape.new(name: 'QueryString')
299
311
  Range = Shapes::StructureShape.new(name: 'Range')
300
312
  RecentlyActive = Shapes::StringShape.new(name: 'RecentlyActive')
301
313
  RecoveryPeriod = Shapes::IntegerShape.new(name: 'RecoveryPeriod')
314
+ ResourceConflict = Shapes::StructureShape.new(name: 'ResourceConflict', error: {"code" => "ResourceConflict", "httpStatusCode" => 409, "senderFault" => true})
302
315
  ResourceId = Shapes::StringShape.new(name: 'ResourceId')
303
316
  ResourceList = Shapes::ListShape.new(name: 'ResourceList')
304
317
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
@@ -309,14 +322,19 @@ module Aws::CloudWatch
309
322
  Rule = Shapes::StructureShape.new(name: 'Rule')
310
323
  ScanBy = Shapes::StringShape.new(name: 'ScanBy')
311
324
  Schedule = Shapes::StructureShape.new(name: 'Schedule')
325
+ ScheduleConfiguration = Shapes::StructureShape.new(name: 'ScheduleConfiguration')
326
+ ScheduleExpression = Shapes::StringShape.new(name: 'ScheduleExpression')
327
+ ScheduledQueryConfiguration = Shapes::StructureShape.new(name: 'ScheduledQueryConfiguration')
312
328
  SetAlarmStateInput = Shapes::StructureShape.new(name: 'SetAlarmStateInput')
313
329
  SingleMetricAnomalyDetector = Shapes::StructureShape.new(name: 'SingleMetricAnomalyDetector')
314
330
  Size = Shapes::IntegerShape.new(name: 'Size')
331
+ SlidingWindow = Shapes::StructureShape.new(name: 'SlidingWindow')
315
332
  StandardUnit = Shapes::StringShape.new(name: 'StandardUnit')
316
333
  StartMetricStreamsInput = Shapes::StructureShape.new(name: 'StartMetricStreamsInput')
317
334
  StartMetricStreamsOutput = Shapes::StructureShape.new(name: 'StartMetricStreamsOutput')
318
335
  StartOTelEnrichmentInput = Shapes::StructureShape.new(name: 'StartOTelEnrichmentInput')
319
336
  StartOTelEnrichmentOutput = Shapes::StructureShape.new(name: 'StartOTelEnrichmentOutput')
337
+ StartTimeOffset = Shapes::IntegerShape.new(name: 'StartTimeOffset')
320
338
  Stat = Shapes::StringShape.new(name: 'Stat')
321
339
  StateReason = Shapes::StringShape.new(name: 'StateReason')
322
340
  StateReasonData = Shapes::StringShape.new(name: 'StateReasonData')
@@ -349,6 +367,7 @@ module Aws::CloudWatch
349
367
  UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
350
368
  UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
351
369
  Values = Shapes::ListShape.new(name: 'Values')
370
+ WallClockWindow = Shapes::StructureShape.new(name: 'WallClockWindow')
352
371
 
353
372
  AlarmContributor.add_member(:contributor_id, Shapes::ShapeRef.new(shape: ContributorId, required: true, location_name: "ContributorId"))
354
373
  AlarmContributor.add_member(:contributor_attributes, Shapes::ShapeRef.new(shape: ContributorAttributes, required: true, location_name: "ContributorAttributes"))
@@ -572,6 +591,7 @@ module Aws::CloudWatch
572
591
 
573
592
  DescribeAlarmsOutput.add_member(:composite_alarms, Shapes::ShapeRef.new(shape: CompositeAlarms, location_name: "CompositeAlarms"))
574
593
  DescribeAlarmsOutput.add_member(:metric_alarms, Shapes::ShapeRef.new(shape: MetricAlarms, location_name: "MetricAlarms"))
594
+ DescribeAlarmsOutput.add_member(:log_alarms, Shapes::ShapeRef.new(shape: LogAlarms, location_name: "LogAlarms"))
575
595
  DescribeAlarmsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
576
596
  DescribeAlarmsOutput.struct_class = Types::DescribeAlarmsOutput
577
597
 
@@ -652,6 +672,14 @@ module Aws::CloudWatch
652
672
  EvaluationCriteria.add_member_subclass(:unknown, Types::EvaluationCriteria::Unknown)
653
673
  EvaluationCriteria.struct_class = Types::EvaluationCriteria
654
674
 
675
+ EvaluationWindow.add_member(:wall_clock_window, Shapes::ShapeRef.new(shape: WallClockWindow, location_name: "WallClockWindow"))
676
+ EvaluationWindow.add_member(:sliding_window, Shapes::ShapeRef.new(shape: SlidingWindow, location_name: "SlidingWindow"))
677
+ EvaluationWindow.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
678
+ EvaluationWindow.add_member_subclass(:wall_clock_window, Types::EvaluationWindow::WallClockWindow)
679
+ EvaluationWindow.add_member_subclass(:sliding_window, Types::EvaluationWindow::SlidingWindow)
680
+ EvaluationWindow.add_member_subclass(:unknown, Types::EvaluationWindow::Unknown)
681
+ EvaluationWindow.struct_class = Types::EvaluationWindow
682
+
655
683
  ExtendedStatistics.member = Shapes::ShapeRef.new(shape: ExtendedStatistic)
656
684
 
657
685
  GetAlarmMuteRuleInput.add_member(:alarm_mute_rule_name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "AlarmMuteRuleName"))
@@ -890,6 +918,34 @@ module Aws::CloudWatch
890
918
  ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
891
919
  ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
892
920
 
921
+ LogAlarm.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName"))
922
+ LogAlarm.add_member(:alarm_arn, Shapes::ShapeRef.new(shape: AlarmArn, location_name: "AlarmArn"))
923
+ LogAlarm.add_member(:alarm_description, Shapes::ShapeRef.new(shape: AlarmDescription, location_name: "AlarmDescription"))
924
+ LogAlarm.add_member(:alarm_configuration_updated_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "AlarmConfigurationUpdatedTimestamp"))
925
+ LogAlarm.add_member(:actions_enabled, Shapes::ShapeRef.new(shape: ActionsEnabled, location_name: "ActionsEnabled"))
926
+ LogAlarm.add_member(:ok_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "OKActions"))
927
+ LogAlarm.add_member(:alarm_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "AlarmActions"))
928
+ LogAlarm.add_member(:insufficient_data_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "InsufficientDataActions"))
929
+ LogAlarm.add_member(:state_value, Shapes::ShapeRef.new(shape: StateValue, location_name: "StateValue"))
930
+ LogAlarm.add_member(:state_reason, Shapes::ShapeRef.new(shape: StateReason, location_name: "StateReason"))
931
+ LogAlarm.add_member(:state_reason_data, Shapes::ShapeRef.new(shape: StateReasonData, location_name: "StateReasonData"))
932
+ LogAlarm.add_member(:state_updated_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StateUpdatedTimestamp"))
933
+ LogAlarm.add_member(:scheduled_query_configuration, Shapes::ShapeRef.new(shape: ScheduledQueryConfiguration, location_name: "ScheduledQueryConfiguration"))
934
+ LogAlarm.add_member(:query_results_to_evaluate, Shapes::ShapeRef.new(shape: QueryResultsToEvaluate, location_name: "QueryResultsToEvaluate"))
935
+ LogAlarm.add_member(:query_results_to_alarm, Shapes::ShapeRef.new(shape: QueryResultsToAlarm, location_name: "QueryResultsToAlarm"))
936
+ LogAlarm.add_member(:threshold, Shapes::ShapeRef.new(shape: Threshold, location_name: "Threshold"))
937
+ LogAlarm.add_member(:comparison_operator, Shapes::ShapeRef.new(shape: ComparisonOperator, location_name: "ComparisonOperator"))
938
+ LogAlarm.add_member(:treat_missing_data, Shapes::ShapeRef.new(shape: TreatMissingData, location_name: "TreatMissingData"))
939
+ LogAlarm.add_member(:state_transitioned_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StateTransitionedTimestamp"))
940
+ LogAlarm.add_member(:evaluation_state, Shapes::ShapeRef.new(shape: EvaluationState, location_name: "EvaluationState"))
941
+ LogAlarm.add_member(:action_log_line_count, Shapes::ShapeRef.new(shape: ActionLogLineCount, location_name: "ActionLogLineCount"))
942
+ LogAlarm.add_member(:action_log_line_role_arn, Shapes::ShapeRef.new(shape: ActionLogLineRoleArn, location_name: "ActionLogLineRoleArn"))
943
+ LogAlarm.struct_class = Types::LogAlarm
944
+
945
+ LogAlarms.member = Shapes::ShapeRef.new(shape: LogAlarm)
946
+
947
+ LogGroupIdentifiers.member = Shapes::ShapeRef.new(shape: AmazonResourceName)
948
+
893
949
  ManagedRule.add_member(:template_name, Shapes::ShapeRef.new(shape: TemplateName, required: true, location_name: "TemplateName"))
894
950
  ManagedRule.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
895
951
  ManagedRule.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
@@ -946,6 +1002,7 @@ module Aws::CloudWatch
946
1002
  MetricAlarm.add_member(:threshold_metric_id, Shapes::ShapeRef.new(shape: MetricId, location_name: "ThresholdMetricId"))
947
1003
  MetricAlarm.add_member(:evaluation_state, Shapes::ShapeRef.new(shape: EvaluationState, location_name: "EvaluationState"))
948
1004
  MetricAlarm.add_member(:state_transitioned_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StateTransitionedTimestamp"))
1005
+ MetricAlarm.add_member(:evaluation_window, Shapes::ShapeRef.new(shape: EvaluationWindow, location_name: "EvaluationWindow"))
949
1006
  MetricAlarm.add_member(:evaluation_criteria, Shapes::ShapeRef.new(shape: EvaluationCriteria, location_name: "EvaluationCriteria"))
950
1007
  MetricAlarm.add_member(:evaluation_interval, Shapes::ShapeRef.new(shape: EvaluationInterval, location_name: "EvaluationInterval"))
951
1008
  MetricAlarm.struct_class = Types::MetricAlarm
@@ -1104,6 +1161,23 @@ module Aws::CloudWatch
1104
1161
 
1105
1162
  PutInsightRuleOutput.struct_class = Types::PutInsightRuleOutput
1106
1163
 
1164
+ PutLogAlarmInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, required: true, location_name: "AlarmName"))
1165
+ PutLogAlarmInput.add_member(:alarm_description, Shapes::ShapeRef.new(shape: AlarmDescription, location_name: "AlarmDescription"))
1166
+ PutLogAlarmInput.add_member(:scheduled_query_configuration, Shapes::ShapeRef.new(shape: ScheduledQueryConfiguration, required: true, location_name: "ScheduledQueryConfiguration"))
1167
+ PutLogAlarmInput.add_member(:action_log_line_count, Shapes::ShapeRef.new(shape: ActionLogLineCount, location_name: "ActionLogLineCount"))
1168
+ PutLogAlarmInput.add_member(:action_log_line_role_arn, Shapes::ShapeRef.new(shape: ActionLogLineRoleArn, location_name: "ActionLogLineRoleArn"))
1169
+ PutLogAlarmInput.add_member(:actions_enabled, Shapes::ShapeRef.new(shape: ActionsEnabled, location_name: "ActionsEnabled"))
1170
+ PutLogAlarmInput.add_member(:ok_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "OKActions"))
1171
+ PutLogAlarmInput.add_member(:alarm_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "AlarmActions"))
1172
+ PutLogAlarmInput.add_member(:insufficient_data_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "InsufficientDataActions"))
1173
+ PutLogAlarmInput.add_member(:query_results_to_evaluate, Shapes::ShapeRef.new(shape: QueryResultsToEvaluate, required: true, location_name: "QueryResultsToEvaluate"))
1174
+ PutLogAlarmInput.add_member(:query_results_to_alarm, Shapes::ShapeRef.new(shape: QueryResultsToAlarm, required: true, location_name: "QueryResultsToAlarm"))
1175
+ PutLogAlarmInput.add_member(:threshold, Shapes::ShapeRef.new(shape: Threshold, required: true, location_name: "Threshold"))
1176
+ PutLogAlarmInput.add_member(:comparison_operator, Shapes::ShapeRef.new(shape: ComparisonOperator, required: true, location_name: "ComparisonOperator"))
1177
+ PutLogAlarmInput.add_member(:treat_missing_data, Shapes::ShapeRef.new(shape: TreatMissingData, location_name: "TreatMissingData"))
1178
+ PutLogAlarmInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
1179
+ PutLogAlarmInput.struct_class = Types::PutLogAlarmInput
1180
+
1107
1181
  PutManagedInsightRulesInput.add_member(:managed_rules, Shapes::ShapeRef.new(shape: ManagedRules, required: true, location_name: "ManagedRules"))
1108
1182
  PutManagedInsightRulesInput.struct_class = Types::PutManagedInsightRulesInput
1109
1183
 
@@ -1132,6 +1206,7 @@ module Aws::CloudWatch
1132
1206
  PutMetricAlarmInput.add_member(:metrics, Shapes::ShapeRef.new(shape: MetricDataQueries, location_name: "Metrics"))
1133
1207
  PutMetricAlarmInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
1134
1208
  PutMetricAlarmInput.add_member(:threshold_metric_id, Shapes::ShapeRef.new(shape: MetricId, location_name: "ThresholdMetricId"))
1209
+ PutMetricAlarmInput.add_member(:evaluation_window, Shapes::ShapeRef.new(shape: EvaluationWindow, location_name: "EvaluationWindow"))
1135
1210
  PutMetricAlarmInput.add_member(:evaluation_criteria, Shapes::ShapeRef.new(shape: EvaluationCriteria, location_name: "EvaluationCriteria"))
1136
1211
  PutMetricAlarmInput.add_member(:evaluation_interval, Shapes::ShapeRef.new(shape: EvaluationInterval, location_name: "EvaluationInterval"))
1137
1212
  PutMetricAlarmInput.struct_class = Types::PutMetricAlarmInput
@@ -1160,6 +1235,9 @@ module Aws::CloudWatch
1160
1235
  Range.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTime"))
1161
1236
  Range.struct_class = Types::Range
1162
1237
 
1238
+ ResourceConflict.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
1239
+ ResourceConflict.struct_class = Types::ResourceConflict
1240
+
1163
1241
  ResourceList.member = Shapes::ShapeRef.new(shape: ResourceName)
1164
1242
 
1165
1243
  ResourceNotFound.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
@@ -1177,6 +1255,20 @@ module Aws::CloudWatch
1177
1255
  Schedule.add_member(:timezone, Shapes::ShapeRef.new(shape: Timezone, location_name: "Timezone"))
1178
1256
  Schedule.struct_class = Types::Schedule
1179
1257
 
1258
+ ScheduleConfiguration.add_member(:schedule_expression, Shapes::ShapeRef.new(shape: ScheduleExpression, required: true, location_name: "ScheduleExpression"))
1259
+ ScheduleConfiguration.add_member(:start_time_offset, Shapes::ShapeRef.new(shape: StartTimeOffset, location_name: "StartTimeOffset"))
1260
+ ScheduleConfiguration.add_member(:end_time_offset, Shapes::ShapeRef.new(shape: EndTimeOffset, location_name: "EndTimeOffset"))
1261
+ ScheduleConfiguration.struct_class = Types::ScheduleConfiguration
1262
+
1263
+ ScheduledQueryConfiguration.add_member(:query_string, Shapes::ShapeRef.new(shape: QueryString, required: true, location_name: "QueryString"))
1264
+ ScheduledQueryConfiguration.add_member(:log_group_identifiers, Shapes::ShapeRef.new(shape: LogGroupIdentifiers, location_name: "LogGroupIdentifiers"))
1265
+ ScheduledQueryConfiguration.add_member(:query_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "QueryARN"))
1266
+ ScheduledQueryConfiguration.add_member(:scheduled_query_role_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ScheduledQueryRoleARN"))
1267
+ ScheduledQueryConfiguration.add_member(:schedule_configuration, Shapes::ShapeRef.new(shape: ScheduleConfiguration, required: true, location_name: "ScheduleConfiguration"))
1268
+ ScheduledQueryConfiguration.add_member(:aggregation_expression, Shapes::ShapeRef.new(shape: AggregationExpression, required: true, location_name: "AggregationExpression"))
1269
+ ScheduledQueryConfiguration.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
1270
+ ScheduledQueryConfiguration.struct_class = Types::ScheduledQueryConfiguration
1271
+
1180
1272
  SetAlarmStateInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, required: true, location_name: "AlarmName"))
1181
1273
  SetAlarmStateInput.add_member(:state_value, Shapes::ShapeRef.new(shape: StateValue, required: true, location_name: "StateValue"))
1182
1274
  SetAlarmStateInput.add_member(:state_reason, Shapes::ShapeRef.new(shape: StateReason, required: true, location_name: "StateReason"))
@@ -1190,6 +1282,8 @@ module Aws::CloudWatch
1190
1282
  SingleMetricAnomalyDetector.add_member(:stat, Shapes::ShapeRef.new(shape: AnomalyDetectorMetricStat, location_name: "Stat"))
1191
1283
  SingleMetricAnomalyDetector.struct_class = Types::SingleMetricAnomalyDetector
1192
1284
 
1285
+ SlidingWindow.struct_class = Types::SlidingWindow
1286
+
1193
1287
  StartMetricStreamsInput.add_member(:names, Shapes::ShapeRef.new(shape: MetricStreamNames, required: true, location_name: "Names"))
1194
1288
  StartMetricStreamsInput.struct_class = Types::StartMetricStreamsInput
1195
1289
 
@@ -1240,6 +1334,9 @@ module Aws::CloudWatch
1240
1334
 
1241
1335
  Values.member = Shapes::ShapeRef.new(shape: DatapointValue)
1242
1336
 
1337
+ WallClockWindow.add_member(:timezone, Shapes::ShapeRef.new(shape: Timezone, location_name: "Timezone"))
1338
+ WallClockWindow.struct_class = Types::WallClockWindow
1339
+
1243
1340
 
1244
1341
  # @api private
1245
1342
  API = Seahorse::Model::Api.new.tap do |api|
@@ -1291,6 +1388,7 @@ module Aws::CloudWatch
1291
1388
  o.input = Shapes::ShapeRef.new(shape: DeleteAlarmsInput)
1292
1389
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1293
1390
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFound)
1391
+ o.errors << Shapes::ShapeRef.new(shape: ResourceConflict)
1294
1392
  end)
1295
1393
 
1296
1394
  api.add_operation(:delete_anomaly_detector, Seahorse::Model::Operation.new.tap do |o|
@@ -1707,6 +1805,16 @@ module Aws::CloudWatch
1707
1805
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1708
1806
  end)
1709
1807
 
1808
+ api.add_operation(:put_log_alarm, Seahorse::Model::Operation.new.tap do |o|
1809
+ o.name = "PutLogAlarm"
1810
+ o.http_method = "POST"
1811
+ o.http_request_uri = "/"
1812
+ o.input = Shapes::ShapeRef.new(shape: PutLogAlarmInput)
1813
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1814
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededFault)
1815
+ o.errors << Shapes::ShapeRef.new(shape: ResourceConflict)
1816
+ end)
1817
+
1710
1818
  api.add_operation(:put_managed_insight_rules, Seahorse::Model::Operation.new.tap do |o|
1711
1819
  o.name = "PutManagedInsightRules"
1712
1820
  o.http_method = "POST"
@@ -360,7 +360,7 @@ module Aws::CloudWatch
360
360
  #
361
361
  # composite_alarm.describe_history({
362
362
  # alarm_contributor_id: "ContributorId",
363
- # alarm_types: ["CompositeAlarm"], # accepts CompositeAlarm, MetricAlarm
363
+ # alarm_types: ["CompositeAlarm"], # accepts CompositeAlarm, MetricAlarm, LogAlarm
364
364
  # history_item_type: "ConfigurationUpdate", # accepts ConfigurationUpdate, StateUpdate, Action, AlarmContributorStateUpdate, AlarmContributorAction
365
365
  # start_date: Time.now,
366
366
  # end_date: Time.now,
@@ -374,8 +374,8 @@ module Aws::CloudWatch
374
374
  # alarm history results.
375
375
  # @option options [Array<String>] :alarm_types
376
376
  # Use this parameter to specify whether you want the operation to return
377
- # metric alarms or composite alarms. If you omit this parameter, only
378
- # metric alarms are returned.
377
+ # metric alarms, composite alarms, or log alarms. If you omit this
378
+ # parameter, only metric alarms are returned.
379
379
  # @option options [String] :history_item_type
380
380
  # The type of alarm histories to retrieve.
381
381
  # @option options [Time,DateTime,Date,Integer,String] :start_date
@@ -50,6 +50,7 @@ module Aws::CloudWatch
50
50
  # * This error class is not used. `LimitExceeded` is used during parsing instead.
51
51
  # * {MissingRequiredParameterException}
52
52
  # * This error class is not used. `MissingParameter` is used during parsing instead.
53
+ # * {ResourceConflict}
53
54
  # * {ResourceNotFound}
54
55
  # * {ResourceNotFoundException}
55
56
  #
@@ -295,6 +296,21 @@ module Aws::CloudWatch
295
296
  end
296
297
  end
297
298
 
299
+ class ResourceConflict < ServiceError
300
+
301
+ # @param [Seahorse::Client::RequestContext] context
302
+ # @param [String] message
303
+ # @param [Aws::CloudWatch::Types::ResourceConflict] data
304
+ def initialize(context, message, data = Aws::EmptyStructure.new)
305
+ super(context, message, data)
306
+ end
307
+
308
+ # @return [String]
309
+ def message
310
+ @message || @data[:message]
311
+ end
312
+ end
313
+
298
314
  class ResourceNotFound < ServiceError
299
315
 
300
316
  # @param [Seahorse::Client::RequestContext] context
@@ -367,6 +367,13 @@ module Aws::CloudWatch
367
367
  # },
368
368
  # ],
369
369
  # threshold_metric_id: "MetricId",
370
+ # evaluation_window: {
371
+ # wall_clock_window: {
372
+ # timezone: "Timezone",
373
+ # },
374
+ # sliding_window: {
375
+ # },
376
+ # },
370
377
  # evaluation_criteria: {
371
378
  # prom_ql_criteria: {
372
379
  # query: "Query", # required
@@ -769,6 +776,26 @@ module Aws::CloudWatch
769
776
  #
770
777
  # If your alarm uses this parameter, it cannot have Auto Scaling
771
778
  # actions.
779
+ # @option options [Types::EvaluationWindow] :evaluation_window
780
+ # The evaluation window that the alarm uses to select the range of
781
+ # metric data that it evaluates. Specify either a sliding window or a
782
+ # wall clock window. If you omit this parameter, the alarm uses a
783
+ # sliding window.
784
+ #
785
+ # A sliding window advances each time the alarm is evaluated, forming a
786
+ # rolling time window. A wall clock window aligns the evaluated range to
787
+ # fixed clock boundaries, such as the top of the hour or the start of
788
+ # the day.
789
+ #
790
+ # You can use `EvaluationWindow` with any type of metric alarm except
791
+ # alarms that are based on a PromQL query.
792
+ #
793
+ # For more information, see [Alarm evaluation windows][1] in the
794
+ # *CloudWatch User Guide*.
795
+ #
796
+ #
797
+ #
798
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/alarm-evaluation-window.html
772
799
  # @option options [Types::EvaluationCriteria] :evaluation_criteria
773
800
  # The evaluation criteria for the alarm. For each `PutMetricAlarm`
774
801
  # operation, you must specify either `MetricName`, a `Metrics` array, or
@@ -49,7 +49,7 @@ module Aws::CloudWatch
49
49
  # alarms = cloud_watch.alarms({
50
50
  # alarm_names: ["AlarmName"],
51
51
  # alarm_name_prefix: "AlarmNamePrefix",
52
- # alarm_types: ["CompositeAlarm"], # accepts CompositeAlarm, MetricAlarm
52
+ # alarm_types: ["CompositeAlarm"], # accepts CompositeAlarm, MetricAlarm, LogAlarm
53
53
  # children_of_alarm_name: "AlarmName",
54
54
  # parents_of_alarm_name: "AlarmName",
55
55
  # state_value: "OK", # accepts OK, ALARM, INSUFFICIENT_DATA
@@ -66,16 +66,19 @@ module Aws::CloudWatch
66
66
  # If this parameter is specified, you cannot specify `AlarmNames`.
67
67
  # @option options [Array<String>] :alarm_types
68
68
  # Use this parameter to specify whether you want the operation to return
69
- # metric alarms or composite alarms. If you omit this parameter, only
70
- # metric alarms are returned, even if composite alarms exist in the
71
- # account.
69
+ # metric alarms, composite alarms, or log alarms. If you omit this
70
+ # parameter, only metric alarms are returned, even if composite alarms
71
+ # or log alarms exist in the account.
72
72
  #
73
73
  # For example, if you omit this parameter or specify `MetricAlarms`, the
74
74
  # operation returns only a list of metric alarms. It does not return any
75
- # composite alarms, even if composite alarms exist in the account.
75
+ # composite alarms or log alarms, even if they exist in the account.
76
76
  #
77
77
  # If you specify `CompositeAlarms`, the operation returns only a list of
78
- # composite alarms, and does not return any metric alarms.
78
+ # composite alarms, and does not return any metric alarms or log alarms.
79
+ #
80
+ # If you specify `LogAlarms`, the operation returns only a list of log
81
+ # alarms, and does not return any metric alarms or composite alarms.
79
82
  # @option options [String] :children_of_alarm_name
80
83
  # If you use this parameter and specify the name of a composite alarm,
81
84
  # the operation returns information about the "children" alarms of the
@@ -157,7 +160,7 @@ module Aws::CloudWatch
157
160
  # composite_alarms = cloud_watch.composite_alarms({
158
161
  # alarm_names: ["AlarmName"],
159
162
  # alarm_name_prefix: "AlarmNamePrefix",
160
- # alarm_types: ["CompositeAlarm"], # accepts CompositeAlarm, MetricAlarm
163
+ # alarm_types: ["CompositeAlarm"], # accepts CompositeAlarm, MetricAlarm, LogAlarm
161
164
  # children_of_alarm_name: "AlarmName",
162
165
  # parents_of_alarm_name: "AlarmName",
163
166
  # state_value: "OK", # accepts OK, ALARM, INSUFFICIENT_DATA
@@ -174,16 +177,19 @@ module Aws::CloudWatch
174
177
  # If this parameter is specified, you cannot specify `AlarmNames`.
175
178
  # @option options [Array<String>] :alarm_types
176
179
  # Use this parameter to specify whether you want the operation to return
177
- # metric alarms or composite alarms. If you omit this parameter, only
178
- # metric alarms are returned, even if composite alarms exist in the
179
- # account.
180
+ # metric alarms, composite alarms, or log alarms. If you omit this
181
+ # parameter, only metric alarms are returned, even if composite alarms
182
+ # or log alarms exist in the account.
180
183
  #
181
184
  # For example, if you omit this parameter or specify `MetricAlarms`, the
182
185
  # operation returns only a list of metric alarms. It does not return any
183
- # composite alarms, even if composite alarms exist in the account.
186
+ # composite alarms or log alarms, even if they exist in the account.
184
187
  #
185
188
  # If you specify `CompositeAlarms`, the operation returns only a list of
186
- # composite alarms, and does not return any metric alarms.
189
+ # composite alarms, and does not return any metric alarms or log alarms.
190
+ #
191
+ # If you specify `LogAlarms`, the operation returns only a list of log
192
+ # alarms, and does not return any metric alarms or composite alarms.
187
193
  # @option options [String] :children_of_alarm_name
188
194
  # If you use this parameter and specify the name of a composite alarm,
189
195
  # the operation returns information about the "children" alarms of the