@aws-sdk/client-network-firewall 3.504.0 → 3.507.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/index.js +88 -1137
- package/dist-es/protocols/Aws_json1_0.js +135 -1184
- package/package.json +3 -3
|
@@ -220,7 +220,7 @@ export const se_UpdateTLSInspectionConfigurationCommand = async (input, context)
|
|
|
220
220
|
};
|
|
221
221
|
export const de_AssociateFirewallPolicyCommand = async (output, context) => {
|
|
222
222
|
if (output.statusCode >= 300) {
|
|
223
|
-
return
|
|
223
|
+
return de_CommandError(output, context);
|
|
224
224
|
}
|
|
225
225
|
const data = await parseBody(output.body, context);
|
|
226
226
|
let contents = {};
|
|
@@ -231,43 +231,9 @@ export const de_AssociateFirewallPolicyCommand = async (output, context) => {
|
|
|
231
231
|
};
|
|
232
232
|
return response;
|
|
233
233
|
};
|
|
234
|
-
const de_AssociateFirewallPolicyCommandError = async (output, context) => {
|
|
235
|
-
const parsedOutput = {
|
|
236
|
-
...output,
|
|
237
|
-
body: await parseErrorBody(output.body, context),
|
|
238
|
-
};
|
|
239
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
240
|
-
switch (errorCode) {
|
|
241
|
-
case "InternalServerError":
|
|
242
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
243
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
244
|
-
case "InvalidOperationException":
|
|
245
|
-
case "com.amazonaws.networkfirewall#InvalidOperationException":
|
|
246
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
247
|
-
case "InvalidRequestException":
|
|
248
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
249
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
250
|
-
case "InvalidTokenException":
|
|
251
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException":
|
|
252
|
-
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
253
|
-
case "ResourceNotFoundException":
|
|
254
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
255
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
256
|
-
case "ThrottlingException":
|
|
257
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
258
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
259
|
-
default:
|
|
260
|
-
const parsedBody = parsedOutput.body;
|
|
261
|
-
return throwDefaultError({
|
|
262
|
-
output,
|
|
263
|
-
parsedBody,
|
|
264
|
-
errorCode,
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
234
|
export const de_AssociateSubnetsCommand = async (output, context) => {
|
|
269
235
|
if (output.statusCode >= 300) {
|
|
270
|
-
return
|
|
236
|
+
return de_CommandError(output, context);
|
|
271
237
|
}
|
|
272
238
|
const data = await parseBody(output.body, context);
|
|
273
239
|
let contents = {};
|
|
@@ -278,46 +244,9 @@ export const de_AssociateSubnetsCommand = async (output, context) => {
|
|
|
278
244
|
};
|
|
279
245
|
return response;
|
|
280
246
|
};
|
|
281
|
-
const de_AssociateSubnetsCommandError = async (output, context) => {
|
|
282
|
-
const parsedOutput = {
|
|
283
|
-
...output,
|
|
284
|
-
body: await parseErrorBody(output.body, context),
|
|
285
|
-
};
|
|
286
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
287
|
-
switch (errorCode) {
|
|
288
|
-
case "InsufficientCapacityException":
|
|
289
|
-
case "com.amazonaws.networkfirewall#InsufficientCapacityException":
|
|
290
|
-
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
291
|
-
case "InternalServerError":
|
|
292
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
293
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
294
|
-
case "InvalidOperationException":
|
|
295
|
-
case "com.amazonaws.networkfirewall#InvalidOperationException":
|
|
296
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
297
|
-
case "InvalidRequestException":
|
|
298
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
299
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
300
|
-
case "InvalidTokenException":
|
|
301
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException":
|
|
302
|
-
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
303
|
-
case "ResourceNotFoundException":
|
|
304
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
305
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
306
|
-
case "ThrottlingException":
|
|
307
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
308
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
309
|
-
default:
|
|
310
|
-
const parsedBody = parsedOutput.body;
|
|
311
|
-
return throwDefaultError({
|
|
312
|
-
output,
|
|
313
|
-
parsedBody,
|
|
314
|
-
errorCode,
|
|
315
|
-
});
|
|
316
|
-
}
|
|
317
|
-
};
|
|
318
247
|
export const de_CreateFirewallCommand = async (output, context) => {
|
|
319
248
|
if (output.statusCode >= 300) {
|
|
320
|
-
return
|
|
249
|
+
return de_CommandError(output, context);
|
|
321
250
|
}
|
|
322
251
|
const data = await parseBody(output.body, context);
|
|
323
252
|
let contents = {};
|
|
@@ -328,43 +257,9 @@ export const de_CreateFirewallCommand = async (output, context) => {
|
|
|
328
257
|
};
|
|
329
258
|
return response;
|
|
330
259
|
};
|
|
331
|
-
const de_CreateFirewallCommandError = async (output, context) => {
|
|
332
|
-
const parsedOutput = {
|
|
333
|
-
...output,
|
|
334
|
-
body: await parseErrorBody(output.body, context),
|
|
335
|
-
};
|
|
336
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
337
|
-
switch (errorCode) {
|
|
338
|
-
case "InsufficientCapacityException":
|
|
339
|
-
case "com.amazonaws.networkfirewall#InsufficientCapacityException":
|
|
340
|
-
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
341
|
-
case "InternalServerError":
|
|
342
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
343
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
344
|
-
case "InvalidOperationException":
|
|
345
|
-
case "com.amazonaws.networkfirewall#InvalidOperationException":
|
|
346
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
347
|
-
case "InvalidRequestException":
|
|
348
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
349
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
350
|
-
case "LimitExceededException":
|
|
351
|
-
case "com.amazonaws.networkfirewall#LimitExceededException":
|
|
352
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
353
|
-
case "ThrottlingException":
|
|
354
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
355
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
356
|
-
default:
|
|
357
|
-
const parsedBody = parsedOutput.body;
|
|
358
|
-
return throwDefaultError({
|
|
359
|
-
output,
|
|
360
|
-
parsedBody,
|
|
361
|
-
errorCode,
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
};
|
|
365
260
|
export const de_CreateFirewallPolicyCommand = async (output, context) => {
|
|
366
261
|
if (output.statusCode >= 300) {
|
|
367
|
-
return
|
|
262
|
+
return de_CommandError(output, context);
|
|
368
263
|
}
|
|
369
264
|
const data = await parseBody(output.body, context);
|
|
370
265
|
let contents = {};
|
|
@@ -375,40 +270,9 @@ export const de_CreateFirewallPolicyCommand = async (output, context) => {
|
|
|
375
270
|
};
|
|
376
271
|
return response;
|
|
377
272
|
};
|
|
378
|
-
const de_CreateFirewallPolicyCommandError = async (output, context) => {
|
|
379
|
-
const parsedOutput = {
|
|
380
|
-
...output,
|
|
381
|
-
body: await parseErrorBody(output.body, context),
|
|
382
|
-
};
|
|
383
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
384
|
-
switch (errorCode) {
|
|
385
|
-
case "InsufficientCapacityException":
|
|
386
|
-
case "com.amazonaws.networkfirewall#InsufficientCapacityException":
|
|
387
|
-
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
388
|
-
case "InternalServerError":
|
|
389
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
390
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
391
|
-
case "InvalidRequestException":
|
|
392
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
393
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
394
|
-
case "LimitExceededException":
|
|
395
|
-
case "com.amazonaws.networkfirewall#LimitExceededException":
|
|
396
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
397
|
-
case "ThrottlingException":
|
|
398
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
399
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
400
|
-
default:
|
|
401
|
-
const parsedBody = parsedOutput.body;
|
|
402
|
-
return throwDefaultError({
|
|
403
|
-
output,
|
|
404
|
-
parsedBody,
|
|
405
|
-
errorCode,
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
};
|
|
409
273
|
export const de_CreateRuleGroupCommand = async (output, context) => {
|
|
410
274
|
if (output.statusCode >= 300) {
|
|
411
|
-
return
|
|
275
|
+
return de_CommandError(output, context);
|
|
412
276
|
}
|
|
413
277
|
const data = await parseBody(output.body, context);
|
|
414
278
|
let contents = {};
|
|
@@ -419,40 +283,9 @@ export const de_CreateRuleGroupCommand = async (output, context) => {
|
|
|
419
283
|
};
|
|
420
284
|
return response;
|
|
421
285
|
};
|
|
422
|
-
const de_CreateRuleGroupCommandError = async (output, context) => {
|
|
423
|
-
const parsedOutput = {
|
|
424
|
-
...output,
|
|
425
|
-
body: await parseErrorBody(output.body, context),
|
|
426
|
-
};
|
|
427
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
428
|
-
switch (errorCode) {
|
|
429
|
-
case "InsufficientCapacityException":
|
|
430
|
-
case "com.amazonaws.networkfirewall#InsufficientCapacityException":
|
|
431
|
-
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
432
|
-
case "InternalServerError":
|
|
433
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
434
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
435
|
-
case "InvalidRequestException":
|
|
436
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
437
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
438
|
-
case "LimitExceededException":
|
|
439
|
-
case "com.amazonaws.networkfirewall#LimitExceededException":
|
|
440
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
441
|
-
case "ThrottlingException":
|
|
442
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
443
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
444
|
-
default:
|
|
445
|
-
const parsedBody = parsedOutput.body;
|
|
446
|
-
return throwDefaultError({
|
|
447
|
-
output,
|
|
448
|
-
parsedBody,
|
|
449
|
-
errorCode,
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
};
|
|
453
286
|
export const de_CreateTLSInspectionConfigurationCommand = async (output, context) => {
|
|
454
287
|
if (output.statusCode >= 300) {
|
|
455
|
-
return
|
|
288
|
+
return de_CommandError(output, context);
|
|
456
289
|
}
|
|
457
290
|
const data = await parseBody(output.body, context);
|
|
458
291
|
let contents = {};
|
|
@@ -463,351 +296,35 @@ export const de_CreateTLSInspectionConfigurationCommand = async (output, context
|
|
|
463
296
|
};
|
|
464
297
|
return response;
|
|
465
298
|
};
|
|
466
|
-
const de_CreateTLSInspectionConfigurationCommandError = async (output, context) => {
|
|
467
|
-
const parsedOutput = {
|
|
468
|
-
...output,
|
|
469
|
-
body: await parseErrorBody(output.body, context),
|
|
470
|
-
};
|
|
471
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
472
|
-
switch (errorCode) {
|
|
473
|
-
case "InsufficientCapacityException":
|
|
474
|
-
case "com.amazonaws.networkfirewall#InsufficientCapacityException":
|
|
475
|
-
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
476
|
-
case "InternalServerError":
|
|
477
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
478
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
479
|
-
case "InvalidRequestException":
|
|
480
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
481
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
482
|
-
case "LimitExceededException":
|
|
483
|
-
case "com.amazonaws.networkfirewall#LimitExceededException":
|
|
484
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
485
|
-
case "ThrottlingException":
|
|
486
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
487
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
488
|
-
default:
|
|
489
|
-
const parsedBody = parsedOutput.body;
|
|
490
|
-
return throwDefaultError({
|
|
491
|
-
output,
|
|
492
|
-
parsedBody,
|
|
493
|
-
errorCode,
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
};
|
|
497
299
|
export const de_DeleteFirewallCommand = async (output, context) => {
|
|
498
300
|
if (output.statusCode >= 300) {
|
|
499
|
-
return
|
|
500
|
-
}
|
|
501
|
-
const data = await parseBody(output.body, context);
|
|
502
|
-
let contents = {};
|
|
503
|
-
contents = _json(data);
|
|
504
|
-
const response = {
|
|
505
|
-
$metadata: deserializeMetadata(output),
|
|
506
|
-
...contents,
|
|
507
|
-
};
|
|
508
|
-
return response;
|
|
509
|
-
};
|
|
510
|
-
const de_DeleteFirewallCommandError = async (output, context) => {
|
|
511
|
-
const parsedOutput = {
|
|
512
|
-
...output,
|
|
513
|
-
body: await parseErrorBody(output.body, context),
|
|
514
|
-
};
|
|
515
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
516
|
-
switch (errorCode) {
|
|
517
|
-
case "InternalServerError":
|
|
518
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
519
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
520
|
-
case "InvalidOperationException":
|
|
521
|
-
case "com.amazonaws.networkfirewall#InvalidOperationException":
|
|
522
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
523
|
-
case "InvalidRequestException":
|
|
524
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
525
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
526
|
-
case "ResourceNotFoundException":
|
|
527
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
528
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
529
|
-
case "ThrottlingException":
|
|
530
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
531
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
532
|
-
case "UnsupportedOperationException":
|
|
533
|
-
case "com.amazonaws.networkfirewall#UnsupportedOperationException":
|
|
534
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
535
|
-
default:
|
|
536
|
-
const parsedBody = parsedOutput.body;
|
|
537
|
-
return throwDefaultError({
|
|
538
|
-
output,
|
|
539
|
-
parsedBody,
|
|
540
|
-
errorCode,
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
};
|
|
544
|
-
export const de_DeleteFirewallPolicyCommand = async (output, context) => {
|
|
545
|
-
if (output.statusCode >= 300) {
|
|
546
|
-
return de_DeleteFirewallPolicyCommandError(output, context);
|
|
547
|
-
}
|
|
548
|
-
const data = await parseBody(output.body, context);
|
|
549
|
-
let contents = {};
|
|
550
|
-
contents = de_DeleteFirewallPolicyResponse(data, context);
|
|
551
|
-
const response = {
|
|
552
|
-
$metadata: deserializeMetadata(output),
|
|
553
|
-
...contents,
|
|
554
|
-
};
|
|
555
|
-
return response;
|
|
556
|
-
};
|
|
557
|
-
const de_DeleteFirewallPolicyCommandError = async (output, context) => {
|
|
558
|
-
const parsedOutput = {
|
|
559
|
-
...output,
|
|
560
|
-
body: await parseErrorBody(output.body, context),
|
|
561
|
-
};
|
|
562
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
563
|
-
switch (errorCode) {
|
|
564
|
-
case "InternalServerError":
|
|
565
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
566
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
567
|
-
case "InvalidOperationException":
|
|
568
|
-
case "com.amazonaws.networkfirewall#InvalidOperationException":
|
|
569
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
570
|
-
case "InvalidRequestException":
|
|
571
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
572
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
573
|
-
case "ResourceNotFoundException":
|
|
574
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
575
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
576
|
-
case "ThrottlingException":
|
|
577
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
578
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
579
|
-
case "UnsupportedOperationException":
|
|
580
|
-
case "com.amazonaws.networkfirewall#UnsupportedOperationException":
|
|
581
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
582
|
-
default:
|
|
583
|
-
const parsedBody = parsedOutput.body;
|
|
584
|
-
return throwDefaultError({
|
|
585
|
-
output,
|
|
586
|
-
parsedBody,
|
|
587
|
-
errorCode,
|
|
588
|
-
});
|
|
589
|
-
}
|
|
590
|
-
};
|
|
591
|
-
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
592
|
-
if (output.statusCode >= 300) {
|
|
593
|
-
return de_DeleteResourcePolicyCommandError(output, context);
|
|
301
|
+
return de_CommandError(output, context);
|
|
594
302
|
}
|
|
595
303
|
const data = await parseBody(output.body, context);
|
|
596
304
|
let contents = {};
|
|
597
305
|
contents = _json(data);
|
|
598
306
|
const response = {
|
|
599
|
-
$metadata: deserializeMetadata(output),
|
|
600
|
-
...contents,
|
|
601
|
-
};
|
|
602
|
-
return response;
|
|
603
|
-
};
|
|
604
|
-
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
605
|
-
const parsedOutput = {
|
|
606
|
-
...output,
|
|
607
|
-
body: await parseErrorBody(output.body, context),
|
|
608
|
-
};
|
|
609
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
610
|
-
switch (errorCode) {
|
|
611
|
-
case "InternalServerError":
|
|
612
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
613
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
614
|
-
case "InvalidRequestException":
|
|
615
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
616
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
617
|
-
case "InvalidResourcePolicyException":
|
|
618
|
-
case "com.amazonaws.networkfirewall#InvalidResourcePolicyException":
|
|
619
|
-
throw await de_InvalidResourcePolicyExceptionRes(parsedOutput, context);
|
|
620
|
-
case "ResourceNotFoundException":
|
|
621
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
622
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
623
|
-
case "ThrottlingException":
|
|
624
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
625
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
626
|
-
default:
|
|
627
|
-
const parsedBody = parsedOutput.body;
|
|
628
|
-
return throwDefaultError({
|
|
629
|
-
output,
|
|
630
|
-
parsedBody,
|
|
631
|
-
errorCode,
|
|
632
|
-
});
|
|
633
|
-
}
|
|
634
|
-
};
|
|
635
|
-
export const de_DeleteRuleGroupCommand = async (output, context) => {
|
|
636
|
-
if (output.statusCode >= 300) {
|
|
637
|
-
return de_DeleteRuleGroupCommandError(output, context);
|
|
638
|
-
}
|
|
639
|
-
const data = await parseBody(output.body, context);
|
|
640
|
-
let contents = {};
|
|
641
|
-
contents = de_DeleteRuleGroupResponse(data, context);
|
|
642
|
-
const response = {
|
|
643
|
-
$metadata: deserializeMetadata(output),
|
|
644
|
-
...contents,
|
|
645
|
-
};
|
|
646
|
-
return response;
|
|
647
|
-
};
|
|
648
|
-
const de_DeleteRuleGroupCommandError = async (output, context) => {
|
|
649
|
-
const parsedOutput = {
|
|
650
|
-
...output,
|
|
651
|
-
body: await parseErrorBody(output.body, context),
|
|
652
|
-
};
|
|
653
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
654
|
-
switch (errorCode) {
|
|
655
|
-
case "InternalServerError":
|
|
656
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
657
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
658
|
-
case "InvalidOperationException":
|
|
659
|
-
case "com.amazonaws.networkfirewall#InvalidOperationException":
|
|
660
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
661
|
-
case "InvalidRequestException":
|
|
662
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
663
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
664
|
-
case "ResourceNotFoundException":
|
|
665
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
666
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
667
|
-
case "ThrottlingException":
|
|
668
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
669
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
670
|
-
case "UnsupportedOperationException":
|
|
671
|
-
case "com.amazonaws.networkfirewall#UnsupportedOperationException":
|
|
672
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
673
|
-
default:
|
|
674
|
-
const parsedBody = parsedOutput.body;
|
|
675
|
-
return throwDefaultError({
|
|
676
|
-
output,
|
|
677
|
-
parsedBody,
|
|
678
|
-
errorCode,
|
|
679
|
-
});
|
|
680
|
-
}
|
|
681
|
-
};
|
|
682
|
-
export const de_DeleteTLSInspectionConfigurationCommand = async (output, context) => {
|
|
683
|
-
if (output.statusCode >= 300) {
|
|
684
|
-
return de_DeleteTLSInspectionConfigurationCommandError(output, context);
|
|
685
|
-
}
|
|
686
|
-
const data = await parseBody(output.body, context);
|
|
687
|
-
let contents = {};
|
|
688
|
-
contents = de_DeleteTLSInspectionConfigurationResponse(data, context);
|
|
689
|
-
const response = {
|
|
690
|
-
$metadata: deserializeMetadata(output),
|
|
691
|
-
...contents,
|
|
692
|
-
};
|
|
693
|
-
return response;
|
|
694
|
-
};
|
|
695
|
-
const de_DeleteTLSInspectionConfigurationCommandError = async (output, context) => {
|
|
696
|
-
const parsedOutput = {
|
|
697
|
-
...output,
|
|
698
|
-
body: await parseErrorBody(output.body, context),
|
|
699
|
-
};
|
|
700
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
|
-
switch (errorCode) {
|
|
702
|
-
case "InternalServerError":
|
|
703
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
704
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
705
|
-
case "InvalidOperationException":
|
|
706
|
-
case "com.amazonaws.networkfirewall#InvalidOperationException":
|
|
707
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
708
|
-
case "InvalidRequestException":
|
|
709
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
710
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
711
|
-
case "ResourceNotFoundException":
|
|
712
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
713
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
714
|
-
case "ThrottlingException":
|
|
715
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
716
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
717
|
-
default:
|
|
718
|
-
const parsedBody = parsedOutput.body;
|
|
719
|
-
return throwDefaultError({
|
|
720
|
-
output,
|
|
721
|
-
parsedBody,
|
|
722
|
-
errorCode,
|
|
723
|
-
});
|
|
724
|
-
}
|
|
725
|
-
};
|
|
726
|
-
export const de_DescribeFirewallCommand = async (output, context) => {
|
|
727
|
-
if (output.statusCode >= 300) {
|
|
728
|
-
return de_DescribeFirewallCommandError(output, context);
|
|
729
|
-
}
|
|
730
|
-
const data = await parseBody(output.body, context);
|
|
731
|
-
let contents = {};
|
|
732
|
-
contents = _json(data);
|
|
733
|
-
const response = {
|
|
734
|
-
$metadata: deserializeMetadata(output),
|
|
735
|
-
...contents,
|
|
736
|
-
};
|
|
737
|
-
return response;
|
|
738
|
-
};
|
|
739
|
-
const de_DescribeFirewallCommandError = async (output, context) => {
|
|
740
|
-
const parsedOutput = {
|
|
741
|
-
...output,
|
|
742
|
-
body: await parseErrorBody(output.body, context),
|
|
743
|
-
};
|
|
744
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
745
|
-
switch (errorCode) {
|
|
746
|
-
case "InternalServerError":
|
|
747
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
748
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
749
|
-
case "InvalidRequestException":
|
|
750
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
751
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
752
|
-
case "ResourceNotFoundException":
|
|
753
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
754
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
755
|
-
case "ThrottlingException":
|
|
756
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
757
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
758
|
-
default:
|
|
759
|
-
const parsedBody = parsedOutput.body;
|
|
760
|
-
return throwDefaultError({
|
|
761
|
-
output,
|
|
762
|
-
parsedBody,
|
|
763
|
-
errorCode,
|
|
764
|
-
});
|
|
765
|
-
}
|
|
307
|
+
$metadata: deserializeMetadata(output),
|
|
308
|
+
...contents,
|
|
309
|
+
};
|
|
310
|
+
return response;
|
|
766
311
|
};
|
|
767
|
-
export const
|
|
312
|
+
export const de_DeleteFirewallPolicyCommand = async (output, context) => {
|
|
768
313
|
if (output.statusCode >= 300) {
|
|
769
|
-
return
|
|
314
|
+
return de_CommandError(output, context);
|
|
770
315
|
}
|
|
771
316
|
const data = await parseBody(output.body, context);
|
|
772
317
|
let contents = {};
|
|
773
|
-
contents =
|
|
318
|
+
contents = de_DeleteFirewallPolicyResponse(data, context);
|
|
774
319
|
const response = {
|
|
775
320
|
$metadata: deserializeMetadata(output),
|
|
776
321
|
...contents,
|
|
777
322
|
};
|
|
778
323
|
return response;
|
|
779
324
|
};
|
|
780
|
-
const
|
|
781
|
-
const parsedOutput = {
|
|
782
|
-
...output,
|
|
783
|
-
body: await parseErrorBody(output.body, context),
|
|
784
|
-
};
|
|
785
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
786
|
-
switch (errorCode) {
|
|
787
|
-
case "InternalServerError":
|
|
788
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
789
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
790
|
-
case "InvalidRequestException":
|
|
791
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
792
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
793
|
-
case "ResourceNotFoundException":
|
|
794
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
795
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
796
|
-
case "ThrottlingException":
|
|
797
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
798
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
799
|
-
default:
|
|
800
|
-
const parsedBody = parsedOutput.body;
|
|
801
|
-
return throwDefaultError({
|
|
802
|
-
output,
|
|
803
|
-
parsedBody,
|
|
804
|
-
errorCode,
|
|
805
|
-
});
|
|
806
|
-
}
|
|
807
|
-
};
|
|
808
|
-
export const de_DescribeLoggingConfigurationCommand = async (output, context) => {
|
|
325
|
+
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
809
326
|
if (output.statusCode >= 300) {
|
|
810
|
-
return
|
|
327
|
+
return de_CommandError(output, context);
|
|
811
328
|
}
|
|
812
329
|
const data = await parseBody(output.body, context);
|
|
813
330
|
let contents = {};
|
|
@@ -818,201 +335,61 @@ export const de_DescribeLoggingConfigurationCommand = async (output, context) =>
|
|
|
818
335
|
};
|
|
819
336
|
return response;
|
|
820
337
|
};
|
|
821
|
-
const
|
|
822
|
-
const parsedOutput = {
|
|
823
|
-
...output,
|
|
824
|
-
body: await parseErrorBody(output.body, context),
|
|
825
|
-
};
|
|
826
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
827
|
-
switch (errorCode) {
|
|
828
|
-
case "InternalServerError":
|
|
829
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
830
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
831
|
-
case "InvalidRequestException":
|
|
832
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
833
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
834
|
-
case "ResourceNotFoundException":
|
|
835
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
836
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
837
|
-
case "ThrottlingException":
|
|
838
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
839
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
840
|
-
default:
|
|
841
|
-
const parsedBody = parsedOutput.body;
|
|
842
|
-
return throwDefaultError({
|
|
843
|
-
output,
|
|
844
|
-
parsedBody,
|
|
845
|
-
errorCode,
|
|
846
|
-
});
|
|
847
|
-
}
|
|
848
|
-
};
|
|
849
|
-
export const de_DescribeResourcePolicyCommand = async (output, context) => {
|
|
338
|
+
export const de_DeleteRuleGroupCommand = async (output, context) => {
|
|
850
339
|
if (output.statusCode >= 300) {
|
|
851
|
-
return
|
|
340
|
+
return de_CommandError(output, context);
|
|
852
341
|
}
|
|
853
342
|
const data = await parseBody(output.body, context);
|
|
854
343
|
let contents = {};
|
|
855
|
-
contents =
|
|
344
|
+
contents = de_DeleteRuleGroupResponse(data, context);
|
|
856
345
|
const response = {
|
|
857
346
|
$metadata: deserializeMetadata(output),
|
|
858
347
|
...contents,
|
|
859
348
|
};
|
|
860
349
|
return response;
|
|
861
350
|
};
|
|
862
|
-
const
|
|
863
|
-
const parsedOutput = {
|
|
864
|
-
...output,
|
|
865
|
-
body: await parseErrorBody(output.body, context),
|
|
866
|
-
};
|
|
867
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
|
-
switch (errorCode) {
|
|
869
|
-
case "InternalServerError":
|
|
870
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
871
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
872
|
-
case "InvalidRequestException":
|
|
873
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
874
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
875
|
-
case "ResourceNotFoundException":
|
|
876
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
877
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
878
|
-
case "ThrottlingException":
|
|
879
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
880
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
881
|
-
default:
|
|
882
|
-
const parsedBody = parsedOutput.body;
|
|
883
|
-
return throwDefaultError({
|
|
884
|
-
output,
|
|
885
|
-
parsedBody,
|
|
886
|
-
errorCode,
|
|
887
|
-
});
|
|
888
|
-
}
|
|
889
|
-
};
|
|
890
|
-
export const de_DescribeRuleGroupCommand = async (output, context) => {
|
|
351
|
+
export const de_DeleteTLSInspectionConfigurationCommand = async (output, context) => {
|
|
891
352
|
if (output.statusCode >= 300) {
|
|
892
|
-
return
|
|
353
|
+
return de_CommandError(output, context);
|
|
893
354
|
}
|
|
894
355
|
const data = await parseBody(output.body, context);
|
|
895
356
|
let contents = {};
|
|
896
|
-
contents =
|
|
357
|
+
contents = de_DeleteTLSInspectionConfigurationResponse(data, context);
|
|
897
358
|
const response = {
|
|
898
359
|
$metadata: deserializeMetadata(output),
|
|
899
360
|
...contents,
|
|
900
361
|
};
|
|
901
362
|
return response;
|
|
902
363
|
};
|
|
903
|
-
const
|
|
904
|
-
const parsedOutput = {
|
|
905
|
-
...output,
|
|
906
|
-
body: await parseErrorBody(output.body, context),
|
|
907
|
-
};
|
|
908
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
909
|
-
switch (errorCode) {
|
|
910
|
-
case "InternalServerError":
|
|
911
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
912
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
913
|
-
case "InvalidRequestException":
|
|
914
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
915
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
916
|
-
case "ResourceNotFoundException":
|
|
917
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
918
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
919
|
-
case "ThrottlingException":
|
|
920
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
921
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
922
|
-
default:
|
|
923
|
-
const parsedBody = parsedOutput.body;
|
|
924
|
-
return throwDefaultError({
|
|
925
|
-
output,
|
|
926
|
-
parsedBody,
|
|
927
|
-
errorCode,
|
|
928
|
-
});
|
|
929
|
-
}
|
|
930
|
-
};
|
|
931
|
-
export const de_DescribeRuleGroupMetadataCommand = async (output, context) => {
|
|
364
|
+
export const de_DescribeFirewallCommand = async (output, context) => {
|
|
932
365
|
if (output.statusCode >= 300) {
|
|
933
|
-
return
|
|
366
|
+
return de_CommandError(output, context);
|
|
934
367
|
}
|
|
935
368
|
const data = await parseBody(output.body, context);
|
|
936
369
|
let contents = {};
|
|
937
|
-
contents =
|
|
370
|
+
contents = _json(data);
|
|
938
371
|
const response = {
|
|
939
372
|
$metadata: deserializeMetadata(output),
|
|
940
373
|
...contents,
|
|
941
374
|
};
|
|
942
375
|
return response;
|
|
943
376
|
};
|
|
944
|
-
const
|
|
945
|
-
const parsedOutput = {
|
|
946
|
-
...output,
|
|
947
|
-
body: await parseErrorBody(output.body, context),
|
|
948
|
-
};
|
|
949
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
950
|
-
switch (errorCode) {
|
|
951
|
-
case "InternalServerError":
|
|
952
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
953
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
954
|
-
case "InvalidRequestException":
|
|
955
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
956
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
957
|
-
case "ResourceNotFoundException":
|
|
958
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
959
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
960
|
-
case "ThrottlingException":
|
|
961
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
962
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
963
|
-
default:
|
|
964
|
-
const parsedBody = parsedOutput.body;
|
|
965
|
-
return throwDefaultError({
|
|
966
|
-
output,
|
|
967
|
-
parsedBody,
|
|
968
|
-
errorCode,
|
|
969
|
-
});
|
|
970
|
-
}
|
|
971
|
-
};
|
|
972
|
-
export const de_DescribeTLSInspectionConfigurationCommand = async (output, context) => {
|
|
377
|
+
export const de_DescribeFirewallPolicyCommand = async (output, context) => {
|
|
973
378
|
if (output.statusCode >= 300) {
|
|
974
|
-
return
|
|
379
|
+
return de_CommandError(output, context);
|
|
975
380
|
}
|
|
976
381
|
const data = await parseBody(output.body, context);
|
|
977
382
|
let contents = {};
|
|
978
|
-
contents =
|
|
383
|
+
contents = de_DescribeFirewallPolicyResponse(data, context);
|
|
979
384
|
const response = {
|
|
980
385
|
$metadata: deserializeMetadata(output),
|
|
981
386
|
...contents,
|
|
982
387
|
};
|
|
983
388
|
return response;
|
|
984
389
|
};
|
|
985
|
-
const
|
|
986
|
-
const parsedOutput = {
|
|
987
|
-
...output,
|
|
988
|
-
body: await parseErrorBody(output.body, context),
|
|
989
|
-
};
|
|
990
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
991
|
-
switch (errorCode) {
|
|
992
|
-
case "InternalServerError":
|
|
993
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
994
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
995
|
-
case "InvalidRequestException":
|
|
996
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
997
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
998
|
-
case "ResourceNotFoundException":
|
|
999
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1000
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1001
|
-
case "ThrottlingException":
|
|
1002
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1003
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1004
|
-
default:
|
|
1005
|
-
const parsedBody = parsedOutput.body;
|
|
1006
|
-
return throwDefaultError({
|
|
1007
|
-
output,
|
|
1008
|
-
parsedBody,
|
|
1009
|
-
errorCode,
|
|
1010
|
-
});
|
|
1011
|
-
}
|
|
1012
|
-
};
|
|
1013
|
-
export const de_DisassociateSubnetsCommand = async (output, context) => {
|
|
390
|
+
export const de_DescribeLoggingConfigurationCommand = async (output, context) => {
|
|
1014
391
|
if (output.statusCode >= 300) {
|
|
1015
|
-
return
|
|
392
|
+
return de_CommandError(output, context);
|
|
1016
393
|
}
|
|
1017
394
|
const data = await parseBody(output.body, context);
|
|
1018
395
|
let contents = {};
|
|
@@ -1023,43 +400,9 @@ export const de_DisassociateSubnetsCommand = async (output, context) => {
|
|
|
1023
400
|
};
|
|
1024
401
|
return response;
|
|
1025
402
|
};
|
|
1026
|
-
const
|
|
1027
|
-
const parsedOutput = {
|
|
1028
|
-
...output,
|
|
1029
|
-
body: await parseErrorBody(output.body, context),
|
|
1030
|
-
};
|
|
1031
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1032
|
-
switch (errorCode) {
|
|
1033
|
-
case "InternalServerError":
|
|
1034
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1035
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1036
|
-
case "InvalidOperationException":
|
|
1037
|
-
case "com.amazonaws.networkfirewall#InvalidOperationException":
|
|
1038
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1039
|
-
case "InvalidRequestException":
|
|
1040
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1041
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1042
|
-
case "InvalidTokenException":
|
|
1043
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException":
|
|
1044
|
-
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
1045
|
-
case "ResourceNotFoundException":
|
|
1046
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1047
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1048
|
-
case "ThrottlingException":
|
|
1049
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1050
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1051
|
-
default:
|
|
1052
|
-
const parsedBody = parsedOutput.body;
|
|
1053
|
-
return throwDefaultError({
|
|
1054
|
-
output,
|
|
1055
|
-
parsedBody,
|
|
1056
|
-
errorCode,
|
|
1057
|
-
});
|
|
1058
|
-
}
|
|
1059
|
-
};
|
|
1060
|
-
export const de_ListFirewallPoliciesCommand = async (output, context) => {
|
|
403
|
+
export const de_DescribeResourcePolicyCommand = async (output, context) => {
|
|
1061
404
|
if (output.statusCode >= 300) {
|
|
1062
|
-
return
|
|
405
|
+
return de_CommandError(output, context);
|
|
1063
406
|
}
|
|
1064
407
|
const data = await parseBody(output.body, context);
|
|
1065
408
|
let contents = {};
|
|
@@ -1070,72 +413,48 @@ export const de_ListFirewallPoliciesCommand = async (output, context) => {
|
|
|
1070
413
|
};
|
|
1071
414
|
return response;
|
|
1072
415
|
};
|
|
1073
|
-
const
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
body: await parseErrorBody(output.body, context),
|
|
1077
|
-
};
|
|
1078
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
|
-
switch (errorCode) {
|
|
1080
|
-
case "InternalServerError":
|
|
1081
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1082
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1083
|
-
case "InvalidRequestException":
|
|
1084
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1085
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1086
|
-
case "ThrottlingException":
|
|
1087
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1088
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1089
|
-
default:
|
|
1090
|
-
const parsedBody = parsedOutput.body;
|
|
1091
|
-
return throwDefaultError({
|
|
1092
|
-
output,
|
|
1093
|
-
parsedBody,
|
|
1094
|
-
errorCode,
|
|
1095
|
-
});
|
|
416
|
+
export const de_DescribeRuleGroupCommand = async (output, context) => {
|
|
417
|
+
if (output.statusCode >= 300) {
|
|
418
|
+
return de_CommandError(output, context);
|
|
1096
419
|
}
|
|
420
|
+
const data = await parseBody(output.body, context);
|
|
421
|
+
let contents = {};
|
|
422
|
+
contents = de_DescribeRuleGroupResponse(data, context);
|
|
423
|
+
const response = {
|
|
424
|
+
$metadata: deserializeMetadata(output),
|
|
425
|
+
...contents,
|
|
426
|
+
};
|
|
427
|
+
return response;
|
|
1097
428
|
};
|
|
1098
|
-
export const
|
|
429
|
+
export const de_DescribeRuleGroupMetadataCommand = async (output, context) => {
|
|
1099
430
|
if (output.statusCode >= 300) {
|
|
1100
|
-
return
|
|
431
|
+
return de_CommandError(output, context);
|
|
1101
432
|
}
|
|
1102
433
|
const data = await parseBody(output.body, context);
|
|
1103
434
|
let contents = {};
|
|
1104
|
-
contents =
|
|
435
|
+
contents = de_DescribeRuleGroupMetadataResponse(data, context);
|
|
1105
436
|
const response = {
|
|
1106
437
|
$metadata: deserializeMetadata(output),
|
|
1107
438
|
...contents,
|
|
1108
439
|
};
|
|
1109
440
|
return response;
|
|
1110
441
|
};
|
|
1111
|
-
const
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
body: await parseErrorBody(output.body, context),
|
|
1115
|
-
};
|
|
1116
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1117
|
-
switch (errorCode) {
|
|
1118
|
-
case "InternalServerError":
|
|
1119
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1120
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1121
|
-
case "InvalidRequestException":
|
|
1122
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1123
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "ThrottlingException":
|
|
1125
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1126
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1127
|
-
default:
|
|
1128
|
-
const parsedBody = parsedOutput.body;
|
|
1129
|
-
return throwDefaultError({
|
|
1130
|
-
output,
|
|
1131
|
-
parsedBody,
|
|
1132
|
-
errorCode,
|
|
1133
|
-
});
|
|
442
|
+
export const de_DescribeTLSInspectionConfigurationCommand = async (output, context) => {
|
|
443
|
+
if (output.statusCode >= 300) {
|
|
444
|
+
return de_CommandError(output, context);
|
|
1134
445
|
}
|
|
446
|
+
const data = await parseBody(output.body, context);
|
|
447
|
+
let contents = {};
|
|
448
|
+
contents = de_DescribeTLSInspectionConfigurationResponse(data, context);
|
|
449
|
+
const response = {
|
|
450
|
+
$metadata: deserializeMetadata(output),
|
|
451
|
+
...contents,
|
|
452
|
+
};
|
|
453
|
+
return response;
|
|
1135
454
|
};
|
|
1136
|
-
export const
|
|
455
|
+
export const de_DisassociateSubnetsCommand = async (output, context) => {
|
|
1137
456
|
if (output.statusCode >= 300) {
|
|
1138
|
-
return
|
|
457
|
+
return de_CommandError(output, context);
|
|
1139
458
|
}
|
|
1140
459
|
const data = await parseBody(output.body, context);
|
|
1141
460
|
let contents = {};
|
|
@@ -1146,34 +465,9 @@ export const de_ListRuleGroupsCommand = async (output, context) => {
|
|
|
1146
465
|
};
|
|
1147
466
|
return response;
|
|
1148
467
|
};
|
|
1149
|
-
const
|
|
1150
|
-
const parsedOutput = {
|
|
1151
|
-
...output,
|
|
1152
|
-
body: await parseErrorBody(output.body, context),
|
|
1153
|
-
};
|
|
1154
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1155
|
-
switch (errorCode) {
|
|
1156
|
-
case "InternalServerError":
|
|
1157
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1158
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1159
|
-
case "InvalidRequestException":
|
|
1160
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1161
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1162
|
-
case "ThrottlingException":
|
|
1163
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1164
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1165
|
-
default:
|
|
1166
|
-
const parsedBody = parsedOutput.body;
|
|
1167
|
-
return throwDefaultError({
|
|
1168
|
-
output,
|
|
1169
|
-
parsedBody,
|
|
1170
|
-
errorCode,
|
|
1171
|
-
});
|
|
1172
|
-
}
|
|
1173
|
-
};
|
|
1174
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
468
|
+
export const de_ListFirewallPoliciesCommand = async (output, context) => {
|
|
1175
469
|
if (output.statusCode >= 300) {
|
|
1176
|
-
return
|
|
470
|
+
return de_CommandError(output, context);
|
|
1177
471
|
}
|
|
1178
472
|
const data = await parseBody(output.body, context);
|
|
1179
473
|
let contents = {};
|
|
@@ -1184,37 +478,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1184
478
|
};
|
|
1185
479
|
return response;
|
|
1186
480
|
};
|
|
1187
|
-
const
|
|
1188
|
-
const parsedOutput = {
|
|
1189
|
-
...output,
|
|
1190
|
-
body: await parseErrorBody(output.body, context),
|
|
1191
|
-
};
|
|
1192
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1193
|
-
switch (errorCode) {
|
|
1194
|
-
case "InternalServerError":
|
|
1195
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1196
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1197
|
-
case "InvalidRequestException":
|
|
1198
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1199
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "ResourceNotFoundException":
|
|
1201
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1202
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "ThrottlingException":
|
|
1204
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1205
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1206
|
-
default:
|
|
1207
|
-
const parsedBody = parsedOutput.body;
|
|
1208
|
-
return throwDefaultError({
|
|
1209
|
-
output,
|
|
1210
|
-
parsedBody,
|
|
1211
|
-
errorCode,
|
|
1212
|
-
});
|
|
1213
|
-
}
|
|
1214
|
-
};
|
|
1215
|
-
export const de_ListTLSInspectionConfigurationsCommand = async (output, context) => {
|
|
481
|
+
export const de_ListFirewallsCommand = async (output, context) => {
|
|
1216
482
|
if (output.statusCode >= 300) {
|
|
1217
|
-
return
|
|
483
|
+
return de_CommandError(output, context);
|
|
1218
484
|
}
|
|
1219
485
|
const data = await parseBody(output.body, context);
|
|
1220
486
|
let contents = {};
|
|
@@ -1225,34 +491,9 @@ export const de_ListTLSInspectionConfigurationsCommand = async (output, context)
|
|
|
1225
491
|
};
|
|
1226
492
|
return response;
|
|
1227
493
|
};
|
|
1228
|
-
const
|
|
1229
|
-
const parsedOutput = {
|
|
1230
|
-
...output,
|
|
1231
|
-
body: await parseErrorBody(output.body, context),
|
|
1232
|
-
};
|
|
1233
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1234
|
-
switch (errorCode) {
|
|
1235
|
-
case "InternalServerError":
|
|
1236
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1237
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1238
|
-
case "InvalidRequestException":
|
|
1239
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1240
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1241
|
-
case "ThrottlingException":
|
|
1242
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1243
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1244
|
-
default:
|
|
1245
|
-
const parsedBody = parsedOutput.body;
|
|
1246
|
-
return throwDefaultError({
|
|
1247
|
-
output,
|
|
1248
|
-
parsedBody,
|
|
1249
|
-
errorCode,
|
|
1250
|
-
});
|
|
1251
|
-
}
|
|
1252
|
-
};
|
|
1253
|
-
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
494
|
+
export const de_ListRuleGroupsCommand = async (output, context) => {
|
|
1254
495
|
if (output.statusCode >= 300) {
|
|
1255
|
-
return
|
|
496
|
+
return de_CommandError(output, context);
|
|
1256
497
|
}
|
|
1257
498
|
const data = await parseBody(output.body, context);
|
|
1258
499
|
let contents = {};
|
|
@@ -1263,40 +504,9 @@ export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
|
1263
504
|
};
|
|
1264
505
|
return response;
|
|
1265
506
|
};
|
|
1266
|
-
const
|
|
1267
|
-
const parsedOutput = {
|
|
1268
|
-
...output,
|
|
1269
|
-
body: await parseErrorBody(output.body, context),
|
|
1270
|
-
};
|
|
1271
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1272
|
-
switch (errorCode) {
|
|
1273
|
-
case "InternalServerError":
|
|
1274
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1275
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1276
|
-
case "InvalidRequestException":
|
|
1277
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1278
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1279
|
-
case "InvalidResourcePolicyException":
|
|
1280
|
-
case "com.amazonaws.networkfirewall#InvalidResourcePolicyException":
|
|
1281
|
-
throw await de_InvalidResourcePolicyExceptionRes(parsedOutput, context);
|
|
1282
|
-
case "ResourceNotFoundException":
|
|
1283
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1284
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1285
|
-
case "ThrottlingException":
|
|
1286
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1287
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1288
|
-
default:
|
|
1289
|
-
const parsedBody = parsedOutput.body;
|
|
1290
|
-
return throwDefaultError({
|
|
1291
|
-
output,
|
|
1292
|
-
parsedBody,
|
|
1293
|
-
errorCode,
|
|
1294
|
-
});
|
|
1295
|
-
}
|
|
1296
|
-
};
|
|
1297
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
507
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1298
508
|
if (output.statusCode >= 300) {
|
|
1299
|
-
return
|
|
509
|
+
return de_CommandError(output, context);
|
|
1300
510
|
}
|
|
1301
511
|
const data = await parseBody(output.body, context);
|
|
1302
512
|
let contents = {};
|
|
@@ -1307,37 +517,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1307
517
|
};
|
|
1308
518
|
return response;
|
|
1309
519
|
};
|
|
1310
|
-
const
|
|
1311
|
-
const parsedOutput = {
|
|
1312
|
-
...output,
|
|
1313
|
-
body: await parseErrorBody(output.body, context),
|
|
1314
|
-
};
|
|
1315
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
|
-
switch (errorCode) {
|
|
1317
|
-
case "InternalServerError":
|
|
1318
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1319
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1320
|
-
case "InvalidRequestException":
|
|
1321
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1322
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "ResourceNotFoundException":
|
|
1324
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1325
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1326
|
-
case "ThrottlingException":
|
|
1327
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1328
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1329
|
-
default:
|
|
1330
|
-
const parsedBody = parsedOutput.body;
|
|
1331
|
-
return throwDefaultError({
|
|
1332
|
-
output,
|
|
1333
|
-
parsedBody,
|
|
1334
|
-
errorCode,
|
|
1335
|
-
});
|
|
1336
|
-
}
|
|
1337
|
-
};
|
|
1338
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
520
|
+
export const de_ListTLSInspectionConfigurationsCommand = async (output, context) => {
|
|
1339
521
|
if (output.statusCode >= 300) {
|
|
1340
|
-
return
|
|
522
|
+
return de_CommandError(output, context);
|
|
1341
523
|
}
|
|
1342
524
|
const data = await parseBody(output.body, context);
|
|
1343
525
|
let contents = {};
|
|
@@ -1348,37 +530,22 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1348
530
|
};
|
|
1349
531
|
return response;
|
|
1350
532
|
};
|
|
1351
|
-
const
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
body: await parseErrorBody(output.body, context),
|
|
1355
|
-
};
|
|
1356
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1357
|
-
switch (errorCode) {
|
|
1358
|
-
case "InternalServerError":
|
|
1359
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1360
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1361
|
-
case "InvalidRequestException":
|
|
1362
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1363
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1364
|
-
case "ResourceNotFoundException":
|
|
1365
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1366
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1367
|
-
case "ThrottlingException":
|
|
1368
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1369
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1370
|
-
default:
|
|
1371
|
-
const parsedBody = parsedOutput.body;
|
|
1372
|
-
return throwDefaultError({
|
|
1373
|
-
output,
|
|
1374
|
-
parsedBody,
|
|
1375
|
-
errorCode,
|
|
1376
|
-
});
|
|
533
|
+
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
534
|
+
if (output.statusCode >= 300) {
|
|
535
|
+
return de_CommandError(output, context);
|
|
1377
536
|
}
|
|
537
|
+
const data = await parseBody(output.body, context);
|
|
538
|
+
let contents = {};
|
|
539
|
+
contents = _json(data);
|
|
540
|
+
const response = {
|
|
541
|
+
$metadata: deserializeMetadata(output),
|
|
542
|
+
...contents,
|
|
543
|
+
};
|
|
544
|
+
return response;
|
|
1378
545
|
};
|
|
1379
|
-
export const
|
|
546
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1380
547
|
if (output.statusCode >= 300) {
|
|
1381
|
-
return
|
|
548
|
+
return de_CommandError(output, context);
|
|
1382
549
|
}
|
|
1383
550
|
const data = await parseBody(output.body, context);
|
|
1384
551
|
let contents = {};
|
|
@@ -1389,43 +556,22 @@ export const de_UpdateFirewallDeleteProtectionCommand = async (output, context)
|
|
|
1389
556
|
};
|
|
1390
557
|
return response;
|
|
1391
558
|
};
|
|
1392
|
-
const
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
body: await parseErrorBody(output.body, context),
|
|
1396
|
-
};
|
|
1397
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1398
|
-
switch (errorCode) {
|
|
1399
|
-
case "InternalServerError":
|
|
1400
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1401
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1402
|
-
case "InvalidRequestException":
|
|
1403
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1404
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1405
|
-
case "InvalidTokenException":
|
|
1406
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException":
|
|
1407
|
-
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
1408
|
-
case "ResourceNotFoundException":
|
|
1409
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1410
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1411
|
-
case "ResourceOwnerCheckException":
|
|
1412
|
-
case "com.amazonaws.networkfirewall#ResourceOwnerCheckException":
|
|
1413
|
-
throw await de_ResourceOwnerCheckExceptionRes(parsedOutput, context);
|
|
1414
|
-
case "ThrottlingException":
|
|
1415
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1416
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1417
|
-
default:
|
|
1418
|
-
const parsedBody = parsedOutput.body;
|
|
1419
|
-
return throwDefaultError({
|
|
1420
|
-
output,
|
|
1421
|
-
parsedBody,
|
|
1422
|
-
errorCode,
|
|
1423
|
-
});
|
|
559
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
560
|
+
if (output.statusCode >= 300) {
|
|
561
|
+
return de_CommandError(output, context);
|
|
1424
562
|
}
|
|
563
|
+
const data = await parseBody(output.body, context);
|
|
564
|
+
let contents = {};
|
|
565
|
+
contents = _json(data);
|
|
566
|
+
const response = {
|
|
567
|
+
$metadata: deserializeMetadata(output),
|
|
568
|
+
...contents,
|
|
569
|
+
};
|
|
570
|
+
return response;
|
|
1425
571
|
};
|
|
1426
|
-
export const
|
|
572
|
+
export const de_UpdateFirewallDeleteProtectionCommand = async (output, context) => {
|
|
1427
573
|
if (output.statusCode >= 300) {
|
|
1428
|
-
return
|
|
574
|
+
return de_CommandError(output, context);
|
|
1429
575
|
}
|
|
1430
576
|
const data = await parseBody(output.body, context);
|
|
1431
577
|
let contents = {};
|
|
@@ -1436,40 +582,22 @@ export const de_UpdateFirewallDescriptionCommand = async (output, context) => {
|
|
|
1436
582
|
};
|
|
1437
583
|
return response;
|
|
1438
584
|
};
|
|
1439
|
-
const
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
body: await parseErrorBody(output.body, context),
|
|
1443
|
-
};
|
|
1444
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
|
-
switch (errorCode) {
|
|
1446
|
-
case "InternalServerError":
|
|
1447
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1448
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1449
|
-
case "InvalidRequestException":
|
|
1450
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1451
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1452
|
-
case "InvalidTokenException":
|
|
1453
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException":
|
|
1454
|
-
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
1455
|
-
case "ResourceNotFoundException":
|
|
1456
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1457
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1458
|
-
case "ThrottlingException":
|
|
1459
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1460
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1461
|
-
default:
|
|
1462
|
-
const parsedBody = parsedOutput.body;
|
|
1463
|
-
return throwDefaultError({
|
|
1464
|
-
output,
|
|
1465
|
-
parsedBody,
|
|
1466
|
-
errorCode,
|
|
1467
|
-
});
|
|
585
|
+
export const de_UpdateFirewallDescriptionCommand = async (output, context) => {
|
|
586
|
+
if (output.statusCode >= 300) {
|
|
587
|
+
return de_CommandError(output, context);
|
|
1468
588
|
}
|
|
589
|
+
const data = await parseBody(output.body, context);
|
|
590
|
+
let contents = {};
|
|
591
|
+
contents = _json(data);
|
|
592
|
+
const response = {
|
|
593
|
+
$metadata: deserializeMetadata(output),
|
|
594
|
+
...contents,
|
|
595
|
+
};
|
|
596
|
+
return response;
|
|
1469
597
|
};
|
|
1470
598
|
export const de_UpdateFirewallEncryptionConfigurationCommand = async (output, context) => {
|
|
1471
599
|
if (output.statusCode >= 300) {
|
|
1472
|
-
return
|
|
600
|
+
return de_CommandError(output, context);
|
|
1473
601
|
}
|
|
1474
602
|
const data = await parseBody(output.body, context);
|
|
1475
603
|
let contents = {};
|
|
@@ -1480,43 +608,9 @@ export const de_UpdateFirewallEncryptionConfigurationCommand = async (output, co
|
|
|
1480
608
|
};
|
|
1481
609
|
return response;
|
|
1482
610
|
};
|
|
1483
|
-
const de_UpdateFirewallEncryptionConfigurationCommandError = async (output, context) => {
|
|
1484
|
-
const parsedOutput = {
|
|
1485
|
-
...output,
|
|
1486
|
-
body: await parseErrorBody(output.body, context),
|
|
1487
|
-
};
|
|
1488
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1489
|
-
switch (errorCode) {
|
|
1490
|
-
case "InternalServerError":
|
|
1491
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1492
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1493
|
-
case "InvalidRequestException":
|
|
1494
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1495
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1496
|
-
case "InvalidTokenException":
|
|
1497
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException":
|
|
1498
|
-
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "ResourceNotFoundException":
|
|
1500
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1501
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "ResourceOwnerCheckException":
|
|
1503
|
-
case "com.amazonaws.networkfirewall#ResourceOwnerCheckException":
|
|
1504
|
-
throw await de_ResourceOwnerCheckExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "ThrottlingException":
|
|
1506
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1507
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1508
|
-
default:
|
|
1509
|
-
const parsedBody = parsedOutput.body;
|
|
1510
|
-
return throwDefaultError({
|
|
1511
|
-
output,
|
|
1512
|
-
parsedBody,
|
|
1513
|
-
errorCode,
|
|
1514
|
-
});
|
|
1515
|
-
}
|
|
1516
|
-
};
|
|
1517
611
|
export const de_UpdateFirewallPolicyCommand = async (output, context) => {
|
|
1518
612
|
if (output.statusCode >= 300) {
|
|
1519
|
-
return
|
|
613
|
+
return de_CommandError(output, context);
|
|
1520
614
|
}
|
|
1521
615
|
const data = await parseBody(output.body, context);
|
|
1522
616
|
let contents = {};
|
|
@@ -1527,40 +621,9 @@ export const de_UpdateFirewallPolicyCommand = async (output, context) => {
|
|
|
1527
621
|
};
|
|
1528
622
|
return response;
|
|
1529
623
|
};
|
|
1530
|
-
const de_UpdateFirewallPolicyCommandError = async (output, context) => {
|
|
1531
|
-
const parsedOutput = {
|
|
1532
|
-
...output,
|
|
1533
|
-
body: await parseErrorBody(output.body, context),
|
|
1534
|
-
};
|
|
1535
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1536
|
-
switch (errorCode) {
|
|
1537
|
-
case "InternalServerError":
|
|
1538
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1539
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1540
|
-
case "InvalidRequestException":
|
|
1541
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1542
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "InvalidTokenException":
|
|
1544
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException":
|
|
1545
|
-
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
1546
|
-
case "ResourceNotFoundException":
|
|
1547
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1548
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "ThrottlingException":
|
|
1550
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1551
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1552
|
-
default:
|
|
1553
|
-
const parsedBody = parsedOutput.body;
|
|
1554
|
-
return throwDefaultError({
|
|
1555
|
-
output,
|
|
1556
|
-
parsedBody,
|
|
1557
|
-
errorCode,
|
|
1558
|
-
});
|
|
1559
|
-
}
|
|
1560
|
-
};
|
|
1561
624
|
export const de_UpdateFirewallPolicyChangeProtectionCommand = async (output, context) => {
|
|
1562
625
|
if (output.statusCode >= 300) {
|
|
1563
|
-
return
|
|
626
|
+
return de_CommandError(output, context);
|
|
1564
627
|
}
|
|
1565
628
|
const data = await parseBody(output.body, context);
|
|
1566
629
|
let contents = {};
|
|
@@ -1571,43 +634,9 @@ export const de_UpdateFirewallPolicyChangeProtectionCommand = async (output, con
|
|
|
1571
634
|
};
|
|
1572
635
|
return response;
|
|
1573
636
|
};
|
|
1574
|
-
const de_UpdateFirewallPolicyChangeProtectionCommandError = async (output, context) => {
|
|
1575
|
-
const parsedOutput = {
|
|
1576
|
-
...output,
|
|
1577
|
-
body: await parseErrorBody(output.body, context),
|
|
1578
|
-
};
|
|
1579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1580
|
-
switch (errorCode) {
|
|
1581
|
-
case "InternalServerError":
|
|
1582
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1583
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1584
|
-
case "InvalidRequestException":
|
|
1585
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1586
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1587
|
-
case "InvalidTokenException":
|
|
1588
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException":
|
|
1589
|
-
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
1590
|
-
case "ResourceNotFoundException":
|
|
1591
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1592
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1593
|
-
case "ResourceOwnerCheckException":
|
|
1594
|
-
case "com.amazonaws.networkfirewall#ResourceOwnerCheckException":
|
|
1595
|
-
throw await de_ResourceOwnerCheckExceptionRes(parsedOutput, context);
|
|
1596
|
-
case "ThrottlingException":
|
|
1597
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1598
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1599
|
-
default:
|
|
1600
|
-
const parsedBody = parsedOutput.body;
|
|
1601
|
-
return throwDefaultError({
|
|
1602
|
-
output,
|
|
1603
|
-
parsedBody,
|
|
1604
|
-
errorCode,
|
|
1605
|
-
});
|
|
1606
|
-
}
|
|
1607
|
-
};
|
|
1608
637
|
export const de_UpdateLoggingConfigurationCommand = async (output, context) => {
|
|
1609
638
|
if (output.statusCode >= 300) {
|
|
1610
|
-
return
|
|
639
|
+
return de_CommandError(output, context);
|
|
1611
640
|
}
|
|
1612
641
|
const data = await parseBody(output.body, context);
|
|
1613
642
|
let contents = {};
|
|
@@ -1618,43 +647,9 @@ export const de_UpdateLoggingConfigurationCommand = async (output, context) => {
|
|
|
1618
647
|
};
|
|
1619
648
|
return response;
|
|
1620
649
|
};
|
|
1621
|
-
const de_UpdateLoggingConfigurationCommandError = async (output, context) => {
|
|
1622
|
-
const parsedOutput = {
|
|
1623
|
-
...output,
|
|
1624
|
-
body: await parseErrorBody(output.body, context),
|
|
1625
|
-
};
|
|
1626
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1627
|
-
switch (errorCode) {
|
|
1628
|
-
case "InternalServerError":
|
|
1629
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1630
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1631
|
-
case "InvalidRequestException":
|
|
1632
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1633
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1634
|
-
case "InvalidTokenException":
|
|
1635
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException":
|
|
1636
|
-
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
1637
|
-
case "LogDestinationPermissionException":
|
|
1638
|
-
case "com.amazonaws.networkfirewall#LogDestinationPermissionException":
|
|
1639
|
-
throw await de_LogDestinationPermissionExceptionRes(parsedOutput, context);
|
|
1640
|
-
case "ResourceNotFoundException":
|
|
1641
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1642
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1643
|
-
case "ThrottlingException":
|
|
1644
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1645
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1646
|
-
default:
|
|
1647
|
-
const parsedBody = parsedOutput.body;
|
|
1648
|
-
return throwDefaultError({
|
|
1649
|
-
output,
|
|
1650
|
-
parsedBody,
|
|
1651
|
-
errorCode,
|
|
1652
|
-
});
|
|
1653
|
-
}
|
|
1654
|
-
};
|
|
1655
650
|
export const de_UpdateRuleGroupCommand = async (output, context) => {
|
|
1656
651
|
if (output.statusCode >= 300) {
|
|
1657
|
-
return
|
|
652
|
+
return de_CommandError(output, context);
|
|
1658
653
|
}
|
|
1659
654
|
const data = await parseBody(output.body, context);
|
|
1660
655
|
let contents = {};
|
|
@@ -1665,40 +660,9 @@ export const de_UpdateRuleGroupCommand = async (output, context) => {
|
|
|
1665
660
|
};
|
|
1666
661
|
return response;
|
|
1667
662
|
};
|
|
1668
|
-
const de_UpdateRuleGroupCommandError = async (output, context) => {
|
|
1669
|
-
const parsedOutput = {
|
|
1670
|
-
...output,
|
|
1671
|
-
body: await parseErrorBody(output.body, context),
|
|
1672
|
-
};
|
|
1673
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
|
-
switch (errorCode) {
|
|
1675
|
-
case "InternalServerError":
|
|
1676
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1677
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1678
|
-
case "InvalidRequestException":
|
|
1679
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1680
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "InvalidTokenException":
|
|
1682
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException":
|
|
1683
|
-
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "ResourceNotFoundException":
|
|
1685
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1686
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1687
|
-
case "ThrottlingException":
|
|
1688
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1689
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1690
|
-
default:
|
|
1691
|
-
const parsedBody = parsedOutput.body;
|
|
1692
|
-
return throwDefaultError({
|
|
1693
|
-
output,
|
|
1694
|
-
parsedBody,
|
|
1695
|
-
errorCode,
|
|
1696
|
-
});
|
|
1697
|
-
}
|
|
1698
|
-
};
|
|
1699
663
|
export const de_UpdateSubnetChangeProtectionCommand = async (output, context) => {
|
|
1700
664
|
if (output.statusCode >= 300) {
|
|
1701
|
-
return
|
|
665
|
+
return de_CommandError(output, context);
|
|
1702
666
|
}
|
|
1703
667
|
const data = await parseBody(output.body, context);
|
|
1704
668
|
let contents = {};
|
|
@@ -1709,43 +673,9 @@ export const de_UpdateSubnetChangeProtectionCommand = async (output, context) =>
|
|
|
1709
673
|
};
|
|
1710
674
|
return response;
|
|
1711
675
|
};
|
|
1712
|
-
const de_UpdateSubnetChangeProtectionCommandError = async (output, context) => {
|
|
1713
|
-
const parsedOutput = {
|
|
1714
|
-
...output,
|
|
1715
|
-
body: await parseErrorBody(output.body, context),
|
|
1716
|
-
};
|
|
1717
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1718
|
-
switch (errorCode) {
|
|
1719
|
-
case "InternalServerError":
|
|
1720
|
-
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1721
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1722
|
-
case "InvalidRequestException":
|
|
1723
|
-
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1724
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1725
|
-
case "InvalidTokenException":
|
|
1726
|
-
case "com.amazonaws.networkfirewall#InvalidTokenException":
|
|
1727
|
-
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
1728
|
-
case "ResourceNotFoundException":
|
|
1729
|
-
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1730
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1731
|
-
case "ResourceOwnerCheckException":
|
|
1732
|
-
case "com.amazonaws.networkfirewall#ResourceOwnerCheckException":
|
|
1733
|
-
throw await de_ResourceOwnerCheckExceptionRes(parsedOutput, context);
|
|
1734
|
-
case "ThrottlingException":
|
|
1735
|
-
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1736
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1737
|
-
default:
|
|
1738
|
-
const parsedBody = parsedOutput.body;
|
|
1739
|
-
return throwDefaultError({
|
|
1740
|
-
output,
|
|
1741
|
-
parsedBody,
|
|
1742
|
-
errorCode,
|
|
1743
|
-
});
|
|
1744
|
-
}
|
|
1745
|
-
};
|
|
1746
676
|
export const de_UpdateTLSInspectionConfigurationCommand = async (output, context) => {
|
|
1747
677
|
if (output.statusCode >= 300) {
|
|
1748
|
-
return
|
|
678
|
+
return de_CommandError(output, context);
|
|
1749
679
|
}
|
|
1750
680
|
const data = await parseBody(output.body, context);
|
|
1751
681
|
let contents = {};
|
|
@@ -1756,7 +686,7 @@ export const de_UpdateTLSInspectionConfigurationCommand = async (output, context
|
|
|
1756
686
|
};
|
|
1757
687
|
return response;
|
|
1758
688
|
};
|
|
1759
|
-
const
|
|
689
|
+
const de_CommandError = async (output, context) => {
|
|
1760
690
|
const parsedOutput = {
|
|
1761
691
|
...output,
|
|
1762
692
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1766,6 +696,9 @@ const de_UpdateTLSInspectionConfigurationCommandError = async (output, context)
|
|
|
1766
696
|
case "InternalServerError":
|
|
1767
697
|
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1768
698
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
699
|
+
case "InvalidOperationException":
|
|
700
|
+
case "com.amazonaws.networkfirewall#InvalidOperationException":
|
|
701
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1769
702
|
case "InvalidRequestException":
|
|
1770
703
|
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1771
704
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
@@ -1778,6 +711,24 @@ const de_UpdateTLSInspectionConfigurationCommandError = async (output, context)
|
|
|
1778
711
|
case "ThrottlingException":
|
|
1779
712
|
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1780
713
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
714
|
+
case "InsufficientCapacityException":
|
|
715
|
+
case "com.amazonaws.networkfirewall#InsufficientCapacityException":
|
|
716
|
+
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
717
|
+
case "LimitExceededException":
|
|
718
|
+
case "com.amazonaws.networkfirewall#LimitExceededException":
|
|
719
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
720
|
+
case "UnsupportedOperationException":
|
|
721
|
+
case "com.amazonaws.networkfirewall#UnsupportedOperationException":
|
|
722
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
723
|
+
case "InvalidResourcePolicyException":
|
|
724
|
+
case "com.amazonaws.networkfirewall#InvalidResourcePolicyException":
|
|
725
|
+
throw await de_InvalidResourcePolicyExceptionRes(parsedOutput, context);
|
|
726
|
+
case "ResourceOwnerCheckException":
|
|
727
|
+
case "com.amazonaws.networkfirewall#ResourceOwnerCheckException":
|
|
728
|
+
throw await de_ResourceOwnerCheckExceptionRes(parsedOutput, context);
|
|
729
|
+
case "LogDestinationPermissionException":
|
|
730
|
+
case "com.amazonaws.networkfirewall#LogDestinationPermissionException":
|
|
731
|
+
throw await de_LogDestinationPermissionExceptionRes(parsedOutput, context);
|
|
1781
732
|
default:
|
|
1782
733
|
const parsedBody = parsedOutput.body;
|
|
1783
734
|
return throwDefaultError({
|