@aws-sdk/client-cloudwatch-logs 3.118.0 → 3.127.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +371 -394
- package/dist-es/protocols/Aws_json1_1.js +286 -309
- package/package.json +26 -26
|
@@ -443,8 +443,7 @@ const deserializeAws_json1_1AssociateKmsKeyCommandError = async (output, context
|
|
|
443
443
|
body: await parseBody(output.body, context),
|
|
444
444
|
};
|
|
445
445
|
let response;
|
|
446
|
-
|
|
447
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
446
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
448
447
|
switch (errorCode) {
|
|
449
448
|
case "InvalidParameterException":
|
|
450
449
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -460,10 +459,12 @@ const deserializeAws_json1_1AssociateKmsKeyCommandError = async (output, context
|
|
|
460
459
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
461
460
|
default:
|
|
462
461
|
const parsedBody = parsedOutput.body;
|
|
462
|
+
const $metadata = deserializeMetadata(output);
|
|
463
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
463
464
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
464
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
465
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
465
466
|
$fault: "client",
|
|
466
|
-
$metadata
|
|
467
|
+
$metadata,
|
|
467
468
|
});
|
|
468
469
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
469
470
|
}
|
|
@@ -485,8 +486,7 @@ const deserializeAws_json1_1CancelExportTaskCommandError = async (output, contex
|
|
|
485
486
|
body: await parseBody(output.body, context),
|
|
486
487
|
};
|
|
487
488
|
let response;
|
|
488
|
-
|
|
489
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
489
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
490
490
|
switch (errorCode) {
|
|
491
491
|
case "InvalidOperationException":
|
|
492
492
|
case "com.amazonaws.cloudwatchlogs#InvalidOperationException":
|
|
@@ -502,10 +502,12 @@ const deserializeAws_json1_1CancelExportTaskCommandError = async (output, contex
|
|
|
502
502
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
503
503
|
default:
|
|
504
504
|
const parsedBody = parsedOutput.body;
|
|
505
|
+
const $metadata = deserializeMetadata(output);
|
|
506
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
505
507
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
506
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
508
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
507
509
|
$fault: "client",
|
|
508
|
-
$metadata
|
|
510
|
+
$metadata,
|
|
509
511
|
});
|
|
510
512
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
511
513
|
}
|
|
@@ -530,8 +532,7 @@ const deserializeAws_json1_1CreateExportTaskCommandError = async (output, contex
|
|
|
530
532
|
body: await parseBody(output.body, context),
|
|
531
533
|
};
|
|
532
534
|
let response;
|
|
533
|
-
|
|
534
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
535
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
535
536
|
switch (errorCode) {
|
|
536
537
|
case "InvalidParameterException":
|
|
537
538
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -553,10 +554,12 @@ const deserializeAws_json1_1CreateExportTaskCommandError = async (output, contex
|
|
|
553
554
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
554
555
|
default:
|
|
555
556
|
const parsedBody = parsedOutput.body;
|
|
557
|
+
const $metadata = deserializeMetadata(output);
|
|
558
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
556
559
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
557
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
560
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
558
561
|
$fault: "client",
|
|
559
|
-
$metadata
|
|
562
|
+
$metadata,
|
|
560
563
|
});
|
|
561
564
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
562
565
|
}
|
|
@@ -578,8 +581,7 @@ const deserializeAws_json1_1CreateLogGroupCommandError = async (output, context)
|
|
|
578
581
|
body: await parseBody(output.body, context),
|
|
579
582
|
};
|
|
580
583
|
let response;
|
|
581
|
-
|
|
582
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
584
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
583
585
|
switch (errorCode) {
|
|
584
586
|
case "InvalidParameterException":
|
|
585
587
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -598,10 +600,12 @@ const deserializeAws_json1_1CreateLogGroupCommandError = async (output, context)
|
|
|
598
600
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
599
601
|
default:
|
|
600
602
|
const parsedBody = parsedOutput.body;
|
|
603
|
+
const $metadata = deserializeMetadata(output);
|
|
604
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
601
605
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
602
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
606
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
603
607
|
$fault: "client",
|
|
604
|
-
$metadata
|
|
608
|
+
$metadata,
|
|
605
609
|
});
|
|
606
610
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
607
611
|
}
|
|
@@ -623,8 +627,7 @@ const deserializeAws_json1_1CreateLogStreamCommandError = async (output, context
|
|
|
623
627
|
body: await parseBody(output.body, context),
|
|
624
628
|
};
|
|
625
629
|
let response;
|
|
626
|
-
|
|
627
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
630
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
628
631
|
switch (errorCode) {
|
|
629
632
|
case "InvalidParameterException":
|
|
630
633
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -640,10 +643,12 @@ const deserializeAws_json1_1CreateLogStreamCommandError = async (output, context
|
|
|
640
643
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
641
644
|
default:
|
|
642
645
|
const parsedBody = parsedOutput.body;
|
|
646
|
+
const $metadata = deserializeMetadata(output);
|
|
647
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
643
648
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
644
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
649
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
645
650
|
$fault: "client",
|
|
646
|
-
$metadata
|
|
651
|
+
$metadata,
|
|
647
652
|
});
|
|
648
653
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
649
654
|
}
|
|
@@ -665,8 +670,7 @@ const deserializeAws_json1_1DeleteDestinationCommandError = async (output, conte
|
|
|
665
670
|
body: await parseBody(output.body, context),
|
|
666
671
|
};
|
|
667
672
|
let response;
|
|
668
|
-
|
|
669
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
673
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
670
674
|
switch (errorCode) {
|
|
671
675
|
case "InvalidParameterException":
|
|
672
676
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -682,10 +686,12 @@ const deserializeAws_json1_1DeleteDestinationCommandError = async (output, conte
|
|
|
682
686
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
683
687
|
default:
|
|
684
688
|
const parsedBody = parsedOutput.body;
|
|
689
|
+
const $metadata = deserializeMetadata(output);
|
|
690
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
685
691
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
686
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
692
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
687
693
|
$fault: "client",
|
|
688
|
-
$metadata
|
|
694
|
+
$metadata,
|
|
689
695
|
});
|
|
690
696
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
691
697
|
}
|
|
@@ -707,8 +713,7 @@ const deserializeAws_json1_1DeleteLogGroupCommandError = async (output, context)
|
|
|
707
713
|
body: await parseBody(output.body, context),
|
|
708
714
|
};
|
|
709
715
|
let response;
|
|
710
|
-
|
|
711
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
716
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
712
717
|
switch (errorCode) {
|
|
713
718
|
case "InvalidParameterException":
|
|
714
719
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -724,10 +729,12 @@ const deserializeAws_json1_1DeleteLogGroupCommandError = async (output, context)
|
|
|
724
729
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
725
730
|
default:
|
|
726
731
|
const parsedBody = parsedOutput.body;
|
|
732
|
+
const $metadata = deserializeMetadata(output);
|
|
733
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
727
734
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
728
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
735
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
729
736
|
$fault: "client",
|
|
730
|
-
$metadata
|
|
737
|
+
$metadata,
|
|
731
738
|
});
|
|
732
739
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
733
740
|
}
|
|
@@ -749,8 +756,7 @@ const deserializeAws_json1_1DeleteLogStreamCommandError = async (output, context
|
|
|
749
756
|
body: await parseBody(output.body, context),
|
|
750
757
|
};
|
|
751
758
|
let response;
|
|
752
|
-
|
|
753
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
759
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
754
760
|
switch (errorCode) {
|
|
755
761
|
case "InvalidParameterException":
|
|
756
762
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -766,10 +772,12 @@ const deserializeAws_json1_1DeleteLogStreamCommandError = async (output, context
|
|
|
766
772
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
767
773
|
default:
|
|
768
774
|
const parsedBody = parsedOutput.body;
|
|
775
|
+
const $metadata = deserializeMetadata(output);
|
|
776
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
769
777
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
770
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
778
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
771
779
|
$fault: "client",
|
|
772
|
-
$metadata
|
|
780
|
+
$metadata,
|
|
773
781
|
});
|
|
774
782
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
775
783
|
}
|
|
@@ -791,8 +799,7 @@ const deserializeAws_json1_1DeleteMetricFilterCommandError = async (output, cont
|
|
|
791
799
|
body: await parseBody(output.body, context),
|
|
792
800
|
};
|
|
793
801
|
let response;
|
|
794
|
-
|
|
795
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
796
803
|
switch (errorCode) {
|
|
797
804
|
case "InvalidParameterException":
|
|
798
805
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -808,10 +815,12 @@ const deserializeAws_json1_1DeleteMetricFilterCommandError = async (output, cont
|
|
|
808
815
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
809
816
|
default:
|
|
810
817
|
const parsedBody = parsedOutput.body;
|
|
818
|
+
const $metadata = deserializeMetadata(output);
|
|
819
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
811
820
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
812
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
821
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
813
822
|
$fault: "client",
|
|
814
|
-
$metadata
|
|
823
|
+
$metadata,
|
|
815
824
|
});
|
|
816
825
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
817
826
|
}
|
|
@@ -836,8 +845,7 @@ const deserializeAws_json1_1DeleteQueryDefinitionCommandError = async (output, c
|
|
|
836
845
|
body: await parseBody(output.body, context),
|
|
837
846
|
};
|
|
838
847
|
let response;
|
|
839
|
-
|
|
840
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
841
849
|
switch (errorCode) {
|
|
842
850
|
case "InvalidParameterException":
|
|
843
851
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -850,10 +858,12 @@ const deserializeAws_json1_1DeleteQueryDefinitionCommandError = async (output, c
|
|
|
850
858
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
851
859
|
default:
|
|
852
860
|
const parsedBody = parsedOutput.body;
|
|
861
|
+
const $metadata = deserializeMetadata(output);
|
|
862
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
853
863
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
854
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
864
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
855
865
|
$fault: "client",
|
|
856
|
-
$metadata
|
|
866
|
+
$metadata,
|
|
857
867
|
});
|
|
858
868
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
859
869
|
}
|
|
@@ -875,8 +885,7 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
875
885
|
body: await parseBody(output.body, context),
|
|
876
886
|
};
|
|
877
887
|
let response;
|
|
878
|
-
|
|
879
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
888
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
880
889
|
switch (errorCode) {
|
|
881
890
|
case "InvalidParameterException":
|
|
882
891
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -889,10 +898,12 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
889
898
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
890
899
|
default:
|
|
891
900
|
const parsedBody = parsedOutput.body;
|
|
901
|
+
const $metadata = deserializeMetadata(output);
|
|
902
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
892
903
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
893
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
904
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
894
905
|
$fault: "client",
|
|
895
|
-
$metadata
|
|
906
|
+
$metadata,
|
|
896
907
|
});
|
|
897
908
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
898
909
|
}
|
|
@@ -914,8 +925,7 @@ const deserializeAws_json1_1DeleteRetentionPolicyCommandError = async (output, c
|
|
|
914
925
|
body: await parseBody(output.body, context),
|
|
915
926
|
};
|
|
916
927
|
let response;
|
|
917
|
-
|
|
918
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
928
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
919
929
|
switch (errorCode) {
|
|
920
930
|
case "InvalidParameterException":
|
|
921
931
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -931,10 +941,12 @@ const deserializeAws_json1_1DeleteRetentionPolicyCommandError = async (output, c
|
|
|
931
941
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
932
942
|
default:
|
|
933
943
|
const parsedBody = parsedOutput.body;
|
|
944
|
+
const $metadata = deserializeMetadata(output);
|
|
945
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
934
946
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
935
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
947
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
936
948
|
$fault: "client",
|
|
937
|
-
$metadata
|
|
949
|
+
$metadata,
|
|
938
950
|
});
|
|
939
951
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
940
952
|
}
|
|
@@ -956,8 +968,7 @@ const deserializeAws_json1_1DeleteSubscriptionFilterCommandError = async (output
|
|
|
956
968
|
body: await parseBody(output.body, context),
|
|
957
969
|
};
|
|
958
970
|
let response;
|
|
959
|
-
|
|
960
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
971
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
972
|
switch (errorCode) {
|
|
962
973
|
case "InvalidParameterException":
|
|
963
974
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -973,10 +984,12 @@ const deserializeAws_json1_1DeleteSubscriptionFilterCommandError = async (output
|
|
|
973
984
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
974
985
|
default:
|
|
975
986
|
const parsedBody = parsedOutput.body;
|
|
987
|
+
const $metadata = deserializeMetadata(output);
|
|
988
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
976
989
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
977
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
990
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
978
991
|
$fault: "client",
|
|
979
|
-
$metadata
|
|
992
|
+
$metadata,
|
|
980
993
|
});
|
|
981
994
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
982
995
|
}
|
|
@@ -1001,8 +1014,7 @@ const deserializeAws_json1_1DescribeDestinationsCommandError = async (output, co
|
|
|
1001
1014
|
body: await parseBody(output.body, context),
|
|
1002
1015
|
};
|
|
1003
1016
|
let response;
|
|
1004
|
-
|
|
1005
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1017
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
1018
|
switch (errorCode) {
|
|
1007
1019
|
case "InvalidParameterException":
|
|
1008
1020
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1012,10 +1024,12 @@ const deserializeAws_json1_1DescribeDestinationsCommandError = async (output, co
|
|
|
1012
1024
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1013
1025
|
default:
|
|
1014
1026
|
const parsedBody = parsedOutput.body;
|
|
1027
|
+
const $metadata = deserializeMetadata(output);
|
|
1028
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1015
1029
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1016
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1030
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1017
1031
|
$fault: "client",
|
|
1018
|
-
$metadata
|
|
1032
|
+
$metadata,
|
|
1019
1033
|
});
|
|
1020
1034
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1021
1035
|
}
|
|
@@ -1040,8 +1054,7 @@ const deserializeAws_json1_1DescribeExportTasksCommandError = async (output, con
|
|
|
1040
1054
|
body: await parseBody(output.body, context),
|
|
1041
1055
|
};
|
|
1042
1056
|
let response;
|
|
1043
|
-
|
|
1044
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1057
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1045
1058
|
switch (errorCode) {
|
|
1046
1059
|
case "InvalidParameterException":
|
|
1047
1060
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1051,10 +1064,12 @@ const deserializeAws_json1_1DescribeExportTasksCommandError = async (output, con
|
|
|
1051
1064
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1052
1065
|
default:
|
|
1053
1066
|
const parsedBody = parsedOutput.body;
|
|
1067
|
+
const $metadata = deserializeMetadata(output);
|
|
1068
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1054
1069
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1055
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1070
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1056
1071
|
$fault: "client",
|
|
1057
|
-
$metadata
|
|
1072
|
+
$metadata,
|
|
1058
1073
|
});
|
|
1059
1074
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1060
1075
|
}
|
|
@@ -1079,8 +1094,7 @@ const deserializeAws_json1_1DescribeLogGroupsCommandError = async (output, conte
|
|
|
1079
1094
|
body: await parseBody(output.body, context),
|
|
1080
1095
|
};
|
|
1081
1096
|
let response;
|
|
1082
|
-
|
|
1083
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1097
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1084
1098
|
switch (errorCode) {
|
|
1085
1099
|
case "InvalidParameterException":
|
|
1086
1100
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1090,10 +1104,12 @@ const deserializeAws_json1_1DescribeLogGroupsCommandError = async (output, conte
|
|
|
1090
1104
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1091
1105
|
default:
|
|
1092
1106
|
const parsedBody = parsedOutput.body;
|
|
1107
|
+
const $metadata = deserializeMetadata(output);
|
|
1108
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1093
1109
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1094
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1110
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1095
1111
|
$fault: "client",
|
|
1096
|
-
$metadata
|
|
1112
|
+
$metadata,
|
|
1097
1113
|
});
|
|
1098
1114
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1099
1115
|
}
|
|
@@ -1118,8 +1134,7 @@ const deserializeAws_json1_1DescribeLogStreamsCommandError = async (output, cont
|
|
|
1118
1134
|
body: await parseBody(output.body, context),
|
|
1119
1135
|
};
|
|
1120
1136
|
let response;
|
|
1121
|
-
|
|
1122
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1137
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1123
1138
|
switch (errorCode) {
|
|
1124
1139
|
case "InvalidParameterException":
|
|
1125
1140
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1132,10 +1147,12 @@ const deserializeAws_json1_1DescribeLogStreamsCommandError = async (output, cont
|
|
|
1132
1147
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1133
1148
|
default:
|
|
1134
1149
|
const parsedBody = parsedOutput.body;
|
|
1150
|
+
const $metadata = deserializeMetadata(output);
|
|
1151
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1135
1152
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1136
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1153
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1137
1154
|
$fault: "client",
|
|
1138
|
-
$metadata
|
|
1155
|
+
$metadata,
|
|
1139
1156
|
});
|
|
1140
1157
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1141
1158
|
}
|
|
@@ -1160,8 +1177,7 @@ const deserializeAws_json1_1DescribeMetricFiltersCommandError = async (output, c
|
|
|
1160
1177
|
body: await parseBody(output.body, context),
|
|
1161
1178
|
};
|
|
1162
1179
|
let response;
|
|
1163
|
-
|
|
1164
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1180
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1165
1181
|
switch (errorCode) {
|
|
1166
1182
|
case "InvalidParameterException":
|
|
1167
1183
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1174,10 +1190,12 @@ const deserializeAws_json1_1DescribeMetricFiltersCommandError = async (output, c
|
|
|
1174
1190
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1175
1191
|
default:
|
|
1176
1192
|
const parsedBody = parsedOutput.body;
|
|
1193
|
+
const $metadata = deserializeMetadata(output);
|
|
1194
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1177
1195
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1178
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1196
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1179
1197
|
$fault: "client",
|
|
1180
|
-
$metadata
|
|
1198
|
+
$metadata,
|
|
1181
1199
|
});
|
|
1182
1200
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1183
1201
|
}
|
|
@@ -1202,8 +1220,7 @@ const deserializeAws_json1_1DescribeQueriesCommandError = async (output, context
|
|
|
1202
1220
|
body: await parseBody(output.body, context),
|
|
1203
1221
|
};
|
|
1204
1222
|
let response;
|
|
1205
|
-
|
|
1206
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1223
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1207
1224
|
switch (errorCode) {
|
|
1208
1225
|
case "InvalidParameterException":
|
|
1209
1226
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1216,10 +1233,12 @@ const deserializeAws_json1_1DescribeQueriesCommandError = async (output, context
|
|
|
1216
1233
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1217
1234
|
default:
|
|
1218
1235
|
const parsedBody = parsedOutput.body;
|
|
1236
|
+
const $metadata = deserializeMetadata(output);
|
|
1237
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1219
1238
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1220
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1239
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1221
1240
|
$fault: "client",
|
|
1222
|
-
$metadata
|
|
1241
|
+
$metadata,
|
|
1223
1242
|
});
|
|
1224
1243
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1225
1244
|
}
|
|
@@ -1244,8 +1263,7 @@ const deserializeAws_json1_1DescribeQueryDefinitionsCommandError = async (output
|
|
|
1244
1263
|
body: await parseBody(output.body, context),
|
|
1245
1264
|
};
|
|
1246
1265
|
let response;
|
|
1247
|
-
|
|
1248
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1266
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
1267
|
switch (errorCode) {
|
|
1250
1268
|
case "InvalidParameterException":
|
|
1251
1269
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1255,10 +1273,12 @@ const deserializeAws_json1_1DescribeQueryDefinitionsCommandError = async (output
|
|
|
1255
1273
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1256
1274
|
default:
|
|
1257
1275
|
const parsedBody = parsedOutput.body;
|
|
1276
|
+
const $metadata = deserializeMetadata(output);
|
|
1277
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1258
1278
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1259
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1279
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1260
1280
|
$fault: "client",
|
|
1261
|
-
$metadata
|
|
1281
|
+
$metadata,
|
|
1262
1282
|
});
|
|
1263
1283
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1264
1284
|
}
|
|
@@ -1283,8 +1303,7 @@ const deserializeAws_json1_1DescribeResourcePoliciesCommandError = async (output
|
|
|
1283
1303
|
body: await parseBody(output.body, context),
|
|
1284
1304
|
};
|
|
1285
1305
|
let response;
|
|
1286
|
-
|
|
1287
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1306
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1288
1307
|
switch (errorCode) {
|
|
1289
1308
|
case "InvalidParameterException":
|
|
1290
1309
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1294,10 +1313,12 @@ const deserializeAws_json1_1DescribeResourcePoliciesCommandError = async (output
|
|
|
1294
1313
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1295
1314
|
default:
|
|
1296
1315
|
const parsedBody = parsedOutput.body;
|
|
1316
|
+
const $metadata = deserializeMetadata(output);
|
|
1317
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1297
1318
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1298
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1319
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1299
1320
|
$fault: "client",
|
|
1300
|
-
$metadata
|
|
1321
|
+
$metadata,
|
|
1301
1322
|
});
|
|
1302
1323
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1303
1324
|
}
|
|
@@ -1322,8 +1343,7 @@ const deserializeAws_json1_1DescribeSubscriptionFiltersCommandError = async (out
|
|
|
1322
1343
|
body: await parseBody(output.body, context),
|
|
1323
1344
|
};
|
|
1324
1345
|
let response;
|
|
1325
|
-
|
|
1326
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1346
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1327
1347
|
switch (errorCode) {
|
|
1328
1348
|
case "InvalidParameterException":
|
|
1329
1349
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1336,10 +1356,12 @@ const deserializeAws_json1_1DescribeSubscriptionFiltersCommandError = async (out
|
|
|
1336
1356
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1337
1357
|
default:
|
|
1338
1358
|
const parsedBody = parsedOutput.body;
|
|
1359
|
+
const $metadata = deserializeMetadata(output);
|
|
1360
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1339
1361
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1340
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1362
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1341
1363
|
$fault: "client",
|
|
1342
|
-
$metadata
|
|
1364
|
+
$metadata,
|
|
1343
1365
|
});
|
|
1344
1366
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1345
1367
|
}
|
|
@@ -1361,8 +1383,7 @@ const deserializeAws_json1_1DisassociateKmsKeyCommandError = async (output, cont
|
|
|
1361
1383
|
body: await parseBody(output.body, context),
|
|
1362
1384
|
};
|
|
1363
1385
|
let response;
|
|
1364
|
-
|
|
1365
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1386
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1366
1387
|
switch (errorCode) {
|
|
1367
1388
|
case "InvalidParameterException":
|
|
1368
1389
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1378,10 +1399,12 @@ const deserializeAws_json1_1DisassociateKmsKeyCommandError = async (output, cont
|
|
|
1378
1399
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1379
1400
|
default:
|
|
1380
1401
|
const parsedBody = parsedOutput.body;
|
|
1402
|
+
const $metadata = deserializeMetadata(output);
|
|
1403
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1381
1404
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1382
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1405
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1383
1406
|
$fault: "client",
|
|
1384
|
-
$metadata
|
|
1407
|
+
$metadata,
|
|
1385
1408
|
});
|
|
1386
1409
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1387
1410
|
}
|
|
@@ -1406,8 +1429,7 @@ const deserializeAws_json1_1FilterLogEventsCommandError = async (output, context
|
|
|
1406
1429
|
body: await parseBody(output.body, context),
|
|
1407
1430
|
};
|
|
1408
1431
|
let response;
|
|
1409
|
-
|
|
1410
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1432
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1411
1433
|
switch (errorCode) {
|
|
1412
1434
|
case "InvalidParameterException":
|
|
1413
1435
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1420,10 +1442,12 @@ const deserializeAws_json1_1FilterLogEventsCommandError = async (output, context
|
|
|
1420
1442
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1421
1443
|
default:
|
|
1422
1444
|
const parsedBody = parsedOutput.body;
|
|
1445
|
+
const $metadata = deserializeMetadata(output);
|
|
1446
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1423
1447
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1424
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1448
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1425
1449
|
$fault: "client",
|
|
1426
|
-
$metadata
|
|
1450
|
+
$metadata,
|
|
1427
1451
|
});
|
|
1428
1452
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1429
1453
|
}
|
|
@@ -1448,8 +1472,7 @@ const deserializeAws_json1_1GetLogEventsCommandError = async (output, context) =
|
|
|
1448
1472
|
body: await parseBody(output.body, context),
|
|
1449
1473
|
};
|
|
1450
1474
|
let response;
|
|
1451
|
-
|
|
1452
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1475
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1453
1476
|
switch (errorCode) {
|
|
1454
1477
|
case "InvalidParameterException":
|
|
1455
1478
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1462,10 +1485,12 @@ const deserializeAws_json1_1GetLogEventsCommandError = async (output, context) =
|
|
|
1462
1485
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1463
1486
|
default:
|
|
1464
1487
|
const parsedBody = parsedOutput.body;
|
|
1488
|
+
const $metadata = deserializeMetadata(output);
|
|
1489
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1465
1490
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1466
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1491
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1467
1492
|
$fault: "client",
|
|
1468
|
-
$metadata
|
|
1493
|
+
$metadata,
|
|
1469
1494
|
});
|
|
1470
1495
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1471
1496
|
}
|
|
@@ -1490,8 +1515,7 @@ const deserializeAws_json1_1GetLogGroupFieldsCommandError = async (output, conte
|
|
|
1490
1515
|
body: await parseBody(output.body, context),
|
|
1491
1516
|
};
|
|
1492
1517
|
let response;
|
|
1493
|
-
|
|
1494
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1518
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1495
1519
|
switch (errorCode) {
|
|
1496
1520
|
case "InvalidParameterException":
|
|
1497
1521
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1507,10 +1531,12 @@ const deserializeAws_json1_1GetLogGroupFieldsCommandError = async (output, conte
|
|
|
1507
1531
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1508
1532
|
default:
|
|
1509
1533
|
const parsedBody = parsedOutput.body;
|
|
1534
|
+
const $metadata = deserializeMetadata(output);
|
|
1535
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1510
1536
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1511
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1537
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1512
1538
|
$fault: "client",
|
|
1513
|
-
$metadata
|
|
1539
|
+
$metadata,
|
|
1514
1540
|
});
|
|
1515
1541
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1516
1542
|
}
|
|
@@ -1535,8 +1561,7 @@ const deserializeAws_json1_1GetLogRecordCommandError = async (output, context) =
|
|
|
1535
1561
|
body: await parseBody(output.body, context),
|
|
1536
1562
|
};
|
|
1537
1563
|
let response;
|
|
1538
|
-
|
|
1539
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1564
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1540
1565
|
switch (errorCode) {
|
|
1541
1566
|
case "InvalidParameterException":
|
|
1542
1567
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1552,10 +1577,12 @@ const deserializeAws_json1_1GetLogRecordCommandError = async (output, context) =
|
|
|
1552
1577
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1553
1578
|
default:
|
|
1554
1579
|
const parsedBody = parsedOutput.body;
|
|
1580
|
+
const $metadata = deserializeMetadata(output);
|
|
1581
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1555
1582
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1556
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1583
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1557
1584
|
$fault: "client",
|
|
1558
|
-
$metadata
|
|
1585
|
+
$metadata,
|
|
1559
1586
|
});
|
|
1560
1587
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1561
1588
|
}
|
|
@@ -1580,8 +1607,7 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
1580
1607
|
body: await parseBody(output.body, context),
|
|
1581
1608
|
};
|
|
1582
1609
|
let response;
|
|
1583
|
-
|
|
1584
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1585
1611
|
switch (errorCode) {
|
|
1586
1612
|
case "InvalidParameterException":
|
|
1587
1613
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1594,10 +1620,12 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
1594
1620
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1595
1621
|
default:
|
|
1596
1622
|
const parsedBody = parsedOutput.body;
|
|
1623
|
+
const $metadata = deserializeMetadata(output);
|
|
1624
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1597
1625
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1598
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1626
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1599
1627
|
$fault: "client",
|
|
1600
|
-
$metadata
|
|
1628
|
+
$metadata,
|
|
1601
1629
|
});
|
|
1602
1630
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1603
1631
|
}
|
|
@@ -1622,8 +1650,7 @@ const deserializeAws_json1_1ListTagsLogGroupCommandError = async (output, contex
|
|
|
1622
1650
|
body: await parseBody(output.body, context),
|
|
1623
1651
|
};
|
|
1624
1652
|
let response;
|
|
1625
|
-
|
|
1626
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1653
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1627
1654
|
switch (errorCode) {
|
|
1628
1655
|
case "ResourceNotFoundException":
|
|
1629
1656
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
@@ -1633,10 +1660,12 @@ const deserializeAws_json1_1ListTagsLogGroupCommandError = async (output, contex
|
|
|
1633
1660
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1634
1661
|
default:
|
|
1635
1662
|
const parsedBody = parsedOutput.body;
|
|
1663
|
+
const $metadata = deserializeMetadata(output);
|
|
1664
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1636
1665
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1637
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1666
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1638
1667
|
$fault: "client",
|
|
1639
|
-
$metadata
|
|
1668
|
+
$metadata,
|
|
1640
1669
|
});
|
|
1641
1670
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1642
1671
|
}
|
|
@@ -1661,8 +1690,7 @@ const deserializeAws_json1_1PutDestinationCommandError = async (output, context)
|
|
|
1661
1690
|
body: await parseBody(output.body, context),
|
|
1662
1691
|
};
|
|
1663
1692
|
let response;
|
|
1664
|
-
|
|
1665
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1693
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1666
1694
|
switch (errorCode) {
|
|
1667
1695
|
case "InvalidParameterException":
|
|
1668
1696
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1675,10 +1703,12 @@ const deserializeAws_json1_1PutDestinationCommandError = async (output, context)
|
|
|
1675
1703
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1676
1704
|
default:
|
|
1677
1705
|
const parsedBody = parsedOutput.body;
|
|
1706
|
+
const $metadata = deserializeMetadata(output);
|
|
1707
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1678
1708
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1679
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1709
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1680
1710
|
$fault: "client",
|
|
1681
|
-
$metadata
|
|
1711
|
+
$metadata,
|
|
1682
1712
|
});
|
|
1683
1713
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1684
1714
|
}
|
|
@@ -1700,8 +1730,7 @@ const deserializeAws_json1_1PutDestinationPolicyCommandError = async (output, co
|
|
|
1700
1730
|
body: await parseBody(output.body, context),
|
|
1701
1731
|
};
|
|
1702
1732
|
let response;
|
|
1703
|
-
|
|
1704
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1733
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1705
1734
|
switch (errorCode) {
|
|
1706
1735
|
case "InvalidParameterException":
|
|
1707
1736
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1714,10 +1743,12 @@ const deserializeAws_json1_1PutDestinationPolicyCommandError = async (output, co
|
|
|
1714
1743
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1715
1744
|
default:
|
|
1716
1745
|
const parsedBody = parsedOutput.body;
|
|
1746
|
+
const $metadata = deserializeMetadata(output);
|
|
1747
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1717
1748
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1718
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1749
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1719
1750
|
$fault: "client",
|
|
1720
|
-
$metadata
|
|
1751
|
+
$metadata,
|
|
1721
1752
|
});
|
|
1722
1753
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1723
1754
|
}
|
|
@@ -1742,8 +1773,7 @@ const deserializeAws_json1_1PutLogEventsCommandError = async (output, context) =
|
|
|
1742
1773
|
body: await parseBody(output.body, context),
|
|
1743
1774
|
};
|
|
1744
1775
|
let response;
|
|
1745
|
-
|
|
1746
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1776
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1747
1777
|
switch (errorCode) {
|
|
1748
1778
|
case "DataAlreadyAcceptedException":
|
|
1749
1779
|
case "com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException":
|
|
@@ -1765,10 +1795,12 @@ const deserializeAws_json1_1PutLogEventsCommandError = async (output, context) =
|
|
|
1765
1795
|
throw await deserializeAws_json1_1UnrecognizedClientExceptionResponse(parsedOutput, context);
|
|
1766
1796
|
default:
|
|
1767
1797
|
const parsedBody = parsedOutput.body;
|
|
1798
|
+
const $metadata = deserializeMetadata(output);
|
|
1799
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1768
1800
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1769
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1801
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1770
1802
|
$fault: "client",
|
|
1771
|
-
$metadata
|
|
1803
|
+
$metadata,
|
|
1772
1804
|
});
|
|
1773
1805
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1774
1806
|
}
|
|
@@ -1790,8 +1822,7 @@ const deserializeAws_json1_1PutMetricFilterCommandError = async (output, context
|
|
|
1790
1822
|
body: await parseBody(output.body, context),
|
|
1791
1823
|
};
|
|
1792
1824
|
let response;
|
|
1793
|
-
|
|
1794
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1825
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1795
1826
|
switch (errorCode) {
|
|
1796
1827
|
case "InvalidParameterException":
|
|
1797
1828
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1810,10 +1841,12 @@ const deserializeAws_json1_1PutMetricFilterCommandError = async (output, context
|
|
|
1810
1841
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1811
1842
|
default:
|
|
1812
1843
|
const parsedBody = parsedOutput.body;
|
|
1844
|
+
const $metadata = deserializeMetadata(output);
|
|
1845
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1813
1846
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1814
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1847
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1815
1848
|
$fault: "client",
|
|
1816
|
-
$metadata
|
|
1849
|
+
$metadata,
|
|
1817
1850
|
});
|
|
1818
1851
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1819
1852
|
}
|
|
@@ -1838,8 +1871,7 @@ const deserializeAws_json1_1PutQueryDefinitionCommandError = async (output, cont
|
|
|
1838
1871
|
body: await parseBody(output.body, context),
|
|
1839
1872
|
};
|
|
1840
1873
|
let response;
|
|
1841
|
-
|
|
1842
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1874
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1843
1875
|
switch (errorCode) {
|
|
1844
1876
|
case "InvalidParameterException":
|
|
1845
1877
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1855,10 +1887,12 @@ const deserializeAws_json1_1PutQueryDefinitionCommandError = async (output, cont
|
|
|
1855
1887
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1856
1888
|
default:
|
|
1857
1889
|
const parsedBody = parsedOutput.body;
|
|
1890
|
+
const $metadata = deserializeMetadata(output);
|
|
1891
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1858
1892
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1859
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1893
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1860
1894
|
$fault: "client",
|
|
1861
|
-
$metadata
|
|
1895
|
+
$metadata,
|
|
1862
1896
|
});
|
|
1863
1897
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1864
1898
|
}
|
|
@@ -1883,8 +1917,7 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
1883
1917
|
body: await parseBody(output.body, context),
|
|
1884
1918
|
};
|
|
1885
1919
|
let response;
|
|
1886
|
-
|
|
1887
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1920
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1888
1921
|
switch (errorCode) {
|
|
1889
1922
|
case "InvalidParameterException":
|
|
1890
1923
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1897,10 +1930,12 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
1897
1930
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1898
1931
|
default:
|
|
1899
1932
|
const parsedBody = parsedOutput.body;
|
|
1933
|
+
const $metadata = deserializeMetadata(output);
|
|
1934
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1900
1935
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1901
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1936
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1902
1937
|
$fault: "client",
|
|
1903
|
-
$metadata
|
|
1938
|
+
$metadata,
|
|
1904
1939
|
});
|
|
1905
1940
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1906
1941
|
}
|
|
@@ -1922,8 +1957,7 @@ const deserializeAws_json1_1PutRetentionPolicyCommandError = async (output, cont
|
|
|
1922
1957
|
body: await parseBody(output.body, context),
|
|
1923
1958
|
};
|
|
1924
1959
|
let response;
|
|
1925
|
-
|
|
1926
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1960
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1927
1961
|
switch (errorCode) {
|
|
1928
1962
|
case "InvalidParameterException":
|
|
1929
1963
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1939,10 +1973,12 @@ const deserializeAws_json1_1PutRetentionPolicyCommandError = async (output, cont
|
|
|
1939
1973
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1940
1974
|
default:
|
|
1941
1975
|
const parsedBody = parsedOutput.body;
|
|
1976
|
+
const $metadata = deserializeMetadata(output);
|
|
1977
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1942
1978
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1943
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1979
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1944
1980
|
$fault: "client",
|
|
1945
|
-
$metadata
|
|
1981
|
+
$metadata,
|
|
1946
1982
|
});
|
|
1947
1983
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1948
1984
|
}
|
|
@@ -1964,8 +2000,7 @@ const deserializeAws_json1_1PutSubscriptionFilterCommandError = async (output, c
|
|
|
1964
2000
|
body: await parseBody(output.body, context),
|
|
1965
2001
|
};
|
|
1966
2002
|
let response;
|
|
1967
|
-
|
|
1968
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2003
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1969
2004
|
switch (errorCode) {
|
|
1970
2005
|
case "InvalidParameterException":
|
|
1971
2006
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -1984,10 +2019,12 @@ const deserializeAws_json1_1PutSubscriptionFilterCommandError = async (output, c
|
|
|
1984
2019
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1985
2020
|
default:
|
|
1986
2021
|
const parsedBody = parsedOutput.body;
|
|
2022
|
+
const $metadata = deserializeMetadata(output);
|
|
2023
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1987
2024
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1988
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2025
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1989
2026
|
$fault: "client",
|
|
1990
|
-
$metadata
|
|
2027
|
+
$metadata,
|
|
1991
2028
|
});
|
|
1992
2029
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1993
2030
|
}
|
|
@@ -2012,8 +2049,7 @@ const deserializeAws_json1_1StartQueryCommandError = async (output, context) =>
|
|
|
2012
2049
|
body: await parseBody(output.body, context),
|
|
2013
2050
|
};
|
|
2014
2051
|
let response;
|
|
2015
|
-
|
|
2016
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2052
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2017
2053
|
switch (errorCode) {
|
|
2018
2054
|
case "InvalidParameterException":
|
|
2019
2055
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -2032,10 +2068,12 @@ const deserializeAws_json1_1StartQueryCommandError = async (output, context) =>
|
|
|
2032
2068
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2033
2069
|
default:
|
|
2034
2070
|
const parsedBody = parsedOutput.body;
|
|
2071
|
+
const $metadata = deserializeMetadata(output);
|
|
2072
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2035
2073
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
2036
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2074
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2037
2075
|
$fault: "client",
|
|
2038
|
-
$metadata
|
|
2076
|
+
$metadata,
|
|
2039
2077
|
});
|
|
2040
2078
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2041
2079
|
}
|
|
@@ -2060,8 +2098,7 @@ const deserializeAws_json1_1StopQueryCommandError = async (output, context) => {
|
|
|
2060
2098
|
body: await parseBody(output.body, context),
|
|
2061
2099
|
};
|
|
2062
2100
|
let response;
|
|
2063
|
-
|
|
2064
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2101
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2065
2102
|
switch (errorCode) {
|
|
2066
2103
|
case "InvalidParameterException":
|
|
2067
2104
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -2074,10 +2111,12 @@ const deserializeAws_json1_1StopQueryCommandError = async (output, context) => {
|
|
|
2074
2111
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2075
2112
|
default:
|
|
2076
2113
|
const parsedBody = parsedOutput.body;
|
|
2114
|
+
const $metadata = deserializeMetadata(output);
|
|
2115
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2077
2116
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
2078
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2117
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2079
2118
|
$fault: "client",
|
|
2080
|
-
$metadata
|
|
2119
|
+
$metadata,
|
|
2081
2120
|
});
|
|
2082
2121
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2083
2122
|
}
|
|
@@ -2099,8 +2138,7 @@ const deserializeAws_json1_1TagLogGroupCommandError = async (output, context) =>
|
|
|
2099
2138
|
body: await parseBody(output.body, context),
|
|
2100
2139
|
};
|
|
2101
2140
|
let response;
|
|
2102
|
-
|
|
2103
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2141
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2104
2142
|
switch (errorCode) {
|
|
2105
2143
|
case "InvalidParameterException":
|
|
2106
2144
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -2110,10 +2148,12 @@ const deserializeAws_json1_1TagLogGroupCommandError = async (output, context) =>
|
|
|
2110
2148
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2111
2149
|
default:
|
|
2112
2150
|
const parsedBody = parsedOutput.body;
|
|
2151
|
+
const $metadata = deserializeMetadata(output);
|
|
2152
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2113
2153
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
2114
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2154
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2115
2155
|
$fault: "client",
|
|
2116
|
-
$metadata
|
|
2156
|
+
$metadata,
|
|
2117
2157
|
});
|
|
2118
2158
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2119
2159
|
}
|
|
@@ -2138,8 +2178,7 @@ const deserializeAws_json1_1TestMetricFilterCommandError = async (output, contex
|
|
|
2138
2178
|
body: await parseBody(output.body, context),
|
|
2139
2179
|
};
|
|
2140
2180
|
let response;
|
|
2141
|
-
|
|
2142
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2181
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2143
2182
|
switch (errorCode) {
|
|
2144
2183
|
case "InvalidParameterException":
|
|
2145
2184
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -2149,10 +2188,12 @@ const deserializeAws_json1_1TestMetricFilterCommandError = async (output, contex
|
|
|
2149
2188
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2150
2189
|
default:
|
|
2151
2190
|
const parsedBody = parsedOutput.body;
|
|
2191
|
+
const $metadata = deserializeMetadata(output);
|
|
2192
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2152
2193
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
2153
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2194
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2154
2195
|
$fault: "client",
|
|
2155
|
-
$metadata
|
|
2196
|
+
$metadata,
|
|
2156
2197
|
});
|
|
2157
2198
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2158
2199
|
}
|
|
@@ -2174,18 +2215,19 @@ const deserializeAws_json1_1UntagLogGroupCommandError = async (output, context)
|
|
|
2174
2215
|
body: await parseBody(output.body, context),
|
|
2175
2216
|
};
|
|
2176
2217
|
let response;
|
|
2177
|
-
|
|
2178
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2218
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2179
2219
|
switch (errorCode) {
|
|
2180
2220
|
case "ResourceNotFoundException":
|
|
2181
2221
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2182
2222
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2183
2223
|
default:
|
|
2184
2224
|
const parsedBody = parsedOutput.body;
|
|
2225
|
+
const $metadata = deserializeMetadata(output);
|
|
2226
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2185
2227
|
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
2186
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2228
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2187
2229
|
$fault: "client",
|
|
2188
|
-
$metadata
|
|
2230
|
+
$metadata,
|
|
2189
2231
|
});
|
|
2190
2232
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2191
2233
|
}
|
|
@@ -2291,162 +2333,151 @@ const deserializeAws_json1_1UnrecognizedClientExceptionResponse = async (parsedO
|
|
|
2291
2333
|
};
|
|
2292
2334
|
const serializeAws_json1_1AssociateKmsKeyRequest = (input, context) => {
|
|
2293
2335
|
return {
|
|
2294
|
-
...(input.kmsKeyId
|
|
2295
|
-
...(input.logGroupName
|
|
2336
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2337
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2296
2338
|
};
|
|
2297
2339
|
};
|
|
2298
2340
|
const serializeAws_json1_1CancelExportTaskRequest = (input, context) => {
|
|
2299
2341
|
return {
|
|
2300
|
-
...(input.taskId
|
|
2342
|
+
...(input.taskId != null && { taskId: input.taskId }),
|
|
2301
2343
|
};
|
|
2302
2344
|
};
|
|
2303
2345
|
const serializeAws_json1_1CreateExportTaskRequest = (input, context) => {
|
|
2304
2346
|
return {
|
|
2305
|
-
...(input.destination
|
|
2306
|
-
...(input.destinationPrefix
|
|
2307
|
-
|
|
2308
|
-
...(input.
|
|
2309
|
-
...(input.
|
|
2310
|
-
...(input.
|
|
2311
|
-
|
|
2312
|
-
...(input.taskName !== undefined && input.taskName !== null && { taskName: input.taskName }),
|
|
2313
|
-
...(input.to !== undefined && input.to !== null && { to: input.to }),
|
|
2347
|
+
...(input.destination != null && { destination: input.destination }),
|
|
2348
|
+
...(input.destinationPrefix != null && { destinationPrefix: input.destinationPrefix }),
|
|
2349
|
+
...(input.from != null && { from: input.from }),
|
|
2350
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2351
|
+
...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
|
|
2352
|
+
...(input.taskName != null && { taskName: input.taskName }),
|
|
2353
|
+
...(input.to != null && { to: input.to }),
|
|
2314
2354
|
};
|
|
2315
2355
|
};
|
|
2316
2356
|
const serializeAws_json1_1CreateLogGroupRequest = (input, context) => {
|
|
2317
2357
|
return {
|
|
2318
|
-
...(input.kmsKeyId
|
|
2319
|
-
...(input.logGroupName
|
|
2320
|
-
...(input.tags
|
|
2358
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2359
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2360
|
+
...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
2321
2361
|
};
|
|
2322
2362
|
};
|
|
2323
2363
|
const serializeAws_json1_1CreateLogStreamRequest = (input, context) => {
|
|
2324
2364
|
return {
|
|
2325
|
-
...(input.logGroupName
|
|
2326
|
-
...(input.logStreamName
|
|
2365
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2366
|
+
...(input.logStreamName != null && { logStreamName: input.logStreamName }),
|
|
2327
2367
|
};
|
|
2328
2368
|
};
|
|
2329
2369
|
const serializeAws_json1_1DeleteDestinationRequest = (input, context) => {
|
|
2330
2370
|
return {
|
|
2331
|
-
...(input.destinationName
|
|
2332
|
-
input.destinationName !== null && { destinationName: input.destinationName }),
|
|
2371
|
+
...(input.destinationName != null && { destinationName: input.destinationName }),
|
|
2333
2372
|
};
|
|
2334
2373
|
};
|
|
2335
2374
|
const serializeAws_json1_1DeleteLogGroupRequest = (input, context) => {
|
|
2336
2375
|
return {
|
|
2337
|
-
...(input.logGroupName
|
|
2376
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2338
2377
|
};
|
|
2339
2378
|
};
|
|
2340
2379
|
const serializeAws_json1_1DeleteLogStreamRequest = (input, context) => {
|
|
2341
2380
|
return {
|
|
2342
|
-
...(input.logGroupName
|
|
2343
|
-
...(input.logStreamName
|
|
2381
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2382
|
+
...(input.logStreamName != null && { logStreamName: input.logStreamName }),
|
|
2344
2383
|
};
|
|
2345
2384
|
};
|
|
2346
2385
|
const serializeAws_json1_1DeleteMetricFilterRequest = (input, context) => {
|
|
2347
2386
|
return {
|
|
2348
|
-
...(input.filterName
|
|
2349
|
-
...(input.logGroupName
|
|
2387
|
+
...(input.filterName != null && { filterName: input.filterName }),
|
|
2388
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2350
2389
|
};
|
|
2351
2390
|
};
|
|
2352
2391
|
const serializeAws_json1_1DeleteQueryDefinitionRequest = (input, context) => {
|
|
2353
2392
|
return {
|
|
2354
|
-
...(input.queryDefinitionId
|
|
2355
|
-
input.queryDefinitionId !== null && { queryDefinitionId: input.queryDefinitionId }),
|
|
2393
|
+
...(input.queryDefinitionId != null && { queryDefinitionId: input.queryDefinitionId }),
|
|
2356
2394
|
};
|
|
2357
2395
|
};
|
|
2358
2396
|
const serializeAws_json1_1DeleteResourcePolicyRequest = (input, context) => {
|
|
2359
2397
|
return {
|
|
2360
|
-
...(input.policyName
|
|
2398
|
+
...(input.policyName != null && { policyName: input.policyName }),
|
|
2361
2399
|
};
|
|
2362
2400
|
};
|
|
2363
2401
|
const serializeAws_json1_1DeleteRetentionPolicyRequest = (input, context) => {
|
|
2364
2402
|
return {
|
|
2365
|
-
...(input.logGroupName
|
|
2403
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2366
2404
|
};
|
|
2367
2405
|
};
|
|
2368
2406
|
const serializeAws_json1_1DeleteSubscriptionFilterRequest = (input, context) => {
|
|
2369
2407
|
return {
|
|
2370
|
-
...(input.filterName
|
|
2371
|
-
...(input.logGroupName
|
|
2408
|
+
...(input.filterName != null && { filterName: input.filterName }),
|
|
2409
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2372
2410
|
};
|
|
2373
2411
|
};
|
|
2374
2412
|
const serializeAws_json1_1DescribeDestinationsRequest = (input, context) => {
|
|
2375
2413
|
return {
|
|
2376
|
-
...(input.DestinationNamePrefix
|
|
2377
|
-
|
|
2378
|
-
...(input.
|
|
2379
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2414
|
+
...(input.DestinationNamePrefix != null && { DestinationNamePrefix: input.DestinationNamePrefix }),
|
|
2415
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2416
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2380
2417
|
};
|
|
2381
2418
|
};
|
|
2382
2419
|
const serializeAws_json1_1DescribeExportTasksRequest = (input, context) => {
|
|
2383
2420
|
return {
|
|
2384
|
-
...(input.limit
|
|
2385
|
-
...(input.nextToken
|
|
2386
|
-
...(input.statusCode
|
|
2387
|
-
...(input.taskId
|
|
2421
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2422
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2423
|
+
...(input.statusCode != null && { statusCode: input.statusCode }),
|
|
2424
|
+
...(input.taskId != null && { taskId: input.taskId }),
|
|
2388
2425
|
};
|
|
2389
2426
|
};
|
|
2390
2427
|
const serializeAws_json1_1DescribeLogGroupsRequest = (input, context) => {
|
|
2391
2428
|
return {
|
|
2392
|
-
...(input.limit
|
|
2393
|
-
...(input.logGroupNamePrefix
|
|
2394
|
-
|
|
2395
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2429
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2430
|
+
...(input.logGroupNamePrefix != null && { logGroupNamePrefix: input.logGroupNamePrefix }),
|
|
2431
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2396
2432
|
};
|
|
2397
2433
|
};
|
|
2398
2434
|
const serializeAws_json1_1DescribeLogStreamsRequest = (input, context) => {
|
|
2399
2435
|
return {
|
|
2400
|
-
...(input.descending
|
|
2401
|
-
...(input.limit
|
|
2402
|
-
...(input.logGroupName
|
|
2403
|
-
...(input.logStreamNamePrefix
|
|
2404
|
-
|
|
2405
|
-
...(input.
|
|
2406
|
-
...(input.orderBy !== undefined && input.orderBy !== null && { orderBy: input.orderBy }),
|
|
2436
|
+
...(input.descending != null && { descending: input.descending }),
|
|
2437
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2438
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2439
|
+
...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
|
|
2440
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2441
|
+
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
2407
2442
|
};
|
|
2408
2443
|
};
|
|
2409
2444
|
const serializeAws_json1_1DescribeMetricFiltersRequest = (input, context) => {
|
|
2410
2445
|
return {
|
|
2411
|
-
...(input.filterNamePrefix
|
|
2412
|
-
|
|
2413
|
-
...(input.
|
|
2414
|
-
...(input.
|
|
2415
|
-
...(input.
|
|
2416
|
-
...(input.
|
|
2417
|
-
input.metricNamespace !== null && { metricNamespace: input.metricNamespace }),
|
|
2418
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2446
|
+
...(input.filterNamePrefix != null && { filterNamePrefix: input.filterNamePrefix }),
|
|
2447
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2448
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2449
|
+
...(input.metricName != null && { metricName: input.metricName }),
|
|
2450
|
+
...(input.metricNamespace != null && { metricNamespace: input.metricNamespace }),
|
|
2451
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2419
2452
|
};
|
|
2420
2453
|
};
|
|
2421
2454
|
const serializeAws_json1_1DescribeQueriesRequest = (input, context) => {
|
|
2422
2455
|
return {
|
|
2423
|
-
...(input.logGroupName
|
|
2424
|
-
...(input.maxResults
|
|
2425
|
-
...(input.nextToken
|
|
2426
|
-
...(input.status
|
|
2456
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2457
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2458
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2459
|
+
...(input.status != null && { status: input.status }),
|
|
2427
2460
|
};
|
|
2428
2461
|
};
|
|
2429
2462
|
const serializeAws_json1_1DescribeQueryDefinitionsRequest = (input, context) => {
|
|
2430
2463
|
return {
|
|
2431
|
-
...(input.maxResults
|
|
2432
|
-
...(input.nextToken
|
|
2433
|
-
...(input.queryDefinitionNamePrefix
|
|
2434
|
-
input.queryDefinitionNamePrefix !== null && { queryDefinitionNamePrefix: input.queryDefinitionNamePrefix }),
|
|
2464
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2465
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2466
|
+
...(input.queryDefinitionNamePrefix != null && { queryDefinitionNamePrefix: input.queryDefinitionNamePrefix }),
|
|
2435
2467
|
};
|
|
2436
2468
|
};
|
|
2437
2469
|
const serializeAws_json1_1DescribeResourcePoliciesRequest = (input, context) => {
|
|
2438
2470
|
return {
|
|
2439
|
-
...(input.limit
|
|
2440
|
-
...(input.nextToken
|
|
2471
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2472
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2441
2473
|
};
|
|
2442
2474
|
};
|
|
2443
2475
|
const serializeAws_json1_1DescribeSubscriptionFiltersRequest = (input, context) => {
|
|
2444
2476
|
return {
|
|
2445
|
-
...(input.filterNamePrefix
|
|
2446
|
-
|
|
2447
|
-
...(input.
|
|
2448
|
-
...(input.
|
|
2449
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2477
|
+
...(input.filterNamePrefix != null && { filterNamePrefix: input.filterNamePrefix }),
|
|
2478
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2479
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2480
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2450
2481
|
};
|
|
2451
2482
|
};
|
|
2452
2483
|
const serializeAws_json1_1Dimensions = (input, context) => {
|
|
@@ -2462,58 +2493,55 @@ const serializeAws_json1_1Dimensions = (input, context) => {
|
|
|
2462
2493
|
};
|
|
2463
2494
|
const serializeAws_json1_1DisassociateKmsKeyRequest = (input, context) => {
|
|
2464
2495
|
return {
|
|
2465
|
-
...(input.logGroupName
|
|
2496
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2466
2497
|
};
|
|
2467
2498
|
};
|
|
2468
2499
|
const serializeAws_json1_1FilterLogEventsRequest = (input, context) => {
|
|
2469
2500
|
return {
|
|
2470
|
-
...(input.endTime
|
|
2471
|
-
...(input.filterPattern
|
|
2472
|
-
...(input.interleaved
|
|
2473
|
-
...(input.limit
|
|
2474
|
-
...(input.logGroupName
|
|
2475
|
-
...(input.logStreamNamePrefix
|
|
2476
|
-
|
|
2477
|
-
...(input.logStreamNames !== undefined &&
|
|
2478
|
-
input.logStreamNames !== null && {
|
|
2501
|
+
...(input.endTime != null && { endTime: input.endTime }),
|
|
2502
|
+
...(input.filterPattern != null && { filterPattern: input.filterPattern }),
|
|
2503
|
+
...(input.interleaved != null && { interleaved: input.interleaved }),
|
|
2504
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2505
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2506
|
+
...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
|
|
2507
|
+
...(input.logStreamNames != null && {
|
|
2479
2508
|
logStreamNames: serializeAws_json1_1InputLogStreamNames(input.logStreamNames, context),
|
|
2480
2509
|
}),
|
|
2481
|
-
...(input.nextToken
|
|
2482
|
-
...(input.startTime
|
|
2510
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2511
|
+
...(input.startTime != null && { startTime: input.startTime }),
|
|
2483
2512
|
};
|
|
2484
2513
|
};
|
|
2485
2514
|
const serializeAws_json1_1GetLogEventsRequest = (input, context) => {
|
|
2486
2515
|
return {
|
|
2487
|
-
...(input.endTime
|
|
2488
|
-
...(input.limit
|
|
2489
|
-
...(input.logGroupName
|
|
2490
|
-
...(input.logStreamName
|
|
2491
|
-
...(input.nextToken
|
|
2492
|
-
...(input.startFromHead
|
|
2493
|
-
...(input.startTime
|
|
2516
|
+
...(input.endTime != null && { endTime: input.endTime }),
|
|
2517
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2518
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2519
|
+
...(input.logStreamName != null && { logStreamName: input.logStreamName }),
|
|
2520
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2521
|
+
...(input.startFromHead != null && { startFromHead: input.startFromHead }),
|
|
2522
|
+
...(input.startTime != null && { startTime: input.startTime }),
|
|
2494
2523
|
};
|
|
2495
2524
|
};
|
|
2496
2525
|
const serializeAws_json1_1GetLogGroupFieldsRequest = (input, context) => {
|
|
2497
2526
|
return {
|
|
2498
|
-
...(input.logGroupName
|
|
2499
|
-
...(input.time
|
|
2527
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2528
|
+
...(input.time != null && { time: input.time }),
|
|
2500
2529
|
};
|
|
2501
2530
|
};
|
|
2502
2531
|
const serializeAws_json1_1GetLogRecordRequest = (input, context) => {
|
|
2503
2532
|
return {
|
|
2504
|
-
...(input.logRecordPointer
|
|
2505
|
-
input.logRecordPointer !== null && { logRecordPointer: input.logRecordPointer }),
|
|
2533
|
+
...(input.logRecordPointer != null && { logRecordPointer: input.logRecordPointer }),
|
|
2506
2534
|
};
|
|
2507
2535
|
};
|
|
2508
2536
|
const serializeAws_json1_1GetQueryResultsRequest = (input, context) => {
|
|
2509
2537
|
return {
|
|
2510
|
-
...(input.queryId
|
|
2538
|
+
...(input.queryId != null && { queryId: input.queryId }),
|
|
2511
2539
|
};
|
|
2512
2540
|
};
|
|
2513
2541
|
const serializeAws_json1_1InputLogEvent = (input, context) => {
|
|
2514
2542
|
return {
|
|
2515
|
-
...(input.message
|
|
2516
|
-
...(input.timestamp
|
|
2543
|
+
...(input.message != null && { message: input.message }),
|
|
2544
|
+
...(input.timestamp != null && { timestamp: input.timestamp }),
|
|
2517
2545
|
};
|
|
2518
2546
|
};
|
|
2519
2547
|
const serializeAws_json1_1InputLogEvents = (input, context) => {
|
|
@@ -2538,7 +2566,7 @@ const serializeAws_json1_1InputLogStreamNames = (input, context) => {
|
|
|
2538
2566
|
};
|
|
2539
2567
|
const serializeAws_json1_1ListTagsLogGroupRequest = (input, context) => {
|
|
2540
2568
|
return {
|
|
2541
|
-
...(input.logGroupName
|
|
2569
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2542
2570
|
};
|
|
2543
2571
|
};
|
|
2544
2572
|
const serializeAws_json1_1LogGroupNames = (input, context) => {
|
|
@@ -2553,15 +2581,12 @@ const serializeAws_json1_1LogGroupNames = (input, context) => {
|
|
|
2553
2581
|
};
|
|
2554
2582
|
const serializeAws_json1_1MetricTransformation = (input, context) => {
|
|
2555
2583
|
return {
|
|
2556
|
-
...(input.defaultValue
|
|
2557
|
-
|
|
2558
|
-
...(input.
|
|
2559
|
-
|
|
2560
|
-
...(input.
|
|
2561
|
-
...(input.
|
|
2562
|
-
input.metricNamespace !== null && { metricNamespace: input.metricNamespace }),
|
|
2563
|
-
...(input.metricValue !== undefined && input.metricValue !== null && { metricValue: input.metricValue }),
|
|
2564
|
-
...(input.unit !== undefined && input.unit !== null && { unit: input.unit }),
|
|
2584
|
+
...(input.defaultValue != null && { defaultValue: (0, smithy_client_1.serializeFloat)(input.defaultValue) }),
|
|
2585
|
+
...(input.dimensions != null && { dimensions: serializeAws_json1_1Dimensions(input.dimensions, context) }),
|
|
2586
|
+
...(input.metricName != null && { metricName: input.metricName }),
|
|
2587
|
+
...(input.metricNamespace != null && { metricNamespace: input.metricNamespace }),
|
|
2588
|
+
...(input.metricValue != null && { metricValue: input.metricValue }),
|
|
2589
|
+
...(input.unit != null && { unit: input.unit }),
|
|
2565
2590
|
};
|
|
2566
2591
|
};
|
|
2567
2592
|
const serializeAws_json1_1MetricTransformations = (input, context) => {
|
|
@@ -2576,93 +2601,83 @@ const serializeAws_json1_1MetricTransformations = (input, context) => {
|
|
|
2576
2601
|
};
|
|
2577
2602
|
const serializeAws_json1_1PutDestinationPolicyRequest = (input, context) => {
|
|
2578
2603
|
return {
|
|
2579
|
-
...(input.accessPolicy
|
|
2580
|
-
...(input.destinationName
|
|
2581
|
-
|
|
2582
|
-
...(input.forceUpdate !== undefined && input.forceUpdate !== null && { forceUpdate: input.forceUpdate }),
|
|
2604
|
+
...(input.accessPolicy != null && { accessPolicy: input.accessPolicy }),
|
|
2605
|
+
...(input.destinationName != null && { destinationName: input.destinationName }),
|
|
2606
|
+
...(input.forceUpdate != null && { forceUpdate: input.forceUpdate }),
|
|
2583
2607
|
};
|
|
2584
2608
|
};
|
|
2585
2609
|
const serializeAws_json1_1PutDestinationRequest = (input, context) => {
|
|
2586
2610
|
return {
|
|
2587
|
-
...(input.destinationName
|
|
2588
|
-
|
|
2589
|
-
...(input.
|
|
2590
|
-
...(input.targetArn !== undefined && input.targetArn !== null && { targetArn: input.targetArn }),
|
|
2611
|
+
...(input.destinationName != null && { destinationName: input.destinationName }),
|
|
2612
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2613
|
+
...(input.targetArn != null && { targetArn: input.targetArn }),
|
|
2591
2614
|
};
|
|
2592
2615
|
};
|
|
2593
2616
|
const serializeAws_json1_1PutLogEventsRequest = (input, context) => {
|
|
2594
2617
|
return {
|
|
2595
|
-
...(input.logEvents
|
|
2596
|
-
|
|
2597
|
-
...(input.
|
|
2598
|
-
...(input.
|
|
2599
|
-
...(input.sequenceToken !== undefined && input.sequenceToken !== null && { sequenceToken: input.sequenceToken }),
|
|
2618
|
+
...(input.logEvents != null && { logEvents: serializeAws_json1_1InputLogEvents(input.logEvents, context) }),
|
|
2619
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2620
|
+
...(input.logStreamName != null && { logStreamName: input.logStreamName }),
|
|
2621
|
+
...(input.sequenceToken != null && { sequenceToken: input.sequenceToken }),
|
|
2600
2622
|
};
|
|
2601
2623
|
};
|
|
2602
2624
|
const serializeAws_json1_1PutMetricFilterRequest = (input, context) => {
|
|
2603
2625
|
return {
|
|
2604
|
-
...(input.filterName
|
|
2605
|
-
...(input.filterPattern
|
|
2606
|
-
...(input.logGroupName
|
|
2607
|
-
...(input.metricTransformations
|
|
2608
|
-
input.metricTransformations !== null && {
|
|
2626
|
+
...(input.filterName != null && { filterName: input.filterName }),
|
|
2627
|
+
...(input.filterPattern != null && { filterPattern: input.filterPattern }),
|
|
2628
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2629
|
+
...(input.metricTransformations != null && {
|
|
2609
2630
|
metricTransformations: serializeAws_json1_1MetricTransformations(input.metricTransformations, context),
|
|
2610
2631
|
}),
|
|
2611
2632
|
};
|
|
2612
2633
|
};
|
|
2613
2634
|
const serializeAws_json1_1PutQueryDefinitionRequest = (input, context) => {
|
|
2614
2635
|
return {
|
|
2615
|
-
...(input.logGroupNames
|
|
2616
|
-
input.logGroupNames !== null && {
|
|
2636
|
+
...(input.logGroupNames != null && {
|
|
2617
2637
|
logGroupNames: serializeAws_json1_1LogGroupNames(input.logGroupNames, context),
|
|
2618
2638
|
}),
|
|
2619
|
-
...(input.name
|
|
2620
|
-
...(input.queryDefinitionId
|
|
2621
|
-
|
|
2622
|
-
...(input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString }),
|
|
2639
|
+
...(input.name != null && { name: input.name }),
|
|
2640
|
+
...(input.queryDefinitionId != null && { queryDefinitionId: input.queryDefinitionId }),
|
|
2641
|
+
...(input.queryString != null && { queryString: input.queryString }),
|
|
2623
2642
|
};
|
|
2624
2643
|
};
|
|
2625
2644
|
const serializeAws_json1_1PutResourcePolicyRequest = (input, context) => {
|
|
2626
2645
|
return {
|
|
2627
|
-
...(input.policyDocument
|
|
2628
|
-
|
|
2629
|
-
...(input.policyName !== undefined && input.policyName !== null && { policyName: input.policyName }),
|
|
2646
|
+
...(input.policyDocument != null && { policyDocument: input.policyDocument }),
|
|
2647
|
+
...(input.policyName != null && { policyName: input.policyName }),
|
|
2630
2648
|
};
|
|
2631
2649
|
};
|
|
2632
2650
|
const serializeAws_json1_1PutRetentionPolicyRequest = (input, context) => {
|
|
2633
2651
|
return {
|
|
2634
|
-
...(input.logGroupName
|
|
2635
|
-
...(input.retentionInDays
|
|
2636
|
-
input.retentionInDays !== null && { retentionInDays: input.retentionInDays }),
|
|
2652
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2653
|
+
...(input.retentionInDays != null && { retentionInDays: input.retentionInDays }),
|
|
2637
2654
|
};
|
|
2638
2655
|
};
|
|
2639
2656
|
const serializeAws_json1_1PutSubscriptionFilterRequest = (input, context) => {
|
|
2640
2657
|
return {
|
|
2641
|
-
...(input.destinationArn
|
|
2642
|
-
|
|
2643
|
-
...(input.
|
|
2644
|
-
...(input.
|
|
2645
|
-
...(input.
|
|
2646
|
-
...(input.
|
|
2647
|
-
...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
|
|
2658
|
+
...(input.destinationArn != null && { destinationArn: input.destinationArn }),
|
|
2659
|
+
...(input.distribution != null && { distribution: input.distribution }),
|
|
2660
|
+
...(input.filterName != null && { filterName: input.filterName }),
|
|
2661
|
+
...(input.filterPattern != null && { filterPattern: input.filterPattern }),
|
|
2662
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2663
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2648
2664
|
};
|
|
2649
2665
|
};
|
|
2650
2666
|
const serializeAws_json1_1StartQueryRequest = (input, context) => {
|
|
2651
2667
|
return {
|
|
2652
|
-
...(input.endTime
|
|
2653
|
-
...(input.limit
|
|
2654
|
-
...(input.logGroupName
|
|
2655
|
-
...(input.logGroupNames
|
|
2656
|
-
input.logGroupNames !== null && {
|
|
2668
|
+
...(input.endTime != null && { endTime: input.endTime }),
|
|
2669
|
+
...(input.limit != null && { limit: input.limit }),
|
|
2670
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2671
|
+
...(input.logGroupNames != null && {
|
|
2657
2672
|
logGroupNames: serializeAws_json1_1LogGroupNames(input.logGroupNames, context),
|
|
2658
2673
|
}),
|
|
2659
|
-
...(input.queryString
|
|
2660
|
-
...(input.startTime
|
|
2674
|
+
...(input.queryString != null && { queryString: input.queryString }),
|
|
2675
|
+
...(input.startTime != null && { startTime: input.startTime }),
|
|
2661
2676
|
};
|
|
2662
2677
|
};
|
|
2663
2678
|
const serializeAws_json1_1StopQueryRequest = (input, context) => {
|
|
2664
2679
|
return {
|
|
2665
|
-
...(input.queryId
|
|
2680
|
+
...(input.queryId != null && { queryId: input.queryId }),
|
|
2666
2681
|
};
|
|
2667
2682
|
};
|
|
2668
2683
|
const serializeAws_json1_1TagList = (input, context) => {
|
|
@@ -2677,8 +2692,8 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
2677
2692
|
};
|
|
2678
2693
|
const serializeAws_json1_1TagLogGroupRequest = (input, context) => {
|
|
2679
2694
|
return {
|
|
2680
|
-
...(input.logGroupName
|
|
2681
|
-
...(input.tags
|
|
2695
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2696
|
+
...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
2682
2697
|
};
|
|
2683
2698
|
};
|
|
2684
2699
|
const serializeAws_json1_1Tags = (input, context) => {
|
|
@@ -2704,17 +2719,16 @@ const serializeAws_json1_1TestEventMessages = (input, context) => {
|
|
|
2704
2719
|
};
|
|
2705
2720
|
const serializeAws_json1_1TestMetricFilterRequest = (input, context) => {
|
|
2706
2721
|
return {
|
|
2707
|
-
...(input.filterPattern
|
|
2708
|
-
...(input.logEventMessages
|
|
2709
|
-
input.logEventMessages !== null && {
|
|
2722
|
+
...(input.filterPattern != null && { filterPattern: input.filterPattern }),
|
|
2723
|
+
...(input.logEventMessages != null && {
|
|
2710
2724
|
logEventMessages: serializeAws_json1_1TestEventMessages(input.logEventMessages, context),
|
|
2711
2725
|
}),
|
|
2712
2726
|
};
|
|
2713
2727
|
};
|
|
2714
2728
|
const serializeAws_json1_1UntagLogGroupRequest = (input, context) => {
|
|
2715
2729
|
return {
|
|
2716
|
-
...(input.logGroupName
|
|
2717
|
-
...(input.tags
|
|
2730
|
+
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2731
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2718
2732
|
};
|
|
2719
2733
|
};
|
|
2720
2734
|
const deserializeAws_json1_1CreateExportTaskResponse = (output, context) => {
|
|
@@ -2735,56 +2749,44 @@ const deserializeAws_json1_1DeleteQueryDefinitionResponse = (output, context) =>
|
|
|
2735
2749
|
};
|
|
2736
2750
|
const deserializeAws_json1_1DescribeDestinationsResponse = (output, context) => {
|
|
2737
2751
|
return {
|
|
2738
|
-
destinations: output.destinations
|
|
2739
|
-
? deserializeAws_json1_1Destinations(output.destinations, context)
|
|
2740
|
-
: undefined,
|
|
2752
|
+
destinations: output.destinations != null ? deserializeAws_json1_1Destinations(output.destinations, context) : undefined,
|
|
2741
2753
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2742
2754
|
};
|
|
2743
2755
|
};
|
|
2744
2756
|
const deserializeAws_json1_1DescribeExportTasksResponse = (output, context) => {
|
|
2745
2757
|
return {
|
|
2746
|
-
exportTasks: output.exportTasks
|
|
2747
|
-
? deserializeAws_json1_1ExportTasks(output.exportTasks, context)
|
|
2748
|
-
: undefined,
|
|
2758
|
+
exportTasks: output.exportTasks != null ? deserializeAws_json1_1ExportTasks(output.exportTasks, context) : undefined,
|
|
2749
2759
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2750
2760
|
};
|
|
2751
2761
|
};
|
|
2752
2762
|
const deserializeAws_json1_1DescribeLogGroupsResponse = (output, context) => {
|
|
2753
2763
|
return {
|
|
2754
|
-
logGroups: output.logGroups
|
|
2755
|
-
? deserializeAws_json1_1LogGroups(output.logGroups, context)
|
|
2756
|
-
: undefined,
|
|
2764
|
+
logGroups: output.logGroups != null ? deserializeAws_json1_1LogGroups(output.logGroups, context) : undefined,
|
|
2757
2765
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2758
2766
|
};
|
|
2759
2767
|
};
|
|
2760
2768
|
const deserializeAws_json1_1DescribeLogStreamsResponse = (output, context) => {
|
|
2761
2769
|
return {
|
|
2762
|
-
logStreams: output.logStreams
|
|
2763
|
-
? deserializeAws_json1_1LogStreams(output.logStreams, context)
|
|
2764
|
-
: undefined,
|
|
2770
|
+
logStreams: output.logStreams != null ? deserializeAws_json1_1LogStreams(output.logStreams, context) : undefined,
|
|
2765
2771
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2766
2772
|
};
|
|
2767
2773
|
};
|
|
2768
2774
|
const deserializeAws_json1_1DescribeMetricFiltersResponse = (output, context) => {
|
|
2769
2775
|
return {
|
|
2770
|
-
metricFilters: output.metricFilters
|
|
2771
|
-
? deserializeAws_json1_1MetricFilters(output.metricFilters, context)
|
|
2772
|
-
: undefined,
|
|
2776
|
+
metricFilters: output.metricFilters != null ? deserializeAws_json1_1MetricFilters(output.metricFilters, context) : undefined,
|
|
2773
2777
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2774
2778
|
};
|
|
2775
2779
|
};
|
|
2776
2780
|
const deserializeAws_json1_1DescribeQueriesResponse = (output, context) => {
|
|
2777
2781
|
return {
|
|
2778
2782
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2779
|
-
queries: output.queries
|
|
2780
|
-
? deserializeAws_json1_1QueryInfoList(output.queries, context)
|
|
2781
|
-
: undefined,
|
|
2783
|
+
queries: output.queries != null ? deserializeAws_json1_1QueryInfoList(output.queries, context) : undefined,
|
|
2782
2784
|
};
|
|
2783
2785
|
};
|
|
2784
2786
|
const deserializeAws_json1_1DescribeQueryDefinitionsResponse = (output, context) => {
|
|
2785
2787
|
return {
|
|
2786
2788
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2787
|
-
queryDefinitions: output.queryDefinitions
|
|
2789
|
+
queryDefinitions: output.queryDefinitions != null
|
|
2788
2790
|
? deserializeAws_json1_1QueryDefinitionList(output.queryDefinitions, context)
|
|
2789
2791
|
: undefined,
|
|
2790
2792
|
};
|
|
@@ -2792,7 +2794,7 @@ const deserializeAws_json1_1DescribeQueryDefinitionsResponse = (output, context)
|
|
|
2792
2794
|
const deserializeAws_json1_1DescribeResourcePoliciesResponse = (output, context) => {
|
|
2793
2795
|
return {
|
|
2794
2796
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2795
|
-
resourcePolicies: output.resourcePolicies
|
|
2797
|
+
resourcePolicies: output.resourcePolicies != null
|
|
2796
2798
|
? deserializeAws_json1_1ResourcePolicies(output.resourcePolicies, context)
|
|
2797
2799
|
: undefined,
|
|
2798
2800
|
};
|
|
@@ -2800,7 +2802,7 @@ const deserializeAws_json1_1DescribeResourcePoliciesResponse = (output, context)
|
|
|
2800
2802
|
const deserializeAws_json1_1DescribeSubscriptionFiltersResponse = (output, context) => {
|
|
2801
2803
|
return {
|
|
2802
2804
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2803
|
-
subscriptionFilters: output.subscriptionFilters
|
|
2805
|
+
subscriptionFilters: output.subscriptionFilters != null
|
|
2804
2806
|
? deserializeAws_json1_1SubscriptionFilters(output.subscriptionFilters, context)
|
|
2805
2807
|
: undefined,
|
|
2806
2808
|
};
|
|
@@ -2841,14 +2843,12 @@ const deserializeAws_json1_1ExportTask = (output, context) => {
|
|
|
2841
2843
|
return {
|
|
2842
2844
|
destination: (0, smithy_client_1.expectString)(output.destination),
|
|
2843
2845
|
destinationPrefix: (0, smithy_client_1.expectString)(output.destinationPrefix),
|
|
2844
|
-
executionInfo: output.executionInfo
|
|
2846
|
+
executionInfo: output.executionInfo != null
|
|
2845
2847
|
? deserializeAws_json1_1ExportTaskExecutionInfo(output.executionInfo, context)
|
|
2846
2848
|
: undefined,
|
|
2847
2849
|
from: (0, smithy_client_1.expectLong)(output.from),
|
|
2848
2850
|
logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
|
|
2849
|
-
status: output.status
|
|
2850
|
-
? deserializeAws_json1_1ExportTaskStatus(output.status, context)
|
|
2851
|
-
: undefined,
|
|
2851
|
+
status: output.status != null ? deserializeAws_json1_1ExportTaskStatus(output.status, context) : undefined,
|
|
2852
2852
|
taskId: (0, smithy_client_1.expectString)(output.taskId),
|
|
2853
2853
|
taskName: (0, smithy_client_1.expectString)(output.taskName),
|
|
2854
2854
|
to: (0, smithy_client_1.expectLong)(output.to),
|
|
@@ -2910,46 +2910,36 @@ const deserializeAws_json1_1FilteredLogEvents = (output, context) => {
|
|
|
2910
2910
|
};
|
|
2911
2911
|
const deserializeAws_json1_1FilterLogEventsResponse = (output, context) => {
|
|
2912
2912
|
return {
|
|
2913
|
-
events: output.events
|
|
2914
|
-
? deserializeAws_json1_1FilteredLogEvents(output.events, context)
|
|
2915
|
-
: undefined,
|
|
2913
|
+
events: output.events != null ? deserializeAws_json1_1FilteredLogEvents(output.events, context) : undefined,
|
|
2916
2914
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2917
|
-
searchedLogStreams: output.searchedLogStreams
|
|
2915
|
+
searchedLogStreams: output.searchedLogStreams != null
|
|
2918
2916
|
? deserializeAws_json1_1SearchedLogStreams(output.searchedLogStreams, context)
|
|
2919
2917
|
: undefined,
|
|
2920
2918
|
};
|
|
2921
2919
|
};
|
|
2922
2920
|
const deserializeAws_json1_1GetLogEventsResponse = (output, context) => {
|
|
2923
2921
|
return {
|
|
2924
|
-
events: output.events
|
|
2925
|
-
? deserializeAws_json1_1OutputLogEvents(output.events, context)
|
|
2926
|
-
: undefined,
|
|
2922
|
+
events: output.events != null ? deserializeAws_json1_1OutputLogEvents(output.events, context) : undefined,
|
|
2927
2923
|
nextBackwardToken: (0, smithy_client_1.expectString)(output.nextBackwardToken),
|
|
2928
2924
|
nextForwardToken: (0, smithy_client_1.expectString)(output.nextForwardToken),
|
|
2929
2925
|
};
|
|
2930
2926
|
};
|
|
2931
2927
|
const deserializeAws_json1_1GetLogGroupFieldsResponse = (output, context) => {
|
|
2932
2928
|
return {
|
|
2933
|
-
logGroupFields: output.logGroupFields
|
|
2929
|
+
logGroupFields: output.logGroupFields != null
|
|
2934
2930
|
? deserializeAws_json1_1LogGroupFieldList(output.logGroupFields, context)
|
|
2935
2931
|
: undefined,
|
|
2936
2932
|
};
|
|
2937
2933
|
};
|
|
2938
2934
|
const deserializeAws_json1_1GetLogRecordResponse = (output, context) => {
|
|
2939
2935
|
return {
|
|
2940
|
-
logRecord: output.logRecord
|
|
2941
|
-
? deserializeAws_json1_1LogRecord(output.logRecord, context)
|
|
2942
|
-
: undefined,
|
|
2936
|
+
logRecord: output.logRecord != null ? deserializeAws_json1_1LogRecord(output.logRecord, context) : undefined,
|
|
2943
2937
|
};
|
|
2944
2938
|
};
|
|
2945
2939
|
const deserializeAws_json1_1GetQueryResultsResponse = (output, context) => {
|
|
2946
2940
|
return {
|
|
2947
|
-
results: output.results
|
|
2948
|
-
|
|
2949
|
-
: undefined,
|
|
2950
|
-
statistics: output.statistics !== undefined && output.statistics !== null
|
|
2951
|
-
? deserializeAws_json1_1QueryStatistics(output.statistics, context)
|
|
2952
|
-
: undefined,
|
|
2941
|
+
results: output.results != null ? deserializeAws_json1_1QueryResults(output.results, context) : undefined,
|
|
2942
|
+
statistics: output.statistics != null ? deserializeAws_json1_1QueryStatistics(output.statistics, context) : undefined,
|
|
2953
2943
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2954
2944
|
};
|
|
2955
2945
|
};
|
|
@@ -2976,7 +2966,7 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
2976
2966
|
};
|
|
2977
2967
|
const deserializeAws_json1_1ListTagsLogGroupResponse = (output, context) => {
|
|
2978
2968
|
return {
|
|
2979
|
-
tags: output.tags
|
|
2969
|
+
tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
|
|
2980
2970
|
};
|
|
2981
2971
|
};
|
|
2982
2972
|
const deserializeAws_json1_1LogGroup = (output, context) => {
|
|
@@ -3066,7 +3056,7 @@ const deserializeAws_json1_1LogStreams = (output, context) => {
|
|
|
3066
3056
|
const deserializeAws_json1_1MalformedQueryException = (output, context) => {
|
|
3067
3057
|
return {
|
|
3068
3058
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3069
|
-
queryCompileError: output.queryCompileError
|
|
3059
|
+
queryCompileError: output.queryCompileError != null
|
|
3070
3060
|
? deserializeAws_json1_1QueryCompileError(output.queryCompileError, context)
|
|
3071
3061
|
: undefined,
|
|
3072
3062
|
};
|
|
@@ -3077,7 +3067,7 @@ const deserializeAws_json1_1MetricFilter = (output, context) => {
|
|
|
3077
3067
|
filterName: (0, smithy_client_1.expectString)(output.filterName),
|
|
3078
3068
|
filterPattern: (0, smithy_client_1.expectString)(output.filterPattern),
|
|
3079
3069
|
logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
|
|
3080
|
-
metricTransformations: output.metricTransformations
|
|
3070
|
+
metricTransformations: output.metricTransformations != null
|
|
3081
3071
|
? deserializeAws_json1_1MetricTransformations(output.metricTransformations, context)
|
|
3082
3072
|
: undefined,
|
|
3083
3073
|
};
|
|
@@ -3097,7 +3087,7 @@ const deserializeAws_json1_1MetricFilterMatchRecord = (output, context) => {
|
|
|
3097
3087
|
return {
|
|
3098
3088
|
eventMessage: (0, smithy_client_1.expectString)(output.eventMessage),
|
|
3099
3089
|
eventNumber: (0, smithy_client_1.expectLong)(output.eventNumber),
|
|
3100
|
-
extractedValues: output.extractedValues
|
|
3090
|
+
extractedValues: output.extractedValues != null
|
|
3101
3091
|
? deserializeAws_json1_1ExtractedValues(output.extractedValues, context)
|
|
3102
3092
|
: undefined,
|
|
3103
3093
|
};
|
|
@@ -3116,9 +3106,7 @@ const deserializeAws_json1_1MetricFilters = (output, context) => {
|
|
|
3116
3106
|
const deserializeAws_json1_1MetricTransformation = (output, context) => {
|
|
3117
3107
|
return {
|
|
3118
3108
|
defaultValue: (0, smithy_client_1.limitedParseDouble)(output.defaultValue),
|
|
3119
|
-
dimensions: output.dimensions
|
|
3120
|
-
? deserializeAws_json1_1Dimensions(output.dimensions, context)
|
|
3121
|
-
: undefined,
|
|
3109
|
+
dimensions: output.dimensions != null ? deserializeAws_json1_1Dimensions(output.dimensions, context) : undefined,
|
|
3122
3110
|
metricName: (0, smithy_client_1.expectString)(output.metricName),
|
|
3123
3111
|
metricNamespace: (0, smithy_client_1.expectString)(output.metricNamespace),
|
|
3124
3112
|
metricValue: (0, smithy_client_1.expectString)(output.metricValue),
|
|
@@ -3161,15 +3149,13 @@ const deserializeAws_json1_1OutputLogEvents = (output, context) => {
|
|
|
3161
3149
|
};
|
|
3162
3150
|
const deserializeAws_json1_1PutDestinationResponse = (output, context) => {
|
|
3163
3151
|
return {
|
|
3164
|
-
destination: output.destination
|
|
3165
|
-
? deserializeAws_json1_1Destination(output.destination, context)
|
|
3166
|
-
: undefined,
|
|
3152
|
+
destination: output.destination != null ? deserializeAws_json1_1Destination(output.destination, context) : undefined,
|
|
3167
3153
|
};
|
|
3168
3154
|
};
|
|
3169
3155
|
const deserializeAws_json1_1PutLogEventsResponse = (output, context) => {
|
|
3170
3156
|
return {
|
|
3171
3157
|
nextSequenceToken: (0, smithy_client_1.expectString)(output.nextSequenceToken),
|
|
3172
|
-
rejectedLogEventsInfo: output.rejectedLogEventsInfo
|
|
3158
|
+
rejectedLogEventsInfo: output.rejectedLogEventsInfo != null
|
|
3173
3159
|
? deserializeAws_json1_1RejectedLogEventsInfo(output.rejectedLogEventsInfo, context)
|
|
3174
3160
|
: undefined,
|
|
3175
3161
|
};
|
|
@@ -3181,16 +3167,12 @@ const deserializeAws_json1_1PutQueryDefinitionResponse = (output, context) => {
|
|
|
3181
3167
|
};
|
|
3182
3168
|
const deserializeAws_json1_1PutResourcePolicyResponse = (output, context) => {
|
|
3183
3169
|
return {
|
|
3184
|
-
resourcePolicy: output.resourcePolicy
|
|
3185
|
-
? deserializeAws_json1_1ResourcePolicy(output.resourcePolicy, context)
|
|
3186
|
-
: undefined,
|
|
3170
|
+
resourcePolicy: output.resourcePolicy != null ? deserializeAws_json1_1ResourcePolicy(output.resourcePolicy, context) : undefined,
|
|
3187
3171
|
};
|
|
3188
3172
|
};
|
|
3189
3173
|
const deserializeAws_json1_1QueryCompileError = (output, context) => {
|
|
3190
3174
|
return {
|
|
3191
|
-
location: output.location
|
|
3192
|
-
? deserializeAws_json1_1QueryCompileErrorLocation(output.location, context)
|
|
3193
|
-
: undefined,
|
|
3175
|
+
location: output.location != null ? deserializeAws_json1_1QueryCompileErrorLocation(output.location, context) : undefined,
|
|
3194
3176
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3195
3177
|
};
|
|
3196
3178
|
};
|
|
@@ -3203,9 +3185,7 @@ const deserializeAws_json1_1QueryCompileErrorLocation = (output, context) => {
|
|
|
3203
3185
|
const deserializeAws_json1_1QueryDefinition = (output, context) => {
|
|
3204
3186
|
return {
|
|
3205
3187
|
lastModified: (0, smithy_client_1.expectLong)(output.lastModified),
|
|
3206
|
-
logGroupNames: output.logGroupNames
|
|
3207
|
-
? deserializeAws_json1_1LogGroupNames(output.logGroupNames, context)
|
|
3208
|
-
: undefined,
|
|
3188
|
+
logGroupNames: output.logGroupNames != null ? deserializeAws_json1_1LogGroupNames(output.logGroupNames, context) : undefined,
|
|
3209
3189
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3210
3190
|
queryDefinitionId: (0, smithy_client_1.expectString)(output.queryDefinitionId),
|
|
3211
3191
|
queryString: (0, smithy_client_1.expectString)(output.queryString),
|
|
@@ -3379,9 +3359,7 @@ const deserializeAws_json1_1Tags = (output, context) => {
|
|
|
3379
3359
|
};
|
|
3380
3360
|
const deserializeAws_json1_1TestMetricFilterResponse = (output, context) => {
|
|
3381
3361
|
return {
|
|
3382
|
-
matches: output.matches
|
|
3383
|
-
? deserializeAws_json1_1MetricFilterMatches(output.matches, context)
|
|
3384
|
-
: undefined,
|
|
3362
|
+
matches: output.matches != null ? deserializeAws_json1_1MetricFilterMatches(output.matches, context) : undefined,
|
|
3385
3363
|
};
|
|
3386
3364
|
};
|
|
3387
3365
|
const deserializeAws_json1_1UnrecognizedClientException = (output, context) => {
|
|
@@ -3451,5 +3429,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3451
3429
|
if (data["__type"] !== undefined) {
|
|
3452
3430
|
return sanitizeErrorCode(data["__type"]);
|
|
3453
3431
|
}
|
|
3454
|
-
return "";
|
|
3455
3432
|
};
|