@aws-sdk/client-cloudwatch 3.300.0 → 3.303.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.
Files changed (43) hide show
  1. package/dist-cjs/models/models_0.js +93 -107
  2. package/dist-es/models/models_0.js +93 -107
  3. package/dist-types/commands/DeleteAlarmsCommand.d.ts +2 -2
  4. package/dist-types/commands/DeleteAnomalyDetectorCommand.d.ts +10 -12
  5. package/dist-types/commands/DeleteDashboardsCommand.d.ts +2 -2
  6. package/dist-types/commands/DeleteInsightRulesCommand.d.ts +2 -2
  7. package/dist-types/commands/DeleteMetricStreamCommand.d.ts +1 -1
  8. package/dist-types/commands/DescribeAlarmHistoryCommand.d.ts +2 -2
  9. package/dist-types/commands/DescribeAlarmsCommand.d.ts +3 -3
  10. package/dist-types/commands/DescribeAlarmsForMetricCommand.d.ts +3 -3
  11. package/dist-types/commands/DescribeAnomalyDetectorsCommand.d.ts +4 -4
  12. package/dist-types/commands/DescribeInsightRulesCommand.d.ts +1 -1
  13. package/dist-types/commands/DisableAlarmActionsCommand.d.ts +2 -2
  14. package/dist-types/commands/DisableInsightRulesCommand.d.ts +2 -2
  15. package/dist-types/commands/EnableAlarmActionsCommand.d.ts +2 -2
  16. package/dist-types/commands/EnableInsightRulesCommand.d.ts +2 -2
  17. package/dist-types/commands/GetDashboardCommand.d.ts +1 -1
  18. package/dist-types/commands/GetInsightRuleReportCommand.d.ts +2 -2
  19. package/dist-types/commands/GetMetricDataCommand.d.ts +8 -8
  20. package/dist-types/commands/GetMetricStatisticsCommand.d.ts +5 -5
  21. package/dist-types/commands/GetMetricStreamCommand.d.ts +1 -1
  22. package/dist-types/commands/GetMetricWidgetImageCommand.d.ts +1 -1
  23. package/dist-types/commands/ListDashboardsCommand.d.ts +1 -1
  24. package/dist-types/commands/ListManagedInsightRulesCommand.d.ts +1 -1
  25. package/dist-types/commands/ListMetricStreamsCommand.d.ts +1 -1
  26. package/dist-types/commands/ListMetricsCommand.d.ts +3 -3
  27. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  28. package/dist-types/commands/PutAnomalyDetectorCommand.d.ts +13 -15
  29. package/dist-types/commands/PutCompositeAlarmCommand.d.ts +4 -4
  30. package/dist-types/commands/PutDashboardCommand.d.ts +1 -1
  31. package/dist-types/commands/PutInsightRuleCommand.d.ts +3 -3
  32. package/dist-types/commands/PutManagedInsightRulesCommand.d.ts +5 -5
  33. package/dist-types/commands/PutMetricAlarmCommand.d.ts +10 -10
  34. package/dist-types/commands/PutMetricDataCommand.d.ts +8 -8
  35. package/dist-types/commands/PutMetricStreamCommand.d.ts +10 -10
  36. package/dist-types/commands/SetAlarmStateCommand.d.ts +1 -1
  37. package/dist-types/commands/StartMetricStreamsCommand.d.ts +2 -2
  38. package/dist-types/commands/StopMetricStreamsCommand.d.ts +2 -2
  39. package/dist-types/commands/TagResourceCommand.d.ts +3 -3
  40. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  41. package/dist-types/models/models_0.d.ts +164 -94
  42. package/dist-types/ts3.4/models/models_0.d.ts +115 -93
  43. package/package.json +35 -35
@@ -2,80 +2,72 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidFormatFault = exports.LimitExceededFault = exports.RecentlyActive = exports.MetricStreamOutputFormat = exports.StatusCode = exports.LimitExceededException = exports.Statistic = exports.EvaluationState = exports.InvalidNextToken = exports.ScanBy = exports.ResourceNotFoundException = exports.MissingRequiredParameterException = exports.InvalidParameterValueException = exports.InvalidParameterCombinationException = exports.InternalServiceFault = exports.ResourceNotFound = exports.DashboardNotFoundError = exports.DashboardInvalidInputError = exports.ConcurrentModificationException = exports.StateValue = exports.ComparisonOperator = exports.AnomalyDetectorType = exports.AnomalyDetectorStateValue = exports.StandardUnit = exports.HistoryItemType = exports.AlarmType = exports.ActionsSuppressedBy = void 0;
4
4
  const CloudWatchServiceException_1 = require("./CloudWatchServiceException");
5
- var ActionsSuppressedBy;
6
- (function (ActionsSuppressedBy) {
7
- ActionsSuppressedBy["Alarm"] = "Alarm";
8
- ActionsSuppressedBy["ExtensionPeriod"] = "ExtensionPeriod";
9
- ActionsSuppressedBy["WaitPeriod"] = "WaitPeriod";
10
- })(ActionsSuppressedBy = exports.ActionsSuppressedBy || (exports.ActionsSuppressedBy = {}));
11
- var AlarmType;
12
- (function (AlarmType) {
13
- AlarmType["CompositeAlarm"] = "CompositeAlarm";
14
- AlarmType["MetricAlarm"] = "MetricAlarm";
15
- })(AlarmType = exports.AlarmType || (exports.AlarmType = {}));
16
- var HistoryItemType;
17
- (function (HistoryItemType) {
18
- HistoryItemType["Action"] = "Action";
19
- HistoryItemType["ConfigurationUpdate"] = "ConfigurationUpdate";
20
- HistoryItemType["StateUpdate"] = "StateUpdate";
21
- })(HistoryItemType = exports.HistoryItemType || (exports.HistoryItemType = {}));
22
- var StandardUnit;
23
- (function (StandardUnit) {
24
- StandardUnit["Bits"] = "Bits";
25
- StandardUnit["Bits_Second"] = "Bits/Second";
26
- StandardUnit["Bytes"] = "Bytes";
27
- StandardUnit["Bytes_Second"] = "Bytes/Second";
28
- StandardUnit["Count"] = "Count";
29
- StandardUnit["Count_Second"] = "Count/Second";
30
- StandardUnit["Gigabits"] = "Gigabits";
31
- StandardUnit["Gigabits_Second"] = "Gigabits/Second";
32
- StandardUnit["Gigabytes"] = "Gigabytes";
33
- StandardUnit["Gigabytes_Second"] = "Gigabytes/Second";
34
- StandardUnit["Kilobits"] = "Kilobits";
35
- StandardUnit["Kilobits_Second"] = "Kilobits/Second";
36
- StandardUnit["Kilobytes"] = "Kilobytes";
37
- StandardUnit["Kilobytes_Second"] = "Kilobytes/Second";
38
- StandardUnit["Megabits"] = "Megabits";
39
- StandardUnit["Megabits_Second"] = "Megabits/Second";
40
- StandardUnit["Megabytes"] = "Megabytes";
41
- StandardUnit["Megabytes_Second"] = "Megabytes/Second";
42
- StandardUnit["Microseconds"] = "Microseconds";
43
- StandardUnit["Milliseconds"] = "Milliseconds";
44
- StandardUnit["None"] = "None";
45
- StandardUnit["Percent"] = "Percent";
46
- StandardUnit["Seconds"] = "Seconds";
47
- StandardUnit["Terabits"] = "Terabits";
48
- StandardUnit["Terabits_Second"] = "Terabits/Second";
49
- StandardUnit["Terabytes"] = "Terabytes";
50
- StandardUnit["Terabytes_Second"] = "Terabytes/Second";
51
- })(StandardUnit = exports.StandardUnit || (exports.StandardUnit = {}));
52
- var AnomalyDetectorStateValue;
53
- (function (AnomalyDetectorStateValue) {
54
- AnomalyDetectorStateValue["PENDING_TRAINING"] = "PENDING_TRAINING";
55
- AnomalyDetectorStateValue["TRAINED"] = "TRAINED";
56
- AnomalyDetectorStateValue["TRAINED_INSUFFICIENT_DATA"] = "TRAINED_INSUFFICIENT_DATA";
57
- })(AnomalyDetectorStateValue = exports.AnomalyDetectorStateValue || (exports.AnomalyDetectorStateValue = {}));
58
- var AnomalyDetectorType;
59
- (function (AnomalyDetectorType) {
60
- AnomalyDetectorType["METRIC_MATH"] = "METRIC_MATH";
61
- AnomalyDetectorType["SINGLE_METRIC"] = "SINGLE_METRIC";
62
- })(AnomalyDetectorType = exports.AnomalyDetectorType || (exports.AnomalyDetectorType = {}));
63
- var ComparisonOperator;
64
- (function (ComparisonOperator) {
65
- ComparisonOperator["GreaterThanOrEqualToThreshold"] = "GreaterThanOrEqualToThreshold";
66
- ComparisonOperator["GreaterThanThreshold"] = "GreaterThanThreshold";
67
- ComparisonOperator["GreaterThanUpperThreshold"] = "GreaterThanUpperThreshold";
68
- ComparisonOperator["LessThanLowerOrGreaterThanUpperThreshold"] = "LessThanLowerOrGreaterThanUpperThreshold";
69
- ComparisonOperator["LessThanLowerThreshold"] = "LessThanLowerThreshold";
70
- ComparisonOperator["LessThanOrEqualToThreshold"] = "LessThanOrEqualToThreshold";
71
- ComparisonOperator["LessThanThreshold"] = "LessThanThreshold";
72
- })(ComparisonOperator = exports.ComparisonOperator || (exports.ComparisonOperator = {}));
73
- var StateValue;
74
- (function (StateValue) {
75
- StateValue["ALARM"] = "ALARM";
76
- StateValue["INSUFFICIENT_DATA"] = "INSUFFICIENT_DATA";
77
- StateValue["OK"] = "OK";
78
- })(StateValue = exports.StateValue || (exports.StateValue = {}));
5
+ exports.ActionsSuppressedBy = {
6
+ Alarm: "Alarm",
7
+ ExtensionPeriod: "ExtensionPeriod",
8
+ WaitPeriod: "WaitPeriod",
9
+ };
10
+ exports.AlarmType = {
11
+ CompositeAlarm: "CompositeAlarm",
12
+ MetricAlarm: "MetricAlarm",
13
+ };
14
+ exports.HistoryItemType = {
15
+ Action: "Action",
16
+ ConfigurationUpdate: "ConfigurationUpdate",
17
+ StateUpdate: "StateUpdate",
18
+ };
19
+ exports.StandardUnit = {
20
+ Bits: "Bits",
21
+ Bits_Second: "Bits/Second",
22
+ Bytes: "Bytes",
23
+ Bytes_Second: "Bytes/Second",
24
+ Count: "Count",
25
+ Count_Second: "Count/Second",
26
+ Gigabits: "Gigabits",
27
+ Gigabits_Second: "Gigabits/Second",
28
+ Gigabytes: "Gigabytes",
29
+ Gigabytes_Second: "Gigabytes/Second",
30
+ Kilobits: "Kilobits",
31
+ Kilobits_Second: "Kilobits/Second",
32
+ Kilobytes: "Kilobytes",
33
+ Kilobytes_Second: "Kilobytes/Second",
34
+ Megabits: "Megabits",
35
+ Megabits_Second: "Megabits/Second",
36
+ Megabytes: "Megabytes",
37
+ Megabytes_Second: "Megabytes/Second",
38
+ Microseconds: "Microseconds",
39
+ Milliseconds: "Milliseconds",
40
+ None: "None",
41
+ Percent: "Percent",
42
+ Seconds: "Seconds",
43
+ Terabits: "Terabits",
44
+ Terabits_Second: "Terabits/Second",
45
+ Terabytes: "Terabytes",
46
+ Terabytes_Second: "Terabytes/Second",
47
+ };
48
+ exports.AnomalyDetectorStateValue = {
49
+ PENDING_TRAINING: "PENDING_TRAINING",
50
+ TRAINED: "TRAINED",
51
+ TRAINED_INSUFFICIENT_DATA: "TRAINED_INSUFFICIENT_DATA",
52
+ };
53
+ exports.AnomalyDetectorType = {
54
+ METRIC_MATH: "METRIC_MATH",
55
+ SINGLE_METRIC: "SINGLE_METRIC",
56
+ };
57
+ exports.ComparisonOperator = {
58
+ GreaterThanOrEqualToThreshold: "GreaterThanOrEqualToThreshold",
59
+ GreaterThanThreshold: "GreaterThanThreshold",
60
+ GreaterThanUpperThreshold: "GreaterThanUpperThreshold",
61
+ LessThanLowerOrGreaterThanUpperThreshold: "LessThanLowerOrGreaterThanUpperThreshold",
62
+ LessThanLowerThreshold: "LessThanLowerThreshold",
63
+ LessThanOrEqualToThreshold: "LessThanOrEqualToThreshold",
64
+ LessThanThreshold: "LessThanThreshold",
65
+ };
66
+ exports.StateValue = {
67
+ ALARM: "ALARM",
68
+ INSUFFICIENT_DATA: "INSUFFICIENT_DATA",
69
+ OK: "OK",
70
+ };
79
71
  class ConcurrentModificationException extends CloudWatchServiceException_1.CloudWatchServiceException {
80
72
  constructor(opts) {
81
73
  super({
@@ -199,11 +191,10 @@ class ResourceNotFoundException extends CloudWatchServiceException_1.CloudWatchS
199
191
  }
200
192
  }
201
193
  exports.ResourceNotFoundException = ResourceNotFoundException;
202
- var ScanBy;
203
- (function (ScanBy) {
204
- ScanBy["TIMESTAMP_ASCENDING"] = "TimestampAscending";
205
- ScanBy["TIMESTAMP_DESCENDING"] = "TimestampDescending";
206
- })(ScanBy = exports.ScanBy || (exports.ScanBy = {}));
194
+ exports.ScanBy = {
195
+ TIMESTAMP_ASCENDING: "TimestampAscending",
196
+ TIMESTAMP_DESCENDING: "TimestampDescending",
197
+ };
207
198
  class InvalidNextToken extends CloudWatchServiceException_1.CloudWatchServiceException {
208
199
  constructor(opts) {
209
200
  super({
@@ -217,18 +208,16 @@ class InvalidNextToken extends CloudWatchServiceException_1.CloudWatchServiceExc
217
208
  }
218
209
  }
219
210
  exports.InvalidNextToken = InvalidNextToken;
220
- var EvaluationState;
221
- (function (EvaluationState) {
222
- EvaluationState["PARTIAL_DATA"] = "PARTIAL_DATA";
223
- })(EvaluationState = exports.EvaluationState || (exports.EvaluationState = {}));
224
- var Statistic;
225
- (function (Statistic) {
226
- Statistic["Average"] = "Average";
227
- Statistic["Maximum"] = "Maximum";
228
- Statistic["Minimum"] = "Minimum";
229
- Statistic["SampleCount"] = "SampleCount";
230
- Statistic["Sum"] = "Sum";
231
- })(Statistic = exports.Statistic || (exports.Statistic = {}));
211
+ exports.EvaluationState = {
212
+ PARTIAL_DATA: "PARTIAL_DATA",
213
+ };
214
+ exports.Statistic = {
215
+ Average: "Average",
216
+ Maximum: "Maximum",
217
+ Minimum: "Minimum",
218
+ SampleCount: "SampleCount",
219
+ Sum: "Sum",
220
+ };
232
221
  class LimitExceededException extends CloudWatchServiceException_1.CloudWatchServiceException {
233
222
  constructor(opts) {
234
223
  super({
@@ -243,22 +232,19 @@ class LimitExceededException extends CloudWatchServiceException_1.CloudWatchServ
243
232
  }
244
233
  }
245
234
  exports.LimitExceededException = LimitExceededException;
246
- var StatusCode;
247
- (function (StatusCode) {
248
- StatusCode["COMPLETE"] = "Complete";
249
- StatusCode["FORBIDDEN"] = "Forbidden";
250
- StatusCode["INTERNAL_ERROR"] = "InternalError";
251
- StatusCode["PARTIAL_DATA"] = "PartialData";
252
- })(StatusCode = exports.StatusCode || (exports.StatusCode = {}));
253
- var MetricStreamOutputFormat;
254
- (function (MetricStreamOutputFormat) {
255
- MetricStreamOutputFormat["JSON"] = "json";
256
- MetricStreamOutputFormat["OPEN_TELEMETRY_0_7"] = "opentelemetry0.7";
257
- })(MetricStreamOutputFormat = exports.MetricStreamOutputFormat || (exports.MetricStreamOutputFormat = {}));
258
- var RecentlyActive;
259
- (function (RecentlyActive) {
260
- RecentlyActive["PT3H"] = "PT3H";
261
- })(RecentlyActive = exports.RecentlyActive || (exports.RecentlyActive = {}));
235
+ exports.StatusCode = {
236
+ COMPLETE: "Complete",
237
+ FORBIDDEN: "Forbidden",
238
+ INTERNAL_ERROR: "InternalError",
239
+ PARTIAL_DATA: "PartialData",
240
+ };
241
+ exports.MetricStreamOutputFormat = {
242
+ JSON: "json",
243
+ OPEN_TELEMETRY_0_7: "opentelemetry0.7",
244
+ };
245
+ exports.RecentlyActive = {
246
+ PT3H: "PT3H",
247
+ };
262
248
  class LimitExceededFault extends CloudWatchServiceException_1.CloudWatchServiceException {
263
249
  constructor(opts) {
264
250
  super({
@@ -1,78 +1,70 @@
1
1
  import { CloudWatchServiceException as __BaseException } from "./CloudWatchServiceException";
2
- export var ActionsSuppressedBy;
3
- (function (ActionsSuppressedBy) {
4
- ActionsSuppressedBy["Alarm"] = "Alarm";
5
- ActionsSuppressedBy["ExtensionPeriod"] = "ExtensionPeriod";
6
- ActionsSuppressedBy["WaitPeriod"] = "WaitPeriod";
7
- })(ActionsSuppressedBy || (ActionsSuppressedBy = {}));
8
- export var AlarmType;
9
- (function (AlarmType) {
10
- AlarmType["CompositeAlarm"] = "CompositeAlarm";
11
- AlarmType["MetricAlarm"] = "MetricAlarm";
12
- })(AlarmType || (AlarmType = {}));
13
- export var HistoryItemType;
14
- (function (HistoryItemType) {
15
- HistoryItemType["Action"] = "Action";
16
- HistoryItemType["ConfigurationUpdate"] = "ConfigurationUpdate";
17
- HistoryItemType["StateUpdate"] = "StateUpdate";
18
- })(HistoryItemType || (HistoryItemType = {}));
19
- export var StandardUnit;
20
- (function (StandardUnit) {
21
- StandardUnit["Bits"] = "Bits";
22
- StandardUnit["Bits_Second"] = "Bits/Second";
23
- StandardUnit["Bytes"] = "Bytes";
24
- StandardUnit["Bytes_Second"] = "Bytes/Second";
25
- StandardUnit["Count"] = "Count";
26
- StandardUnit["Count_Second"] = "Count/Second";
27
- StandardUnit["Gigabits"] = "Gigabits";
28
- StandardUnit["Gigabits_Second"] = "Gigabits/Second";
29
- StandardUnit["Gigabytes"] = "Gigabytes";
30
- StandardUnit["Gigabytes_Second"] = "Gigabytes/Second";
31
- StandardUnit["Kilobits"] = "Kilobits";
32
- StandardUnit["Kilobits_Second"] = "Kilobits/Second";
33
- StandardUnit["Kilobytes"] = "Kilobytes";
34
- StandardUnit["Kilobytes_Second"] = "Kilobytes/Second";
35
- StandardUnit["Megabits"] = "Megabits";
36
- StandardUnit["Megabits_Second"] = "Megabits/Second";
37
- StandardUnit["Megabytes"] = "Megabytes";
38
- StandardUnit["Megabytes_Second"] = "Megabytes/Second";
39
- StandardUnit["Microseconds"] = "Microseconds";
40
- StandardUnit["Milliseconds"] = "Milliseconds";
41
- StandardUnit["None"] = "None";
42
- StandardUnit["Percent"] = "Percent";
43
- StandardUnit["Seconds"] = "Seconds";
44
- StandardUnit["Terabits"] = "Terabits";
45
- StandardUnit["Terabits_Second"] = "Terabits/Second";
46
- StandardUnit["Terabytes"] = "Terabytes";
47
- StandardUnit["Terabytes_Second"] = "Terabytes/Second";
48
- })(StandardUnit || (StandardUnit = {}));
49
- export var AnomalyDetectorStateValue;
50
- (function (AnomalyDetectorStateValue) {
51
- AnomalyDetectorStateValue["PENDING_TRAINING"] = "PENDING_TRAINING";
52
- AnomalyDetectorStateValue["TRAINED"] = "TRAINED";
53
- AnomalyDetectorStateValue["TRAINED_INSUFFICIENT_DATA"] = "TRAINED_INSUFFICIENT_DATA";
54
- })(AnomalyDetectorStateValue || (AnomalyDetectorStateValue = {}));
55
- export var AnomalyDetectorType;
56
- (function (AnomalyDetectorType) {
57
- AnomalyDetectorType["METRIC_MATH"] = "METRIC_MATH";
58
- AnomalyDetectorType["SINGLE_METRIC"] = "SINGLE_METRIC";
59
- })(AnomalyDetectorType || (AnomalyDetectorType = {}));
60
- export var ComparisonOperator;
61
- (function (ComparisonOperator) {
62
- ComparisonOperator["GreaterThanOrEqualToThreshold"] = "GreaterThanOrEqualToThreshold";
63
- ComparisonOperator["GreaterThanThreshold"] = "GreaterThanThreshold";
64
- ComparisonOperator["GreaterThanUpperThreshold"] = "GreaterThanUpperThreshold";
65
- ComparisonOperator["LessThanLowerOrGreaterThanUpperThreshold"] = "LessThanLowerOrGreaterThanUpperThreshold";
66
- ComparisonOperator["LessThanLowerThreshold"] = "LessThanLowerThreshold";
67
- ComparisonOperator["LessThanOrEqualToThreshold"] = "LessThanOrEqualToThreshold";
68
- ComparisonOperator["LessThanThreshold"] = "LessThanThreshold";
69
- })(ComparisonOperator || (ComparisonOperator = {}));
70
- export var StateValue;
71
- (function (StateValue) {
72
- StateValue["ALARM"] = "ALARM";
73
- StateValue["INSUFFICIENT_DATA"] = "INSUFFICIENT_DATA";
74
- StateValue["OK"] = "OK";
75
- })(StateValue || (StateValue = {}));
2
+ export const ActionsSuppressedBy = {
3
+ Alarm: "Alarm",
4
+ ExtensionPeriod: "ExtensionPeriod",
5
+ WaitPeriod: "WaitPeriod",
6
+ };
7
+ export const AlarmType = {
8
+ CompositeAlarm: "CompositeAlarm",
9
+ MetricAlarm: "MetricAlarm",
10
+ };
11
+ export const HistoryItemType = {
12
+ Action: "Action",
13
+ ConfigurationUpdate: "ConfigurationUpdate",
14
+ StateUpdate: "StateUpdate",
15
+ };
16
+ export const StandardUnit = {
17
+ Bits: "Bits",
18
+ Bits_Second: "Bits/Second",
19
+ Bytes: "Bytes",
20
+ Bytes_Second: "Bytes/Second",
21
+ Count: "Count",
22
+ Count_Second: "Count/Second",
23
+ Gigabits: "Gigabits",
24
+ Gigabits_Second: "Gigabits/Second",
25
+ Gigabytes: "Gigabytes",
26
+ Gigabytes_Second: "Gigabytes/Second",
27
+ Kilobits: "Kilobits",
28
+ Kilobits_Second: "Kilobits/Second",
29
+ Kilobytes: "Kilobytes",
30
+ Kilobytes_Second: "Kilobytes/Second",
31
+ Megabits: "Megabits",
32
+ Megabits_Second: "Megabits/Second",
33
+ Megabytes: "Megabytes",
34
+ Megabytes_Second: "Megabytes/Second",
35
+ Microseconds: "Microseconds",
36
+ Milliseconds: "Milliseconds",
37
+ None: "None",
38
+ Percent: "Percent",
39
+ Seconds: "Seconds",
40
+ Terabits: "Terabits",
41
+ Terabits_Second: "Terabits/Second",
42
+ Terabytes: "Terabytes",
43
+ Terabytes_Second: "Terabytes/Second",
44
+ };
45
+ export const AnomalyDetectorStateValue = {
46
+ PENDING_TRAINING: "PENDING_TRAINING",
47
+ TRAINED: "TRAINED",
48
+ TRAINED_INSUFFICIENT_DATA: "TRAINED_INSUFFICIENT_DATA",
49
+ };
50
+ export const AnomalyDetectorType = {
51
+ METRIC_MATH: "METRIC_MATH",
52
+ SINGLE_METRIC: "SINGLE_METRIC",
53
+ };
54
+ export const ComparisonOperator = {
55
+ GreaterThanOrEqualToThreshold: "GreaterThanOrEqualToThreshold",
56
+ GreaterThanThreshold: "GreaterThanThreshold",
57
+ GreaterThanUpperThreshold: "GreaterThanUpperThreshold",
58
+ LessThanLowerOrGreaterThanUpperThreshold: "LessThanLowerOrGreaterThanUpperThreshold",
59
+ LessThanLowerThreshold: "LessThanLowerThreshold",
60
+ LessThanOrEqualToThreshold: "LessThanOrEqualToThreshold",
61
+ LessThanThreshold: "LessThanThreshold",
62
+ };
63
+ export const StateValue = {
64
+ ALARM: "ALARM",
65
+ INSUFFICIENT_DATA: "INSUFFICIENT_DATA",
66
+ OK: "OK",
67
+ };
76
68
  export class ConcurrentModificationException extends __BaseException {
77
69
  constructor(opts) {
78
70
  super({
@@ -187,11 +179,10 @@ export class ResourceNotFoundException extends __BaseException {
187
179
  this.Message = opts.Message;
188
180
  }
189
181
  }
190
- export var ScanBy;
191
- (function (ScanBy) {
192
- ScanBy["TIMESTAMP_ASCENDING"] = "TimestampAscending";
193
- ScanBy["TIMESTAMP_DESCENDING"] = "TimestampDescending";
194
- })(ScanBy || (ScanBy = {}));
182
+ export const ScanBy = {
183
+ TIMESTAMP_ASCENDING: "TimestampAscending",
184
+ TIMESTAMP_DESCENDING: "TimestampDescending",
185
+ };
195
186
  export class InvalidNextToken extends __BaseException {
196
187
  constructor(opts) {
197
188
  super({
@@ -204,18 +195,16 @@ export class InvalidNextToken extends __BaseException {
204
195
  Object.setPrototypeOf(this, InvalidNextToken.prototype);
205
196
  }
206
197
  }
207
- export var EvaluationState;
208
- (function (EvaluationState) {
209
- EvaluationState["PARTIAL_DATA"] = "PARTIAL_DATA";
210
- })(EvaluationState || (EvaluationState = {}));
211
- export var Statistic;
212
- (function (Statistic) {
213
- Statistic["Average"] = "Average";
214
- Statistic["Maximum"] = "Maximum";
215
- Statistic["Minimum"] = "Minimum";
216
- Statistic["SampleCount"] = "SampleCount";
217
- Statistic["Sum"] = "Sum";
218
- })(Statistic || (Statistic = {}));
198
+ export const EvaluationState = {
199
+ PARTIAL_DATA: "PARTIAL_DATA",
200
+ };
201
+ export const Statistic = {
202
+ Average: "Average",
203
+ Maximum: "Maximum",
204
+ Minimum: "Minimum",
205
+ SampleCount: "SampleCount",
206
+ Sum: "Sum",
207
+ };
219
208
  export class LimitExceededException extends __BaseException {
220
209
  constructor(opts) {
221
210
  super({
@@ -229,22 +218,19 @@ export class LimitExceededException extends __BaseException {
229
218
  this.Message = opts.Message;
230
219
  }
231
220
  }
232
- export var StatusCode;
233
- (function (StatusCode) {
234
- StatusCode["COMPLETE"] = "Complete";
235
- StatusCode["FORBIDDEN"] = "Forbidden";
236
- StatusCode["INTERNAL_ERROR"] = "InternalError";
237
- StatusCode["PARTIAL_DATA"] = "PartialData";
238
- })(StatusCode || (StatusCode = {}));
239
- export var MetricStreamOutputFormat;
240
- (function (MetricStreamOutputFormat) {
241
- MetricStreamOutputFormat["JSON"] = "json";
242
- MetricStreamOutputFormat["OPEN_TELEMETRY_0_7"] = "opentelemetry0.7";
243
- })(MetricStreamOutputFormat || (MetricStreamOutputFormat = {}));
244
- export var RecentlyActive;
245
- (function (RecentlyActive) {
246
- RecentlyActive["PT3H"] = "PT3H";
247
- })(RecentlyActive || (RecentlyActive = {}));
221
+ export const StatusCode = {
222
+ COMPLETE: "Complete",
223
+ FORBIDDEN: "Forbidden",
224
+ INTERNAL_ERROR: "InternalError",
225
+ PARTIAL_DATA: "PartialData",
226
+ };
227
+ export const MetricStreamOutputFormat = {
228
+ JSON: "json",
229
+ OPEN_TELEMETRY_0_7: "opentelemetry0.7",
230
+ };
231
+ export const RecentlyActive = {
232
+ PT3H: "PT3H",
233
+ };
248
234
  export class LimitExceededFault extends __BaseException {
249
235
  constructor(opts) {
250
236
  super({
@@ -43,8 +43,8 @@ export interface DeleteAlarmsCommandOutput extends __MetadataBearer {
43
43
  * import { CloudWatchClient, DeleteAlarmsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
44
44
  * // const { CloudWatchClient, DeleteAlarmsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
45
45
  * const client = new CloudWatchClient(config);
46
- * const input = {
47
- * AlarmNames: [ // required
46
+ * const input = { // DeleteAlarmsInput
47
+ * AlarmNames: [ // AlarmNames // required
48
48
  * "STRING_VALUE",
49
49
  * ],
50
50
  * };
@@ -34,17 +34,17 @@ export interface DeleteAnomalyDetectorCommandOutput extends DeleteAnomalyDetecto
34
34
  * import { CloudWatchClient, DeleteAnomalyDetectorCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
35
35
  * // const { CloudWatchClient, DeleteAnomalyDetectorCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
36
36
  * const client = new CloudWatchClient(config);
37
- * const input = {
37
+ * const input = { // DeleteAnomalyDetectorInput
38
38
  * Namespace: "STRING_VALUE",
39
39
  * MetricName: "STRING_VALUE",
40
- * Dimensions: [
41
- * {
40
+ * Dimensions: [ // Dimensions
41
+ * { // Dimension
42
42
  * Name: "STRING_VALUE", // required
43
43
  * Value: "STRING_VALUE", // required
44
44
  * },
45
45
  * ],
46
46
  * Stat: "STRING_VALUE",
47
- * SingleMetricAnomalyDetector: {
47
+ * SingleMetricAnomalyDetector: { // SingleMetricAnomalyDetector
48
48
  * Namespace: "STRING_VALUE",
49
49
  * MetricName: "STRING_VALUE",
50
50
  * Dimensions: [
@@ -55,17 +55,15 @@ export interface DeleteAnomalyDetectorCommandOutput extends DeleteAnomalyDetecto
55
55
  * ],
56
56
  * Stat: "STRING_VALUE",
57
57
  * },
58
- * MetricMathAnomalyDetector: {
59
- * MetricDataQueries: [
60
- * {
58
+ * MetricMathAnomalyDetector: { // MetricMathAnomalyDetector
59
+ * MetricDataQueries: [ // MetricDataQueries
60
+ * { // MetricDataQuery
61
61
  * Id: "STRING_VALUE", // required
62
- * MetricStat: {
63
- * Metric: {
62
+ * MetricStat: { // MetricStat
63
+ * Metric: { // Metric
64
64
  * Namespace: "STRING_VALUE",
65
65
  * MetricName: "STRING_VALUE",
66
- * Dimensions: [
67
- * "<Dimensions>",
68
- * ],
66
+ * Dimensions: "<Dimensions>",
69
67
  * },
70
68
  * Period: Number("int"), // required
71
69
  * Stat: "STRING_VALUE", // required
@@ -28,8 +28,8 @@ export interface DeleteDashboardsCommandOutput extends DeleteDashboardsOutput, _
28
28
  * import { CloudWatchClient, DeleteDashboardsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
29
29
  * // const { CloudWatchClient, DeleteDashboardsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
30
30
  * const client = new CloudWatchClient(config);
31
- * const input = {
32
- * DashboardNames: [ // required
31
+ * const input = { // DeleteDashboardsInput
32
+ * DashboardNames: [ // DashboardNames // required
33
33
  * "STRING_VALUE",
34
34
  * ],
35
35
  * };
@@ -29,8 +29,8 @@ export interface DeleteInsightRulesCommandOutput extends DeleteInsightRulesOutpu
29
29
  * import { CloudWatchClient, DeleteInsightRulesCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
30
30
  * // const { CloudWatchClient, DeleteInsightRulesCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
31
31
  * const client = new CloudWatchClient(config);
32
- * const input = {
33
- * RuleNames: [ // required
32
+ * const input = { // DeleteInsightRulesInput
33
+ * RuleNames: [ // InsightRuleNames // required
34
34
  * "STRING_VALUE",
35
35
  * ],
36
36
  * };
@@ -26,7 +26,7 @@ export interface DeleteMetricStreamCommandOutput extends DeleteMetricStreamOutpu
26
26
  * import { CloudWatchClient, DeleteMetricStreamCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
27
27
  * // const { CloudWatchClient, DeleteMetricStreamCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
28
28
  * const client = new CloudWatchClient(config);
29
- * const input = {
29
+ * const input = { // DeleteMetricStreamInput
30
30
  * Name: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new DeleteMetricStreamCommand(input);
@@ -31,9 +31,9 @@ export interface DescribeAlarmHistoryCommandOutput extends DescribeAlarmHistoryO
31
31
  * import { CloudWatchClient, DescribeAlarmHistoryCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
32
32
  * // const { CloudWatchClient, DescribeAlarmHistoryCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
33
33
  * const client = new CloudWatchClient(config);
34
- * const input = {
34
+ * const input = { // DescribeAlarmHistoryInput
35
35
  * AlarmName: "STRING_VALUE",
36
- * AlarmTypes: [
36
+ * AlarmTypes: [ // AlarmTypes
37
37
  * "CompositeAlarm" || "MetricAlarm",
38
38
  * ],
39
39
  * HistoryItemType: "ConfigurationUpdate" || "StateUpdate" || "Action",
@@ -30,12 +30,12 @@ export interface DescribeAlarmsCommandOutput extends DescribeAlarmsOutput, __Met
30
30
  * import { CloudWatchClient, DescribeAlarmsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
31
31
  * // const { CloudWatchClient, DescribeAlarmsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
32
32
  * const client = new CloudWatchClient(config);
33
- * const input = {
34
- * AlarmNames: [
33
+ * const input = { // DescribeAlarmsInput
34
+ * AlarmNames: [ // AlarmNames
35
35
  * "STRING_VALUE",
36
36
  * ],
37
37
  * AlarmNamePrefix: "STRING_VALUE",
38
- * AlarmTypes: [
38
+ * AlarmTypes: [ // AlarmTypes
39
39
  * "CompositeAlarm" || "MetricAlarm",
40
40
  * ],
41
41
  * ChildrenOfAlarmName: "STRING_VALUE",
@@ -30,13 +30,13 @@ export interface DescribeAlarmsForMetricCommandOutput extends DescribeAlarmsForM
30
30
  * import { CloudWatchClient, DescribeAlarmsForMetricCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
31
31
  * // const { CloudWatchClient, DescribeAlarmsForMetricCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
32
32
  * const client = new CloudWatchClient(config);
33
- * const input = {
33
+ * const input = { // DescribeAlarmsForMetricInput
34
34
  * MetricName: "STRING_VALUE", // required
35
35
  * Namespace: "STRING_VALUE", // required
36
36
  * Statistic: "SampleCount" || "Average" || "Sum" || "Minimum" || "Maximum",
37
37
  * ExtendedStatistic: "STRING_VALUE",
38
- * Dimensions: [
39
- * {
38
+ * Dimensions: [ // Dimensions
39
+ * { // Dimension
40
40
  * Name: "STRING_VALUE", // required
41
41
  * Value: "STRING_VALUE", // required
42
42
  * },
@@ -32,18 +32,18 @@ export interface DescribeAnomalyDetectorsCommandOutput extends DescribeAnomalyDe
32
32
  * import { CloudWatchClient, DescribeAnomalyDetectorsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
33
33
  * // const { CloudWatchClient, DescribeAnomalyDetectorsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
34
34
  * const client = new CloudWatchClient(config);
35
- * const input = {
35
+ * const input = { // DescribeAnomalyDetectorsInput
36
36
  * NextToken: "STRING_VALUE",
37
37
  * MaxResults: Number("int"),
38
38
  * Namespace: "STRING_VALUE",
39
39
  * MetricName: "STRING_VALUE",
40
- * Dimensions: [
41
- * {
40
+ * Dimensions: [ // Dimensions
41
+ * { // Dimension
42
42
  * Name: "STRING_VALUE", // required
43
43
  * Value: "STRING_VALUE", // required
44
44
  * },
45
45
  * ],
46
- * AnomalyDetectorTypes: [
46
+ * AnomalyDetectorTypes: [ // AnomalyDetectorTypes
47
47
  * "SINGLE_METRIC" || "METRIC_MATH",
48
48
  * ],
49
49
  * };