@aws-sdk/client-cloudwatch-logs 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/dist-cjs/index.js +159 -2140
- package/dist-es/protocols/Aws_json1_1.js +327 -2308
- package/dist-types/commands/CreateLogGroupCommand.d.ts +4 -0
- package/dist-types/commands/DescribeDeliveriesCommand.d.ts +13 -0
- package/dist-types/commands/DescribeLogGroupsCommand.d.ts +1 -0
- package/dist-types/commands/GetDeliveryCommand.d.ts +12 -2
- package/dist-types/models/models_0.d.ts +24 -3
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/package.json +3 -3
|
@@ -456,7 +456,7 @@ export const se_UpdateLogAnomalyDetectorCommand = async (input, context) => {
|
|
|
456
456
|
};
|
|
457
457
|
export const de_AssociateKmsKeyCommand = async (output, context) => {
|
|
458
458
|
if (output.statusCode >= 300) {
|
|
459
|
-
return
|
|
459
|
+
return de_CommandError(output, context);
|
|
460
460
|
}
|
|
461
461
|
await collectBody(output.body, context);
|
|
462
462
|
const response = {
|
|
@@ -464,37 +464,9 @@ export const de_AssociateKmsKeyCommand = async (output, context) => {
|
|
|
464
464
|
};
|
|
465
465
|
return response;
|
|
466
466
|
};
|
|
467
|
-
const de_AssociateKmsKeyCommandError = async (output, context) => {
|
|
468
|
-
const parsedOutput = {
|
|
469
|
-
...output,
|
|
470
|
-
body: await parseErrorBody(output.body, context),
|
|
471
|
-
};
|
|
472
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
473
|
-
switch (errorCode) {
|
|
474
|
-
case "InvalidParameterException":
|
|
475
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
476
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
477
|
-
case "OperationAbortedException":
|
|
478
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
479
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
480
|
-
case "ResourceNotFoundException":
|
|
481
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
482
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
483
|
-
case "ServiceUnavailableException":
|
|
484
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
485
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
486
|
-
default:
|
|
487
|
-
const parsedBody = parsedOutput.body;
|
|
488
|
-
return throwDefaultError({
|
|
489
|
-
output,
|
|
490
|
-
parsedBody,
|
|
491
|
-
errorCode,
|
|
492
|
-
});
|
|
493
|
-
}
|
|
494
|
-
};
|
|
495
467
|
export const de_CancelExportTaskCommand = async (output, context) => {
|
|
496
468
|
if (output.statusCode >= 300) {
|
|
497
|
-
return
|
|
469
|
+
return de_CommandError(output, context);
|
|
498
470
|
}
|
|
499
471
|
await collectBody(output.body, context);
|
|
500
472
|
const response = {
|
|
@@ -502,37 +474,9 @@ export const de_CancelExportTaskCommand = async (output, context) => {
|
|
|
502
474
|
};
|
|
503
475
|
return response;
|
|
504
476
|
};
|
|
505
|
-
const de_CancelExportTaskCommandError = async (output, context) => {
|
|
506
|
-
const parsedOutput = {
|
|
507
|
-
...output,
|
|
508
|
-
body: await parseErrorBody(output.body, context),
|
|
509
|
-
};
|
|
510
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
511
|
-
switch (errorCode) {
|
|
512
|
-
case "InvalidOperationException":
|
|
513
|
-
case "com.amazonaws.cloudwatchlogs#InvalidOperationException":
|
|
514
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
515
|
-
case "InvalidParameterException":
|
|
516
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
517
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
518
|
-
case "ResourceNotFoundException":
|
|
519
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
520
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
521
|
-
case "ServiceUnavailableException":
|
|
522
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
523
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
524
|
-
default:
|
|
525
|
-
const parsedBody = parsedOutput.body;
|
|
526
|
-
return throwDefaultError({
|
|
527
|
-
output,
|
|
528
|
-
parsedBody,
|
|
529
|
-
errorCode,
|
|
530
|
-
});
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
477
|
export const de_CreateDeliveryCommand = async (output, context) => {
|
|
534
478
|
if (output.statusCode >= 300) {
|
|
535
|
-
return
|
|
479
|
+
return de_CommandError(output, context);
|
|
536
480
|
}
|
|
537
481
|
const data = await parseBody(output.body, context);
|
|
538
482
|
let contents = {};
|
|
@@ -543,46 +487,9 @@ export const de_CreateDeliveryCommand = async (output, context) => {
|
|
|
543
487
|
};
|
|
544
488
|
return response;
|
|
545
489
|
};
|
|
546
|
-
const de_CreateDeliveryCommandError = async (output, context) => {
|
|
547
|
-
const parsedOutput = {
|
|
548
|
-
...output,
|
|
549
|
-
body: await parseErrorBody(output.body, context),
|
|
550
|
-
};
|
|
551
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
552
|
-
switch (errorCode) {
|
|
553
|
-
case "AccessDeniedException":
|
|
554
|
-
case "com.amazonaws.cloudwatchlogs#AccessDeniedException":
|
|
555
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
556
|
-
case "ConflictException":
|
|
557
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
558
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
559
|
-
case "ResourceNotFoundException":
|
|
560
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
561
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
562
|
-
case "ServiceQuotaExceededException":
|
|
563
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
564
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
565
|
-
case "ServiceUnavailableException":
|
|
566
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
567
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
568
|
-
case "ThrottlingException":
|
|
569
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
570
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
571
|
-
case "ValidationException":
|
|
572
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
573
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
574
|
-
default:
|
|
575
|
-
const parsedBody = parsedOutput.body;
|
|
576
|
-
return throwDefaultError({
|
|
577
|
-
output,
|
|
578
|
-
parsedBody,
|
|
579
|
-
errorCode,
|
|
580
|
-
});
|
|
581
|
-
}
|
|
582
|
-
};
|
|
583
490
|
export const de_CreateExportTaskCommand = async (output, context) => {
|
|
584
491
|
if (output.statusCode >= 300) {
|
|
585
|
-
return
|
|
492
|
+
return de_CommandError(output, context);
|
|
586
493
|
}
|
|
587
494
|
const data = await parseBody(output.body, context);
|
|
588
495
|
let contents = {};
|
|
@@ -593,43 +500,9 @@ export const de_CreateExportTaskCommand = async (output, context) => {
|
|
|
593
500
|
};
|
|
594
501
|
return response;
|
|
595
502
|
};
|
|
596
|
-
const de_CreateExportTaskCommandError = async (output, context) => {
|
|
597
|
-
const parsedOutput = {
|
|
598
|
-
...output,
|
|
599
|
-
body: await parseErrorBody(output.body, context),
|
|
600
|
-
};
|
|
601
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
602
|
-
switch (errorCode) {
|
|
603
|
-
case "InvalidParameterException":
|
|
604
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
605
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
606
|
-
case "LimitExceededException":
|
|
607
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
608
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
609
|
-
case "OperationAbortedException":
|
|
610
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
611
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
612
|
-
case "ResourceAlreadyExistsException":
|
|
613
|
-
case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
|
|
614
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
615
|
-
case "ResourceNotFoundException":
|
|
616
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
617
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
618
|
-
case "ServiceUnavailableException":
|
|
619
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
620
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
621
|
-
default:
|
|
622
|
-
const parsedBody = parsedOutput.body;
|
|
623
|
-
return throwDefaultError({
|
|
624
|
-
output,
|
|
625
|
-
parsedBody,
|
|
626
|
-
errorCode,
|
|
627
|
-
});
|
|
628
|
-
}
|
|
629
|
-
};
|
|
630
503
|
export const de_CreateLogAnomalyDetectorCommand = async (output, context) => {
|
|
631
504
|
if (output.statusCode >= 300) {
|
|
632
|
-
return
|
|
505
|
+
return de_CommandError(output, context);
|
|
633
506
|
}
|
|
634
507
|
const data = await parseBody(output.body, context);
|
|
635
508
|
let contents = {};
|
|
@@ -640,40 +513,9 @@ export const de_CreateLogAnomalyDetectorCommand = async (output, context) => {
|
|
|
640
513
|
};
|
|
641
514
|
return response;
|
|
642
515
|
};
|
|
643
|
-
const de_CreateLogAnomalyDetectorCommandError = async (output, context) => {
|
|
644
|
-
const parsedOutput = {
|
|
645
|
-
...output,
|
|
646
|
-
body: await parseErrorBody(output.body, context),
|
|
647
|
-
};
|
|
648
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
649
|
-
switch (errorCode) {
|
|
650
|
-
case "InvalidParameterException":
|
|
651
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
652
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
653
|
-
case "LimitExceededException":
|
|
654
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
655
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
656
|
-
case "OperationAbortedException":
|
|
657
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
658
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
659
|
-
case "ResourceNotFoundException":
|
|
660
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
661
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
662
|
-
case "ServiceUnavailableException":
|
|
663
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
664
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
665
|
-
default:
|
|
666
|
-
const parsedBody = parsedOutput.body;
|
|
667
|
-
return throwDefaultError({
|
|
668
|
-
output,
|
|
669
|
-
parsedBody,
|
|
670
|
-
errorCode,
|
|
671
|
-
});
|
|
672
|
-
}
|
|
673
|
-
};
|
|
674
516
|
export const de_CreateLogGroupCommand = async (output, context) => {
|
|
675
517
|
if (output.statusCode >= 300) {
|
|
676
|
-
return
|
|
518
|
+
return de_CommandError(output, context);
|
|
677
519
|
}
|
|
678
520
|
await collectBody(output.body, context);
|
|
679
521
|
const response = {
|
|
@@ -681,40 +523,9 @@ export const de_CreateLogGroupCommand = async (output, context) => {
|
|
|
681
523
|
};
|
|
682
524
|
return response;
|
|
683
525
|
};
|
|
684
|
-
const de_CreateLogGroupCommandError = async (output, context) => {
|
|
685
|
-
const parsedOutput = {
|
|
686
|
-
...output,
|
|
687
|
-
body: await parseErrorBody(output.body, context),
|
|
688
|
-
};
|
|
689
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
690
|
-
switch (errorCode) {
|
|
691
|
-
case "InvalidParameterException":
|
|
692
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
693
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
694
|
-
case "LimitExceededException":
|
|
695
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
696
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
697
|
-
case "OperationAbortedException":
|
|
698
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
699
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
700
|
-
case "ResourceAlreadyExistsException":
|
|
701
|
-
case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
|
|
702
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
703
|
-
case "ServiceUnavailableException":
|
|
704
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
705
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
706
|
-
default:
|
|
707
|
-
const parsedBody = parsedOutput.body;
|
|
708
|
-
return throwDefaultError({
|
|
709
|
-
output,
|
|
710
|
-
parsedBody,
|
|
711
|
-
errorCode,
|
|
712
|
-
});
|
|
713
|
-
}
|
|
714
|
-
};
|
|
715
526
|
export const de_CreateLogStreamCommand = async (output, context) => {
|
|
716
527
|
if (output.statusCode >= 300) {
|
|
717
|
-
return
|
|
528
|
+
return de_CommandError(output, context);
|
|
718
529
|
}
|
|
719
530
|
await collectBody(output.body, context);
|
|
720
531
|
const response = {
|
|
@@ -722,37 +533,9 @@ export const de_CreateLogStreamCommand = async (output, context) => {
|
|
|
722
533
|
};
|
|
723
534
|
return response;
|
|
724
535
|
};
|
|
725
|
-
const de_CreateLogStreamCommandError = async (output, context) => {
|
|
726
|
-
const parsedOutput = {
|
|
727
|
-
...output,
|
|
728
|
-
body: await parseErrorBody(output.body, context),
|
|
729
|
-
};
|
|
730
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
|
-
switch (errorCode) {
|
|
732
|
-
case "InvalidParameterException":
|
|
733
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
734
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
735
|
-
case "ResourceAlreadyExistsException":
|
|
736
|
-
case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
|
|
737
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
738
|
-
case "ResourceNotFoundException":
|
|
739
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
740
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
741
|
-
case "ServiceUnavailableException":
|
|
742
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
743
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
744
|
-
default:
|
|
745
|
-
const parsedBody = parsedOutput.body;
|
|
746
|
-
return throwDefaultError({
|
|
747
|
-
output,
|
|
748
|
-
parsedBody,
|
|
749
|
-
errorCode,
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
};
|
|
753
536
|
export const de_DeleteAccountPolicyCommand = async (output, context) => {
|
|
754
537
|
if (output.statusCode >= 300) {
|
|
755
|
-
return
|
|
538
|
+
return de_CommandError(output, context);
|
|
756
539
|
}
|
|
757
540
|
await collectBody(output.body, context);
|
|
758
541
|
const response = {
|
|
@@ -760,37 +543,19 @@ export const de_DeleteAccountPolicyCommand = async (output, context) => {
|
|
|
760
543
|
};
|
|
761
544
|
return response;
|
|
762
545
|
};
|
|
763
|
-
const
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
body: await parseErrorBody(output.body, context),
|
|
767
|
-
};
|
|
768
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
769
|
-
switch (errorCode) {
|
|
770
|
-
case "InvalidParameterException":
|
|
771
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
772
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
773
|
-
case "OperationAbortedException":
|
|
774
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
775
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
776
|
-
case "ResourceNotFoundException":
|
|
777
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
778
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
779
|
-
case "ServiceUnavailableException":
|
|
780
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
781
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
782
|
-
default:
|
|
783
|
-
const parsedBody = parsedOutput.body;
|
|
784
|
-
return throwDefaultError({
|
|
785
|
-
output,
|
|
786
|
-
parsedBody,
|
|
787
|
-
errorCode,
|
|
788
|
-
});
|
|
546
|
+
export const de_DeleteDataProtectionPolicyCommand = async (output, context) => {
|
|
547
|
+
if (output.statusCode >= 300) {
|
|
548
|
+
return de_CommandError(output, context);
|
|
789
549
|
}
|
|
550
|
+
await collectBody(output.body, context);
|
|
551
|
+
const response = {
|
|
552
|
+
$metadata: deserializeMetadata(output),
|
|
553
|
+
};
|
|
554
|
+
return response;
|
|
790
555
|
};
|
|
791
|
-
export const
|
|
556
|
+
export const de_DeleteDeliveryCommand = async (output, context) => {
|
|
792
557
|
if (output.statusCode >= 300) {
|
|
793
|
-
return
|
|
558
|
+
return de_CommandError(output, context);
|
|
794
559
|
}
|
|
795
560
|
await collectBody(output.body, context);
|
|
796
561
|
const response = {
|
|
@@ -798,125 +563,19 @@ export const de_DeleteDataProtectionPolicyCommand = async (output, context) => {
|
|
|
798
563
|
};
|
|
799
564
|
return response;
|
|
800
565
|
};
|
|
801
|
-
const
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
const
|
|
807
|
-
|
|
808
|
-
case "InvalidParameterException":
|
|
809
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
810
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
811
|
-
case "OperationAbortedException":
|
|
812
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
813
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
814
|
-
case "ResourceNotFoundException":
|
|
815
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
816
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
817
|
-
case "ServiceUnavailableException":
|
|
818
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
819
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
820
|
-
default:
|
|
821
|
-
const parsedBody = parsedOutput.body;
|
|
822
|
-
return throwDefaultError({
|
|
823
|
-
output,
|
|
824
|
-
parsedBody,
|
|
825
|
-
errorCode,
|
|
826
|
-
});
|
|
827
|
-
}
|
|
828
|
-
};
|
|
829
|
-
export const de_DeleteDeliveryCommand = async (output, context) => {
|
|
830
|
-
if (output.statusCode >= 300) {
|
|
831
|
-
return de_DeleteDeliveryCommandError(output, context);
|
|
832
|
-
}
|
|
833
|
-
await collectBody(output.body, context);
|
|
834
|
-
const response = {
|
|
835
|
-
$metadata: deserializeMetadata(output),
|
|
836
|
-
};
|
|
837
|
-
return response;
|
|
838
|
-
};
|
|
839
|
-
const de_DeleteDeliveryCommandError = async (output, context) => {
|
|
840
|
-
const parsedOutput = {
|
|
841
|
-
...output,
|
|
842
|
-
body: await parseErrorBody(output.body, context),
|
|
843
|
-
};
|
|
844
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
845
|
-
switch (errorCode) {
|
|
846
|
-
case "ConflictException":
|
|
847
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
848
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
849
|
-
case "ResourceNotFoundException":
|
|
850
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
851
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ServiceQuotaExceededException":
|
|
853
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
854
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
855
|
-
case "ServiceUnavailableException":
|
|
856
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
857
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ThrottlingException":
|
|
859
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
860
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
861
|
-
case "ValidationException":
|
|
862
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
863
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
864
|
-
default:
|
|
865
|
-
const parsedBody = parsedOutput.body;
|
|
866
|
-
return throwDefaultError({
|
|
867
|
-
output,
|
|
868
|
-
parsedBody,
|
|
869
|
-
errorCode,
|
|
870
|
-
});
|
|
871
|
-
}
|
|
872
|
-
};
|
|
873
|
-
export const de_DeleteDeliveryDestinationCommand = async (output, context) => {
|
|
874
|
-
if (output.statusCode >= 300) {
|
|
875
|
-
return de_DeleteDeliveryDestinationCommandError(output, context);
|
|
876
|
-
}
|
|
877
|
-
await collectBody(output.body, context);
|
|
878
|
-
const response = {
|
|
879
|
-
$metadata: deserializeMetadata(output),
|
|
566
|
+
export const de_DeleteDeliveryDestinationCommand = async (output, context) => {
|
|
567
|
+
if (output.statusCode >= 300) {
|
|
568
|
+
return de_CommandError(output, context);
|
|
569
|
+
}
|
|
570
|
+
await collectBody(output.body, context);
|
|
571
|
+
const response = {
|
|
572
|
+
$metadata: deserializeMetadata(output),
|
|
880
573
|
};
|
|
881
574
|
return response;
|
|
882
575
|
};
|
|
883
|
-
const de_DeleteDeliveryDestinationCommandError = async (output, context) => {
|
|
884
|
-
const parsedOutput = {
|
|
885
|
-
...output,
|
|
886
|
-
body: await parseErrorBody(output.body, context),
|
|
887
|
-
};
|
|
888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
|
-
switch (errorCode) {
|
|
890
|
-
case "ConflictException":
|
|
891
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
892
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
893
|
-
case "ResourceNotFoundException":
|
|
894
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
895
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ServiceQuotaExceededException":
|
|
897
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
898
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ServiceUnavailableException":
|
|
900
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
901
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
902
|
-
case "ThrottlingException":
|
|
903
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
904
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
905
|
-
case "ValidationException":
|
|
906
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
907
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
908
|
-
default:
|
|
909
|
-
const parsedBody = parsedOutput.body;
|
|
910
|
-
return throwDefaultError({
|
|
911
|
-
output,
|
|
912
|
-
parsedBody,
|
|
913
|
-
errorCode,
|
|
914
|
-
});
|
|
915
|
-
}
|
|
916
|
-
};
|
|
917
576
|
export const de_DeleteDeliveryDestinationPolicyCommand = async (output, context) => {
|
|
918
577
|
if (output.statusCode >= 300) {
|
|
919
|
-
return
|
|
578
|
+
return de_CommandError(output, context);
|
|
920
579
|
}
|
|
921
580
|
await collectBody(output.body, context);
|
|
922
581
|
const response = {
|
|
@@ -924,37 +583,9 @@ export const de_DeleteDeliveryDestinationPolicyCommand = async (output, context)
|
|
|
924
583
|
};
|
|
925
584
|
return response;
|
|
926
585
|
};
|
|
927
|
-
const de_DeleteDeliveryDestinationPolicyCommandError = async (output, context) => {
|
|
928
|
-
const parsedOutput = {
|
|
929
|
-
...output,
|
|
930
|
-
body: await parseErrorBody(output.body, context),
|
|
931
|
-
};
|
|
932
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
933
|
-
switch (errorCode) {
|
|
934
|
-
case "ConflictException":
|
|
935
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
936
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
937
|
-
case "ResourceNotFoundException":
|
|
938
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
939
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
940
|
-
case "ServiceUnavailableException":
|
|
941
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
942
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
943
|
-
case "ValidationException":
|
|
944
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
945
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
946
|
-
default:
|
|
947
|
-
const parsedBody = parsedOutput.body;
|
|
948
|
-
return throwDefaultError({
|
|
949
|
-
output,
|
|
950
|
-
parsedBody,
|
|
951
|
-
errorCode,
|
|
952
|
-
});
|
|
953
|
-
}
|
|
954
|
-
};
|
|
955
586
|
export const de_DeleteDeliverySourceCommand = async (output, context) => {
|
|
956
587
|
if (output.statusCode >= 300) {
|
|
957
|
-
return
|
|
588
|
+
return de_CommandError(output, context);
|
|
958
589
|
}
|
|
959
590
|
await collectBody(output.body, context);
|
|
960
591
|
const response = {
|
|
@@ -962,43 +593,9 @@ export const de_DeleteDeliverySourceCommand = async (output, context) => {
|
|
|
962
593
|
};
|
|
963
594
|
return response;
|
|
964
595
|
};
|
|
965
|
-
const de_DeleteDeliverySourceCommandError = async (output, context) => {
|
|
966
|
-
const parsedOutput = {
|
|
967
|
-
...output,
|
|
968
|
-
body: await parseErrorBody(output.body, context),
|
|
969
|
-
};
|
|
970
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
971
|
-
switch (errorCode) {
|
|
972
|
-
case "ConflictException":
|
|
973
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
974
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ResourceNotFoundException":
|
|
976
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
977
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ServiceQuotaExceededException":
|
|
979
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
980
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
981
|
-
case "ServiceUnavailableException":
|
|
982
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
983
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
984
|
-
case "ThrottlingException":
|
|
985
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
986
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
987
|
-
case "ValidationException":
|
|
988
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
989
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
990
|
-
default:
|
|
991
|
-
const parsedBody = parsedOutput.body;
|
|
992
|
-
return throwDefaultError({
|
|
993
|
-
output,
|
|
994
|
-
parsedBody,
|
|
995
|
-
errorCode,
|
|
996
|
-
});
|
|
997
|
-
}
|
|
998
|
-
};
|
|
999
596
|
export const de_DeleteDestinationCommand = async (output, context) => {
|
|
1000
597
|
if (output.statusCode >= 300) {
|
|
1001
|
-
return
|
|
598
|
+
return de_CommandError(output, context);
|
|
1002
599
|
}
|
|
1003
600
|
await collectBody(output.body, context);
|
|
1004
601
|
const response = {
|
|
@@ -1006,37 +603,9 @@ export const de_DeleteDestinationCommand = async (output, context) => {
|
|
|
1006
603
|
};
|
|
1007
604
|
return response;
|
|
1008
605
|
};
|
|
1009
|
-
const de_DeleteDestinationCommandError = async (output, context) => {
|
|
1010
|
-
const parsedOutput = {
|
|
1011
|
-
...output,
|
|
1012
|
-
body: await parseErrorBody(output.body, context),
|
|
1013
|
-
};
|
|
1014
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
|
-
switch (errorCode) {
|
|
1016
|
-
case "InvalidParameterException":
|
|
1017
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1018
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "OperationAbortedException":
|
|
1020
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1021
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ResourceNotFoundException":
|
|
1023
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1024
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "ServiceUnavailableException":
|
|
1026
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1027
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1028
|
-
default:
|
|
1029
|
-
const parsedBody = parsedOutput.body;
|
|
1030
|
-
return throwDefaultError({
|
|
1031
|
-
output,
|
|
1032
|
-
parsedBody,
|
|
1033
|
-
errorCode,
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
};
|
|
1037
606
|
export const de_DeleteLogAnomalyDetectorCommand = async (output, context) => {
|
|
1038
607
|
if (output.statusCode >= 300) {
|
|
1039
|
-
return
|
|
608
|
+
return de_CommandError(output, context);
|
|
1040
609
|
}
|
|
1041
610
|
await collectBody(output.body, context);
|
|
1042
611
|
const response = {
|
|
@@ -1044,37 +613,9 @@ export const de_DeleteLogAnomalyDetectorCommand = async (output, context) => {
|
|
|
1044
613
|
};
|
|
1045
614
|
return response;
|
|
1046
615
|
};
|
|
1047
|
-
const de_DeleteLogAnomalyDetectorCommandError = async (output, context) => {
|
|
1048
|
-
const parsedOutput = {
|
|
1049
|
-
...output,
|
|
1050
|
-
body: await parseErrorBody(output.body, context),
|
|
1051
|
-
};
|
|
1052
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
|
-
switch (errorCode) {
|
|
1054
|
-
case "InvalidParameterException":
|
|
1055
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1056
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "OperationAbortedException":
|
|
1058
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1059
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "ResourceNotFoundException":
|
|
1061
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1062
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "ServiceUnavailableException":
|
|
1064
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1065
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1066
|
-
default:
|
|
1067
|
-
const parsedBody = parsedOutput.body;
|
|
1068
|
-
return throwDefaultError({
|
|
1069
|
-
output,
|
|
1070
|
-
parsedBody,
|
|
1071
|
-
errorCode,
|
|
1072
|
-
});
|
|
1073
|
-
}
|
|
1074
|
-
};
|
|
1075
616
|
export const de_DeleteLogGroupCommand = async (output, context) => {
|
|
1076
617
|
if (output.statusCode >= 300) {
|
|
1077
|
-
return
|
|
618
|
+
return de_CommandError(output, context);
|
|
1078
619
|
}
|
|
1079
620
|
await collectBody(output.body, context);
|
|
1080
621
|
const response = {
|
|
@@ -1082,715 +623,29 @@ export const de_DeleteLogGroupCommand = async (output, context) => {
|
|
|
1082
623
|
};
|
|
1083
624
|
return response;
|
|
1084
625
|
};
|
|
1085
|
-
const de_DeleteLogGroupCommandError = async (output, context) => {
|
|
1086
|
-
const parsedOutput = {
|
|
1087
|
-
...output,
|
|
1088
|
-
body: await parseErrorBody(output.body, context),
|
|
1089
|
-
};
|
|
1090
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1091
|
-
switch (errorCode) {
|
|
1092
|
-
case "InvalidParameterException":
|
|
1093
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1094
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1095
|
-
case "OperationAbortedException":
|
|
1096
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1097
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "ResourceNotFoundException":
|
|
1099
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1100
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "ServiceUnavailableException":
|
|
1102
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1103
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1104
|
-
default:
|
|
1105
|
-
const parsedBody = parsedOutput.body;
|
|
1106
|
-
return throwDefaultError({
|
|
1107
|
-
output,
|
|
1108
|
-
parsedBody,
|
|
1109
|
-
errorCode,
|
|
1110
|
-
});
|
|
1111
|
-
}
|
|
1112
|
-
};
|
|
1113
626
|
export const de_DeleteLogStreamCommand = async (output, context) => {
|
|
1114
627
|
if (output.statusCode >= 300) {
|
|
1115
|
-
return
|
|
628
|
+
return de_CommandError(output, context);
|
|
1116
629
|
}
|
|
1117
630
|
await collectBody(output.body, context);
|
|
1118
631
|
const response = {
|
|
1119
632
|
$metadata: deserializeMetadata(output),
|
|
1120
633
|
};
|
|
1121
|
-
return response;
|
|
1122
|
-
};
|
|
1123
|
-
const
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
body: await parseErrorBody(output.body, context),
|
|
1127
|
-
};
|
|
1128
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1129
|
-
switch (errorCode) {
|
|
1130
|
-
case "InvalidParameterException":
|
|
1131
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1132
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "OperationAbortedException":
|
|
1134
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1135
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1136
|
-
case "ResourceNotFoundException":
|
|
1137
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1138
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1139
|
-
case "ServiceUnavailableException":
|
|
1140
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1141
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1142
|
-
default:
|
|
1143
|
-
const parsedBody = parsedOutput.body;
|
|
1144
|
-
return throwDefaultError({
|
|
1145
|
-
output,
|
|
1146
|
-
parsedBody,
|
|
1147
|
-
errorCode,
|
|
1148
|
-
});
|
|
1149
|
-
}
|
|
1150
|
-
};
|
|
1151
|
-
export const de_DeleteMetricFilterCommand = async (output, context) => {
|
|
1152
|
-
if (output.statusCode >= 300) {
|
|
1153
|
-
return de_DeleteMetricFilterCommandError(output, context);
|
|
1154
|
-
}
|
|
1155
|
-
await collectBody(output.body, context);
|
|
1156
|
-
const response = {
|
|
1157
|
-
$metadata: deserializeMetadata(output),
|
|
1158
|
-
};
|
|
1159
|
-
return response;
|
|
1160
|
-
};
|
|
1161
|
-
const de_DeleteMetricFilterCommandError = async (output, context) => {
|
|
1162
|
-
const parsedOutput = {
|
|
1163
|
-
...output,
|
|
1164
|
-
body: await parseErrorBody(output.body, context),
|
|
1165
|
-
};
|
|
1166
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1167
|
-
switch (errorCode) {
|
|
1168
|
-
case "InvalidParameterException":
|
|
1169
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1170
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1171
|
-
case "OperationAbortedException":
|
|
1172
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1173
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1174
|
-
case "ResourceNotFoundException":
|
|
1175
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1176
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1177
|
-
case "ServiceUnavailableException":
|
|
1178
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1179
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1180
|
-
default:
|
|
1181
|
-
const parsedBody = parsedOutput.body;
|
|
1182
|
-
return throwDefaultError({
|
|
1183
|
-
output,
|
|
1184
|
-
parsedBody,
|
|
1185
|
-
errorCode,
|
|
1186
|
-
});
|
|
1187
|
-
}
|
|
1188
|
-
};
|
|
1189
|
-
export const de_DeleteQueryDefinitionCommand = async (output, context) => {
|
|
1190
|
-
if (output.statusCode >= 300) {
|
|
1191
|
-
return de_DeleteQueryDefinitionCommandError(output, context);
|
|
1192
|
-
}
|
|
1193
|
-
const data = await parseBody(output.body, context);
|
|
1194
|
-
let contents = {};
|
|
1195
|
-
contents = _json(data);
|
|
1196
|
-
const response = {
|
|
1197
|
-
$metadata: deserializeMetadata(output),
|
|
1198
|
-
...contents,
|
|
1199
|
-
};
|
|
1200
|
-
return response;
|
|
1201
|
-
};
|
|
1202
|
-
const de_DeleteQueryDefinitionCommandError = async (output, context) => {
|
|
1203
|
-
const parsedOutput = {
|
|
1204
|
-
...output,
|
|
1205
|
-
body: await parseErrorBody(output.body, context),
|
|
1206
|
-
};
|
|
1207
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1208
|
-
switch (errorCode) {
|
|
1209
|
-
case "InvalidParameterException":
|
|
1210
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1211
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "ResourceNotFoundException":
|
|
1213
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1214
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1215
|
-
case "ServiceUnavailableException":
|
|
1216
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1217
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1218
|
-
default:
|
|
1219
|
-
const parsedBody = parsedOutput.body;
|
|
1220
|
-
return throwDefaultError({
|
|
1221
|
-
output,
|
|
1222
|
-
parsedBody,
|
|
1223
|
-
errorCode,
|
|
1224
|
-
});
|
|
1225
|
-
}
|
|
1226
|
-
};
|
|
1227
|
-
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
1228
|
-
if (output.statusCode >= 300) {
|
|
1229
|
-
return de_DeleteResourcePolicyCommandError(output, context);
|
|
1230
|
-
}
|
|
1231
|
-
await collectBody(output.body, context);
|
|
1232
|
-
const response = {
|
|
1233
|
-
$metadata: deserializeMetadata(output),
|
|
1234
|
-
};
|
|
1235
|
-
return response;
|
|
1236
|
-
};
|
|
1237
|
-
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
1238
|
-
const parsedOutput = {
|
|
1239
|
-
...output,
|
|
1240
|
-
body: await parseErrorBody(output.body, context),
|
|
1241
|
-
};
|
|
1242
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1243
|
-
switch (errorCode) {
|
|
1244
|
-
case "InvalidParameterException":
|
|
1245
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1246
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1247
|
-
case "ResourceNotFoundException":
|
|
1248
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1249
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1250
|
-
case "ServiceUnavailableException":
|
|
1251
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1252
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1253
|
-
default:
|
|
1254
|
-
const parsedBody = parsedOutput.body;
|
|
1255
|
-
return throwDefaultError({
|
|
1256
|
-
output,
|
|
1257
|
-
parsedBody,
|
|
1258
|
-
errorCode,
|
|
1259
|
-
});
|
|
1260
|
-
}
|
|
1261
|
-
};
|
|
1262
|
-
export const de_DeleteRetentionPolicyCommand = async (output, context) => {
|
|
1263
|
-
if (output.statusCode >= 300) {
|
|
1264
|
-
return de_DeleteRetentionPolicyCommandError(output, context);
|
|
1265
|
-
}
|
|
1266
|
-
await collectBody(output.body, context);
|
|
1267
|
-
const response = {
|
|
1268
|
-
$metadata: deserializeMetadata(output),
|
|
1269
|
-
};
|
|
1270
|
-
return response;
|
|
1271
|
-
};
|
|
1272
|
-
const de_DeleteRetentionPolicyCommandError = async (output, context) => {
|
|
1273
|
-
const parsedOutput = {
|
|
1274
|
-
...output,
|
|
1275
|
-
body: await parseErrorBody(output.body, context),
|
|
1276
|
-
};
|
|
1277
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1278
|
-
switch (errorCode) {
|
|
1279
|
-
case "InvalidParameterException":
|
|
1280
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1281
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1282
|
-
case "OperationAbortedException":
|
|
1283
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1284
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1285
|
-
case "ResourceNotFoundException":
|
|
1286
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1287
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1288
|
-
case "ServiceUnavailableException":
|
|
1289
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1290
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1291
|
-
default:
|
|
1292
|
-
const parsedBody = parsedOutput.body;
|
|
1293
|
-
return throwDefaultError({
|
|
1294
|
-
output,
|
|
1295
|
-
parsedBody,
|
|
1296
|
-
errorCode,
|
|
1297
|
-
});
|
|
1298
|
-
}
|
|
1299
|
-
};
|
|
1300
|
-
export const de_DeleteSubscriptionFilterCommand = async (output, context) => {
|
|
1301
|
-
if (output.statusCode >= 300) {
|
|
1302
|
-
return de_DeleteSubscriptionFilterCommandError(output, context);
|
|
1303
|
-
}
|
|
1304
|
-
await collectBody(output.body, context);
|
|
1305
|
-
const response = {
|
|
1306
|
-
$metadata: deserializeMetadata(output),
|
|
1307
|
-
};
|
|
1308
|
-
return response;
|
|
1309
|
-
};
|
|
1310
|
-
const de_DeleteSubscriptionFilterCommandError = async (output, context) => {
|
|
1311
|
-
const parsedOutput = {
|
|
1312
|
-
...output,
|
|
1313
|
-
body: await parseErrorBody(output.body, context),
|
|
1314
|
-
};
|
|
1315
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
|
-
switch (errorCode) {
|
|
1317
|
-
case "InvalidParameterException":
|
|
1318
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1319
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "OperationAbortedException":
|
|
1321
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1322
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "ResourceNotFoundException":
|
|
1324
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1325
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1326
|
-
case "ServiceUnavailableException":
|
|
1327
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1328
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1329
|
-
default:
|
|
1330
|
-
const parsedBody = parsedOutput.body;
|
|
1331
|
-
return throwDefaultError({
|
|
1332
|
-
output,
|
|
1333
|
-
parsedBody,
|
|
1334
|
-
errorCode,
|
|
1335
|
-
});
|
|
1336
|
-
}
|
|
1337
|
-
};
|
|
1338
|
-
export const de_DescribeAccountPoliciesCommand = async (output, context) => {
|
|
1339
|
-
if (output.statusCode >= 300) {
|
|
1340
|
-
return de_DescribeAccountPoliciesCommandError(output, context);
|
|
1341
|
-
}
|
|
1342
|
-
const data = await parseBody(output.body, context);
|
|
1343
|
-
let contents = {};
|
|
1344
|
-
contents = _json(data);
|
|
1345
|
-
const response = {
|
|
1346
|
-
$metadata: deserializeMetadata(output),
|
|
1347
|
-
...contents,
|
|
1348
|
-
};
|
|
1349
|
-
return response;
|
|
1350
|
-
};
|
|
1351
|
-
const de_DescribeAccountPoliciesCommandError = async (output, context) => {
|
|
1352
|
-
const parsedOutput = {
|
|
1353
|
-
...output,
|
|
1354
|
-
body: await parseErrorBody(output.body, context),
|
|
1355
|
-
};
|
|
1356
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1357
|
-
switch (errorCode) {
|
|
1358
|
-
case "InvalidParameterException":
|
|
1359
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1360
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1361
|
-
case "OperationAbortedException":
|
|
1362
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1363
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1364
|
-
case "ResourceNotFoundException":
|
|
1365
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1366
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1367
|
-
case "ServiceUnavailableException":
|
|
1368
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1369
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1370
|
-
default:
|
|
1371
|
-
const parsedBody = parsedOutput.body;
|
|
1372
|
-
return throwDefaultError({
|
|
1373
|
-
output,
|
|
1374
|
-
parsedBody,
|
|
1375
|
-
errorCode,
|
|
1376
|
-
});
|
|
1377
|
-
}
|
|
1378
|
-
};
|
|
1379
|
-
export const de_DescribeDeliveriesCommand = async (output, context) => {
|
|
1380
|
-
if (output.statusCode >= 300) {
|
|
1381
|
-
return de_DescribeDeliveriesCommandError(output, context);
|
|
1382
|
-
}
|
|
1383
|
-
const data = await parseBody(output.body, context);
|
|
1384
|
-
let contents = {};
|
|
1385
|
-
contents = _json(data);
|
|
1386
|
-
const response = {
|
|
1387
|
-
$metadata: deserializeMetadata(output),
|
|
1388
|
-
...contents,
|
|
1389
|
-
};
|
|
1390
|
-
return response;
|
|
1391
|
-
};
|
|
1392
|
-
const de_DescribeDeliveriesCommandError = async (output, context) => {
|
|
1393
|
-
const parsedOutput = {
|
|
1394
|
-
...output,
|
|
1395
|
-
body: await parseErrorBody(output.body, context),
|
|
1396
|
-
};
|
|
1397
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1398
|
-
switch (errorCode) {
|
|
1399
|
-
case "ServiceQuotaExceededException":
|
|
1400
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1401
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1402
|
-
case "ServiceUnavailableException":
|
|
1403
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1404
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1405
|
-
case "ThrottlingException":
|
|
1406
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1407
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1408
|
-
case "ValidationException":
|
|
1409
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1410
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1411
|
-
default:
|
|
1412
|
-
const parsedBody = parsedOutput.body;
|
|
1413
|
-
return throwDefaultError({
|
|
1414
|
-
output,
|
|
1415
|
-
parsedBody,
|
|
1416
|
-
errorCode,
|
|
1417
|
-
});
|
|
1418
|
-
}
|
|
1419
|
-
};
|
|
1420
|
-
export const de_DescribeDeliveryDestinationsCommand = async (output, context) => {
|
|
1421
|
-
if (output.statusCode >= 300) {
|
|
1422
|
-
return de_DescribeDeliveryDestinationsCommandError(output, context);
|
|
1423
|
-
}
|
|
1424
|
-
const data = await parseBody(output.body, context);
|
|
1425
|
-
let contents = {};
|
|
1426
|
-
contents = _json(data);
|
|
1427
|
-
const response = {
|
|
1428
|
-
$metadata: deserializeMetadata(output),
|
|
1429
|
-
...contents,
|
|
1430
|
-
};
|
|
1431
|
-
return response;
|
|
1432
|
-
};
|
|
1433
|
-
const de_DescribeDeliveryDestinationsCommandError = async (output, context) => {
|
|
1434
|
-
const parsedOutput = {
|
|
1435
|
-
...output,
|
|
1436
|
-
body: await parseErrorBody(output.body, context),
|
|
1437
|
-
};
|
|
1438
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1439
|
-
switch (errorCode) {
|
|
1440
|
-
case "ServiceQuotaExceededException":
|
|
1441
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1442
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1443
|
-
case "ServiceUnavailableException":
|
|
1444
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1445
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1446
|
-
case "ThrottlingException":
|
|
1447
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1448
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1449
|
-
case "ValidationException":
|
|
1450
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1451
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1452
|
-
default:
|
|
1453
|
-
const parsedBody = parsedOutput.body;
|
|
1454
|
-
return throwDefaultError({
|
|
1455
|
-
output,
|
|
1456
|
-
parsedBody,
|
|
1457
|
-
errorCode,
|
|
1458
|
-
});
|
|
1459
|
-
}
|
|
1460
|
-
};
|
|
1461
|
-
export const de_DescribeDeliverySourcesCommand = async (output, context) => {
|
|
1462
|
-
if (output.statusCode >= 300) {
|
|
1463
|
-
return de_DescribeDeliverySourcesCommandError(output, context);
|
|
1464
|
-
}
|
|
1465
|
-
const data = await parseBody(output.body, context);
|
|
1466
|
-
let contents = {};
|
|
1467
|
-
contents = _json(data);
|
|
1468
|
-
const response = {
|
|
1469
|
-
$metadata: deserializeMetadata(output),
|
|
1470
|
-
...contents,
|
|
1471
|
-
};
|
|
1472
|
-
return response;
|
|
1473
|
-
};
|
|
1474
|
-
const de_DescribeDeliverySourcesCommandError = async (output, context) => {
|
|
1475
|
-
const parsedOutput = {
|
|
1476
|
-
...output,
|
|
1477
|
-
body: await parseErrorBody(output.body, context),
|
|
1478
|
-
};
|
|
1479
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1480
|
-
switch (errorCode) {
|
|
1481
|
-
case "ServiceQuotaExceededException":
|
|
1482
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1483
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "ServiceUnavailableException":
|
|
1485
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1486
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1487
|
-
case "ThrottlingException":
|
|
1488
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1489
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1490
|
-
case "ValidationException":
|
|
1491
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1492
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1493
|
-
default:
|
|
1494
|
-
const parsedBody = parsedOutput.body;
|
|
1495
|
-
return throwDefaultError({
|
|
1496
|
-
output,
|
|
1497
|
-
parsedBody,
|
|
1498
|
-
errorCode,
|
|
1499
|
-
});
|
|
1500
|
-
}
|
|
1501
|
-
};
|
|
1502
|
-
export const de_DescribeDestinationsCommand = async (output, context) => {
|
|
1503
|
-
if (output.statusCode >= 300) {
|
|
1504
|
-
return de_DescribeDestinationsCommandError(output, context);
|
|
1505
|
-
}
|
|
1506
|
-
const data = await parseBody(output.body, context);
|
|
1507
|
-
let contents = {};
|
|
1508
|
-
contents = _json(data);
|
|
1509
|
-
const response = {
|
|
1510
|
-
$metadata: deserializeMetadata(output),
|
|
1511
|
-
...contents,
|
|
1512
|
-
};
|
|
1513
|
-
return response;
|
|
1514
|
-
};
|
|
1515
|
-
const de_DescribeDestinationsCommandError = async (output, context) => {
|
|
1516
|
-
const parsedOutput = {
|
|
1517
|
-
...output,
|
|
1518
|
-
body: await parseErrorBody(output.body, context),
|
|
1519
|
-
};
|
|
1520
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1521
|
-
switch (errorCode) {
|
|
1522
|
-
case "InvalidParameterException":
|
|
1523
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1524
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1525
|
-
case "ServiceUnavailableException":
|
|
1526
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1527
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1528
|
-
default:
|
|
1529
|
-
const parsedBody = parsedOutput.body;
|
|
1530
|
-
return throwDefaultError({
|
|
1531
|
-
output,
|
|
1532
|
-
parsedBody,
|
|
1533
|
-
errorCode,
|
|
1534
|
-
});
|
|
1535
|
-
}
|
|
1536
|
-
};
|
|
1537
|
-
export const de_DescribeExportTasksCommand = async (output, context) => {
|
|
1538
|
-
if (output.statusCode >= 300) {
|
|
1539
|
-
return de_DescribeExportTasksCommandError(output, context);
|
|
1540
|
-
}
|
|
1541
|
-
const data = await parseBody(output.body, context);
|
|
1542
|
-
let contents = {};
|
|
1543
|
-
contents = _json(data);
|
|
1544
|
-
const response = {
|
|
1545
|
-
$metadata: deserializeMetadata(output),
|
|
1546
|
-
...contents,
|
|
1547
|
-
};
|
|
1548
|
-
return response;
|
|
1549
|
-
};
|
|
1550
|
-
const de_DescribeExportTasksCommandError = async (output, context) => {
|
|
1551
|
-
const parsedOutput = {
|
|
1552
|
-
...output,
|
|
1553
|
-
body: await parseErrorBody(output.body, context),
|
|
1554
|
-
};
|
|
1555
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1556
|
-
switch (errorCode) {
|
|
1557
|
-
case "InvalidParameterException":
|
|
1558
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1559
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "ServiceUnavailableException":
|
|
1561
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1562
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1563
|
-
default:
|
|
1564
|
-
const parsedBody = parsedOutput.body;
|
|
1565
|
-
return throwDefaultError({
|
|
1566
|
-
output,
|
|
1567
|
-
parsedBody,
|
|
1568
|
-
errorCode,
|
|
1569
|
-
});
|
|
1570
|
-
}
|
|
1571
|
-
};
|
|
1572
|
-
export const de_DescribeLogGroupsCommand = async (output, context) => {
|
|
1573
|
-
if (output.statusCode >= 300) {
|
|
1574
|
-
return de_DescribeLogGroupsCommandError(output, context);
|
|
1575
|
-
}
|
|
1576
|
-
const data = await parseBody(output.body, context);
|
|
1577
|
-
let contents = {};
|
|
1578
|
-
contents = _json(data);
|
|
1579
|
-
const response = {
|
|
1580
|
-
$metadata: deserializeMetadata(output),
|
|
1581
|
-
...contents,
|
|
1582
|
-
};
|
|
1583
|
-
return response;
|
|
1584
|
-
};
|
|
1585
|
-
const de_DescribeLogGroupsCommandError = async (output, context) => {
|
|
1586
|
-
const parsedOutput = {
|
|
1587
|
-
...output,
|
|
1588
|
-
body: await parseErrorBody(output.body, context),
|
|
1589
|
-
};
|
|
1590
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1591
|
-
switch (errorCode) {
|
|
1592
|
-
case "InvalidParameterException":
|
|
1593
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1594
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "ServiceUnavailableException":
|
|
1596
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1597
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1598
|
-
default:
|
|
1599
|
-
const parsedBody = parsedOutput.body;
|
|
1600
|
-
return throwDefaultError({
|
|
1601
|
-
output,
|
|
1602
|
-
parsedBody,
|
|
1603
|
-
errorCode,
|
|
1604
|
-
});
|
|
1605
|
-
}
|
|
1606
|
-
};
|
|
1607
|
-
export const de_DescribeLogStreamsCommand = async (output, context) => {
|
|
1608
|
-
if (output.statusCode >= 300) {
|
|
1609
|
-
return de_DescribeLogStreamsCommandError(output, context);
|
|
1610
|
-
}
|
|
1611
|
-
const data = await parseBody(output.body, context);
|
|
1612
|
-
let contents = {};
|
|
1613
|
-
contents = _json(data);
|
|
1614
|
-
const response = {
|
|
1615
|
-
$metadata: deserializeMetadata(output),
|
|
1616
|
-
...contents,
|
|
1617
|
-
};
|
|
1618
|
-
return response;
|
|
1619
|
-
};
|
|
1620
|
-
const de_DescribeLogStreamsCommandError = async (output, context) => {
|
|
1621
|
-
const parsedOutput = {
|
|
1622
|
-
...output,
|
|
1623
|
-
body: await parseErrorBody(output.body, context),
|
|
1624
|
-
};
|
|
1625
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1626
|
-
switch (errorCode) {
|
|
1627
|
-
case "InvalidParameterException":
|
|
1628
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1629
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1630
|
-
case "ResourceNotFoundException":
|
|
1631
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1632
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1633
|
-
case "ServiceUnavailableException":
|
|
1634
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1635
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1636
|
-
default:
|
|
1637
|
-
const parsedBody = parsedOutput.body;
|
|
1638
|
-
return throwDefaultError({
|
|
1639
|
-
output,
|
|
1640
|
-
parsedBody,
|
|
1641
|
-
errorCode,
|
|
1642
|
-
});
|
|
1643
|
-
}
|
|
1644
|
-
};
|
|
1645
|
-
export const de_DescribeMetricFiltersCommand = async (output, context) => {
|
|
1646
|
-
if (output.statusCode >= 300) {
|
|
1647
|
-
return de_DescribeMetricFiltersCommandError(output, context);
|
|
1648
|
-
}
|
|
1649
|
-
const data = await parseBody(output.body, context);
|
|
1650
|
-
let contents = {};
|
|
1651
|
-
contents = de_DescribeMetricFiltersResponse(data, context);
|
|
1652
|
-
const response = {
|
|
1653
|
-
$metadata: deserializeMetadata(output),
|
|
1654
|
-
...contents,
|
|
1655
|
-
};
|
|
1656
|
-
return response;
|
|
1657
|
-
};
|
|
1658
|
-
const de_DescribeMetricFiltersCommandError = async (output, context) => {
|
|
1659
|
-
const parsedOutput = {
|
|
1660
|
-
...output,
|
|
1661
|
-
body: await parseErrorBody(output.body, context),
|
|
1662
|
-
};
|
|
1663
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1664
|
-
switch (errorCode) {
|
|
1665
|
-
case "InvalidParameterException":
|
|
1666
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1667
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1668
|
-
case "ResourceNotFoundException":
|
|
1669
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1670
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1671
|
-
case "ServiceUnavailableException":
|
|
1672
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1673
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1674
|
-
default:
|
|
1675
|
-
const parsedBody = parsedOutput.body;
|
|
1676
|
-
return throwDefaultError({
|
|
1677
|
-
output,
|
|
1678
|
-
parsedBody,
|
|
1679
|
-
errorCode,
|
|
1680
|
-
});
|
|
1681
|
-
}
|
|
1682
|
-
};
|
|
1683
|
-
export const de_DescribeQueriesCommand = async (output, context) => {
|
|
1684
|
-
if (output.statusCode >= 300) {
|
|
1685
|
-
return de_DescribeQueriesCommandError(output, context);
|
|
1686
|
-
}
|
|
1687
|
-
const data = await parseBody(output.body, context);
|
|
1688
|
-
let contents = {};
|
|
1689
|
-
contents = _json(data);
|
|
1690
|
-
const response = {
|
|
1691
|
-
$metadata: deserializeMetadata(output),
|
|
1692
|
-
...contents,
|
|
1693
|
-
};
|
|
1694
|
-
return response;
|
|
1695
|
-
};
|
|
1696
|
-
const de_DescribeQueriesCommandError = async (output, context) => {
|
|
1697
|
-
const parsedOutput = {
|
|
1698
|
-
...output,
|
|
1699
|
-
body: await parseErrorBody(output.body, context),
|
|
1700
|
-
};
|
|
1701
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1702
|
-
switch (errorCode) {
|
|
1703
|
-
case "InvalidParameterException":
|
|
1704
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1705
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1706
|
-
case "ResourceNotFoundException":
|
|
1707
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1708
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1709
|
-
case "ServiceUnavailableException":
|
|
1710
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1711
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1712
|
-
default:
|
|
1713
|
-
const parsedBody = parsedOutput.body;
|
|
1714
|
-
return throwDefaultError({
|
|
1715
|
-
output,
|
|
1716
|
-
parsedBody,
|
|
1717
|
-
errorCode,
|
|
1718
|
-
});
|
|
1719
|
-
}
|
|
1720
|
-
};
|
|
1721
|
-
export const de_DescribeQueryDefinitionsCommand = async (output, context) => {
|
|
1722
|
-
if (output.statusCode >= 300) {
|
|
1723
|
-
return de_DescribeQueryDefinitionsCommandError(output, context);
|
|
1724
|
-
}
|
|
1725
|
-
const data = await parseBody(output.body, context);
|
|
1726
|
-
let contents = {};
|
|
1727
|
-
contents = _json(data);
|
|
1728
|
-
const response = {
|
|
1729
|
-
$metadata: deserializeMetadata(output),
|
|
1730
|
-
...contents,
|
|
1731
|
-
};
|
|
1732
|
-
return response;
|
|
1733
|
-
};
|
|
1734
|
-
const de_DescribeQueryDefinitionsCommandError = async (output, context) => {
|
|
1735
|
-
const parsedOutput = {
|
|
1736
|
-
...output,
|
|
1737
|
-
body: await parseErrorBody(output.body, context),
|
|
1738
|
-
};
|
|
1739
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1740
|
-
switch (errorCode) {
|
|
1741
|
-
case "InvalidParameterException":
|
|
1742
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1743
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1744
|
-
case "ServiceUnavailableException":
|
|
1745
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1746
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1747
|
-
default:
|
|
1748
|
-
const parsedBody = parsedOutput.body;
|
|
1749
|
-
return throwDefaultError({
|
|
1750
|
-
output,
|
|
1751
|
-
parsedBody,
|
|
1752
|
-
errorCode,
|
|
1753
|
-
});
|
|
1754
|
-
}
|
|
1755
|
-
};
|
|
1756
|
-
export const de_DescribeResourcePoliciesCommand = async (output, context) => {
|
|
1757
|
-
if (output.statusCode >= 300) {
|
|
1758
|
-
return de_DescribeResourcePoliciesCommandError(output, context);
|
|
1759
|
-
}
|
|
1760
|
-
const data = await parseBody(output.body, context);
|
|
1761
|
-
let contents = {};
|
|
1762
|
-
contents = _json(data);
|
|
1763
|
-
const response = {
|
|
1764
|
-
$metadata: deserializeMetadata(output),
|
|
1765
|
-
...contents,
|
|
1766
|
-
};
|
|
1767
|
-
return response;
|
|
1768
|
-
};
|
|
1769
|
-
const de_DescribeResourcePoliciesCommandError = async (output, context) => {
|
|
1770
|
-
const parsedOutput = {
|
|
1771
|
-
...output,
|
|
1772
|
-
body: await parseErrorBody(output.body, context),
|
|
1773
|
-
};
|
|
1774
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1775
|
-
switch (errorCode) {
|
|
1776
|
-
case "InvalidParameterException":
|
|
1777
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1778
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1779
|
-
case "ServiceUnavailableException":
|
|
1780
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1781
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1782
|
-
default:
|
|
1783
|
-
const parsedBody = parsedOutput.body;
|
|
1784
|
-
return throwDefaultError({
|
|
1785
|
-
output,
|
|
1786
|
-
parsedBody,
|
|
1787
|
-
errorCode,
|
|
1788
|
-
});
|
|
634
|
+
return response;
|
|
635
|
+
};
|
|
636
|
+
export const de_DeleteMetricFilterCommand = async (output, context) => {
|
|
637
|
+
if (output.statusCode >= 300) {
|
|
638
|
+
return de_CommandError(output, context);
|
|
1789
639
|
}
|
|
640
|
+
await collectBody(output.body, context);
|
|
641
|
+
const response = {
|
|
642
|
+
$metadata: deserializeMetadata(output),
|
|
643
|
+
};
|
|
644
|
+
return response;
|
|
1790
645
|
};
|
|
1791
|
-
export const
|
|
646
|
+
export const de_DeleteQueryDefinitionCommand = async (output, context) => {
|
|
1792
647
|
if (output.statusCode >= 300) {
|
|
1793
|
-
return
|
|
648
|
+
return de_CommandError(output, context);
|
|
1794
649
|
}
|
|
1795
650
|
const data = await parseBody(output.body, context);
|
|
1796
651
|
let contents = {};
|
|
@@ -1801,34 +656,19 @@ export const de_DescribeSubscriptionFiltersCommand = async (output, context) =>
|
|
|
1801
656
|
};
|
|
1802
657
|
return response;
|
|
1803
658
|
};
|
|
1804
|
-
const
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
body: await parseErrorBody(output.body, context),
|
|
1808
|
-
};
|
|
1809
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1810
|
-
switch (errorCode) {
|
|
1811
|
-
case "InvalidParameterException":
|
|
1812
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1813
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1814
|
-
case "ResourceNotFoundException":
|
|
1815
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1816
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1817
|
-
case "ServiceUnavailableException":
|
|
1818
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1819
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1820
|
-
default:
|
|
1821
|
-
const parsedBody = parsedOutput.body;
|
|
1822
|
-
return throwDefaultError({
|
|
1823
|
-
output,
|
|
1824
|
-
parsedBody,
|
|
1825
|
-
errorCode,
|
|
1826
|
-
});
|
|
659
|
+
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
660
|
+
if (output.statusCode >= 300) {
|
|
661
|
+
return de_CommandError(output, context);
|
|
1827
662
|
}
|
|
663
|
+
await collectBody(output.body, context);
|
|
664
|
+
const response = {
|
|
665
|
+
$metadata: deserializeMetadata(output),
|
|
666
|
+
};
|
|
667
|
+
return response;
|
|
1828
668
|
};
|
|
1829
|
-
export const
|
|
669
|
+
export const de_DeleteRetentionPolicyCommand = async (output, context) => {
|
|
1830
670
|
if (output.statusCode >= 300) {
|
|
1831
|
-
return
|
|
671
|
+
return de_CommandError(output, context);
|
|
1832
672
|
}
|
|
1833
673
|
await collectBody(output.body, context);
|
|
1834
674
|
const response = {
|
|
@@ -1836,37 +676,19 @@ export const de_DisassociateKmsKeyCommand = async (output, context) => {
|
|
|
1836
676
|
};
|
|
1837
677
|
return response;
|
|
1838
678
|
};
|
|
1839
|
-
const
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
body: await parseErrorBody(output.body, context),
|
|
1843
|
-
};
|
|
1844
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
|
-
switch (errorCode) {
|
|
1846
|
-
case "InvalidParameterException":
|
|
1847
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1848
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1849
|
-
case "OperationAbortedException":
|
|
1850
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1851
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "ResourceNotFoundException":
|
|
1853
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1854
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "ServiceUnavailableException":
|
|
1856
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1857
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1858
|
-
default:
|
|
1859
|
-
const parsedBody = parsedOutput.body;
|
|
1860
|
-
return throwDefaultError({
|
|
1861
|
-
output,
|
|
1862
|
-
parsedBody,
|
|
1863
|
-
errorCode,
|
|
1864
|
-
});
|
|
679
|
+
export const de_DeleteSubscriptionFilterCommand = async (output, context) => {
|
|
680
|
+
if (output.statusCode >= 300) {
|
|
681
|
+
return de_CommandError(output, context);
|
|
1865
682
|
}
|
|
683
|
+
await collectBody(output.body, context);
|
|
684
|
+
const response = {
|
|
685
|
+
$metadata: deserializeMetadata(output),
|
|
686
|
+
};
|
|
687
|
+
return response;
|
|
1866
688
|
};
|
|
1867
|
-
export const
|
|
689
|
+
export const de_DescribeAccountPoliciesCommand = async (output, context) => {
|
|
1868
690
|
if (output.statusCode >= 300) {
|
|
1869
|
-
return
|
|
691
|
+
return de_CommandError(output, context);
|
|
1870
692
|
}
|
|
1871
693
|
const data = await parseBody(output.body, context);
|
|
1872
694
|
let contents = {};
|
|
@@ -1877,34 +699,9 @@ export const de_FilterLogEventsCommand = async (output, context) => {
|
|
|
1877
699
|
};
|
|
1878
700
|
return response;
|
|
1879
701
|
};
|
|
1880
|
-
const
|
|
1881
|
-
const parsedOutput = {
|
|
1882
|
-
...output,
|
|
1883
|
-
body: await parseErrorBody(output.body, context),
|
|
1884
|
-
};
|
|
1885
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1886
|
-
switch (errorCode) {
|
|
1887
|
-
case "InvalidParameterException":
|
|
1888
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1889
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1890
|
-
case "ResourceNotFoundException":
|
|
1891
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1892
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1893
|
-
case "ServiceUnavailableException":
|
|
1894
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1895
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1896
|
-
default:
|
|
1897
|
-
const parsedBody = parsedOutput.body;
|
|
1898
|
-
return throwDefaultError({
|
|
1899
|
-
output,
|
|
1900
|
-
parsedBody,
|
|
1901
|
-
errorCode,
|
|
1902
|
-
});
|
|
1903
|
-
}
|
|
1904
|
-
};
|
|
1905
|
-
export const de_GetDataProtectionPolicyCommand = async (output, context) => {
|
|
702
|
+
export const de_DescribeDeliveriesCommand = async (output, context) => {
|
|
1906
703
|
if (output.statusCode >= 300) {
|
|
1907
|
-
return
|
|
704
|
+
return de_CommandError(output, context);
|
|
1908
705
|
}
|
|
1909
706
|
const data = await parseBody(output.body, context);
|
|
1910
707
|
let contents = {};
|
|
@@ -1915,37 +712,9 @@ export const de_GetDataProtectionPolicyCommand = async (output, context) => {
|
|
|
1915
712
|
};
|
|
1916
713
|
return response;
|
|
1917
714
|
};
|
|
1918
|
-
const
|
|
1919
|
-
const parsedOutput = {
|
|
1920
|
-
...output,
|
|
1921
|
-
body: await parseErrorBody(output.body, context),
|
|
1922
|
-
};
|
|
1923
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1924
|
-
switch (errorCode) {
|
|
1925
|
-
case "InvalidParameterException":
|
|
1926
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1927
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1928
|
-
case "OperationAbortedException":
|
|
1929
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1930
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1931
|
-
case "ResourceNotFoundException":
|
|
1932
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1933
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1934
|
-
case "ServiceUnavailableException":
|
|
1935
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1936
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1937
|
-
default:
|
|
1938
|
-
const parsedBody = parsedOutput.body;
|
|
1939
|
-
return throwDefaultError({
|
|
1940
|
-
output,
|
|
1941
|
-
parsedBody,
|
|
1942
|
-
errorCode,
|
|
1943
|
-
});
|
|
1944
|
-
}
|
|
1945
|
-
};
|
|
1946
|
-
export const de_GetDeliveryCommand = async (output, context) => {
|
|
715
|
+
export const de_DescribeDeliveryDestinationsCommand = async (output, context) => {
|
|
1947
716
|
if (output.statusCode >= 300) {
|
|
1948
|
-
return
|
|
717
|
+
return de_CommandError(output, context);
|
|
1949
718
|
}
|
|
1950
719
|
const data = await parseBody(output.body, context);
|
|
1951
720
|
let contents = {};
|
|
@@ -1956,40 +725,9 @@ export const de_GetDeliveryCommand = async (output, context) => {
|
|
|
1956
725
|
};
|
|
1957
726
|
return response;
|
|
1958
727
|
};
|
|
1959
|
-
const
|
|
1960
|
-
const parsedOutput = {
|
|
1961
|
-
...output,
|
|
1962
|
-
body: await parseErrorBody(output.body, context),
|
|
1963
|
-
};
|
|
1964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1965
|
-
switch (errorCode) {
|
|
1966
|
-
case "ResourceNotFoundException":
|
|
1967
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1968
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1969
|
-
case "ServiceQuotaExceededException":
|
|
1970
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1971
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1972
|
-
case "ServiceUnavailableException":
|
|
1973
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1974
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1975
|
-
case "ThrottlingException":
|
|
1976
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1977
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1978
|
-
case "ValidationException":
|
|
1979
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1980
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1981
|
-
default:
|
|
1982
|
-
const parsedBody = parsedOutput.body;
|
|
1983
|
-
return throwDefaultError({
|
|
1984
|
-
output,
|
|
1985
|
-
parsedBody,
|
|
1986
|
-
errorCode,
|
|
1987
|
-
});
|
|
1988
|
-
}
|
|
1989
|
-
};
|
|
1990
|
-
export const de_GetDeliveryDestinationCommand = async (output, context) => {
|
|
728
|
+
export const de_DescribeDeliverySourcesCommand = async (output, context) => {
|
|
1991
729
|
if (output.statusCode >= 300) {
|
|
1992
|
-
return
|
|
730
|
+
return de_CommandError(output, context);
|
|
1993
731
|
}
|
|
1994
732
|
const data = await parseBody(output.body, context);
|
|
1995
733
|
let contents = {};
|
|
@@ -2000,40 +738,9 @@ export const de_GetDeliveryDestinationCommand = async (output, context) => {
|
|
|
2000
738
|
};
|
|
2001
739
|
return response;
|
|
2002
740
|
};
|
|
2003
|
-
const
|
|
2004
|
-
const parsedOutput = {
|
|
2005
|
-
...output,
|
|
2006
|
-
body: await parseErrorBody(output.body, context),
|
|
2007
|
-
};
|
|
2008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2009
|
-
switch (errorCode) {
|
|
2010
|
-
case "ResourceNotFoundException":
|
|
2011
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2012
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2013
|
-
case "ServiceQuotaExceededException":
|
|
2014
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2015
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2016
|
-
case "ServiceUnavailableException":
|
|
2017
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2018
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2019
|
-
case "ThrottlingException":
|
|
2020
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2021
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2022
|
-
case "ValidationException":
|
|
2023
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2024
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2025
|
-
default:
|
|
2026
|
-
const parsedBody = parsedOutput.body;
|
|
2027
|
-
return throwDefaultError({
|
|
2028
|
-
output,
|
|
2029
|
-
parsedBody,
|
|
2030
|
-
errorCode,
|
|
2031
|
-
});
|
|
2032
|
-
}
|
|
2033
|
-
};
|
|
2034
|
-
export const de_GetDeliveryDestinationPolicyCommand = async (output, context) => {
|
|
741
|
+
export const de_DescribeDestinationsCommand = async (output, context) => {
|
|
2035
742
|
if (output.statusCode >= 300) {
|
|
2036
|
-
return
|
|
743
|
+
return de_CommandError(output, context);
|
|
2037
744
|
}
|
|
2038
745
|
const data = await parseBody(output.body, context);
|
|
2039
746
|
let contents = {};
|
|
@@ -2044,34 +751,9 @@ export const de_GetDeliveryDestinationPolicyCommand = async (output, context) =>
|
|
|
2044
751
|
};
|
|
2045
752
|
return response;
|
|
2046
753
|
};
|
|
2047
|
-
const
|
|
2048
|
-
const parsedOutput = {
|
|
2049
|
-
...output,
|
|
2050
|
-
body: await parseErrorBody(output.body, context),
|
|
2051
|
-
};
|
|
2052
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2053
|
-
switch (errorCode) {
|
|
2054
|
-
case "ResourceNotFoundException":
|
|
2055
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2056
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2057
|
-
case "ServiceUnavailableException":
|
|
2058
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2059
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2060
|
-
case "ValidationException":
|
|
2061
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2062
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2063
|
-
default:
|
|
2064
|
-
const parsedBody = parsedOutput.body;
|
|
2065
|
-
return throwDefaultError({
|
|
2066
|
-
output,
|
|
2067
|
-
parsedBody,
|
|
2068
|
-
errorCode,
|
|
2069
|
-
});
|
|
2070
|
-
}
|
|
2071
|
-
};
|
|
2072
|
-
export const de_GetDeliverySourceCommand = async (output, context) => {
|
|
754
|
+
export const de_DescribeExportTasksCommand = async (output, context) => {
|
|
2073
755
|
if (output.statusCode >= 300) {
|
|
2074
|
-
return
|
|
756
|
+
return de_CommandError(output, context);
|
|
2075
757
|
}
|
|
2076
758
|
const data = await parseBody(output.body, context);
|
|
2077
759
|
let contents = {};
|
|
@@ -2082,40 +764,22 @@ export const de_GetDeliverySourceCommand = async (output, context) => {
|
|
|
2082
764
|
};
|
|
2083
765
|
return response;
|
|
2084
766
|
};
|
|
2085
|
-
const
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
body: await parseErrorBody(output.body, context),
|
|
2089
|
-
};
|
|
2090
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2091
|
-
switch (errorCode) {
|
|
2092
|
-
case "ResourceNotFoundException":
|
|
2093
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2094
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2095
|
-
case "ServiceQuotaExceededException":
|
|
2096
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2097
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2098
|
-
case "ServiceUnavailableException":
|
|
2099
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2100
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2101
|
-
case "ThrottlingException":
|
|
2102
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2103
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2104
|
-
case "ValidationException":
|
|
2105
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2106
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2107
|
-
default:
|
|
2108
|
-
const parsedBody = parsedOutput.body;
|
|
2109
|
-
return throwDefaultError({
|
|
2110
|
-
output,
|
|
2111
|
-
parsedBody,
|
|
2112
|
-
errorCode,
|
|
2113
|
-
});
|
|
767
|
+
export const de_DescribeLogGroupsCommand = async (output, context) => {
|
|
768
|
+
if (output.statusCode >= 300) {
|
|
769
|
+
return de_CommandError(output, context);
|
|
2114
770
|
}
|
|
771
|
+
const data = await parseBody(output.body, context);
|
|
772
|
+
let contents = {};
|
|
773
|
+
contents = _json(data);
|
|
774
|
+
const response = {
|
|
775
|
+
$metadata: deserializeMetadata(output),
|
|
776
|
+
...contents,
|
|
777
|
+
};
|
|
778
|
+
return response;
|
|
2115
779
|
};
|
|
2116
|
-
export const
|
|
780
|
+
export const de_DescribeLogStreamsCommand = async (output, context) => {
|
|
2117
781
|
if (output.statusCode >= 300) {
|
|
2118
|
-
return
|
|
782
|
+
return de_CommandError(output, context);
|
|
2119
783
|
}
|
|
2120
784
|
const data = await parseBody(output.body, context);
|
|
2121
785
|
let contents = {};
|
|
@@ -2126,37 +790,22 @@ export const de_GetLogAnomalyDetectorCommand = async (output, context) => {
|
|
|
2126
790
|
};
|
|
2127
791
|
return response;
|
|
2128
792
|
};
|
|
2129
|
-
const
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
body: await parseErrorBody(output.body, context),
|
|
2133
|
-
};
|
|
2134
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2135
|
-
switch (errorCode) {
|
|
2136
|
-
case "InvalidParameterException":
|
|
2137
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2138
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2139
|
-
case "OperationAbortedException":
|
|
2140
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2141
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2142
|
-
case "ResourceNotFoundException":
|
|
2143
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2144
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2145
|
-
case "ServiceUnavailableException":
|
|
2146
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2147
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2148
|
-
default:
|
|
2149
|
-
const parsedBody = parsedOutput.body;
|
|
2150
|
-
return throwDefaultError({
|
|
2151
|
-
output,
|
|
2152
|
-
parsedBody,
|
|
2153
|
-
errorCode,
|
|
2154
|
-
});
|
|
793
|
+
export const de_DescribeMetricFiltersCommand = async (output, context) => {
|
|
794
|
+
if (output.statusCode >= 300) {
|
|
795
|
+
return de_CommandError(output, context);
|
|
2155
796
|
}
|
|
797
|
+
const data = await parseBody(output.body, context);
|
|
798
|
+
let contents = {};
|
|
799
|
+
contents = de_DescribeMetricFiltersResponse(data, context);
|
|
800
|
+
const response = {
|
|
801
|
+
$metadata: deserializeMetadata(output),
|
|
802
|
+
...contents,
|
|
803
|
+
};
|
|
804
|
+
return response;
|
|
2156
805
|
};
|
|
2157
|
-
export const
|
|
806
|
+
export const de_DescribeQueriesCommand = async (output, context) => {
|
|
2158
807
|
if (output.statusCode >= 300) {
|
|
2159
|
-
return
|
|
808
|
+
return de_CommandError(output, context);
|
|
2160
809
|
}
|
|
2161
810
|
const data = await parseBody(output.body, context);
|
|
2162
811
|
let contents = {};
|
|
@@ -2167,34 +816,9 @@ export const de_GetLogEventsCommand = async (output, context) => {
|
|
|
2167
816
|
};
|
|
2168
817
|
return response;
|
|
2169
818
|
};
|
|
2170
|
-
const
|
|
2171
|
-
const parsedOutput = {
|
|
2172
|
-
...output,
|
|
2173
|
-
body: await parseErrorBody(output.body, context),
|
|
2174
|
-
};
|
|
2175
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2176
|
-
switch (errorCode) {
|
|
2177
|
-
case "InvalidParameterException":
|
|
2178
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2179
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2180
|
-
case "ResourceNotFoundException":
|
|
2181
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2182
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2183
|
-
case "ServiceUnavailableException":
|
|
2184
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2185
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2186
|
-
default:
|
|
2187
|
-
const parsedBody = parsedOutput.body;
|
|
2188
|
-
return throwDefaultError({
|
|
2189
|
-
output,
|
|
2190
|
-
parsedBody,
|
|
2191
|
-
errorCode,
|
|
2192
|
-
});
|
|
2193
|
-
}
|
|
2194
|
-
};
|
|
2195
|
-
export const de_GetLogGroupFieldsCommand = async (output, context) => {
|
|
819
|
+
export const de_DescribeQueryDefinitionsCommand = async (output, context) => {
|
|
2196
820
|
if (output.statusCode >= 300) {
|
|
2197
|
-
return
|
|
821
|
+
return de_CommandError(output, context);
|
|
2198
822
|
}
|
|
2199
823
|
const data = await parseBody(output.body, context);
|
|
2200
824
|
let contents = {};
|
|
@@ -2205,37 +829,9 @@ export const de_GetLogGroupFieldsCommand = async (output, context) => {
|
|
|
2205
829
|
};
|
|
2206
830
|
return response;
|
|
2207
831
|
};
|
|
2208
|
-
const
|
|
2209
|
-
const parsedOutput = {
|
|
2210
|
-
...output,
|
|
2211
|
-
body: await parseErrorBody(output.body, context),
|
|
2212
|
-
};
|
|
2213
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2214
|
-
switch (errorCode) {
|
|
2215
|
-
case "InvalidParameterException":
|
|
2216
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2217
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2218
|
-
case "LimitExceededException":
|
|
2219
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2220
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2221
|
-
case "ResourceNotFoundException":
|
|
2222
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2223
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2224
|
-
case "ServiceUnavailableException":
|
|
2225
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2226
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2227
|
-
default:
|
|
2228
|
-
const parsedBody = parsedOutput.body;
|
|
2229
|
-
return throwDefaultError({
|
|
2230
|
-
output,
|
|
2231
|
-
parsedBody,
|
|
2232
|
-
errorCode,
|
|
2233
|
-
});
|
|
2234
|
-
}
|
|
2235
|
-
};
|
|
2236
|
-
export const de_GetLogRecordCommand = async (output, context) => {
|
|
832
|
+
export const de_DescribeResourcePoliciesCommand = async (output, context) => {
|
|
2237
833
|
if (output.statusCode >= 300) {
|
|
2238
|
-
return
|
|
834
|
+
return de_CommandError(output, context);
|
|
2239
835
|
}
|
|
2240
836
|
const data = await parseBody(output.body, context);
|
|
2241
837
|
let contents = {};
|
|
@@ -2246,75 +842,32 @@ export const de_GetLogRecordCommand = async (output, context) => {
|
|
|
2246
842
|
};
|
|
2247
843
|
return response;
|
|
2248
844
|
};
|
|
2249
|
-
const
|
|
2250
|
-
const parsedOutput = {
|
|
2251
|
-
...output,
|
|
2252
|
-
body: await parseErrorBody(output.body, context),
|
|
2253
|
-
};
|
|
2254
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2255
|
-
switch (errorCode) {
|
|
2256
|
-
case "InvalidParameterException":
|
|
2257
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2258
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2259
|
-
case "LimitExceededException":
|
|
2260
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2261
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2262
|
-
case "ResourceNotFoundException":
|
|
2263
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2264
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2265
|
-
case "ServiceUnavailableException":
|
|
2266
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2267
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2268
|
-
default:
|
|
2269
|
-
const parsedBody = parsedOutput.body;
|
|
2270
|
-
return throwDefaultError({
|
|
2271
|
-
output,
|
|
2272
|
-
parsedBody,
|
|
2273
|
-
errorCode,
|
|
2274
|
-
});
|
|
2275
|
-
}
|
|
2276
|
-
};
|
|
2277
|
-
export const de_GetQueryResultsCommand = async (output, context) => {
|
|
845
|
+
export const de_DescribeSubscriptionFiltersCommand = async (output, context) => {
|
|
2278
846
|
if (output.statusCode >= 300) {
|
|
2279
|
-
return
|
|
847
|
+
return de_CommandError(output, context);
|
|
2280
848
|
}
|
|
2281
849
|
const data = await parseBody(output.body, context);
|
|
2282
850
|
let contents = {};
|
|
2283
|
-
contents =
|
|
851
|
+
contents = _json(data);
|
|
2284
852
|
const response = {
|
|
2285
853
|
$metadata: deserializeMetadata(output),
|
|
2286
854
|
...contents,
|
|
2287
855
|
};
|
|
2288
856
|
return response;
|
|
2289
857
|
};
|
|
2290
|
-
const
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
body: await parseErrorBody(output.body, context),
|
|
2294
|
-
};
|
|
2295
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2296
|
-
switch (errorCode) {
|
|
2297
|
-
case "InvalidParameterException":
|
|
2298
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2299
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2300
|
-
case "ResourceNotFoundException":
|
|
2301
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2302
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2303
|
-
case "ServiceUnavailableException":
|
|
2304
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2305
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2306
|
-
default:
|
|
2307
|
-
const parsedBody = parsedOutput.body;
|
|
2308
|
-
return throwDefaultError({
|
|
2309
|
-
output,
|
|
2310
|
-
parsedBody,
|
|
2311
|
-
errorCode,
|
|
2312
|
-
});
|
|
858
|
+
export const de_DisassociateKmsKeyCommand = async (output, context) => {
|
|
859
|
+
if (output.statusCode >= 300) {
|
|
860
|
+
return de_CommandError(output, context);
|
|
2313
861
|
}
|
|
862
|
+
await collectBody(output.body, context);
|
|
863
|
+
const response = {
|
|
864
|
+
$metadata: deserializeMetadata(output),
|
|
865
|
+
};
|
|
866
|
+
return response;
|
|
2314
867
|
};
|
|
2315
|
-
export const
|
|
868
|
+
export const de_FilterLogEventsCommand = async (output, context) => {
|
|
2316
869
|
if (output.statusCode >= 300) {
|
|
2317
|
-
return
|
|
870
|
+
return de_CommandError(output, context);
|
|
2318
871
|
}
|
|
2319
872
|
const data = await parseBody(output.body, context);
|
|
2320
873
|
let contents = {};
|
|
@@ -2325,37 +878,9 @@ export const de_ListAnomaliesCommand = async (output, context) => {
|
|
|
2325
878
|
};
|
|
2326
879
|
return response;
|
|
2327
880
|
};
|
|
2328
|
-
const
|
|
2329
|
-
const parsedOutput = {
|
|
2330
|
-
...output,
|
|
2331
|
-
body: await parseErrorBody(output.body, context),
|
|
2332
|
-
};
|
|
2333
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2334
|
-
switch (errorCode) {
|
|
2335
|
-
case "InvalidParameterException":
|
|
2336
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2337
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2338
|
-
case "OperationAbortedException":
|
|
2339
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2340
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2341
|
-
case "ResourceNotFoundException":
|
|
2342
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2343
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2344
|
-
case "ServiceUnavailableException":
|
|
2345
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2346
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2347
|
-
default:
|
|
2348
|
-
const parsedBody = parsedOutput.body;
|
|
2349
|
-
return throwDefaultError({
|
|
2350
|
-
output,
|
|
2351
|
-
parsedBody,
|
|
2352
|
-
errorCode,
|
|
2353
|
-
});
|
|
2354
|
-
}
|
|
2355
|
-
};
|
|
2356
|
-
export const de_ListLogAnomalyDetectorsCommand = async (output, context) => {
|
|
881
|
+
export const de_GetDataProtectionPolicyCommand = async (output, context) => {
|
|
2357
882
|
if (output.statusCode >= 300) {
|
|
2358
|
-
return
|
|
883
|
+
return de_CommandError(output, context);
|
|
2359
884
|
}
|
|
2360
885
|
const data = await parseBody(output.body, context);
|
|
2361
886
|
let contents = {};
|
|
@@ -2366,37 +891,22 @@ export const de_ListLogAnomalyDetectorsCommand = async (output, context) => {
|
|
|
2366
891
|
};
|
|
2367
892
|
return response;
|
|
2368
893
|
};
|
|
2369
|
-
const
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
body: await parseErrorBody(output.body, context),
|
|
2373
|
-
};
|
|
2374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2375
|
-
switch (errorCode) {
|
|
2376
|
-
case "InvalidParameterException":
|
|
2377
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2378
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2379
|
-
case "OperationAbortedException":
|
|
2380
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2381
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2382
|
-
case "ResourceNotFoundException":
|
|
2383
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2384
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2385
|
-
case "ServiceUnavailableException":
|
|
2386
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2387
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2388
|
-
default:
|
|
2389
|
-
const parsedBody = parsedOutput.body;
|
|
2390
|
-
return throwDefaultError({
|
|
2391
|
-
output,
|
|
2392
|
-
parsedBody,
|
|
2393
|
-
errorCode,
|
|
2394
|
-
});
|
|
894
|
+
export const de_GetDeliveryCommand = async (output, context) => {
|
|
895
|
+
if (output.statusCode >= 300) {
|
|
896
|
+
return de_CommandError(output, context);
|
|
2395
897
|
}
|
|
898
|
+
const data = await parseBody(output.body, context);
|
|
899
|
+
let contents = {};
|
|
900
|
+
contents = _json(data);
|
|
901
|
+
const response = {
|
|
902
|
+
$metadata: deserializeMetadata(output),
|
|
903
|
+
...contents,
|
|
904
|
+
};
|
|
905
|
+
return response;
|
|
2396
906
|
};
|
|
2397
|
-
export const
|
|
907
|
+
export const de_GetDeliveryDestinationCommand = async (output, context) => {
|
|
2398
908
|
if (output.statusCode >= 300) {
|
|
2399
|
-
return
|
|
909
|
+
return de_CommandError(output, context);
|
|
2400
910
|
}
|
|
2401
911
|
const data = await parseBody(output.body, context);
|
|
2402
912
|
let contents = {};
|
|
@@ -2407,34 +917,22 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2407
917
|
};
|
|
2408
918
|
return response;
|
|
2409
919
|
};
|
|
2410
|
-
const
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
body: await parseErrorBody(output.body, context),
|
|
2414
|
-
};
|
|
2415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2416
|
-
switch (errorCode) {
|
|
2417
|
-
case "InvalidParameterException":
|
|
2418
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2419
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2420
|
-
case "ResourceNotFoundException":
|
|
2421
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2422
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2423
|
-
case "ServiceUnavailableException":
|
|
2424
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2425
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2426
|
-
default:
|
|
2427
|
-
const parsedBody = parsedOutput.body;
|
|
2428
|
-
return throwDefaultError({
|
|
2429
|
-
output,
|
|
2430
|
-
parsedBody,
|
|
2431
|
-
errorCode,
|
|
2432
|
-
});
|
|
920
|
+
export const de_GetDeliveryDestinationPolicyCommand = async (output, context) => {
|
|
921
|
+
if (output.statusCode >= 300) {
|
|
922
|
+
return de_CommandError(output, context);
|
|
2433
923
|
}
|
|
924
|
+
const data = await parseBody(output.body, context);
|
|
925
|
+
let contents = {};
|
|
926
|
+
contents = _json(data);
|
|
927
|
+
const response = {
|
|
928
|
+
$metadata: deserializeMetadata(output),
|
|
929
|
+
...contents,
|
|
930
|
+
};
|
|
931
|
+
return response;
|
|
2434
932
|
};
|
|
2435
|
-
export const
|
|
933
|
+
export const de_GetDeliverySourceCommand = async (output, context) => {
|
|
2436
934
|
if (output.statusCode >= 300) {
|
|
2437
|
-
return
|
|
935
|
+
return de_CommandError(output, context);
|
|
2438
936
|
}
|
|
2439
937
|
const data = await parseBody(output.body, context);
|
|
2440
938
|
let contents = {};
|
|
@@ -2445,31 +943,9 @@ export const de_ListTagsLogGroupCommand = async (output, context) => {
|
|
|
2445
943
|
};
|
|
2446
944
|
return response;
|
|
2447
945
|
};
|
|
2448
|
-
const
|
|
2449
|
-
const parsedOutput = {
|
|
2450
|
-
...output,
|
|
2451
|
-
body: await parseErrorBody(output.body, context),
|
|
2452
|
-
};
|
|
2453
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2454
|
-
switch (errorCode) {
|
|
2455
|
-
case "ResourceNotFoundException":
|
|
2456
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2457
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2458
|
-
case "ServiceUnavailableException":
|
|
2459
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2460
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2461
|
-
default:
|
|
2462
|
-
const parsedBody = parsedOutput.body;
|
|
2463
|
-
return throwDefaultError({
|
|
2464
|
-
output,
|
|
2465
|
-
parsedBody,
|
|
2466
|
-
errorCode,
|
|
2467
|
-
});
|
|
2468
|
-
}
|
|
2469
|
-
};
|
|
2470
|
-
export const de_PutAccountPolicyCommand = async (output, context) => {
|
|
946
|
+
export const de_GetLogAnomalyDetectorCommand = async (output, context) => {
|
|
2471
947
|
if (output.statusCode >= 300) {
|
|
2472
|
-
return
|
|
948
|
+
return de_CommandError(output, context);
|
|
2473
949
|
}
|
|
2474
950
|
const data = await parseBody(output.body, context);
|
|
2475
951
|
let contents = {};
|
|
@@ -2480,37 +956,9 @@ export const de_PutAccountPolicyCommand = async (output, context) => {
|
|
|
2480
956
|
};
|
|
2481
957
|
return response;
|
|
2482
958
|
};
|
|
2483
|
-
const
|
|
2484
|
-
const parsedOutput = {
|
|
2485
|
-
...output,
|
|
2486
|
-
body: await parseErrorBody(output.body, context),
|
|
2487
|
-
};
|
|
2488
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2489
|
-
switch (errorCode) {
|
|
2490
|
-
case "InvalidParameterException":
|
|
2491
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2492
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2493
|
-
case "LimitExceededException":
|
|
2494
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2495
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2496
|
-
case "OperationAbortedException":
|
|
2497
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2498
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2499
|
-
case "ServiceUnavailableException":
|
|
2500
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2501
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2502
|
-
default:
|
|
2503
|
-
const parsedBody = parsedOutput.body;
|
|
2504
|
-
return throwDefaultError({
|
|
2505
|
-
output,
|
|
2506
|
-
parsedBody,
|
|
2507
|
-
errorCode,
|
|
2508
|
-
});
|
|
2509
|
-
}
|
|
2510
|
-
};
|
|
2511
|
-
export const de_PutDataProtectionPolicyCommand = async (output, context) => {
|
|
959
|
+
export const de_GetLogEventsCommand = async (output, context) => {
|
|
2512
960
|
if (output.statusCode >= 300) {
|
|
2513
|
-
return
|
|
961
|
+
return de_CommandError(output, context);
|
|
2514
962
|
}
|
|
2515
963
|
const data = await parseBody(output.body, context);
|
|
2516
964
|
let contents = {};
|
|
@@ -2521,40 +969,9 @@ export const de_PutDataProtectionPolicyCommand = async (output, context) => {
|
|
|
2521
969
|
};
|
|
2522
970
|
return response;
|
|
2523
971
|
};
|
|
2524
|
-
const
|
|
2525
|
-
const parsedOutput = {
|
|
2526
|
-
...output,
|
|
2527
|
-
body: await parseErrorBody(output.body, context),
|
|
2528
|
-
};
|
|
2529
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2530
|
-
switch (errorCode) {
|
|
2531
|
-
case "InvalidParameterException":
|
|
2532
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2533
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2534
|
-
case "LimitExceededException":
|
|
2535
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2536
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2537
|
-
case "OperationAbortedException":
|
|
2538
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2539
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2540
|
-
case "ResourceNotFoundException":
|
|
2541
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2542
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2543
|
-
case "ServiceUnavailableException":
|
|
2544
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2545
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2546
|
-
default:
|
|
2547
|
-
const parsedBody = parsedOutput.body;
|
|
2548
|
-
return throwDefaultError({
|
|
2549
|
-
output,
|
|
2550
|
-
parsedBody,
|
|
2551
|
-
errorCode,
|
|
2552
|
-
});
|
|
2553
|
-
}
|
|
2554
|
-
};
|
|
2555
|
-
export const de_PutDeliveryDestinationCommand = async (output, context) => {
|
|
972
|
+
export const de_GetLogGroupFieldsCommand = async (output, context) => {
|
|
2556
973
|
if (output.statusCode >= 300) {
|
|
2557
|
-
return
|
|
974
|
+
return de_CommandError(output, context);
|
|
2558
975
|
}
|
|
2559
976
|
const data = await parseBody(output.body, context);
|
|
2560
977
|
let contents = {};
|
|
@@ -2565,43 +982,9 @@ export const de_PutDeliveryDestinationCommand = async (output, context) => {
|
|
|
2565
982
|
};
|
|
2566
983
|
return response;
|
|
2567
984
|
};
|
|
2568
|
-
const
|
|
2569
|
-
const parsedOutput = {
|
|
2570
|
-
...output,
|
|
2571
|
-
body: await parseErrorBody(output.body, context),
|
|
2572
|
-
};
|
|
2573
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2574
|
-
switch (errorCode) {
|
|
2575
|
-
case "ConflictException":
|
|
2576
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
2577
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2578
|
-
case "ResourceNotFoundException":
|
|
2579
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2580
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2581
|
-
case "ServiceQuotaExceededException":
|
|
2582
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2583
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2584
|
-
case "ServiceUnavailableException":
|
|
2585
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2586
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2587
|
-
case "ThrottlingException":
|
|
2588
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2589
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2590
|
-
case "ValidationException":
|
|
2591
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2592
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2593
|
-
default:
|
|
2594
|
-
const parsedBody = parsedOutput.body;
|
|
2595
|
-
return throwDefaultError({
|
|
2596
|
-
output,
|
|
2597
|
-
parsedBody,
|
|
2598
|
-
errorCode,
|
|
2599
|
-
});
|
|
2600
|
-
}
|
|
2601
|
-
};
|
|
2602
|
-
export const de_PutDeliveryDestinationPolicyCommand = async (output, context) => {
|
|
985
|
+
export const de_GetLogRecordCommand = async (output, context) => {
|
|
2603
986
|
if (output.statusCode >= 300) {
|
|
2604
|
-
return
|
|
987
|
+
return de_CommandError(output, context);
|
|
2605
988
|
}
|
|
2606
989
|
const data = await parseBody(output.body, context);
|
|
2607
990
|
let contents = {};
|
|
@@ -2612,37 +995,22 @@ export const de_PutDeliveryDestinationPolicyCommand = async (output, context) =>
|
|
|
2612
995
|
};
|
|
2613
996
|
return response;
|
|
2614
997
|
};
|
|
2615
|
-
const
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
body: await parseErrorBody(output.body, context),
|
|
2619
|
-
};
|
|
2620
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2621
|
-
switch (errorCode) {
|
|
2622
|
-
case "ConflictException":
|
|
2623
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
2624
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2625
|
-
case "ResourceNotFoundException":
|
|
2626
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2627
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2628
|
-
case "ServiceUnavailableException":
|
|
2629
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2630
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2631
|
-
case "ValidationException":
|
|
2632
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2633
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2634
|
-
default:
|
|
2635
|
-
const parsedBody = parsedOutput.body;
|
|
2636
|
-
return throwDefaultError({
|
|
2637
|
-
output,
|
|
2638
|
-
parsedBody,
|
|
2639
|
-
errorCode,
|
|
2640
|
-
});
|
|
998
|
+
export const de_GetQueryResultsCommand = async (output, context) => {
|
|
999
|
+
if (output.statusCode >= 300) {
|
|
1000
|
+
return de_CommandError(output, context);
|
|
2641
1001
|
}
|
|
1002
|
+
const data = await parseBody(output.body, context);
|
|
1003
|
+
let contents = {};
|
|
1004
|
+
contents = de_GetQueryResultsResponse(data, context);
|
|
1005
|
+
const response = {
|
|
1006
|
+
$metadata: deserializeMetadata(output),
|
|
1007
|
+
...contents,
|
|
1008
|
+
};
|
|
1009
|
+
return response;
|
|
2642
1010
|
};
|
|
2643
|
-
export const
|
|
1011
|
+
export const de_ListAnomaliesCommand = async (output, context) => {
|
|
2644
1012
|
if (output.statusCode >= 300) {
|
|
2645
|
-
return
|
|
1013
|
+
return de_CommandError(output, context);
|
|
2646
1014
|
}
|
|
2647
1015
|
const data = await parseBody(output.body, context);
|
|
2648
1016
|
let contents = {};
|
|
@@ -2653,43 +1021,9 @@ export const de_PutDeliverySourceCommand = async (output, context) => {
|
|
|
2653
1021
|
};
|
|
2654
1022
|
return response;
|
|
2655
1023
|
};
|
|
2656
|
-
const
|
|
2657
|
-
const parsedOutput = {
|
|
2658
|
-
...output,
|
|
2659
|
-
body: await parseErrorBody(output.body, context),
|
|
2660
|
-
};
|
|
2661
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2662
|
-
switch (errorCode) {
|
|
2663
|
-
case "ConflictException":
|
|
2664
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
2665
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2666
|
-
case "ResourceNotFoundException":
|
|
2667
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2668
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2669
|
-
case "ServiceQuotaExceededException":
|
|
2670
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2671
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2672
|
-
case "ServiceUnavailableException":
|
|
2673
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2674
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2675
|
-
case "ThrottlingException":
|
|
2676
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2677
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2678
|
-
case "ValidationException":
|
|
2679
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2680
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2681
|
-
default:
|
|
2682
|
-
const parsedBody = parsedOutput.body;
|
|
2683
|
-
return throwDefaultError({
|
|
2684
|
-
output,
|
|
2685
|
-
parsedBody,
|
|
2686
|
-
errorCode,
|
|
2687
|
-
});
|
|
2688
|
-
}
|
|
2689
|
-
};
|
|
2690
|
-
export const de_PutDestinationCommand = async (output, context) => {
|
|
1024
|
+
export const de_ListLogAnomalyDetectorsCommand = async (output, context) => {
|
|
2691
1025
|
if (output.statusCode >= 300) {
|
|
2692
|
-
return
|
|
1026
|
+
return de_CommandError(output, context);
|
|
2693
1027
|
}
|
|
2694
1028
|
const data = await parseBody(output.body, context);
|
|
2695
1029
|
let contents = {};
|
|
@@ -2700,69 +1034,35 @@ export const de_PutDestinationCommand = async (output, context) => {
|
|
|
2700
1034
|
};
|
|
2701
1035
|
return response;
|
|
2702
1036
|
};
|
|
2703
|
-
const
|
|
2704
|
-
const parsedOutput = {
|
|
2705
|
-
...output,
|
|
2706
|
-
body: await parseErrorBody(output.body, context),
|
|
2707
|
-
};
|
|
2708
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2709
|
-
switch (errorCode) {
|
|
2710
|
-
case "InvalidParameterException":
|
|
2711
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2712
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2713
|
-
case "OperationAbortedException":
|
|
2714
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2715
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2716
|
-
case "ServiceUnavailableException":
|
|
2717
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2718
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2719
|
-
default:
|
|
2720
|
-
const parsedBody = parsedOutput.body;
|
|
2721
|
-
return throwDefaultError({
|
|
2722
|
-
output,
|
|
2723
|
-
parsedBody,
|
|
2724
|
-
errorCode,
|
|
2725
|
-
});
|
|
2726
|
-
}
|
|
2727
|
-
};
|
|
2728
|
-
export const de_PutDestinationPolicyCommand = async (output, context) => {
|
|
1037
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2729
1038
|
if (output.statusCode >= 300) {
|
|
2730
|
-
return
|
|
1039
|
+
return de_CommandError(output, context);
|
|
2731
1040
|
}
|
|
2732
|
-
await
|
|
1041
|
+
const data = await parseBody(output.body, context);
|
|
1042
|
+
let contents = {};
|
|
1043
|
+
contents = _json(data);
|
|
2733
1044
|
const response = {
|
|
2734
1045
|
$metadata: deserializeMetadata(output),
|
|
1046
|
+
...contents,
|
|
2735
1047
|
};
|
|
2736
1048
|
return response;
|
|
2737
1049
|
};
|
|
2738
|
-
const
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
body: await parseErrorBody(output.body, context),
|
|
2742
|
-
};
|
|
2743
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2744
|
-
switch (errorCode) {
|
|
2745
|
-
case "InvalidParameterException":
|
|
2746
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2747
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2748
|
-
case "OperationAbortedException":
|
|
2749
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2750
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2751
|
-
case "ServiceUnavailableException":
|
|
2752
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2753
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2754
|
-
default:
|
|
2755
|
-
const parsedBody = parsedOutput.body;
|
|
2756
|
-
return throwDefaultError({
|
|
2757
|
-
output,
|
|
2758
|
-
parsedBody,
|
|
2759
|
-
errorCode,
|
|
2760
|
-
});
|
|
1050
|
+
export const de_ListTagsLogGroupCommand = async (output, context) => {
|
|
1051
|
+
if (output.statusCode >= 300) {
|
|
1052
|
+
return de_CommandError(output, context);
|
|
2761
1053
|
}
|
|
1054
|
+
const data = await parseBody(output.body, context);
|
|
1055
|
+
let contents = {};
|
|
1056
|
+
contents = _json(data);
|
|
1057
|
+
const response = {
|
|
1058
|
+
$metadata: deserializeMetadata(output),
|
|
1059
|
+
...contents,
|
|
1060
|
+
};
|
|
1061
|
+
return response;
|
|
2762
1062
|
};
|
|
2763
|
-
export const
|
|
1063
|
+
export const de_PutAccountPolicyCommand = async (output, context) => {
|
|
2764
1064
|
if (output.statusCode >= 300) {
|
|
2765
|
-
return
|
|
1065
|
+
return de_CommandError(output, context);
|
|
2766
1066
|
}
|
|
2767
1067
|
const data = await parseBody(output.body, context);
|
|
2768
1068
|
let contents = {};
|
|
@@ -2773,84 +1073,22 @@ export const de_PutLogEventsCommand = async (output, context) => {
|
|
|
2773
1073
|
};
|
|
2774
1074
|
return response;
|
|
2775
1075
|
};
|
|
2776
|
-
const
|
|
2777
|
-
const parsedOutput = {
|
|
2778
|
-
...output,
|
|
2779
|
-
body: await parseErrorBody(output.body, context),
|
|
2780
|
-
};
|
|
2781
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2782
|
-
switch (errorCode) {
|
|
2783
|
-
case "DataAlreadyAcceptedException":
|
|
2784
|
-
case "com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException":
|
|
2785
|
-
throw await de_DataAlreadyAcceptedExceptionRes(parsedOutput, context);
|
|
2786
|
-
case "InvalidParameterException":
|
|
2787
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2788
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2789
|
-
case "InvalidSequenceTokenException":
|
|
2790
|
-
case "com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException":
|
|
2791
|
-
throw await de_InvalidSequenceTokenExceptionRes(parsedOutput, context);
|
|
2792
|
-
case "ResourceNotFoundException":
|
|
2793
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2794
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2795
|
-
case "ServiceUnavailableException":
|
|
2796
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2797
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2798
|
-
case "UnrecognizedClientException":
|
|
2799
|
-
case "com.amazonaws.cloudwatchlogs#UnrecognizedClientException":
|
|
2800
|
-
throw await de_UnrecognizedClientExceptionRes(parsedOutput, context);
|
|
2801
|
-
default:
|
|
2802
|
-
const parsedBody = parsedOutput.body;
|
|
2803
|
-
return throwDefaultError({
|
|
2804
|
-
output,
|
|
2805
|
-
parsedBody,
|
|
2806
|
-
errorCode,
|
|
2807
|
-
});
|
|
2808
|
-
}
|
|
2809
|
-
};
|
|
2810
|
-
export const de_PutMetricFilterCommand = async (output, context) => {
|
|
1076
|
+
export const de_PutDataProtectionPolicyCommand = async (output, context) => {
|
|
2811
1077
|
if (output.statusCode >= 300) {
|
|
2812
|
-
return
|
|
1078
|
+
return de_CommandError(output, context);
|
|
2813
1079
|
}
|
|
2814
|
-
await
|
|
1080
|
+
const data = await parseBody(output.body, context);
|
|
1081
|
+
let contents = {};
|
|
1082
|
+
contents = _json(data);
|
|
2815
1083
|
const response = {
|
|
2816
1084
|
$metadata: deserializeMetadata(output),
|
|
1085
|
+
...contents,
|
|
2817
1086
|
};
|
|
2818
1087
|
return response;
|
|
2819
1088
|
};
|
|
2820
|
-
const
|
|
2821
|
-
const parsedOutput = {
|
|
2822
|
-
...output,
|
|
2823
|
-
body: await parseErrorBody(output.body, context),
|
|
2824
|
-
};
|
|
2825
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2826
|
-
switch (errorCode) {
|
|
2827
|
-
case "InvalidParameterException":
|
|
2828
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2829
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2830
|
-
case "LimitExceededException":
|
|
2831
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2832
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2833
|
-
case "OperationAbortedException":
|
|
2834
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2835
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2836
|
-
case "ResourceNotFoundException":
|
|
2837
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2838
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2839
|
-
case "ServiceUnavailableException":
|
|
2840
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2841
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2842
|
-
default:
|
|
2843
|
-
const parsedBody = parsedOutput.body;
|
|
2844
|
-
return throwDefaultError({
|
|
2845
|
-
output,
|
|
2846
|
-
parsedBody,
|
|
2847
|
-
errorCode,
|
|
2848
|
-
});
|
|
2849
|
-
}
|
|
2850
|
-
};
|
|
2851
|
-
export const de_PutQueryDefinitionCommand = async (output, context) => {
|
|
1089
|
+
export const de_PutDeliveryDestinationCommand = async (output, context) => {
|
|
2852
1090
|
if (output.statusCode >= 300) {
|
|
2853
|
-
return
|
|
1091
|
+
return de_CommandError(output, context);
|
|
2854
1092
|
}
|
|
2855
1093
|
const data = await parseBody(output.body, context);
|
|
2856
1094
|
let contents = {};
|
|
@@ -2861,37 +1099,22 @@ export const de_PutQueryDefinitionCommand = async (output, context) => {
|
|
|
2861
1099
|
};
|
|
2862
1100
|
return response;
|
|
2863
1101
|
};
|
|
2864
|
-
const
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
body: await parseErrorBody(output.body, context),
|
|
2868
|
-
};
|
|
2869
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2870
|
-
switch (errorCode) {
|
|
2871
|
-
case "InvalidParameterException":
|
|
2872
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2873
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2874
|
-
case "LimitExceededException":
|
|
2875
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2876
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2877
|
-
case "ResourceNotFoundException":
|
|
2878
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2879
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2880
|
-
case "ServiceUnavailableException":
|
|
2881
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2882
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2883
|
-
default:
|
|
2884
|
-
const parsedBody = parsedOutput.body;
|
|
2885
|
-
return throwDefaultError({
|
|
2886
|
-
output,
|
|
2887
|
-
parsedBody,
|
|
2888
|
-
errorCode,
|
|
2889
|
-
});
|
|
1102
|
+
export const de_PutDeliveryDestinationPolicyCommand = async (output, context) => {
|
|
1103
|
+
if (output.statusCode >= 300) {
|
|
1104
|
+
return de_CommandError(output, context);
|
|
2890
1105
|
}
|
|
1106
|
+
const data = await parseBody(output.body, context);
|
|
1107
|
+
let contents = {};
|
|
1108
|
+
contents = _json(data);
|
|
1109
|
+
const response = {
|
|
1110
|
+
$metadata: deserializeMetadata(output),
|
|
1111
|
+
...contents,
|
|
1112
|
+
};
|
|
1113
|
+
return response;
|
|
2891
1114
|
};
|
|
2892
|
-
export const
|
|
1115
|
+
export const de_PutDeliverySourceCommand = async (output, context) => {
|
|
2893
1116
|
if (output.statusCode >= 300) {
|
|
2894
|
-
return
|
|
1117
|
+
return de_CommandError(output, context);
|
|
2895
1118
|
}
|
|
2896
1119
|
const data = await parseBody(output.body, context);
|
|
2897
1120
|
let contents = {};
|
|
@@ -2902,34 +1125,22 @@ export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
|
2902
1125
|
};
|
|
2903
1126
|
return response;
|
|
2904
1127
|
};
|
|
2905
|
-
const
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
body: await parseErrorBody(output.body, context),
|
|
2909
|
-
};
|
|
2910
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2911
|
-
switch (errorCode) {
|
|
2912
|
-
case "InvalidParameterException":
|
|
2913
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2914
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2915
|
-
case "LimitExceededException":
|
|
2916
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2917
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2918
|
-
case "ServiceUnavailableException":
|
|
2919
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2920
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2921
|
-
default:
|
|
2922
|
-
const parsedBody = parsedOutput.body;
|
|
2923
|
-
return throwDefaultError({
|
|
2924
|
-
output,
|
|
2925
|
-
parsedBody,
|
|
2926
|
-
errorCode,
|
|
2927
|
-
});
|
|
1128
|
+
export const de_PutDestinationCommand = async (output, context) => {
|
|
1129
|
+
if (output.statusCode >= 300) {
|
|
1130
|
+
return de_CommandError(output, context);
|
|
2928
1131
|
}
|
|
1132
|
+
const data = await parseBody(output.body, context);
|
|
1133
|
+
let contents = {};
|
|
1134
|
+
contents = _json(data);
|
|
1135
|
+
const response = {
|
|
1136
|
+
$metadata: deserializeMetadata(output),
|
|
1137
|
+
...contents,
|
|
1138
|
+
};
|
|
1139
|
+
return response;
|
|
2929
1140
|
};
|
|
2930
|
-
export const
|
|
1141
|
+
export const de_PutDestinationPolicyCommand = async (output, context) => {
|
|
2931
1142
|
if (output.statusCode >= 300) {
|
|
2932
|
-
return
|
|
1143
|
+
return de_CommandError(output, context);
|
|
2933
1144
|
}
|
|
2934
1145
|
await collectBody(output.body, context);
|
|
2935
1146
|
const response = {
|
|
@@ -2937,37 +1148,22 @@ export const de_PutRetentionPolicyCommand = async (output, context) => {
|
|
|
2937
1148
|
};
|
|
2938
1149
|
return response;
|
|
2939
1150
|
};
|
|
2940
|
-
const
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
body: await parseErrorBody(output.body, context),
|
|
2944
|
-
};
|
|
2945
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2946
|
-
switch (errorCode) {
|
|
2947
|
-
case "InvalidParameterException":
|
|
2948
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2949
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2950
|
-
case "OperationAbortedException":
|
|
2951
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2952
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2953
|
-
case "ResourceNotFoundException":
|
|
2954
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2955
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2956
|
-
case "ServiceUnavailableException":
|
|
2957
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2958
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2959
|
-
default:
|
|
2960
|
-
const parsedBody = parsedOutput.body;
|
|
2961
|
-
return throwDefaultError({
|
|
2962
|
-
output,
|
|
2963
|
-
parsedBody,
|
|
2964
|
-
errorCode,
|
|
2965
|
-
});
|
|
1151
|
+
export const de_PutLogEventsCommand = async (output, context) => {
|
|
1152
|
+
if (output.statusCode >= 300) {
|
|
1153
|
+
return de_CommandError(output, context);
|
|
2966
1154
|
}
|
|
1155
|
+
const data = await parseBody(output.body, context);
|
|
1156
|
+
let contents = {};
|
|
1157
|
+
contents = _json(data);
|
|
1158
|
+
const response = {
|
|
1159
|
+
$metadata: deserializeMetadata(output),
|
|
1160
|
+
...contents,
|
|
1161
|
+
};
|
|
1162
|
+
return response;
|
|
2967
1163
|
};
|
|
2968
|
-
export const
|
|
1164
|
+
export const de_PutMetricFilterCommand = async (output, context) => {
|
|
2969
1165
|
if (output.statusCode >= 300) {
|
|
2970
|
-
return
|
|
1166
|
+
return de_CommandError(output, context);
|
|
2971
1167
|
}
|
|
2972
1168
|
await collectBody(output.body, context);
|
|
2973
1169
|
const response = {
|
|
@@ -2975,82 +1171,66 @@ export const de_PutSubscriptionFilterCommand = async (output, context) => {
|
|
|
2975
1171
|
};
|
|
2976
1172
|
return response;
|
|
2977
1173
|
};
|
|
2978
|
-
const
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
body: await parseErrorBody(output.body, context),
|
|
2982
|
-
};
|
|
2983
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2984
|
-
switch (errorCode) {
|
|
2985
|
-
case "InvalidParameterException":
|
|
2986
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2987
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2988
|
-
case "LimitExceededException":
|
|
2989
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2990
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2991
|
-
case "OperationAbortedException":
|
|
2992
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2993
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2994
|
-
case "ResourceNotFoundException":
|
|
2995
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2996
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2997
|
-
case "ServiceUnavailableException":
|
|
2998
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2999
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3000
|
-
default:
|
|
3001
|
-
const parsedBody = parsedOutput.body;
|
|
3002
|
-
return throwDefaultError({
|
|
3003
|
-
output,
|
|
3004
|
-
parsedBody,
|
|
3005
|
-
errorCode,
|
|
3006
|
-
});
|
|
1174
|
+
export const de_PutQueryDefinitionCommand = async (output, context) => {
|
|
1175
|
+
if (output.statusCode >= 300) {
|
|
1176
|
+
return de_CommandError(output, context);
|
|
3007
1177
|
}
|
|
1178
|
+
const data = await parseBody(output.body, context);
|
|
1179
|
+
let contents = {};
|
|
1180
|
+
contents = _json(data);
|
|
1181
|
+
const response = {
|
|
1182
|
+
$metadata: deserializeMetadata(output),
|
|
1183
|
+
...contents,
|
|
1184
|
+
};
|
|
1185
|
+
return response;
|
|
3008
1186
|
};
|
|
3009
|
-
export const
|
|
1187
|
+
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
3010
1188
|
if (output.statusCode >= 300) {
|
|
3011
|
-
return
|
|
1189
|
+
return de_CommandError(output, context);
|
|
3012
1190
|
}
|
|
3013
|
-
const
|
|
1191
|
+
const data = await parseBody(output.body, context);
|
|
1192
|
+
let contents = {};
|
|
1193
|
+
contents = _json(data);
|
|
3014
1194
|
const response = {
|
|
3015
1195
|
$metadata: deserializeMetadata(output),
|
|
3016
1196
|
...contents,
|
|
3017
1197
|
};
|
|
3018
1198
|
return response;
|
|
3019
1199
|
};
|
|
3020
|
-
const
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
const
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
const parsedBody = parsedOutput.body;
|
|
3044
|
-
return throwDefaultError({
|
|
3045
|
-
output,
|
|
3046
|
-
parsedBody,
|
|
3047
|
-
errorCode,
|
|
3048
|
-
});
|
|
1200
|
+
export const de_PutRetentionPolicyCommand = async (output, context) => {
|
|
1201
|
+
if (output.statusCode >= 300) {
|
|
1202
|
+
return de_CommandError(output, context);
|
|
1203
|
+
}
|
|
1204
|
+
await collectBody(output.body, context);
|
|
1205
|
+
const response = {
|
|
1206
|
+
$metadata: deserializeMetadata(output),
|
|
1207
|
+
};
|
|
1208
|
+
return response;
|
|
1209
|
+
};
|
|
1210
|
+
export const de_PutSubscriptionFilterCommand = async (output, context) => {
|
|
1211
|
+
if (output.statusCode >= 300) {
|
|
1212
|
+
return de_CommandError(output, context);
|
|
1213
|
+
}
|
|
1214
|
+
await collectBody(output.body, context);
|
|
1215
|
+
const response = {
|
|
1216
|
+
$metadata: deserializeMetadata(output),
|
|
1217
|
+
};
|
|
1218
|
+
return response;
|
|
1219
|
+
};
|
|
1220
|
+
export const de_StartLiveTailCommand = async (output, context) => {
|
|
1221
|
+
if (output.statusCode >= 300) {
|
|
1222
|
+
return de_CommandError(output, context);
|
|
3049
1223
|
}
|
|
1224
|
+
const contents = { responseStream: de_StartLiveTailResponseStream(output.body, context) };
|
|
1225
|
+
const response = {
|
|
1226
|
+
$metadata: deserializeMetadata(output),
|
|
1227
|
+
...contents,
|
|
1228
|
+
};
|
|
1229
|
+
return response;
|
|
3050
1230
|
};
|
|
3051
1231
|
export const de_StartQueryCommand = async (output, context) => {
|
|
3052
1232
|
if (output.statusCode >= 300) {
|
|
3053
|
-
return
|
|
1233
|
+
return de_CommandError(output, context);
|
|
3054
1234
|
}
|
|
3055
1235
|
const data = await parseBody(output.body, context);
|
|
3056
1236
|
let contents = {};
|
|
@@ -3061,40 +1241,9 @@ export const de_StartQueryCommand = async (output, context) => {
|
|
|
3061
1241
|
};
|
|
3062
1242
|
return response;
|
|
3063
1243
|
};
|
|
3064
|
-
const de_StartQueryCommandError = async (output, context) => {
|
|
3065
|
-
const parsedOutput = {
|
|
3066
|
-
...output,
|
|
3067
|
-
body: await parseErrorBody(output.body, context),
|
|
3068
|
-
};
|
|
3069
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3070
|
-
switch (errorCode) {
|
|
3071
|
-
case "InvalidParameterException":
|
|
3072
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3073
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3074
|
-
case "LimitExceededException":
|
|
3075
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
3076
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3077
|
-
case "MalformedQueryException":
|
|
3078
|
-
case "com.amazonaws.cloudwatchlogs#MalformedQueryException":
|
|
3079
|
-
throw await de_MalformedQueryExceptionRes(parsedOutput, context);
|
|
3080
|
-
case "ResourceNotFoundException":
|
|
3081
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3082
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3083
|
-
case "ServiceUnavailableException":
|
|
3084
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3085
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3086
|
-
default:
|
|
3087
|
-
const parsedBody = parsedOutput.body;
|
|
3088
|
-
return throwDefaultError({
|
|
3089
|
-
output,
|
|
3090
|
-
parsedBody,
|
|
3091
|
-
errorCode,
|
|
3092
|
-
});
|
|
3093
|
-
}
|
|
3094
|
-
};
|
|
3095
1244
|
export const de_StopQueryCommand = async (output, context) => {
|
|
3096
1245
|
if (output.statusCode >= 300) {
|
|
3097
|
-
return
|
|
1246
|
+
return de_CommandError(output, context);
|
|
3098
1247
|
}
|
|
3099
1248
|
const data = await parseBody(output.body, context);
|
|
3100
1249
|
let contents = {};
|
|
@@ -3105,34 +1254,9 @@ export const de_StopQueryCommand = async (output, context) => {
|
|
|
3105
1254
|
};
|
|
3106
1255
|
return response;
|
|
3107
1256
|
};
|
|
3108
|
-
const de_StopQueryCommandError = async (output, context) => {
|
|
3109
|
-
const parsedOutput = {
|
|
3110
|
-
...output,
|
|
3111
|
-
body: await parseErrorBody(output.body, context),
|
|
3112
|
-
};
|
|
3113
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3114
|
-
switch (errorCode) {
|
|
3115
|
-
case "InvalidParameterException":
|
|
3116
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3117
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3118
|
-
case "ResourceNotFoundException":
|
|
3119
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3120
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3121
|
-
case "ServiceUnavailableException":
|
|
3122
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3123
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3124
|
-
default:
|
|
3125
|
-
const parsedBody = parsedOutput.body;
|
|
3126
|
-
return throwDefaultError({
|
|
3127
|
-
output,
|
|
3128
|
-
parsedBody,
|
|
3129
|
-
errorCode,
|
|
3130
|
-
});
|
|
3131
|
-
}
|
|
3132
|
-
};
|
|
3133
1257
|
export const de_TagLogGroupCommand = async (output, context) => {
|
|
3134
1258
|
if (output.statusCode >= 300) {
|
|
3135
|
-
return
|
|
1259
|
+
return de_CommandError(output, context);
|
|
3136
1260
|
}
|
|
3137
1261
|
await collectBody(output.body, context);
|
|
3138
1262
|
const response = {
|
|
@@ -3140,31 +1264,9 @@ export const de_TagLogGroupCommand = async (output, context) => {
|
|
|
3140
1264
|
};
|
|
3141
1265
|
return response;
|
|
3142
1266
|
};
|
|
3143
|
-
const de_TagLogGroupCommandError = async (output, context) => {
|
|
3144
|
-
const parsedOutput = {
|
|
3145
|
-
...output,
|
|
3146
|
-
body: await parseErrorBody(output.body, context),
|
|
3147
|
-
};
|
|
3148
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3149
|
-
switch (errorCode) {
|
|
3150
|
-
case "InvalidParameterException":
|
|
3151
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3152
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3153
|
-
case "ResourceNotFoundException":
|
|
3154
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3155
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3156
|
-
default:
|
|
3157
|
-
const parsedBody = parsedOutput.body;
|
|
3158
|
-
return throwDefaultError({
|
|
3159
|
-
output,
|
|
3160
|
-
parsedBody,
|
|
3161
|
-
errorCode,
|
|
3162
|
-
});
|
|
3163
|
-
}
|
|
3164
|
-
};
|
|
3165
1267
|
export const de_TagResourceCommand = async (output, context) => {
|
|
3166
1268
|
if (output.statusCode >= 300) {
|
|
3167
|
-
return
|
|
1269
|
+
return de_CommandError(output, context);
|
|
3168
1270
|
}
|
|
3169
1271
|
await collectBody(output.body, context);
|
|
3170
1272
|
const response = {
|
|
@@ -3172,37 +1274,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
3172
1274
|
};
|
|
3173
1275
|
return response;
|
|
3174
1276
|
};
|
|
3175
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3176
|
-
const parsedOutput = {
|
|
3177
|
-
...output,
|
|
3178
|
-
body: await parseErrorBody(output.body, context),
|
|
3179
|
-
};
|
|
3180
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3181
|
-
switch (errorCode) {
|
|
3182
|
-
case "InvalidParameterException":
|
|
3183
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3184
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3185
|
-
case "ResourceNotFoundException":
|
|
3186
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3187
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3188
|
-
case "ServiceUnavailableException":
|
|
3189
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3190
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3191
|
-
case "TooManyTagsException":
|
|
3192
|
-
case "com.amazonaws.cloudwatchlogs#TooManyTagsException":
|
|
3193
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
3194
|
-
default:
|
|
3195
|
-
const parsedBody = parsedOutput.body;
|
|
3196
|
-
return throwDefaultError({
|
|
3197
|
-
output,
|
|
3198
|
-
parsedBody,
|
|
3199
|
-
errorCode,
|
|
3200
|
-
});
|
|
3201
|
-
}
|
|
3202
|
-
};
|
|
3203
1277
|
export const de_TestMetricFilterCommand = async (output, context) => {
|
|
3204
1278
|
if (output.statusCode >= 300) {
|
|
3205
|
-
return
|
|
1279
|
+
return de_CommandError(output, context);
|
|
3206
1280
|
}
|
|
3207
1281
|
const data = await parseBody(output.body, context);
|
|
3208
1282
|
let contents = {};
|
|
@@ -3213,31 +1287,9 @@ export const de_TestMetricFilterCommand = async (output, context) => {
|
|
|
3213
1287
|
};
|
|
3214
1288
|
return response;
|
|
3215
1289
|
};
|
|
3216
|
-
const de_TestMetricFilterCommandError = async (output, context) => {
|
|
3217
|
-
const parsedOutput = {
|
|
3218
|
-
...output,
|
|
3219
|
-
body: await parseErrorBody(output.body, context),
|
|
3220
|
-
};
|
|
3221
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3222
|
-
switch (errorCode) {
|
|
3223
|
-
case "InvalidParameterException":
|
|
3224
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3225
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3226
|
-
case "ServiceUnavailableException":
|
|
3227
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3228
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3229
|
-
default:
|
|
3230
|
-
const parsedBody = parsedOutput.body;
|
|
3231
|
-
return throwDefaultError({
|
|
3232
|
-
output,
|
|
3233
|
-
parsedBody,
|
|
3234
|
-
errorCode,
|
|
3235
|
-
});
|
|
3236
|
-
}
|
|
3237
|
-
};
|
|
3238
1290
|
export const de_UntagLogGroupCommand = async (output, context) => {
|
|
3239
1291
|
if (output.statusCode >= 300) {
|
|
3240
|
-
return
|
|
1292
|
+
return de_CommandError(output, context);
|
|
3241
1293
|
}
|
|
3242
1294
|
await collectBody(output.body, context);
|
|
3243
1295
|
const response = {
|
|
@@ -3245,28 +1297,9 @@ export const de_UntagLogGroupCommand = async (output, context) => {
|
|
|
3245
1297
|
};
|
|
3246
1298
|
return response;
|
|
3247
1299
|
};
|
|
3248
|
-
const de_UntagLogGroupCommandError = async (output, context) => {
|
|
3249
|
-
const parsedOutput = {
|
|
3250
|
-
...output,
|
|
3251
|
-
body: await parseErrorBody(output.body, context),
|
|
3252
|
-
};
|
|
3253
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3254
|
-
switch (errorCode) {
|
|
3255
|
-
case "ResourceNotFoundException":
|
|
3256
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3257
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3258
|
-
default:
|
|
3259
|
-
const parsedBody = parsedOutput.body;
|
|
3260
|
-
return throwDefaultError({
|
|
3261
|
-
output,
|
|
3262
|
-
parsedBody,
|
|
3263
|
-
errorCode,
|
|
3264
|
-
});
|
|
3265
|
-
}
|
|
3266
|
-
};
|
|
3267
1300
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
3268
1301
|
if (output.statusCode >= 300) {
|
|
3269
|
-
return
|
|
1302
|
+
return de_CommandError(output, context);
|
|
3270
1303
|
}
|
|
3271
1304
|
await collectBody(output.body, context);
|
|
3272
1305
|
const response = {
|
|
@@ -3274,34 +1307,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
3274
1307
|
};
|
|
3275
1308
|
return response;
|
|
3276
1309
|
};
|
|
3277
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3278
|
-
const parsedOutput = {
|
|
3279
|
-
...output,
|
|
3280
|
-
body: await parseErrorBody(output.body, context),
|
|
3281
|
-
};
|
|
3282
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3283
|
-
switch (errorCode) {
|
|
3284
|
-
case "InvalidParameterException":
|
|
3285
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3286
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3287
|
-
case "ResourceNotFoundException":
|
|
3288
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3289
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3290
|
-
case "ServiceUnavailableException":
|
|
3291
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3292
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3293
|
-
default:
|
|
3294
|
-
const parsedBody = parsedOutput.body;
|
|
3295
|
-
return throwDefaultError({
|
|
3296
|
-
output,
|
|
3297
|
-
parsedBody,
|
|
3298
|
-
errorCode,
|
|
3299
|
-
});
|
|
3300
|
-
}
|
|
3301
|
-
};
|
|
3302
1310
|
export const de_UpdateAnomalyCommand = async (output, context) => {
|
|
3303
1311
|
if (output.statusCode >= 300) {
|
|
3304
|
-
return
|
|
1312
|
+
return de_CommandError(output, context);
|
|
3305
1313
|
}
|
|
3306
1314
|
await collectBody(output.body, context);
|
|
3307
1315
|
const response = {
|
|
@@ -3309,37 +1317,9 @@ export const de_UpdateAnomalyCommand = async (output, context) => {
|
|
|
3309
1317
|
};
|
|
3310
1318
|
return response;
|
|
3311
1319
|
};
|
|
3312
|
-
const de_UpdateAnomalyCommandError = async (output, context) => {
|
|
3313
|
-
const parsedOutput = {
|
|
3314
|
-
...output,
|
|
3315
|
-
body: await parseErrorBody(output.body, context),
|
|
3316
|
-
};
|
|
3317
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3318
|
-
switch (errorCode) {
|
|
3319
|
-
case "InvalidParameterException":
|
|
3320
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3321
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3322
|
-
case "OperationAbortedException":
|
|
3323
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
3324
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
3325
|
-
case "ResourceNotFoundException":
|
|
3326
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3327
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3328
|
-
case "ServiceUnavailableException":
|
|
3329
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3330
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3331
|
-
default:
|
|
3332
|
-
const parsedBody = parsedOutput.body;
|
|
3333
|
-
return throwDefaultError({
|
|
3334
|
-
output,
|
|
3335
|
-
parsedBody,
|
|
3336
|
-
errorCode,
|
|
3337
|
-
});
|
|
3338
|
-
}
|
|
3339
|
-
};
|
|
3340
1320
|
export const de_UpdateLogAnomalyDetectorCommand = async (output, context) => {
|
|
3341
1321
|
if (output.statusCode >= 300) {
|
|
3342
|
-
return
|
|
1322
|
+
return de_CommandError(output, context);
|
|
3343
1323
|
}
|
|
3344
1324
|
await collectBody(output.body, context);
|
|
3345
1325
|
const response = {
|
|
@@ -3347,7 +1327,7 @@ export const de_UpdateLogAnomalyDetectorCommand = async (output, context) => {
|
|
|
3347
1327
|
};
|
|
3348
1328
|
return response;
|
|
3349
1329
|
};
|
|
3350
|
-
const
|
|
1330
|
+
const de_CommandError = async (output, context) => {
|
|
3351
1331
|
const parsedOutput = {
|
|
3352
1332
|
...output,
|
|
3353
1333
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3366,6 +1346,45 @@ const de_UpdateLogAnomalyDetectorCommandError = async (output, context) => {
|
|
|
3366
1346
|
case "ServiceUnavailableException":
|
|
3367
1347
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3368
1348
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1349
|
+
case "InvalidOperationException":
|
|
1350
|
+
case "com.amazonaws.cloudwatchlogs#InvalidOperationException":
|
|
1351
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1352
|
+
case "AccessDeniedException":
|
|
1353
|
+
case "com.amazonaws.cloudwatchlogs#AccessDeniedException":
|
|
1354
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1355
|
+
case "ConflictException":
|
|
1356
|
+
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
1357
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1358
|
+
case "ServiceQuotaExceededException":
|
|
1359
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1360
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1361
|
+
case "ThrottlingException":
|
|
1362
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1363
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1364
|
+
case "ValidationException":
|
|
1365
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1366
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1367
|
+
case "LimitExceededException":
|
|
1368
|
+
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
1369
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1370
|
+
case "ResourceAlreadyExistsException":
|
|
1371
|
+
case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
|
|
1372
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1373
|
+
case "DataAlreadyAcceptedException":
|
|
1374
|
+
case "com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException":
|
|
1375
|
+
throw await de_DataAlreadyAcceptedExceptionRes(parsedOutput, context);
|
|
1376
|
+
case "InvalidSequenceTokenException":
|
|
1377
|
+
case "com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException":
|
|
1378
|
+
throw await de_InvalidSequenceTokenExceptionRes(parsedOutput, context);
|
|
1379
|
+
case "UnrecognizedClientException":
|
|
1380
|
+
case "com.amazonaws.cloudwatchlogs#UnrecognizedClientException":
|
|
1381
|
+
throw await de_UnrecognizedClientExceptionRes(parsedOutput, context);
|
|
1382
|
+
case "MalformedQueryException":
|
|
1383
|
+
case "com.amazonaws.cloudwatchlogs#MalformedQueryException":
|
|
1384
|
+
throw await de_MalformedQueryExceptionRes(parsedOutput, context);
|
|
1385
|
+
case "TooManyTagsException":
|
|
1386
|
+
case "com.amazonaws.cloudwatchlogs#TooManyTagsException":
|
|
1387
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
3369
1388
|
default:
|
|
3370
1389
|
const parsedBody = parsedOutput.body;
|
|
3371
1390
|
return throwDefaultError({
|