@aws-sdk/client-cloudwatch 3.934.0 → 3.935.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.
package/dist-cjs/index.js CHANGED
@@ -120,74 +120,6 @@ let CloudWatchServiceException$1 = class CloudWatchServiceException extends smit
120
120
  }
121
121
  };
122
122
 
123
- const ActionsSuppressedBy = {
124
- Alarm: "Alarm",
125
- ExtensionPeriod: "ExtensionPeriod",
126
- WaitPeriod: "WaitPeriod",
127
- };
128
- const AlarmType = {
129
- CompositeAlarm: "CompositeAlarm",
130
- MetricAlarm: "MetricAlarm",
131
- };
132
- const HistoryItemType = {
133
- Action: "Action",
134
- AlarmContributorAction: "AlarmContributorAction",
135
- AlarmContributorStateUpdate: "AlarmContributorStateUpdate",
136
- ConfigurationUpdate: "ConfigurationUpdate",
137
- StateUpdate: "StateUpdate",
138
- };
139
- const StandardUnit = {
140
- Bits: "Bits",
141
- Bits_Second: "Bits/Second",
142
- Bytes: "Bytes",
143
- Bytes_Second: "Bytes/Second",
144
- Count: "Count",
145
- Count_Second: "Count/Second",
146
- Gigabits: "Gigabits",
147
- Gigabits_Second: "Gigabits/Second",
148
- Gigabytes: "Gigabytes",
149
- Gigabytes_Second: "Gigabytes/Second",
150
- Kilobits: "Kilobits",
151
- Kilobits_Second: "Kilobits/Second",
152
- Kilobytes: "Kilobytes",
153
- Kilobytes_Second: "Kilobytes/Second",
154
- Megabits: "Megabits",
155
- Megabits_Second: "Megabits/Second",
156
- Megabytes: "Megabytes",
157
- Megabytes_Second: "Megabytes/Second",
158
- Microseconds: "Microseconds",
159
- Milliseconds: "Milliseconds",
160
- None: "None",
161
- Percent: "Percent",
162
- Seconds: "Seconds",
163
- Terabits: "Terabits",
164
- Terabits_Second: "Terabits/Second",
165
- Terabytes: "Terabytes",
166
- Terabytes_Second: "Terabytes/Second",
167
- };
168
- const AnomalyDetectorStateValue = {
169
- PENDING_TRAINING: "PENDING_TRAINING",
170
- TRAINED: "TRAINED",
171
- TRAINED_INSUFFICIENT_DATA: "TRAINED_INSUFFICIENT_DATA",
172
- };
173
- const AnomalyDetectorType = {
174
- METRIC_MATH: "METRIC_MATH",
175
- SINGLE_METRIC: "SINGLE_METRIC",
176
- };
177
- const ComparisonOperator = {
178
- GreaterThanOrEqualToThreshold: "GreaterThanOrEqualToThreshold",
179
- GreaterThanThreshold: "GreaterThanThreshold",
180
- GreaterThanUpperThreshold: "GreaterThanUpperThreshold",
181
- LessThanLowerOrGreaterThanUpperThreshold: "LessThanLowerOrGreaterThanUpperThreshold",
182
- LessThanLowerThreshold: "LessThanLowerThreshold",
183
- LessThanOrEqualToThreshold: "LessThanOrEqualToThreshold",
184
- LessThanThreshold: "LessThanThreshold",
185
- };
186
- const StateValue = {
187
- ALARM: "ALARM",
188
- INSUFFICIENT_DATA: "INSUFFICIENT_DATA",
189
- OK: "OK",
190
- };
191
123
  let ConcurrentModificationException$1 = class ConcurrentModificationException extends CloudWatchServiceException$1 {
192
124
  name = "ConcurrentModificationException";
193
125
  $fault = "client";
@@ -334,20 +266,6 @@ let InvalidNextToken$1 = class InvalidNextToken extends CloudWatchServiceExcepti
334
266
  Object.setPrototypeOf(this, InvalidNextToken.prototype);
335
267
  }
336
268
  };
337
- const ScanBy = {
338
- TIMESTAMP_ASCENDING: "TimestampAscending",
339
- TIMESTAMP_DESCENDING: "TimestampDescending",
340
- };
341
- const EvaluationState = {
342
- PARTIAL_DATA: "PARTIAL_DATA",
343
- };
344
- const Statistic = {
345
- Average: "Average",
346
- Maximum: "Maximum",
347
- Minimum: "Minimum",
348
- SampleCount: "SampleCount",
349
- Sum: "Sum",
350
- };
351
269
  let LimitExceededException$1 = class LimitExceededException extends CloudWatchServiceException$1 {
352
270
  name = "LimitExceededException";
353
271
  $fault = "client";
@@ -362,20 +280,6 @@ let LimitExceededException$1 = class LimitExceededException extends CloudWatchSe
362
280
  this.Message = opts.Message;
363
281
  }
364
282
  };
365
- const StatusCode = {
366
- COMPLETE: "Complete",
367
- FORBIDDEN: "Forbidden",
368
- INTERNAL_ERROR: "InternalError",
369
- PARTIAL_DATA: "PartialData",
370
- };
371
- const MetricStreamOutputFormat = {
372
- JSON: "json",
373
- OPEN_TELEMETRY_0_7: "opentelemetry0.7",
374
- OPEN_TELEMETRY_1_0: "opentelemetry1.0",
375
- };
376
- const RecentlyActive = {
377
- PT3H: "PT3H",
378
- };
379
283
  let LimitExceededFault$1 = class LimitExceededFault extends CloudWatchServiceException$1 {
380
284
  name = "LimitExceededFault";
381
285
  $fault = "client";
@@ -2318,6 +2222,103 @@ const waitUntilCompositeAlarmExists = async (params, input) => {
2318
2222
  return utilWaiter.checkExceptions(result);
2319
2223
  };
2320
2224
 
2225
+ const ActionsSuppressedBy = {
2226
+ Alarm: "Alarm",
2227
+ ExtensionPeriod: "ExtensionPeriod",
2228
+ WaitPeriod: "WaitPeriod",
2229
+ };
2230
+ const AlarmType = {
2231
+ CompositeAlarm: "CompositeAlarm",
2232
+ MetricAlarm: "MetricAlarm",
2233
+ };
2234
+ const HistoryItemType = {
2235
+ Action: "Action",
2236
+ AlarmContributorAction: "AlarmContributorAction",
2237
+ AlarmContributorStateUpdate: "AlarmContributorStateUpdate",
2238
+ ConfigurationUpdate: "ConfigurationUpdate",
2239
+ StateUpdate: "StateUpdate",
2240
+ };
2241
+ const StandardUnit = {
2242
+ Bits: "Bits",
2243
+ Bits_Second: "Bits/Second",
2244
+ Bytes: "Bytes",
2245
+ Bytes_Second: "Bytes/Second",
2246
+ Count: "Count",
2247
+ Count_Second: "Count/Second",
2248
+ Gigabits: "Gigabits",
2249
+ Gigabits_Second: "Gigabits/Second",
2250
+ Gigabytes: "Gigabytes",
2251
+ Gigabytes_Second: "Gigabytes/Second",
2252
+ Kilobits: "Kilobits",
2253
+ Kilobits_Second: "Kilobits/Second",
2254
+ Kilobytes: "Kilobytes",
2255
+ Kilobytes_Second: "Kilobytes/Second",
2256
+ Megabits: "Megabits",
2257
+ Megabits_Second: "Megabits/Second",
2258
+ Megabytes: "Megabytes",
2259
+ Megabytes_Second: "Megabytes/Second",
2260
+ Microseconds: "Microseconds",
2261
+ Milliseconds: "Milliseconds",
2262
+ None: "None",
2263
+ Percent: "Percent",
2264
+ Seconds: "Seconds",
2265
+ Terabits: "Terabits",
2266
+ Terabits_Second: "Terabits/Second",
2267
+ Terabytes: "Terabytes",
2268
+ Terabytes_Second: "Terabytes/Second",
2269
+ };
2270
+ const AnomalyDetectorStateValue = {
2271
+ PENDING_TRAINING: "PENDING_TRAINING",
2272
+ TRAINED: "TRAINED",
2273
+ TRAINED_INSUFFICIENT_DATA: "TRAINED_INSUFFICIENT_DATA",
2274
+ };
2275
+ const AnomalyDetectorType = {
2276
+ METRIC_MATH: "METRIC_MATH",
2277
+ SINGLE_METRIC: "SINGLE_METRIC",
2278
+ };
2279
+ const ComparisonOperator = {
2280
+ GreaterThanOrEqualToThreshold: "GreaterThanOrEqualToThreshold",
2281
+ GreaterThanThreshold: "GreaterThanThreshold",
2282
+ GreaterThanUpperThreshold: "GreaterThanUpperThreshold",
2283
+ LessThanLowerOrGreaterThanUpperThreshold: "LessThanLowerOrGreaterThanUpperThreshold",
2284
+ LessThanLowerThreshold: "LessThanLowerThreshold",
2285
+ LessThanOrEqualToThreshold: "LessThanOrEqualToThreshold",
2286
+ LessThanThreshold: "LessThanThreshold",
2287
+ };
2288
+ const StateValue = {
2289
+ ALARM: "ALARM",
2290
+ INSUFFICIENT_DATA: "INSUFFICIENT_DATA",
2291
+ OK: "OK",
2292
+ };
2293
+ const ScanBy = {
2294
+ TIMESTAMP_ASCENDING: "TimestampAscending",
2295
+ TIMESTAMP_DESCENDING: "TimestampDescending",
2296
+ };
2297
+ const EvaluationState = {
2298
+ PARTIAL_DATA: "PARTIAL_DATA",
2299
+ };
2300
+ const Statistic = {
2301
+ Average: "Average",
2302
+ Maximum: "Maximum",
2303
+ Minimum: "Minimum",
2304
+ SampleCount: "SampleCount",
2305
+ Sum: "Sum",
2306
+ };
2307
+ const StatusCode = {
2308
+ COMPLETE: "Complete",
2309
+ FORBIDDEN: "Forbidden",
2310
+ INTERNAL_ERROR: "InternalError",
2311
+ PARTIAL_DATA: "PartialData",
2312
+ };
2313
+ const MetricStreamOutputFormat = {
2314
+ JSON: "json",
2315
+ OPEN_TELEMETRY_0_7: "opentelemetry0.7",
2316
+ OPEN_TELEMETRY_1_0: "opentelemetry1.0",
2317
+ };
2318
+ const RecentlyActive = {
2319
+ PT3H: "PT3H",
2320
+ };
2321
+
2321
2322
  Object.defineProperty(exports, "$Command", {
2322
2323
  enumerable: true,
2323
2324
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -3,5 +3,6 @@ export * from "./CloudWatch";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
5
  export * from "./waiters";
6
- export * from "./models";
6
+ export * from "./models/enums";
7
+ export * from "./models/errors";
7
8
  export { CloudWatchServiceException } from "./models/CloudWatchServiceException";
@@ -0,0 +1,96 @@
1
+ export const ActionsSuppressedBy = {
2
+ Alarm: "Alarm",
3
+ ExtensionPeriod: "ExtensionPeriod",
4
+ WaitPeriod: "WaitPeriod",
5
+ };
6
+ export const AlarmType = {
7
+ CompositeAlarm: "CompositeAlarm",
8
+ MetricAlarm: "MetricAlarm",
9
+ };
10
+ export const HistoryItemType = {
11
+ Action: "Action",
12
+ AlarmContributorAction: "AlarmContributorAction",
13
+ AlarmContributorStateUpdate: "AlarmContributorStateUpdate",
14
+ ConfigurationUpdate: "ConfigurationUpdate",
15
+ StateUpdate: "StateUpdate",
16
+ };
17
+ export const StandardUnit = {
18
+ Bits: "Bits",
19
+ Bits_Second: "Bits/Second",
20
+ Bytes: "Bytes",
21
+ Bytes_Second: "Bytes/Second",
22
+ Count: "Count",
23
+ Count_Second: "Count/Second",
24
+ Gigabits: "Gigabits",
25
+ Gigabits_Second: "Gigabits/Second",
26
+ Gigabytes: "Gigabytes",
27
+ Gigabytes_Second: "Gigabytes/Second",
28
+ Kilobits: "Kilobits",
29
+ Kilobits_Second: "Kilobits/Second",
30
+ Kilobytes: "Kilobytes",
31
+ Kilobytes_Second: "Kilobytes/Second",
32
+ Megabits: "Megabits",
33
+ Megabits_Second: "Megabits/Second",
34
+ Megabytes: "Megabytes",
35
+ Megabytes_Second: "Megabytes/Second",
36
+ Microseconds: "Microseconds",
37
+ Milliseconds: "Milliseconds",
38
+ None: "None",
39
+ Percent: "Percent",
40
+ Seconds: "Seconds",
41
+ Terabits: "Terabits",
42
+ Terabits_Second: "Terabits/Second",
43
+ Terabytes: "Terabytes",
44
+ Terabytes_Second: "Terabytes/Second",
45
+ };
46
+ export const AnomalyDetectorStateValue = {
47
+ PENDING_TRAINING: "PENDING_TRAINING",
48
+ TRAINED: "TRAINED",
49
+ TRAINED_INSUFFICIENT_DATA: "TRAINED_INSUFFICIENT_DATA",
50
+ };
51
+ export const AnomalyDetectorType = {
52
+ METRIC_MATH: "METRIC_MATH",
53
+ SINGLE_METRIC: "SINGLE_METRIC",
54
+ };
55
+ export const ComparisonOperator = {
56
+ GreaterThanOrEqualToThreshold: "GreaterThanOrEqualToThreshold",
57
+ GreaterThanThreshold: "GreaterThanThreshold",
58
+ GreaterThanUpperThreshold: "GreaterThanUpperThreshold",
59
+ LessThanLowerOrGreaterThanUpperThreshold: "LessThanLowerOrGreaterThanUpperThreshold",
60
+ LessThanLowerThreshold: "LessThanLowerThreshold",
61
+ LessThanOrEqualToThreshold: "LessThanOrEqualToThreshold",
62
+ LessThanThreshold: "LessThanThreshold",
63
+ };
64
+ export const StateValue = {
65
+ ALARM: "ALARM",
66
+ INSUFFICIENT_DATA: "INSUFFICIENT_DATA",
67
+ OK: "OK",
68
+ };
69
+ export const ScanBy = {
70
+ TIMESTAMP_ASCENDING: "TimestampAscending",
71
+ TIMESTAMP_DESCENDING: "TimestampDescending",
72
+ };
73
+ export const EvaluationState = {
74
+ PARTIAL_DATA: "PARTIAL_DATA",
75
+ };
76
+ export const Statistic = {
77
+ Average: "Average",
78
+ Maximum: "Maximum",
79
+ Minimum: "Minimum",
80
+ SampleCount: "SampleCount",
81
+ Sum: "Sum",
82
+ };
83
+ export const StatusCode = {
84
+ COMPLETE: "Complete",
85
+ FORBIDDEN: "Forbidden",
86
+ INTERNAL_ERROR: "InternalError",
87
+ PARTIAL_DATA: "PartialData",
88
+ };
89
+ export const MetricStreamOutputFormat = {
90
+ JSON: "json",
91
+ OPEN_TELEMETRY_0_7: "opentelemetry0.7",
92
+ OPEN_TELEMETRY_1_0: "opentelemetry1.0",
93
+ };
94
+ export const RecentlyActive = {
95
+ PT3H: "PT3H",
96
+ };
@@ -0,0 +1,185 @@
1
+ import { CloudWatchServiceException as __BaseException } from "./CloudWatchServiceException";
2
+ export class ConcurrentModificationException extends __BaseException {
3
+ name = "ConcurrentModificationException";
4
+ $fault = "client";
5
+ Message;
6
+ constructor(opts) {
7
+ super({
8
+ name: "ConcurrentModificationException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
13
+ this.Message = opts.Message;
14
+ }
15
+ }
16
+ export class ConflictException extends __BaseException {
17
+ name = "ConflictException";
18
+ $fault = "client";
19
+ Message;
20
+ constructor(opts) {
21
+ super({
22
+ name: "ConflictException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ Object.setPrototypeOf(this, ConflictException.prototype);
27
+ this.Message = opts.Message;
28
+ }
29
+ }
30
+ export class DashboardInvalidInputError extends __BaseException {
31
+ name = "DashboardInvalidInputError";
32
+ $fault = "client";
33
+ dashboardValidationMessages;
34
+ constructor(opts) {
35
+ super({
36
+ name: "DashboardInvalidInputError",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, DashboardInvalidInputError.prototype);
41
+ this.dashboardValidationMessages = opts.dashboardValidationMessages;
42
+ }
43
+ }
44
+ export class DashboardNotFoundError extends __BaseException {
45
+ name = "DashboardNotFoundError";
46
+ $fault = "client";
47
+ constructor(opts) {
48
+ super({
49
+ name: "DashboardNotFoundError",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, DashboardNotFoundError.prototype);
54
+ }
55
+ }
56
+ export class ResourceNotFound extends __BaseException {
57
+ name = "ResourceNotFound";
58
+ $fault = "client";
59
+ constructor(opts) {
60
+ super({
61
+ name: "ResourceNotFound",
62
+ $fault: "client",
63
+ ...opts,
64
+ });
65
+ Object.setPrototypeOf(this, ResourceNotFound.prototype);
66
+ }
67
+ }
68
+ export class InternalServiceFault extends __BaseException {
69
+ name = "InternalServiceFault";
70
+ $fault = "server";
71
+ Message;
72
+ constructor(opts) {
73
+ super({
74
+ name: "InternalServiceFault",
75
+ $fault: "server",
76
+ ...opts,
77
+ });
78
+ Object.setPrototypeOf(this, InternalServiceFault.prototype);
79
+ this.Message = opts.Message;
80
+ }
81
+ }
82
+ export class InvalidParameterCombinationException extends __BaseException {
83
+ name = "InvalidParameterCombinationException";
84
+ $fault = "client";
85
+ constructor(opts) {
86
+ super({
87
+ name: "InvalidParameterCombinationException",
88
+ $fault: "client",
89
+ ...opts,
90
+ });
91
+ Object.setPrototypeOf(this, InvalidParameterCombinationException.prototype);
92
+ }
93
+ }
94
+ export class InvalidParameterValueException extends __BaseException {
95
+ name = "InvalidParameterValueException";
96
+ $fault = "client";
97
+ constructor(opts) {
98
+ super({
99
+ name: "InvalidParameterValueException",
100
+ $fault: "client",
101
+ ...opts,
102
+ });
103
+ Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
104
+ }
105
+ }
106
+ export class MissingRequiredParameterException extends __BaseException {
107
+ name = "MissingRequiredParameterException";
108
+ $fault = "client";
109
+ constructor(opts) {
110
+ super({
111
+ name: "MissingRequiredParameterException",
112
+ $fault: "client",
113
+ ...opts,
114
+ });
115
+ Object.setPrototypeOf(this, MissingRequiredParameterException.prototype);
116
+ }
117
+ }
118
+ export class ResourceNotFoundException extends __BaseException {
119
+ name = "ResourceNotFoundException";
120
+ $fault = "client";
121
+ ResourceType;
122
+ ResourceId;
123
+ Message;
124
+ constructor(opts) {
125
+ super({
126
+ name: "ResourceNotFoundException",
127
+ $fault: "client",
128
+ ...opts,
129
+ });
130
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
131
+ this.ResourceType = opts.ResourceType;
132
+ this.ResourceId = opts.ResourceId;
133
+ this.Message = opts.Message;
134
+ }
135
+ }
136
+ export class InvalidNextToken extends __BaseException {
137
+ name = "InvalidNextToken";
138
+ $fault = "client";
139
+ constructor(opts) {
140
+ super({
141
+ name: "InvalidNextToken",
142
+ $fault: "client",
143
+ ...opts,
144
+ });
145
+ Object.setPrototypeOf(this, InvalidNextToken.prototype);
146
+ }
147
+ }
148
+ export class LimitExceededException extends __BaseException {
149
+ name = "LimitExceededException";
150
+ $fault = "client";
151
+ Message;
152
+ constructor(opts) {
153
+ super({
154
+ name: "LimitExceededException",
155
+ $fault: "client",
156
+ ...opts,
157
+ });
158
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
159
+ this.Message = opts.Message;
160
+ }
161
+ }
162
+ export class LimitExceededFault extends __BaseException {
163
+ name = "LimitExceededFault";
164
+ $fault = "client";
165
+ constructor(opts) {
166
+ super({
167
+ name: "LimitExceededFault",
168
+ $fault: "client",
169
+ ...opts,
170
+ });
171
+ Object.setPrototypeOf(this, LimitExceededFault.prototype);
172
+ }
173
+ }
174
+ export class InvalidFormatFault extends __BaseException {
175
+ name = "InvalidFormatFault";
176
+ $fault = "client";
177
+ constructor(opts) {
178
+ super({
179
+ name: "InvalidFormatFault",
180
+ $fault: "client",
181
+ ...opts,
182
+ });
183
+ Object.setPrototypeOf(this, InvalidFormatFault.prototype);
184
+ }
185
+ }