@aws-sdk/client-internetmonitor 3.490.0 → 3.495.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/InternetMonitor.js +1 -39
- package/dist-cjs/InternetMonitorClient.js +1 -43
- package/dist-cjs/commands/CreateMonitorCommand.js +1 -28
- package/dist-cjs/commands/DeleteMonitorCommand.js +1 -28
- package/dist-cjs/commands/GetHealthEventCommand.js +1 -28
- package/dist-cjs/commands/GetMonitorCommand.js +1 -28
- package/dist-cjs/commands/GetQueryResultsCommand.js +1 -28
- package/dist-cjs/commands/GetQueryStatusCommand.js +1 -28
- package/dist-cjs/commands/ListHealthEventsCommand.js +1 -28
- package/dist-cjs/commands/ListMonitorsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/StartQueryCommand.js +1 -28
- package/dist-cjs/commands/StopQueryCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateMonitorCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -17
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1877 -11
- package/dist-cjs/models/InternetMonitorServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -207
- package/dist-cjs/pagination/GetQueryResultsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListHealthEventsPaginator.js +1 -7
- package/dist-cjs/pagination/ListMonitorsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -7
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1167
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,1878 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
BadRequestException: () => BadRequestException,
|
|
26
|
+
ConflictException: () => ConflictException,
|
|
27
|
+
CreateMonitorCommand: () => CreateMonitorCommand,
|
|
28
|
+
DeleteMonitorCommand: () => DeleteMonitorCommand,
|
|
29
|
+
GetHealthEventCommand: () => GetHealthEventCommand,
|
|
30
|
+
GetMonitorCommand: () => GetMonitorCommand,
|
|
31
|
+
GetQueryResultsCommand: () => GetQueryResultsCommand,
|
|
32
|
+
GetQueryStatusCommand: () => GetQueryStatusCommand,
|
|
33
|
+
HealthEventImpactType: () => HealthEventImpactType,
|
|
34
|
+
HealthEventStatus: () => HealthEventStatus,
|
|
35
|
+
InternalServerErrorException: () => InternalServerErrorException,
|
|
36
|
+
InternalServerException: () => InternalServerException,
|
|
37
|
+
InternetMonitor: () => InternetMonitor,
|
|
38
|
+
InternetMonitorClient: () => InternetMonitorClient,
|
|
39
|
+
InternetMonitorServiceException: () => InternetMonitorServiceException,
|
|
40
|
+
LimitExceededException: () => LimitExceededException,
|
|
41
|
+
ListHealthEventsCommand: () => ListHealthEventsCommand,
|
|
42
|
+
ListMonitorsCommand: () => ListMonitorsCommand,
|
|
43
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
44
|
+
LocalHealthEventsConfigStatus: () => LocalHealthEventsConfigStatus,
|
|
45
|
+
LogDeliveryStatus: () => LogDeliveryStatus,
|
|
46
|
+
MonitorConfigState: () => MonitorConfigState,
|
|
47
|
+
MonitorProcessingStatusCode: () => MonitorProcessingStatusCode,
|
|
48
|
+
NotFoundException: () => NotFoundException,
|
|
49
|
+
Operator: () => Operator,
|
|
50
|
+
QueryStatus: () => QueryStatus,
|
|
51
|
+
QueryType: () => QueryType,
|
|
52
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
53
|
+
StartQueryCommand: () => StartQueryCommand,
|
|
54
|
+
StopQueryCommand: () => StopQueryCommand,
|
|
55
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
56
|
+
ThrottlingException: () => ThrottlingException,
|
|
57
|
+
TooManyRequestsException: () => TooManyRequestsException,
|
|
58
|
+
TriangulationEventType: () => TriangulationEventType,
|
|
59
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
60
|
+
UpdateMonitorCommand: () => UpdateMonitorCommand,
|
|
61
|
+
ValidationException: () => ValidationException,
|
|
62
|
+
__Client: () => import_smithy_client.Client,
|
|
63
|
+
paginateGetQueryResults: () => paginateGetQueryResults,
|
|
64
|
+
paginateListHealthEvents: () => paginateListHealthEvents,
|
|
65
|
+
paginateListMonitors: () => paginateListMonitors
|
|
66
|
+
});
|
|
67
|
+
module.exports = __toCommonJS(src_exports);
|
|
68
|
+
|
|
69
|
+
// src/InternetMonitorClient.ts
|
|
70
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
71
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
72
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
73
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
74
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
75
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
76
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
77
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
78
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
// src/endpoint/EndpointParameters.ts
|
|
82
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
83
|
+
return {
|
|
84
|
+
...options,
|
|
85
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
86
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
87
|
+
defaultSigningName: "internetmonitor"
|
|
88
|
+
};
|
|
89
|
+
}, "resolveClientEndpointParameters");
|
|
90
|
+
var commonParams = {
|
|
91
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
92
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
93
|
+
Region: { type: "builtInParams", name: "region" },
|
|
94
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
// src/InternetMonitorClient.ts
|
|
98
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
99
|
+
|
|
100
|
+
// src/runtimeExtensions.ts
|
|
101
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
102
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
103
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
104
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
105
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
106
|
+
const extensionConfiguration = {
|
|
107
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
108
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
109
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
110
|
+
};
|
|
111
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
112
|
+
return {
|
|
113
|
+
...runtimeConfig,
|
|
114
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
115
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
116
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
117
|
+
};
|
|
118
|
+
}, "resolveRuntimeExtensions");
|
|
119
|
+
|
|
120
|
+
// src/InternetMonitorClient.ts
|
|
121
|
+
var _InternetMonitorClient = class _InternetMonitorClient extends import_smithy_client.Client {
|
|
122
|
+
constructor(...[configuration]) {
|
|
123
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
124
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
125
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
126
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
127
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
128
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
129
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
130
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
131
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
132
|
+
super(_config_8);
|
|
133
|
+
this.config = _config_8;
|
|
134
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
135
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
136
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
137
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
138
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
139
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
140
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
144
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
145
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
146
|
+
*/
|
|
147
|
+
destroy() {
|
|
148
|
+
super.destroy();
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
__name(_InternetMonitorClient, "InternetMonitorClient");
|
|
152
|
+
var InternetMonitorClient = _InternetMonitorClient;
|
|
153
|
+
|
|
154
|
+
// src/InternetMonitor.ts
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
// src/commands/CreateMonitorCommand.ts
|
|
158
|
+
|
|
159
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
160
|
+
|
|
161
|
+
var import_types = require("@smithy/types");
|
|
162
|
+
|
|
163
|
+
// src/protocols/Aws_restJson1.ts
|
|
164
|
+
var import_core = require("@smithy/core");
|
|
165
|
+
|
|
166
|
+
var import_uuid = require("uuid");
|
|
167
|
+
|
|
168
|
+
// src/models/InternetMonitorServiceException.ts
|
|
169
|
+
|
|
170
|
+
var _InternetMonitorServiceException = class _InternetMonitorServiceException extends import_smithy_client.ServiceException {
|
|
171
|
+
/**
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
174
|
+
constructor(options) {
|
|
175
|
+
super(options);
|
|
176
|
+
Object.setPrototypeOf(this, _InternetMonitorServiceException.prototype);
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
__name(_InternetMonitorServiceException, "InternetMonitorServiceException");
|
|
180
|
+
var InternetMonitorServiceException = _InternetMonitorServiceException;
|
|
181
|
+
|
|
182
|
+
// src/models/models_0.ts
|
|
183
|
+
var _AccessDeniedException = class _AccessDeniedException extends InternetMonitorServiceException {
|
|
184
|
+
/**
|
|
185
|
+
* @internal
|
|
186
|
+
*/
|
|
187
|
+
constructor(opts) {
|
|
188
|
+
super({
|
|
189
|
+
name: "AccessDeniedException",
|
|
190
|
+
$fault: "client",
|
|
191
|
+
...opts
|
|
192
|
+
});
|
|
193
|
+
this.name = "AccessDeniedException";
|
|
194
|
+
this.$fault = "client";
|
|
195
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
199
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
200
|
+
var _BadRequestException = class _BadRequestException extends InternetMonitorServiceException {
|
|
201
|
+
/**
|
|
202
|
+
* @internal
|
|
203
|
+
*/
|
|
204
|
+
constructor(opts) {
|
|
205
|
+
super({
|
|
206
|
+
name: "BadRequestException",
|
|
207
|
+
$fault: "client",
|
|
208
|
+
...opts
|
|
209
|
+
});
|
|
210
|
+
this.name = "BadRequestException";
|
|
211
|
+
this.$fault = "client";
|
|
212
|
+
Object.setPrototypeOf(this, _BadRequestException.prototype);
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
__name(_BadRequestException, "BadRequestException");
|
|
216
|
+
var BadRequestException = _BadRequestException;
|
|
217
|
+
var _ConflictException = class _ConflictException extends InternetMonitorServiceException {
|
|
218
|
+
/**
|
|
219
|
+
* @internal
|
|
220
|
+
*/
|
|
221
|
+
constructor(opts) {
|
|
222
|
+
super({
|
|
223
|
+
name: "ConflictException",
|
|
224
|
+
$fault: "client",
|
|
225
|
+
...opts
|
|
226
|
+
});
|
|
227
|
+
this.name = "ConflictException";
|
|
228
|
+
this.$fault = "client";
|
|
229
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
__name(_ConflictException, "ConflictException");
|
|
233
|
+
var ConflictException = _ConflictException;
|
|
234
|
+
var LocalHealthEventsConfigStatus = {
|
|
235
|
+
DISABLED: "DISABLED",
|
|
236
|
+
ENABLED: "ENABLED"
|
|
237
|
+
};
|
|
238
|
+
var LogDeliveryStatus = {
|
|
239
|
+
DISABLED: "DISABLED",
|
|
240
|
+
ENABLED: "ENABLED"
|
|
241
|
+
};
|
|
242
|
+
var MonitorConfigState = {
|
|
243
|
+
ACTIVE: "ACTIVE",
|
|
244
|
+
ERROR: "ERROR",
|
|
245
|
+
INACTIVE: "INACTIVE",
|
|
246
|
+
PENDING: "PENDING"
|
|
247
|
+
};
|
|
248
|
+
var _InternalServerException = class _InternalServerException extends InternetMonitorServiceException {
|
|
249
|
+
/**
|
|
250
|
+
* @internal
|
|
251
|
+
*/
|
|
252
|
+
constructor(opts) {
|
|
253
|
+
super({
|
|
254
|
+
name: "InternalServerException",
|
|
255
|
+
$fault: "server",
|
|
256
|
+
...opts
|
|
257
|
+
});
|
|
258
|
+
this.name = "InternalServerException";
|
|
259
|
+
this.$fault = "server";
|
|
260
|
+
this.$retryable = {};
|
|
261
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
__name(_InternalServerException, "InternalServerException");
|
|
265
|
+
var InternalServerException = _InternalServerException;
|
|
266
|
+
var _LimitExceededException = class _LimitExceededException extends InternetMonitorServiceException {
|
|
267
|
+
/**
|
|
268
|
+
* @internal
|
|
269
|
+
*/
|
|
270
|
+
constructor(opts) {
|
|
271
|
+
super({
|
|
272
|
+
name: "LimitExceededException",
|
|
273
|
+
$fault: "client",
|
|
274
|
+
...opts
|
|
275
|
+
});
|
|
276
|
+
this.name = "LimitExceededException";
|
|
277
|
+
this.$fault = "client";
|
|
278
|
+
Object.setPrototypeOf(this, _LimitExceededException.prototype);
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
__name(_LimitExceededException, "LimitExceededException");
|
|
282
|
+
var LimitExceededException = _LimitExceededException;
|
|
283
|
+
var _ThrottlingException = class _ThrottlingException extends InternetMonitorServiceException {
|
|
284
|
+
/**
|
|
285
|
+
* @internal
|
|
286
|
+
*/
|
|
287
|
+
constructor(opts) {
|
|
288
|
+
super({
|
|
289
|
+
name: "ThrottlingException",
|
|
290
|
+
$fault: "client",
|
|
291
|
+
...opts
|
|
292
|
+
});
|
|
293
|
+
this.name = "ThrottlingException";
|
|
294
|
+
this.$fault = "client";
|
|
295
|
+
this.$retryable = {
|
|
296
|
+
throttling: true
|
|
297
|
+
};
|
|
298
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
302
|
+
var ThrottlingException = _ThrottlingException;
|
|
303
|
+
var _ValidationException = class _ValidationException extends InternetMonitorServiceException {
|
|
304
|
+
/**
|
|
305
|
+
* @internal
|
|
306
|
+
*/
|
|
307
|
+
constructor(opts) {
|
|
308
|
+
super({
|
|
309
|
+
name: "ValidationException",
|
|
310
|
+
$fault: "client",
|
|
311
|
+
...opts
|
|
312
|
+
});
|
|
313
|
+
this.name = "ValidationException";
|
|
314
|
+
this.$fault = "client";
|
|
315
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
__name(_ValidationException, "ValidationException");
|
|
319
|
+
var ValidationException = _ValidationException;
|
|
320
|
+
var Operator = {
|
|
321
|
+
EQUALS: "EQUALS",
|
|
322
|
+
NOT_EQUALS: "NOT_EQUALS"
|
|
323
|
+
};
|
|
324
|
+
var TriangulationEventType = {
|
|
325
|
+
AWS: "AWS",
|
|
326
|
+
INTERNET: "Internet"
|
|
327
|
+
};
|
|
328
|
+
var HealthEventStatus = {
|
|
329
|
+
ACTIVE: "ACTIVE",
|
|
330
|
+
RESOLVED: "RESOLVED"
|
|
331
|
+
};
|
|
332
|
+
var HealthEventImpactType = {
|
|
333
|
+
AVAILABILITY: "AVAILABILITY",
|
|
334
|
+
LOCAL_AVAILABILITY: "LOCAL_AVAILABILITY",
|
|
335
|
+
LOCAL_PERFORMANCE: "LOCAL_PERFORMANCE",
|
|
336
|
+
PERFORMANCE: "PERFORMANCE"
|
|
337
|
+
};
|
|
338
|
+
var MonitorProcessingStatusCode = {
|
|
339
|
+
COLLECTING_DATA: "COLLECTING_DATA",
|
|
340
|
+
FAULT_ACCESS_CLOUDWATCH: "FAULT_ACCESS_CLOUDWATCH",
|
|
341
|
+
FAULT_SERVICE: "FAULT_SERVICE",
|
|
342
|
+
INACTIVE: "INACTIVE",
|
|
343
|
+
INSUFFICIENT_DATA: "INSUFFICIENT_DATA",
|
|
344
|
+
OK: "OK"
|
|
345
|
+
};
|
|
346
|
+
var QueryStatus = {
|
|
347
|
+
CANCELED: "CANCELED",
|
|
348
|
+
FAILED: "FAILED",
|
|
349
|
+
QUEUED: "QUEUED",
|
|
350
|
+
RUNNING: "RUNNING",
|
|
351
|
+
SUCCEEDED: "SUCCEEDED"
|
|
352
|
+
};
|
|
353
|
+
var _InternalServerErrorException = class _InternalServerErrorException extends InternetMonitorServiceException {
|
|
354
|
+
/**
|
|
355
|
+
* @internal
|
|
356
|
+
*/
|
|
357
|
+
constructor(opts) {
|
|
358
|
+
super({
|
|
359
|
+
name: "InternalServerErrorException",
|
|
360
|
+
$fault: "server",
|
|
361
|
+
...opts
|
|
362
|
+
});
|
|
363
|
+
this.name = "InternalServerErrorException";
|
|
364
|
+
this.$fault = "server";
|
|
365
|
+
this.$retryable = {};
|
|
366
|
+
Object.setPrototypeOf(this, _InternalServerErrorException.prototype);
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
__name(_InternalServerErrorException, "InternalServerErrorException");
|
|
370
|
+
var InternalServerErrorException = _InternalServerErrorException;
|
|
371
|
+
var _NotFoundException = class _NotFoundException extends InternetMonitorServiceException {
|
|
372
|
+
/**
|
|
373
|
+
* @internal
|
|
374
|
+
*/
|
|
375
|
+
constructor(opts) {
|
|
376
|
+
super({
|
|
377
|
+
name: "NotFoundException",
|
|
378
|
+
$fault: "client",
|
|
379
|
+
...opts
|
|
380
|
+
});
|
|
381
|
+
this.name = "NotFoundException";
|
|
382
|
+
this.$fault = "client";
|
|
383
|
+
Object.setPrototypeOf(this, _NotFoundException.prototype);
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
__name(_NotFoundException, "NotFoundException");
|
|
387
|
+
var NotFoundException = _NotFoundException;
|
|
388
|
+
var _TooManyRequestsException = class _TooManyRequestsException extends InternetMonitorServiceException {
|
|
389
|
+
/**
|
|
390
|
+
* @internal
|
|
391
|
+
*/
|
|
392
|
+
constructor(opts) {
|
|
393
|
+
super({
|
|
394
|
+
name: "TooManyRequestsException",
|
|
395
|
+
$fault: "client",
|
|
396
|
+
...opts
|
|
397
|
+
});
|
|
398
|
+
this.name = "TooManyRequestsException";
|
|
399
|
+
this.$fault = "client";
|
|
400
|
+
this.$retryable = {
|
|
401
|
+
throttling: true
|
|
402
|
+
};
|
|
403
|
+
Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
|
|
404
|
+
}
|
|
405
|
+
};
|
|
406
|
+
__name(_TooManyRequestsException, "TooManyRequestsException");
|
|
407
|
+
var TooManyRequestsException = _TooManyRequestsException;
|
|
408
|
+
var QueryType = {
|
|
409
|
+
MEASUREMENTS: "MEASUREMENTS",
|
|
410
|
+
TOP_LOCATIONS: "TOP_LOCATIONS",
|
|
411
|
+
TOP_LOCATION_DETAILS: "TOP_LOCATION_DETAILS"
|
|
412
|
+
};
|
|
413
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends InternetMonitorServiceException {
|
|
414
|
+
/**
|
|
415
|
+
* @internal
|
|
416
|
+
*/
|
|
417
|
+
constructor(opts) {
|
|
418
|
+
super({
|
|
419
|
+
name: "ResourceNotFoundException",
|
|
420
|
+
$fault: "client",
|
|
421
|
+
...opts
|
|
422
|
+
});
|
|
423
|
+
this.name = "ResourceNotFoundException";
|
|
424
|
+
this.$fault = "client";
|
|
425
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
429
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
430
|
+
|
|
431
|
+
// src/protocols/Aws_restJson1.ts
|
|
432
|
+
var se_CreateMonitorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
433
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
434
|
+
const headers = {
|
|
435
|
+
"content-type": "application/json"
|
|
436
|
+
};
|
|
437
|
+
b.bp("/v20210603/Monitors");
|
|
438
|
+
let body;
|
|
439
|
+
body = JSON.stringify(
|
|
440
|
+
(0, import_smithy_client.take)(input, {
|
|
441
|
+
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
442
|
+
HealthEventsConfig: (_) => se_HealthEventsConfig(_, context),
|
|
443
|
+
InternetMeasurementsLogDelivery: (_) => (0, import_smithy_client._json)(_),
|
|
444
|
+
MaxCityNetworksToMonitor: [],
|
|
445
|
+
MonitorName: [],
|
|
446
|
+
Resources: (_) => (0, import_smithy_client._json)(_),
|
|
447
|
+
Tags: (_) => (0, import_smithy_client._json)(_),
|
|
448
|
+
TrafficPercentageToMonitor: []
|
|
449
|
+
})
|
|
450
|
+
);
|
|
451
|
+
b.m("POST").h(headers).b(body);
|
|
452
|
+
return b.build();
|
|
453
|
+
}, "se_CreateMonitorCommand");
|
|
454
|
+
var se_DeleteMonitorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
455
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
456
|
+
const headers = {};
|
|
457
|
+
b.bp("/v20210603/Monitors/{MonitorName}");
|
|
458
|
+
b.p("MonitorName", () => input.MonitorName, "{MonitorName}", false);
|
|
459
|
+
let body;
|
|
460
|
+
b.m("DELETE").h(headers).b(body);
|
|
461
|
+
return b.build();
|
|
462
|
+
}, "se_DeleteMonitorCommand");
|
|
463
|
+
var se_GetHealthEventCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
464
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
465
|
+
const headers = {};
|
|
466
|
+
b.bp("/v20210603/Monitors/{MonitorName}/HealthEvents/{EventId}");
|
|
467
|
+
b.p("MonitorName", () => input.MonitorName, "{MonitorName}", false);
|
|
468
|
+
b.p("EventId", () => input.EventId, "{EventId}", false);
|
|
469
|
+
let body;
|
|
470
|
+
b.m("GET").h(headers).b(body);
|
|
471
|
+
return b.build();
|
|
472
|
+
}, "se_GetHealthEventCommand");
|
|
473
|
+
var se_GetMonitorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
474
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
475
|
+
const headers = {};
|
|
476
|
+
b.bp("/v20210603/Monitors/{MonitorName}");
|
|
477
|
+
b.p("MonitorName", () => input.MonitorName, "{MonitorName}", false);
|
|
478
|
+
let body;
|
|
479
|
+
b.m("GET").h(headers).b(body);
|
|
480
|
+
return b.build();
|
|
481
|
+
}, "se_GetMonitorCommand");
|
|
482
|
+
var se_GetQueryResultsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
483
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
484
|
+
const headers = {};
|
|
485
|
+
b.bp("/v20210603/Monitors/{MonitorName}/Queries/{QueryId}/Results");
|
|
486
|
+
b.p("MonitorName", () => input.MonitorName, "{MonitorName}", false);
|
|
487
|
+
b.p("QueryId", () => input.QueryId, "{QueryId}", false);
|
|
488
|
+
const query = (0, import_smithy_client.map)({
|
|
489
|
+
[_NT]: [, input[_NT]],
|
|
490
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
|
|
491
|
+
});
|
|
492
|
+
let body;
|
|
493
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
494
|
+
return b.build();
|
|
495
|
+
}, "se_GetQueryResultsCommand");
|
|
496
|
+
var se_GetQueryStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
497
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
498
|
+
const headers = {};
|
|
499
|
+
b.bp("/v20210603/Monitors/{MonitorName}/Queries/{QueryId}/Status");
|
|
500
|
+
b.p("MonitorName", () => input.MonitorName, "{MonitorName}", false);
|
|
501
|
+
b.p("QueryId", () => input.QueryId, "{QueryId}", false);
|
|
502
|
+
let body;
|
|
503
|
+
b.m("GET").h(headers).b(body);
|
|
504
|
+
return b.build();
|
|
505
|
+
}, "se_GetQueryStatusCommand");
|
|
506
|
+
var se_ListHealthEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
507
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
508
|
+
const headers = {};
|
|
509
|
+
b.bp("/v20210603/Monitors/{MonitorName}/HealthEvents");
|
|
510
|
+
b.p("MonitorName", () => input.MonitorName, "{MonitorName}", false);
|
|
511
|
+
const query = (0, import_smithy_client.map)({
|
|
512
|
+
[_ST]: [() => input.StartTime !== void 0, () => (input[_ST].toISOString().split(".")[0] + "Z").toString()],
|
|
513
|
+
[_ET]: [() => input.EndTime !== void 0, () => (input[_ET].toISOString().split(".")[0] + "Z").toString()],
|
|
514
|
+
[_NT]: [, input[_NT]],
|
|
515
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
516
|
+
[_ES]: [, input[_ES]]
|
|
517
|
+
});
|
|
518
|
+
let body;
|
|
519
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
520
|
+
return b.build();
|
|
521
|
+
}, "se_ListHealthEventsCommand");
|
|
522
|
+
var se_ListMonitorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
523
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
524
|
+
const headers = {};
|
|
525
|
+
b.bp("/v20210603/Monitors");
|
|
526
|
+
const query = (0, import_smithy_client.map)({
|
|
527
|
+
[_NT]: [, input[_NT]],
|
|
528
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
529
|
+
[_MS]: [, input[_MS]]
|
|
530
|
+
});
|
|
531
|
+
let body;
|
|
532
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
533
|
+
return b.build();
|
|
534
|
+
}, "se_ListMonitorsCommand");
|
|
535
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
536
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
537
|
+
const headers = {};
|
|
538
|
+
b.bp("/tags/{ResourceArn}");
|
|
539
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
540
|
+
let body;
|
|
541
|
+
b.m("GET").h(headers).b(body);
|
|
542
|
+
return b.build();
|
|
543
|
+
}, "se_ListTagsForResourceCommand");
|
|
544
|
+
var se_StartQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
545
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
546
|
+
const headers = {
|
|
547
|
+
"content-type": "application/json"
|
|
548
|
+
};
|
|
549
|
+
b.bp("/v20210603/Monitors/{MonitorName}/Queries");
|
|
550
|
+
b.p("MonitorName", () => input.MonitorName, "{MonitorName}", false);
|
|
551
|
+
let body;
|
|
552
|
+
body = JSON.stringify(
|
|
553
|
+
(0, import_smithy_client.take)(input, {
|
|
554
|
+
EndTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
555
|
+
FilterParameters: (_) => (0, import_smithy_client._json)(_),
|
|
556
|
+
QueryType: [],
|
|
557
|
+
StartTime: (_) => _.toISOString().split(".")[0] + "Z"
|
|
558
|
+
})
|
|
559
|
+
);
|
|
560
|
+
b.m("POST").h(headers).b(body);
|
|
561
|
+
return b.build();
|
|
562
|
+
}, "se_StartQueryCommand");
|
|
563
|
+
var se_StopQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
564
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
565
|
+
const headers = {};
|
|
566
|
+
b.bp("/v20210603/Monitors/{MonitorName}/Queries/{QueryId}");
|
|
567
|
+
b.p("MonitorName", () => input.MonitorName, "{MonitorName}", false);
|
|
568
|
+
b.p("QueryId", () => input.QueryId, "{QueryId}", false);
|
|
569
|
+
let body;
|
|
570
|
+
b.m("DELETE").h(headers).b(body);
|
|
571
|
+
return b.build();
|
|
572
|
+
}, "se_StopQueryCommand");
|
|
573
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
574
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
575
|
+
const headers = {
|
|
576
|
+
"content-type": "application/json"
|
|
577
|
+
};
|
|
578
|
+
b.bp("/tags/{ResourceArn}");
|
|
579
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
580
|
+
let body;
|
|
581
|
+
body = JSON.stringify(
|
|
582
|
+
(0, import_smithy_client.take)(input, {
|
|
583
|
+
Tags: (_) => (0, import_smithy_client._json)(_)
|
|
584
|
+
})
|
|
585
|
+
);
|
|
586
|
+
b.m("POST").h(headers).b(body);
|
|
587
|
+
return b.build();
|
|
588
|
+
}, "se_TagResourceCommand");
|
|
589
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
590
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
591
|
+
const headers = {};
|
|
592
|
+
b.bp("/tags/{ResourceArn}");
|
|
593
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
594
|
+
const query = (0, import_smithy_client.map)({
|
|
595
|
+
[_tK]: [
|
|
596
|
+
(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
597
|
+
() => (input[_TK] || []).map((_entry) => _entry)
|
|
598
|
+
]
|
|
599
|
+
});
|
|
600
|
+
let body;
|
|
601
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
602
|
+
return b.build();
|
|
603
|
+
}, "se_UntagResourceCommand");
|
|
604
|
+
var se_UpdateMonitorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
605
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
606
|
+
const headers = {
|
|
607
|
+
"content-type": "application/json"
|
|
608
|
+
};
|
|
609
|
+
b.bp("/v20210603/Monitors/{MonitorName}");
|
|
610
|
+
b.p("MonitorName", () => input.MonitorName, "{MonitorName}", false);
|
|
611
|
+
let body;
|
|
612
|
+
body = JSON.stringify(
|
|
613
|
+
(0, import_smithy_client.take)(input, {
|
|
614
|
+
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
615
|
+
HealthEventsConfig: (_) => se_HealthEventsConfig(_, context),
|
|
616
|
+
InternetMeasurementsLogDelivery: (_) => (0, import_smithy_client._json)(_),
|
|
617
|
+
MaxCityNetworksToMonitor: [],
|
|
618
|
+
ResourcesToAdd: (_) => (0, import_smithy_client._json)(_),
|
|
619
|
+
ResourcesToRemove: (_) => (0, import_smithy_client._json)(_),
|
|
620
|
+
Status: [],
|
|
621
|
+
TrafficPercentageToMonitor: []
|
|
622
|
+
})
|
|
623
|
+
);
|
|
624
|
+
b.m("PATCH").h(headers).b(body);
|
|
625
|
+
return b.build();
|
|
626
|
+
}, "se_UpdateMonitorCommand");
|
|
627
|
+
var de_CreateMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
628
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
629
|
+
return de_CreateMonitorCommandError(output, context);
|
|
630
|
+
}
|
|
631
|
+
const contents = (0, import_smithy_client.map)({
|
|
632
|
+
$metadata: deserializeMetadata(output)
|
|
633
|
+
});
|
|
634
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
635
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
636
|
+
Arn: import_smithy_client.expectString,
|
|
637
|
+
Status: import_smithy_client.expectString
|
|
638
|
+
});
|
|
639
|
+
Object.assign(contents, doc);
|
|
640
|
+
return contents;
|
|
641
|
+
}, "de_CreateMonitorCommand");
|
|
642
|
+
var de_CreateMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
643
|
+
const parsedOutput = {
|
|
644
|
+
...output,
|
|
645
|
+
body: await parseErrorBody(output.body, context)
|
|
646
|
+
};
|
|
647
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
648
|
+
switch (errorCode) {
|
|
649
|
+
case "AccessDeniedException":
|
|
650
|
+
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
651
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
652
|
+
case "ConflictException":
|
|
653
|
+
case "com.amazonaws.internetmonitor#ConflictException":
|
|
654
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
655
|
+
case "InternalServerException":
|
|
656
|
+
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
657
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
658
|
+
case "LimitExceededException":
|
|
659
|
+
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
660
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
661
|
+
case "ThrottlingException":
|
|
662
|
+
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
663
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
664
|
+
case "ValidationException":
|
|
665
|
+
case "com.amazonaws.internetmonitor#ValidationException":
|
|
666
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
667
|
+
default:
|
|
668
|
+
const parsedBody = parsedOutput.body;
|
|
669
|
+
return throwDefaultError({
|
|
670
|
+
output,
|
|
671
|
+
parsedBody,
|
|
672
|
+
errorCode
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
}, "de_CreateMonitorCommandError");
|
|
676
|
+
var de_DeleteMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
677
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
678
|
+
return de_DeleteMonitorCommandError(output, context);
|
|
679
|
+
}
|
|
680
|
+
const contents = (0, import_smithy_client.map)({
|
|
681
|
+
$metadata: deserializeMetadata(output)
|
|
682
|
+
});
|
|
683
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
684
|
+
return contents;
|
|
685
|
+
}, "de_DeleteMonitorCommand");
|
|
686
|
+
var de_DeleteMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
687
|
+
const parsedOutput = {
|
|
688
|
+
...output,
|
|
689
|
+
body: await parseErrorBody(output.body, context)
|
|
690
|
+
};
|
|
691
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
|
+
switch (errorCode) {
|
|
693
|
+
case "AccessDeniedException":
|
|
694
|
+
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
695
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
696
|
+
case "InternalServerException":
|
|
697
|
+
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
698
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
699
|
+
case "ThrottlingException":
|
|
700
|
+
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
701
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
702
|
+
case "ValidationException":
|
|
703
|
+
case "com.amazonaws.internetmonitor#ValidationException":
|
|
704
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
705
|
+
default:
|
|
706
|
+
const parsedBody = parsedOutput.body;
|
|
707
|
+
return throwDefaultError({
|
|
708
|
+
output,
|
|
709
|
+
parsedBody,
|
|
710
|
+
errorCode
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
}, "de_DeleteMonitorCommandError");
|
|
714
|
+
var de_GetHealthEventCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
715
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
716
|
+
return de_GetHealthEventCommandError(output, context);
|
|
717
|
+
}
|
|
718
|
+
const contents = (0, import_smithy_client.map)({
|
|
719
|
+
$metadata: deserializeMetadata(output)
|
|
720
|
+
});
|
|
721
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
722
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
723
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
724
|
+
EndedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
725
|
+
EventArn: import_smithy_client.expectString,
|
|
726
|
+
EventId: import_smithy_client.expectString,
|
|
727
|
+
HealthScoreThreshold: import_smithy_client.limitedParseDouble,
|
|
728
|
+
ImpactType: import_smithy_client.expectString,
|
|
729
|
+
ImpactedLocations: (_) => de_ImpactedLocationsList(_, context),
|
|
730
|
+
LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
731
|
+
PercentOfTotalTrafficImpacted: import_smithy_client.limitedParseDouble,
|
|
732
|
+
StartedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
733
|
+
Status: import_smithy_client.expectString
|
|
734
|
+
});
|
|
735
|
+
Object.assign(contents, doc);
|
|
736
|
+
return contents;
|
|
737
|
+
}, "de_GetHealthEventCommand");
|
|
738
|
+
var de_GetHealthEventCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
739
|
+
const parsedOutput = {
|
|
740
|
+
...output,
|
|
741
|
+
body: await parseErrorBody(output.body, context)
|
|
742
|
+
};
|
|
743
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
|
+
switch (errorCode) {
|
|
745
|
+
case "AccessDeniedException":
|
|
746
|
+
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
747
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
748
|
+
case "InternalServerException":
|
|
749
|
+
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
750
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
751
|
+
case "ThrottlingException":
|
|
752
|
+
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
753
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
754
|
+
case "ValidationException":
|
|
755
|
+
case "com.amazonaws.internetmonitor#ValidationException":
|
|
756
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
757
|
+
default:
|
|
758
|
+
const parsedBody = parsedOutput.body;
|
|
759
|
+
return throwDefaultError({
|
|
760
|
+
output,
|
|
761
|
+
parsedBody,
|
|
762
|
+
errorCode
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
}, "de_GetHealthEventCommandError");
|
|
766
|
+
var de_GetMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
767
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
768
|
+
return de_GetMonitorCommandError(output, context);
|
|
769
|
+
}
|
|
770
|
+
const contents = (0, import_smithy_client.map)({
|
|
771
|
+
$metadata: deserializeMetadata(output)
|
|
772
|
+
});
|
|
773
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
774
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
775
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
776
|
+
HealthEventsConfig: (_) => de_HealthEventsConfig(_, context),
|
|
777
|
+
InternetMeasurementsLogDelivery: import_smithy_client._json,
|
|
778
|
+
MaxCityNetworksToMonitor: import_smithy_client.expectInt32,
|
|
779
|
+
ModifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
780
|
+
MonitorArn: import_smithy_client.expectString,
|
|
781
|
+
MonitorName: import_smithy_client.expectString,
|
|
782
|
+
ProcessingStatus: import_smithy_client.expectString,
|
|
783
|
+
ProcessingStatusInfo: import_smithy_client.expectString,
|
|
784
|
+
Resources: import_smithy_client._json,
|
|
785
|
+
Status: import_smithy_client.expectString,
|
|
786
|
+
Tags: import_smithy_client._json,
|
|
787
|
+
TrafficPercentageToMonitor: import_smithy_client.expectInt32
|
|
788
|
+
});
|
|
789
|
+
Object.assign(contents, doc);
|
|
790
|
+
return contents;
|
|
791
|
+
}, "de_GetMonitorCommand");
|
|
792
|
+
var de_GetMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
793
|
+
const parsedOutput = {
|
|
794
|
+
...output,
|
|
795
|
+
body: await parseErrorBody(output.body, context)
|
|
796
|
+
};
|
|
797
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
798
|
+
switch (errorCode) {
|
|
799
|
+
case "AccessDeniedException":
|
|
800
|
+
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
801
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
802
|
+
case "InternalServerException":
|
|
803
|
+
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
804
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
805
|
+
case "ThrottlingException":
|
|
806
|
+
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
807
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
808
|
+
case "ValidationException":
|
|
809
|
+
case "com.amazonaws.internetmonitor#ValidationException":
|
|
810
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
811
|
+
default:
|
|
812
|
+
const parsedBody = parsedOutput.body;
|
|
813
|
+
return throwDefaultError({
|
|
814
|
+
output,
|
|
815
|
+
parsedBody,
|
|
816
|
+
errorCode
|
|
817
|
+
});
|
|
818
|
+
}
|
|
819
|
+
}, "de_GetMonitorCommandError");
|
|
820
|
+
var de_GetQueryResultsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
821
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
822
|
+
return de_GetQueryResultsCommandError(output, context);
|
|
823
|
+
}
|
|
824
|
+
const contents = (0, import_smithy_client.map)({
|
|
825
|
+
$metadata: deserializeMetadata(output)
|
|
826
|
+
});
|
|
827
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
828
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
829
|
+
Data: import_smithy_client._json,
|
|
830
|
+
Fields: import_smithy_client._json,
|
|
831
|
+
NextToken: import_smithy_client.expectString
|
|
832
|
+
});
|
|
833
|
+
Object.assign(contents, doc);
|
|
834
|
+
return contents;
|
|
835
|
+
}, "de_GetQueryResultsCommand");
|
|
836
|
+
var de_GetQueryResultsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
837
|
+
const parsedOutput = {
|
|
838
|
+
...output,
|
|
839
|
+
body: await parseErrorBody(output.body, context)
|
|
840
|
+
};
|
|
841
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
842
|
+
switch (errorCode) {
|
|
843
|
+
case "AccessDeniedException":
|
|
844
|
+
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
845
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
846
|
+
case "InternalServerException":
|
|
847
|
+
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
848
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
849
|
+
case "LimitExceededException":
|
|
850
|
+
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
851
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
852
|
+
case "ThrottlingException":
|
|
853
|
+
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
854
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
855
|
+
case "ValidationException":
|
|
856
|
+
case "com.amazonaws.internetmonitor#ValidationException":
|
|
857
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
858
|
+
default:
|
|
859
|
+
const parsedBody = parsedOutput.body;
|
|
860
|
+
return throwDefaultError({
|
|
861
|
+
output,
|
|
862
|
+
parsedBody,
|
|
863
|
+
errorCode
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
}, "de_GetQueryResultsCommandError");
|
|
867
|
+
var de_GetQueryStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
868
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
869
|
+
return de_GetQueryStatusCommandError(output, context);
|
|
870
|
+
}
|
|
871
|
+
const contents = (0, import_smithy_client.map)({
|
|
872
|
+
$metadata: deserializeMetadata(output)
|
|
873
|
+
});
|
|
874
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
875
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
876
|
+
Status: import_smithy_client.expectString
|
|
877
|
+
});
|
|
878
|
+
Object.assign(contents, doc);
|
|
879
|
+
return contents;
|
|
880
|
+
}, "de_GetQueryStatusCommand");
|
|
881
|
+
var de_GetQueryStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
882
|
+
const parsedOutput = {
|
|
883
|
+
...output,
|
|
884
|
+
body: await parseErrorBody(output.body, context)
|
|
885
|
+
};
|
|
886
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
887
|
+
switch (errorCode) {
|
|
888
|
+
case "AccessDeniedException":
|
|
889
|
+
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
890
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
891
|
+
case "InternalServerException":
|
|
892
|
+
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
893
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
894
|
+
case "LimitExceededException":
|
|
895
|
+
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
896
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
897
|
+
case "ThrottlingException":
|
|
898
|
+
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
899
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
900
|
+
case "ValidationException":
|
|
901
|
+
case "com.amazonaws.internetmonitor#ValidationException":
|
|
902
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
903
|
+
default:
|
|
904
|
+
const parsedBody = parsedOutput.body;
|
|
905
|
+
return throwDefaultError({
|
|
906
|
+
output,
|
|
907
|
+
parsedBody,
|
|
908
|
+
errorCode
|
|
909
|
+
});
|
|
910
|
+
}
|
|
911
|
+
}, "de_GetQueryStatusCommandError");
|
|
912
|
+
var de_ListHealthEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
913
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
914
|
+
return de_ListHealthEventsCommandError(output, context);
|
|
915
|
+
}
|
|
916
|
+
const contents = (0, import_smithy_client.map)({
|
|
917
|
+
$metadata: deserializeMetadata(output)
|
|
918
|
+
});
|
|
919
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
920
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
921
|
+
HealthEvents: (_) => de_HealthEventList(_, context),
|
|
922
|
+
NextToken: import_smithy_client.expectString
|
|
923
|
+
});
|
|
924
|
+
Object.assign(contents, doc);
|
|
925
|
+
return contents;
|
|
926
|
+
}, "de_ListHealthEventsCommand");
|
|
927
|
+
var de_ListHealthEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
928
|
+
const parsedOutput = {
|
|
929
|
+
...output,
|
|
930
|
+
body: await parseErrorBody(output.body, context)
|
|
931
|
+
};
|
|
932
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
933
|
+
switch (errorCode) {
|
|
934
|
+
case "AccessDeniedException":
|
|
935
|
+
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
936
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
937
|
+
case "InternalServerException":
|
|
938
|
+
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
939
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
940
|
+
case "ThrottlingException":
|
|
941
|
+
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
942
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
943
|
+
case "ValidationException":
|
|
944
|
+
case "com.amazonaws.internetmonitor#ValidationException":
|
|
945
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
946
|
+
default:
|
|
947
|
+
const parsedBody = parsedOutput.body;
|
|
948
|
+
return throwDefaultError({
|
|
949
|
+
output,
|
|
950
|
+
parsedBody,
|
|
951
|
+
errorCode
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
}, "de_ListHealthEventsCommandError");
|
|
955
|
+
var de_ListMonitorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
956
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
957
|
+
return de_ListMonitorsCommandError(output, context);
|
|
958
|
+
}
|
|
959
|
+
const contents = (0, import_smithy_client.map)({
|
|
960
|
+
$metadata: deserializeMetadata(output)
|
|
961
|
+
});
|
|
962
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
963
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
964
|
+
Monitors: import_smithy_client._json,
|
|
965
|
+
NextToken: import_smithy_client.expectString
|
|
966
|
+
});
|
|
967
|
+
Object.assign(contents, doc);
|
|
968
|
+
return contents;
|
|
969
|
+
}, "de_ListMonitorsCommand");
|
|
970
|
+
var de_ListMonitorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
971
|
+
const parsedOutput = {
|
|
972
|
+
...output,
|
|
973
|
+
body: await parseErrorBody(output.body, context)
|
|
974
|
+
};
|
|
975
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
976
|
+
switch (errorCode) {
|
|
977
|
+
case "AccessDeniedException":
|
|
978
|
+
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
979
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
980
|
+
case "InternalServerException":
|
|
981
|
+
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
982
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
983
|
+
case "ThrottlingException":
|
|
984
|
+
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
985
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
986
|
+
case "ValidationException":
|
|
987
|
+
case "com.amazonaws.internetmonitor#ValidationException":
|
|
988
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
989
|
+
default:
|
|
990
|
+
const parsedBody = parsedOutput.body;
|
|
991
|
+
return throwDefaultError({
|
|
992
|
+
output,
|
|
993
|
+
parsedBody,
|
|
994
|
+
errorCode
|
|
995
|
+
});
|
|
996
|
+
}
|
|
997
|
+
}, "de_ListMonitorsCommandError");
|
|
998
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
999
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1000
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1001
|
+
}
|
|
1002
|
+
const contents = (0, import_smithy_client.map)({
|
|
1003
|
+
$metadata: deserializeMetadata(output)
|
|
1004
|
+
});
|
|
1005
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1006
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1007
|
+
Tags: import_smithy_client._json
|
|
1008
|
+
});
|
|
1009
|
+
Object.assign(contents, doc);
|
|
1010
|
+
return contents;
|
|
1011
|
+
}, "de_ListTagsForResourceCommand");
|
|
1012
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1013
|
+
const parsedOutput = {
|
|
1014
|
+
...output,
|
|
1015
|
+
body: await parseErrorBody(output.body, context)
|
|
1016
|
+
};
|
|
1017
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1018
|
+
switch (errorCode) {
|
|
1019
|
+
case "AccessDeniedException":
|
|
1020
|
+
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
1021
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1022
|
+
case "BadRequestException":
|
|
1023
|
+
case "com.amazonaws.internetmonitor#BadRequestException":
|
|
1024
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1025
|
+
case "InternalServerErrorException":
|
|
1026
|
+
case "com.amazonaws.internetmonitor#InternalServerErrorException":
|
|
1027
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1028
|
+
case "NotFoundException":
|
|
1029
|
+
case "com.amazonaws.internetmonitor#NotFoundException":
|
|
1030
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1031
|
+
case "TooManyRequestsException":
|
|
1032
|
+
case "com.amazonaws.internetmonitor#TooManyRequestsException":
|
|
1033
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1034
|
+
default:
|
|
1035
|
+
const parsedBody = parsedOutput.body;
|
|
1036
|
+
return throwDefaultError({
|
|
1037
|
+
output,
|
|
1038
|
+
parsedBody,
|
|
1039
|
+
errorCode
|
|
1040
|
+
});
|
|
1041
|
+
}
|
|
1042
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1043
|
+
var de_StartQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1044
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1045
|
+
return de_StartQueryCommandError(output, context);
|
|
1046
|
+
}
|
|
1047
|
+
const contents = (0, import_smithy_client.map)({
|
|
1048
|
+
$metadata: deserializeMetadata(output)
|
|
1049
|
+
});
|
|
1050
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1051
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1052
|
+
QueryId: import_smithy_client.expectString
|
|
1053
|
+
});
|
|
1054
|
+
Object.assign(contents, doc);
|
|
1055
|
+
return contents;
|
|
1056
|
+
}, "de_StartQueryCommand");
|
|
1057
|
+
var de_StartQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1058
|
+
const parsedOutput = {
|
|
1059
|
+
...output,
|
|
1060
|
+
body: await parseErrorBody(output.body, context)
|
|
1061
|
+
};
|
|
1062
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1063
|
+
switch (errorCode) {
|
|
1064
|
+
case "AccessDeniedException":
|
|
1065
|
+
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
1066
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1067
|
+
case "InternalServerException":
|
|
1068
|
+
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
1069
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1070
|
+
case "LimitExceededException":
|
|
1071
|
+
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
1072
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1073
|
+
case "ThrottlingException":
|
|
1074
|
+
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
1075
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1076
|
+
case "ValidationException":
|
|
1077
|
+
case "com.amazonaws.internetmonitor#ValidationException":
|
|
1078
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1079
|
+
default:
|
|
1080
|
+
const parsedBody = parsedOutput.body;
|
|
1081
|
+
return throwDefaultError({
|
|
1082
|
+
output,
|
|
1083
|
+
parsedBody,
|
|
1084
|
+
errorCode
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1087
|
+
}, "de_StartQueryCommandError");
|
|
1088
|
+
var de_StopQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1089
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1090
|
+
return de_StopQueryCommandError(output, context);
|
|
1091
|
+
}
|
|
1092
|
+
const contents = (0, import_smithy_client.map)({
|
|
1093
|
+
$metadata: deserializeMetadata(output)
|
|
1094
|
+
});
|
|
1095
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1096
|
+
return contents;
|
|
1097
|
+
}, "de_StopQueryCommand");
|
|
1098
|
+
var de_StopQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1099
|
+
const parsedOutput = {
|
|
1100
|
+
...output,
|
|
1101
|
+
body: await parseErrorBody(output.body, context)
|
|
1102
|
+
};
|
|
1103
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1104
|
+
switch (errorCode) {
|
|
1105
|
+
case "AccessDeniedException":
|
|
1106
|
+
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
1107
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1108
|
+
case "InternalServerException":
|
|
1109
|
+
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
1110
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1111
|
+
case "LimitExceededException":
|
|
1112
|
+
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
1113
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1114
|
+
case "ThrottlingException":
|
|
1115
|
+
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
1116
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1117
|
+
case "ValidationException":
|
|
1118
|
+
case "com.amazonaws.internetmonitor#ValidationException":
|
|
1119
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1120
|
+
default:
|
|
1121
|
+
const parsedBody = parsedOutput.body;
|
|
1122
|
+
return throwDefaultError({
|
|
1123
|
+
output,
|
|
1124
|
+
parsedBody,
|
|
1125
|
+
errorCode
|
|
1126
|
+
});
|
|
1127
|
+
}
|
|
1128
|
+
}, "de_StopQueryCommandError");
|
|
1129
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1130
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1131
|
+
return de_TagResourceCommandError(output, context);
|
|
1132
|
+
}
|
|
1133
|
+
const contents = (0, import_smithy_client.map)({
|
|
1134
|
+
$metadata: deserializeMetadata(output)
|
|
1135
|
+
});
|
|
1136
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1137
|
+
return contents;
|
|
1138
|
+
}, "de_TagResourceCommand");
|
|
1139
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1140
|
+
const parsedOutput = {
|
|
1141
|
+
...output,
|
|
1142
|
+
body: await parseErrorBody(output.body, context)
|
|
1143
|
+
};
|
|
1144
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1145
|
+
switch (errorCode) {
|
|
1146
|
+
case "AccessDeniedException":
|
|
1147
|
+
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
1148
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1149
|
+
case "BadRequestException":
|
|
1150
|
+
case "com.amazonaws.internetmonitor#BadRequestException":
|
|
1151
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1152
|
+
case "InternalServerErrorException":
|
|
1153
|
+
case "com.amazonaws.internetmonitor#InternalServerErrorException":
|
|
1154
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1155
|
+
case "NotFoundException":
|
|
1156
|
+
case "com.amazonaws.internetmonitor#NotFoundException":
|
|
1157
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1158
|
+
case "TooManyRequestsException":
|
|
1159
|
+
case "com.amazonaws.internetmonitor#TooManyRequestsException":
|
|
1160
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1161
|
+
default:
|
|
1162
|
+
const parsedBody = parsedOutput.body;
|
|
1163
|
+
return throwDefaultError({
|
|
1164
|
+
output,
|
|
1165
|
+
parsedBody,
|
|
1166
|
+
errorCode
|
|
1167
|
+
});
|
|
1168
|
+
}
|
|
1169
|
+
}, "de_TagResourceCommandError");
|
|
1170
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1171
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1172
|
+
return de_UntagResourceCommandError(output, context);
|
|
1173
|
+
}
|
|
1174
|
+
const contents = (0, import_smithy_client.map)({
|
|
1175
|
+
$metadata: deserializeMetadata(output)
|
|
1176
|
+
});
|
|
1177
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1178
|
+
return contents;
|
|
1179
|
+
}, "de_UntagResourceCommand");
|
|
1180
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1181
|
+
const parsedOutput = {
|
|
1182
|
+
...output,
|
|
1183
|
+
body: await parseErrorBody(output.body, context)
|
|
1184
|
+
};
|
|
1185
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1186
|
+
switch (errorCode) {
|
|
1187
|
+
case "AccessDeniedException":
|
|
1188
|
+
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
1189
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1190
|
+
case "BadRequestException":
|
|
1191
|
+
case "com.amazonaws.internetmonitor#BadRequestException":
|
|
1192
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1193
|
+
case "InternalServerErrorException":
|
|
1194
|
+
case "com.amazonaws.internetmonitor#InternalServerErrorException":
|
|
1195
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1196
|
+
case "NotFoundException":
|
|
1197
|
+
case "com.amazonaws.internetmonitor#NotFoundException":
|
|
1198
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1199
|
+
case "TooManyRequestsException":
|
|
1200
|
+
case "com.amazonaws.internetmonitor#TooManyRequestsException":
|
|
1201
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1202
|
+
default:
|
|
1203
|
+
const parsedBody = parsedOutput.body;
|
|
1204
|
+
return throwDefaultError({
|
|
1205
|
+
output,
|
|
1206
|
+
parsedBody,
|
|
1207
|
+
errorCode
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1210
|
+
}, "de_UntagResourceCommandError");
|
|
1211
|
+
var de_UpdateMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1212
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1213
|
+
return de_UpdateMonitorCommandError(output, context);
|
|
1214
|
+
}
|
|
1215
|
+
const contents = (0, import_smithy_client.map)({
|
|
1216
|
+
$metadata: deserializeMetadata(output)
|
|
1217
|
+
});
|
|
1218
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1219
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1220
|
+
MonitorArn: import_smithy_client.expectString,
|
|
1221
|
+
Status: import_smithy_client.expectString
|
|
1222
|
+
});
|
|
1223
|
+
Object.assign(contents, doc);
|
|
1224
|
+
return contents;
|
|
1225
|
+
}, "de_UpdateMonitorCommand");
|
|
1226
|
+
var de_UpdateMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1227
|
+
const parsedOutput = {
|
|
1228
|
+
...output,
|
|
1229
|
+
body: await parseErrorBody(output.body, context)
|
|
1230
|
+
};
|
|
1231
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1232
|
+
switch (errorCode) {
|
|
1233
|
+
case "AccessDeniedException":
|
|
1234
|
+
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
1235
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1236
|
+
case "InternalServerException":
|
|
1237
|
+
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
1238
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1239
|
+
case "LimitExceededException":
|
|
1240
|
+
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
1241
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1242
|
+
case "ResourceNotFoundException":
|
|
1243
|
+
case "com.amazonaws.internetmonitor#ResourceNotFoundException":
|
|
1244
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1245
|
+
case "ThrottlingException":
|
|
1246
|
+
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
1247
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1248
|
+
case "ValidationException":
|
|
1249
|
+
case "com.amazonaws.internetmonitor#ValidationException":
|
|
1250
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1251
|
+
default:
|
|
1252
|
+
const parsedBody = parsedOutput.body;
|
|
1253
|
+
return throwDefaultError({
|
|
1254
|
+
output,
|
|
1255
|
+
parsedBody,
|
|
1256
|
+
errorCode
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
}, "de_UpdateMonitorCommandError");
|
|
1260
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(InternetMonitorServiceException);
|
|
1261
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1262
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1263
|
+
const data = parsedOutput.body;
|
|
1264
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1265
|
+
message: import_smithy_client.expectString
|
|
1266
|
+
});
|
|
1267
|
+
Object.assign(contents, doc);
|
|
1268
|
+
const exception = new AccessDeniedException({
|
|
1269
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1270
|
+
...contents
|
|
1271
|
+
});
|
|
1272
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1273
|
+
}, "de_AccessDeniedExceptionRes");
|
|
1274
|
+
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1275
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1276
|
+
const data = parsedOutput.body;
|
|
1277
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1278
|
+
message: import_smithy_client.expectString
|
|
1279
|
+
});
|
|
1280
|
+
Object.assign(contents, doc);
|
|
1281
|
+
const exception = new BadRequestException({
|
|
1282
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1283
|
+
...contents
|
|
1284
|
+
});
|
|
1285
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1286
|
+
}, "de_BadRequestExceptionRes");
|
|
1287
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1288
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1289
|
+
const data = parsedOutput.body;
|
|
1290
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1291
|
+
message: import_smithy_client.expectString
|
|
1292
|
+
});
|
|
1293
|
+
Object.assign(contents, doc);
|
|
1294
|
+
const exception = new ConflictException({
|
|
1295
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1296
|
+
...contents
|
|
1297
|
+
});
|
|
1298
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1299
|
+
}, "de_ConflictExceptionRes");
|
|
1300
|
+
var de_InternalServerErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1301
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1302
|
+
const data = parsedOutput.body;
|
|
1303
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1304
|
+
message: import_smithy_client.expectString
|
|
1305
|
+
});
|
|
1306
|
+
Object.assign(contents, doc);
|
|
1307
|
+
const exception = new InternalServerErrorException({
|
|
1308
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1309
|
+
...contents
|
|
1310
|
+
});
|
|
1311
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1312
|
+
}, "de_InternalServerErrorExceptionRes");
|
|
1313
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1314
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1315
|
+
const data = parsedOutput.body;
|
|
1316
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1317
|
+
message: import_smithy_client.expectString
|
|
1318
|
+
});
|
|
1319
|
+
Object.assign(contents, doc);
|
|
1320
|
+
const exception = new InternalServerException({
|
|
1321
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1322
|
+
...contents
|
|
1323
|
+
});
|
|
1324
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1325
|
+
}, "de_InternalServerExceptionRes");
|
|
1326
|
+
var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1327
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1328
|
+
const data = parsedOutput.body;
|
|
1329
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1330
|
+
message: import_smithy_client.expectString
|
|
1331
|
+
});
|
|
1332
|
+
Object.assign(contents, doc);
|
|
1333
|
+
const exception = new LimitExceededException({
|
|
1334
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1335
|
+
...contents
|
|
1336
|
+
});
|
|
1337
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1338
|
+
}, "de_LimitExceededExceptionRes");
|
|
1339
|
+
var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1340
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1341
|
+
const data = parsedOutput.body;
|
|
1342
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1343
|
+
message: import_smithy_client.expectString
|
|
1344
|
+
});
|
|
1345
|
+
Object.assign(contents, doc);
|
|
1346
|
+
const exception = new NotFoundException({
|
|
1347
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1348
|
+
...contents
|
|
1349
|
+
});
|
|
1350
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1351
|
+
}, "de_NotFoundExceptionRes");
|
|
1352
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1353
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1354
|
+
const data = parsedOutput.body;
|
|
1355
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1356
|
+
message: import_smithy_client.expectString
|
|
1357
|
+
});
|
|
1358
|
+
Object.assign(contents, doc);
|
|
1359
|
+
const exception = new ResourceNotFoundException({
|
|
1360
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1361
|
+
...contents
|
|
1362
|
+
});
|
|
1363
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1364
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1365
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1366
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1367
|
+
const data = parsedOutput.body;
|
|
1368
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1369
|
+
message: import_smithy_client.expectString
|
|
1370
|
+
});
|
|
1371
|
+
Object.assign(contents, doc);
|
|
1372
|
+
const exception = new ThrottlingException({
|
|
1373
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1374
|
+
...contents
|
|
1375
|
+
});
|
|
1376
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1377
|
+
}, "de_ThrottlingExceptionRes");
|
|
1378
|
+
var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1379
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1380
|
+
const data = parsedOutput.body;
|
|
1381
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1382
|
+
message: import_smithy_client.expectString
|
|
1383
|
+
});
|
|
1384
|
+
Object.assign(contents, doc);
|
|
1385
|
+
const exception = new TooManyRequestsException({
|
|
1386
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1387
|
+
...contents
|
|
1388
|
+
});
|
|
1389
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1390
|
+
}, "de_TooManyRequestsExceptionRes");
|
|
1391
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1392
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1393
|
+
const data = parsedOutput.body;
|
|
1394
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1395
|
+
message: import_smithy_client.expectString
|
|
1396
|
+
});
|
|
1397
|
+
Object.assign(contents, doc);
|
|
1398
|
+
const exception = new ValidationException({
|
|
1399
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1400
|
+
...contents
|
|
1401
|
+
});
|
|
1402
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1403
|
+
}, "de_ValidationExceptionRes");
|
|
1404
|
+
var se_HealthEventsConfig = /* @__PURE__ */ __name((input, context) => {
|
|
1405
|
+
return (0, import_smithy_client.take)(input, {
|
|
1406
|
+
AvailabilityLocalHealthEventsConfig: (_) => se_LocalHealthEventsConfig(_, context),
|
|
1407
|
+
AvailabilityScoreThreshold: import_smithy_client.serializeFloat,
|
|
1408
|
+
PerformanceLocalHealthEventsConfig: (_) => se_LocalHealthEventsConfig(_, context),
|
|
1409
|
+
PerformanceScoreThreshold: import_smithy_client.serializeFloat
|
|
1410
|
+
});
|
|
1411
|
+
}, "se_HealthEventsConfig");
|
|
1412
|
+
var se_LocalHealthEventsConfig = /* @__PURE__ */ __name((input, context) => {
|
|
1413
|
+
return (0, import_smithy_client.take)(input, {
|
|
1414
|
+
HealthScoreThreshold: import_smithy_client.serializeFloat,
|
|
1415
|
+
MinTrafficImpact: import_smithy_client.serializeFloat,
|
|
1416
|
+
Status: []
|
|
1417
|
+
});
|
|
1418
|
+
}, "se_LocalHealthEventsConfig");
|
|
1419
|
+
var de_AvailabilityMeasurement = /* @__PURE__ */ __name((output, context) => {
|
|
1420
|
+
return (0, import_smithy_client.take)(output, {
|
|
1421
|
+
ExperienceScore: import_smithy_client.limitedParseDouble,
|
|
1422
|
+
PercentOfClientLocationImpacted: import_smithy_client.limitedParseDouble,
|
|
1423
|
+
PercentOfTotalTrafficImpacted: import_smithy_client.limitedParseDouble
|
|
1424
|
+
});
|
|
1425
|
+
}, "de_AvailabilityMeasurement");
|
|
1426
|
+
var de_HealthEvent = /* @__PURE__ */ __name((output, context) => {
|
|
1427
|
+
return (0, import_smithy_client.take)(output, {
|
|
1428
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1429
|
+
EndedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1430
|
+
EventArn: import_smithy_client.expectString,
|
|
1431
|
+
EventId: import_smithy_client.expectString,
|
|
1432
|
+
HealthScoreThreshold: import_smithy_client.limitedParseDouble,
|
|
1433
|
+
ImpactType: import_smithy_client.expectString,
|
|
1434
|
+
ImpactedLocations: (_) => de_ImpactedLocationsList(_, context),
|
|
1435
|
+
LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1436
|
+
PercentOfTotalTrafficImpacted: import_smithy_client.limitedParseDouble,
|
|
1437
|
+
StartedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1438
|
+
Status: import_smithy_client.expectString
|
|
1439
|
+
});
|
|
1440
|
+
}, "de_HealthEvent");
|
|
1441
|
+
var de_HealthEventList = /* @__PURE__ */ __name((output, context) => {
|
|
1442
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1443
|
+
return de_HealthEvent(entry, context);
|
|
1444
|
+
});
|
|
1445
|
+
return retVal;
|
|
1446
|
+
}, "de_HealthEventList");
|
|
1447
|
+
var de_HealthEventsConfig = /* @__PURE__ */ __name((output, context) => {
|
|
1448
|
+
return (0, import_smithy_client.take)(output, {
|
|
1449
|
+
AvailabilityLocalHealthEventsConfig: (_) => de_LocalHealthEventsConfig(_, context),
|
|
1450
|
+
AvailabilityScoreThreshold: import_smithy_client.limitedParseDouble,
|
|
1451
|
+
PerformanceLocalHealthEventsConfig: (_) => de_LocalHealthEventsConfig(_, context),
|
|
1452
|
+
PerformanceScoreThreshold: import_smithy_client.limitedParseDouble
|
|
1453
|
+
});
|
|
1454
|
+
}, "de_HealthEventsConfig");
|
|
1455
|
+
var de_ImpactedLocation = /* @__PURE__ */ __name((output, context) => {
|
|
1456
|
+
return (0, import_smithy_client.take)(output, {
|
|
1457
|
+
ASName: import_smithy_client.expectString,
|
|
1458
|
+
ASNumber: import_smithy_client.expectLong,
|
|
1459
|
+
CausedBy: import_smithy_client._json,
|
|
1460
|
+
City: import_smithy_client.expectString,
|
|
1461
|
+
Country: import_smithy_client.expectString,
|
|
1462
|
+
CountryCode: import_smithy_client.expectString,
|
|
1463
|
+
InternetHealth: (_) => de_InternetHealth(_, context),
|
|
1464
|
+
Latitude: import_smithy_client.limitedParseDouble,
|
|
1465
|
+
Longitude: import_smithy_client.limitedParseDouble,
|
|
1466
|
+
Metro: import_smithy_client.expectString,
|
|
1467
|
+
ServiceLocation: import_smithy_client.expectString,
|
|
1468
|
+
Status: import_smithy_client.expectString,
|
|
1469
|
+
Subdivision: import_smithy_client.expectString,
|
|
1470
|
+
SubdivisionCode: import_smithy_client.expectString
|
|
1471
|
+
});
|
|
1472
|
+
}, "de_ImpactedLocation");
|
|
1473
|
+
var de_ImpactedLocationsList = /* @__PURE__ */ __name((output, context) => {
|
|
1474
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1475
|
+
return de_ImpactedLocation(entry, context);
|
|
1476
|
+
});
|
|
1477
|
+
return retVal;
|
|
1478
|
+
}, "de_ImpactedLocationsList");
|
|
1479
|
+
var de_InternetHealth = /* @__PURE__ */ __name((output, context) => {
|
|
1480
|
+
return (0, import_smithy_client.take)(output, {
|
|
1481
|
+
Availability: (_) => de_AvailabilityMeasurement(_, context),
|
|
1482
|
+
Performance: (_) => de_PerformanceMeasurement(_, context)
|
|
1483
|
+
});
|
|
1484
|
+
}, "de_InternetHealth");
|
|
1485
|
+
var de_LocalHealthEventsConfig = /* @__PURE__ */ __name((output, context) => {
|
|
1486
|
+
return (0, import_smithy_client.take)(output, {
|
|
1487
|
+
HealthScoreThreshold: import_smithy_client.limitedParseDouble,
|
|
1488
|
+
MinTrafficImpact: import_smithy_client.limitedParseDouble,
|
|
1489
|
+
Status: import_smithy_client.expectString
|
|
1490
|
+
});
|
|
1491
|
+
}, "de_LocalHealthEventsConfig");
|
|
1492
|
+
var de_PerformanceMeasurement = /* @__PURE__ */ __name((output, context) => {
|
|
1493
|
+
return (0, import_smithy_client.take)(output, {
|
|
1494
|
+
ExperienceScore: import_smithy_client.limitedParseDouble,
|
|
1495
|
+
PercentOfClientLocationImpacted: import_smithy_client.limitedParseDouble,
|
|
1496
|
+
PercentOfTotalTrafficImpacted: import_smithy_client.limitedParseDouble,
|
|
1497
|
+
RoundTripTime: (_) => de_RoundTripTime(_, context)
|
|
1498
|
+
});
|
|
1499
|
+
}, "de_PerformanceMeasurement");
|
|
1500
|
+
var de_RoundTripTime = /* @__PURE__ */ __name((output, context) => {
|
|
1501
|
+
return (0, import_smithy_client.take)(output, {
|
|
1502
|
+
P50: import_smithy_client.limitedParseDouble,
|
|
1503
|
+
P90: import_smithy_client.limitedParseDouble,
|
|
1504
|
+
P95: import_smithy_client.limitedParseDouble
|
|
1505
|
+
});
|
|
1506
|
+
}, "de_RoundTripTime");
|
|
1507
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1508
|
+
httpStatusCode: output.statusCode,
|
|
1509
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1510
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1511
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1512
|
+
}), "deserializeMetadata");
|
|
1513
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1514
|
+
var _ES = "EventStatus";
|
|
1515
|
+
var _ET = "EndTime";
|
|
1516
|
+
var _MR = "MaxResults";
|
|
1517
|
+
var _MS = "MonitorStatus";
|
|
1518
|
+
var _NT = "NextToken";
|
|
1519
|
+
var _ST = "StartTime";
|
|
1520
|
+
var _TK = "TagKeys";
|
|
1521
|
+
var _tK = "tagKeys";
|
|
1522
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1523
|
+
if (encoded.length) {
|
|
1524
|
+
return JSON.parse(encoded);
|
|
1525
|
+
}
|
|
1526
|
+
return {};
|
|
1527
|
+
}), "parseBody");
|
|
1528
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1529
|
+
const value = await parseBody(errorBody, context);
|
|
1530
|
+
value.message = value.message ?? value.Message;
|
|
1531
|
+
return value;
|
|
1532
|
+
}, "parseErrorBody");
|
|
1533
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1534
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1535
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1536
|
+
let cleanValue = rawValue;
|
|
1537
|
+
if (typeof cleanValue === "number") {
|
|
1538
|
+
cleanValue = cleanValue.toString();
|
|
1539
|
+
}
|
|
1540
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1541
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1542
|
+
}
|
|
1543
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1544
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1545
|
+
}
|
|
1546
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1547
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1548
|
+
}
|
|
1549
|
+
return cleanValue;
|
|
1550
|
+
}, "sanitizeErrorCode");
|
|
1551
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1552
|
+
if (headerKey !== void 0) {
|
|
1553
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1554
|
+
}
|
|
1555
|
+
if (data.code !== void 0) {
|
|
1556
|
+
return sanitizeErrorCode(data.code);
|
|
1557
|
+
}
|
|
1558
|
+
if (data["__type"] !== void 0) {
|
|
1559
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1560
|
+
}
|
|
1561
|
+
}, "loadRestJsonErrorCode");
|
|
1562
|
+
|
|
1563
|
+
// src/commands/CreateMonitorCommand.ts
|
|
1564
|
+
var _CreateMonitorCommand = class _CreateMonitorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1565
|
+
...commonParams
|
|
1566
|
+
}).m(function(Command, cs, config, o) {
|
|
1567
|
+
return [
|
|
1568
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1569
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1570
|
+
];
|
|
1571
|
+
}).s("InternetMonitor20210603", "CreateMonitor", {}).n("InternetMonitorClient", "CreateMonitorCommand").f(void 0, void 0).ser(se_CreateMonitorCommand).de(de_CreateMonitorCommand).build() {
|
|
1572
|
+
};
|
|
1573
|
+
__name(_CreateMonitorCommand, "CreateMonitorCommand");
|
|
1574
|
+
var CreateMonitorCommand = _CreateMonitorCommand;
|
|
1575
|
+
|
|
1576
|
+
// src/commands/DeleteMonitorCommand.ts
|
|
1577
|
+
|
|
1578
|
+
|
|
1579
|
+
|
|
1580
|
+
|
|
1581
|
+
var _DeleteMonitorCommand = class _DeleteMonitorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1582
|
+
...commonParams
|
|
1583
|
+
}).m(function(Command, cs, config, o) {
|
|
1584
|
+
return [
|
|
1585
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1586
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1587
|
+
];
|
|
1588
|
+
}).s("InternetMonitor20210603", "DeleteMonitor", {}).n("InternetMonitorClient", "DeleteMonitorCommand").f(void 0, void 0).ser(se_DeleteMonitorCommand).de(de_DeleteMonitorCommand).build() {
|
|
1589
|
+
};
|
|
1590
|
+
__name(_DeleteMonitorCommand, "DeleteMonitorCommand");
|
|
1591
|
+
var DeleteMonitorCommand = _DeleteMonitorCommand;
|
|
1592
|
+
|
|
1593
|
+
// src/commands/GetHealthEventCommand.ts
|
|
1594
|
+
|
|
1595
|
+
|
|
1596
|
+
|
|
1597
|
+
|
|
1598
|
+
var _GetHealthEventCommand = class _GetHealthEventCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1599
|
+
...commonParams
|
|
1600
|
+
}).m(function(Command, cs, config, o) {
|
|
1601
|
+
return [
|
|
1602
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1603
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1604
|
+
];
|
|
1605
|
+
}).s("InternetMonitor20210603", "GetHealthEvent", {}).n("InternetMonitorClient", "GetHealthEventCommand").f(void 0, void 0).ser(se_GetHealthEventCommand).de(de_GetHealthEventCommand).build() {
|
|
1606
|
+
};
|
|
1607
|
+
__name(_GetHealthEventCommand, "GetHealthEventCommand");
|
|
1608
|
+
var GetHealthEventCommand = _GetHealthEventCommand;
|
|
1609
|
+
|
|
1610
|
+
// src/commands/GetMonitorCommand.ts
|
|
1611
|
+
|
|
1612
|
+
|
|
1613
|
+
|
|
1614
|
+
|
|
1615
|
+
var _GetMonitorCommand = class _GetMonitorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1616
|
+
...commonParams
|
|
1617
|
+
}).m(function(Command, cs, config, o) {
|
|
1618
|
+
return [
|
|
1619
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1620
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1621
|
+
];
|
|
1622
|
+
}).s("InternetMonitor20210603", "GetMonitor", {}).n("InternetMonitorClient", "GetMonitorCommand").f(void 0, void 0).ser(se_GetMonitorCommand).de(de_GetMonitorCommand).build() {
|
|
1623
|
+
};
|
|
1624
|
+
__name(_GetMonitorCommand, "GetMonitorCommand");
|
|
1625
|
+
var GetMonitorCommand = _GetMonitorCommand;
|
|
1626
|
+
|
|
1627
|
+
// src/commands/GetQueryResultsCommand.ts
|
|
1628
|
+
|
|
1629
|
+
|
|
1630
|
+
|
|
1631
|
+
|
|
1632
|
+
var _GetQueryResultsCommand = class _GetQueryResultsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1633
|
+
...commonParams
|
|
1634
|
+
}).m(function(Command, cs, config, o) {
|
|
1635
|
+
return [
|
|
1636
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1637
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1638
|
+
];
|
|
1639
|
+
}).s("InternetMonitor20210603", "GetQueryResults", {}).n("InternetMonitorClient", "GetQueryResultsCommand").f(void 0, void 0).ser(se_GetQueryResultsCommand).de(de_GetQueryResultsCommand).build() {
|
|
1640
|
+
};
|
|
1641
|
+
__name(_GetQueryResultsCommand, "GetQueryResultsCommand");
|
|
1642
|
+
var GetQueryResultsCommand = _GetQueryResultsCommand;
|
|
1643
|
+
|
|
1644
|
+
// src/commands/GetQueryStatusCommand.ts
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
|
|
1648
|
+
|
|
1649
|
+
var _GetQueryStatusCommand = class _GetQueryStatusCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1650
|
+
...commonParams
|
|
1651
|
+
}).m(function(Command, cs, config, o) {
|
|
1652
|
+
return [
|
|
1653
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1654
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1655
|
+
];
|
|
1656
|
+
}).s("InternetMonitor20210603", "GetQueryStatus", {}).n("InternetMonitorClient", "GetQueryStatusCommand").f(void 0, void 0).ser(se_GetQueryStatusCommand).de(de_GetQueryStatusCommand).build() {
|
|
1657
|
+
};
|
|
1658
|
+
__name(_GetQueryStatusCommand, "GetQueryStatusCommand");
|
|
1659
|
+
var GetQueryStatusCommand = _GetQueryStatusCommand;
|
|
1660
|
+
|
|
1661
|
+
// src/commands/ListHealthEventsCommand.ts
|
|
1662
|
+
|
|
1663
|
+
|
|
1664
|
+
|
|
1665
|
+
|
|
1666
|
+
var _ListHealthEventsCommand = class _ListHealthEventsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1667
|
+
...commonParams
|
|
1668
|
+
}).m(function(Command, cs, config, o) {
|
|
1669
|
+
return [
|
|
1670
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1671
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1672
|
+
];
|
|
1673
|
+
}).s("InternetMonitor20210603", "ListHealthEvents", {}).n("InternetMonitorClient", "ListHealthEventsCommand").f(void 0, void 0).ser(se_ListHealthEventsCommand).de(de_ListHealthEventsCommand).build() {
|
|
1674
|
+
};
|
|
1675
|
+
__name(_ListHealthEventsCommand, "ListHealthEventsCommand");
|
|
1676
|
+
var ListHealthEventsCommand = _ListHealthEventsCommand;
|
|
1677
|
+
|
|
1678
|
+
// src/commands/ListMonitorsCommand.ts
|
|
1679
|
+
|
|
1680
|
+
|
|
1681
|
+
|
|
1682
|
+
|
|
1683
|
+
var _ListMonitorsCommand = class _ListMonitorsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1684
|
+
...commonParams
|
|
1685
|
+
}).m(function(Command, cs, config, o) {
|
|
1686
|
+
return [
|
|
1687
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1688
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1689
|
+
];
|
|
1690
|
+
}).s("InternetMonitor20210603", "ListMonitors", {}).n("InternetMonitorClient", "ListMonitorsCommand").f(void 0, void 0).ser(se_ListMonitorsCommand).de(de_ListMonitorsCommand).build() {
|
|
1691
|
+
};
|
|
1692
|
+
__name(_ListMonitorsCommand, "ListMonitorsCommand");
|
|
1693
|
+
var ListMonitorsCommand = _ListMonitorsCommand;
|
|
1694
|
+
|
|
1695
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
1696
|
+
|
|
1697
|
+
|
|
1698
|
+
|
|
1699
|
+
|
|
1700
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1701
|
+
...commonParams
|
|
1702
|
+
}).m(function(Command, cs, config, o) {
|
|
1703
|
+
return [
|
|
1704
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1705
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1706
|
+
];
|
|
1707
|
+
}).s("InternetMonitor20210603", "ListTagsForResource", {}).n("InternetMonitorClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1708
|
+
};
|
|
1709
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
1710
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
1711
|
+
|
|
1712
|
+
// src/commands/StartQueryCommand.ts
|
|
1713
|
+
|
|
1714
|
+
|
|
1715
|
+
|
|
1716
|
+
|
|
1717
|
+
var _StartQueryCommand = class _StartQueryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1718
|
+
...commonParams
|
|
1719
|
+
}).m(function(Command, cs, config, o) {
|
|
1720
|
+
return [
|
|
1721
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1722
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1723
|
+
];
|
|
1724
|
+
}).s("InternetMonitor20210603", "StartQuery", {}).n("InternetMonitorClient", "StartQueryCommand").f(void 0, void 0).ser(se_StartQueryCommand).de(de_StartQueryCommand).build() {
|
|
1725
|
+
};
|
|
1726
|
+
__name(_StartQueryCommand, "StartQueryCommand");
|
|
1727
|
+
var StartQueryCommand = _StartQueryCommand;
|
|
1728
|
+
|
|
1729
|
+
// src/commands/StopQueryCommand.ts
|
|
1730
|
+
|
|
1731
|
+
|
|
1732
|
+
|
|
1733
|
+
|
|
1734
|
+
var _StopQueryCommand = class _StopQueryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1735
|
+
...commonParams
|
|
1736
|
+
}).m(function(Command, cs, config, o) {
|
|
1737
|
+
return [
|
|
1738
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1739
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1740
|
+
];
|
|
1741
|
+
}).s("InternetMonitor20210603", "StopQuery", {}).n("InternetMonitorClient", "StopQueryCommand").f(void 0, void 0).ser(se_StopQueryCommand).de(de_StopQueryCommand).build() {
|
|
1742
|
+
};
|
|
1743
|
+
__name(_StopQueryCommand, "StopQueryCommand");
|
|
1744
|
+
var StopQueryCommand = _StopQueryCommand;
|
|
1745
|
+
|
|
1746
|
+
// src/commands/TagResourceCommand.ts
|
|
1747
|
+
|
|
1748
|
+
|
|
1749
|
+
|
|
1750
|
+
|
|
1751
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1752
|
+
...commonParams
|
|
1753
|
+
}).m(function(Command, cs, config, o) {
|
|
1754
|
+
return [
|
|
1755
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1756
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1757
|
+
];
|
|
1758
|
+
}).s("InternetMonitor20210603", "TagResource", {}).n("InternetMonitorClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1759
|
+
};
|
|
1760
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
1761
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
1762
|
+
|
|
1763
|
+
// src/commands/UntagResourceCommand.ts
|
|
1764
|
+
|
|
1765
|
+
|
|
1766
|
+
|
|
1767
|
+
|
|
1768
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1769
|
+
...commonParams
|
|
1770
|
+
}).m(function(Command, cs, config, o) {
|
|
1771
|
+
return [
|
|
1772
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1773
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1774
|
+
];
|
|
1775
|
+
}).s("InternetMonitor20210603", "UntagResource", {}).n("InternetMonitorClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
1776
|
+
};
|
|
1777
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
1778
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
1779
|
+
|
|
1780
|
+
// src/commands/UpdateMonitorCommand.ts
|
|
1781
|
+
|
|
1782
|
+
|
|
1783
|
+
|
|
1784
|
+
|
|
1785
|
+
var _UpdateMonitorCommand = class _UpdateMonitorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1786
|
+
...commonParams
|
|
1787
|
+
}).m(function(Command, cs, config, o) {
|
|
1788
|
+
return [
|
|
1789
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1790
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1791
|
+
];
|
|
1792
|
+
}).s("InternetMonitor20210603", "UpdateMonitor", {}).n("InternetMonitorClient", "UpdateMonitorCommand").f(void 0, void 0).ser(se_UpdateMonitorCommand).de(de_UpdateMonitorCommand).build() {
|
|
1793
|
+
};
|
|
1794
|
+
__name(_UpdateMonitorCommand, "UpdateMonitorCommand");
|
|
1795
|
+
var UpdateMonitorCommand = _UpdateMonitorCommand;
|
|
1796
|
+
|
|
1797
|
+
// src/InternetMonitor.ts
|
|
1798
|
+
var commands = {
|
|
1799
|
+
CreateMonitorCommand,
|
|
1800
|
+
DeleteMonitorCommand,
|
|
1801
|
+
GetHealthEventCommand,
|
|
1802
|
+
GetMonitorCommand,
|
|
1803
|
+
GetQueryResultsCommand,
|
|
1804
|
+
GetQueryStatusCommand,
|
|
1805
|
+
ListHealthEventsCommand,
|
|
1806
|
+
ListMonitorsCommand,
|
|
1807
|
+
ListTagsForResourceCommand,
|
|
1808
|
+
StartQueryCommand,
|
|
1809
|
+
StopQueryCommand,
|
|
1810
|
+
TagResourceCommand,
|
|
1811
|
+
UntagResourceCommand,
|
|
1812
|
+
UpdateMonitorCommand
|
|
1813
|
+
};
|
|
1814
|
+
var _InternetMonitor = class _InternetMonitor extends InternetMonitorClient {
|
|
1815
|
+
};
|
|
1816
|
+
__name(_InternetMonitor, "InternetMonitor");
|
|
1817
|
+
var InternetMonitor = _InternetMonitor;
|
|
1818
|
+
(0, import_smithy_client.createAggregatedClient)(commands, InternetMonitor);
|
|
1819
|
+
|
|
1820
|
+
// src/pagination/GetQueryResultsPaginator.ts
|
|
1821
|
+
|
|
1822
|
+
var paginateGetQueryResults = (0, import_core.createPaginator)(InternetMonitorClient, GetQueryResultsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1823
|
+
|
|
1824
|
+
// src/pagination/ListHealthEventsPaginator.ts
|
|
1825
|
+
|
|
1826
|
+
var paginateListHealthEvents = (0, import_core.createPaginator)(InternetMonitorClient, ListHealthEventsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1827
|
+
|
|
1828
|
+
// src/pagination/ListMonitorsPaginator.ts
|
|
1829
|
+
|
|
1830
|
+
var paginateListMonitors = (0, import_core.createPaginator)(InternetMonitorClient, ListMonitorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1831
|
+
|
|
1832
|
+
// src/index.ts
|
|
1833
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1834
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1835
|
+
0 && (module.exports = {
|
|
1836
|
+
AccessDeniedException,
|
|
1837
|
+
BadRequestException,
|
|
1838
|
+
ConflictException,
|
|
1839
|
+
CreateMonitorCommand,
|
|
1840
|
+
DeleteMonitorCommand,
|
|
1841
|
+
GetHealthEventCommand,
|
|
1842
|
+
GetMonitorCommand,
|
|
1843
|
+
GetQueryResultsCommand,
|
|
1844
|
+
GetQueryStatusCommand,
|
|
1845
|
+
HealthEventImpactType,
|
|
1846
|
+
HealthEventStatus,
|
|
1847
|
+
InternalServerErrorException,
|
|
1848
|
+
InternalServerException,
|
|
1849
|
+
InternetMonitor,
|
|
1850
|
+
InternetMonitorClient,
|
|
1851
|
+
InternetMonitorServiceException,
|
|
1852
|
+
LimitExceededException,
|
|
1853
|
+
ListHealthEventsCommand,
|
|
1854
|
+
ListMonitorsCommand,
|
|
1855
|
+
ListTagsForResourceCommand,
|
|
1856
|
+
LocalHealthEventsConfigStatus,
|
|
1857
|
+
LogDeliveryStatus,
|
|
1858
|
+
MonitorConfigState,
|
|
1859
|
+
MonitorProcessingStatusCode,
|
|
1860
|
+
NotFoundException,
|
|
1861
|
+
Operator,
|
|
1862
|
+
QueryStatus,
|
|
1863
|
+
QueryType,
|
|
1864
|
+
ResourceNotFoundException,
|
|
1865
|
+
StartQueryCommand,
|
|
1866
|
+
StopQueryCommand,
|
|
1867
|
+
TagResourceCommand,
|
|
1868
|
+
ThrottlingException,
|
|
1869
|
+
TooManyRequestsException,
|
|
1870
|
+
TriangulationEventType,
|
|
1871
|
+
UntagResourceCommand,
|
|
1872
|
+
UpdateMonitorCommand,
|
|
1873
|
+
ValidationException,
|
|
1874
|
+
__Client,
|
|
1875
|
+
paginateGetQueryResults,
|
|
1876
|
+
paginateListHealthEvents,
|
|
1877
|
+
paginateListMonitors
|
|
1878
|
+
});
|