@aws-sdk/client-wafv2 3.504.0 → 3.508.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/README.md +8 -0
- package/dist-cjs/commands/DeleteAPIKeyCommand.js +1 -0
- package/dist-cjs/index.js +162 -1750
- package/dist-es/WAFV2.js +2 -0
- package/dist-es/commands/DeleteAPIKeyCommand.js +24 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +244 -1852
- package/dist-types/WAFV2.d.ts +7 -0
- package/dist-types/WAFV2Client.d.ts +3 -2
- package/dist-types/commands/DeleteAPIKeyCommand.d.ts +97 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +32 -3
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/WAFV2.d.ts +17 -0
- package/dist-types/ts3.4/WAFV2Client.d.ts +6 -0
- package/dist-types/ts3.4/commands/DeleteAPIKeyCommand.d.ts +26 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +3 -3
|
@@ -44,6 +44,12 @@ export const se_CreateWebACLCommand = async (input, context) => {
|
|
|
44
44
|
body = JSON.stringify(se_CreateWebACLRequest(input, context));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
|
+
export const se_DeleteAPIKeyCommand = async (input, context) => {
|
|
48
|
+
const headers = sharedHeaders("DeleteAPIKey");
|
|
49
|
+
let body;
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
51
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
|
+
};
|
|
47
53
|
export const se_DeleteFirewallManagerRuleGroupsCommand = async (input, context) => {
|
|
48
54
|
const headers = sharedHeaders("DeleteFirewallManagerRuleGroups");
|
|
49
55
|
let body;
|
|
@@ -322,7 +328,7 @@ export const se_UpdateWebACLCommand = async (input, context) => {
|
|
|
322
328
|
};
|
|
323
329
|
export const de_AssociateWebACLCommand = async (output, context) => {
|
|
324
330
|
if (output.statusCode >= 300) {
|
|
325
|
-
return
|
|
331
|
+
return de_CommandError(output, context);
|
|
326
332
|
}
|
|
327
333
|
const data = await parseBody(output.body, context);
|
|
328
334
|
let contents = {};
|
|
@@ -333,40 +339,9 @@ export const de_AssociateWebACLCommand = async (output, context) => {
|
|
|
333
339
|
};
|
|
334
340
|
return response;
|
|
335
341
|
};
|
|
336
|
-
const de_AssociateWebACLCommandError = async (output, context) => {
|
|
337
|
-
const parsedOutput = {
|
|
338
|
-
...output,
|
|
339
|
-
body: await parseErrorBody(output.body, context),
|
|
340
|
-
};
|
|
341
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
342
|
-
switch (errorCode) {
|
|
343
|
-
case "WAFInternalErrorException":
|
|
344
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
345
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
346
|
-
case "WAFInvalidOperationException":
|
|
347
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
348
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
349
|
-
case "WAFInvalidParameterException":
|
|
350
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
351
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
352
|
-
case "WAFNonexistentItemException":
|
|
353
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
354
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
355
|
-
case "WAFUnavailableEntityException":
|
|
356
|
-
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
357
|
-
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
358
|
-
default:
|
|
359
|
-
const parsedBody = parsedOutput.body;
|
|
360
|
-
return throwDefaultError({
|
|
361
|
-
output,
|
|
362
|
-
parsedBody,
|
|
363
|
-
errorCode,
|
|
364
|
-
});
|
|
365
|
-
}
|
|
366
|
-
};
|
|
367
342
|
export const de_CheckCapacityCommand = async (output, context) => {
|
|
368
343
|
if (output.statusCode >= 300) {
|
|
369
|
-
return
|
|
344
|
+
return de_CommandError(output, context);
|
|
370
345
|
}
|
|
371
346
|
const data = await parseBody(output.body, context);
|
|
372
347
|
let contents = {};
|
|
@@ -377,52 +352,9 @@ export const de_CheckCapacityCommand = async (output, context) => {
|
|
|
377
352
|
};
|
|
378
353
|
return response;
|
|
379
354
|
};
|
|
380
|
-
const de_CheckCapacityCommandError = async (output, context) => {
|
|
381
|
-
const parsedOutput = {
|
|
382
|
-
...output,
|
|
383
|
-
body: await parseErrorBody(output.body, context),
|
|
384
|
-
};
|
|
385
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
386
|
-
switch (errorCode) {
|
|
387
|
-
case "WAFExpiredManagedRuleGroupVersionException":
|
|
388
|
-
case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
|
|
389
|
-
throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
|
|
390
|
-
case "WAFInternalErrorException":
|
|
391
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
392
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
393
|
-
case "WAFInvalidOperationException":
|
|
394
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
395
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
396
|
-
case "WAFInvalidParameterException":
|
|
397
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
398
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
399
|
-
case "WAFInvalidResourceException":
|
|
400
|
-
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
401
|
-
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
402
|
-
case "WAFLimitsExceededException":
|
|
403
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
404
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
405
|
-
case "WAFNonexistentItemException":
|
|
406
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
407
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
408
|
-
case "WAFSubscriptionNotFoundException":
|
|
409
|
-
case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
|
|
410
|
-
throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
411
|
-
case "WAFUnavailableEntityException":
|
|
412
|
-
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
413
|
-
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
414
|
-
default:
|
|
415
|
-
const parsedBody = parsedOutput.body;
|
|
416
|
-
return throwDefaultError({
|
|
417
|
-
output,
|
|
418
|
-
parsedBody,
|
|
419
|
-
errorCode,
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
};
|
|
423
355
|
export const de_CreateAPIKeyCommand = async (output, context) => {
|
|
424
356
|
if (output.statusCode >= 300) {
|
|
425
|
-
return
|
|
357
|
+
return de_CommandError(output, context);
|
|
426
358
|
}
|
|
427
359
|
const data = await parseBody(output.body, context);
|
|
428
360
|
let contents = {};
|
|
@@ -433,37 +365,9 @@ export const de_CreateAPIKeyCommand = async (output, context) => {
|
|
|
433
365
|
};
|
|
434
366
|
return response;
|
|
435
367
|
};
|
|
436
|
-
const de_CreateAPIKeyCommandError = async (output, context) => {
|
|
437
|
-
const parsedOutput = {
|
|
438
|
-
...output,
|
|
439
|
-
body: await parseErrorBody(output.body, context),
|
|
440
|
-
};
|
|
441
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
442
|
-
switch (errorCode) {
|
|
443
|
-
case "WAFInternalErrorException":
|
|
444
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
445
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
446
|
-
case "WAFInvalidOperationException":
|
|
447
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
448
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
449
|
-
case "WAFInvalidParameterException":
|
|
450
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
451
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
452
|
-
case "WAFLimitsExceededException":
|
|
453
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
454
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
455
|
-
default:
|
|
456
|
-
const parsedBody = parsedOutput.body;
|
|
457
|
-
return throwDefaultError({
|
|
458
|
-
output,
|
|
459
|
-
parsedBody,
|
|
460
|
-
errorCode,
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
|
-
};
|
|
464
368
|
export const de_CreateIPSetCommand = async (output, context) => {
|
|
465
369
|
if (output.statusCode >= 300) {
|
|
466
|
-
return
|
|
370
|
+
return de_CommandError(output, context);
|
|
467
371
|
}
|
|
468
372
|
const data = await parseBody(output.body, context);
|
|
469
373
|
let contents = {};
|
|
@@ -474,49 +378,9 @@ export const de_CreateIPSetCommand = async (output, context) => {
|
|
|
474
378
|
};
|
|
475
379
|
return response;
|
|
476
380
|
};
|
|
477
|
-
const de_CreateIPSetCommandError = async (output, context) => {
|
|
478
|
-
const parsedOutput = {
|
|
479
|
-
...output,
|
|
480
|
-
body: await parseErrorBody(output.body, context),
|
|
481
|
-
};
|
|
482
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
483
|
-
switch (errorCode) {
|
|
484
|
-
case "WAFDuplicateItemException":
|
|
485
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
486
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
487
|
-
case "WAFInternalErrorException":
|
|
488
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
489
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
490
|
-
case "WAFInvalidOperationException":
|
|
491
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
492
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
493
|
-
case "WAFInvalidParameterException":
|
|
494
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
495
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
496
|
-
case "WAFLimitsExceededException":
|
|
497
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
498
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
499
|
-
case "WAFOptimisticLockException":
|
|
500
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
501
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
502
|
-
case "WAFTagOperationException":
|
|
503
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
504
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
505
|
-
case "WAFTagOperationInternalErrorException":
|
|
506
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
507
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
508
|
-
default:
|
|
509
|
-
const parsedBody = parsedOutput.body;
|
|
510
|
-
return throwDefaultError({
|
|
511
|
-
output,
|
|
512
|
-
parsedBody,
|
|
513
|
-
errorCode,
|
|
514
|
-
});
|
|
515
|
-
}
|
|
516
|
-
};
|
|
517
381
|
export const de_CreateRegexPatternSetCommand = async (output, context) => {
|
|
518
382
|
if (output.statusCode >= 300) {
|
|
519
|
-
return
|
|
383
|
+
return de_CommandError(output, context);
|
|
520
384
|
}
|
|
521
385
|
const data = await parseBody(output.body, context);
|
|
522
386
|
let contents = {};
|
|
@@ -527,49 +391,9 @@ export const de_CreateRegexPatternSetCommand = async (output, context) => {
|
|
|
527
391
|
};
|
|
528
392
|
return response;
|
|
529
393
|
};
|
|
530
|
-
const de_CreateRegexPatternSetCommandError = async (output, context) => {
|
|
531
|
-
const parsedOutput = {
|
|
532
|
-
...output,
|
|
533
|
-
body: await parseErrorBody(output.body, context),
|
|
534
|
-
};
|
|
535
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
536
|
-
switch (errorCode) {
|
|
537
|
-
case "WAFDuplicateItemException":
|
|
538
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
539
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
540
|
-
case "WAFInternalErrorException":
|
|
541
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
542
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
543
|
-
case "WAFInvalidOperationException":
|
|
544
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
545
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
546
|
-
case "WAFInvalidParameterException":
|
|
547
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
548
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
549
|
-
case "WAFLimitsExceededException":
|
|
550
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
551
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
552
|
-
case "WAFOptimisticLockException":
|
|
553
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
554
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
555
|
-
case "WAFTagOperationException":
|
|
556
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
557
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
558
|
-
case "WAFTagOperationInternalErrorException":
|
|
559
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
560
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
561
|
-
default:
|
|
562
|
-
const parsedBody = parsedOutput.body;
|
|
563
|
-
return throwDefaultError({
|
|
564
|
-
output,
|
|
565
|
-
parsedBody,
|
|
566
|
-
errorCode,
|
|
567
|
-
});
|
|
568
|
-
}
|
|
569
|
-
};
|
|
570
394
|
export const de_CreateRuleGroupCommand = async (output, context) => {
|
|
571
395
|
if (output.statusCode >= 300) {
|
|
572
|
-
return
|
|
396
|
+
return de_CommandError(output, context);
|
|
573
397
|
}
|
|
574
398
|
const data = await parseBody(output.body, context);
|
|
575
399
|
let contents = {};
|
|
@@ -580,58 +404,22 @@ export const de_CreateRuleGroupCommand = async (output, context) => {
|
|
|
580
404
|
};
|
|
581
405
|
return response;
|
|
582
406
|
};
|
|
583
|
-
const
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
body: await parseErrorBody(output.body, context),
|
|
587
|
-
};
|
|
588
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
589
|
-
switch (errorCode) {
|
|
590
|
-
case "WAFDuplicateItemException":
|
|
591
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
592
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
593
|
-
case "WAFInternalErrorException":
|
|
594
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
595
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
596
|
-
case "WAFInvalidOperationException":
|
|
597
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
598
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
599
|
-
case "WAFInvalidParameterException":
|
|
600
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
601
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
602
|
-
case "WAFLimitsExceededException":
|
|
603
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
604
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
605
|
-
case "WAFNonexistentItemException":
|
|
606
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
607
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
608
|
-
case "WAFOptimisticLockException":
|
|
609
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
610
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
611
|
-
case "WAFSubscriptionNotFoundException":
|
|
612
|
-
case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
|
|
613
|
-
throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
614
|
-
case "WAFTagOperationException":
|
|
615
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
616
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
617
|
-
case "WAFTagOperationInternalErrorException":
|
|
618
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
619
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
620
|
-
case "WAFUnavailableEntityException":
|
|
621
|
-
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
622
|
-
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
623
|
-
default:
|
|
624
|
-
const parsedBody = parsedOutput.body;
|
|
625
|
-
return throwDefaultError({
|
|
626
|
-
output,
|
|
627
|
-
parsedBody,
|
|
628
|
-
errorCode,
|
|
629
|
-
});
|
|
407
|
+
export const de_CreateWebACLCommand = async (output, context) => {
|
|
408
|
+
if (output.statusCode >= 300) {
|
|
409
|
+
return de_CommandError(output, context);
|
|
630
410
|
}
|
|
411
|
+
const data = await parseBody(output.body, context);
|
|
412
|
+
let contents = {};
|
|
413
|
+
contents = _json(data);
|
|
414
|
+
const response = {
|
|
415
|
+
$metadata: deserializeMetadata(output),
|
|
416
|
+
...contents,
|
|
417
|
+
};
|
|
418
|
+
return response;
|
|
631
419
|
};
|
|
632
|
-
export const
|
|
420
|
+
export const de_DeleteAPIKeyCommand = async (output, context) => {
|
|
633
421
|
if (output.statusCode >= 300) {
|
|
634
|
-
return
|
|
422
|
+
return de_CommandError(output, context);
|
|
635
423
|
}
|
|
636
424
|
const data = await parseBody(output.body, context);
|
|
637
425
|
let contents = {};
|
|
@@ -642,478 +430,22 @@ export const de_CreateWebACLCommand = async (output, context) => {
|
|
|
642
430
|
};
|
|
643
431
|
return response;
|
|
644
432
|
};
|
|
645
|
-
const
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
case "WAFDuplicateItemException":
|
|
656
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
657
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
658
|
-
case "WAFExpiredManagedRuleGroupVersionException":
|
|
659
|
-
case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
|
|
660
|
-
throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
|
|
661
|
-
case "WAFInternalErrorException":
|
|
662
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
663
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
664
|
-
case "WAFInvalidOperationException":
|
|
665
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
666
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
667
|
-
case "WAFInvalidParameterException":
|
|
668
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
669
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
670
|
-
case "WAFInvalidResourceException":
|
|
671
|
-
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
672
|
-
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
673
|
-
case "WAFLimitsExceededException":
|
|
674
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
675
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
676
|
-
case "WAFNonexistentItemException":
|
|
677
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
678
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
679
|
-
case "WAFOptimisticLockException":
|
|
680
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
681
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
682
|
-
case "WAFSubscriptionNotFoundException":
|
|
683
|
-
case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
|
|
684
|
-
throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
685
|
-
case "WAFTagOperationException":
|
|
686
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
687
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
688
|
-
case "WAFTagOperationInternalErrorException":
|
|
689
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
690
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
691
|
-
case "WAFUnavailableEntityException":
|
|
692
|
-
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
693
|
-
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
694
|
-
default:
|
|
695
|
-
const parsedBody = parsedOutput.body;
|
|
696
|
-
return throwDefaultError({
|
|
697
|
-
output,
|
|
698
|
-
parsedBody,
|
|
699
|
-
errorCode,
|
|
700
|
-
});
|
|
701
|
-
}
|
|
702
|
-
};
|
|
703
|
-
export const de_DeleteFirewallManagerRuleGroupsCommand = async (output, context) => {
|
|
704
|
-
if (output.statusCode >= 300) {
|
|
705
|
-
return de_DeleteFirewallManagerRuleGroupsCommandError(output, context);
|
|
706
|
-
}
|
|
707
|
-
const data = await parseBody(output.body, context);
|
|
708
|
-
let contents = {};
|
|
709
|
-
contents = _json(data);
|
|
710
|
-
const response = {
|
|
711
|
-
$metadata: deserializeMetadata(output),
|
|
712
|
-
...contents,
|
|
713
|
-
};
|
|
714
|
-
return response;
|
|
715
|
-
};
|
|
716
|
-
const de_DeleteFirewallManagerRuleGroupsCommandError = async (output, context) => {
|
|
717
|
-
const parsedOutput = {
|
|
718
|
-
...output,
|
|
719
|
-
body: await parseErrorBody(output.body, context),
|
|
720
|
-
};
|
|
721
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
722
|
-
switch (errorCode) {
|
|
723
|
-
case "WAFInternalErrorException":
|
|
724
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
725
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
726
|
-
case "WAFInvalidOperationException":
|
|
727
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
728
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
729
|
-
case "WAFInvalidParameterException":
|
|
730
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
731
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
732
|
-
case "WAFNonexistentItemException":
|
|
733
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
734
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
735
|
-
case "WAFOptimisticLockException":
|
|
736
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
737
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
738
|
-
default:
|
|
739
|
-
const parsedBody = parsedOutput.body;
|
|
740
|
-
return throwDefaultError({
|
|
741
|
-
output,
|
|
742
|
-
parsedBody,
|
|
743
|
-
errorCode,
|
|
744
|
-
});
|
|
745
|
-
}
|
|
746
|
-
};
|
|
747
|
-
export const de_DeleteIPSetCommand = async (output, context) => {
|
|
748
|
-
if (output.statusCode >= 300) {
|
|
749
|
-
return de_DeleteIPSetCommandError(output, context);
|
|
750
|
-
}
|
|
751
|
-
const data = await parseBody(output.body, context);
|
|
752
|
-
let contents = {};
|
|
753
|
-
contents = _json(data);
|
|
754
|
-
const response = {
|
|
755
|
-
$metadata: deserializeMetadata(output),
|
|
756
|
-
...contents,
|
|
757
|
-
};
|
|
758
|
-
return response;
|
|
759
|
-
};
|
|
760
|
-
const de_DeleteIPSetCommandError = async (output, context) => {
|
|
761
|
-
const parsedOutput = {
|
|
762
|
-
...output,
|
|
763
|
-
body: await parseErrorBody(output.body, context),
|
|
764
|
-
};
|
|
765
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
766
|
-
switch (errorCode) {
|
|
767
|
-
case "WAFAssociatedItemException":
|
|
768
|
-
case "com.amazonaws.wafv2#WAFAssociatedItemException":
|
|
769
|
-
throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
|
|
770
|
-
case "WAFInternalErrorException":
|
|
771
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
772
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
773
|
-
case "WAFInvalidOperationException":
|
|
774
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
775
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
776
|
-
case "WAFInvalidParameterException":
|
|
777
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
778
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
779
|
-
case "WAFNonexistentItemException":
|
|
780
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
781
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
782
|
-
case "WAFOptimisticLockException":
|
|
783
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
784
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
785
|
-
case "WAFTagOperationException":
|
|
786
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
787
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
788
|
-
case "WAFTagOperationInternalErrorException":
|
|
789
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
790
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
791
|
-
default:
|
|
792
|
-
const parsedBody = parsedOutput.body;
|
|
793
|
-
return throwDefaultError({
|
|
794
|
-
output,
|
|
795
|
-
parsedBody,
|
|
796
|
-
errorCode,
|
|
797
|
-
});
|
|
798
|
-
}
|
|
799
|
-
};
|
|
800
|
-
export const de_DeleteLoggingConfigurationCommand = async (output, context) => {
|
|
801
|
-
if (output.statusCode >= 300) {
|
|
802
|
-
return de_DeleteLoggingConfigurationCommandError(output, context);
|
|
803
|
-
}
|
|
804
|
-
const data = await parseBody(output.body, context);
|
|
805
|
-
let contents = {};
|
|
806
|
-
contents = _json(data);
|
|
807
|
-
const response = {
|
|
808
|
-
$metadata: deserializeMetadata(output),
|
|
809
|
-
...contents,
|
|
810
|
-
};
|
|
811
|
-
return response;
|
|
812
|
-
};
|
|
813
|
-
const de_DeleteLoggingConfigurationCommandError = async (output, context) => {
|
|
814
|
-
const parsedOutput = {
|
|
815
|
-
...output,
|
|
816
|
-
body: await parseErrorBody(output.body, context),
|
|
817
|
-
};
|
|
818
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
819
|
-
switch (errorCode) {
|
|
820
|
-
case "WAFInternalErrorException":
|
|
821
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
822
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
823
|
-
case "WAFInvalidOperationException":
|
|
824
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
825
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
826
|
-
case "WAFInvalidParameterException":
|
|
827
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
828
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
829
|
-
case "WAFNonexistentItemException":
|
|
830
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
831
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
832
|
-
case "WAFOptimisticLockException":
|
|
833
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
834
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
835
|
-
default:
|
|
836
|
-
const parsedBody = parsedOutput.body;
|
|
837
|
-
return throwDefaultError({
|
|
838
|
-
output,
|
|
839
|
-
parsedBody,
|
|
840
|
-
errorCode,
|
|
841
|
-
});
|
|
842
|
-
}
|
|
843
|
-
};
|
|
844
|
-
export const de_DeletePermissionPolicyCommand = async (output, context) => {
|
|
845
|
-
if (output.statusCode >= 300) {
|
|
846
|
-
return de_DeletePermissionPolicyCommandError(output, context);
|
|
847
|
-
}
|
|
848
|
-
const data = await parseBody(output.body, context);
|
|
849
|
-
let contents = {};
|
|
850
|
-
contents = _json(data);
|
|
851
|
-
const response = {
|
|
852
|
-
$metadata: deserializeMetadata(output),
|
|
853
|
-
...contents,
|
|
854
|
-
};
|
|
855
|
-
return response;
|
|
856
|
-
};
|
|
857
|
-
const de_DeletePermissionPolicyCommandError = async (output, context) => {
|
|
858
|
-
const parsedOutput = {
|
|
859
|
-
...output,
|
|
860
|
-
body: await parseErrorBody(output.body, context),
|
|
861
|
-
};
|
|
862
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
863
|
-
switch (errorCode) {
|
|
864
|
-
case "WAFInternalErrorException":
|
|
865
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
866
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
867
|
-
case "WAFInvalidParameterException":
|
|
868
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
869
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
870
|
-
case "WAFNonexistentItemException":
|
|
871
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
872
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
873
|
-
default:
|
|
874
|
-
const parsedBody = parsedOutput.body;
|
|
875
|
-
return throwDefaultError({
|
|
876
|
-
output,
|
|
877
|
-
parsedBody,
|
|
878
|
-
errorCode,
|
|
879
|
-
});
|
|
880
|
-
}
|
|
881
|
-
};
|
|
882
|
-
export const de_DeleteRegexPatternSetCommand = async (output, context) => {
|
|
883
|
-
if (output.statusCode >= 300) {
|
|
884
|
-
return de_DeleteRegexPatternSetCommandError(output, context);
|
|
885
|
-
}
|
|
886
|
-
const data = await parseBody(output.body, context);
|
|
887
|
-
let contents = {};
|
|
888
|
-
contents = _json(data);
|
|
889
|
-
const response = {
|
|
890
|
-
$metadata: deserializeMetadata(output),
|
|
891
|
-
...contents,
|
|
892
|
-
};
|
|
893
|
-
return response;
|
|
894
|
-
};
|
|
895
|
-
const de_DeleteRegexPatternSetCommandError = async (output, context) => {
|
|
896
|
-
const parsedOutput = {
|
|
897
|
-
...output,
|
|
898
|
-
body: await parseErrorBody(output.body, context),
|
|
899
|
-
};
|
|
900
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
901
|
-
switch (errorCode) {
|
|
902
|
-
case "WAFAssociatedItemException":
|
|
903
|
-
case "com.amazonaws.wafv2#WAFAssociatedItemException":
|
|
904
|
-
throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
|
|
905
|
-
case "WAFInternalErrorException":
|
|
906
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
907
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
908
|
-
case "WAFInvalidOperationException":
|
|
909
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
910
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
911
|
-
case "WAFInvalidParameterException":
|
|
912
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
913
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
914
|
-
case "WAFNonexistentItemException":
|
|
915
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
916
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
917
|
-
case "WAFOptimisticLockException":
|
|
918
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
919
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
920
|
-
case "WAFTagOperationException":
|
|
921
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
922
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
923
|
-
case "WAFTagOperationInternalErrorException":
|
|
924
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
925
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
926
|
-
default:
|
|
927
|
-
const parsedBody = parsedOutput.body;
|
|
928
|
-
return throwDefaultError({
|
|
929
|
-
output,
|
|
930
|
-
parsedBody,
|
|
931
|
-
errorCode,
|
|
932
|
-
});
|
|
933
|
-
}
|
|
934
|
-
};
|
|
935
|
-
export const de_DeleteRuleGroupCommand = async (output, context) => {
|
|
936
|
-
if (output.statusCode >= 300) {
|
|
937
|
-
return de_DeleteRuleGroupCommandError(output, context);
|
|
938
|
-
}
|
|
939
|
-
const data = await parseBody(output.body, context);
|
|
940
|
-
let contents = {};
|
|
941
|
-
contents = _json(data);
|
|
942
|
-
const response = {
|
|
943
|
-
$metadata: deserializeMetadata(output),
|
|
944
|
-
...contents,
|
|
945
|
-
};
|
|
946
|
-
return response;
|
|
947
|
-
};
|
|
948
|
-
const de_DeleteRuleGroupCommandError = async (output, context) => {
|
|
949
|
-
const parsedOutput = {
|
|
950
|
-
...output,
|
|
951
|
-
body: await parseErrorBody(output.body, context),
|
|
952
|
-
};
|
|
953
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
954
|
-
switch (errorCode) {
|
|
955
|
-
case "WAFAssociatedItemException":
|
|
956
|
-
case "com.amazonaws.wafv2#WAFAssociatedItemException":
|
|
957
|
-
throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
|
|
958
|
-
case "WAFInternalErrorException":
|
|
959
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
960
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
961
|
-
case "WAFInvalidOperationException":
|
|
962
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
963
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
964
|
-
case "WAFInvalidParameterException":
|
|
965
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
966
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
967
|
-
case "WAFNonexistentItemException":
|
|
968
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
969
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
970
|
-
case "WAFOptimisticLockException":
|
|
971
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
972
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
973
|
-
case "WAFTagOperationException":
|
|
974
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
975
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
976
|
-
case "WAFTagOperationInternalErrorException":
|
|
977
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
978
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
979
|
-
default:
|
|
980
|
-
const parsedBody = parsedOutput.body;
|
|
981
|
-
return throwDefaultError({
|
|
982
|
-
output,
|
|
983
|
-
parsedBody,
|
|
984
|
-
errorCode,
|
|
985
|
-
});
|
|
986
|
-
}
|
|
987
|
-
};
|
|
988
|
-
export const de_DeleteWebACLCommand = async (output, context) => {
|
|
989
|
-
if (output.statusCode >= 300) {
|
|
990
|
-
return de_DeleteWebACLCommandError(output, context);
|
|
991
|
-
}
|
|
992
|
-
const data = await parseBody(output.body, context);
|
|
993
|
-
let contents = {};
|
|
994
|
-
contents = _json(data);
|
|
995
|
-
const response = {
|
|
996
|
-
$metadata: deserializeMetadata(output),
|
|
997
|
-
...contents,
|
|
998
|
-
};
|
|
999
|
-
return response;
|
|
1000
|
-
};
|
|
1001
|
-
const de_DeleteWebACLCommandError = async (output, context) => {
|
|
1002
|
-
const parsedOutput = {
|
|
1003
|
-
...output,
|
|
1004
|
-
body: await parseErrorBody(output.body, context),
|
|
1005
|
-
};
|
|
1006
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1007
|
-
switch (errorCode) {
|
|
1008
|
-
case "WAFAssociatedItemException":
|
|
1009
|
-
case "com.amazonaws.wafv2#WAFAssociatedItemException":
|
|
1010
|
-
throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "WAFInternalErrorException":
|
|
1012
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1013
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "WAFInvalidOperationException":
|
|
1015
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1016
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "WAFInvalidParameterException":
|
|
1018
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1019
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "WAFNonexistentItemException":
|
|
1021
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1022
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "WAFOptimisticLockException":
|
|
1024
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
1025
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "WAFTagOperationException":
|
|
1027
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
1028
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
1029
|
-
case "WAFTagOperationInternalErrorException":
|
|
1030
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
1031
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
1032
|
-
default:
|
|
1033
|
-
const parsedBody = parsedOutput.body;
|
|
1034
|
-
return throwDefaultError({
|
|
1035
|
-
output,
|
|
1036
|
-
parsedBody,
|
|
1037
|
-
errorCode,
|
|
1038
|
-
});
|
|
1039
|
-
}
|
|
1040
|
-
};
|
|
1041
|
-
export const de_DescribeAllManagedProductsCommand = async (output, context) => {
|
|
1042
|
-
if (output.statusCode >= 300) {
|
|
1043
|
-
return de_DescribeAllManagedProductsCommandError(output, context);
|
|
1044
|
-
}
|
|
1045
|
-
const data = await parseBody(output.body, context);
|
|
1046
|
-
let contents = {};
|
|
1047
|
-
contents = _json(data);
|
|
1048
|
-
const response = {
|
|
1049
|
-
$metadata: deserializeMetadata(output),
|
|
1050
|
-
...contents,
|
|
1051
|
-
};
|
|
1052
|
-
return response;
|
|
1053
|
-
};
|
|
1054
|
-
const de_DescribeAllManagedProductsCommandError = async (output, context) => {
|
|
1055
|
-
const parsedOutput = {
|
|
1056
|
-
...output,
|
|
1057
|
-
body: await parseErrorBody(output.body, context),
|
|
1058
|
-
};
|
|
1059
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1060
|
-
switch (errorCode) {
|
|
1061
|
-
case "WAFInternalErrorException":
|
|
1062
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1063
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "WAFInvalidOperationException":
|
|
1065
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1066
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1067
|
-
default:
|
|
1068
|
-
const parsedBody = parsedOutput.body;
|
|
1069
|
-
return throwDefaultError({
|
|
1070
|
-
output,
|
|
1071
|
-
parsedBody,
|
|
1072
|
-
errorCode,
|
|
1073
|
-
});
|
|
1074
|
-
}
|
|
1075
|
-
};
|
|
1076
|
-
export const de_DescribeManagedProductsByVendorCommand = async (output, context) => {
|
|
1077
|
-
if (output.statusCode >= 300) {
|
|
1078
|
-
return de_DescribeManagedProductsByVendorCommandError(output, context);
|
|
1079
|
-
}
|
|
1080
|
-
const data = await parseBody(output.body, context);
|
|
1081
|
-
let contents = {};
|
|
1082
|
-
contents = _json(data);
|
|
1083
|
-
const response = {
|
|
1084
|
-
$metadata: deserializeMetadata(output),
|
|
1085
|
-
...contents,
|
|
433
|
+
export const de_DeleteFirewallManagerRuleGroupsCommand = async (output, context) => {
|
|
434
|
+
if (output.statusCode >= 300) {
|
|
435
|
+
return de_CommandError(output, context);
|
|
436
|
+
}
|
|
437
|
+
const data = await parseBody(output.body, context);
|
|
438
|
+
let contents = {};
|
|
439
|
+
contents = _json(data);
|
|
440
|
+
const response = {
|
|
441
|
+
$metadata: deserializeMetadata(output),
|
|
442
|
+
...contents,
|
|
1086
443
|
};
|
|
1087
444
|
return response;
|
|
1088
445
|
};
|
|
1089
|
-
const
|
|
1090
|
-
const parsedOutput = {
|
|
1091
|
-
...output,
|
|
1092
|
-
body: await parseErrorBody(output.body, context),
|
|
1093
|
-
};
|
|
1094
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1095
|
-
switch (errorCode) {
|
|
1096
|
-
case "WAFInternalErrorException":
|
|
1097
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1098
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "WAFInvalidOperationException":
|
|
1100
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1101
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "WAFInvalidParameterException":
|
|
1103
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1104
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1105
|
-
default:
|
|
1106
|
-
const parsedBody = parsedOutput.body;
|
|
1107
|
-
return throwDefaultError({
|
|
1108
|
-
output,
|
|
1109
|
-
parsedBody,
|
|
1110
|
-
errorCode,
|
|
1111
|
-
});
|
|
1112
|
-
}
|
|
1113
|
-
};
|
|
1114
|
-
export const de_DescribeManagedRuleGroupCommand = async (output, context) => {
|
|
446
|
+
export const de_DeleteIPSetCommand = async (output, context) => {
|
|
1115
447
|
if (output.statusCode >= 300) {
|
|
1116
|
-
return
|
|
448
|
+
return de_CommandError(output, context);
|
|
1117
449
|
}
|
|
1118
450
|
const data = await parseBody(output.body, context);
|
|
1119
451
|
let contents = {};
|
|
@@ -1124,43 +456,9 @@ export const de_DescribeManagedRuleGroupCommand = async (output, context) => {
|
|
|
1124
456
|
};
|
|
1125
457
|
return response;
|
|
1126
458
|
};
|
|
1127
|
-
const
|
|
1128
|
-
const parsedOutput = {
|
|
1129
|
-
...output,
|
|
1130
|
-
body: await parseErrorBody(output.body, context),
|
|
1131
|
-
};
|
|
1132
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1133
|
-
switch (errorCode) {
|
|
1134
|
-
case "WAFExpiredManagedRuleGroupVersionException":
|
|
1135
|
-
case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
|
|
1136
|
-
throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
|
|
1137
|
-
case "WAFInternalErrorException":
|
|
1138
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1139
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1140
|
-
case "WAFInvalidOperationException":
|
|
1141
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1142
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1143
|
-
case "WAFInvalidParameterException":
|
|
1144
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1145
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1146
|
-
case "WAFInvalidResourceException":
|
|
1147
|
-
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
1148
|
-
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
1149
|
-
case "WAFNonexistentItemException":
|
|
1150
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1151
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1152
|
-
default:
|
|
1153
|
-
const parsedBody = parsedOutput.body;
|
|
1154
|
-
return throwDefaultError({
|
|
1155
|
-
output,
|
|
1156
|
-
parsedBody,
|
|
1157
|
-
errorCode,
|
|
1158
|
-
});
|
|
1159
|
-
}
|
|
1160
|
-
};
|
|
1161
|
-
export const de_DisassociateWebACLCommand = async (output, context) => {
|
|
459
|
+
export const de_DeleteLoggingConfigurationCommand = async (output, context) => {
|
|
1162
460
|
if (output.statusCode >= 300) {
|
|
1163
|
-
return
|
|
461
|
+
return de_CommandError(output, context);
|
|
1164
462
|
}
|
|
1165
463
|
const data = await parseBody(output.body, context);
|
|
1166
464
|
let contents = {};
|
|
@@ -1171,37 +469,9 @@ export const de_DisassociateWebACLCommand = async (output, context) => {
|
|
|
1171
469
|
};
|
|
1172
470
|
return response;
|
|
1173
471
|
};
|
|
1174
|
-
const
|
|
1175
|
-
const parsedOutput = {
|
|
1176
|
-
...output,
|
|
1177
|
-
body: await parseErrorBody(output.body, context),
|
|
1178
|
-
};
|
|
1179
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1180
|
-
switch (errorCode) {
|
|
1181
|
-
case "WAFInternalErrorException":
|
|
1182
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1183
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "WAFInvalidOperationException":
|
|
1185
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1186
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "WAFInvalidParameterException":
|
|
1188
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1189
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "WAFNonexistentItemException":
|
|
1191
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1192
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1193
|
-
default:
|
|
1194
|
-
const parsedBody = parsedOutput.body;
|
|
1195
|
-
return throwDefaultError({
|
|
1196
|
-
output,
|
|
1197
|
-
parsedBody,
|
|
1198
|
-
errorCode,
|
|
1199
|
-
});
|
|
1200
|
-
}
|
|
1201
|
-
};
|
|
1202
|
-
export const de_GenerateMobileSdkReleaseUrlCommand = async (output, context) => {
|
|
472
|
+
export const de_DeletePermissionPolicyCommand = async (output, context) => {
|
|
1203
473
|
if (output.statusCode >= 300) {
|
|
1204
|
-
return
|
|
474
|
+
return de_CommandError(output, context);
|
|
1205
475
|
}
|
|
1206
476
|
const data = await parseBody(output.body, context);
|
|
1207
477
|
let contents = {};
|
|
@@ -1212,78 +482,22 @@ export const de_GenerateMobileSdkReleaseUrlCommand = async (output, context) =>
|
|
|
1212
482
|
};
|
|
1213
483
|
return response;
|
|
1214
484
|
};
|
|
1215
|
-
const
|
|
1216
|
-
const parsedOutput = {
|
|
1217
|
-
...output,
|
|
1218
|
-
body: await parseErrorBody(output.body, context),
|
|
1219
|
-
};
|
|
1220
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1221
|
-
switch (errorCode) {
|
|
1222
|
-
case "WAFInternalErrorException":
|
|
1223
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1224
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1225
|
-
case "WAFInvalidOperationException":
|
|
1226
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1227
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1228
|
-
case "WAFInvalidParameterException":
|
|
1229
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1230
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1231
|
-
case "WAFNonexistentItemException":
|
|
1232
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1233
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1234
|
-
default:
|
|
1235
|
-
const parsedBody = parsedOutput.body;
|
|
1236
|
-
return throwDefaultError({
|
|
1237
|
-
output,
|
|
1238
|
-
parsedBody,
|
|
1239
|
-
errorCode,
|
|
1240
|
-
});
|
|
1241
|
-
}
|
|
1242
|
-
};
|
|
1243
|
-
export const de_GetDecryptedAPIKeyCommand = async (output, context) => {
|
|
485
|
+
export const de_DeleteRegexPatternSetCommand = async (output, context) => {
|
|
1244
486
|
if (output.statusCode >= 300) {
|
|
1245
|
-
return
|
|
487
|
+
return de_CommandError(output, context);
|
|
1246
488
|
}
|
|
1247
489
|
const data = await parseBody(output.body, context);
|
|
1248
490
|
let contents = {};
|
|
1249
|
-
contents =
|
|
491
|
+
contents = _json(data);
|
|
1250
492
|
const response = {
|
|
1251
493
|
$metadata: deserializeMetadata(output),
|
|
1252
494
|
...contents,
|
|
1253
495
|
};
|
|
1254
496
|
return response;
|
|
1255
497
|
};
|
|
1256
|
-
const
|
|
1257
|
-
const parsedOutput = {
|
|
1258
|
-
...output,
|
|
1259
|
-
body: await parseErrorBody(output.body, context),
|
|
1260
|
-
};
|
|
1261
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1262
|
-
switch (errorCode) {
|
|
1263
|
-
case "WAFInternalErrorException":
|
|
1264
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1265
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "WAFInvalidOperationException":
|
|
1267
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1268
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1269
|
-
case "WAFInvalidParameterException":
|
|
1270
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1271
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1272
|
-
case "WAFInvalidResourceException":
|
|
1273
|
-
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
1274
|
-
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
1275
|
-
default:
|
|
1276
|
-
const parsedBody = parsedOutput.body;
|
|
1277
|
-
return throwDefaultError({
|
|
1278
|
-
output,
|
|
1279
|
-
parsedBody,
|
|
1280
|
-
errorCode,
|
|
1281
|
-
});
|
|
1282
|
-
}
|
|
1283
|
-
};
|
|
1284
|
-
export const de_GetIPSetCommand = async (output, context) => {
|
|
498
|
+
export const de_DeleteRuleGroupCommand = async (output, context) => {
|
|
1285
499
|
if (output.statusCode >= 300) {
|
|
1286
|
-
return
|
|
500
|
+
return de_CommandError(output, context);
|
|
1287
501
|
}
|
|
1288
502
|
const data = await parseBody(output.body, context);
|
|
1289
503
|
let contents = {};
|
|
@@ -1294,37 +508,9 @@ export const de_GetIPSetCommand = async (output, context) => {
|
|
|
1294
508
|
};
|
|
1295
509
|
return response;
|
|
1296
510
|
};
|
|
1297
|
-
const
|
|
1298
|
-
const parsedOutput = {
|
|
1299
|
-
...output,
|
|
1300
|
-
body: await parseErrorBody(output.body, context),
|
|
1301
|
-
};
|
|
1302
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1303
|
-
switch (errorCode) {
|
|
1304
|
-
case "WAFInternalErrorException":
|
|
1305
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1306
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1307
|
-
case "WAFInvalidOperationException":
|
|
1308
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1309
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1310
|
-
case "WAFInvalidParameterException":
|
|
1311
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1312
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1313
|
-
case "WAFNonexistentItemException":
|
|
1314
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1315
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1316
|
-
default:
|
|
1317
|
-
const parsedBody = parsedOutput.body;
|
|
1318
|
-
return throwDefaultError({
|
|
1319
|
-
output,
|
|
1320
|
-
parsedBody,
|
|
1321
|
-
errorCode,
|
|
1322
|
-
});
|
|
1323
|
-
}
|
|
1324
|
-
};
|
|
1325
|
-
export const de_GetLoggingConfigurationCommand = async (output, context) => {
|
|
511
|
+
export const de_DeleteWebACLCommand = async (output, context) => {
|
|
1326
512
|
if (output.statusCode >= 300) {
|
|
1327
|
-
return
|
|
513
|
+
return de_CommandError(output, context);
|
|
1328
514
|
}
|
|
1329
515
|
const data = await parseBody(output.body, context);
|
|
1330
516
|
let contents = {};
|
|
@@ -1335,119 +521,35 @@ export const de_GetLoggingConfigurationCommand = async (output, context) => {
|
|
|
1335
521
|
};
|
|
1336
522
|
return response;
|
|
1337
523
|
};
|
|
1338
|
-
const
|
|
1339
|
-
const parsedOutput = {
|
|
1340
|
-
...output,
|
|
1341
|
-
body: await parseErrorBody(output.body, context),
|
|
1342
|
-
};
|
|
1343
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
|
-
switch (errorCode) {
|
|
1345
|
-
case "WAFInternalErrorException":
|
|
1346
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1347
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1348
|
-
case "WAFInvalidOperationException":
|
|
1349
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1350
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "WAFInvalidParameterException":
|
|
1352
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1353
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1354
|
-
case "WAFNonexistentItemException":
|
|
1355
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1356
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1357
|
-
default:
|
|
1358
|
-
const parsedBody = parsedOutput.body;
|
|
1359
|
-
return throwDefaultError({
|
|
1360
|
-
output,
|
|
1361
|
-
parsedBody,
|
|
1362
|
-
errorCode,
|
|
1363
|
-
});
|
|
1364
|
-
}
|
|
1365
|
-
};
|
|
1366
|
-
export const de_GetManagedRuleSetCommand = async (output, context) => {
|
|
524
|
+
export const de_DescribeAllManagedProductsCommand = async (output, context) => {
|
|
1367
525
|
if (output.statusCode >= 300) {
|
|
1368
|
-
return
|
|
526
|
+
return de_CommandError(output, context);
|
|
1369
527
|
}
|
|
1370
528
|
const data = await parseBody(output.body, context);
|
|
1371
529
|
let contents = {};
|
|
1372
|
-
contents =
|
|
530
|
+
contents = _json(data);
|
|
1373
531
|
const response = {
|
|
1374
532
|
$metadata: deserializeMetadata(output),
|
|
1375
533
|
...contents,
|
|
1376
534
|
};
|
|
1377
535
|
return response;
|
|
1378
536
|
};
|
|
1379
|
-
const
|
|
1380
|
-
const parsedOutput = {
|
|
1381
|
-
...output,
|
|
1382
|
-
body: await parseErrorBody(output.body, context),
|
|
1383
|
-
};
|
|
1384
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1385
|
-
switch (errorCode) {
|
|
1386
|
-
case "WAFInternalErrorException":
|
|
1387
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1388
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "WAFInvalidOperationException":
|
|
1390
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1391
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "WAFInvalidParameterException":
|
|
1393
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1394
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "WAFNonexistentItemException":
|
|
1396
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1397
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1398
|
-
default:
|
|
1399
|
-
const parsedBody = parsedOutput.body;
|
|
1400
|
-
return throwDefaultError({
|
|
1401
|
-
output,
|
|
1402
|
-
parsedBody,
|
|
1403
|
-
errorCode,
|
|
1404
|
-
});
|
|
1405
|
-
}
|
|
1406
|
-
};
|
|
1407
|
-
export const de_GetMobileSdkReleaseCommand = async (output, context) => {
|
|
537
|
+
export const de_DescribeManagedProductsByVendorCommand = async (output, context) => {
|
|
1408
538
|
if (output.statusCode >= 300) {
|
|
1409
|
-
return
|
|
539
|
+
return de_CommandError(output, context);
|
|
1410
540
|
}
|
|
1411
541
|
const data = await parseBody(output.body, context);
|
|
1412
542
|
let contents = {};
|
|
1413
|
-
contents =
|
|
543
|
+
contents = _json(data);
|
|
1414
544
|
const response = {
|
|
1415
545
|
$metadata: deserializeMetadata(output),
|
|
1416
546
|
...contents,
|
|
1417
547
|
};
|
|
1418
548
|
return response;
|
|
1419
549
|
};
|
|
1420
|
-
const
|
|
1421
|
-
const parsedOutput = {
|
|
1422
|
-
...output,
|
|
1423
|
-
body: await parseErrorBody(output.body, context),
|
|
1424
|
-
};
|
|
1425
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1426
|
-
switch (errorCode) {
|
|
1427
|
-
case "WAFInternalErrorException":
|
|
1428
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1429
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1430
|
-
case "WAFInvalidOperationException":
|
|
1431
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1432
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "WAFInvalidParameterException":
|
|
1434
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1435
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "WAFNonexistentItemException":
|
|
1437
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1438
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1439
|
-
default:
|
|
1440
|
-
const parsedBody = parsedOutput.body;
|
|
1441
|
-
return throwDefaultError({
|
|
1442
|
-
output,
|
|
1443
|
-
parsedBody,
|
|
1444
|
-
errorCode,
|
|
1445
|
-
});
|
|
1446
|
-
}
|
|
1447
|
-
};
|
|
1448
|
-
export const de_GetPermissionPolicyCommand = async (output, context) => {
|
|
550
|
+
export const de_DescribeManagedRuleGroupCommand = async (output, context) => {
|
|
1449
551
|
if (output.statusCode >= 300) {
|
|
1450
|
-
return
|
|
552
|
+
return de_CommandError(output, context);
|
|
1451
553
|
}
|
|
1452
554
|
const data = await parseBody(output.body, context);
|
|
1453
555
|
let contents = {};
|
|
@@ -1458,34 +560,9 @@ export const de_GetPermissionPolicyCommand = async (output, context) => {
|
|
|
1458
560
|
};
|
|
1459
561
|
return response;
|
|
1460
562
|
};
|
|
1461
|
-
const
|
|
1462
|
-
const parsedOutput = {
|
|
1463
|
-
...output,
|
|
1464
|
-
body: await parseErrorBody(output.body, context),
|
|
1465
|
-
};
|
|
1466
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1467
|
-
switch (errorCode) {
|
|
1468
|
-
case "WAFInternalErrorException":
|
|
1469
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1470
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1471
|
-
case "WAFInvalidParameterException":
|
|
1472
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1473
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1474
|
-
case "WAFNonexistentItemException":
|
|
1475
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1476
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1477
|
-
default:
|
|
1478
|
-
const parsedBody = parsedOutput.body;
|
|
1479
|
-
return throwDefaultError({
|
|
1480
|
-
output,
|
|
1481
|
-
parsedBody,
|
|
1482
|
-
errorCode,
|
|
1483
|
-
});
|
|
1484
|
-
}
|
|
1485
|
-
};
|
|
1486
|
-
export const de_GetRateBasedStatementManagedKeysCommand = async (output, context) => {
|
|
563
|
+
export const de_DisassociateWebACLCommand = async (output, context) => {
|
|
1487
564
|
if (output.statusCode >= 300) {
|
|
1488
|
-
return
|
|
565
|
+
return de_CommandError(output, context);
|
|
1489
566
|
}
|
|
1490
567
|
const data = await parseBody(output.body, context);
|
|
1491
568
|
let contents = {};
|
|
@@ -1496,40 +573,9 @@ export const de_GetRateBasedStatementManagedKeysCommand = async (output, context
|
|
|
1496
573
|
};
|
|
1497
574
|
return response;
|
|
1498
575
|
};
|
|
1499
|
-
const
|
|
1500
|
-
const parsedOutput = {
|
|
1501
|
-
...output,
|
|
1502
|
-
body: await parseErrorBody(output.body, context),
|
|
1503
|
-
};
|
|
1504
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1505
|
-
switch (errorCode) {
|
|
1506
|
-
case "WAFInternalErrorException":
|
|
1507
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1508
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1509
|
-
case "WAFInvalidOperationException":
|
|
1510
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1511
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1512
|
-
case "WAFInvalidParameterException":
|
|
1513
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1514
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "WAFNonexistentItemException":
|
|
1516
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1517
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1518
|
-
case "WAFUnsupportedAggregateKeyTypeException":
|
|
1519
|
-
case "com.amazonaws.wafv2#WAFUnsupportedAggregateKeyTypeException":
|
|
1520
|
-
throw await de_WAFUnsupportedAggregateKeyTypeExceptionRes(parsedOutput, context);
|
|
1521
|
-
default:
|
|
1522
|
-
const parsedBody = parsedOutput.body;
|
|
1523
|
-
return throwDefaultError({
|
|
1524
|
-
output,
|
|
1525
|
-
parsedBody,
|
|
1526
|
-
errorCode,
|
|
1527
|
-
});
|
|
1528
|
-
}
|
|
1529
|
-
};
|
|
1530
|
-
export const de_GetRegexPatternSetCommand = async (output, context) => {
|
|
576
|
+
export const de_GenerateMobileSdkReleaseUrlCommand = async (output, context) => {
|
|
1531
577
|
if (output.statusCode >= 300) {
|
|
1532
|
-
return
|
|
578
|
+
return de_CommandError(output, context);
|
|
1533
579
|
}
|
|
1534
580
|
const data = await parseBody(output.body, context);
|
|
1535
581
|
let contents = {};
|
|
@@ -1540,242 +586,100 @@ export const de_GetRegexPatternSetCommand = async (output, context) => {
|
|
|
1540
586
|
};
|
|
1541
587
|
return response;
|
|
1542
588
|
};
|
|
1543
|
-
const
|
|
1544
|
-
const parsedOutput = {
|
|
1545
|
-
...output,
|
|
1546
|
-
body: await parseErrorBody(output.body, context),
|
|
1547
|
-
};
|
|
1548
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1549
|
-
switch (errorCode) {
|
|
1550
|
-
case "WAFInternalErrorException":
|
|
1551
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1552
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "WAFInvalidOperationException":
|
|
1554
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1555
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1556
|
-
case "WAFInvalidParameterException":
|
|
1557
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1558
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1559
|
-
case "WAFNonexistentItemException":
|
|
1560
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1561
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1562
|
-
default:
|
|
1563
|
-
const parsedBody = parsedOutput.body;
|
|
1564
|
-
return throwDefaultError({
|
|
1565
|
-
output,
|
|
1566
|
-
parsedBody,
|
|
1567
|
-
errorCode,
|
|
1568
|
-
});
|
|
1569
|
-
}
|
|
1570
|
-
};
|
|
1571
|
-
export const de_GetRuleGroupCommand = async (output, context) => {
|
|
589
|
+
export const de_GetDecryptedAPIKeyCommand = async (output, context) => {
|
|
1572
590
|
if (output.statusCode >= 300) {
|
|
1573
|
-
return
|
|
591
|
+
return de_CommandError(output, context);
|
|
1574
592
|
}
|
|
1575
593
|
const data = await parseBody(output.body, context);
|
|
1576
594
|
let contents = {};
|
|
1577
|
-
contents =
|
|
595
|
+
contents = de_GetDecryptedAPIKeyResponse(data, context);
|
|
1578
596
|
const response = {
|
|
1579
597
|
$metadata: deserializeMetadata(output),
|
|
1580
598
|
...contents,
|
|
1581
599
|
};
|
|
1582
600
|
return response;
|
|
1583
601
|
};
|
|
1584
|
-
const
|
|
1585
|
-
const parsedOutput = {
|
|
1586
|
-
...output,
|
|
1587
|
-
body: await parseErrorBody(output.body, context),
|
|
1588
|
-
};
|
|
1589
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1590
|
-
switch (errorCode) {
|
|
1591
|
-
case "WAFInternalErrorException":
|
|
1592
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1593
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1594
|
-
case "WAFInvalidOperationException":
|
|
1595
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1596
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1597
|
-
case "WAFInvalidParameterException":
|
|
1598
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1599
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1600
|
-
case "WAFNonexistentItemException":
|
|
1601
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1602
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1603
|
-
default:
|
|
1604
|
-
const parsedBody = parsedOutput.body;
|
|
1605
|
-
return throwDefaultError({
|
|
1606
|
-
output,
|
|
1607
|
-
parsedBody,
|
|
1608
|
-
errorCode,
|
|
1609
|
-
});
|
|
1610
|
-
}
|
|
1611
|
-
};
|
|
1612
|
-
export const de_GetSampledRequestsCommand = async (output, context) => {
|
|
602
|
+
export const de_GetIPSetCommand = async (output, context) => {
|
|
1613
603
|
if (output.statusCode >= 300) {
|
|
1614
|
-
return
|
|
604
|
+
return de_CommandError(output, context);
|
|
1615
605
|
}
|
|
1616
606
|
const data = await parseBody(output.body, context);
|
|
1617
607
|
let contents = {};
|
|
1618
|
-
contents =
|
|
608
|
+
contents = _json(data);
|
|
1619
609
|
const response = {
|
|
1620
610
|
$metadata: deserializeMetadata(output),
|
|
1621
611
|
...contents,
|
|
1622
612
|
};
|
|
1623
613
|
return response;
|
|
1624
614
|
};
|
|
1625
|
-
const
|
|
1626
|
-
const parsedOutput = {
|
|
1627
|
-
...output,
|
|
1628
|
-
body: await parseErrorBody(output.body, context),
|
|
1629
|
-
};
|
|
1630
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1631
|
-
switch (errorCode) {
|
|
1632
|
-
case "WAFInternalErrorException":
|
|
1633
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1634
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1635
|
-
case "WAFInvalidParameterException":
|
|
1636
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1637
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1638
|
-
case "WAFNonexistentItemException":
|
|
1639
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1640
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1641
|
-
default:
|
|
1642
|
-
const parsedBody = parsedOutput.body;
|
|
1643
|
-
return throwDefaultError({
|
|
1644
|
-
output,
|
|
1645
|
-
parsedBody,
|
|
1646
|
-
errorCode,
|
|
1647
|
-
});
|
|
1648
|
-
}
|
|
1649
|
-
};
|
|
1650
|
-
export const de_GetWebACLCommand = async (output, context) => {
|
|
615
|
+
export const de_GetLoggingConfigurationCommand = async (output, context) => {
|
|
1651
616
|
if (output.statusCode >= 300) {
|
|
1652
|
-
return
|
|
617
|
+
return de_CommandError(output, context);
|
|
1653
618
|
}
|
|
1654
619
|
const data = await parseBody(output.body, context);
|
|
1655
620
|
let contents = {};
|
|
1656
|
-
contents =
|
|
621
|
+
contents = _json(data);
|
|
1657
622
|
const response = {
|
|
1658
623
|
$metadata: deserializeMetadata(output),
|
|
1659
624
|
...contents,
|
|
1660
625
|
};
|
|
1661
626
|
return response;
|
|
1662
627
|
};
|
|
1663
|
-
const
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
body: await parseErrorBody(output.body, context),
|
|
1667
|
-
};
|
|
1668
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1669
|
-
switch (errorCode) {
|
|
1670
|
-
case "WAFInternalErrorException":
|
|
1671
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1672
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1673
|
-
case "WAFInvalidOperationException":
|
|
1674
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1675
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1676
|
-
case "WAFInvalidParameterException":
|
|
1677
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1678
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1679
|
-
case "WAFNonexistentItemException":
|
|
1680
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1681
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1682
|
-
default:
|
|
1683
|
-
const parsedBody = parsedOutput.body;
|
|
1684
|
-
return throwDefaultError({
|
|
1685
|
-
output,
|
|
1686
|
-
parsedBody,
|
|
1687
|
-
errorCode,
|
|
1688
|
-
});
|
|
628
|
+
export const de_GetManagedRuleSetCommand = async (output, context) => {
|
|
629
|
+
if (output.statusCode >= 300) {
|
|
630
|
+
return de_CommandError(output, context);
|
|
1689
631
|
}
|
|
632
|
+
const data = await parseBody(output.body, context);
|
|
633
|
+
let contents = {};
|
|
634
|
+
contents = de_GetManagedRuleSetResponse(data, context);
|
|
635
|
+
const response = {
|
|
636
|
+
$metadata: deserializeMetadata(output),
|
|
637
|
+
...contents,
|
|
638
|
+
};
|
|
639
|
+
return response;
|
|
1690
640
|
};
|
|
1691
|
-
export const
|
|
641
|
+
export const de_GetMobileSdkReleaseCommand = async (output, context) => {
|
|
1692
642
|
if (output.statusCode >= 300) {
|
|
1693
|
-
return
|
|
643
|
+
return de_CommandError(output, context);
|
|
1694
644
|
}
|
|
1695
645
|
const data = await parseBody(output.body, context);
|
|
1696
646
|
let contents = {};
|
|
1697
|
-
contents =
|
|
647
|
+
contents = de_GetMobileSdkReleaseResponse(data, context);
|
|
1698
648
|
const response = {
|
|
1699
649
|
$metadata: deserializeMetadata(output),
|
|
1700
650
|
...contents,
|
|
1701
651
|
};
|
|
1702
652
|
return response;
|
|
1703
653
|
};
|
|
1704
|
-
const
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
body: await parseErrorBody(output.body, context),
|
|
1708
|
-
};
|
|
1709
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
|
-
switch (errorCode) {
|
|
1711
|
-
case "WAFInternalErrorException":
|
|
1712
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1713
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1714
|
-
case "WAFInvalidOperationException":
|
|
1715
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1716
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1717
|
-
case "WAFInvalidParameterException":
|
|
1718
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1719
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1720
|
-
case "WAFNonexistentItemException":
|
|
1721
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1722
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1723
|
-
case "WAFUnavailableEntityException":
|
|
1724
|
-
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
1725
|
-
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
1726
|
-
default:
|
|
1727
|
-
const parsedBody = parsedOutput.body;
|
|
1728
|
-
return throwDefaultError({
|
|
1729
|
-
output,
|
|
1730
|
-
parsedBody,
|
|
1731
|
-
errorCode,
|
|
1732
|
-
});
|
|
654
|
+
export const de_GetPermissionPolicyCommand = async (output, context) => {
|
|
655
|
+
if (output.statusCode >= 300) {
|
|
656
|
+
return de_CommandError(output, context);
|
|
1733
657
|
}
|
|
658
|
+
const data = await parseBody(output.body, context);
|
|
659
|
+
let contents = {};
|
|
660
|
+
contents = _json(data);
|
|
661
|
+
const response = {
|
|
662
|
+
$metadata: deserializeMetadata(output),
|
|
663
|
+
...contents,
|
|
664
|
+
};
|
|
665
|
+
return response;
|
|
1734
666
|
};
|
|
1735
|
-
export const
|
|
667
|
+
export const de_GetRateBasedStatementManagedKeysCommand = async (output, context) => {
|
|
1736
668
|
if (output.statusCode >= 300) {
|
|
1737
|
-
return
|
|
669
|
+
return de_CommandError(output, context);
|
|
1738
670
|
}
|
|
1739
671
|
const data = await parseBody(output.body, context);
|
|
1740
672
|
let contents = {};
|
|
1741
|
-
contents =
|
|
673
|
+
contents = _json(data);
|
|
1742
674
|
const response = {
|
|
1743
675
|
$metadata: deserializeMetadata(output),
|
|
1744
676
|
...contents,
|
|
1745
677
|
};
|
|
1746
678
|
return response;
|
|
1747
679
|
};
|
|
1748
|
-
const
|
|
1749
|
-
const parsedOutput = {
|
|
1750
|
-
...output,
|
|
1751
|
-
body: await parseErrorBody(output.body, context),
|
|
1752
|
-
};
|
|
1753
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1754
|
-
switch (errorCode) {
|
|
1755
|
-
case "WAFInternalErrorException":
|
|
1756
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1757
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1758
|
-
case "WAFInvalidOperationException":
|
|
1759
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1760
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1761
|
-
case "WAFInvalidParameterException":
|
|
1762
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1763
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1764
|
-
case "WAFInvalidResourceException":
|
|
1765
|
-
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
1766
|
-
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
1767
|
-
default:
|
|
1768
|
-
const parsedBody = parsedOutput.body;
|
|
1769
|
-
return throwDefaultError({
|
|
1770
|
-
output,
|
|
1771
|
-
parsedBody,
|
|
1772
|
-
errorCode,
|
|
1773
|
-
});
|
|
1774
|
-
}
|
|
1775
|
-
};
|
|
1776
|
-
export const de_ListAvailableManagedRuleGroupsCommand = async (output, context) => {
|
|
680
|
+
export const de_GetRegexPatternSetCommand = async (output, context) => {
|
|
1777
681
|
if (output.statusCode >= 300) {
|
|
1778
|
-
return
|
|
682
|
+
return de_CommandError(output, context);
|
|
1779
683
|
}
|
|
1780
684
|
const data = await parseBody(output.body, context);
|
|
1781
685
|
let contents = {};
|
|
@@ -1786,113 +690,74 @@ export const de_ListAvailableManagedRuleGroupsCommand = async (output, context)
|
|
|
1786
690
|
};
|
|
1787
691
|
return response;
|
|
1788
692
|
};
|
|
1789
|
-
const
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
body: await parseErrorBody(output.body, context),
|
|
1793
|
-
};
|
|
1794
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1795
|
-
switch (errorCode) {
|
|
1796
|
-
case "WAFInternalErrorException":
|
|
1797
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1798
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1799
|
-
case "WAFInvalidOperationException":
|
|
1800
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1801
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1802
|
-
case "WAFInvalidParameterException":
|
|
1803
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1804
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1805
|
-
default:
|
|
1806
|
-
const parsedBody = parsedOutput.body;
|
|
1807
|
-
return throwDefaultError({
|
|
1808
|
-
output,
|
|
1809
|
-
parsedBody,
|
|
1810
|
-
errorCode,
|
|
1811
|
-
});
|
|
693
|
+
export const de_GetRuleGroupCommand = async (output, context) => {
|
|
694
|
+
if (output.statusCode >= 300) {
|
|
695
|
+
return de_CommandError(output, context);
|
|
1812
696
|
}
|
|
697
|
+
const data = await parseBody(output.body, context);
|
|
698
|
+
let contents = {};
|
|
699
|
+
contents = de_GetRuleGroupResponse(data, context);
|
|
700
|
+
const response = {
|
|
701
|
+
$metadata: deserializeMetadata(output),
|
|
702
|
+
...contents,
|
|
703
|
+
};
|
|
704
|
+
return response;
|
|
1813
705
|
};
|
|
1814
|
-
export const
|
|
706
|
+
export const de_GetSampledRequestsCommand = async (output, context) => {
|
|
1815
707
|
if (output.statusCode >= 300) {
|
|
1816
|
-
return
|
|
708
|
+
return de_CommandError(output, context);
|
|
1817
709
|
}
|
|
1818
710
|
const data = await parseBody(output.body, context);
|
|
1819
711
|
let contents = {};
|
|
1820
|
-
contents =
|
|
712
|
+
contents = de_GetSampledRequestsResponse(data, context);
|
|
1821
713
|
const response = {
|
|
1822
714
|
$metadata: deserializeMetadata(output),
|
|
1823
715
|
...contents,
|
|
1824
716
|
};
|
|
1825
717
|
return response;
|
|
1826
718
|
};
|
|
1827
|
-
const
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
body: await parseErrorBody(output.body, context),
|
|
1831
|
-
};
|
|
1832
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1833
|
-
switch (errorCode) {
|
|
1834
|
-
case "WAFInternalErrorException":
|
|
1835
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1836
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1837
|
-
case "WAFInvalidOperationException":
|
|
1838
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1839
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1840
|
-
case "WAFInvalidParameterException":
|
|
1841
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1842
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1843
|
-
case "WAFNonexistentItemException":
|
|
1844
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1845
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1846
|
-
default:
|
|
1847
|
-
const parsedBody = parsedOutput.body;
|
|
1848
|
-
return throwDefaultError({
|
|
1849
|
-
output,
|
|
1850
|
-
parsedBody,
|
|
1851
|
-
errorCode,
|
|
1852
|
-
});
|
|
719
|
+
export const de_GetWebACLCommand = async (output, context) => {
|
|
720
|
+
if (output.statusCode >= 300) {
|
|
721
|
+
return de_CommandError(output, context);
|
|
1853
722
|
}
|
|
723
|
+
const data = await parseBody(output.body, context);
|
|
724
|
+
let contents = {};
|
|
725
|
+
contents = de_GetWebACLResponse(data, context);
|
|
726
|
+
const response = {
|
|
727
|
+
$metadata: deserializeMetadata(output),
|
|
728
|
+
...contents,
|
|
729
|
+
};
|
|
730
|
+
return response;
|
|
1854
731
|
};
|
|
1855
|
-
export const
|
|
732
|
+
export const de_GetWebACLForResourceCommand = async (output, context) => {
|
|
1856
733
|
if (output.statusCode >= 300) {
|
|
1857
|
-
return
|
|
734
|
+
return de_CommandError(output, context);
|
|
1858
735
|
}
|
|
1859
736
|
const data = await parseBody(output.body, context);
|
|
1860
737
|
let contents = {};
|
|
1861
|
-
contents =
|
|
738
|
+
contents = de_GetWebACLForResourceResponse(data, context);
|
|
1862
739
|
const response = {
|
|
1863
740
|
$metadata: deserializeMetadata(output),
|
|
1864
741
|
...contents,
|
|
1865
742
|
};
|
|
1866
743
|
return response;
|
|
1867
744
|
};
|
|
1868
|
-
const
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
body: await parseErrorBody(output.body, context),
|
|
1872
|
-
};
|
|
1873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1874
|
-
switch (errorCode) {
|
|
1875
|
-
case "WAFInternalErrorException":
|
|
1876
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1877
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "WAFInvalidOperationException":
|
|
1879
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1880
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1881
|
-
case "WAFInvalidParameterException":
|
|
1882
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1883
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1884
|
-
default:
|
|
1885
|
-
const parsedBody = parsedOutput.body;
|
|
1886
|
-
return throwDefaultError({
|
|
1887
|
-
output,
|
|
1888
|
-
parsedBody,
|
|
1889
|
-
errorCode,
|
|
1890
|
-
});
|
|
745
|
+
export const de_ListAPIKeysCommand = async (output, context) => {
|
|
746
|
+
if (output.statusCode >= 300) {
|
|
747
|
+
return de_CommandError(output, context);
|
|
1891
748
|
}
|
|
749
|
+
const data = await parseBody(output.body, context);
|
|
750
|
+
let contents = {};
|
|
751
|
+
contents = de_ListAPIKeysResponse(data, context);
|
|
752
|
+
const response = {
|
|
753
|
+
$metadata: deserializeMetadata(output),
|
|
754
|
+
...contents,
|
|
755
|
+
};
|
|
756
|
+
return response;
|
|
1892
757
|
};
|
|
1893
|
-
export const
|
|
758
|
+
export const de_ListAvailableManagedRuleGroupsCommand = async (output, context) => {
|
|
1894
759
|
if (output.statusCode >= 300) {
|
|
1895
|
-
return
|
|
760
|
+
return de_CommandError(output, context);
|
|
1896
761
|
}
|
|
1897
762
|
const data = await parseBody(output.body, context);
|
|
1898
763
|
let contents = {};
|
|
@@ -1903,34 +768,22 @@ export const de_ListLoggingConfigurationsCommand = async (output, context) => {
|
|
|
1903
768
|
};
|
|
1904
769
|
return response;
|
|
1905
770
|
};
|
|
1906
|
-
const
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
body: await parseErrorBody(output.body, context),
|
|
1910
|
-
};
|
|
1911
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
|
-
switch (errorCode) {
|
|
1913
|
-
case "WAFInternalErrorException":
|
|
1914
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1915
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1916
|
-
case "WAFInvalidOperationException":
|
|
1917
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1918
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1919
|
-
case "WAFInvalidParameterException":
|
|
1920
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1921
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1922
|
-
default:
|
|
1923
|
-
const parsedBody = parsedOutput.body;
|
|
1924
|
-
return throwDefaultError({
|
|
1925
|
-
output,
|
|
1926
|
-
parsedBody,
|
|
1927
|
-
errorCode,
|
|
1928
|
-
});
|
|
771
|
+
export const de_ListAvailableManagedRuleGroupVersionsCommand = async (output, context) => {
|
|
772
|
+
if (output.statusCode >= 300) {
|
|
773
|
+
return de_CommandError(output, context);
|
|
1929
774
|
}
|
|
775
|
+
const data = await parseBody(output.body, context);
|
|
776
|
+
let contents = {};
|
|
777
|
+
contents = de_ListAvailableManagedRuleGroupVersionsResponse(data, context);
|
|
778
|
+
const response = {
|
|
779
|
+
$metadata: deserializeMetadata(output),
|
|
780
|
+
...contents,
|
|
781
|
+
};
|
|
782
|
+
return response;
|
|
1930
783
|
};
|
|
1931
|
-
export const
|
|
784
|
+
export const de_ListIPSetsCommand = async (output, context) => {
|
|
1932
785
|
if (output.statusCode >= 300) {
|
|
1933
|
-
return
|
|
786
|
+
return de_CommandError(output, context);
|
|
1934
787
|
}
|
|
1935
788
|
const data = await parseBody(output.body, context);
|
|
1936
789
|
let contents = {};
|
|
@@ -1941,72 +794,22 @@ export const de_ListManagedRuleSetsCommand = async (output, context) => {
|
|
|
1941
794
|
};
|
|
1942
795
|
return response;
|
|
1943
796
|
};
|
|
1944
|
-
const
|
|
1945
|
-
const parsedOutput = {
|
|
1946
|
-
...output,
|
|
1947
|
-
body: await parseErrorBody(output.body, context),
|
|
1948
|
-
};
|
|
1949
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1950
|
-
switch (errorCode) {
|
|
1951
|
-
case "WAFInternalErrorException":
|
|
1952
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1953
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1954
|
-
case "WAFInvalidOperationException":
|
|
1955
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1956
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1957
|
-
case "WAFInvalidParameterException":
|
|
1958
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1959
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1960
|
-
default:
|
|
1961
|
-
const parsedBody = parsedOutput.body;
|
|
1962
|
-
return throwDefaultError({
|
|
1963
|
-
output,
|
|
1964
|
-
parsedBody,
|
|
1965
|
-
errorCode,
|
|
1966
|
-
});
|
|
1967
|
-
}
|
|
1968
|
-
};
|
|
1969
|
-
export const de_ListMobileSdkReleasesCommand = async (output, context) => {
|
|
797
|
+
export const de_ListLoggingConfigurationsCommand = async (output, context) => {
|
|
1970
798
|
if (output.statusCode >= 300) {
|
|
1971
|
-
return
|
|
799
|
+
return de_CommandError(output, context);
|
|
1972
800
|
}
|
|
1973
801
|
const data = await parseBody(output.body, context);
|
|
1974
802
|
let contents = {};
|
|
1975
|
-
contents =
|
|
803
|
+
contents = _json(data);
|
|
1976
804
|
const response = {
|
|
1977
805
|
$metadata: deserializeMetadata(output),
|
|
1978
806
|
...contents,
|
|
1979
807
|
};
|
|
1980
808
|
return response;
|
|
1981
809
|
};
|
|
1982
|
-
const
|
|
1983
|
-
const parsedOutput = {
|
|
1984
|
-
...output,
|
|
1985
|
-
body: await parseErrorBody(output.body, context),
|
|
1986
|
-
};
|
|
1987
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1988
|
-
switch (errorCode) {
|
|
1989
|
-
case "WAFInternalErrorException":
|
|
1990
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1991
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1992
|
-
case "WAFInvalidOperationException":
|
|
1993
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1994
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1995
|
-
case "WAFInvalidParameterException":
|
|
1996
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1997
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1998
|
-
default:
|
|
1999
|
-
const parsedBody = parsedOutput.body;
|
|
2000
|
-
return throwDefaultError({
|
|
2001
|
-
output,
|
|
2002
|
-
parsedBody,
|
|
2003
|
-
errorCode,
|
|
2004
|
-
});
|
|
2005
|
-
}
|
|
2006
|
-
};
|
|
2007
|
-
export const de_ListRegexPatternSetsCommand = async (output, context) => {
|
|
810
|
+
export const de_ListManagedRuleSetsCommand = async (output, context) => {
|
|
2008
811
|
if (output.statusCode >= 300) {
|
|
2009
|
-
return
|
|
812
|
+
return de_CommandError(output, context);
|
|
2010
813
|
}
|
|
2011
814
|
const data = await parseBody(output.body, context);
|
|
2012
815
|
let contents = {};
|
|
@@ -2017,75 +820,22 @@ export const de_ListRegexPatternSetsCommand = async (output, context) => {
|
|
|
2017
820
|
};
|
|
2018
821
|
return response;
|
|
2019
822
|
};
|
|
2020
|
-
const
|
|
2021
|
-
const parsedOutput = {
|
|
2022
|
-
...output,
|
|
2023
|
-
body: await parseErrorBody(output.body, context),
|
|
2024
|
-
};
|
|
2025
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2026
|
-
switch (errorCode) {
|
|
2027
|
-
case "WAFInternalErrorException":
|
|
2028
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2029
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2030
|
-
case "WAFInvalidOperationException":
|
|
2031
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2032
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2033
|
-
case "WAFInvalidParameterException":
|
|
2034
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2035
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2036
|
-
default:
|
|
2037
|
-
const parsedBody = parsedOutput.body;
|
|
2038
|
-
return throwDefaultError({
|
|
2039
|
-
output,
|
|
2040
|
-
parsedBody,
|
|
2041
|
-
errorCode,
|
|
2042
|
-
});
|
|
2043
|
-
}
|
|
2044
|
-
};
|
|
2045
|
-
export const de_ListResourcesForWebACLCommand = async (output, context) => {
|
|
823
|
+
export const de_ListMobileSdkReleasesCommand = async (output, context) => {
|
|
2046
824
|
if (output.statusCode >= 300) {
|
|
2047
|
-
return
|
|
825
|
+
return de_CommandError(output, context);
|
|
2048
826
|
}
|
|
2049
827
|
const data = await parseBody(output.body, context);
|
|
2050
828
|
let contents = {};
|
|
2051
|
-
contents =
|
|
829
|
+
contents = de_ListMobileSdkReleasesResponse(data, context);
|
|
2052
830
|
const response = {
|
|
2053
831
|
$metadata: deserializeMetadata(output),
|
|
2054
832
|
...contents,
|
|
2055
833
|
};
|
|
2056
834
|
return response;
|
|
2057
835
|
};
|
|
2058
|
-
const
|
|
2059
|
-
const parsedOutput = {
|
|
2060
|
-
...output,
|
|
2061
|
-
body: await parseErrorBody(output.body, context),
|
|
2062
|
-
};
|
|
2063
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2064
|
-
switch (errorCode) {
|
|
2065
|
-
case "WAFInternalErrorException":
|
|
2066
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2067
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2068
|
-
case "WAFInvalidOperationException":
|
|
2069
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2070
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2071
|
-
case "WAFInvalidParameterException":
|
|
2072
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2073
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2074
|
-
case "WAFNonexistentItemException":
|
|
2075
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2076
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2077
|
-
default:
|
|
2078
|
-
const parsedBody = parsedOutput.body;
|
|
2079
|
-
return throwDefaultError({
|
|
2080
|
-
output,
|
|
2081
|
-
parsedBody,
|
|
2082
|
-
errorCode,
|
|
2083
|
-
});
|
|
2084
|
-
}
|
|
2085
|
-
};
|
|
2086
|
-
export const de_ListRuleGroupsCommand = async (output, context) => {
|
|
836
|
+
export const de_ListRegexPatternSetsCommand = async (output, context) => {
|
|
2087
837
|
if (output.statusCode >= 300) {
|
|
2088
|
-
return
|
|
838
|
+
return de_CommandError(output, context);
|
|
2089
839
|
}
|
|
2090
840
|
const data = await parseBody(output.body, context);
|
|
2091
841
|
let contents = {};
|
|
@@ -2096,34 +846,9 @@ export const de_ListRuleGroupsCommand = async (output, context) => {
|
|
|
2096
846
|
};
|
|
2097
847
|
return response;
|
|
2098
848
|
};
|
|
2099
|
-
const
|
|
2100
|
-
const parsedOutput = {
|
|
2101
|
-
...output,
|
|
2102
|
-
body: await parseErrorBody(output.body, context),
|
|
2103
|
-
};
|
|
2104
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2105
|
-
switch (errorCode) {
|
|
2106
|
-
case "WAFInternalErrorException":
|
|
2107
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2108
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2109
|
-
case "WAFInvalidOperationException":
|
|
2110
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2111
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2112
|
-
case "WAFInvalidParameterException":
|
|
2113
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2114
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2115
|
-
default:
|
|
2116
|
-
const parsedBody = parsedOutput.body;
|
|
2117
|
-
return throwDefaultError({
|
|
2118
|
-
output,
|
|
2119
|
-
parsedBody,
|
|
2120
|
-
errorCode,
|
|
2121
|
-
});
|
|
2122
|
-
}
|
|
2123
|
-
};
|
|
2124
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
849
|
+
export const de_ListResourcesForWebACLCommand = async (output, context) => {
|
|
2125
850
|
if (output.statusCode >= 300) {
|
|
2126
|
-
return
|
|
851
|
+
return de_CommandError(output, context);
|
|
2127
852
|
}
|
|
2128
853
|
const data = await parseBody(output.body, context);
|
|
2129
854
|
let contents = {};
|
|
@@ -2134,43 +859,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2134
859
|
};
|
|
2135
860
|
return response;
|
|
2136
861
|
};
|
|
2137
|
-
const
|
|
2138
|
-
const parsedOutput = {
|
|
2139
|
-
...output,
|
|
2140
|
-
body: await parseErrorBody(output.body, context),
|
|
2141
|
-
};
|
|
2142
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2143
|
-
switch (errorCode) {
|
|
2144
|
-
case "WAFInternalErrorException":
|
|
2145
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2146
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2147
|
-
case "WAFInvalidOperationException":
|
|
2148
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2149
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2150
|
-
case "WAFInvalidParameterException":
|
|
2151
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2152
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2153
|
-
case "WAFNonexistentItemException":
|
|
2154
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2155
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2156
|
-
case "WAFTagOperationException":
|
|
2157
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
2158
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
2159
|
-
case "WAFTagOperationInternalErrorException":
|
|
2160
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
2161
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
2162
|
-
default:
|
|
2163
|
-
const parsedBody = parsedOutput.body;
|
|
2164
|
-
return throwDefaultError({
|
|
2165
|
-
output,
|
|
2166
|
-
parsedBody,
|
|
2167
|
-
errorCode,
|
|
2168
|
-
});
|
|
2169
|
-
}
|
|
2170
|
-
};
|
|
2171
|
-
export const de_ListWebACLsCommand = async (output, context) => {
|
|
862
|
+
export const de_ListRuleGroupsCommand = async (output, context) => {
|
|
2172
863
|
if (output.statusCode >= 300) {
|
|
2173
|
-
return
|
|
864
|
+
return de_CommandError(output, context);
|
|
2174
865
|
}
|
|
2175
866
|
const data = await parseBody(output.body, context);
|
|
2176
867
|
let contents = {};
|
|
@@ -2181,34 +872,9 @@ export const de_ListWebACLsCommand = async (output, context) => {
|
|
|
2181
872
|
};
|
|
2182
873
|
return response;
|
|
2183
874
|
};
|
|
2184
|
-
const
|
|
2185
|
-
const parsedOutput = {
|
|
2186
|
-
...output,
|
|
2187
|
-
body: await parseErrorBody(output.body, context),
|
|
2188
|
-
};
|
|
2189
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2190
|
-
switch (errorCode) {
|
|
2191
|
-
case "WAFInternalErrorException":
|
|
2192
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2193
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2194
|
-
case "WAFInvalidOperationException":
|
|
2195
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2196
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2197
|
-
case "WAFInvalidParameterException":
|
|
2198
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2199
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2200
|
-
default:
|
|
2201
|
-
const parsedBody = parsedOutput.body;
|
|
2202
|
-
return throwDefaultError({
|
|
2203
|
-
output,
|
|
2204
|
-
parsedBody,
|
|
2205
|
-
errorCode,
|
|
2206
|
-
});
|
|
2207
|
-
}
|
|
2208
|
-
};
|
|
2209
|
-
export const de_PutLoggingConfigurationCommand = async (output, context) => {
|
|
875
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2210
876
|
if (output.statusCode >= 300) {
|
|
2211
|
-
return
|
|
877
|
+
return de_CommandError(output, context);
|
|
2212
878
|
}
|
|
2213
879
|
const data = await parseBody(output.body, context);
|
|
2214
880
|
let contents = {};
|
|
@@ -2219,49 +885,9 @@ export const de_PutLoggingConfigurationCommand = async (output, context) => {
|
|
|
2219
885
|
};
|
|
2220
886
|
return response;
|
|
2221
887
|
};
|
|
2222
|
-
const
|
|
2223
|
-
const parsedOutput = {
|
|
2224
|
-
...output,
|
|
2225
|
-
body: await parseErrorBody(output.body, context),
|
|
2226
|
-
};
|
|
2227
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2228
|
-
switch (errorCode) {
|
|
2229
|
-
case "WAFInternalErrorException":
|
|
2230
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2231
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2232
|
-
case "WAFInvalidOperationException":
|
|
2233
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2234
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2235
|
-
case "WAFInvalidParameterException":
|
|
2236
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2237
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2238
|
-
case "WAFLimitsExceededException":
|
|
2239
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
2240
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "WAFLogDestinationPermissionIssueException":
|
|
2242
|
-
case "com.amazonaws.wafv2#WAFLogDestinationPermissionIssueException":
|
|
2243
|
-
throw await de_WAFLogDestinationPermissionIssueExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "WAFNonexistentItemException":
|
|
2245
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2246
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "WAFOptimisticLockException":
|
|
2248
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
2249
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
2250
|
-
case "WAFServiceLinkedRoleErrorException":
|
|
2251
|
-
case "com.amazonaws.wafv2#WAFServiceLinkedRoleErrorException":
|
|
2252
|
-
throw await de_WAFServiceLinkedRoleErrorExceptionRes(parsedOutput, context);
|
|
2253
|
-
default:
|
|
2254
|
-
const parsedBody = parsedOutput.body;
|
|
2255
|
-
return throwDefaultError({
|
|
2256
|
-
output,
|
|
2257
|
-
parsedBody,
|
|
2258
|
-
errorCode,
|
|
2259
|
-
});
|
|
2260
|
-
}
|
|
2261
|
-
};
|
|
2262
|
-
export const de_PutManagedRuleSetVersionsCommand = async (output, context) => {
|
|
888
|
+
export const de_ListWebACLsCommand = async (output, context) => {
|
|
2263
889
|
if (output.statusCode >= 300) {
|
|
2264
|
-
return
|
|
890
|
+
return de_CommandError(output, context);
|
|
2265
891
|
}
|
|
2266
892
|
const data = await parseBody(output.body, context);
|
|
2267
893
|
let contents = {};
|
|
@@ -2272,40 +898,9 @@ export const de_PutManagedRuleSetVersionsCommand = async (output, context) => {
|
|
|
2272
898
|
};
|
|
2273
899
|
return response;
|
|
2274
900
|
};
|
|
2275
|
-
const
|
|
2276
|
-
const parsedOutput = {
|
|
2277
|
-
...output,
|
|
2278
|
-
body: await parseErrorBody(output.body, context),
|
|
2279
|
-
};
|
|
2280
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2281
|
-
switch (errorCode) {
|
|
2282
|
-
case "WAFInternalErrorException":
|
|
2283
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2284
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2285
|
-
case "WAFInvalidOperationException":
|
|
2286
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2287
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2288
|
-
case "WAFInvalidParameterException":
|
|
2289
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2290
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2291
|
-
case "WAFNonexistentItemException":
|
|
2292
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2293
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2294
|
-
case "WAFOptimisticLockException":
|
|
2295
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
2296
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
2297
|
-
default:
|
|
2298
|
-
const parsedBody = parsedOutput.body;
|
|
2299
|
-
return throwDefaultError({
|
|
2300
|
-
output,
|
|
2301
|
-
parsedBody,
|
|
2302
|
-
errorCode,
|
|
2303
|
-
});
|
|
2304
|
-
}
|
|
2305
|
-
};
|
|
2306
|
-
export const de_PutPermissionPolicyCommand = async (output, context) => {
|
|
901
|
+
export const de_PutLoggingConfigurationCommand = async (output, context) => {
|
|
2307
902
|
if (output.statusCode >= 300) {
|
|
2308
|
-
return
|
|
903
|
+
return de_CommandError(output, context);
|
|
2309
904
|
}
|
|
2310
905
|
const data = await parseBody(output.body, context);
|
|
2311
906
|
let contents = {};
|
|
@@ -2316,37 +911,9 @@ export const de_PutPermissionPolicyCommand = async (output, context) => {
|
|
|
2316
911
|
};
|
|
2317
912
|
return response;
|
|
2318
913
|
};
|
|
2319
|
-
const
|
|
2320
|
-
const parsedOutput = {
|
|
2321
|
-
...output,
|
|
2322
|
-
body: await parseErrorBody(output.body, context),
|
|
2323
|
-
};
|
|
2324
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2325
|
-
switch (errorCode) {
|
|
2326
|
-
case "WAFInternalErrorException":
|
|
2327
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2328
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2329
|
-
case "WAFInvalidParameterException":
|
|
2330
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2331
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2332
|
-
case "WAFInvalidPermissionPolicyException":
|
|
2333
|
-
case "com.amazonaws.wafv2#WAFInvalidPermissionPolicyException":
|
|
2334
|
-
throw await de_WAFInvalidPermissionPolicyExceptionRes(parsedOutput, context);
|
|
2335
|
-
case "WAFNonexistentItemException":
|
|
2336
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2337
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2338
|
-
default:
|
|
2339
|
-
const parsedBody = parsedOutput.body;
|
|
2340
|
-
return throwDefaultError({
|
|
2341
|
-
output,
|
|
2342
|
-
parsedBody,
|
|
2343
|
-
errorCode,
|
|
2344
|
-
});
|
|
2345
|
-
}
|
|
2346
|
-
};
|
|
2347
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
914
|
+
export const de_PutManagedRuleSetVersionsCommand = async (output, context) => {
|
|
2348
915
|
if (output.statusCode >= 300) {
|
|
2349
|
-
return
|
|
916
|
+
return de_CommandError(output, context);
|
|
2350
917
|
}
|
|
2351
918
|
const data = await parseBody(output.body, context);
|
|
2352
919
|
let contents = {};
|
|
@@ -2357,46 +924,22 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
2357
924
|
};
|
|
2358
925
|
return response;
|
|
2359
926
|
};
|
|
2360
|
-
const
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
body: await parseErrorBody(output.body, context),
|
|
2364
|
-
};
|
|
2365
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2366
|
-
switch (errorCode) {
|
|
2367
|
-
case "WAFInternalErrorException":
|
|
2368
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2369
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2370
|
-
case "WAFInvalidOperationException":
|
|
2371
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2372
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2373
|
-
case "WAFInvalidParameterException":
|
|
2374
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2375
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2376
|
-
case "WAFLimitsExceededException":
|
|
2377
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
2378
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
2379
|
-
case "WAFNonexistentItemException":
|
|
2380
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2381
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2382
|
-
case "WAFTagOperationException":
|
|
2383
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
2384
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
2385
|
-
case "WAFTagOperationInternalErrorException":
|
|
2386
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
2387
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
2388
|
-
default:
|
|
2389
|
-
const parsedBody = parsedOutput.body;
|
|
2390
|
-
return throwDefaultError({
|
|
2391
|
-
output,
|
|
2392
|
-
parsedBody,
|
|
2393
|
-
errorCode,
|
|
2394
|
-
});
|
|
927
|
+
export const de_PutPermissionPolicyCommand = async (output, context) => {
|
|
928
|
+
if (output.statusCode >= 300) {
|
|
929
|
+
return de_CommandError(output, context);
|
|
2395
930
|
}
|
|
931
|
+
const data = await parseBody(output.body, context);
|
|
932
|
+
let contents = {};
|
|
933
|
+
contents = _json(data);
|
|
934
|
+
const response = {
|
|
935
|
+
$metadata: deserializeMetadata(output),
|
|
936
|
+
...contents,
|
|
937
|
+
};
|
|
938
|
+
return response;
|
|
2396
939
|
};
|
|
2397
|
-
export const
|
|
940
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
2398
941
|
if (output.statusCode >= 300) {
|
|
2399
|
-
return
|
|
942
|
+
return de_CommandError(output, context);
|
|
2400
943
|
}
|
|
2401
944
|
const data = await parseBody(output.body, context);
|
|
2402
945
|
let contents = {};
|
|
@@ -2407,43 +950,22 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2407
950
|
};
|
|
2408
951
|
return response;
|
|
2409
952
|
};
|
|
2410
|
-
const
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
body: await parseErrorBody(output.body, context),
|
|
2414
|
-
};
|
|
2415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2416
|
-
switch (errorCode) {
|
|
2417
|
-
case "WAFInternalErrorException":
|
|
2418
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2419
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2420
|
-
case "WAFInvalidOperationException":
|
|
2421
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2422
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2423
|
-
case "WAFInvalidParameterException":
|
|
2424
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2425
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2426
|
-
case "WAFNonexistentItemException":
|
|
2427
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2428
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2429
|
-
case "WAFTagOperationException":
|
|
2430
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
2431
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
2432
|
-
case "WAFTagOperationInternalErrorException":
|
|
2433
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
2434
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
2435
|
-
default:
|
|
2436
|
-
const parsedBody = parsedOutput.body;
|
|
2437
|
-
return throwDefaultError({
|
|
2438
|
-
output,
|
|
2439
|
-
parsedBody,
|
|
2440
|
-
errorCode,
|
|
2441
|
-
});
|
|
953
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
954
|
+
if (output.statusCode >= 300) {
|
|
955
|
+
return de_CommandError(output, context);
|
|
2442
956
|
}
|
|
957
|
+
const data = await parseBody(output.body, context);
|
|
958
|
+
let contents = {};
|
|
959
|
+
contents = _json(data);
|
|
960
|
+
const response = {
|
|
961
|
+
$metadata: deserializeMetadata(output),
|
|
962
|
+
...contents,
|
|
963
|
+
};
|
|
964
|
+
return response;
|
|
2443
965
|
};
|
|
2444
966
|
export const de_UpdateIPSetCommand = async (output, context) => {
|
|
2445
967
|
if (output.statusCode >= 300) {
|
|
2446
|
-
return
|
|
968
|
+
return de_CommandError(output, context);
|
|
2447
969
|
}
|
|
2448
970
|
const data = await parseBody(output.body, context);
|
|
2449
971
|
let contents = {};
|
|
@@ -2454,46 +976,9 @@ export const de_UpdateIPSetCommand = async (output, context) => {
|
|
|
2454
976
|
};
|
|
2455
977
|
return response;
|
|
2456
978
|
};
|
|
2457
|
-
const de_UpdateIPSetCommandError = async (output, context) => {
|
|
2458
|
-
const parsedOutput = {
|
|
2459
|
-
...output,
|
|
2460
|
-
body: await parseErrorBody(output.body, context),
|
|
2461
|
-
};
|
|
2462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2463
|
-
switch (errorCode) {
|
|
2464
|
-
case "WAFDuplicateItemException":
|
|
2465
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
2466
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
2467
|
-
case "WAFInternalErrorException":
|
|
2468
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2469
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2470
|
-
case "WAFInvalidOperationException":
|
|
2471
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2472
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2473
|
-
case "WAFInvalidParameterException":
|
|
2474
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2475
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2476
|
-
case "WAFLimitsExceededException":
|
|
2477
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
2478
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
2479
|
-
case "WAFNonexistentItemException":
|
|
2480
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2481
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2482
|
-
case "WAFOptimisticLockException":
|
|
2483
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
2484
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
2485
|
-
default:
|
|
2486
|
-
const parsedBody = parsedOutput.body;
|
|
2487
|
-
return throwDefaultError({
|
|
2488
|
-
output,
|
|
2489
|
-
parsedBody,
|
|
2490
|
-
errorCode,
|
|
2491
|
-
});
|
|
2492
|
-
}
|
|
2493
|
-
};
|
|
2494
979
|
export const de_UpdateManagedRuleSetVersionExpiryDateCommand = async (output, context) => {
|
|
2495
980
|
if (output.statusCode >= 300) {
|
|
2496
|
-
return
|
|
981
|
+
return de_CommandError(output, context);
|
|
2497
982
|
}
|
|
2498
983
|
const data = await parseBody(output.body, context);
|
|
2499
984
|
let contents = {};
|
|
@@ -2504,40 +989,9 @@ export const de_UpdateManagedRuleSetVersionExpiryDateCommand = async (output, co
|
|
|
2504
989
|
};
|
|
2505
990
|
return response;
|
|
2506
991
|
};
|
|
2507
|
-
const de_UpdateManagedRuleSetVersionExpiryDateCommandError = async (output, context) => {
|
|
2508
|
-
const parsedOutput = {
|
|
2509
|
-
...output,
|
|
2510
|
-
body: await parseErrorBody(output.body, context),
|
|
2511
|
-
};
|
|
2512
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2513
|
-
switch (errorCode) {
|
|
2514
|
-
case "WAFInternalErrorException":
|
|
2515
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2516
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2517
|
-
case "WAFInvalidOperationException":
|
|
2518
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2519
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2520
|
-
case "WAFInvalidParameterException":
|
|
2521
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2522
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2523
|
-
case "WAFNonexistentItemException":
|
|
2524
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2525
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2526
|
-
case "WAFOptimisticLockException":
|
|
2527
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
2528
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
2529
|
-
default:
|
|
2530
|
-
const parsedBody = parsedOutput.body;
|
|
2531
|
-
return throwDefaultError({
|
|
2532
|
-
output,
|
|
2533
|
-
parsedBody,
|
|
2534
|
-
errorCode,
|
|
2535
|
-
});
|
|
2536
|
-
}
|
|
2537
|
-
};
|
|
2538
992
|
export const de_UpdateRegexPatternSetCommand = async (output, context) => {
|
|
2539
993
|
if (output.statusCode >= 300) {
|
|
2540
|
-
return
|
|
994
|
+
return de_CommandError(output, context);
|
|
2541
995
|
}
|
|
2542
996
|
const data = await parseBody(output.body, context);
|
|
2543
997
|
let contents = {};
|
|
@@ -2548,46 +1002,9 @@ export const de_UpdateRegexPatternSetCommand = async (output, context) => {
|
|
|
2548
1002
|
};
|
|
2549
1003
|
return response;
|
|
2550
1004
|
};
|
|
2551
|
-
const de_UpdateRegexPatternSetCommandError = async (output, context) => {
|
|
2552
|
-
const parsedOutput = {
|
|
2553
|
-
...output,
|
|
2554
|
-
body: await parseErrorBody(output.body, context),
|
|
2555
|
-
};
|
|
2556
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2557
|
-
switch (errorCode) {
|
|
2558
|
-
case "WAFDuplicateItemException":
|
|
2559
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
2560
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
2561
|
-
case "WAFInternalErrorException":
|
|
2562
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2563
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2564
|
-
case "WAFInvalidOperationException":
|
|
2565
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2566
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2567
|
-
case "WAFInvalidParameterException":
|
|
2568
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2569
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2570
|
-
case "WAFLimitsExceededException":
|
|
2571
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
2572
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
2573
|
-
case "WAFNonexistentItemException":
|
|
2574
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2575
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2576
|
-
case "WAFOptimisticLockException":
|
|
2577
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
2578
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
2579
|
-
default:
|
|
2580
|
-
const parsedBody = parsedOutput.body;
|
|
2581
|
-
return throwDefaultError({
|
|
2582
|
-
output,
|
|
2583
|
-
parsedBody,
|
|
2584
|
-
errorCode,
|
|
2585
|
-
});
|
|
2586
|
-
}
|
|
2587
|
-
};
|
|
2588
1005
|
export const de_UpdateRuleGroupCommand = async (output, context) => {
|
|
2589
1006
|
if (output.statusCode >= 300) {
|
|
2590
|
-
return
|
|
1007
|
+
return de_CommandError(output, context);
|
|
2591
1008
|
}
|
|
2592
1009
|
const data = await parseBody(output.body, context);
|
|
2593
1010
|
let contents = {};
|
|
@@ -2598,55 +1015,9 @@ export const de_UpdateRuleGroupCommand = async (output, context) => {
|
|
|
2598
1015
|
};
|
|
2599
1016
|
return response;
|
|
2600
1017
|
};
|
|
2601
|
-
const de_UpdateRuleGroupCommandError = async (output, context) => {
|
|
2602
|
-
const parsedOutput = {
|
|
2603
|
-
...output,
|
|
2604
|
-
body: await parseErrorBody(output.body, context),
|
|
2605
|
-
};
|
|
2606
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2607
|
-
switch (errorCode) {
|
|
2608
|
-
case "WAFConfigurationWarningException":
|
|
2609
|
-
case "com.amazonaws.wafv2#WAFConfigurationWarningException":
|
|
2610
|
-
throw await de_WAFConfigurationWarningExceptionRes(parsedOutput, context);
|
|
2611
|
-
case "WAFDuplicateItemException":
|
|
2612
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
2613
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
2614
|
-
case "WAFInternalErrorException":
|
|
2615
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2616
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2617
|
-
case "WAFInvalidOperationException":
|
|
2618
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2619
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2620
|
-
case "WAFInvalidParameterException":
|
|
2621
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2622
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2623
|
-
case "WAFLimitsExceededException":
|
|
2624
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
2625
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
2626
|
-
case "WAFNonexistentItemException":
|
|
2627
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2628
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2629
|
-
case "WAFOptimisticLockException":
|
|
2630
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
2631
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
2632
|
-
case "WAFSubscriptionNotFoundException":
|
|
2633
|
-
case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
|
|
2634
|
-
throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
2635
|
-
case "WAFUnavailableEntityException":
|
|
2636
|
-
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
2637
|
-
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
2638
|
-
default:
|
|
2639
|
-
const parsedBody = parsedOutput.body;
|
|
2640
|
-
return throwDefaultError({
|
|
2641
|
-
output,
|
|
2642
|
-
parsedBody,
|
|
2643
|
-
errorCode,
|
|
2644
|
-
});
|
|
2645
|
-
}
|
|
2646
|
-
};
|
|
2647
1018
|
export const de_UpdateWebACLCommand = async (output, context) => {
|
|
2648
1019
|
if (output.statusCode >= 300) {
|
|
2649
|
-
return
|
|
1020
|
+
return de_CommandError(output, context);
|
|
2650
1021
|
}
|
|
2651
1022
|
const data = await parseBody(output.body, context);
|
|
2652
1023
|
let contents = {};
|
|
@@ -2657,22 +1028,13 @@ export const de_UpdateWebACLCommand = async (output, context) => {
|
|
|
2657
1028
|
};
|
|
2658
1029
|
return response;
|
|
2659
1030
|
};
|
|
2660
|
-
const
|
|
1031
|
+
const de_CommandError = async (output, context) => {
|
|
2661
1032
|
const parsedOutput = {
|
|
2662
1033
|
...output,
|
|
2663
1034
|
body: await parseErrorBody(output.body, context),
|
|
2664
1035
|
};
|
|
2665
1036
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2666
1037
|
switch (errorCode) {
|
|
2667
|
-
case "WAFConfigurationWarningException":
|
|
2668
|
-
case "com.amazonaws.wafv2#WAFConfigurationWarningException":
|
|
2669
|
-
throw await de_WAFConfigurationWarningExceptionRes(parsedOutput, context);
|
|
2670
|
-
case "WAFDuplicateItemException":
|
|
2671
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
2672
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
2673
|
-
case "WAFExpiredManagedRuleGroupVersionException":
|
|
2674
|
-
case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
|
|
2675
|
-
throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
|
|
2676
1038
|
case "WAFInternalErrorException":
|
|
2677
1039
|
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2678
1040
|
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
@@ -2682,24 +1044,54 @@ const de_UpdateWebACLCommandError = async (output, context) => {
|
|
|
2682
1044
|
case "WAFInvalidParameterException":
|
|
2683
1045
|
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2684
1046
|
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1047
|
+
case "WAFNonexistentItemException":
|
|
1048
|
+
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1049
|
+
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1050
|
+
case "WAFUnavailableEntityException":
|
|
1051
|
+
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
1052
|
+
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
1053
|
+
case "WAFExpiredManagedRuleGroupVersionException":
|
|
1054
|
+
case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
|
|
1055
|
+
throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
|
|
2685
1056
|
case "WAFInvalidResourceException":
|
|
2686
1057
|
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
2687
1058
|
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
2688
1059
|
case "WAFLimitsExceededException":
|
|
2689
1060
|
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
2690
1061
|
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
2691
|
-
case "WAFNonexistentItemException":
|
|
2692
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2693
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2694
|
-
case "WAFOptimisticLockException":
|
|
2695
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
2696
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
2697
1062
|
case "WAFSubscriptionNotFoundException":
|
|
2698
1063
|
case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
|
|
2699
1064
|
throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
2700
|
-
case "
|
|
2701
|
-
case "com.amazonaws.wafv2#
|
|
2702
|
-
throw await
|
|
1065
|
+
case "WAFDuplicateItemException":
|
|
1066
|
+
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
1067
|
+
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
1068
|
+
case "WAFOptimisticLockException":
|
|
1069
|
+
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
1070
|
+
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
1071
|
+
case "WAFTagOperationException":
|
|
1072
|
+
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
1073
|
+
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
1074
|
+
case "WAFTagOperationInternalErrorException":
|
|
1075
|
+
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
1076
|
+
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
1077
|
+
case "WAFConfigurationWarningException":
|
|
1078
|
+
case "com.amazonaws.wafv2#WAFConfigurationWarningException":
|
|
1079
|
+
throw await de_WAFConfigurationWarningExceptionRes(parsedOutput, context);
|
|
1080
|
+
case "WAFAssociatedItemException":
|
|
1081
|
+
case "com.amazonaws.wafv2#WAFAssociatedItemException":
|
|
1082
|
+
throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
|
|
1083
|
+
case "WAFUnsupportedAggregateKeyTypeException":
|
|
1084
|
+
case "com.amazonaws.wafv2#WAFUnsupportedAggregateKeyTypeException":
|
|
1085
|
+
throw await de_WAFUnsupportedAggregateKeyTypeExceptionRes(parsedOutput, context);
|
|
1086
|
+
case "WAFLogDestinationPermissionIssueException":
|
|
1087
|
+
case "com.amazonaws.wafv2#WAFLogDestinationPermissionIssueException":
|
|
1088
|
+
throw await de_WAFLogDestinationPermissionIssueExceptionRes(parsedOutput, context);
|
|
1089
|
+
case "WAFServiceLinkedRoleErrorException":
|
|
1090
|
+
case "com.amazonaws.wafv2#WAFServiceLinkedRoleErrorException":
|
|
1091
|
+
throw await de_WAFServiceLinkedRoleErrorExceptionRes(parsedOutput, context);
|
|
1092
|
+
case "WAFInvalidPermissionPolicyException":
|
|
1093
|
+
case "com.amazonaws.wafv2#WAFInvalidPermissionPolicyException":
|
|
1094
|
+
throw await de_WAFInvalidPermissionPolicyExceptionRes(parsedOutput, context);
|
|
2703
1095
|
default:
|
|
2704
1096
|
const parsedBody = parsedOutput.body;
|
|
2705
1097
|
return throwDefaultError({
|