@aws-sdk/client-internetmonitor 3.899.0 → 3.906.0

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