@aws-sdk/client-internetmonitor 3.306.0 → 3.310.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/CreateMonitorCommand.js +2 -2
- package/dist-cjs/commands/DeleteMonitorCommand.js +2 -2
- package/dist-cjs/commands/GetHealthEventCommand.js +2 -2
- package/dist-cjs/commands/GetMonitorCommand.js +2 -2
- package/dist-cjs/commands/ListHealthEventsCommand.js +2 -2
- package/dist-cjs/commands/ListMonitorsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateMonitorCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +168 -180
- package/dist-es/commands/CreateMonitorCommand.js +3 -3
- package/dist-es/commands/DeleteMonitorCommand.js +3 -3
- package/dist-es/commands/GetHealthEventCommand.js +3 -3
- package/dist-es/commands/GetMonitorCommand.js +3 -3
- package/dist-es/commands/ListHealthEventsCommand.js +3 -3
- package/dist-es/commands/ListMonitorsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateMonitorCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +147 -159
- package/dist-types/protocols/Aws_restJson1.d.ts +80 -20
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +20 -20
- package/package.json +35 -35
|
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectInt32 as
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { InternetMonitorServiceException as __BaseException } from "../models/InternetMonitorServiceException";
|
|
5
5
|
import { AccessDeniedException, BadRequestException, ConflictException, InternalServerErrorException, InternalServerException, LimitExceededException, NotFoundException, ResourceNotFoundException, ThrottlingException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const
|
|
6
|
+
export const se_CreateMonitorCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
@@ -13,12 +13,12 @@ export const serializeAws_restJson1CreateMonitorCommand = async (input, context)
|
|
|
13
13
|
body = JSON.stringify({
|
|
14
14
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
15
15
|
...(input.InternetMeasurementsLogDelivery != null && {
|
|
16
|
-
InternetMeasurementsLogDelivery:
|
|
16
|
+
InternetMeasurementsLogDelivery: se_InternetMeasurementsLogDelivery(input.InternetMeasurementsLogDelivery, context),
|
|
17
17
|
}),
|
|
18
18
|
...(input.MaxCityNetworksToMonitor != null && { MaxCityNetworksToMonitor: input.MaxCityNetworksToMonitor }),
|
|
19
19
|
...(input.MonitorName != null && { MonitorName: input.MonitorName }),
|
|
20
|
-
...(input.Resources != null && { Resources:
|
|
21
|
-
...(input.Tags != null && { Tags:
|
|
20
|
+
...(input.Resources != null && { Resources: se_SetOfARNs(input.Resources, context) }),
|
|
21
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
22
22
|
});
|
|
23
23
|
return new __HttpRequest({
|
|
24
24
|
protocol,
|
|
@@ -30,7 +30,7 @@ export const serializeAws_restJson1CreateMonitorCommand = async (input, context)
|
|
|
30
30
|
body,
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
|
-
export const
|
|
33
|
+
export const se_DeleteMonitorCommand = async (input, context) => {
|
|
34
34
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
35
35
|
const headers = {};
|
|
36
36
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20210603/Monitors/{MonitorName}";
|
|
@@ -46,7 +46,7 @@ export const serializeAws_restJson1DeleteMonitorCommand = async (input, context)
|
|
|
46
46
|
body,
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
-
export const
|
|
49
|
+
export const se_GetHealthEventCommand = async (input, context) => {
|
|
50
50
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
51
51
|
const headers = {};
|
|
52
52
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -64,7 +64,7 @@ export const serializeAws_restJson1GetHealthEventCommand = async (input, context
|
|
|
64
64
|
body,
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
|
-
export const
|
|
67
|
+
export const se_GetMonitorCommand = async (input, context) => {
|
|
68
68
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
69
69
|
const headers = {};
|
|
70
70
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20210603/Monitors/{MonitorName}";
|
|
@@ -80,7 +80,7 @@ export const serializeAws_restJson1GetMonitorCommand = async (input, context) =>
|
|
|
80
80
|
body,
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
|
-
export const
|
|
83
|
+
export const se_ListHealthEventsCommand = async (input, context) => {
|
|
84
84
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
85
85
|
const headers = {};
|
|
86
86
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -108,7 +108,7 @@ export const serializeAws_restJson1ListHealthEventsCommand = async (input, conte
|
|
|
108
108
|
body,
|
|
109
109
|
});
|
|
110
110
|
};
|
|
111
|
-
export const
|
|
111
|
+
export const se_ListMonitorsCommand = async (input, context) => {
|
|
112
112
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
113
113
|
const headers = {};
|
|
114
114
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20210603/Monitors";
|
|
@@ -129,7 +129,7 @@ export const serializeAws_restJson1ListMonitorsCommand = async (input, context)
|
|
|
129
129
|
body,
|
|
130
130
|
});
|
|
131
131
|
};
|
|
132
|
-
export const
|
|
132
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
133
133
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
134
134
|
const headers = {};
|
|
135
135
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -145,7 +145,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
145
145
|
body,
|
|
146
146
|
});
|
|
147
147
|
};
|
|
148
|
-
export const
|
|
148
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
149
149
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
150
150
|
const headers = {
|
|
151
151
|
"content-type": "application/json",
|
|
@@ -154,7 +154,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
154
154
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
155
155
|
let body;
|
|
156
156
|
body = JSON.stringify({
|
|
157
|
-
...(input.Tags != null && { Tags:
|
|
157
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
158
158
|
});
|
|
159
159
|
return new __HttpRequest({
|
|
160
160
|
protocol,
|
|
@@ -166,7 +166,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
166
166
|
body,
|
|
167
167
|
});
|
|
168
168
|
};
|
|
169
|
-
export const
|
|
169
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
170
170
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
171
171
|
const headers = {};
|
|
172
172
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -189,7 +189,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
189
189
|
body,
|
|
190
190
|
});
|
|
191
191
|
};
|
|
192
|
-
export const
|
|
192
|
+
export const se_UpdateMonitorCommand = async (input, context) => {
|
|
193
193
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
194
194
|
const headers = {
|
|
195
195
|
"content-type": "application/json",
|
|
@@ -200,15 +200,11 @@ export const serializeAws_restJson1UpdateMonitorCommand = async (input, context)
|
|
|
200
200
|
body = JSON.stringify({
|
|
201
201
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
202
202
|
...(input.InternetMeasurementsLogDelivery != null && {
|
|
203
|
-
InternetMeasurementsLogDelivery:
|
|
203
|
+
InternetMeasurementsLogDelivery: se_InternetMeasurementsLogDelivery(input.InternetMeasurementsLogDelivery, context),
|
|
204
204
|
}),
|
|
205
205
|
...(input.MaxCityNetworksToMonitor != null && { MaxCityNetworksToMonitor: input.MaxCityNetworksToMonitor }),
|
|
206
|
-
...(input.ResourcesToAdd != null && {
|
|
207
|
-
|
|
208
|
-
}),
|
|
209
|
-
...(input.ResourcesToRemove != null && {
|
|
210
|
-
ResourcesToRemove: serializeAws_restJson1SetOfARNs(input.ResourcesToRemove, context),
|
|
211
|
-
}),
|
|
206
|
+
...(input.ResourcesToAdd != null && { ResourcesToAdd: se_SetOfARNs(input.ResourcesToAdd, context) }),
|
|
207
|
+
...(input.ResourcesToRemove != null && { ResourcesToRemove: se_SetOfARNs(input.ResourcesToRemove, context) }),
|
|
212
208
|
...(input.Status != null && { Status: input.Status }),
|
|
213
209
|
});
|
|
214
210
|
return new __HttpRequest({
|
|
@@ -221,9 +217,9 @@ export const serializeAws_restJson1UpdateMonitorCommand = async (input, context)
|
|
|
221
217
|
body,
|
|
222
218
|
});
|
|
223
219
|
};
|
|
224
|
-
export const
|
|
220
|
+
export const de_CreateMonitorCommand = async (output, context) => {
|
|
225
221
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
226
|
-
return
|
|
222
|
+
return de_CreateMonitorCommandError(output, context);
|
|
227
223
|
}
|
|
228
224
|
const contents = map({
|
|
229
225
|
$metadata: deserializeMetadata(output),
|
|
@@ -237,7 +233,7 @@ export const deserializeAws_restJson1CreateMonitorCommand = async (output, conte
|
|
|
237
233
|
}
|
|
238
234
|
return contents;
|
|
239
235
|
};
|
|
240
|
-
const
|
|
236
|
+
const de_CreateMonitorCommandError = async (output, context) => {
|
|
241
237
|
const parsedOutput = {
|
|
242
238
|
...output,
|
|
243
239
|
body: await parseErrorBody(output.body, context),
|
|
@@ -246,22 +242,22 @@ const deserializeAws_restJson1CreateMonitorCommandError = async (output, context
|
|
|
246
242
|
switch (errorCode) {
|
|
247
243
|
case "AccessDeniedException":
|
|
248
244
|
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
249
|
-
throw await
|
|
245
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
250
246
|
case "ConflictException":
|
|
251
247
|
case "com.amazonaws.internetmonitor#ConflictException":
|
|
252
|
-
throw await
|
|
248
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
253
249
|
case "InternalServerException":
|
|
254
250
|
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
255
|
-
throw await
|
|
251
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
256
252
|
case "LimitExceededException":
|
|
257
253
|
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
258
|
-
throw await
|
|
254
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
259
255
|
case "ThrottlingException":
|
|
260
256
|
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
261
|
-
throw await
|
|
257
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
262
258
|
case "ValidationException":
|
|
263
259
|
case "com.amazonaws.internetmonitor#ValidationException":
|
|
264
|
-
throw await
|
|
260
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
265
261
|
default:
|
|
266
262
|
const parsedBody = parsedOutput.body;
|
|
267
263
|
throwDefaultError({
|
|
@@ -272,9 +268,9 @@ const deserializeAws_restJson1CreateMonitorCommandError = async (output, context
|
|
|
272
268
|
});
|
|
273
269
|
}
|
|
274
270
|
};
|
|
275
|
-
export const
|
|
271
|
+
export const de_DeleteMonitorCommand = async (output, context) => {
|
|
276
272
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
277
|
-
return
|
|
273
|
+
return de_DeleteMonitorCommandError(output, context);
|
|
278
274
|
}
|
|
279
275
|
const contents = map({
|
|
280
276
|
$metadata: deserializeMetadata(output),
|
|
@@ -282,7 +278,7 @@ export const deserializeAws_restJson1DeleteMonitorCommand = async (output, conte
|
|
|
282
278
|
await collectBody(output.body, context);
|
|
283
279
|
return contents;
|
|
284
280
|
};
|
|
285
|
-
const
|
|
281
|
+
const de_DeleteMonitorCommandError = async (output, context) => {
|
|
286
282
|
const parsedOutput = {
|
|
287
283
|
...output,
|
|
288
284
|
body: await parseErrorBody(output.body, context),
|
|
@@ -291,16 +287,16 @@ const deserializeAws_restJson1DeleteMonitorCommandError = async (output, context
|
|
|
291
287
|
switch (errorCode) {
|
|
292
288
|
case "AccessDeniedException":
|
|
293
289
|
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
294
|
-
throw await
|
|
290
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
295
291
|
case "InternalServerException":
|
|
296
292
|
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
297
|
-
throw await
|
|
293
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
298
294
|
case "ThrottlingException":
|
|
299
295
|
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
300
|
-
throw await
|
|
296
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
301
297
|
case "ValidationException":
|
|
302
298
|
case "com.amazonaws.internetmonitor#ValidationException":
|
|
303
|
-
throw await
|
|
299
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
304
300
|
default:
|
|
305
301
|
const parsedBody = parsedOutput.body;
|
|
306
302
|
throwDefaultError({
|
|
@@ -311,9 +307,9 @@ const deserializeAws_restJson1DeleteMonitorCommandError = async (output, context
|
|
|
311
307
|
});
|
|
312
308
|
}
|
|
313
309
|
};
|
|
314
|
-
export const
|
|
310
|
+
export const de_GetHealthEventCommand = async (output, context) => {
|
|
315
311
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
316
|
-
return
|
|
312
|
+
return de_GetHealthEventCommandError(output, context);
|
|
317
313
|
}
|
|
318
314
|
const contents = map({
|
|
319
315
|
$metadata: deserializeMetadata(output),
|
|
@@ -335,7 +331,7 @@ export const deserializeAws_restJson1GetHealthEventCommand = async (output, cont
|
|
|
335
331
|
contents.ImpactType = __expectString(data.ImpactType);
|
|
336
332
|
}
|
|
337
333
|
if (data.ImpactedLocations != null) {
|
|
338
|
-
contents.ImpactedLocations =
|
|
334
|
+
contents.ImpactedLocations = de_ImpactedLocationsList(data.ImpactedLocations, context);
|
|
339
335
|
}
|
|
340
336
|
if (data.LastUpdatedAt != null) {
|
|
341
337
|
contents.LastUpdatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.LastUpdatedAt));
|
|
@@ -351,7 +347,7 @@ export const deserializeAws_restJson1GetHealthEventCommand = async (output, cont
|
|
|
351
347
|
}
|
|
352
348
|
return contents;
|
|
353
349
|
};
|
|
354
|
-
const
|
|
350
|
+
const de_GetHealthEventCommandError = async (output, context) => {
|
|
355
351
|
const parsedOutput = {
|
|
356
352
|
...output,
|
|
357
353
|
body: await parseErrorBody(output.body, context),
|
|
@@ -360,16 +356,16 @@ const deserializeAws_restJson1GetHealthEventCommandError = async (output, contex
|
|
|
360
356
|
switch (errorCode) {
|
|
361
357
|
case "AccessDeniedException":
|
|
362
358
|
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
363
|
-
throw await
|
|
359
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
364
360
|
case "InternalServerException":
|
|
365
361
|
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
366
|
-
throw await
|
|
362
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
367
363
|
case "ThrottlingException":
|
|
368
364
|
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
369
|
-
throw await
|
|
365
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
370
366
|
case "ValidationException":
|
|
371
367
|
case "com.amazonaws.internetmonitor#ValidationException":
|
|
372
|
-
throw await
|
|
368
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
373
369
|
default:
|
|
374
370
|
const parsedBody = parsedOutput.body;
|
|
375
371
|
throwDefaultError({
|
|
@@ -380,9 +376,9 @@ const deserializeAws_restJson1GetHealthEventCommandError = async (output, contex
|
|
|
380
376
|
});
|
|
381
377
|
}
|
|
382
378
|
};
|
|
383
|
-
export const
|
|
379
|
+
export const de_GetMonitorCommand = async (output, context) => {
|
|
384
380
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
385
|
-
return
|
|
381
|
+
return de_GetMonitorCommandError(output, context);
|
|
386
382
|
}
|
|
387
383
|
const contents = map({
|
|
388
384
|
$metadata: deserializeMetadata(output),
|
|
@@ -392,7 +388,7 @@ export const deserializeAws_restJson1GetMonitorCommand = async (output, context)
|
|
|
392
388
|
contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.CreatedAt));
|
|
393
389
|
}
|
|
394
390
|
if (data.InternetMeasurementsLogDelivery != null) {
|
|
395
|
-
contents.InternetMeasurementsLogDelivery =
|
|
391
|
+
contents.InternetMeasurementsLogDelivery = de_InternetMeasurementsLogDelivery(data.InternetMeasurementsLogDelivery, context);
|
|
396
392
|
}
|
|
397
393
|
if (data.MaxCityNetworksToMonitor != null) {
|
|
398
394
|
contents.MaxCityNetworksToMonitor = __expectInt32(data.MaxCityNetworksToMonitor);
|
|
@@ -413,17 +409,17 @@ export const deserializeAws_restJson1GetMonitorCommand = async (output, context)
|
|
|
413
409
|
contents.ProcessingStatusInfo = __expectString(data.ProcessingStatusInfo);
|
|
414
410
|
}
|
|
415
411
|
if (data.Resources != null) {
|
|
416
|
-
contents.Resources =
|
|
412
|
+
contents.Resources = de_SetOfARNs(data.Resources, context);
|
|
417
413
|
}
|
|
418
414
|
if (data.Status != null) {
|
|
419
415
|
contents.Status = __expectString(data.Status);
|
|
420
416
|
}
|
|
421
417
|
if (data.Tags != null) {
|
|
422
|
-
contents.Tags =
|
|
418
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
423
419
|
}
|
|
424
420
|
return contents;
|
|
425
421
|
};
|
|
426
|
-
const
|
|
422
|
+
const de_GetMonitorCommandError = async (output, context) => {
|
|
427
423
|
const parsedOutput = {
|
|
428
424
|
...output,
|
|
429
425
|
body: await parseErrorBody(output.body, context),
|
|
@@ -432,16 +428,16 @@ const deserializeAws_restJson1GetMonitorCommandError = async (output, context) =
|
|
|
432
428
|
switch (errorCode) {
|
|
433
429
|
case "AccessDeniedException":
|
|
434
430
|
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
435
|
-
throw await
|
|
431
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
436
432
|
case "InternalServerException":
|
|
437
433
|
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
438
|
-
throw await
|
|
434
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
439
435
|
case "ThrottlingException":
|
|
440
436
|
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
441
|
-
throw await
|
|
437
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
442
438
|
case "ValidationException":
|
|
443
439
|
case "com.amazonaws.internetmonitor#ValidationException":
|
|
444
|
-
throw await
|
|
440
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
445
441
|
default:
|
|
446
442
|
const parsedBody = parsedOutput.body;
|
|
447
443
|
throwDefaultError({
|
|
@@ -452,23 +448,23 @@ const deserializeAws_restJson1GetMonitorCommandError = async (output, context) =
|
|
|
452
448
|
});
|
|
453
449
|
}
|
|
454
450
|
};
|
|
455
|
-
export const
|
|
451
|
+
export const de_ListHealthEventsCommand = async (output, context) => {
|
|
456
452
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
457
|
-
return
|
|
453
|
+
return de_ListHealthEventsCommandError(output, context);
|
|
458
454
|
}
|
|
459
455
|
const contents = map({
|
|
460
456
|
$metadata: deserializeMetadata(output),
|
|
461
457
|
});
|
|
462
458
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
463
459
|
if (data.HealthEvents != null) {
|
|
464
|
-
contents.HealthEvents =
|
|
460
|
+
contents.HealthEvents = de_HealthEventList(data.HealthEvents, context);
|
|
465
461
|
}
|
|
466
462
|
if (data.NextToken != null) {
|
|
467
463
|
contents.NextToken = __expectString(data.NextToken);
|
|
468
464
|
}
|
|
469
465
|
return contents;
|
|
470
466
|
};
|
|
471
|
-
const
|
|
467
|
+
const de_ListHealthEventsCommandError = async (output, context) => {
|
|
472
468
|
const parsedOutput = {
|
|
473
469
|
...output,
|
|
474
470
|
body: await parseErrorBody(output.body, context),
|
|
@@ -477,16 +473,16 @@ const deserializeAws_restJson1ListHealthEventsCommandError = async (output, cont
|
|
|
477
473
|
switch (errorCode) {
|
|
478
474
|
case "AccessDeniedException":
|
|
479
475
|
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
480
|
-
throw await
|
|
476
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
481
477
|
case "InternalServerException":
|
|
482
478
|
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
483
|
-
throw await
|
|
479
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
484
480
|
case "ThrottlingException":
|
|
485
481
|
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
486
|
-
throw await
|
|
482
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
487
483
|
case "ValidationException":
|
|
488
484
|
case "com.amazonaws.internetmonitor#ValidationException":
|
|
489
|
-
throw await
|
|
485
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
490
486
|
default:
|
|
491
487
|
const parsedBody = parsedOutput.body;
|
|
492
488
|
throwDefaultError({
|
|
@@ -497,23 +493,23 @@ const deserializeAws_restJson1ListHealthEventsCommandError = async (output, cont
|
|
|
497
493
|
});
|
|
498
494
|
}
|
|
499
495
|
};
|
|
500
|
-
export const
|
|
496
|
+
export const de_ListMonitorsCommand = async (output, context) => {
|
|
501
497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
502
|
-
return
|
|
498
|
+
return de_ListMonitorsCommandError(output, context);
|
|
503
499
|
}
|
|
504
500
|
const contents = map({
|
|
505
501
|
$metadata: deserializeMetadata(output),
|
|
506
502
|
});
|
|
507
503
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
508
504
|
if (data.Monitors != null) {
|
|
509
|
-
contents.Monitors =
|
|
505
|
+
contents.Monitors = de_MonitorList(data.Monitors, context);
|
|
510
506
|
}
|
|
511
507
|
if (data.NextToken != null) {
|
|
512
508
|
contents.NextToken = __expectString(data.NextToken);
|
|
513
509
|
}
|
|
514
510
|
return contents;
|
|
515
511
|
};
|
|
516
|
-
const
|
|
512
|
+
const de_ListMonitorsCommandError = async (output, context) => {
|
|
517
513
|
const parsedOutput = {
|
|
518
514
|
...output,
|
|
519
515
|
body: await parseErrorBody(output.body, context),
|
|
@@ -522,16 +518,16 @@ const deserializeAws_restJson1ListMonitorsCommandError = async (output, context)
|
|
|
522
518
|
switch (errorCode) {
|
|
523
519
|
case "AccessDeniedException":
|
|
524
520
|
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
525
|
-
throw await
|
|
521
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
526
522
|
case "InternalServerException":
|
|
527
523
|
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
528
|
-
throw await
|
|
524
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
529
525
|
case "ThrottlingException":
|
|
530
526
|
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
531
|
-
throw await
|
|
527
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
532
528
|
case "ValidationException":
|
|
533
529
|
case "com.amazonaws.internetmonitor#ValidationException":
|
|
534
|
-
throw await
|
|
530
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
535
531
|
default:
|
|
536
532
|
const parsedBody = parsedOutput.body;
|
|
537
533
|
throwDefaultError({
|
|
@@ -542,20 +538,20 @@ const deserializeAws_restJson1ListMonitorsCommandError = async (output, context)
|
|
|
542
538
|
});
|
|
543
539
|
}
|
|
544
540
|
};
|
|
545
|
-
export const
|
|
541
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
546
542
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
547
|
-
return
|
|
543
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
548
544
|
}
|
|
549
545
|
const contents = map({
|
|
550
546
|
$metadata: deserializeMetadata(output),
|
|
551
547
|
});
|
|
552
548
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
553
549
|
if (data.Tags != null) {
|
|
554
|
-
contents.Tags =
|
|
550
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
555
551
|
}
|
|
556
552
|
return contents;
|
|
557
553
|
};
|
|
558
|
-
const
|
|
554
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
559
555
|
const parsedOutput = {
|
|
560
556
|
...output,
|
|
561
557
|
body: await parseErrorBody(output.body, context),
|
|
@@ -564,19 +560,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
564
560
|
switch (errorCode) {
|
|
565
561
|
case "AccessDeniedException":
|
|
566
562
|
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
567
|
-
throw await
|
|
563
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
568
564
|
case "BadRequestException":
|
|
569
565
|
case "com.amazonaws.internetmonitor#BadRequestException":
|
|
570
|
-
throw await
|
|
566
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
571
567
|
case "InternalServerErrorException":
|
|
572
568
|
case "com.amazonaws.internetmonitor#InternalServerErrorException":
|
|
573
|
-
throw await
|
|
569
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
574
570
|
case "NotFoundException":
|
|
575
571
|
case "com.amazonaws.internetmonitor#NotFoundException":
|
|
576
|
-
throw await
|
|
572
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
577
573
|
case "TooManyRequestsException":
|
|
578
574
|
case "com.amazonaws.internetmonitor#TooManyRequestsException":
|
|
579
|
-
throw await
|
|
575
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
580
576
|
default:
|
|
581
577
|
const parsedBody = parsedOutput.body;
|
|
582
578
|
throwDefaultError({
|
|
@@ -587,9 +583,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
587
583
|
});
|
|
588
584
|
}
|
|
589
585
|
};
|
|
590
|
-
export const
|
|
586
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
591
587
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
592
|
-
return
|
|
588
|
+
return de_TagResourceCommandError(output, context);
|
|
593
589
|
}
|
|
594
590
|
const contents = map({
|
|
595
591
|
$metadata: deserializeMetadata(output),
|
|
@@ -597,7 +593,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
597
593
|
await collectBody(output.body, context);
|
|
598
594
|
return contents;
|
|
599
595
|
};
|
|
600
|
-
const
|
|
596
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
601
597
|
const parsedOutput = {
|
|
602
598
|
...output,
|
|
603
599
|
body: await parseErrorBody(output.body, context),
|
|
@@ -606,19 +602,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
606
602
|
switch (errorCode) {
|
|
607
603
|
case "AccessDeniedException":
|
|
608
604
|
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
609
|
-
throw await
|
|
605
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
610
606
|
case "BadRequestException":
|
|
611
607
|
case "com.amazonaws.internetmonitor#BadRequestException":
|
|
612
|
-
throw await
|
|
608
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
613
609
|
case "InternalServerErrorException":
|
|
614
610
|
case "com.amazonaws.internetmonitor#InternalServerErrorException":
|
|
615
|
-
throw await
|
|
611
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
616
612
|
case "NotFoundException":
|
|
617
613
|
case "com.amazonaws.internetmonitor#NotFoundException":
|
|
618
|
-
throw await
|
|
614
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
619
615
|
case "TooManyRequestsException":
|
|
620
616
|
case "com.amazonaws.internetmonitor#TooManyRequestsException":
|
|
621
|
-
throw await
|
|
617
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
622
618
|
default:
|
|
623
619
|
const parsedBody = parsedOutput.body;
|
|
624
620
|
throwDefaultError({
|
|
@@ -629,9 +625,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
629
625
|
});
|
|
630
626
|
}
|
|
631
627
|
};
|
|
632
|
-
export const
|
|
628
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
633
629
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
634
|
-
return
|
|
630
|
+
return de_UntagResourceCommandError(output, context);
|
|
635
631
|
}
|
|
636
632
|
const contents = map({
|
|
637
633
|
$metadata: deserializeMetadata(output),
|
|
@@ -639,7 +635,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
639
635
|
await collectBody(output.body, context);
|
|
640
636
|
return contents;
|
|
641
637
|
};
|
|
642
|
-
const
|
|
638
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
643
639
|
const parsedOutput = {
|
|
644
640
|
...output,
|
|
645
641
|
body: await parseErrorBody(output.body, context),
|
|
@@ -648,19 +644,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
648
644
|
switch (errorCode) {
|
|
649
645
|
case "AccessDeniedException":
|
|
650
646
|
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
651
|
-
throw await
|
|
647
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
652
648
|
case "BadRequestException":
|
|
653
649
|
case "com.amazonaws.internetmonitor#BadRequestException":
|
|
654
|
-
throw await
|
|
650
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
655
651
|
case "InternalServerErrorException":
|
|
656
652
|
case "com.amazonaws.internetmonitor#InternalServerErrorException":
|
|
657
|
-
throw await
|
|
653
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
658
654
|
case "NotFoundException":
|
|
659
655
|
case "com.amazonaws.internetmonitor#NotFoundException":
|
|
660
|
-
throw await
|
|
656
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
661
657
|
case "TooManyRequestsException":
|
|
662
658
|
case "com.amazonaws.internetmonitor#TooManyRequestsException":
|
|
663
|
-
throw await
|
|
659
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
664
660
|
default:
|
|
665
661
|
const parsedBody = parsedOutput.body;
|
|
666
662
|
throwDefaultError({
|
|
@@ -671,9 +667,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
671
667
|
});
|
|
672
668
|
}
|
|
673
669
|
};
|
|
674
|
-
export const
|
|
670
|
+
export const de_UpdateMonitorCommand = async (output, context) => {
|
|
675
671
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
676
|
-
return
|
|
672
|
+
return de_UpdateMonitorCommandError(output, context);
|
|
677
673
|
}
|
|
678
674
|
const contents = map({
|
|
679
675
|
$metadata: deserializeMetadata(output),
|
|
@@ -687,7 +683,7 @@ export const deserializeAws_restJson1UpdateMonitorCommand = async (output, conte
|
|
|
687
683
|
}
|
|
688
684
|
return contents;
|
|
689
685
|
};
|
|
690
|
-
const
|
|
686
|
+
const de_UpdateMonitorCommandError = async (output, context) => {
|
|
691
687
|
const parsedOutput = {
|
|
692
688
|
...output,
|
|
693
689
|
body: await parseErrorBody(output.body, context),
|
|
@@ -696,22 +692,22 @@ const deserializeAws_restJson1UpdateMonitorCommandError = async (output, context
|
|
|
696
692
|
switch (errorCode) {
|
|
697
693
|
case "AccessDeniedException":
|
|
698
694
|
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
699
|
-
throw await
|
|
695
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
700
696
|
case "InternalServerException":
|
|
701
697
|
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
702
|
-
throw await
|
|
698
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
703
699
|
case "LimitExceededException":
|
|
704
700
|
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
705
|
-
throw await
|
|
701
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
706
702
|
case "ResourceNotFoundException":
|
|
707
703
|
case "com.amazonaws.internetmonitor#ResourceNotFoundException":
|
|
708
|
-
throw await
|
|
704
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
709
705
|
case "ThrottlingException":
|
|
710
706
|
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
711
|
-
throw await
|
|
707
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
712
708
|
case "ValidationException":
|
|
713
709
|
case "com.amazonaws.internetmonitor#ValidationException":
|
|
714
|
-
throw await
|
|
710
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
715
711
|
default:
|
|
716
712
|
const parsedBody = parsedOutput.body;
|
|
717
713
|
throwDefaultError({
|
|
@@ -723,7 +719,7 @@ const deserializeAws_restJson1UpdateMonitorCommandError = async (output, context
|
|
|
723
719
|
}
|
|
724
720
|
};
|
|
725
721
|
const map = __map;
|
|
726
|
-
const
|
|
722
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
727
723
|
const contents = map({});
|
|
728
724
|
const data = parsedOutput.body;
|
|
729
725
|
if (data.message != null) {
|
|
@@ -735,7 +731,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
735
731
|
});
|
|
736
732
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
737
733
|
};
|
|
738
|
-
const
|
|
734
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
739
735
|
const contents = map({});
|
|
740
736
|
const data = parsedOutput.body;
|
|
741
737
|
if (data.message != null) {
|
|
@@ -747,7 +743,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
747
743
|
});
|
|
748
744
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
749
745
|
};
|
|
750
|
-
const
|
|
746
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
751
747
|
const contents = map({});
|
|
752
748
|
const data = parsedOutput.body;
|
|
753
749
|
if (data.message != null) {
|
|
@@ -759,7 +755,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
759
755
|
});
|
|
760
756
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
761
757
|
};
|
|
762
|
-
const
|
|
758
|
+
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
763
759
|
const contents = map({});
|
|
764
760
|
const data = parsedOutput.body;
|
|
765
761
|
if (data.message != null) {
|
|
@@ -771,7 +767,7 @@ const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (pars
|
|
|
771
767
|
});
|
|
772
768
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
773
769
|
};
|
|
774
|
-
const
|
|
770
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
775
771
|
const contents = map({});
|
|
776
772
|
const data = parsedOutput.body;
|
|
777
773
|
if (data.message != null) {
|
|
@@ -783,7 +779,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
783
779
|
});
|
|
784
780
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
785
781
|
};
|
|
786
|
-
const
|
|
782
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
787
783
|
const contents = map({});
|
|
788
784
|
const data = parsedOutput.body;
|
|
789
785
|
if (data.message != null) {
|
|
@@ -795,7 +791,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
|
|
|
795
791
|
});
|
|
796
792
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
797
793
|
};
|
|
798
|
-
const
|
|
794
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
799
795
|
const contents = map({});
|
|
800
796
|
const data = parsedOutput.body;
|
|
801
797
|
if (data.message != null) {
|
|
@@ -807,7 +803,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
807
803
|
});
|
|
808
804
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
809
805
|
};
|
|
810
|
-
const
|
|
806
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
811
807
|
const contents = map({});
|
|
812
808
|
const data = parsedOutput.body;
|
|
813
809
|
if (data.message != null) {
|
|
@@ -819,7 +815,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
819
815
|
});
|
|
820
816
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
821
817
|
};
|
|
822
|
-
const
|
|
818
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
823
819
|
const contents = map({});
|
|
824
820
|
const data = parsedOutput.body;
|
|
825
821
|
if (data.message != null) {
|
|
@@ -831,7 +827,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
831
827
|
});
|
|
832
828
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
833
829
|
};
|
|
834
|
-
const
|
|
830
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
835
831
|
const contents = map({});
|
|
836
832
|
const data = parsedOutput.body;
|
|
837
833
|
if (data.message != null) {
|
|
@@ -843,7 +839,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
843
839
|
});
|
|
844
840
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
845
841
|
};
|
|
846
|
-
const
|
|
842
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
847
843
|
const contents = map({});
|
|
848
844
|
const data = parsedOutput.body;
|
|
849
845
|
if (data.message != null) {
|
|
@@ -855,26 +851,26 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
855
851
|
});
|
|
856
852
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
857
853
|
};
|
|
858
|
-
const
|
|
854
|
+
const se_InternetMeasurementsLogDelivery = (input, context) => {
|
|
859
855
|
return {
|
|
860
|
-
...(input.S3Config != null && { S3Config:
|
|
856
|
+
...(input.S3Config != null && { S3Config: se_S3Config(input.S3Config, context) }),
|
|
861
857
|
};
|
|
862
858
|
};
|
|
863
|
-
const
|
|
859
|
+
const se_S3Config = (input, context) => {
|
|
864
860
|
return {
|
|
865
861
|
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
866
862
|
...(input.BucketPrefix != null && { BucketPrefix: input.BucketPrefix }),
|
|
867
863
|
...(input.LogDeliveryStatus != null && { LogDeliveryStatus: input.LogDeliveryStatus }),
|
|
868
864
|
};
|
|
869
865
|
};
|
|
870
|
-
const
|
|
866
|
+
const se_SetOfARNs = (input, context) => {
|
|
871
867
|
return input
|
|
872
868
|
.filter((e) => e != null)
|
|
873
869
|
.map((entry) => {
|
|
874
870
|
return entry;
|
|
875
871
|
});
|
|
876
872
|
};
|
|
877
|
-
const
|
|
873
|
+
const se_TagMap = (input, context) => {
|
|
878
874
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
879
875
|
if (value === null) {
|
|
880
876
|
return acc;
|
|
@@ -883,23 +879,21 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
883
879
|
return acc;
|
|
884
880
|
}, {});
|
|
885
881
|
};
|
|
886
|
-
const
|
|
882
|
+
const de_AvailabilityMeasurement = (output, context) => {
|
|
887
883
|
return {
|
|
888
884
|
ExperienceScore: __limitedParseDouble(output.ExperienceScore),
|
|
889
885
|
PercentOfClientLocationImpacted: __limitedParseDouble(output.PercentOfClientLocationImpacted),
|
|
890
886
|
PercentOfTotalTrafficImpacted: __limitedParseDouble(output.PercentOfTotalTrafficImpacted),
|
|
891
887
|
};
|
|
892
888
|
};
|
|
893
|
-
const
|
|
889
|
+
const de_HealthEvent = (output, context) => {
|
|
894
890
|
return {
|
|
895
891
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.CreatedAt)) : undefined,
|
|
896
892
|
EndedAt: output.EndedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.EndedAt)) : undefined,
|
|
897
893
|
EventArn: __expectString(output.EventArn),
|
|
898
894
|
EventId: __expectString(output.EventId),
|
|
899
895
|
ImpactType: __expectString(output.ImpactType),
|
|
900
|
-
ImpactedLocations: output.ImpactedLocations != null
|
|
901
|
-
? deserializeAws_restJson1ImpactedLocationsList(output.ImpactedLocations, context)
|
|
902
|
-
: undefined,
|
|
896
|
+
ImpactedLocations: output.ImpactedLocations != null ? de_ImpactedLocationsList(output.ImpactedLocations, context) : undefined,
|
|
903
897
|
LastUpdatedAt: output.LastUpdatedAt != null
|
|
904
898
|
? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.LastUpdatedAt))
|
|
905
899
|
: undefined,
|
|
@@ -908,28 +902,26 @@ const deserializeAws_restJson1HealthEvent = (output, context) => {
|
|
|
908
902
|
Status: __expectString(output.Status),
|
|
909
903
|
};
|
|
910
904
|
};
|
|
911
|
-
const
|
|
905
|
+
const de_HealthEventList = (output, context) => {
|
|
912
906
|
const retVal = (output || [])
|
|
913
907
|
.filter((e) => e != null)
|
|
914
908
|
.map((entry) => {
|
|
915
909
|
if (entry === null) {
|
|
916
910
|
return null;
|
|
917
911
|
}
|
|
918
|
-
return
|
|
912
|
+
return de_HealthEvent(entry, context);
|
|
919
913
|
});
|
|
920
914
|
return retVal;
|
|
921
915
|
};
|
|
922
|
-
const
|
|
916
|
+
const de_ImpactedLocation = (output, context) => {
|
|
923
917
|
return {
|
|
924
918
|
ASName: __expectString(output.ASName),
|
|
925
919
|
ASNumber: __expectLong(output.ASNumber),
|
|
926
|
-
CausedBy: output.CausedBy != null ?
|
|
920
|
+
CausedBy: output.CausedBy != null ? de_NetworkImpairment(output.CausedBy, context) : undefined,
|
|
927
921
|
City: __expectString(output.City),
|
|
928
922
|
Country: __expectString(output.Country),
|
|
929
923
|
CountryCode: __expectString(output.CountryCode),
|
|
930
|
-
InternetHealth: output.InternetHealth != null
|
|
931
|
-
? deserializeAws_restJson1InternetHealth(output.InternetHealth, context)
|
|
932
|
-
: undefined,
|
|
924
|
+
InternetHealth: output.InternetHealth != null ? de_InternetHealth(output.InternetHealth, context) : undefined,
|
|
933
925
|
Latitude: __limitedParseDouble(output.Latitude),
|
|
934
926
|
Longitude: __limitedParseDouble(output.Longitude),
|
|
935
927
|
Metro: __expectString(output.Metro),
|
|
@@ -939,33 +931,29 @@ const deserializeAws_restJson1ImpactedLocation = (output, context) => {
|
|
|
939
931
|
SubdivisionCode: __expectString(output.SubdivisionCode),
|
|
940
932
|
};
|
|
941
933
|
};
|
|
942
|
-
const
|
|
934
|
+
const de_ImpactedLocationsList = (output, context) => {
|
|
943
935
|
const retVal = (output || [])
|
|
944
936
|
.filter((e) => e != null)
|
|
945
937
|
.map((entry) => {
|
|
946
938
|
if (entry === null) {
|
|
947
939
|
return null;
|
|
948
940
|
}
|
|
949
|
-
return
|
|
941
|
+
return de_ImpactedLocation(entry, context);
|
|
950
942
|
});
|
|
951
943
|
return retVal;
|
|
952
944
|
};
|
|
953
|
-
const
|
|
945
|
+
const de_InternetHealth = (output, context) => {
|
|
954
946
|
return {
|
|
955
|
-
Availability: output.Availability != null
|
|
956
|
-
|
|
957
|
-
: undefined,
|
|
958
|
-
Performance: output.Performance != null
|
|
959
|
-
? deserializeAws_restJson1PerformanceMeasurement(output.Performance, context)
|
|
960
|
-
: undefined,
|
|
947
|
+
Availability: output.Availability != null ? de_AvailabilityMeasurement(output.Availability, context) : undefined,
|
|
948
|
+
Performance: output.Performance != null ? de_PerformanceMeasurement(output.Performance, context) : undefined,
|
|
961
949
|
};
|
|
962
950
|
};
|
|
963
|
-
const
|
|
951
|
+
const de_InternetMeasurementsLogDelivery = (output, context) => {
|
|
964
952
|
return {
|
|
965
|
-
S3Config: output.S3Config != null ?
|
|
953
|
+
S3Config: output.S3Config != null ? de_S3Config(output.S3Config, context) : undefined,
|
|
966
954
|
};
|
|
967
955
|
};
|
|
968
|
-
const
|
|
956
|
+
const de_Monitor = (output, context) => {
|
|
969
957
|
return {
|
|
970
958
|
MonitorArn: __expectString(output.MonitorArn),
|
|
971
959
|
MonitorName: __expectString(output.MonitorName),
|
|
@@ -973,64 +961,64 @@ const deserializeAws_restJson1Monitor = (output, context) => {
|
|
|
973
961
|
Status: __expectString(output.Status),
|
|
974
962
|
};
|
|
975
963
|
};
|
|
976
|
-
const
|
|
964
|
+
const de_MonitorList = (output, context) => {
|
|
977
965
|
const retVal = (output || [])
|
|
978
966
|
.filter((e) => e != null)
|
|
979
967
|
.map((entry) => {
|
|
980
968
|
if (entry === null) {
|
|
981
969
|
return null;
|
|
982
970
|
}
|
|
983
|
-
return
|
|
971
|
+
return de_Monitor(entry, context);
|
|
984
972
|
});
|
|
985
973
|
return retVal;
|
|
986
974
|
};
|
|
987
|
-
const
|
|
975
|
+
const de_Network = (output, context) => {
|
|
988
976
|
return {
|
|
989
977
|
ASName: __expectString(output.ASName),
|
|
990
978
|
ASNumber: __expectLong(output.ASNumber),
|
|
991
979
|
};
|
|
992
980
|
};
|
|
993
|
-
const
|
|
981
|
+
const de_NetworkImpairment = (output, context) => {
|
|
994
982
|
return {
|
|
995
|
-
AsPath: output.AsPath != null ?
|
|
983
|
+
AsPath: output.AsPath != null ? de_NetworkList(output.AsPath, context) : undefined,
|
|
996
984
|
NetworkEventType: __expectString(output.NetworkEventType),
|
|
997
|
-
Networks: output.Networks != null ?
|
|
985
|
+
Networks: output.Networks != null ? de_NetworkList(output.Networks, context) : undefined,
|
|
998
986
|
};
|
|
999
987
|
};
|
|
1000
|
-
const
|
|
988
|
+
const de_NetworkList = (output, context) => {
|
|
1001
989
|
const retVal = (output || [])
|
|
1002
990
|
.filter((e) => e != null)
|
|
1003
991
|
.map((entry) => {
|
|
1004
992
|
if (entry === null) {
|
|
1005
993
|
return null;
|
|
1006
994
|
}
|
|
1007
|
-
return
|
|
995
|
+
return de_Network(entry, context);
|
|
1008
996
|
});
|
|
1009
997
|
return retVal;
|
|
1010
998
|
};
|
|
1011
|
-
const
|
|
999
|
+
const de_PerformanceMeasurement = (output, context) => {
|
|
1012
1000
|
return {
|
|
1013
1001
|
ExperienceScore: __limitedParseDouble(output.ExperienceScore),
|
|
1014
1002
|
PercentOfClientLocationImpacted: __limitedParseDouble(output.PercentOfClientLocationImpacted),
|
|
1015
1003
|
PercentOfTotalTrafficImpacted: __limitedParseDouble(output.PercentOfTotalTrafficImpacted),
|
|
1016
|
-
RoundTripTime: output.RoundTripTime != null ?
|
|
1004
|
+
RoundTripTime: output.RoundTripTime != null ? de_RoundTripTime(output.RoundTripTime, context) : undefined,
|
|
1017
1005
|
};
|
|
1018
1006
|
};
|
|
1019
|
-
const
|
|
1007
|
+
const de_RoundTripTime = (output, context) => {
|
|
1020
1008
|
return {
|
|
1021
1009
|
P50: __limitedParseDouble(output.P50),
|
|
1022
1010
|
P90: __limitedParseDouble(output.P90),
|
|
1023
1011
|
P95: __limitedParseDouble(output.P95),
|
|
1024
1012
|
};
|
|
1025
1013
|
};
|
|
1026
|
-
const
|
|
1014
|
+
const de_S3Config = (output, context) => {
|
|
1027
1015
|
return {
|
|
1028
1016
|
BucketName: __expectString(output.BucketName),
|
|
1029
1017
|
BucketPrefix: __expectString(output.BucketPrefix),
|
|
1030
1018
|
LogDeliveryStatus: __expectString(output.LogDeliveryStatus),
|
|
1031
1019
|
};
|
|
1032
1020
|
};
|
|
1033
|
-
const
|
|
1021
|
+
const de_SetOfARNs = (output, context) => {
|
|
1034
1022
|
const retVal = (output || [])
|
|
1035
1023
|
.filter((e) => e != null)
|
|
1036
1024
|
.map((entry) => {
|
|
@@ -1041,7 +1029,7 @@ const deserializeAws_restJson1SetOfARNs = (output, context) => {
|
|
|
1041
1029
|
});
|
|
1042
1030
|
return retVal;
|
|
1043
1031
|
};
|
|
1044
|
-
const
|
|
1032
|
+
const de_TagMap = (output, context) => {
|
|
1045
1033
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1046
1034
|
if (value === null) {
|
|
1047
1035
|
return acc;
|