@aws-sdk/client-internetmonitor 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.
@@ -41,13 +41,12 @@ class ConflictException extends InternetMonitorServiceException_1.InternetMonito
41
41
  }
42
42
  }
43
43
  exports.ConflictException = ConflictException;
44
- var MonitorConfigState;
45
- (function (MonitorConfigState) {
46
- MonitorConfigState["ACTIVE"] = "ACTIVE";
47
- MonitorConfigState["ERROR"] = "ERROR";
48
- MonitorConfigState["INACTIVE"] = "INACTIVE";
49
- MonitorConfigState["PENDING"] = "PENDING";
50
- })(MonitorConfigState = exports.MonitorConfigState || (exports.MonitorConfigState = {}));
44
+ exports.MonitorConfigState = {
45
+ ACTIVE: "ACTIVE",
46
+ ERROR: "ERROR",
47
+ INACTIVE: "INACTIVE",
48
+ PENDING: "PENDING",
49
+ };
51
50
  class InternalServerException extends InternetMonitorServiceException_1.InternetMonitorServiceException {
52
51
  constructor(opts) {
53
52
  super({
@@ -104,30 +103,26 @@ class ValidationException extends InternetMonitorServiceException_1.InternetMoni
104
103
  }
105
104
  }
106
105
  exports.ValidationException = ValidationException;
107
- var TriangulationEventType;
108
- (function (TriangulationEventType) {
109
- TriangulationEventType["AWS"] = "AWS";
110
- TriangulationEventType["INTERNET"] = "Internet";
111
- })(TriangulationEventType = exports.TriangulationEventType || (exports.TriangulationEventType = {}));
112
- var HealthEventStatus;
113
- (function (HealthEventStatus) {
114
- HealthEventStatus["ACTIVE"] = "ACTIVE";
115
- HealthEventStatus["RESOLVED"] = "RESOLVED";
116
- })(HealthEventStatus = exports.HealthEventStatus || (exports.HealthEventStatus = {}));
117
- var HealthEventImpactType;
118
- (function (HealthEventImpactType) {
119
- HealthEventImpactType["AVAILABILITY"] = "AVAILABILITY";
120
- HealthEventImpactType["PERFORMANCE"] = "PERFORMANCE";
121
- })(HealthEventImpactType = exports.HealthEventImpactType || (exports.HealthEventImpactType = {}));
122
- var MonitorProcessingStatusCode;
123
- (function (MonitorProcessingStatusCode) {
124
- MonitorProcessingStatusCode["COLLECTING_DATA"] = "COLLECTING_DATA";
125
- MonitorProcessingStatusCode["FAULT_ACCESS_CLOUDWATCH"] = "FAULT_ACCESS_CLOUDWATCH";
126
- MonitorProcessingStatusCode["FAULT_SERVICE"] = "FAULT_SERVICE";
127
- MonitorProcessingStatusCode["INACTIVE"] = "INACTIVE";
128
- MonitorProcessingStatusCode["INSUFFICIENT_DATA"] = "INSUFFICIENT_DATA";
129
- MonitorProcessingStatusCode["OK"] = "OK";
130
- })(MonitorProcessingStatusCode = exports.MonitorProcessingStatusCode || (exports.MonitorProcessingStatusCode = {}));
106
+ exports.TriangulationEventType = {
107
+ AWS: "AWS",
108
+ INTERNET: "Internet",
109
+ };
110
+ exports.HealthEventStatus = {
111
+ ACTIVE: "ACTIVE",
112
+ RESOLVED: "RESOLVED",
113
+ };
114
+ exports.HealthEventImpactType = {
115
+ AVAILABILITY: "AVAILABILITY",
116
+ PERFORMANCE: "PERFORMANCE",
117
+ };
118
+ exports.MonitorProcessingStatusCode = {
119
+ COLLECTING_DATA: "COLLECTING_DATA",
120
+ FAULT_ACCESS_CLOUDWATCH: "FAULT_ACCESS_CLOUDWATCH",
121
+ FAULT_SERVICE: "FAULT_SERVICE",
122
+ INACTIVE: "INACTIVE",
123
+ INSUFFICIENT_DATA: "INSUFFICIENT_DATA",
124
+ OK: "OK",
125
+ };
131
126
  class InternalServerErrorException extends InternetMonitorServiceException_1.InternetMonitorServiceException {
132
127
  constructor(opts) {
133
128
  super({
@@ -35,13 +35,12 @@ export class ConflictException extends __BaseException {
35
35
  Object.setPrototypeOf(this, ConflictException.prototype);
36
36
  }
37
37
  }
38
- export var MonitorConfigState;
39
- (function (MonitorConfigState) {
40
- MonitorConfigState["ACTIVE"] = "ACTIVE";
41
- MonitorConfigState["ERROR"] = "ERROR";
42
- MonitorConfigState["INACTIVE"] = "INACTIVE";
43
- MonitorConfigState["PENDING"] = "PENDING";
44
- })(MonitorConfigState || (MonitorConfigState = {}));
38
+ export const MonitorConfigState = {
39
+ ACTIVE: "ACTIVE",
40
+ ERROR: "ERROR",
41
+ INACTIVE: "INACTIVE",
42
+ PENDING: "PENDING",
43
+ };
45
44
  export class InternalServerException extends __BaseException {
46
45
  constructor(opts) {
47
46
  super({
@@ -94,30 +93,26 @@ export class ValidationException extends __BaseException {
94
93
  Object.setPrototypeOf(this, ValidationException.prototype);
95
94
  }
96
95
  }
97
- export var TriangulationEventType;
98
- (function (TriangulationEventType) {
99
- TriangulationEventType["AWS"] = "AWS";
100
- TriangulationEventType["INTERNET"] = "Internet";
101
- })(TriangulationEventType || (TriangulationEventType = {}));
102
- export var HealthEventStatus;
103
- (function (HealthEventStatus) {
104
- HealthEventStatus["ACTIVE"] = "ACTIVE";
105
- HealthEventStatus["RESOLVED"] = "RESOLVED";
106
- })(HealthEventStatus || (HealthEventStatus = {}));
107
- export var HealthEventImpactType;
108
- (function (HealthEventImpactType) {
109
- HealthEventImpactType["AVAILABILITY"] = "AVAILABILITY";
110
- HealthEventImpactType["PERFORMANCE"] = "PERFORMANCE";
111
- })(HealthEventImpactType || (HealthEventImpactType = {}));
112
- export var MonitorProcessingStatusCode;
113
- (function (MonitorProcessingStatusCode) {
114
- MonitorProcessingStatusCode["COLLECTING_DATA"] = "COLLECTING_DATA";
115
- MonitorProcessingStatusCode["FAULT_ACCESS_CLOUDWATCH"] = "FAULT_ACCESS_CLOUDWATCH";
116
- MonitorProcessingStatusCode["FAULT_SERVICE"] = "FAULT_SERVICE";
117
- MonitorProcessingStatusCode["INACTIVE"] = "INACTIVE";
118
- MonitorProcessingStatusCode["INSUFFICIENT_DATA"] = "INSUFFICIENT_DATA";
119
- MonitorProcessingStatusCode["OK"] = "OK";
120
- })(MonitorProcessingStatusCode || (MonitorProcessingStatusCode = {}));
96
+ export const TriangulationEventType = {
97
+ AWS: "AWS",
98
+ INTERNET: "Internet",
99
+ };
100
+ export const HealthEventStatus = {
101
+ ACTIVE: "ACTIVE",
102
+ RESOLVED: "RESOLVED",
103
+ };
104
+ export const HealthEventImpactType = {
105
+ AVAILABILITY: "AVAILABILITY",
106
+ PERFORMANCE: "PERFORMANCE",
107
+ };
108
+ export const MonitorProcessingStatusCode = {
109
+ COLLECTING_DATA: "COLLECTING_DATA",
110
+ FAULT_ACCESS_CLOUDWATCH: "FAULT_ACCESS_CLOUDWATCH",
111
+ FAULT_SERVICE: "FAULT_SERVICE",
112
+ INACTIVE: "INACTIVE",
113
+ INSUFFICIENT_DATA: "INSUFFICIENT_DATA",
114
+ OK: "OK",
115
+ };
121
116
  export class InternalServerErrorException extends __BaseException {
122
117
  constructor(opts) {
123
118
  super({
@@ -104,13 +104,18 @@ export interface CreateMonitorInput {
104
104
  }
105
105
  /**
106
106
  * @public
107
+ * @enum
107
108
  */
108
- export declare enum MonitorConfigState {
109
- ACTIVE = "ACTIVE",
110
- ERROR = "ERROR",
111
- INACTIVE = "INACTIVE",
112
- PENDING = "PENDING"
113
- }
109
+ export declare const MonitorConfigState: {
110
+ readonly ACTIVE: "ACTIVE";
111
+ readonly ERROR: "ERROR";
112
+ readonly INACTIVE: "INACTIVE";
113
+ readonly PENDING: "PENDING";
114
+ };
115
+ /**
116
+ * @public
117
+ */
118
+ export type MonitorConfigState = (typeof MonitorConfigState)[keyof typeof MonitorConfigState];
114
119
  /**
115
120
  * @public
116
121
  */
@@ -220,11 +225,16 @@ export interface Network {
220
225
  }
221
226
  /**
222
227
  * @public
228
+ * @enum
223
229
  */
224
- export declare enum TriangulationEventType {
225
- AWS = "AWS",
226
- INTERNET = "Internet"
227
- }
230
+ export declare const TriangulationEventType: {
231
+ readonly AWS: "AWS";
232
+ readonly INTERNET: "Internet";
233
+ };
234
+ /**
235
+ * @public
236
+ */
237
+ export type TriangulationEventType = (typeof TriangulationEventType)[keyof typeof TriangulationEventType];
228
238
  /**
229
239
  * @public
230
240
  * <p>Information about the network impairment for a specific network measured by Amazon CloudWatch Internet Monitor.</p>
@@ -330,11 +340,16 @@ export interface InternetHealth {
330
340
  }
331
341
  /**
332
342
  * @public
343
+ * @enum
333
344
  */
334
- export declare enum HealthEventStatus {
335
- ACTIVE = "ACTIVE",
336
- RESOLVED = "RESOLVED"
337
- }
345
+ export declare const HealthEventStatus: {
346
+ readonly ACTIVE: "ACTIVE";
347
+ readonly RESOLVED: "RESOLVED";
348
+ };
349
+ /**
350
+ * @public
351
+ */
352
+ export type HealthEventStatus = (typeof HealthEventStatus)[keyof typeof HealthEventStatus];
338
353
  /**
339
354
  * @public
340
355
  * <p>Information about a location impacted by a health event in Amazon CloudWatch Internet Monitor.</p>
@@ -410,11 +425,16 @@ export interface ImpactedLocation {
410
425
  }
411
426
  /**
412
427
  * @public
428
+ * @enum
413
429
  */
414
- export declare enum HealthEventImpactType {
415
- AVAILABILITY = "AVAILABILITY",
416
- PERFORMANCE = "PERFORMANCE"
417
- }
430
+ export declare const HealthEventImpactType: {
431
+ readonly AVAILABILITY: "AVAILABILITY";
432
+ readonly PERFORMANCE: "PERFORMANCE";
433
+ };
434
+ /**
435
+ * @public
436
+ */
437
+ export type HealthEventImpactType = (typeof HealthEventImpactType)[keyof typeof HealthEventImpactType];
418
438
  /**
419
439
  * @public
420
440
  */
@@ -471,15 +491,20 @@ export interface GetMonitorInput {
471
491
  }
472
492
  /**
473
493
  * @public
494
+ * @enum
474
495
  */
475
- export declare enum MonitorProcessingStatusCode {
476
- COLLECTING_DATA = "COLLECTING_DATA",
477
- FAULT_ACCESS_CLOUDWATCH = "FAULT_ACCESS_CLOUDWATCH",
478
- FAULT_SERVICE = "FAULT_SERVICE",
479
- INACTIVE = "INACTIVE",
480
- INSUFFICIENT_DATA = "INSUFFICIENT_DATA",
481
- OK = "OK"
482
- }
496
+ export declare const MonitorProcessingStatusCode: {
497
+ readonly COLLECTING_DATA: "COLLECTING_DATA";
498
+ readonly FAULT_ACCESS_CLOUDWATCH: "FAULT_ACCESS_CLOUDWATCH";
499
+ readonly FAULT_SERVICE: "FAULT_SERVICE";
500
+ readonly INACTIVE: "INACTIVE";
501
+ readonly INSUFFICIENT_DATA: "INSUFFICIENT_DATA";
502
+ readonly OK: "OK";
503
+ };
504
+ /**
505
+ * @public
506
+ */
507
+ export type MonitorProcessingStatusCode = (typeof MonitorProcessingStatusCode)[keyof typeof MonitorProcessingStatusCode];
483
508
  /**
484
509
  * @public
485
510
  */
@@ -31,12 +31,14 @@ export interface CreateMonitorInput {
31
31
  Tags?: Record<string, string>;
32
32
  MaxCityNetworksToMonitor: number | undefined;
33
33
  }
34
- export declare enum MonitorConfigState {
35
- ACTIVE = "ACTIVE",
36
- ERROR = "ERROR",
37
- INACTIVE = "INACTIVE",
38
- PENDING = "PENDING",
39
- }
34
+ export declare const MonitorConfigState: {
35
+ readonly ACTIVE: "ACTIVE";
36
+ readonly ERROR: "ERROR";
37
+ readonly INACTIVE: "INACTIVE";
38
+ readonly PENDING: "PENDING";
39
+ };
40
+ export type MonitorConfigState =
41
+ (typeof MonitorConfigState)[keyof typeof MonitorConfigState];
40
42
  export interface CreateMonitorOutput {
41
43
  Arn: string | undefined;
42
44
  Status: MonitorConfigState | string | undefined;
@@ -85,10 +87,12 @@ export interface Network {
85
87
  ASName: string | undefined;
86
88
  ASNumber: number | undefined;
87
89
  }
88
- export declare enum TriangulationEventType {
89
- AWS = "AWS",
90
- INTERNET = "Internet",
91
- }
90
+ export declare const TriangulationEventType: {
91
+ readonly AWS: "AWS";
92
+ readonly INTERNET: "Internet";
93
+ };
94
+ export type TriangulationEventType =
95
+ (typeof TriangulationEventType)[keyof typeof TriangulationEventType];
92
96
  export interface NetworkImpairment {
93
97
  Networks: Network[] | undefined;
94
98
  AsPath: Network[] | undefined;
@@ -109,10 +113,12 @@ export interface InternetHealth {
109
113
  Availability?: AvailabilityMeasurement;
110
114
  Performance?: PerformanceMeasurement;
111
115
  }
112
- export declare enum HealthEventStatus {
113
- ACTIVE = "ACTIVE",
114
- RESOLVED = "RESOLVED",
115
- }
116
+ export declare const HealthEventStatus: {
117
+ readonly ACTIVE: "ACTIVE";
118
+ readonly RESOLVED: "RESOLVED";
119
+ };
120
+ export type HealthEventStatus =
121
+ (typeof HealthEventStatus)[keyof typeof HealthEventStatus];
116
122
  export interface ImpactedLocation {
117
123
  ASName: string | undefined;
118
124
  ASNumber: number | undefined;
@@ -129,10 +135,12 @@ export interface ImpactedLocation {
129
135
  CausedBy?: NetworkImpairment;
130
136
  InternetHealth?: InternetHealth;
131
137
  }
132
- export declare enum HealthEventImpactType {
133
- AVAILABILITY = "AVAILABILITY",
134
- PERFORMANCE = "PERFORMANCE",
135
- }
138
+ export declare const HealthEventImpactType: {
139
+ readonly AVAILABILITY: "AVAILABILITY";
140
+ readonly PERFORMANCE: "PERFORMANCE";
141
+ };
142
+ export type HealthEventImpactType =
143
+ (typeof HealthEventImpactType)[keyof typeof HealthEventImpactType];
136
144
  export interface GetHealthEventOutput {
137
145
  EventArn: string | undefined;
138
146
  EventId: string | undefined;
@@ -148,14 +156,16 @@ export interface GetHealthEventOutput {
148
156
  export interface GetMonitorInput {
149
157
  MonitorName: string | undefined;
150
158
  }
151
- export declare enum MonitorProcessingStatusCode {
152
- COLLECTING_DATA = "COLLECTING_DATA",
153
- FAULT_ACCESS_CLOUDWATCH = "FAULT_ACCESS_CLOUDWATCH",
154
- FAULT_SERVICE = "FAULT_SERVICE",
155
- INACTIVE = "INACTIVE",
156
- INSUFFICIENT_DATA = "INSUFFICIENT_DATA",
157
- OK = "OK",
158
- }
159
+ export declare const MonitorProcessingStatusCode: {
160
+ readonly COLLECTING_DATA: "COLLECTING_DATA";
161
+ readonly FAULT_ACCESS_CLOUDWATCH: "FAULT_ACCESS_CLOUDWATCH";
162
+ readonly FAULT_SERVICE: "FAULT_SERVICE";
163
+ readonly INACTIVE: "INACTIVE";
164
+ readonly INSUFFICIENT_DATA: "INSUFFICIENT_DATA";
165
+ readonly OK: "OK";
166
+ };
167
+ export type MonitorProcessingStatusCode =
168
+ (typeof MonitorProcessingStatusCode)[keyof typeof MonitorProcessingStatusCode];
159
169
  export interface GetMonitorOutput {
160
170
  MonitorName: string | undefined;
161
171
  MonitorArn: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-internetmonitor",
3
3
  "description": "AWS SDK for JavaScript Internetmonitor 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,43 +21,43 @@
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",
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
56
  "tslib": "^2.5.0",
57
57
  "uuid": "^8.3.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
60
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
61
61
  "@tsconfig/node14": "1.0.3",
62
62
  "@types/node": "^14.14.31",
63
63
  "@types/uuid": "^8.3.0",