@aws-sdk/client-internetmonitor 3.306.0 → 3.309.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.
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateMonitorCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListMonitorsCommand = exports.deserializeAws_restJson1ListHealthEventsCommand = exports.deserializeAws_restJson1GetMonitorCommand = exports.deserializeAws_restJson1GetHealthEventCommand = exports.deserializeAws_restJson1DeleteMonitorCommand = exports.deserializeAws_restJson1CreateMonitorCommand = exports.serializeAws_restJson1UpdateMonitorCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListMonitorsCommand = exports.serializeAws_restJson1ListHealthEventsCommand = exports.serializeAws_restJson1GetMonitorCommand = exports.serializeAws_restJson1GetHealthEventCommand = exports.serializeAws_restJson1DeleteMonitorCommand = exports.serializeAws_restJson1CreateMonitorCommand = void 0;
3
+ exports.de_UpdateMonitorCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListMonitorsCommand = exports.de_ListHealthEventsCommand = exports.de_GetMonitorCommand = exports.de_GetHealthEventCommand = exports.de_DeleteMonitorCommand = exports.de_CreateMonitorCommand = exports.se_UpdateMonitorCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListMonitorsCommand = exports.se_ListHealthEventsCommand = exports.se_GetMonitorCommand = exports.se_GetHealthEventCommand = exports.se_DeleteMonitorCommand = exports.se_CreateMonitorCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const uuid_1 = require("uuid");
7
7
  const InternetMonitorServiceException_1 = require("../models/InternetMonitorServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
- const serializeAws_restJson1CreateMonitorCommand = async (input, context) => {
9
+ const se_CreateMonitorCommand = async (input, context) => {
10
10
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
11
  const headers = {
12
12
  "content-type": "application/json",
@@ -16,12 +16,12 @@ const serializeAws_restJson1CreateMonitorCommand = async (input, context) => {
16
16
  body = JSON.stringify({
17
17
  ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
18
18
  ...(input.InternetMeasurementsLogDelivery != null && {
19
- InternetMeasurementsLogDelivery: serializeAws_restJson1InternetMeasurementsLogDelivery(input.InternetMeasurementsLogDelivery, context),
19
+ InternetMeasurementsLogDelivery: se_InternetMeasurementsLogDelivery(input.InternetMeasurementsLogDelivery, context),
20
20
  }),
21
21
  ...(input.MaxCityNetworksToMonitor != null && { MaxCityNetworksToMonitor: input.MaxCityNetworksToMonitor }),
22
22
  ...(input.MonitorName != null && { MonitorName: input.MonitorName }),
23
- ...(input.Resources != null && { Resources: serializeAws_restJson1SetOfARNs(input.Resources, context) }),
24
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
23
+ ...(input.Resources != null && { Resources: se_SetOfARNs(input.Resources, context) }),
24
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
25
25
  });
26
26
  return new protocol_http_1.HttpRequest({
27
27
  protocol,
@@ -33,8 +33,8 @@ const serializeAws_restJson1CreateMonitorCommand = async (input, context) => {
33
33
  body,
34
34
  });
35
35
  };
36
- exports.serializeAws_restJson1CreateMonitorCommand = serializeAws_restJson1CreateMonitorCommand;
37
- const serializeAws_restJson1DeleteMonitorCommand = async (input, context) => {
36
+ exports.se_CreateMonitorCommand = se_CreateMonitorCommand;
37
+ const se_DeleteMonitorCommand = async (input, context) => {
38
38
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
39
39
  const headers = {};
40
40
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20210603/Monitors/{MonitorName}";
@@ -50,8 +50,8 @@ const serializeAws_restJson1DeleteMonitorCommand = async (input, context) => {
50
50
  body,
51
51
  });
52
52
  };
53
- exports.serializeAws_restJson1DeleteMonitorCommand = serializeAws_restJson1DeleteMonitorCommand;
54
- const serializeAws_restJson1GetHealthEventCommand = async (input, context) => {
53
+ exports.se_DeleteMonitorCommand = se_DeleteMonitorCommand;
54
+ const se_GetHealthEventCommand = async (input, context) => {
55
55
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
56
56
  const headers = {};
57
57
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -69,8 +69,8 @@ const serializeAws_restJson1GetHealthEventCommand = async (input, context) => {
69
69
  body,
70
70
  });
71
71
  };
72
- exports.serializeAws_restJson1GetHealthEventCommand = serializeAws_restJson1GetHealthEventCommand;
73
- const serializeAws_restJson1GetMonitorCommand = async (input, context) => {
72
+ exports.se_GetHealthEventCommand = se_GetHealthEventCommand;
73
+ const se_GetMonitorCommand = async (input, context) => {
74
74
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
75
75
  const headers = {};
76
76
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20210603/Monitors/{MonitorName}";
@@ -86,8 +86,8 @@ const serializeAws_restJson1GetMonitorCommand = async (input, context) => {
86
86
  body,
87
87
  });
88
88
  };
89
- exports.serializeAws_restJson1GetMonitorCommand = serializeAws_restJson1GetMonitorCommand;
90
- const serializeAws_restJson1ListHealthEventsCommand = async (input, context) => {
89
+ exports.se_GetMonitorCommand = se_GetMonitorCommand;
90
+ const se_ListHealthEventsCommand = async (input, context) => {
91
91
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
92
92
  const headers = {};
93
93
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -115,8 +115,8 @@ const serializeAws_restJson1ListHealthEventsCommand = async (input, context) =>
115
115
  body,
116
116
  });
117
117
  };
118
- exports.serializeAws_restJson1ListHealthEventsCommand = serializeAws_restJson1ListHealthEventsCommand;
119
- const serializeAws_restJson1ListMonitorsCommand = async (input, context) => {
118
+ exports.se_ListHealthEventsCommand = se_ListHealthEventsCommand;
119
+ const se_ListMonitorsCommand = async (input, context) => {
120
120
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
121
121
  const headers = {};
122
122
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20210603/Monitors";
@@ -137,8 +137,8 @@ const serializeAws_restJson1ListMonitorsCommand = async (input, context) => {
137
137
  body,
138
138
  });
139
139
  };
140
- exports.serializeAws_restJson1ListMonitorsCommand = serializeAws_restJson1ListMonitorsCommand;
141
- const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
140
+ exports.se_ListMonitorsCommand = se_ListMonitorsCommand;
141
+ const se_ListTagsForResourceCommand = async (input, context) => {
142
142
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
143
143
  const headers = {};
144
144
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -154,8 +154,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
154
154
  body,
155
155
  });
156
156
  };
157
- exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
158
- const serializeAws_restJson1TagResourceCommand = async (input, context) => {
157
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
158
+ const se_TagResourceCommand = async (input, context) => {
159
159
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
160
160
  const headers = {
161
161
  "content-type": "application/json",
@@ -164,7 +164,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
164
164
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
165
165
  let body;
166
166
  body = JSON.stringify({
167
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
167
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
168
168
  });
169
169
  return new protocol_http_1.HttpRequest({
170
170
  protocol,
@@ -176,8 +176,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
176
176
  body,
177
177
  });
178
178
  };
179
- exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
180
- const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
179
+ exports.se_TagResourceCommand = se_TagResourceCommand;
180
+ const se_UntagResourceCommand = async (input, context) => {
181
181
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
182
182
  const headers = {};
183
183
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -200,8 +200,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
200
200
  body,
201
201
  });
202
202
  };
203
- exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
204
- const serializeAws_restJson1UpdateMonitorCommand = async (input, context) => {
203
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
204
+ const se_UpdateMonitorCommand = async (input, context) => {
205
205
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
206
206
  const headers = {
207
207
  "content-type": "application/json",
@@ -212,15 +212,11 @@ const serializeAws_restJson1UpdateMonitorCommand = async (input, context) => {
212
212
  body = JSON.stringify({
213
213
  ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
214
214
  ...(input.InternetMeasurementsLogDelivery != null && {
215
- InternetMeasurementsLogDelivery: serializeAws_restJson1InternetMeasurementsLogDelivery(input.InternetMeasurementsLogDelivery, context),
215
+ InternetMeasurementsLogDelivery: se_InternetMeasurementsLogDelivery(input.InternetMeasurementsLogDelivery, context),
216
216
  }),
217
217
  ...(input.MaxCityNetworksToMonitor != null && { MaxCityNetworksToMonitor: input.MaxCityNetworksToMonitor }),
218
- ...(input.ResourcesToAdd != null && {
219
- ResourcesToAdd: serializeAws_restJson1SetOfARNs(input.ResourcesToAdd, context),
220
- }),
221
- ...(input.ResourcesToRemove != null && {
222
- ResourcesToRemove: serializeAws_restJson1SetOfARNs(input.ResourcesToRemove, context),
223
- }),
218
+ ...(input.ResourcesToAdd != null && { ResourcesToAdd: se_SetOfARNs(input.ResourcesToAdd, context) }),
219
+ ...(input.ResourcesToRemove != null && { ResourcesToRemove: se_SetOfARNs(input.ResourcesToRemove, context) }),
224
220
  ...(input.Status != null && { Status: input.Status }),
225
221
  });
226
222
  return new protocol_http_1.HttpRequest({
@@ -233,10 +229,10 @@ const serializeAws_restJson1UpdateMonitorCommand = async (input, context) => {
233
229
  body,
234
230
  });
235
231
  };
236
- exports.serializeAws_restJson1UpdateMonitorCommand = serializeAws_restJson1UpdateMonitorCommand;
237
- const deserializeAws_restJson1CreateMonitorCommand = async (output, context) => {
232
+ exports.se_UpdateMonitorCommand = se_UpdateMonitorCommand;
233
+ const de_CreateMonitorCommand = async (output, context) => {
238
234
  if (output.statusCode !== 200 && output.statusCode >= 300) {
239
- return deserializeAws_restJson1CreateMonitorCommandError(output, context);
235
+ return de_CreateMonitorCommandError(output, context);
240
236
  }
241
237
  const contents = map({
242
238
  $metadata: deserializeMetadata(output),
@@ -250,8 +246,8 @@ const deserializeAws_restJson1CreateMonitorCommand = async (output, context) =>
250
246
  }
251
247
  return contents;
252
248
  };
253
- exports.deserializeAws_restJson1CreateMonitorCommand = deserializeAws_restJson1CreateMonitorCommand;
254
- const deserializeAws_restJson1CreateMonitorCommandError = async (output, context) => {
249
+ exports.de_CreateMonitorCommand = de_CreateMonitorCommand;
250
+ const de_CreateMonitorCommandError = async (output, context) => {
255
251
  const parsedOutput = {
256
252
  ...output,
257
253
  body: await parseErrorBody(output.body, context),
@@ -260,22 +256,22 @@ const deserializeAws_restJson1CreateMonitorCommandError = async (output, context
260
256
  switch (errorCode) {
261
257
  case "AccessDeniedException":
262
258
  case "com.amazonaws.internetmonitor#AccessDeniedException":
263
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
259
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
264
260
  case "ConflictException":
265
261
  case "com.amazonaws.internetmonitor#ConflictException":
266
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
262
+ throw await de_ConflictExceptionRes(parsedOutput, context);
267
263
  case "InternalServerException":
268
264
  case "com.amazonaws.internetmonitor#InternalServerException":
269
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
265
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
270
266
  case "LimitExceededException":
271
267
  case "com.amazonaws.internetmonitor#LimitExceededException":
272
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
268
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
273
269
  case "ThrottlingException":
274
270
  case "com.amazonaws.internetmonitor#ThrottlingException":
275
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
271
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
276
272
  case "ValidationException":
277
273
  case "com.amazonaws.internetmonitor#ValidationException":
278
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
274
+ throw await de_ValidationExceptionRes(parsedOutput, context);
279
275
  default:
280
276
  const parsedBody = parsedOutput.body;
281
277
  (0, smithy_client_1.throwDefaultError)({
@@ -286,9 +282,9 @@ const deserializeAws_restJson1CreateMonitorCommandError = async (output, context
286
282
  });
287
283
  }
288
284
  };
289
- const deserializeAws_restJson1DeleteMonitorCommand = async (output, context) => {
285
+ const de_DeleteMonitorCommand = async (output, context) => {
290
286
  if (output.statusCode !== 200 && output.statusCode >= 300) {
291
- return deserializeAws_restJson1DeleteMonitorCommandError(output, context);
287
+ return de_DeleteMonitorCommandError(output, context);
292
288
  }
293
289
  const contents = map({
294
290
  $metadata: deserializeMetadata(output),
@@ -296,8 +292,8 @@ const deserializeAws_restJson1DeleteMonitorCommand = async (output, context) =>
296
292
  await collectBody(output.body, context);
297
293
  return contents;
298
294
  };
299
- exports.deserializeAws_restJson1DeleteMonitorCommand = deserializeAws_restJson1DeleteMonitorCommand;
300
- const deserializeAws_restJson1DeleteMonitorCommandError = async (output, context) => {
295
+ exports.de_DeleteMonitorCommand = de_DeleteMonitorCommand;
296
+ const de_DeleteMonitorCommandError = async (output, context) => {
301
297
  const parsedOutput = {
302
298
  ...output,
303
299
  body: await parseErrorBody(output.body, context),
@@ -306,16 +302,16 @@ const deserializeAws_restJson1DeleteMonitorCommandError = async (output, context
306
302
  switch (errorCode) {
307
303
  case "AccessDeniedException":
308
304
  case "com.amazonaws.internetmonitor#AccessDeniedException":
309
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
305
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
310
306
  case "InternalServerException":
311
307
  case "com.amazonaws.internetmonitor#InternalServerException":
312
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
308
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
313
309
  case "ThrottlingException":
314
310
  case "com.amazonaws.internetmonitor#ThrottlingException":
315
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
311
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
316
312
  case "ValidationException":
317
313
  case "com.amazonaws.internetmonitor#ValidationException":
318
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
314
+ throw await de_ValidationExceptionRes(parsedOutput, context);
319
315
  default:
320
316
  const parsedBody = parsedOutput.body;
321
317
  (0, smithy_client_1.throwDefaultError)({
@@ -326,9 +322,9 @@ const deserializeAws_restJson1DeleteMonitorCommandError = async (output, context
326
322
  });
327
323
  }
328
324
  };
329
- const deserializeAws_restJson1GetHealthEventCommand = async (output, context) => {
325
+ const de_GetHealthEventCommand = async (output, context) => {
330
326
  if (output.statusCode !== 200 && output.statusCode >= 300) {
331
- return deserializeAws_restJson1GetHealthEventCommandError(output, context);
327
+ return de_GetHealthEventCommandError(output, context);
332
328
  }
333
329
  const contents = map({
334
330
  $metadata: deserializeMetadata(output),
@@ -350,7 +346,7 @@ const deserializeAws_restJson1GetHealthEventCommand = async (output, context) =>
350
346
  contents.ImpactType = (0, smithy_client_1.expectString)(data.ImpactType);
351
347
  }
352
348
  if (data.ImpactedLocations != null) {
353
- contents.ImpactedLocations = deserializeAws_restJson1ImpactedLocationsList(data.ImpactedLocations, context);
349
+ contents.ImpactedLocations = de_ImpactedLocationsList(data.ImpactedLocations, context);
354
350
  }
355
351
  if (data.LastUpdatedAt != null) {
356
352
  contents.LastUpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.LastUpdatedAt));
@@ -366,8 +362,8 @@ const deserializeAws_restJson1GetHealthEventCommand = async (output, context) =>
366
362
  }
367
363
  return contents;
368
364
  };
369
- exports.deserializeAws_restJson1GetHealthEventCommand = deserializeAws_restJson1GetHealthEventCommand;
370
- const deserializeAws_restJson1GetHealthEventCommandError = async (output, context) => {
365
+ exports.de_GetHealthEventCommand = de_GetHealthEventCommand;
366
+ const de_GetHealthEventCommandError = async (output, context) => {
371
367
  const parsedOutput = {
372
368
  ...output,
373
369
  body: await parseErrorBody(output.body, context),
@@ -376,16 +372,16 @@ const deserializeAws_restJson1GetHealthEventCommandError = async (output, contex
376
372
  switch (errorCode) {
377
373
  case "AccessDeniedException":
378
374
  case "com.amazonaws.internetmonitor#AccessDeniedException":
379
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
375
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
380
376
  case "InternalServerException":
381
377
  case "com.amazonaws.internetmonitor#InternalServerException":
382
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
378
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
383
379
  case "ThrottlingException":
384
380
  case "com.amazonaws.internetmonitor#ThrottlingException":
385
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
381
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
386
382
  case "ValidationException":
387
383
  case "com.amazonaws.internetmonitor#ValidationException":
388
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
384
+ throw await de_ValidationExceptionRes(parsedOutput, context);
389
385
  default:
390
386
  const parsedBody = parsedOutput.body;
391
387
  (0, smithy_client_1.throwDefaultError)({
@@ -396,9 +392,9 @@ const deserializeAws_restJson1GetHealthEventCommandError = async (output, contex
396
392
  });
397
393
  }
398
394
  };
399
- const deserializeAws_restJson1GetMonitorCommand = async (output, context) => {
395
+ const de_GetMonitorCommand = async (output, context) => {
400
396
  if (output.statusCode !== 200 && output.statusCode >= 300) {
401
- return deserializeAws_restJson1GetMonitorCommandError(output, context);
397
+ return de_GetMonitorCommandError(output, context);
402
398
  }
403
399
  const contents = map({
404
400
  $metadata: deserializeMetadata(output),
@@ -408,7 +404,7 @@ const deserializeAws_restJson1GetMonitorCommand = async (output, context) => {
408
404
  contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.CreatedAt));
409
405
  }
410
406
  if (data.InternetMeasurementsLogDelivery != null) {
411
- contents.InternetMeasurementsLogDelivery = deserializeAws_restJson1InternetMeasurementsLogDelivery(data.InternetMeasurementsLogDelivery, context);
407
+ contents.InternetMeasurementsLogDelivery = de_InternetMeasurementsLogDelivery(data.InternetMeasurementsLogDelivery, context);
412
408
  }
413
409
  if (data.MaxCityNetworksToMonitor != null) {
414
410
  contents.MaxCityNetworksToMonitor = (0, smithy_client_1.expectInt32)(data.MaxCityNetworksToMonitor);
@@ -429,18 +425,18 @@ const deserializeAws_restJson1GetMonitorCommand = async (output, context) => {
429
425
  contents.ProcessingStatusInfo = (0, smithy_client_1.expectString)(data.ProcessingStatusInfo);
430
426
  }
431
427
  if (data.Resources != null) {
432
- contents.Resources = deserializeAws_restJson1SetOfARNs(data.Resources, context);
428
+ contents.Resources = de_SetOfARNs(data.Resources, context);
433
429
  }
434
430
  if (data.Status != null) {
435
431
  contents.Status = (0, smithy_client_1.expectString)(data.Status);
436
432
  }
437
433
  if (data.Tags != null) {
438
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
434
+ contents.Tags = de_TagMap(data.Tags, context);
439
435
  }
440
436
  return contents;
441
437
  };
442
- exports.deserializeAws_restJson1GetMonitorCommand = deserializeAws_restJson1GetMonitorCommand;
443
- const deserializeAws_restJson1GetMonitorCommandError = async (output, context) => {
438
+ exports.de_GetMonitorCommand = de_GetMonitorCommand;
439
+ const de_GetMonitorCommandError = async (output, context) => {
444
440
  const parsedOutput = {
445
441
  ...output,
446
442
  body: await parseErrorBody(output.body, context),
@@ -449,16 +445,16 @@ const deserializeAws_restJson1GetMonitorCommandError = async (output, context) =
449
445
  switch (errorCode) {
450
446
  case "AccessDeniedException":
451
447
  case "com.amazonaws.internetmonitor#AccessDeniedException":
452
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
448
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
453
449
  case "InternalServerException":
454
450
  case "com.amazonaws.internetmonitor#InternalServerException":
455
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
451
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
456
452
  case "ThrottlingException":
457
453
  case "com.amazonaws.internetmonitor#ThrottlingException":
458
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
454
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
459
455
  case "ValidationException":
460
456
  case "com.amazonaws.internetmonitor#ValidationException":
461
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
457
+ throw await de_ValidationExceptionRes(parsedOutput, context);
462
458
  default:
463
459
  const parsedBody = parsedOutput.body;
464
460
  (0, smithy_client_1.throwDefaultError)({
@@ -469,24 +465,24 @@ const deserializeAws_restJson1GetMonitorCommandError = async (output, context) =
469
465
  });
470
466
  }
471
467
  };
472
- const deserializeAws_restJson1ListHealthEventsCommand = async (output, context) => {
468
+ const de_ListHealthEventsCommand = async (output, context) => {
473
469
  if (output.statusCode !== 200 && output.statusCode >= 300) {
474
- return deserializeAws_restJson1ListHealthEventsCommandError(output, context);
470
+ return de_ListHealthEventsCommandError(output, context);
475
471
  }
476
472
  const contents = map({
477
473
  $metadata: deserializeMetadata(output),
478
474
  });
479
475
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
480
476
  if (data.HealthEvents != null) {
481
- contents.HealthEvents = deserializeAws_restJson1HealthEventList(data.HealthEvents, context);
477
+ contents.HealthEvents = de_HealthEventList(data.HealthEvents, context);
482
478
  }
483
479
  if (data.NextToken != null) {
484
480
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
485
481
  }
486
482
  return contents;
487
483
  };
488
- exports.deserializeAws_restJson1ListHealthEventsCommand = deserializeAws_restJson1ListHealthEventsCommand;
489
- const deserializeAws_restJson1ListHealthEventsCommandError = async (output, context) => {
484
+ exports.de_ListHealthEventsCommand = de_ListHealthEventsCommand;
485
+ const de_ListHealthEventsCommandError = async (output, context) => {
490
486
  const parsedOutput = {
491
487
  ...output,
492
488
  body: await parseErrorBody(output.body, context),
@@ -495,16 +491,16 @@ const deserializeAws_restJson1ListHealthEventsCommandError = async (output, cont
495
491
  switch (errorCode) {
496
492
  case "AccessDeniedException":
497
493
  case "com.amazonaws.internetmonitor#AccessDeniedException":
498
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
494
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
499
495
  case "InternalServerException":
500
496
  case "com.amazonaws.internetmonitor#InternalServerException":
501
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
497
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
502
498
  case "ThrottlingException":
503
499
  case "com.amazonaws.internetmonitor#ThrottlingException":
504
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
500
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
505
501
  case "ValidationException":
506
502
  case "com.amazonaws.internetmonitor#ValidationException":
507
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
503
+ throw await de_ValidationExceptionRes(parsedOutput, context);
508
504
  default:
509
505
  const parsedBody = parsedOutput.body;
510
506
  (0, smithy_client_1.throwDefaultError)({
@@ -515,24 +511,24 @@ const deserializeAws_restJson1ListHealthEventsCommandError = async (output, cont
515
511
  });
516
512
  }
517
513
  };
518
- const deserializeAws_restJson1ListMonitorsCommand = async (output, context) => {
514
+ const de_ListMonitorsCommand = async (output, context) => {
519
515
  if (output.statusCode !== 200 && output.statusCode >= 300) {
520
- return deserializeAws_restJson1ListMonitorsCommandError(output, context);
516
+ return de_ListMonitorsCommandError(output, context);
521
517
  }
522
518
  const contents = map({
523
519
  $metadata: deserializeMetadata(output),
524
520
  });
525
521
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
526
522
  if (data.Monitors != null) {
527
- contents.Monitors = deserializeAws_restJson1MonitorList(data.Monitors, context);
523
+ contents.Monitors = de_MonitorList(data.Monitors, context);
528
524
  }
529
525
  if (data.NextToken != null) {
530
526
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
531
527
  }
532
528
  return contents;
533
529
  };
534
- exports.deserializeAws_restJson1ListMonitorsCommand = deserializeAws_restJson1ListMonitorsCommand;
535
- const deserializeAws_restJson1ListMonitorsCommandError = async (output, context) => {
530
+ exports.de_ListMonitorsCommand = de_ListMonitorsCommand;
531
+ const de_ListMonitorsCommandError = async (output, context) => {
536
532
  const parsedOutput = {
537
533
  ...output,
538
534
  body: await parseErrorBody(output.body, context),
@@ -541,16 +537,16 @@ const deserializeAws_restJson1ListMonitorsCommandError = async (output, context)
541
537
  switch (errorCode) {
542
538
  case "AccessDeniedException":
543
539
  case "com.amazonaws.internetmonitor#AccessDeniedException":
544
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
540
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
545
541
  case "InternalServerException":
546
542
  case "com.amazonaws.internetmonitor#InternalServerException":
547
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
543
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
548
544
  case "ThrottlingException":
549
545
  case "com.amazonaws.internetmonitor#ThrottlingException":
550
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
546
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
551
547
  case "ValidationException":
552
548
  case "com.amazonaws.internetmonitor#ValidationException":
553
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
549
+ throw await de_ValidationExceptionRes(parsedOutput, context);
554
550
  default:
555
551
  const parsedBody = parsedOutput.body;
556
552
  (0, smithy_client_1.throwDefaultError)({
@@ -561,21 +557,21 @@ const deserializeAws_restJson1ListMonitorsCommandError = async (output, context)
561
557
  });
562
558
  }
563
559
  };
564
- const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
560
+ const de_ListTagsForResourceCommand = async (output, context) => {
565
561
  if (output.statusCode !== 200 && output.statusCode >= 300) {
566
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
562
+ return de_ListTagsForResourceCommandError(output, context);
567
563
  }
568
564
  const contents = map({
569
565
  $metadata: deserializeMetadata(output),
570
566
  });
571
567
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
572
568
  if (data.Tags != null) {
573
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
569
+ contents.Tags = de_TagMap(data.Tags, context);
574
570
  }
575
571
  return contents;
576
572
  };
577
- exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
578
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
573
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
574
+ const de_ListTagsForResourceCommandError = async (output, context) => {
579
575
  const parsedOutput = {
580
576
  ...output,
581
577
  body: await parseErrorBody(output.body, context),
@@ -584,19 +580,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
584
580
  switch (errorCode) {
585
581
  case "AccessDeniedException":
586
582
  case "com.amazonaws.internetmonitor#AccessDeniedException":
587
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
583
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
588
584
  case "BadRequestException":
589
585
  case "com.amazonaws.internetmonitor#BadRequestException":
590
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
586
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
591
587
  case "InternalServerErrorException":
592
588
  case "com.amazonaws.internetmonitor#InternalServerErrorException":
593
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
589
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
594
590
  case "NotFoundException":
595
591
  case "com.amazonaws.internetmonitor#NotFoundException":
596
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
592
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
597
593
  case "TooManyRequestsException":
598
594
  case "com.amazonaws.internetmonitor#TooManyRequestsException":
599
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
595
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
600
596
  default:
601
597
  const parsedBody = parsedOutput.body;
602
598
  (0, smithy_client_1.throwDefaultError)({
@@ -607,9 +603,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
607
603
  });
608
604
  }
609
605
  };
610
- const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
606
+ const de_TagResourceCommand = async (output, context) => {
611
607
  if (output.statusCode !== 204 && output.statusCode >= 300) {
612
- return deserializeAws_restJson1TagResourceCommandError(output, context);
608
+ return de_TagResourceCommandError(output, context);
613
609
  }
614
610
  const contents = map({
615
611
  $metadata: deserializeMetadata(output),
@@ -617,8 +613,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
617
613
  await collectBody(output.body, context);
618
614
  return contents;
619
615
  };
620
- exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
621
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
616
+ exports.de_TagResourceCommand = de_TagResourceCommand;
617
+ const de_TagResourceCommandError = async (output, context) => {
622
618
  const parsedOutput = {
623
619
  ...output,
624
620
  body: await parseErrorBody(output.body, context),
@@ -627,19 +623,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
627
623
  switch (errorCode) {
628
624
  case "AccessDeniedException":
629
625
  case "com.amazonaws.internetmonitor#AccessDeniedException":
630
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
626
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
631
627
  case "BadRequestException":
632
628
  case "com.amazonaws.internetmonitor#BadRequestException":
633
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
629
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
634
630
  case "InternalServerErrorException":
635
631
  case "com.amazonaws.internetmonitor#InternalServerErrorException":
636
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
632
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
637
633
  case "NotFoundException":
638
634
  case "com.amazonaws.internetmonitor#NotFoundException":
639
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
635
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
640
636
  case "TooManyRequestsException":
641
637
  case "com.amazonaws.internetmonitor#TooManyRequestsException":
642
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
638
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
643
639
  default:
644
640
  const parsedBody = parsedOutput.body;
645
641
  (0, smithy_client_1.throwDefaultError)({
@@ -650,9 +646,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
650
646
  });
651
647
  }
652
648
  };
653
- const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
649
+ const de_UntagResourceCommand = async (output, context) => {
654
650
  if (output.statusCode !== 204 && output.statusCode >= 300) {
655
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
651
+ return de_UntagResourceCommandError(output, context);
656
652
  }
657
653
  const contents = map({
658
654
  $metadata: deserializeMetadata(output),
@@ -660,8 +656,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
660
656
  await collectBody(output.body, context);
661
657
  return contents;
662
658
  };
663
- exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
664
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
659
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
660
+ const de_UntagResourceCommandError = async (output, context) => {
665
661
  const parsedOutput = {
666
662
  ...output,
667
663
  body: await parseErrorBody(output.body, context),
@@ -670,19 +666,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
670
666
  switch (errorCode) {
671
667
  case "AccessDeniedException":
672
668
  case "com.amazonaws.internetmonitor#AccessDeniedException":
673
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
669
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
674
670
  case "BadRequestException":
675
671
  case "com.amazonaws.internetmonitor#BadRequestException":
676
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
672
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
677
673
  case "InternalServerErrorException":
678
674
  case "com.amazonaws.internetmonitor#InternalServerErrorException":
679
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
675
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
680
676
  case "NotFoundException":
681
677
  case "com.amazonaws.internetmonitor#NotFoundException":
682
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
678
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
683
679
  case "TooManyRequestsException":
684
680
  case "com.amazonaws.internetmonitor#TooManyRequestsException":
685
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
681
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
686
682
  default:
687
683
  const parsedBody = parsedOutput.body;
688
684
  (0, smithy_client_1.throwDefaultError)({
@@ -693,9 +689,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
693
689
  });
694
690
  }
695
691
  };
696
- const deserializeAws_restJson1UpdateMonitorCommand = async (output, context) => {
692
+ const de_UpdateMonitorCommand = async (output, context) => {
697
693
  if (output.statusCode !== 200 && output.statusCode >= 300) {
698
- return deserializeAws_restJson1UpdateMonitorCommandError(output, context);
694
+ return de_UpdateMonitorCommandError(output, context);
699
695
  }
700
696
  const contents = map({
701
697
  $metadata: deserializeMetadata(output),
@@ -709,8 +705,8 @@ const deserializeAws_restJson1UpdateMonitorCommand = async (output, context) =>
709
705
  }
710
706
  return contents;
711
707
  };
712
- exports.deserializeAws_restJson1UpdateMonitorCommand = deserializeAws_restJson1UpdateMonitorCommand;
713
- const deserializeAws_restJson1UpdateMonitorCommandError = async (output, context) => {
708
+ exports.de_UpdateMonitorCommand = de_UpdateMonitorCommand;
709
+ const de_UpdateMonitorCommandError = async (output, context) => {
714
710
  const parsedOutput = {
715
711
  ...output,
716
712
  body: await parseErrorBody(output.body, context),
@@ -719,22 +715,22 @@ const deserializeAws_restJson1UpdateMonitorCommandError = async (output, context
719
715
  switch (errorCode) {
720
716
  case "AccessDeniedException":
721
717
  case "com.amazonaws.internetmonitor#AccessDeniedException":
722
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
718
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
723
719
  case "InternalServerException":
724
720
  case "com.amazonaws.internetmonitor#InternalServerException":
725
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
721
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
726
722
  case "LimitExceededException":
727
723
  case "com.amazonaws.internetmonitor#LimitExceededException":
728
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
724
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
729
725
  case "ResourceNotFoundException":
730
726
  case "com.amazonaws.internetmonitor#ResourceNotFoundException":
731
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
727
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
732
728
  case "ThrottlingException":
733
729
  case "com.amazonaws.internetmonitor#ThrottlingException":
734
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
730
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
735
731
  case "ValidationException":
736
732
  case "com.amazonaws.internetmonitor#ValidationException":
737
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
733
+ throw await de_ValidationExceptionRes(parsedOutput, context);
738
734
  default:
739
735
  const parsedBody = parsedOutput.body;
740
736
  (0, smithy_client_1.throwDefaultError)({
@@ -746,7 +742,7 @@ const deserializeAws_restJson1UpdateMonitorCommandError = async (output, context
746
742
  }
747
743
  };
748
744
  const map = smithy_client_1.map;
749
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
745
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
750
746
  const contents = map({});
751
747
  const data = parsedOutput.body;
752
748
  if (data.message != null) {
@@ -758,7 +754,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
758
754
  });
759
755
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
760
756
  };
761
- const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
757
+ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
762
758
  const contents = map({});
763
759
  const data = parsedOutput.body;
764
760
  if (data.message != null) {
@@ -770,7 +766,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
770
766
  });
771
767
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
772
768
  };
773
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
769
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
774
770
  const contents = map({});
775
771
  const data = parsedOutput.body;
776
772
  if (data.message != null) {
@@ -782,7 +778,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
782
778
  });
783
779
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
784
780
  };
785
- const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (parsedOutput, context) => {
781
+ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
786
782
  const contents = map({});
787
783
  const data = parsedOutput.body;
788
784
  if (data.message != null) {
@@ -794,7 +790,7 @@ const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (pars
794
790
  });
795
791
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
796
792
  };
797
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
793
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
798
794
  const contents = map({});
799
795
  const data = parsedOutput.body;
800
796
  if (data.message != null) {
@@ -806,7 +802,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
806
802
  });
807
803
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
808
804
  };
809
- const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
805
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
810
806
  const contents = map({});
811
807
  const data = parsedOutput.body;
812
808
  if (data.message != null) {
@@ -818,7 +814,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
818
814
  });
819
815
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
820
816
  };
821
- const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
817
+ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
822
818
  const contents = map({});
823
819
  const data = parsedOutput.body;
824
820
  if (data.message != null) {
@@ -830,7 +826,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
830
826
  });
831
827
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
832
828
  };
833
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
829
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
834
830
  const contents = map({});
835
831
  const data = parsedOutput.body;
836
832
  if (data.message != null) {
@@ -842,7 +838,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
842
838
  });
843
839
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
844
840
  };
845
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
841
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
846
842
  const contents = map({});
847
843
  const data = parsedOutput.body;
848
844
  if (data.message != null) {
@@ -854,7 +850,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
854
850
  });
855
851
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
856
852
  };
857
- const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
853
+ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
858
854
  const contents = map({});
859
855
  const data = parsedOutput.body;
860
856
  if (data.message != null) {
@@ -866,7 +862,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
866
862
  });
867
863
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
868
864
  };
869
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
865
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
870
866
  const contents = map({});
871
867
  const data = parsedOutput.body;
872
868
  if (data.message != null) {
@@ -878,26 +874,26 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
878
874
  });
879
875
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
880
876
  };
881
- const serializeAws_restJson1InternetMeasurementsLogDelivery = (input, context) => {
877
+ const se_InternetMeasurementsLogDelivery = (input, context) => {
882
878
  return {
883
- ...(input.S3Config != null && { S3Config: serializeAws_restJson1S3Config(input.S3Config, context) }),
879
+ ...(input.S3Config != null && { S3Config: se_S3Config(input.S3Config, context) }),
884
880
  };
885
881
  };
886
- const serializeAws_restJson1S3Config = (input, context) => {
882
+ const se_S3Config = (input, context) => {
887
883
  return {
888
884
  ...(input.BucketName != null && { BucketName: input.BucketName }),
889
885
  ...(input.BucketPrefix != null && { BucketPrefix: input.BucketPrefix }),
890
886
  ...(input.LogDeliveryStatus != null && { LogDeliveryStatus: input.LogDeliveryStatus }),
891
887
  };
892
888
  };
893
- const serializeAws_restJson1SetOfARNs = (input, context) => {
889
+ const se_SetOfARNs = (input, context) => {
894
890
  return input
895
891
  .filter((e) => e != null)
896
892
  .map((entry) => {
897
893
  return entry;
898
894
  });
899
895
  };
900
- const serializeAws_restJson1TagMap = (input, context) => {
896
+ const se_TagMap = (input, context) => {
901
897
  return Object.entries(input).reduce((acc, [key, value]) => {
902
898
  if (value === null) {
903
899
  return acc;
@@ -906,23 +902,21 @@ const serializeAws_restJson1TagMap = (input, context) => {
906
902
  return acc;
907
903
  }, {});
908
904
  };
909
- const deserializeAws_restJson1AvailabilityMeasurement = (output, context) => {
905
+ const de_AvailabilityMeasurement = (output, context) => {
910
906
  return {
911
907
  ExperienceScore: (0, smithy_client_1.limitedParseDouble)(output.ExperienceScore),
912
908
  PercentOfClientLocationImpacted: (0, smithy_client_1.limitedParseDouble)(output.PercentOfClientLocationImpacted),
913
909
  PercentOfTotalTrafficImpacted: (0, smithy_client_1.limitedParseDouble)(output.PercentOfTotalTrafficImpacted),
914
910
  };
915
911
  };
916
- const deserializeAws_restJson1HealthEvent = (output, context) => {
912
+ const de_HealthEvent = (output, context) => {
917
913
  return {
918
914
  CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.CreatedAt)) : undefined,
919
915
  EndedAt: output.EndedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.EndedAt)) : undefined,
920
916
  EventArn: (0, smithy_client_1.expectString)(output.EventArn),
921
917
  EventId: (0, smithy_client_1.expectString)(output.EventId),
922
918
  ImpactType: (0, smithy_client_1.expectString)(output.ImpactType),
923
- ImpactedLocations: output.ImpactedLocations != null
924
- ? deserializeAws_restJson1ImpactedLocationsList(output.ImpactedLocations, context)
925
- : undefined,
919
+ ImpactedLocations: output.ImpactedLocations != null ? de_ImpactedLocationsList(output.ImpactedLocations, context) : undefined,
926
920
  LastUpdatedAt: output.LastUpdatedAt != null
927
921
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.LastUpdatedAt))
928
922
  : undefined,
@@ -931,28 +925,26 @@ const deserializeAws_restJson1HealthEvent = (output, context) => {
931
925
  Status: (0, smithy_client_1.expectString)(output.Status),
932
926
  };
933
927
  };
934
- const deserializeAws_restJson1HealthEventList = (output, context) => {
928
+ const de_HealthEventList = (output, context) => {
935
929
  const retVal = (output || [])
936
930
  .filter((e) => e != null)
937
931
  .map((entry) => {
938
932
  if (entry === null) {
939
933
  return null;
940
934
  }
941
- return deserializeAws_restJson1HealthEvent(entry, context);
935
+ return de_HealthEvent(entry, context);
942
936
  });
943
937
  return retVal;
944
938
  };
945
- const deserializeAws_restJson1ImpactedLocation = (output, context) => {
939
+ const de_ImpactedLocation = (output, context) => {
946
940
  return {
947
941
  ASName: (0, smithy_client_1.expectString)(output.ASName),
948
942
  ASNumber: (0, smithy_client_1.expectLong)(output.ASNumber),
949
- CausedBy: output.CausedBy != null ? deserializeAws_restJson1NetworkImpairment(output.CausedBy, context) : undefined,
943
+ CausedBy: output.CausedBy != null ? de_NetworkImpairment(output.CausedBy, context) : undefined,
950
944
  City: (0, smithy_client_1.expectString)(output.City),
951
945
  Country: (0, smithy_client_1.expectString)(output.Country),
952
946
  CountryCode: (0, smithy_client_1.expectString)(output.CountryCode),
953
- InternetHealth: output.InternetHealth != null
954
- ? deserializeAws_restJson1InternetHealth(output.InternetHealth, context)
955
- : undefined,
947
+ InternetHealth: output.InternetHealth != null ? de_InternetHealth(output.InternetHealth, context) : undefined,
956
948
  Latitude: (0, smithy_client_1.limitedParseDouble)(output.Latitude),
957
949
  Longitude: (0, smithy_client_1.limitedParseDouble)(output.Longitude),
958
950
  Metro: (0, smithy_client_1.expectString)(output.Metro),
@@ -962,33 +954,29 @@ const deserializeAws_restJson1ImpactedLocation = (output, context) => {
962
954
  SubdivisionCode: (0, smithy_client_1.expectString)(output.SubdivisionCode),
963
955
  };
964
956
  };
965
- const deserializeAws_restJson1ImpactedLocationsList = (output, context) => {
957
+ const de_ImpactedLocationsList = (output, context) => {
966
958
  const retVal = (output || [])
967
959
  .filter((e) => e != null)
968
960
  .map((entry) => {
969
961
  if (entry === null) {
970
962
  return null;
971
963
  }
972
- return deserializeAws_restJson1ImpactedLocation(entry, context);
964
+ return de_ImpactedLocation(entry, context);
973
965
  });
974
966
  return retVal;
975
967
  };
976
- const deserializeAws_restJson1InternetHealth = (output, context) => {
968
+ const de_InternetHealth = (output, context) => {
977
969
  return {
978
- Availability: output.Availability != null
979
- ? deserializeAws_restJson1AvailabilityMeasurement(output.Availability, context)
980
- : undefined,
981
- Performance: output.Performance != null
982
- ? deserializeAws_restJson1PerformanceMeasurement(output.Performance, context)
983
- : undefined,
970
+ Availability: output.Availability != null ? de_AvailabilityMeasurement(output.Availability, context) : undefined,
971
+ Performance: output.Performance != null ? de_PerformanceMeasurement(output.Performance, context) : undefined,
984
972
  };
985
973
  };
986
- const deserializeAws_restJson1InternetMeasurementsLogDelivery = (output, context) => {
974
+ const de_InternetMeasurementsLogDelivery = (output, context) => {
987
975
  return {
988
- S3Config: output.S3Config != null ? deserializeAws_restJson1S3Config(output.S3Config, context) : undefined,
976
+ S3Config: output.S3Config != null ? de_S3Config(output.S3Config, context) : undefined,
989
977
  };
990
978
  };
991
- const deserializeAws_restJson1Monitor = (output, context) => {
979
+ const de_Monitor = (output, context) => {
992
980
  return {
993
981
  MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
994
982
  MonitorName: (0, smithy_client_1.expectString)(output.MonitorName),
@@ -996,64 +984,64 @@ const deserializeAws_restJson1Monitor = (output, context) => {
996
984
  Status: (0, smithy_client_1.expectString)(output.Status),
997
985
  };
998
986
  };
999
- const deserializeAws_restJson1MonitorList = (output, context) => {
987
+ const de_MonitorList = (output, context) => {
1000
988
  const retVal = (output || [])
1001
989
  .filter((e) => e != null)
1002
990
  .map((entry) => {
1003
991
  if (entry === null) {
1004
992
  return null;
1005
993
  }
1006
- return deserializeAws_restJson1Monitor(entry, context);
994
+ return de_Monitor(entry, context);
1007
995
  });
1008
996
  return retVal;
1009
997
  };
1010
- const deserializeAws_restJson1Network = (output, context) => {
998
+ const de_Network = (output, context) => {
1011
999
  return {
1012
1000
  ASName: (0, smithy_client_1.expectString)(output.ASName),
1013
1001
  ASNumber: (0, smithy_client_1.expectLong)(output.ASNumber),
1014
1002
  };
1015
1003
  };
1016
- const deserializeAws_restJson1NetworkImpairment = (output, context) => {
1004
+ const de_NetworkImpairment = (output, context) => {
1017
1005
  return {
1018
- AsPath: output.AsPath != null ? deserializeAws_restJson1NetworkList(output.AsPath, context) : undefined,
1006
+ AsPath: output.AsPath != null ? de_NetworkList(output.AsPath, context) : undefined,
1019
1007
  NetworkEventType: (0, smithy_client_1.expectString)(output.NetworkEventType),
1020
- Networks: output.Networks != null ? deserializeAws_restJson1NetworkList(output.Networks, context) : undefined,
1008
+ Networks: output.Networks != null ? de_NetworkList(output.Networks, context) : undefined,
1021
1009
  };
1022
1010
  };
1023
- const deserializeAws_restJson1NetworkList = (output, context) => {
1011
+ const de_NetworkList = (output, context) => {
1024
1012
  const retVal = (output || [])
1025
1013
  .filter((e) => e != null)
1026
1014
  .map((entry) => {
1027
1015
  if (entry === null) {
1028
1016
  return null;
1029
1017
  }
1030
- return deserializeAws_restJson1Network(entry, context);
1018
+ return de_Network(entry, context);
1031
1019
  });
1032
1020
  return retVal;
1033
1021
  };
1034
- const deserializeAws_restJson1PerformanceMeasurement = (output, context) => {
1022
+ const de_PerformanceMeasurement = (output, context) => {
1035
1023
  return {
1036
1024
  ExperienceScore: (0, smithy_client_1.limitedParseDouble)(output.ExperienceScore),
1037
1025
  PercentOfClientLocationImpacted: (0, smithy_client_1.limitedParseDouble)(output.PercentOfClientLocationImpacted),
1038
1026
  PercentOfTotalTrafficImpacted: (0, smithy_client_1.limitedParseDouble)(output.PercentOfTotalTrafficImpacted),
1039
- RoundTripTime: output.RoundTripTime != null ? deserializeAws_restJson1RoundTripTime(output.RoundTripTime, context) : undefined,
1027
+ RoundTripTime: output.RoundTripTime != null ? de_RoundTripTime(output.RoundTripTime, context) : undefined,
1040
1028
  };
1041
1029
  };
1042
- const deserializeAws_restJson1RoundTripTime = (output, context) => {
1030
+ const de_RoundTripTime = (output, context) => {
1043
1031
  return {
1044
1032
  P50: (0, smithy_client_1.limitedParseDouble)(output.P50),
1045
1033
  P90: (0, smithy_client_1.limitedParseDouble)(output.P90),
1046
1034
  P95: (0, smithy_client_1.limitedParseDouble)(output.P95),
1047
1035
  };
1048
1036
  };
1049
- const deserializeAws_restJson1S3Config = (output, context) => {
1037
+ const de_S3Config = (output, context) => {
1050
1038
  return {
1051
1039
  BucketName: (0, smithy_client_1.expectString)(output.BucketName),
1052
1040
  BucketPrefix: (0, smithy_client_1.expectString)(output.BucketPrefix),
1053
1041
  LogDeliveryStatus: (0, smithy_client_1.expectString)(output.LogDeliveryStatus),
1054
1042
  };
1055
1043
  };
1056
- const deserializeAws_restJson1SetOfARNs = (output, context) => {
1044
+ const de_SetOfARNs = (output, context) => {
1057
1045
  const retVal = (output || [])
1058
1046
  .filter((e) => e != null)
1059
1047
  .map((entry) => {
@@ -1064,7 +1052,7 @@ const deserializeAws_restJson1SetOfARNs = (output, context) => {
1064
1052
  });
1065
1053
  return retVal;
1066
1054
  };
1067
- const deserializeAws_restJson1TagMap = (output, context) => {
1055
+ const de_TagMap = (output, context) => {
1068
1056
  return Object.entries(output).reduce((acc, [key, value]) => {
1069
1057
  if (value === null) {
1070
1058
  return acc;