@aws-sdk/client-cloudwatch 3.301.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.
@@ -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({
@@ -2,27 +2,42 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl
2
2
  import { CloudWatchServiceException as __BaseException } from "./CloudWatchServiceException";
3
3
  /**
4
4
  * @public
5
+ * @enum
5
6
  */
6
- export declare enum ActionsSuppressedBy {
7
- Alarm = "Alarm",
8
- ExtensionPeriod = "ExtensionPeriod",
9
- WaitPeriod = "WaitPeriod"
10
- }
7
+ export declare const ActionsSuppressedBy: {
8
+ readonly Alarm: "Alarm";
9
+ readonly ExtensionPeriod: "ExtensionPeriod";
10
+ readonly WaitPeriod: "WaitPeriod";
11
+ };
11
12
  /**
12
13
  * @public
13
14
  */
14
- export declare enum AlarmType {
15
- CompositeAlarm = "CompositeAlarm",
16
- MetricAlarm = "MetricAlarm"
17
- }
15
+ export type ActionsSuppressedBy = (typeof ActionsSuppressedBy)[keyof typeof ActionsSuppressedBy];
18
16
  /**
19
17
  * @public
18
+ * @enum
20
19
  */
21
- export declare enum HistoryItemType {
22
- Action = "Action",
23
- ConfigurationUpdate = "ConfigurationUpdate",
24
- StateUpdate = "StateUpdate"
25
- }
20
+ export declare const AlarmType: {
21
+ readonly CompositeAlarm: "CompositeAlarm";
22
+ readonly MetricAlarm: "MetricAlarm";
23
+ };
24
+ /**
25
+ * @public
26
+ */
27
+ export type AlarmType = (typeof AlarmType)[keyof typeof AlarmType];
28
+ /**
29
+ * @public
30
+ * @enum
31
+ */
32
+ export declare const HistoryItemType: {
33
+ readonly Action: "Action";
34
+ readonly ConfigurationUpdate: "ConfigurationUpdate";
35
+ readonly StateUpdate: "StateUpdate";
36
+ };
37
+ /**
38
+ * @public
39
+ */
40
+ export type HistoryItemType = (typeof HistoryItemType)[keyof typeof HistoryItemType];
26
41
  /**
27
42
  * @public
28
43
  * <p>Represents the history of a specific alarm.</p>
@@ -136,36 +151,41 @@ export interface Metric {
136
151
  }
137
152
  /**
138
153
  * @public
139
- */
140
- export declare enum StandardUnit {
141
- Bits = "Bits",
142
- Bits_Second = "Bits/Second",
143
- Bytes = "Bytes",
144
- Bytes_Second = "Bytes/Second",
145
- Count = "Count",
146
- Count_Second = "Count/Second",
147
- Gigabits = "Gigabits",
148
- Gigabits_Second = "Gigabits/Second",
149
- Gigabytes = "Gigabytes",
150
- Gigabytes_Second = "Gigabytes/Second",
151
- Kilobits = "Kilobits",
152
- Kilobits_Second = "Kilobits/Second",
153
- Kilobytes = "Kilobytes",
154
- Kilobytes_Second = "Kilobytes/Second",
155
- Megabits = "Megabits",
156
- Megabits_Second = "Megabits/Second",
157
- Megabytes = "Megabytes",
158
- Megabytes_Second = "Megabytes/Second",
159
- Microseconds = "Microseconds",
160
- Milliseconds = "Milliseconds",
161
- None = "None",
162
- Percent = "Percent",
163
- Seconds = "Seconds",
164
- Terabits = "Terabits",
165
- Terabits_Second = "Terabits/Second",
166
- Terabytes = "Terabytes",
167
- Terabytes_Second = "Terabytes/Second"
168
- }
154
+ * @enum
155
+ */
156
+ export declare const StandardUnit: {
157
+ readonly Bits: "Bits";
158
+ readonly Bits_Second: "Bits/Second";
159
+ readonly Bytes: "Bytes";
160
+ readonly Bytes_Second: "Bytes/Second";
161
+ readonly Count: "Count";
162
+ readonly Count_Second: "Count/Second";
163
+ readonly Gigabits: "Gigabits";
164
+ readonly Gigabits_Second: "Gigabits/Second";
165
+ readonly Gigabytes: "Gigabytes";
166
+ readonly Gigabytes_Second: "Gigabytes/Second";
167
+ readonly Kilobits: "Kilobits";
168
+ readonly Kilobits_Second: "Kilobits/Second";
169
+ readonly Kilobytes: "Kilobytes";
170
+ readonly Kilobytes_Second: "Kilobytes/Second";
171
+ readonly Megabits: "Megabits";
172
+ readonly Megabits_Second: "Megabits/Second";
173
+ readonly Megabytes: "Megabytes";
174
+ readonly Megabytes_Second: "Megabytes/Second";
175
+ readonly Microseconds: "Microseconds";
176
+ readonly Milliseconds: "Milliseconds";
177
+ readonly None: "None";
178
+ readonly Percent: "Percent";
179
+ readonly Seconds: "Seconds";
180
+ readonly Terabits: "Terabits";
181
+ readonly Terabits_Second: "Terabits/Second";
182
+ readonly Terabytes: "Terabytes";
183
+ readonly Terabytes_Second: "Terabytes/Second";
184
+ };
185
+ /**
186
+ * @public
187
+ */
188
+ export type StandardUnit = (typeof StandardUnit)[keyof typeof StandardUnit];
169
189
  /**
170
190
  * @public
171
191
  * <p>This structure defines the metric to be returned, along with the statistics, period, and units.</p>
@@ -346,12 +366,17 @@ export interface SingleMetricAnomalyDetector {
346
366
  }
347
367
  /**
348
368
  * @public
369
+ * @enum
349
370
  */
350
- export declare enum AnomalyDetectorStateValue {
351
- PENDING_TRAINING = "PENDING_TRAINING",
352
- TRAINED = "TRAINED",
353
- TRAINED_INSUFFICIENT_DATA = "TRAINED_INSUFFICIENT_DATA"
354
- }
371
+ export declare const AnomalyDetectorStateValue: {
372
+ readonly PENDING_TRAINING: "PENDING_TRAINING";
373
+ readonly TRAINED: "TRAINED";
374
+ readonly TRAINED_INSUFFICIENT_DATA: "TRAINED_INSUFFICIENT_DATA";
375
+ };
376
+ /**
377
+ * @public
378
+ */
379
+ export type AnomalyDetectorStateValue = (typeof AnomalyDetectorStateValue)[keyof typeof AnomalyDetectorStateValue];
355
380
  /**
356
381
  * @public
357
382
  * <p>An anomaly detection model associated with a particular CloudWatch metric, statistic, or metric math expression.
@@ -406,11 +431,16 @@ export interface AnomalyDetector {
406
431
  }
407
432
  /**
408
433
  * @public
434
+ * @enum
409
435
  */
410
- export declare enum AnomalyDetectorType {
411
- METRIC_MATH = "METRIC_MATH",
412
- SINGLE_METRIC = "SINGLE_METRIC"
413
- }
436
+ export declare const AnomalyDetectorType: {
437
+ readonly METRIC_MATH: "METRIC_MATH";
438
+ readonly SINGLE_METRIC: "SINGLE_METRIC";
439
+ };
440
+ /**
441
+ * @public
442
+ */
443
+ export type AnomalyDetectorType = (typeof AnomalyDetectorType)[keyof typeof AnomalyDetectorType];
414
444
  /**
415
445
  * @public
416
446
  * <p>This array is empty if the API operation was successful for all the rules specified in the request. If the operation could
@@ -436,24 +466,34 @@ export interface PartialFailure {
436
466
  }
437
467
  /**
438
468
  * @public
469
+ * @enum
439
470
  */
440
- export declare enum ComparisonOperator {
441
- GreaterThanOrEqualToThreshold = "GreaterThanOrEqualToThreshold",
442
- GreaterThanThreshold = "GreaterThanThreshold",
443
- GreaterThanUpperThreshold = "GreaterThanUpperThreshold",
444
- LessThanLowerOrGreaterThanUpperThreshold = "LessThanLowerOrGreaterThanUpperThreshold",
445
- LessThanLowerThreshold = "LessThanLowerThreshold",
446
- LessThanOrEqualToThreshold = "LessThanOrEqualToThreshold",
447
- LessThanThreshold = "LessThanThreshold"
448
- }
471
+ export declare const ComparisonOperator: {
472
+ readonly GreaterThanOrEqualToThreshold: "GreaterThanOrEqualToThreshold";
473
+ readonly GreaterThanThreshold: "GreaterThanThreshold";
474
+ readonly GreaterThanUpperThreshold: "GreaterThanUpperThreshold";
475
+ readonly LessThanLowerOrGreaterThanUpperThreshold: "LessThanLowerOrGreaterThanUpperThreshold";
476
+ readonly LessThanLowerThreshold: "LessThanLowerThreshold";
477
+ readonly LessThanOrEqualToThreshold: "LessThanOrEqualToThreshold";
478
+ readonly LessThanThreshold: "LessThanThreshold";
479
+ };
449
480
  /**
450
481
  * @public
451
482
  */
452
- export declare enum StateValue {
453
- ALARM = "ALARM",
454
- INSUFFICIENT_DATA = "INSUFFICIENT_DATA",
455
- OK = "OK"
456
- }
483
+ export type ComparisonOperator = (typeof ComparisonOperator)[keyof typeof ComparisonOperator];
484
+ /**
485
+ * @public
486
+ * @enum
487
+ */
488
+ export declare const StateValue: {
489
+ readonly ALARM: "ALARM";
490
+ readonly INSUFFICIENT_DATA: "INSUFFICIENT_DATA";
491
+ readonly OK: "OK";
492
+ };
493
+ /**
494
+ * @public
495
+ */
496
+ export type StateValue = (typeof StateValue)[keyof typeof StateValue];
457
497
  /**
458
498
  * @public
459
499
  * <p>The details about a composite alarm.</p>
@@ -956,11 +996,16 @@ export interface DeleteMetricStreamOutput {
956
996
  }
957
997
  /**
958
998
  * @public
999
+ * @enum
959
1000
  */
960
- export declare enum ScanBy {
961
- TIMESTAMP_ASCENDING = "TimestampAscending",
962
- TIMESTAMP_DESCENDING = "TimestampDescending"
963
- }
1001
+ export declare const ScanBy: {
1002
+ readonly TIMESTAMP_ASCENDING: "TimestampAscending";
1003
+ readonly TIMESTAMP_DESCENDING: "TimestampDescending";
1004
+ };
1005
+ /**
1006
+ * @public
1007
+ */
1008
+ export type ScanBy = (typeof ScanBy)[keyof typeof ScanBy];
964
1009
  /**
965
1010
  * @public
966
1011
  */
@@ -1105,20 +1150,30 @@ export interface DescribeAlarmsInput {
1105
1150
  }
1106
1151
  /**
1107
1152
  * @public
1153
+ * @enum
1108
1154
  */
1109
- export declare enum EvaluationState {
1110
- PARTIAL_DATA = "PARTIAL_DATA"
1111
- }
1155
+ export declare const EvaluationState: {
1156
+ readonly PARTIAL_DATA: "PARTIAL_DATA";
1157
+ };
1112
1158
  /**
1113
1159
  * @public
1114
1160
  */
1115
- export declare enum Statistic {
1116
- Average = "Average",
1117
- Maximum = "Maximum",
1118
- Minimum = "Minimum",
1119
- SampleCount = "SampleCount",
1120
- Sum = "Sum"
1121
- }
1161
+ export type EvaluationState = (typeof EvaluationState)[keyof typeof EvaluationState];
1162
+ /**
1163
+ * @public
1164
+ * @enum
1165
+ */
1166
+ export declare const Statistic: {
1167
+ readonly Average: "Average";
1168
+ readonly Maximum: "Maximum";
1169
+ readonly Minimum: "Minimum";
1170
+ readonly SampleCount: "SampleCount";
1171
+ readonly Sum: "Sum";
1172
+ };
1173
+ /**
1174
+ * @public
1175
+ */
1176
+ export type Statistic = (typeof Statistic)[keyof typeof Statistic];
1122
1177
  /**
1123
1178
  * @public
1124
1179
  * <p>The details about a metric alarm.</p>
@@ -1863,13 +1918,18 @@ export interface MessageData {
1863
1918
  }
1864
1919
  /**
1865
1920
  * @public
1921
+ * @enum
1866
1922
  */
1867
- export declare enum StatusCode {
1868
- COMPLETE = "Complete",
1869
- FORBIDDEN = "Forbidden",
1870
- INTERNAL_ERROR = "InternalError",
1871
- PARTIAL_DATA = "PartialData"
1872
- }
1923
+ export declare const StatusCode: {
1924
+ readonly COMPLETE: "Complete";
1925
+ readonly FORBIDDEN: "Forbidden";
1926
+ readonly INTERNAL_ERROR: "InternalError";
1927
+ readonly PARTIAL_DATA: "PartialData";
1928
+ };
1929
+ /**
1930
+ * @public
1931
+ */
1932
+ export type StatusCode = (typeof StatusCode)[keyof typeof StatusCode];
1873
1933
  /**
1874
1934
  * @public
1875
1935
  * <p>A <code>GetMetricData</code> call returns an array of <code>MetricDataResult</code>
@@ -2066,11 +2126,16 @@ export interface MetricStreamFilter {
2066
2126
  }
2067
2127
  /**
2068
2128
  * @public
2129
+ * @enum
2069
2130
  */
2070
- export declare enum MetricStreamOutputFormat {
2071
- JSON = "json",
2072
- OPEN_TELEMETRY_0_7 = "opentelemetry0.7"
2073
- }
2131
+ export declare const MetricStreamOutputFormat: {
2132
+ readonly JSON: "json";
2133
+ readonly OPEN_TELEMETRY_0_7: "opentelemetry0.7";
2134
+ };
2135
+ /**
2136
+ * @public
2137
+ */
2138
+ export type MetricStreamOutputFormat = (typeof MetricStreamOutputFormat)[keyof typeof MetricStreamOutputFormat];
2074
2139
  /**
2075
2140
  * @public
2076
2141
  * <p>This object contains the information for one metric that is to be streamed with
@@ -2408,10 +2473,15 @@ export interface ListManagedInsightRulesOutput {
2408
2473
  }
2409
2474
  /**
2410
2475
  * @public
2476
+ * @enum
2411
2477
  */
2412
- export declare enum RecentlyActive {
2413
- PT3H = "PT3H"
2414
- }
2478
+ export declare const RecentlyActive: {
2479
+ readonly PT3H: "PT3H";
2480
+ };
2481
+ /**
2482
+ * @public
2483
+ */
2484
+ export type RecentlyActive = (typeof RecentlyActive)[keyof typeof RecentlyActive];
2415
2485
  /**
2416
2486
  * @public
2417
2487
  */
@@ -1,19 +1,24 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { CloudWatchServiceException as __BaseException } from "./CloudWatchServiceException";
3
- export declare enum ActionsSuppressedBy {
4
- Alarm = "Alarm",
5
- ExtensionPeriod = "ExtensionPeriod",
6
- WaitPeriod = "WaitPeriod",
7
- }
8
- export declare enum AlarmType {
9
- CompositeAlarm = "CompositeAlarm",
10
- MetricAlarm = "MetricAlarm",
11
- }
12
- export declare enum HistoryItemType {
13
- Action = "Action",
14
- ConfigurationUpdate = "ConfigurationUpdate",
15
- StateUpdate = "StateUpdate",
16
- }
3
+ export declare const ActionsSuppressedBy: {
4
+ readonly Alarm: "Alarm";
5
+ readonly ExtensionPeriod: "ExtensionPeriod";
6
+ readonly WaitPeriod: "WaitPeriod";
7
+ };
8
+ export type ActionsSuppressedBy =
9
+ (typeof ActionsSuppressedBy)[keyof typeof ActionsSuppressedBy];
10
+ export declare const AlarmType: {
11
+ readonly CompositeAlarm: "CompositeAlarm";
12
+ readonly MetricAlarm: "MetricAlarm";
13
+ };
14
+ export type AlarmType = (typeof AlarmType)[keyof typeof AlarmType];
15
+ export declare const HistoryItemType: {
16
+ readonly Action: "Action";
17
+ readonly ConfigurationUpdate: "ConfigurationUpdate";
18
+ readonly StateUpdate: "StateUpdate";
19
+ };
20
+ export type HistoryItemType =
21
+ (typeof HistoryItemType)[keyof typeof HistoryItemType];
17
22
  export interface AlarmHistoryItem {
18
23
  AlarmName?: string;
19
24
  AlarmType?: AlarmType | string;
@@ -39,35 +44,36 @@ export interface Metric {
39
44
  MetricName?: string;
40
45
  Dimensions?: Dimension[];
41
46
  }
42
- export declare enum StandardUnit {
43
- Bits = "Bits",
44
- Bits_Second = "Bits/Second",
45
- Bytes = "Bytes",
46
- Bytes_Second = "Bytes/Second",
47
- Count = "Count",
48
- Count_Second = "Count/Second",
49
- Gigabits = "Gigabits",
50
- Gigabits_Second = "Gigabits/Second",
51
- Gigabytes = "Gigabytes",
52
- Gigabytes_Second = "Gigabytes/Second",
53
- Kilobits = "Kilobits",
54
- Kilobits_Second = "Kilobits/Second",
55
- Kilobytes = "Kilobytes",
56
- Kilobytes_Second = "Kilobytes/Second",
57
- Megabits = "Megabits",
58
- Megabits_Second = "Megabits/Second",
59
- Megabytes = "Megabytes",
60
- Megabytes_Second = "Megabytes/Second",
61
- Microseconds = "Microseconds",
62
- Milliseconds = "Milliseconds",
63
- None = "None",
64
- Percent = "Percent",
65
- Seconds = "Seconds",
66
- Terabits = "Terabits",
67
- Terabits_Second = "Terabits/Second",
68
- Terabytes = "Terabytes",
69
- Terabytes_Second = "Terabytes/Second",
70
- }
47
+ export declare const StandardUnit: {
48
+ readonly Bits: "Bits";
49
+ readonly Bits_Second: "Bits/Second";
50
+ readonly Bytes: "Bytes";
51
+ readonly Bytes_Second: "Bytes/Second";
52
+ readonly Count: "Count";
53
+ readonly Count_Second: "Count/Second";
54
+ readonly Gigabits: "Gigabits";
55
+ readonly Gigabits_Second: "Gigabits/Second";
56
+ readonly Gigabytes: "Gigabytes";
57
+ readonly Gigabytes_Second: "Gigabytes/Second";
58
+ readonly Kilobits: "Kilobits";
59
+ readonly Kilobits_Second: "Kilobits/Second";
60
+ readonly Kilobytes: "Kilobytes";
61
+ readonly Kilobytes_Second: "Kilobytes/Second";
62
+ readonly Megabits: "Megabits";
63
+ readonly Megabits_Second: "Megabits/Second";
64
+ readonly Megabytes: "Megabytes";
65
+ readonly Megabytes_Second: "Megabytes/Second";
66
+ readonly Microseconds: "Microseconds";
67
+ readonly Milliseconds: "Milliseconds";
68
+ readonly None: "None";
69
+ readonly Percent: "Percent";
70
+ readonly Seconds: "Seconds";
71
+ readonly Terabits: "Terabits";
72
+ readonly Terabits_Second: "Terabits/Second";
73
+ readonly Terabytes: "Terabytes";
74
+ readonly Terabytes_Second: "Terabytes/Second";
75
+ };
76
+ export type StandardUnit = (typeof StandardUnit)[keyof typeof StandardUnit];
71
77
  export interface MetricStat {
72
78
  Metric: Metric | undefined;
73
79
  Period: number | undefined;
@@ -92,11 +98,13 @@ export interface SingleMetricAnomalyDetector {
92
98
  Dimensions?: Dimension[];
93
99
  Stat?: string;
94
100
  }
95
- export declare enum AnomalyDetectorStateValue {
96
- PENDING_TRAINING = "PENDING_TRAINING",
97
- TRAINED = "TRAINED",
98
- TRAINED_INSUFFICIENT_DATA = "TRAINED_INSUFFICIENT_DATA",
99
- }
101
+ export declare const AnomalyDetectorStateValue: {
102
+ readonly PENDING_TRAINING: "PENDING_TRAINING";
103
+ readonly TRAINED: "TRAINED";
104
+ readonly TRAINED_INSUFFICIENT_DATA: "TRAINED_INSUFFICIENT_DATA";
105
+ };
106
+ export type AnomalyDetectorStateValue =
107
+ (typeof AnomalyDetectorStateValue)[keyof typeof AnomalyDetectorStateValue];
100
108
  export interface AnomalyDetector {
101
109
  Namespace?: string;
102
110
  MetricName?: string;
@@ -107,30 +115,35 @@ export interface AnomalyDetector {
107
115
  SingleMetricAnomalyDetector?: SingleMetricAnomalyDetector;
108
116
  MetricMathAnomalyDetector?: MetricMathAnomalyDetector;
109
117
  }
110
- export declare enum AnomalyDetectorType {
111
- METRIC_MATH = "METRIC_MATH",
112
- SINGLE_METRIC = "SINGLE_METRIC",
113
- }
118
+ export declare const AnomalyDetectorType: {
119
+ readonly METRIC_MATH: "METRIC_MATH";
120
+ readonly SINGLE_METRIC: "SINGLE_METRIC";
121
+ };
122
+ export type AnomalyDetectorType =
123
+ (typeof AnomalyDetectorType)[keyof typeof AnomalyDetectorType];
114
124
  export interface PartialFailure {
115
125
  FailureResource?: string;
116
126
  ExceptionType?: string;
117
127
  FailureCode?: string;
118
128
  FailureDescription?: string;
119
129
  }
120
- export declare enum ComparisonOperator {
121
- GreaterThanOrEqualToThreshold = "GreaterThanOrEqualToThreshold",
122
- GreaterThanThreshold = "GreaterThanThreshold",
123
- GreaterThanUpperThreshold = "GreaterThanUpperThreshold",
124
- LessThanLowerOrGreaterThanUpperThreshold = "LessThanLowerOrGreaterThanUpperThreshold",
125
- LessThanLowerThreshold = "LessThanLowerThreshold",
126
- LessThanOrEqualToThreshold = "LessThanOrEqualToThreshold",
127
- LessThanThreshold = "LessThanThreshold",
128
- }
129
- export declare enum StateValue {
130
- ALARM = "ALARM",
131
- INSUFFICIENT_DATA = "INSUFFICIENT_DATA",
132
- OK = "OK",
133
- }
130
+ export declare const ComparisonOperator: {
131
+ readonly GreaterThanOrEqualToThreshold: "GreaterThanOrEqualToThreshold";
132
+ readonly GreaterThanThreshold: "GreaterThanThreshold";
133
+ readonly GreaterThanUpperThreshold: "GreaterThanUpperThreshold";
134
+ readonly LessThanLowerOrGreaterThanUpperThreshold: "LessThanLowerOrGreaterThanUpperThreshold";
135
+ readonly LessThanLowerThreshold: "LessThanLowerThreshold";
136
+ readonly LessThanOrEqualToThreshold: "LessThanOrEqualToThreshold";
137
+ readonly LessThanThreshold: "LessThanThreshold";
138
+ };
139
+ export type ComparisonOperator =
140
+ (typeof ComparisonOperator)[keyof typeof ComparisonOperator];
141
+ export declare const StateValue: {
142
+ readonly ALARM: "ALARM";
143
+ readonly INSUFFICIENT_DATA: "INSUFFICIENT_DATA";
144
+ readonly OK: "OK";
145
+ };
146
+ export type StateValue = (typeof StateValue)[keyof typeof StateValue];
134
147
  export interface CompositeAlarm {
135
148
  ActionsEnabled?: boolean;
136
149
  AlarmActions?: string[];
@@ -274,10 +287,11 @@ export interface DeleteMetricStreamInput {
274
287
  Name: string | undefined;
275
288
  }
276
289
  export interface DeleteMetricStreamOutput {}
277
- export declare enum ScanBy {
278
- TIMESTAMP_ASCENDING = "TimestampAscending",
279
- TIMESTAMP_DESCENDING = "TimestampDescending",
280
- }
290
+ export declare const ScanBy: {
291
+ readonly TIMESTAMP_ASCENDING: "TimestampAscending";
292
+ readonly TIMESTAMP_DESCENDING: "TimestampDescending";
293
+ };
294
+ export type ScanBy = (typeof ScanBy)[keyof typeof ScanBy];
281
295
  export interface DescribeAlarmHistoryInput {
282
296
  AlarmName?: string;
283
297
  AlarmTypes?: (AlarmType | string)[];
@@ -308,16 +322,19 @@ export interface DescribeAlarmsInput {
308
322
  MaxRecords?: number;
309
323
  NextToken?: string;
310
324
  }
311
- export declare enum EvaluationState {
312
- PARTIAL_DATA = "PARTIAL_DATA",
313
- }
314
- export declare enum Statistic {
315
- Average = "Average",
316
- Maximum = "Maximum",
317
- Minimum = "Minimum",
318
- SampleCount = "SampleCount",
319
- Sum = "Sum",
320
- }
325
+ export declare const EvaluationState: {
326
+ readonly PARTIAL_DATA: "PARTIAL_DATA";
327
+ };
328
+ export type EvaluationState =
329
+ (typeof EvaluationState)[keyof typeof EvaluationState];
330
+ export declare const Statistic: {
331
+ readonly Average: "Average";
332
+ readonly Maximum: "Maximum";
333
+ readonly Minimum: "Minimum";
334
+ readonly SampleCount: "SampleCount";
335
+ readonly Sum: "Sum";
336
+ };
337
+ export type Statistic = (typeof Statistic)[keyof typeof Statistic];
321
338
  export interface MetricAlarm {
322
339
  AlarmName?: string;
323
340
  AlarmArn?: string;
@@ -483,12 +500,13 @@ export interface MessageData {
483
500
  Code?: string;
484
501
  Value?: string;
485
502
  }
486
- export declare enum StatusCode {
487
- COMPLETE = "Complete",
488
- FORBIDDEN = "Forbidden",
489
- INTERNAL_ERROR = "InternalError",
490
- PARTIAL_DATA = "PartialData",
491
- }
503
+ export declare const StatusCode: {
504
+ readonly COMPLETE: "Complete";
505
+ readonly FORBIDDEN: "Forbidden";
506
+ readonly INTERNAL_ERROR: "InternalError";
507
+ readonly PARTIAL_DATA: "PartialData";
508
+ };
509
+ export type StatusCode = (typeof StatusCode)[keyof typeof StatusCode];
492
510
  export interface MetricDataResult {
493
511
  Id?: string;
494
512
  Label?: string;
@@ -523,10 +541,12 @@ export interface GetMetricStreamInput {
523
541
  export interface MetricStreamFilter {
524
542
  Namespace?: string;
525
543
  }
526
- export declare enum MetricStreamOutputFormat {
527
- JSON = "json",
528
- OPEN_TELEMETRY_0_7 = "opentelemetry0.7",
529
- }
544
+ export declare const MetricStreamOutputFormat: {
545
+ readonly JSON: "json";
546
+ readonly OPEN_TELEMETRY_0_7: "opentelemetry0.7";
547
+ };
548
+ export type MetricStreamOutputFormat =
549
+ (typeof MetricStreamOutputFormat)[keyof typeof MetricStreamOutputFormat];
530
550
  export interface MetricStreamStatisticsMetric {
531
551
  Namespace: string | undefined;
532
552
  MetricName: string | undefined;
@@ -582,9 +602,11 @@ export interface ListManagedInsightRulesOutput {
582
602
  ManagedRules?: ManagedRuleDescription[];
583
603
  NextToken?: string;
584
604
  }
585
- export declare enum RecentlyActive {
586
- PT3H = "PT3H",
587
- }
605
+ export declare const RecentlyActive: {
606
+ readonly PT3H: "PT3H";
607
+ };
608
+ export type RecentlyActive =
609
+ (typeof RecentlyActive)[keyof typeof RecentlyActive];
588
610
  export interface ListMetricsInput {
589
611
  Namespace?: string;
590
612
  MetricName?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudwatch",
3
3
  "description": "AWS SDK for JavaScript Cloudwatch Client for Node.js, Browser and React Native",
4
- "version": "3.301.0",
4
+ "version": "3.303.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,44 +21,44 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
56
- "@aws-sdk/util-waiter": "3.296.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
+ "@aws-sdk/util-waiter": "3.303.0",
57
57
  "fast-xml-parser": "4.1.2",
58
58
  "tslib": "^2.5.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
61
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
62
62
  "@tsconfig/node14": "1.0.3",
63
63
  "@types/node": "^14.14.31",
64
64
  "concurrently": "7.0.0",