@aws-sdk/client-devops-guru 3.52.0 → 3.54.1
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 +30 -0
- package/dist-cjs/DevOpsGuru.js +30 -0
- package/dist-cjs/commands/DescribeEventSourcesConfigCommand.js +36 -0
- package/dist-cjs/commands/UpdateEventSourcesConfigCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/DevOpsGuruServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +160 -3
- package/dist-cjs/protocols/Aws_restJson1.js +527 -1096
- package/dist-es/DevOpsGuru.js +30 -0
- package/dist-es/commands/DescribeEventSourcesConfigCommand.js +39 -0
- package/dist-es/commands/UpdateEventSourcesConfigCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/DevOpsGuruServiceException.js +12 -0
- package/dist-es/models/models_0.js +136 -1
- package/dist-es/protocols/Aws_restJson1.js +891 -1208
- package/dist-types/DevOpsGuru.d.ts +19 -4
- package/dist-types/DevOpsGuruClient.d.ts +6 -4
- package/dist-types/commands/DescribeEventSourcesConfigCommand.d.ts +36 -0
- package/dist-types/commands/SearchOrganizationInsightsCommand.d.ts +4 -4
- package/dist-types/commands/UpdateEventSourcesConfigCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/DevOpsGuruServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +394 -220
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/DevOpsGuru.d.ts +10 -0
- package/dist-types/ts3.4/DevOpsGuruClient.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeEventSourcesConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateEventSourcesConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/DevOpsGuruServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +114 -22
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
|
+
import { DevOpsGuruServiceException as __BaseException } from "../models/DevOpsGuruServiceException";
|
|
6
|
+
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
7
|
export var serializeAws_restJson1AddNotificationChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
8
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
7
9
|
return __generator(this, function (_c) {
|
|
@@ -109,6 +111,30 @@ export var serializeAws_restJson1DescribeAnomalyCommand = function (input, conte
|
|
|
109
111
|
}
|
|
110
112
|
});
|
|
111
113
|
}); };
|
|
114
|
+
export var serializeAws_restJson1DescribeEventSourcesConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
115
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
116
|
+
return __generator(this, function (_c) {
|
|
117
|
+
switch (_c.label) {
|
|
118
|
+
case 0: return [4, context.endpoint()];
|
|
119
|
+
case 1:
|
|
120
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
121
|
+
headers = {
|
|
122
|
+
"content-type": "application/json",
|
|
123
|
+
};
|
|
124
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/event-sources";
|
|
125
|
+
body = "";
|
|
126
|
+
return [2, new __HttpRequest({
|
|
127
|
+
protocol: protocol,
|
|
128
|
+
hostname: hostname,
|
|
129
|
+
port: port,
|
|
130
|
+
method: "POST",
|
|
131
|
+
headers: headers,
|
|
132
|
+
path: resolvedPath,
|
|
133
|
+
body: body,
|
|
134
|
+
})];
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
}); };
|
|
112
138
|
export var serializeAws_restJson1DescribeFeedbackCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
113
139
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
114
140
|
return __generator(this, function (_c) {
|
|
@@ -686,6 +712,33 @@ export var serializeAws_restJson1StartCostEstimationCommand = function (input, c
|
|
|
686
712
|
}
|
|
687
713
|
});
|
|
688
714
|
}); };
|
|
715
|
+
export var serializeAws_restJson1UpdateEventSourcesConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
716
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
717
|
+
return __generator(this, function (_c) {
|
|
718
|
+
switch (_c.label) {
|
|
719
|
+
case 0: return [4, context.endpoint()];
|
|
720
|
+
case 1:
|
|
721
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
722
|
+
headers = {
|
|
723
|
+
"content-type": "application/json",
|
|
724
|
+
};
|
|
725
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/event-sources";
|
|
726
|
+
body = JSON.stringify(__assign({}, (input.EventSources !== undefined &&
|
|
727
|
+
input.EventSources !== null && {
|
|
728
|
+
EventSources: serializeAws_restJson1EventSourcesConfig(input.EventSources, context),
|
|
729
|
+
})));
|
|
730
|
+
return [2, new __HttpRequest({
|
|
731
|
+
protocol: protocol,
|
|
732
|
+
hostname: hostname,
|
|
733
|
+
port: port,
|
|
734
|
+
method: "PUT",
|
|
735
|
+
headers: headers,
|
|
736
|
+
path: resolvedPath,
|
|
737
|
+
body: body,
|
|
738
|
+
})];
|
|
739
|
+
}
|
|
740
|
+
});
|
|
741
|
+
}); };
|
|
689
742
|
export var serializeAws_restJson1UpdateResourceCollectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
690
743
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
691
744
|
return __generator(this, function (_c) {
|
|
@@ -765,16 +818,16 @@ export var deserializeAws_restJson1AddNotificationChannelCommand = function (out
|
|
|
765
818
|
});
|
|
766
819
|
}); };
|
|
767
820
|
var deserializeAws_restJson1AddNotificationChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
768
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
769
|
-
var
|
|
770
|
-
return __generator(this, function (
|
|
771
|
-
switch (
|
|
821
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
822
|
+
var _c;
|
|
823
|
+
return __generator(this, function (_d) {
|
|
824
|
+
switch (_d.label) {
|
|
772
825
|
case 0:
|
|
773
826
|
_a = [__assign({}, output)];
|
|
774
|
-
|
|
827
|
+
_c = {};
|
|
775
828
|
return [4, parseBody(output.body, context)];
|
|
776
829
|
case 1:
|
|
777
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
830
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
778
831
|
errorCode = "UnknownError";
|
|
779
832
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
780
833
|
_b = errorCode;
|
|
@@ -795,58 +848,28 @@ var deserializeAws_restJson1AddNotificationChannelCommandError = function (outpu
|
|
|
795
848
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 14];
|
|
796
849
|
}
|
|
797
850
|
return [3, 16];
|
|
798
|
-
case 2:
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
case
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
case 4
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
case
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
case
|
|
811
|
-
|
|
812
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
813
|
-
case 7:
|
|
814
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
815
|
-
return [3, 17];
|
|
816
|
-
case 8:
|
|
817
|
-
_f = [{}];
|
|
818
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
819
|
-
case 9:
|
|
820
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
821
|
-
return [3, 17];
|
|
822
|
-
case 10:
|
|
823
|
-
_g = [{}];
|
|
824
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
825
|
-
case 11:
|
|
826
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
827
|
-
return [3, 17];
|
|
828
|
-
case 12:
|
|
829
|
-
_h = [{}];
|
|
830
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
831
|
-
case 13:
|
|
832
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
833
|
-
return [3, 17];
|
|
834
|
-
case 14:
|
|
835
|
-
_j = [{}];
|
|
836
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
837
|
-
case 15:
|
|
838
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
839
|
-
return [3, 17];
|
|
851
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
852
|
+
case 3: throw _d.sent();
|
|
853
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
854
|
+
case 5: throw _d.sent();
|
|
855
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
856
|
+
case 7: throw _d.sent();
|
|
857
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
858
|
+
case 9: throw _d.sent();
|
|
859
|
+
case 10: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
860
|
+
case 11: throw _d.sent();
|
|
861
|
+
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
862
|
+
case 13: throw _d.sent();
|
|
863
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
864
|
+
case 15: throw _d.sent();
|
|
840
865
|
case 16:
|
|
841
866
|
parsedBody = parsedOutput.body;
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
response
|
|
848
|
-
delete response.Message;
|
|
849
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
867
|
+
response = new __BaseException({
|
|
868
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
869
|
+
$fault: "client",
|
|
870
|
+
$metadata: deserializeMetadata(output),
|
|
871
|
+
});
|
|
872
|
+
throw __decorateServiceException(response, parsedBody);
|
|
850
873
|
}
|
|
851
874
|
});
|
|
852
875
|
}); };
|
|
@@ -887,16 +910,16 @@ export var deserializeAws_restJson1DescribeAccountHealthCommand = function (outp
|
|
|
887
910
|
});
|
|
888
911
|
}); };
|
|
889
912
|
var deserializeAws_restJson1DescribeAccountHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
890
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
891
|
-
var
|
|
892
|
-
return __generator(this, function (
|
|
893
|
-
switch (
|
|
913
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
914
|
+
var _c;
|
|
915
|
+
return __generator(this, function (_d) {
|
|
916
|
+
switch (_d.label) {
|
|
894
917
|
case 0:
|
|
895
918
|
_a = [__assign({}, output)];
|
|
896
|
-
|
|
919
|
+
_c = {};
|
|
897
920
|
return [4, parseBody(output.body, context)];
|
|
898
921
|
case 1:
|
|
899
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
922
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
900
923
|
errorCode = "UnknownError";
|
|
901
924
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
902
925
|
_b = errorCode;
|
|
@@ -911,40 +934,22 @@ var deserializeAws_restJson1DescribeAccountHealthCommandError = function (output
|
|
|
911
934
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
912
935
|
}
|
|
913
936
|
return [3, 10];
|
|
914
|
-
case 2:
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
case
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
case 4
|
|
921
|
-
|
|
922
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
923
|
-
case 5:
|
|
924
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
925
|
-
return [3, 11];
|
|
926
|
-
case 6:
|
|
927
|
-
_e = [{}];
|
|
928
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
929
|
-
case 7:
|
|
930
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
931
|
-
return [3, 11];
|
|
932
|
-
case 8:
|
|
933
|
-
_f = [{}];
|
|
934
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
935
|
-
case 9:
|
|
936
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
937
|
-
return [3, 11];
|
|
937
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
938
|
+
case 3: throw _d.sent();
|
|
939
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
940
|
+
case 5: throw _d.sent();
|
|
941
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
942
|
+
case 7: throw _d.sent();
|
|
943
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
944
|
+
case 9: throw _d.sent();
|
|
938
945
|
case 10:
|
|
939
946
|
parsedBody = parsedOutput.body;
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
response
|
|
946
|
-
delete response.Message;
|
|
947
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
947
|
+
response = new __BaseException({
|
|
948
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
949
|
+
$fault: "client",
|
|
950
|
+
$metadata: deserializeMetadata(output),
|
|
951
|
+
});
|
|
952
|
+
throw __decorateServiceException(response, parsedBody);
|
|
948
953
|
}
|
|
949
954
|
});
|
|
950
955
|
}); };
|
|
@@ -981,16 +986,16 @@ export var deserializeAws_restJson1DescribeAccountOverviewCommand = function (ou
|
|
|
981
986
|
});
|
|
982
987
|
}); };
|
|
983
988
|
var deserializeAws_restJson1DescribeAccountOverviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
984
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
985
|
-
var
|
|
986
|
-
return __generator(this, function (
|
|
987
|
-
switch (
|
|
989
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
990
|
+
var _c;
|
|
991
|
+
return __generator(this, function (_d) {
|
|
992
|
+
switch (_d.label) {
|
|
988
993
|
case 0:
|
|
989
994
|
_a = [__assign({}, output)];
|
|
990
|
-
|
|
995
|
+
_c = {};
|
|
991
996
|
return [4, parseBody(output.body, context)];
|
|
992
997
|
case 1:
|
|
993
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
998
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
994
999
|
errorCode = "UnknownError";
|
|
995
1000
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
996
1001
|
_b = errorCode;
|
|
@@ -1005,40 +1010,22 @@ var deserializeAws_restJson1DescribeAccountOverviewCommandError = function (outp
|
|
|
1005
1010
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
1006
1011
|
}
|
|
1007
1012
|
return [3, 10];
|
|
1008
|
-
case 2:
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
case
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
case 4
|
|
1015
|
-
|
|
1016
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1017
|
-
case 5:
|
|
1018
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1019
|
-
return [3, 11];
|
|
1020
|
-
case 6:
|
|
1021
|
-
_e = [{}];
|
|
1022
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1023
|
-
case 7:
|
|
1024
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1025
|
-
return [3, 11];
|
|
1026
|
-
case 8:
|
|
1027
|
-
_f = [{}];
|
|
1028
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1029
|
-
case 9:
|
|
1030
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1031
|
-
return [3, 11];
|
|
1013
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1014
|
+
case 3: throw _d.sent();
|
|
1015
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1016
|
+
case 5: throw _d.sent();
|
|
1017
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1018
|
+
case 7: throw _d.sent();
|
|
1019
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1020
|
+
case 9: throw _d.sent();
|
|
1032
1021
|
case 10:
|
|
1033
1022
|
parsedBody = parsedOutput.body;
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
response
|
|
1040
|
-
delete response.Message;
|
|
1041
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1023
|
+
response = new __BaseException({
|
|
1024
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1025
|
+
$fault: "client",
|
|
1026
|
+
$metadata: deserializeMetadata(output),
|
|
1027
|
+
});
|
|
1028
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1042
1029
|
}
|
|
1043
1030
|
});
|
|
1044
1031
|
}); };
|
|
@@ -1071,16 +1058,16 @@ export var deserializeAws_restJson1DescribeAnomalyCommand = function (output, co
|
|
|
1071
1058
|
});
|
|
1072
1059
|
}); };
|
|
1073
1060
|
var deserializeAws_restJson1DescribeAnomalyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1074
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1075
|
-
var
|
|
1076
|
-
return __generator(this, function (
|
|
1077
|
-
switch (
|
|
1061
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1062
|
+
var _c;
|
|
1063
|
+
return __generator(this, function (_d) {
|
|
1064
|
+
switch (_d.label) {
|
|
1078
1065
|
case 0:
|
|
1079
1066
|
_a = [__assign({}, output)];
|
|
1080
|
-
|
|
1067
|
+
_c = {};
|
|
1081
1068
|
return [4, parseBody(output.body, context)];
|
|
1082
1069
|
case 1:
|
|
1083
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1070
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1084
1071
|
errorCode = "UnknownError";
|
|
1085
1072
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1086
1073
|
_b = errorCode;
|
|
@@ -1097,46 +1084,92 @@ var deserializeAws_restJson1DescribeAnomalyCommandError = function (output, cont
|
|
|
1097
1084
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
|
|
1098
1085
|
}
|
|
1099
1086
|
return [3, 12];
|
|
1100
|
-
case 2:
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
case
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
case 4
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
case
|
|
1110
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1111
|
-
return [3, 13];
|
|
1112
|
-
case 6:
|
|
1113
|
-
_e = [{}];
|
|
1114
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1115
|
-
case 7:
|
|
1116
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1117
|
-
return [3, 13];
|
|
1118
|
-
case 8:
|
|
1119
|
-
_f = [{}];
|
|
1120
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1121
|
-
case 9:
|
|
1122
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1123
|
-
return [3, 13];
|
|
1124
|
-
case 10:
|
|
1125
|
-
_g = [{}];
|
|
1126
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1127
|
-
case 11:
|
|
1128
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1129
|
-
return [3, 13];
|
|
1087
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1088
|
+
case 3: throw _d.sent();
|
|
1089
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1090
|
+
case 5: throw _d.sent();
|
|
1091
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1092
|
+
case 7: throw _d.sent();
|
|
1093
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1094
|
+
case 9: throw _d.sent();
|
|
1095
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1096
|
+
case 11: throw _d.sent();
|
|
1130
1097
|
case 12:
|
|
1131
1098
|
parsedBody = parsedOutput.body;
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
response
|
|
1138
|
-
|
|
1139
|
-
|
|
1099
|
+
response = new __BaseException({
|
|
1100
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1101
|
+
$fault: "client",
|
|
1102
|
+
$metadata: deserializeMetadata(output),
|
|
1103
|
+
});
|
|
1104
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1105
|
+
}
|
|
1106
|
+
});
|
|
1107
|
+
}); };
|
|
1108
|
+
export var deserializeAws_restJson1DescribeEventSourcesConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1109
|
+
var contents, data, _a, _b;
|
|
1110
|
+
return __generator(this, function (_c) {
|
|
1111
|
+
switch (_c.label) {
|
|
1112
|
+
case 0:
|
|
1113
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1114
|
+
return [2, deserializeAws_restJson1DescribeEventSourcesConfigCommandError(output, context)];
|
|
1115
|
+
}
|
|
1116
|
+
contents = {
|
|
1117
|
+
$metadata: deserializeMetadata(output),
|
|
1118
|
+
EventSources: undefined,
|
|
1119
|
+
};
|
|
1120
|
+
_a = __expectNonNull;
|
|
1121
|
+
_b = __expectObject;
|
|
1122
|
+
return [4, parseBody(output.body, context)];
|
|
1123
|
+
case 1:
|
|
1124
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1125
|
+
if (data.EventSources !== undefined && data.EventSources !== null) {
|
|
1126
|
+
contents.EventSources = deserializeAws_restJson1EventSourcesConfig(data.EventSources, context);
|
|
1127
|
+
}
|
|
1128
|
+
return [2, Promise.resolve(contents)];
|
|
1129
|
+
}
|
|
1130
|
+
});
|
|
1131
|
+
}); };
|
|
1132
|
+
var deserializeAws_restJson1DescribeEventSourcesConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1133
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1134
|
+
var _c;
|
|
1135
|
+
return __generator(this, function (_d) {
|
|
1136
|
+
switch (_d.label) {
|
|
1137
|
+
case 0:
|
|
1138
|
+
_a = [__assign({}, output)];
|
|
1139
|
+
_c = {};
|
|
1140
|
+
return [4, parseBody(output.body, context)];
|
|
1141
|
+
case 1:
|
|
1142
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1143
|
+
errorCode = "UnknownError";
|
|
1144
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1145
|
+
_b = errorCode;
|
|
1146
|
+
switch (_b) {
|
|
1147
|
+
case "AccessDeniedException": return [3, 2];
|
|
1148
|
+
case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
|
|
1149
|
+
case "InternalServerException": return [3, 4];
|
|
1150
|
+
case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
|
|
1151
|
+
case "ThrottlingException": return [3, 6];
|
|
1152
|
+
case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
|
|
1153
|
+
case "ValidationException": return [3, 8];
|
|
1154
|
+
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
1155
|
+
}
|
|
1156
|
+
return [3, 10];
|
|
1157
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1158
|
+
case 3: throw _d.sent();
|
|
1159
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1160
|
+
case 5: throw _d.sent();
|
|
1161
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1162
|
+
case 7: throw _d.sent();
|
|
1163
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1164
|
+
case 9: throw _d.sent();
|
|
1165
|
+
case 10:
|
|
1166
|
+
parsedBody = parsedOutput.body;
|
|
1167
|
+
response = new __BaseException({
|
|
1168
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1169
|
+
$fault: "client",
|
|
1170
|
+
$metadata: deserializeMetadata(output),
|
|
1171
|
+
});
|
|
1172
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1140
1173
|
}
|
|
1141
1174
|
});
|
|
1142
1175
|
}); };
|
|
@@ -1165,16 +1198,16 @@ export var deserializeAws_restJson1DescribeFeedbackCommand = function (output, c
|
|
|
1165
1198
|
});
|
|
1166
1199
|
}); };
|
|
1167
1200
|
var deserializeAws_restJson1DescribeFeedbackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1168
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1169
|
-
var
|
|
1170
|
-
return __generator(this, function (
|
|
1171
|
-
switch (
|
|
1201
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1202
|
+
var _c;
|
|
1203
|
+
return __generator(this, function (_d) {
|
|
1204
|
+
switch (_d.label) {
|
|
1172
1205
|
case 0:
|
|
1173
1206
|
_a = [__assign({}, output)];
|
|
1174
|
-
|
|
1207
|
+
_c = {};
|
|
1175
1208
|
return [4, parseBody(output.body, context)];
|
|
1176
1209
|
case 1:
|
|
1177
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1210
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1178
1211
|
errorCode = "UnknownError";
|
|
1179
1212
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1180
1213
|
_b = errorCode;
|
|
@@ -1191,46 +1224,24 @@ var deserializeAws_restJson1DescribeFeedbackCommandError = function (output, con
|
|
|
1191
1224
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
|
|
1192
1225
|
}
|
|
1193
1226
|
return [3, 12];
|
|
1194
|
-
case 2:
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
case
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
case 4
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
case
|
|
1204
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1205
|
-
return [3, 13];
|
|
1206
|
-
case 6:
|
|
1207
|
-
_e = [{}];
|
|
1208
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1209
|
-
case 7:
|
|
1210
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1211
|
-
return [3, 13];
|
|
1212
|
-
case 8:
|
|
1213
|
-
_f = [{}];
|
|
1214
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1215
|
-
case 9:
|
|
1216
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1217
|
-
return [3, 13];
|
|
1218
|
-
case 10:
|
|
1219
|
-
_g = [{}];
|
|
1220
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1221
|
-
case 11:
|
|
1222
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1223
|
-
return [3, 13];
|
|
1227
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1228
|
+
case 3: throw _d.sent();
|
|
1229
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1230
|
+
case 5: throw _d.sent();
|
|
1231
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1232
|
+
case 7: throw _d.sent();
|
|
1233
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1234
|
+
case 9: throw _d.sent();
|
|
1235
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1236
|
+
case 11: throw _d.sent();
|
|
1224
1237
|
case 12:
|
|
1225
1238
|
parsedBody = parsedOutput.body;
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
response
|
|
1232
|
-
delete response.Message;
|
|
1233
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1239
|
+
response = new __BaseException({
|
|
1240
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1241
|
+
$fault: "client",
|
|
1242
|
+
$metadata: deserializeMetadata(output),
|
|
1243
|
+
});
|
|
1244
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1234
1245
|
}
|
|
1235
1246
|
});
|
|
1236
1247
|
}); };
|
|
@@ -1263,16 +1274,16 @@ export var deserializeAws_restJson1DescribeInsightCommand = function (output, co
|
|
|
1263
1274
|
});
|
|
1264
1275
|
}); };
|
|
1265
1276
|
var deserializeAws_restJson1DescribeInsightCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1266
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1267
|
-
var
|
|
1268
|
-
return __generator(this, function (
|
|
1269
|
-
switch (
|
|
1277
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1278
|
+
var _c;
|
|
1279
|
+
return __generator(this, function (_d) {
|
|
1280
|
+
switch (_d.label) {
|
|
1270
1281
|
case 0:
|
|
1271
1282
|
_a = [__assign({}, output)];
|
|
1272
|
-
|
|
1283
|
+
_c = {};
|
|
1273
1284
|
return [4, parseBody(output.body, context)];
|
|
1274
1285
|
case 1:
|
|
1275
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1286
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1276
1287
|
errorCode = "UnknownError";
|
|
1277
1288
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1278
1289
|
_b = errorCode;
|
|
@@ -1289,46 +1300,24 @@ var deserializeAws_restJson1DescribeInsightCommandError = function (output, cont
|
|
|
1289
1300
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
|
|
1290
1301
|
}
|
|
1291
1302
|
return [3, 12];
|
|
1292
|
-
case 2:
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
case
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
case 4
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
case
|
|
1302
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1303
|
-
return [3, 13];
|
|
1304
|
-
case 6:
|
|
1305
|
-
_e = [{}];
|
|
1306
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1307
|
-
case 7:
|
|
1308
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1309
|
-
return [3, 13];
|
|
1310
|
-
case 8:
|
|
1311
|
-
_f = [{}];
|
|
1312
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1313
|
-
case 9:
|
|
1314
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1315
|
-
return [3, 13];
|
|
1316
|
-
case 10:
|
|
1317
|
-
_g = [{}];
|
|
1318
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1319
|
-
case 11:
|
|
1320
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1321
|
-
return [3, 13];
|
|
1303
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1304
|
+
case 3: throw _d.sent();
|
|
1305
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1306
|
+
case 5: throw _d.sent();
|
|
1307
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1308
|
+
case 7: throw _d.sent();
|
|
1309
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1310
|
+
case 9: throw _d.sent();
|
|
1311
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1312
|
+
case 11: throw _d.sent();
|
|
1322
1313
|
case 12:
|
|
1323
1314
|
parsedBody = parsedOutput.body;
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
response
|
|
1330
|
-
delete response.Message;
|
|
1331
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1315
|
+
response = new __BaseException({
|
|
1316
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1317
|
+
$fault: "client",
|
|
1318
|
+
$metadata: deserializeMetadata(output),
|
|
1319
|
+
});
|
|
1320
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1332
1321
|
}
|
|
1333
1322
|
});
|
|
1334
1323
|
}); };
|
|
@@ -1369,16 +1358,16 @@ export var deserializeAws_restJson1DescribeOrganizationHealthCommand = function
|
|
|
1369
1358
|
});
|
|
1370
1359
|
}); };
|
|
1371
1360
|
var deserializeAws_restJson1DescribeOrganizationHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1372
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1373
|
-
var
|
|
1374
|
-
return __generator(this, function (
|
|
1375
|
-
switch (
|
|
1361
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1362
|
+
var _c;
|
|
1363
|
+
return __generator(this, function (_d) {
|
|
1364
|
+
switch (_d.label) {
|
|
1376
1365
|
case 0:
|
|
1377
1366
|
_a = [__assign({}, output)];
|
|
1378
|
-
|
|
1367
|
+
_c = {};
|
|
1379
1368
|
return [4, parseBody(output.body, context)];
|
|
1380
1369
|
case 1:
|
|
1381
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1370
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1382
1371
|
errorCode = "UnknownError";
|
|
1383
1372
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1384
1373
|
_b = errorCode;
|
|
@@ -1393,40 +1382,22 @@ var deserializeAws_restJson1DescribeOrganizationHealthCommandError = function (o
|
|
|
1393
1382
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
1394
1383
|
}
|
|
1395
1384
|
return [3, 10];
|
|
1396
|
-
case 2:
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
case
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
case 4
|
|
1403
|
-
|
|
1404
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1405
|
-
case 5:
|
|
1406
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1407
|
-
return [3, 11];
|
|
1408
|
-
case 6:
|
|
1409
|
-
_e = [{}];
|
|
1410
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1411
|
-
case 7:
|
|
1412
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1413
|
-
return [3, 11];
|
|
1414
|
-
case 8:
|
|
1415
|
-
_f = [{}];
|
|
1416
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1417
|
-
case 9:
|
|
1418
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1419
|
-
return [3, 11];
|
|
1385
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1386
|
+
case 3: throw _d.sent();
|
|
1387
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1388
|
+
case 5: throw _d.sent();
|
|
1389
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1390
|
+
case 7: throw _d.sent();
|
|
1391
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1392
|
+
case 9: throw _d.sent();
|
|
1420
1393
|
case 10:
|
|
1421
1394
|
parsedBody = parsedOutput.body;
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
response
|
|
1428
|
-
delete response.Message;
|
|
1429
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1395
|
+
response = new __BaseException({
|
|
1396
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1397
|
+
$fault: "client",
|
|
1398
|
+
$metadata: deserializeMetadata(output),
|
|
1399
|
+
});
|
|
1400
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1430
1401
|
}
|
|
1431
1402
|
});
|
|
1432
1403
|
}); };
|
|
@@ -1459,16 +1430,16 @@ export var deserializeAws_restJson1DescribeOrganizationOverviewCommand = functio
|
|
|
1459
1430
|
});
|
|
1460
1431
|
}); };
|
|
1461
1432
|
var deserializeAws_restJson1DescribeOrganizationOverviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1462
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1463
|
-
var
|
|
1464
|
-
return __generator(this, function (
|
|
1465
|
-
switch (
|
|
1433
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1434
|
+
var _c;
|
|
1435
|
+
return __generator(this, function (_d) {
|
|
1436
|
+
switch (_d.label) {
|
|
1466
1437
|
case 0:
|
|
1467
1438
|
_a = [__assign({}, output)];
|
|
1468
|
-
|
|
1439
|
+
_c = {};
|
|
1469
1440
|
return [4, parseBody(output.body, context)];
|
|
1470
1441
|
case 1:
|
|
1471
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1442
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1472
1443
|
errorCode = "UnknownError";
|
|
1473
1444
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1474
1445
|
_b = errorCode;
|
|
@@ -1483,40 +1454,22 @@ var deserializeAws_restJson1DescribeOrganizationOverviewCommandError = function
|
|
|
1483
1454
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
1484
1455
|
}
|
|
1485
1456
|
return [3, 10];
|
|
1486
|
-
case 2:
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
case
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
case 4
|
|
1493
|
-
|
|
1494
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1495
|
-
case 5:
|
|
1496
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1497
|
-
return [3, 11];
|
|
1498
|
-
case 6:
|
|
1499
|
-
_e = [{}];
|
|
1500
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1501
|
-
case 7:
|
|
1502
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1503
|
-
return [3, 11];
|
|
1504
|
-
case 8:
|
|
1505
|
-
_f = [{}];
|
|
1506
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1507
|
-
case 9:
|
|
1508
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1509
|
-
return [3, 11];
|
|
1457
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1458
|
+
case 3: throw _d.sent();
|
|
1459
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1460
|
+
case 5: throw _d.sent();
|
|
1461
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1462
|
+
case 7: throw _d.sent();
|
|
1463
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1464
|
+
case 9: throw _d.sent();
|
|
1510
1465
|
case 10:
|
|
1511
1466
|
parsedBody = parsedOutput.body;
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
response
|
|
1518
|
-
delete response.Message;
|
|
1519
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1467
|
+
response = new __BaseException({
|
|
1468
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1469
|
+
$fault: "client",
|
|
1470
|
+
$metadata: deserializeMetadata(output),
|
|
1471
|
+
});
|
|
1472
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1520
1473
|
}
|
|
1521
1474
|
});
|
|
1522
1475
|
}); };
|
|
@@ -1561,16 +1514,16 @@ export var deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthC
|
|
|
1561
1514
|
});
|
|
1562
1515
|
}); };
|
|
1563
1516
|
var deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1564
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1565
|
-
var
|
|
1566
|
-
return __generator(this, function (
|
|
1567
|
-
switch (
|
|
1517
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1518
|
+
var _c;
|
|
1519
|
+
return __generator(this, function (_d) {
|
|
1520
|
+
switch (_d.label) {
|
|
1568
1521
|
case 0:
|
|
1569
1522
|
_a = [__assign({}, output)];
|
|
1570
|
-
|
|
1523
|
+
_c = {};
|
|
1571
1524
|
return [4, parseBody(output.body, context)];
|
|
1572
1525
|
case 1:
|
|
1573
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1526
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1574
1527
|
errorCode = "UnknownError";
|
|
1575
1528
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1576
1529
|
_b = errorCode;
|
|
@@ -1585,40 +1538,22 @@ var deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandE
|
|
|
1585
1538
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
1586
1539
|
}
|
|
1587
1540
|
return [3, 10];
|
|
1588
|
-
case 2:
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
case
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
case 4
|
|
1595
|
-
|
|
1596
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1597
|
-
case 5:
|
|
1598
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1599
|
-
return [3, 11];
|
|
1600
|
-
case 6:
|
|
1601
|
-
_e = [{}];
|
|
1602
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1603
|
-
case 7:
|
|
1604
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1605
|
-
return [3, 11];
|
|
1606
|
-
case 8:
|
|
1607
|
-
_f = [{}];
|
|
1608
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1609
|
-
case 9:
|
|
1610
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1611
|
-
return [3, 11];
|
|
1541
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1542
|
+
case 3: throw _d.sent();
|
|
1543
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1544
|
+
case 5: throw _d.sent();
|
|
1545
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1546
|
+
case 7: throw _d.sent();
|
|
1547
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1548
|
+
case 9: throw _d.sent();
|
|
1612
1549
|
case 10:
|
|
1613
1550
|
parsedBody = parsedOutput.body;
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
response
|
|
1620
|
-
delete response.Message;
|
|
1621
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1551
|
+
response = new __BaseException({
|
|
1552
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1553
|
+
$fault: "client",
|
|
1554
|
+
$metadata: deserializeMetadata(output),
|
|
1555
|
+
});
|
|
1556
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1622
1557
|
}
|
|
1623
1558
|
});
|
|
1624
1559
|
}); };
|
|
@@ -1659,16 +1594,16 @@ export var deserializeAws_restJson1DescribeResourceCollectionHealthCommand = fun
|
|
|
1659
1594
|
});
|
|
1660
1595
|
}); };
|
|
1661
1596
|
var deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1662
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1663
|
-
var
|
|
1664
|
-
return __generator(this, function (
|
|
1665
|
-
switch (
|
|
1597
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1598
|
+
var _c;
|
|
1599
|
+
return __generator(this, function (_d) {
|
|
1600
|
+
switch (_d.label) {
|
|
1666
1601
|
case 0:
|
|
1667
1602
|
_a = [__assign({}, output)];
|
|
1668
|
-
|
|
1603
|
+
_c = {};
|
|
1669
1604
|
return [4, parseBody(output.body, context)];
|
|
1670
1605
|
case 1:
|
|
1671
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1606
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1672
1607
|
errorCode = "UnknownError";
|
|
1673
1608
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
1609
|
_b = errorCode;
|
|
@@ -1683,40 +1618,22 @@ var deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = funct
|
|
|
1683
1618
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
1684
1619
|
}
|
|
1685
1620
|
return [3, 10];
|
|
1686
|
-
case 2:
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
case
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
case 4
|
|
1693
|
-
|
|
1694
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1695
|
-
case 5:
|
|
1696
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1697
|
-
return [3, 11];
|
|
1698
|
-
case 6:
|
|
1699
|
-
_e = [{}];
|
|
1700
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1701
|
-
case 7:
|
|
1702
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1703
|
-
return [3, 11];
|
|
1704
|
-
case 8:
|
|
1705
|
-
_f = [{}];
|
|
1706
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1707
|
-
case 9:
|
|
1708
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1709
|
-
return [3, 11];
|
|
1621
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1622
|
+
case 3: throw _d.sent();
|
|
1623
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1624
|
+
case 5: throw _d.sent();
|
|
1625
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1626
|
+
case 7: throw _d.sent();
|
|
1627
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1628
|
+
case 9: throw _d.sent();
|
|
1710
1629
|
case 10:
|
|
1711
1630
|
parsedBody = parsedOutput.body;
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
response
|
|
1718
|
-
delete response.Message;
|
|
1719
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1631
|
+
response = new __BaseException({
|
|
1632
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1633
|
+
$fault: "client",
|
|
1634
|
+
$metadata: deserializeMetadata(output),
|
|
1635
|
+
});
|
|
1636
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1720
1637
|
}
|
|
1721
1638
|
});
|
|
1722
1639
|
}); };
|
|
@@ -1745,16 +1662,16 @@ export var deserializeAws_restJson1DescribeServiceIntegrationCommand = function
|
|
|
1745
1662
|
});
|
|
1746
1663
|
}); };
|
|
1747
1664
|
var deserializeAws_restJson1DescribeServiceIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1748
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1749
|
-
var
|
|
1750
|
-
return __generator(this, function (
|
|
1751
|
-
switch (
|
|
1665
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1666
|
+
var _c;
|
|
1667
|
+
return __generator(this, function (_d) {
|
|
1668
|
+
switch (_d.label) {
|
|
1752
1669
|
case 0:
|
|
1753
1670
|
_a = [__assign({}, output)];
|
|
1754
|
-
|
|
1671
|
+
_c = {};
|
|
1755
1672
|
return [4, parseBody(output.body, context)];
|
|
1756
1673
|
case 1:
|
|
1757
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1674
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1758
1675
|
errorCode = "UnknownError";
|
|
1759
1676
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
1677
|
_b = errorCode;
|
|
@@ -1769,40 +1686,22 @@ var deserializeAws_restJson1DescribeServiceIntegrationCommandError = function (o
|
|
|
1769
1686
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
1770
1687
|
}
|
|
1771
1688
|
return [3, 10];
|
|
1772
|
-
case 2:
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
case
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
case 4
|
|
1779
|
-
|
|
1780
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1781
|
-
case 5:
|
|
1782
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1783
|
-
return [3, 11];
|
|
1784
|
-
case 6:
|
|
1785
|
-
_e = [{}];
|
|
1786
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1787
|
-
case 7:
|
|
1788
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1789
|
-
return [3, 11];
|
|
1790
|
-
case 8:
|
|
1791
|
-
_f = [{}];
|
|
1792
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1793
|
-
case 9:
|
|
1794
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1795
|
-
return [3, 11];
|
|
1689
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1690
|
+
case 3: throw _d.sent();
|
|
1691
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1692
|
+
case 5: throw _d.sent();
|
|
1693
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1694
|
+
case 7: throw _d.sent();
|
|
1695
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1696
|
+
case 9: throw _d.sent();
|
|
1796
1697
|
case 10:
|
|
1797
1698
|
parsedBody = parsedOutput.body;
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
response
|
|
1804
|
-
delete response.Message;
|
|
1805
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1699
|
+
response = new __BaseException({
|
|
1700
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1701
|
+
$fault: "client",
|
|
1702
|
+
$metadata: deserializeMetadata(output),
|
|
1703
|
+
});
|
|
1704
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1806
1705
|
}
|
|
1807
1706
|
});
|
|
1808
1707
|
}); };
|
|
@@ -1851,16 +1750,16 @@ export var deserializeAws_restJson1GetCostEstimationCommand = function (output,
|
|
|
1851
1750
|
});
|
|
1852
1751
|
}); };
|
|
1853
1752
|
var deserializeAws_restJson1GetCostEstimationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1854
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1855
|
-
var
|
|
1856
|
-
return __generator(this, function (
|
|
1857
|
-
switch (
|
|
1753
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1754
|
+
var _c;
|
|
1755
|
+
return __generator(this, function (_d) {
|
|
1756
|
+
switch (_d.label) {
|
|
1858
1757
|
case 0:
|
|
1859
1758
|
_a = [__assign({}, output)];
|
|
1860
|
-
|
|
1759
|
+
_c = {};
|
|
1861
1760
|
return [4, parseBody(output.body, context)];
|
|
1862
1761
|
case 1:
|
|
1863
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1762
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1864
1763
|
errorCode = "UnknownError";
|
|
1865
1764
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1866
1765
|
_b = errorCode;
|
|
@@ -1877,46 +1776,24 @@ var deserializeAws_restJson1GetCostEstimationCommandError = function (output, co
|
|
|
1877
1776
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
|
|
1878
1777
|
}
|
|
1879
1778
|
return [3, 12];
|
|
1880
|
-
case 2:
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
case
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
case 4
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
case
|
|
1890
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1891
|
-
return [3, 13];
|
|
1892
|
-
case 6:
|
|
1893
|
-
_e = [{}];
|
|
1894
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1895
|
-
case 7:
|
|
1896
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1897
|
-
return [3, 13];
|
|
1898
|
-
case 8:
|
|
1899
|
-
_f = [{}];
|
|
1900
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1901
|
-
case 9:
|
|
1902
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1903
|
-
return [3, 13];
|
|
1904
|
-
case 10:
|
|
1905
|
-
_g = [{}];
|
|
1906
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1907
|
-
case 11:
|
|
1908
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1909
|
-
return [3, 13];
|
|
1779
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1780
|
+
case 3: throw _d.sent();
|
|
1781
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1782
|
+
case 5: throw _d.sent();
|
|
1783
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1784
|
+
case 7: throw _d.sent();
|
|
1785
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1786
|
+
case 9: throw _d.sent();
|
|
1787
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1788
|
+
case 11: throw _d.sent();
|
|
1910
1789
|
case 12:
|
|
1911
1790
|
parsedBody = parsedOutput.body;
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
response
|
|
1918
|
-
delete response.Message;
|
|
1919
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1791
|
+
response = new __BaseException({
|
|
1792
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1793
|
+
$fault: "client",
|
|
1794
|
+
$metadata: deserializeMetadata(output),
|
|
1795
|
+
});
|
|
1796
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1920
1797
|
}
|
|
1921
1798
|
});
|
|
1922
1799
|
}); };
|
|
@@ -1949,16 +1826,16 @@ export var deserializeAws_restJson1GetResourceCollectionCommand = function (outp
|
|
|
1949
1826
|
});
|
|
1950
1827
|
}); };
|
|
1951
1828
|
var deserializeAws_restJson1GetResourceCollectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1952
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1953
|
-
var
|
|
1954
|
-
return __generator(this, function (
|
|
1955
|
-
switch (
|
|
1829
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1830
|
+
var _c;
|
|
1831
|
+
return __generator(this, function (_d) {
|
|
1832
|
+
switch (_d.label) {
|
|
1956
1833
|
case 0:
|
|
1957
1834
|
_a = [__assign({}, output)];
|
|
1958
|
-
|
|
1835
|
+
_c = {};
|
|
1959
1836
|
return [4, parseBody(output.body, context)];
|
|
1960
1837
|
case 1:
|
|
1961
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1838
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1962
1839
|
errorCode = "UnknownError";
|
|
1963
1840
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1964
1841
|
_b = errorCode;
|
|
@@ -1975,46 +1852,24 @@ var deserializeAws_restJson1GetResourceCollectionCommandError = function (output
|
|
|
1975
1852
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
|
|
1976
1853
|
}
|
|
1977
1854
|
return [3, 12];
|
|
1978
|
-
case 2:
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
case
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
case 4
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
case
|
|
1988
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1989
|
-
return [3, 13];
|
|
1990
|
-
case 6:
|
|
1991
|
-
_e = [{}];
|
|
1992
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1993
|
-
case 7:
|
|
1994
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1995
|
-
return [3, 13];
|
|
1996
|
-
case 8:
|
|
1997
|
-
_f = [{}];
|
|
1998
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1999
|
-
case 9:
|
|
2000
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2001
|
-
return [3, 13];
|
|
2002
|
-
case 10:
|
|
2003
|
-
_g = [{}];
|
|
2004
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2005
|
-
case 11:
|
|
2006
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2007
|
-
return [3, 13];
|
|
1855
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1856
|
+
case 3: throw _d.sent();
|
|
1857
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1858
|
+
case 5: throw _d.sent();
|
|
1859
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1860
|
+
case 7: throw _d.sent();
|
|
1861
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1862
|
+
case 9: throw _d.sent();
|
|
1863
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1864
|
+
case 11: throw _d.sent();
|
|
2008
1865
|
case 12:
|
|
2009
1866
|
parsedBody = parsedOutput.body;
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
response
|
|
2016
|
-
delete response.Message;
|
|
2017
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1867
|
+
response = new __BaseException({
|
|
1868
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1869
|
+
$fault: "client",
|
|
1870
|
+
$metadata: deserializeMetadata(output),
|
|
1871
|
+
});
|
|
1872
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2018
1873
|
}
|
|
2019
1874
|
});
|
|
2020
1875
|
}); };
|
|
@@ -2051,16 +1906,16 @@ export var deserializeAws_restJson1ListAnomaliesForInsightCommand = function (ou
|
|
|
2051
1906
|
});
|
|
2052
1907
|
}); };
|
|
2053
1908
|
var deserializeAws_restJson1ListAnomaliesForInsightCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2054
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2055
|
-
var
|
|
2056
|
-
return __generator(this, function (
|
|
2057
|
-
switch (
|
|
1909
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1910
|
+
var _c;
|
|
1911
|
+
return __generator(this, function (_d) {
|
|
1912
|
+
switch (_d.label) {
|
|
2058
1913
|
case 0:
|
|
2059
1914
|
_a = [__assign({}, output)];
|
|
2060
|
-
|
|
1915
|
+
_c = {};
|
|
2061
1916
|
return [4, parseBody(output.body, context)];
|
|
2062
1917
|
case 1:
|
|
2063
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1918
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2064
1919
|
errorCode = "UnknownError";
|
|
2065
1920
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2066
1921
|
_b = errorCode;
|
|
@@ -2077,46 +1932,24 @@ var deserializeAws_restJson1ListAnomaliesForInsightCommandError = function (outp
|
|
|
2077
1932
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
|
|
2078
1933
|
}
|
|
2079
1934
|
return [3, 12];
|
|
2080
|
-
case 2:
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
case
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
case 4
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
case
|
|
2090
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2091
|
-
return [3, 13];
|
|
2092
|
-
case 6:
|
|
2093
|
-
_e = [{}];
|
|
2094
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2095
|
-
case 7:
|
|
2096
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2097
|
-
return [3, 13];
|
|
2098
|
-
case 8:
|
|
2099
|
-
_f = [{}];
|
|
2100
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2101
|
-
case 9:
|
|
2102
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2103
|
-
return [3, 13];
|
|
2104
|
-
case 10:
|
|
2105
|
-
_g = [{}];
|
|
2106
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2107
|
-
case 11:
|
|
2108
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2109
|
-
return [3, 13];
|
|
1935
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1936
|
+
case 3: throw _d.sent();
|
|
1937
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1938
|
+
case 5: throw _d.sent();
|
|
1939
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1940
|
+
case 7: throw _d.sent();
|
|
1941
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1942
|
+
case 9: throw _d.sent();
|
|
1943
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1944
|
+
case 11: throw _d.sent();
|
|
2110
1945
|
case 12:
|
|
2111
1946
|
parsedBody = parsedOutput.body;
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
response
|
|
2118
|
-
delete response.Message;
|
|
2119
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1947
|
+
response = new __BaseException({
|
|
1948
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1949
|
+
$fault: "client",
|
|
1950
|
+
$metadata: deserializeMetadata(output),
|
|
1951
|
+
});
|
|
1952
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2120
1953
|
}
|
|
2121
1954
|
});
|
|
2122
1955
|
}); };
|
|
@@ -2149,16 +1982,16 @@ export var deserializeAws_restJson1ListEventsCommand = function (output, context
|
|
|
2149
1982
|
});
|
|
2150
1983
|
}); };
|
|
2151
1984
|
var deserializeAws_restJson1ListEventsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2152
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2153
|
-
var
|
|
2154
|
-
return __generator(this, function (
|
|
2155
|
-
switch (
|
|
1985
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1986
|
+
var _c;
|
|
1987
|
+
return __generator(this, function (_d) {
|
|
1988
|
+
switch (_d.label) {
|
|
2156
1989
|
case 0:
|
|
2157
1990
|
_a = [__assign({}, output)];
|
|
2158
|
-
|
|
1991
|
+
_c = {};
|
|
2159
1992
|
return [4, parseBody(output.body, context)];
|
|
2160
1993
|
case 1:
|
|
2161
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1994
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2162
1995
|
errorCode = "UnknownError";
|
|
2163
1996
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2164
1997
|
_b = errorCode;
|
|
@@ -2175,46 +2008,24 @@ var deserializeAws_restJson1ListEventsCommandError = function (output, context)
|
|
|
2175
2008
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
|
|
2176
2009
|
}
|
|
2177
2010
|
return [3, 12];
|
|
2178
|
-
case 2:
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
case
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
case 4
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
case
|
|
2188
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2189
|
-
return [3, 13];
|
|
2190
|
-
case 6:
|
|
2191
|
-
_e = [{}];
|
|
2192
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2193
|
-
case 7:
|
|
2194
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2195
|
-
return [3, 13];
|
|
2196
|
-
case 8:
|
|
2197
|
-
_f = [{}];
|
|
2198
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2199
|
-
case 9:
|
|
2200
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2201
|
-
return [3, 13];
|
|
2202
|
-
case 10:
|
|
2203
|
-
_g = [{}];
|
|
2204
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2205
|
-
case 11:
|
|
2206
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2207
|
-
return [3, 13];
|
|
2011
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2012
|
+
case 3: throw _d.sent();
|
|
2013
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2014
|
+
case 5: throw _d.sent();
|
|
2015
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2016
|
+
case 7: throw _d.sent();
|
|
2017
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2018
|
+
case 9: throw _d.sent();
|
|
2019
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2020
|
+
case 11: throw _d.sent();
|
|
2208
2021
|
case 12:
|
|
2209
2022
|
parsedBody = parsedOutput.body;
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
response
|
|
2216
|
-
delete response.Message;
|
|
2217
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2023
|
+
response = new __BaseException({
|
|
2024
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2025
|
+
$fault: "client",
|
|
2026
|
+
$metadata: deserializeMetadata(output),
|
|
2027
|
+
});
|
|
2028
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2218
2029
|
}
|
|
2219
2030
|
});
|
|
2220
2031
|
}); };
|
|
@@ -2251,16 +2062,16 @@ export var deserializeAws_restJson1ListInsightsCommand = function (output, conte
|
|
|
2251
2062
|
});
|
|
2252
2063
|
}); };
|
|
2253
2064
|
var deserializeAws_restJson1ListInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2254
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2255
|
-
var
|
|
2256
|
-
return __generator(this, function (
|
|
2257
|
-
switch (
|
|
2065
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2066
|
+
var _c;
|
|
2067
|
+
return __generator(this, function (_d) {
|
|
2068
|
+
switch (_d.label) {
|
|
2258
2069
|
case 0:
|
|
2259
2070
|
_a = [__assign({}, output)];
|
|
2260
|
-
|
|
2071
|
+
_c = {};
|
|
2261
2072
|
return [4, parseBody(output.body, context)];
|
|
2262
2073
|
case 1:
|
|
2263
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2074
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2264
2075
|
errorCode = "UnknownError";
|
|
2265
2076
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2266
2077
|
_b = errorCode;
|
|
@@ -2275,40 +2086,22 @@ var deserializeAws_restJson1ListInsightsCommandError = function (output, context
|
|
|
2275
2086
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
2276
2087
|
}
|
|
2277
2088
|
return [3, 10];
|
|
2278
|
-
case 2:
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
case
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
case 4
|
|
2285
|
-
|
|
2286
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2287
|
-
case 5:
|
|
2288
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2289
|
-
return [3, 11];
|
|
2290
|
-
case 6:
|
|
2291
|
-
_e = [{}];
|
|
2292
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2293
|
-
case 7:
|
|
2294
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2295
|
-
return [3, 11];
|
|
2296
|
-
case 8:
|
|
2297
|
-
_f = [{}];
|
|
2298
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2299
|
-
case 9:
|
|
2300
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2301
|
-
return [3, 11];
|
|
2089
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2090
|
+
case 3: throw _d.sent();
|
|
2091
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2092
|
+
case 5: throw _d.sent();
|
|
2093
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2094
|
+
case 7: throw _d.sent();
|
|
2095
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2096
|
+
case 9: throw _d.sent();
|
|
2302
2097
|
case 10:
|
|
2303
2098
|
parsedBody = parsedOutput.body;
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
response
|
|
2310
|
-
delete response.Message;
|
|
2311
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2099
|
+
response = new __BaseException({
|
|
2100
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2101
|
+
$fault: "client",
|
|
2102
|
+
$metadata: deserializeMetadata(output),
|
|
2103
|
+
});
|
|
2104
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2312
2105
|
}
|
|
2313
2106
|
});
|
|
2314
2107
|
}); };
|
|
@@ -2341,16 +2134,16 @@ export var deserializeAws_restJson1ListNotificationChannelsCommand = function (o
|
|
|
2341
2134
|
});
|
|
2342
2135
|
}); };
|
|
2343
2136
|
var deserializeAws_restJson1ListNotificationChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2344
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2345
|
-
var
|
|
2346
|
-
return __generator(this, function (
|
|
2347
|
-
switch (
|
|
2137
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2138
|
+
var _c;
|
|
2139
|
+
return __generator(this, function (_d) {
|
|
2140
|
+
switch (_d.label) {
|
|
2348
2141
|
case 0:
|
|
2349
2142
|
_a = [__assign({}, output)];
|
|
2350
|
-
|
|
2143
|
+
_c = {};
|
|
2351
2144
|
return [4, parseBody(output.body, context)];
|
|
2352
2145
|
case 1:
|
|
2353
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2146
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2354
2147
|
errorCode = "UnknownError";
|
|
2355
2148
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2356
2149
|
_b = errorCode;
|
|
@@ -2365,40 +2158,22 @@ var deserializeAws_restJson1ListNotificationChannelsCommandError = function (out
|
|
|
2365
2158
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
2366
2159
|
}
|
|
2367
2160
|
return [3, 10];
|
|
2368
|
-
case 2:
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
case
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
case 4
|
|
2375
|
-
|
|
2376
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2377
|
-
case 5:
|
|
2378
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2379
|
-
return [3, 11];
|
|
2380
|
-
case 6:
|
|
2381
|
-
_e = [{}];
|
|
2382
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2383
|
-
case 7:
|
|
2384
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2385
|
-
return [3, 11];
|
|
2386
|
-
case 8:
|
|
2387
|
-
_f = [{}];
|
|
2388
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2389
|
-
case 9:
|
|
2390
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2391
|
-
return [3, 11];
|
|
2161
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2162
|
+
case 3: throw _d.sent();
|
|
2163
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2164
|
+
case 5: throw _d.sent();
|
|
2165
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2166
|
+
case 7: throw _d.sent();
|
|
2167
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2168
|
+
case 9: throw _d.sent();
|
|
2392
2169
|
case 10:
|
|
2393
2170
|
parsedBody = parsedOutput.body;
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
response
|
|
2400
|
-
delete response.Message;
|
|
2401
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2171
|
+
response = new __BaseException({
|
|
2172
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2173
|
+
$fault: "client",
|
|
2174
|
+
$metadata: deserializeMetadata(output),
|
|
2175
|
+
});
|
|
2176
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2402
2177
|
}
|
|
2403
2178
|
});
|
|
2404
2179
|
}); };
|
|
@@ -2435,16 +2210,16 @@ export var deserializeAws_restJson1ListOrganizationInsightsCommand = function (o
|
|
|
2435
2210
|
});
|
|
2436
2211
|
}); };
|
|
2437
2212
|
var deserializeAws_restJson1ListOrganizationInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2438
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2439
|
-
var
|
|
2440
|
-
return __generator(this, function (
|
|
2441
|
-
switch (
|
|
2213
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2214
|
+
var _c;
|
|
2215
|
+
return __generator(this, function (_d) {
|
|
2216
|
+
switch (_d.label) {
|
|
2442
2217
|
case 0:
|
|
2443
2218
|
_a = [__assign({}, output)];
|
|
2444
|
-
|
|
2219
|
+
_c = {};
|
|
2445
2220
|
return [4, parseBody(output.body, context)];
|
|
2446
2221
|
case 1:
|
|
2447
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2222
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2448
2223
|
errorCode = "UnknownError";
|
|
2449
2224
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2450
2225
|
_b = errorCode;
|
|
@@ -2459,40 +2234,22 @@ var deserializeAws_restJson1ListOrganizationInsightsCommandError = function (out
|
|
|
2459
2234
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
2460
2235
|
}
|
|
2461
2236
|
return [3, 10];
|
|
2462
|
-
case 2:
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
case
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
case 4
|
|
2469
|
-
|
|
2470
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2471
|
-
case 5:
|
|
2472
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2473
|
-
return [3, 11];
|
|
2474
|
-
case 6:
|
|
2475
|
-
_e = [{}];
|
|
2476
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2477
|
-
case 7:
|
|
2478
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2479
|
-
return [3, 11];
|
|
2480
|
-
case 8:
|
|
2481
|
-
_f = [{}];
|
|
2482
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2483
|
-
case 9:
|
|
2484
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2485
|
-
return [3, 11];
|
|
2237
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2238
|
+
case 3: throw _d.sent();
|
|
2239
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2240
|
+
case 5: throw _d.sent();
|
|
2241
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2242
|
+
case 7: throw _d.sent();
|
|
2243
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2244
|
+
case 9: throw _d.sent();
|
|
2486
2245
|
case 10:
|
|
2487
2246
|
parsedBody = parsedOutput.body;
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
response
|
|
2494
|
-
delete response.Message;
|
|
2495
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2247
|
+
response = new __BaseException({
|
|
2248
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2249
|
+
$fault: "client",
|
|
2250
|
+
$metadata: deserializeMetadata(output),
|
|
2251
|
+
});
|
|
2252
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2496
2253
|
}
|
|
2497
2254
|
});
|
|
2498
2255
|
}); };
|
|
@@ -2525,16 +2282,16 @@ export var deserializeAws_restJson1ListRecommendationsCommand = function (output
|
|
|
2525
2282
|
});
|
|
2526
2283
|
}); };
|
|
2527
2284
|
var deserializeAws_restJson1ListRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2528
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2529
|
-
var
|
|
2530
|
-
return __generator(this, function (
|
|
2531
|
-
switch (
|
|
2285
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2286
|
+
var _c;
|
|
2287
|
+
return __generator(this, function (_d) {
|
|
2288
|
+
switch (_d.label) {
|
|
2532
2289
|
case 0:
|
|
2533
2290
|
_a = [__assign({}, output)];
|
|
2534
|
-
|
|
2291
|
+
_c = {};
|
|
2535
2292
|
return [4, parseBody(output.body, context)];
|
|
2536
2293
|
case 1:
|
|
2537
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2294
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2538
2295
|
errorCode = "UnknownError";
|
|
2539
2296
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2540
2297
|
_b = errorCode;
|
|
@@ -2551,46 +2308,24 @@ var deserializeAws_restJson1ListRecommendationsCommandError = function (output,
|
|
|
2551
2308
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
|
|
2552
2309
|
}
|
|
2553
2310
|
return [3, 12];
|
|
2554
|
-
case 2:
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
case
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
case 4
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
case
|
|
2564
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2565
|
-
return [3, 13];
|
|
2566
|
-
case 6:
|
|
2567
|
-
_e = [{}];
|
|
2568
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2569
|
-
case 7:
|
|
2570
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2571
|
-
return [3, 13];
|
|
2572
|
-
case 8:
|
|
2573
|
-
_f = [{}];
|
|
2574
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2575
|
-
case 9:
|
|
2576
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2577
|
-
return [3, 13];
|
|
2578
|
-
case 10:
|
|
2579
|
-
_g = [{}];
|
|
2580
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2581
|
-
case 11:
|
|
2582
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2583
|
-
return [3, 13];
|
|
2311
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2312
|
+
case 3: throw _d.sent();
|
|
2313
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2314
|
+
case 5: throw _d.sent();
|
|
2315
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2316
|
+
case 7: throw _d.sent();
|
|
2317
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2318
|
+
case 9: throw _d.sent();
|
|
2319
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2320
|
+
case 11: throw _d.sent();
|
|
2584
2321
|
case 12:
|
|
2585
2322
|
parsedBody = parsedOutput.body;
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
response
|
|
2592
|
-
delete response.Message;
|
|
2593
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2323
|
+
response = new __BaseException({
|
|
2324
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2325
|
+
$fault: "client",
|
|
2326
|
+
$metadata: deserializeMetadata(output),
|
|
2327
|
+
});
|
|
2328
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2594
2329
|
}
|
|
2595
2330
|
});
|
|
2596
2331
|
}); };
|
|
@@ -2613,16 +2348,16 @@ export var deserializeAws_restJson1PutFeedbackCommand = function (output, contex
|
|
|
2613
2348
|
});
|
|
2614
2349
|
}); };
|
|
2615
2350
|
var deserializeAws_restJson1PutFeedbackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2616
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2617
|
-
var
|
|
2618
|
-
return __generator(this, function (
|
|
2619
|
-
switch (
|
|
2351
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2352
|
+
var _c;
|
|
2353
|
+
return __generator(this, function (_d) {
|
|
2354
|
+
switch (_d.label) {
|
|
2620
2355
|
case 0:
|
|
2621
2356
|
_a = [__assign({}, output)];
|
|
2622
|
-
|
|
2357
|
+
_c = {};
|
|
2623
2358
|
return [4, parseBody(output.body, context)];
|
|
2624
2359
|
case 1:
|
|
2625
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2360
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2626
2361
|
errorCode = "UnknownError";
|
|
2627
2362
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2628
2363
|
_b = errorCode;
|
|
@@ -2641,52 +2376,26 @@ var deserializeAws_restJson1PutFeedbackCommandError = function (output, context)
|
|
|
2641
2376
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 12];
|
|
2642
2377
|
}
|
|
2643
2378
|
return [3, 14];
|
|
2644
|
-
case 2:
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
case
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
case 4
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
case
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
case 6:
|
|
2657
|
-
_e = [{}];
|
|
2658
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2659
|
-
case 7:
|
|
2660
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2661
|
-
return [3, 15];
|
|
2662
|
-
case 8:
|
|
2663
|
-
_f = [{}];
|
|
2664
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2665
|
-
case 9:
|
|
2666
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2667
|
-
return [3, 15];
|
|
2668
|
-
case 10:
|
|
2669
|
-
_g = [{}];
|
|
2670
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2671
|
-
case 11:
|
|
2672
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2673
|
-
return [3, 15];
|
|
2674
|
-
case 12:
|
|
2675
|
-
_h = [{}];
|
|
2676
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2677
|
-
case 13:
|
|
2678
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2679
|
-
return [3, 15];
|
|
2379
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2380
|
+
case 3: throw _d.sent();
|
|
2381
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2382
|
+
case 5: throw _d.sent();
|
|
2383
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2384
|
+
case 7: throw _d.sent();
|
|
2385
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2386
|
+
case 9: throw _d.sent();
|
|
2387
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2388
|
+
case 11: throw _d.sent();
|
|
2389
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2390
|
+
case 13: throw _d.sent();
|
|
2680
2391
|
case 14:
|
|
2681
2392
|
parsedBody = parsedOutput.body;
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
response
|
|
2688
|
-
delete response.Message;
|
|
2689
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2393
|
+
response = new __BaseException({
|
|
2394
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2395
|
+
$fault: "client",
|
|
2396
|
+
$metadata: deserializeMetadata(output),
|
|
2397
|
+
});
|
|
2398
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2690
2399
|
}
|
|
2691
2400
|
});
|
|
2692
2401
|
}); };
|
|
@@ -2709,16 +2418,16 @@ export var deserializeAws_restJson1RemoveNotificationChannelCommand = function (
|
|
|
2709
2418
|
});
|
|
2710
2419
|
}); };
|
|
2711
2420
|
var deserializeAws_restJson1RemoveNotificationChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2712
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2713
|
-
var
|
|
2714
|
-
return __generator(this, function (
|
|
2715
|
-
switch (
|
|
2421
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2422
|
+
var _c;
|
|
2423
|
+
return __generator(this, function (_d) {
|
|
2424
|
+
switch (_d.label) {
|
|
2716
2425
|
case 0:
|
|
2717
2426
|
_a = [__assign({}, output)];
|
|
2718
|
-
|
|
2427
|
+
_c = {};
|
|
2719
2428
|
return [4, parseBody(output.body, context)];
|
|
2720
2429
|
case 1:
|
|
2721
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2430
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2722
2431
|
errorCode = "UnknownError";
|
|
2723
2432
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2724
2433
|
_b = errorCode;
|
|
@@ -2737,52 +2446,26 @@ var deserializeAws_restJson1RemoveNotificationChannelCommandError = function (ou
|
|
|
2737
2446
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 12];
|
|
2738
2447
|
}
|
|
2739
2448
|
return [3, 14];
|
|
2740
|
-
case 2:
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
case
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
case 4
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
case
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
case 6:
|
|
2753
|
-
_e = [{}];
|
|
2754
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2755
|
-
case 7:
|
|
2756
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2757
|
-
return [3, 15];
|
|
2758
|
-
case 8:
|
|
2759
|
-
_f = [{}];
|
|
2760
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2761
|
-
case 9:
|
|
2762
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2763
|
-
return [3, 15];
|
|
2764
|
-
case 10:
|
|
2765
|
-
_g = [{}];
|
|
2766
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2767
|
-
case 11:
|
|
2768
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2769
|
-
return [3, 15];
|
|
2770
|
-
case 12:
|
|
2771
|
-
_h = [{}];
|
|
2772
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2773
|
-
case 13:
|
|
2774
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2775
|
-
return [3, 15];
|
|
2449
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2450
|
+
case 3: throw _d.sent();
|
|
2451
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2452
|
+
case 5: throw _d.sent();
|
|
2453
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2454
|
+
case 7: throw _d.sent();
|
|
2455
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2456
|
+
case 9: throw _d.sent();
|
|
2457
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2458
|
+
case 11: throw _d.sent();
|
|
2459
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2460
|
+
case 13: throw _d.sent();
|
|
2776
2461
|
case 14:
|
|
2777
2462
|
parsedBody = parsedOutput.body;
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
response
|
|
2784
|
-
delete response.Message;
|
|
2785
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2463
|
+
response = new __BaseException({
|
|
2464
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2465
|
+
$fault: "client",
|
|
2466
|
+
$metadata: deserializeMetadata(output),
|
|
2467
|
+
});
|
|
2468
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2786
2469
|
}
|
|
2787
2470
|
});
|
|
2788
2471
|
}); };
|
|
@@ -2819,16 +2502,16 @@ export var deserializeAws_restJson1SearchInsightsCommand = function (output, con
|
|
|
2819
2502
|
});
|
|
2820
2503
|
}); };
|
|
2821
2504
|
var deserializeAws_restJson1SearchInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2822
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2823
|
-
var
|
|
2824
|
-
return __generator(this, function (
|
|
2825
|
-
switch (
|
|
2505
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2506
|
+
var _c;
|
|
2507
|
+
return __generator(this, function (_d) {
|
|
2508
|
+
switch (_d.label) {
|
|
2826
2509
|
case 0:
|
|
2827
2510
|
_a = [__assign({}, output)];
|
|
2828
|
-
|
|
2511
|
+
_c = {};
|
|
2829
2512
|
return [4, parseBody(output.body, context)];
|
|
2830
2513
|
case 1:
|
|
2831
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2514
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2832
2515
|
errorCode = "UnknownError";
|
|
2833
2516
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2834
2517
|
_b = errorCode;
|
|
@@ -2843,40 +2526,22 @@ var deserializeAws_restJson1SearchInsightsCommandError = function (output, conte
|
|
|
2843
2526
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
2844
2527
|
}
|
|
2845
2528
|
return [3, 10];
|
|
2846
|
-
case 2:
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
case
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
case 4
|
|
2853
|
-
|
|
2854
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2855
|
-
case 5:
|
|
2856
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2857
|
-
return [3, 11];
|
|
2858
|
-
case 6:
|
|
2859
|
-
_e = [{}];
|
|
2860
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2861
|
-
case 7:
|
|
2862
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2863
|
-
return [3, 11];
|
|
2864
|
-
case 8:
|
|
2865
|
-
_f = [{}];
|
|
2866
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2867
|
-
case 9:
|
|
2868
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2869
|
-
return [3, 11];
|
|
2529
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2530
|
+
case 3: throw _d.sent();
|
|
2531
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2532
|
+
case 5: throw _d.sent();
|
|
2533
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2534
|
+
case 7: throw _d.sent();
|
|
2535
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2536
|
+
case 9: throw _d.sent();
|
|
2870
2537
|
case 10:
|
|
2871
2538
|
parsedBody = parsedOutput.body;
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
response
|
|
2878
|
-
delete response.Message;
|
|
2879
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2539
|
+
response = new __BaseException({
|
|
2540
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2541
|
+
$fault: "client",
|
|
2542
|
+
$metadata: deserializeMetadata(output),
|
|
2543
|
+
});
|
|
2544
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2880
2545
|
}
|
|
2881
2546
|
});
|
|
2882
2547
|
}); };
|
|
@@ -2913,16 +2578,16 @@ export var deserializeAws_restJson1SearchOrganizationInsightsCommand = function
|
|
|
2913
2578
|
});
|
|
2914
2579
|
}); };
|
|
2915
2580
|
var deserializeAws_restJson1SearchOrganizationInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2916
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2917
|
-
var
|
|
2918
|
-
return __generator(this, function (
|
|
2919
|
-
switch (
|
|
2581
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2582
|
+
var _c;
|
|
2583
|
+
return __generator(this, function (_d) {
|
|
2584
|
+
switch (_d.label) {
|
|
2920
2585
|
case 0:
|
|
2921
2586
|
_a = [__assign({}, output)];
|
|
2922
|
-
|
|
2587
|
+
_c = {};
|
|
2923
2588
|
return [4, parseBody(output.body, context)];
|
|
2924
2589
|
case 1:
|
|
2925
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2590
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2926
2591
|
errorCode = "UnknownError";
|
|
2927
2592
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2928
2593
|
_b = errorCode;
|
|
@@ -2937,40 +2602,22 @@ var deserializeAws_restJson1SearchOrganizationInsightsCommandError = function (o
|
|
|
2937
2602
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
2938
2603
|
}
|
|
2939
2604
|
return [3, 10];
|
|
2940
|
-
case 2:
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
case
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
case 4
|
|
2947
|
-
|
|
2948
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2949
|
-
case 5:
|
|
2950
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2951
|
-
return [3, 11];
|
|
2952
|
-
case 6:
|
|
2953
|
-
_e = [{}];
|
|
2954
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2955
|
-
case 7:
|
|
2956
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2957
|
-
return [3, 11];
|
|
2958
|
-
case 8:
|
|
2959
|
-
_f = [{}];
|
|
2960
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2961
|
-
case 9:
|
|
2962
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2963
|
-
return [3, 11];
|
|
2605
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2606
|
+
case 3: throw _d.sent();
|
|
2607
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2608
|
+
case 5: throw _d.sent();
|
|
2609
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2610
|
+
case 7: throw _d.sent();
|
|
2611
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2612
|
+
case 9: throw _d.sent();
|
|
2964
2613
|
case 10:
|
|
2965
2614
|
parsedBody = parsedOutput.body;
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
response
|
|
2972
|
-
delete response.Message;
|
|
2973
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2615
|
+
response = new __BaseException({
|
|
2616
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2617
|
+
$fault: "client",
|
|
2618
|
+
$metadata: deserializeMetadata(output),
|
|
2619
|
+
});
|
|
2620
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2974
2621
|
}
|
|
2975
2622
|
});
|
|
2976
2623
|
}); };
|
|
@@ -2993,16 +2640,16 @@ export var deserializeAws_restJson1StartCostEstimationCommand = function (output
|
|
|
2993
2640
|
});
|
|
2994
2641
|
}); };
|
|
2995
2642
|
var deserializeAws_restJson1StartCostEstimationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2996
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2997
|
-
var
|
|
2998
|
-
return __generator(this, function (
|
|
2999
|
-
switch (
|
|
2643
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2644
|
+
var _c;
|
|
2645
|
+
return __generator(this, function (_d) {
|
|
2646
|
+
switch (_d.label) {
|
|
3000
2647
|
case 0:
|
|
3001
2648
|
_a = [__assign({}, output)];
|
|
3002
|
-
|
|
2649
|
+
_c = {};
|
|
3003
2650
|
return [4, parseBody(output.body, context)];
|
|
3004
2651
|
case 1:
|
|
3005
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2652
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3006
2653
|
errorCode = "UnknownError";
|
|
3007
2654
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3008
2655
|
_b = errorCode;
|
|
@@ -3021,52 +2668,88 @@ var deserializeAws_restJson1StartCostEstimationCommandError = function (output,
|
|
|
3021
2668
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 12];
|
|
3022
2669
|
}
|
|
3023
2670
|
return [3, 14];
|
|
3024
|
-
case 2:
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
case
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
case 4
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
case
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
case 6:
|
|
3037
|
-
_e = [{}];
|
|
3038
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3039
|
-
case 7:
|
|
3040
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3041
|
-
return [3, 15];
|
|
3042
|
-
case 8:
|
|
3043
|
-
_f = [{}];
|
|
3044
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3045
|
-
case 9:
|
|
3046
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3047
|
-
return [3, 15];
|
|
3048
|
-
case 10:
|
|
3049
|
-
_g = [{}];
|
|
3050
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3051
|
-
case 11:
|
|
3052
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3053
|
-
return [3, 15];
|
|
3054
|
-
case 12:
|
|
3055
|
-
_h = [{}];
|
|
3056
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3057
|
-
case 13:
|
|
3058
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3059
|
-
return [3, 15];
|
|
2671
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2672
|
+
case 3: throw _d.sent();
|
|
2673
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2674
|
+
case 5: throw _d.sent();
|
|
2675
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2676
|
+
case 7: throw _d.sent();
|
|
2677
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2678
|
+
case 9: throw _d.sent();
|
|
2679
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2680
|
+
case 11: throw _d.sent();
|
|
2681
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2682
|
+
case 13: throw _d.sent();
|
|
3060
2683
|
case 14:
|
|
3061
2684
|
parsedBody = parsedOutput.body;
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
response
|
|
3068
|
-
|
|
3069
|
-
|
|
2685
|
+
response = new __BaseException({
|
|
2686
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2687
|
+
$fault: "client",
|
|
2688
|
+
$metadata: deserializeMetadata(output),
|
|
2689
|
+
});
|
|
2690
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2691
|
+
}
|
|
2692
|
+
});
|
|
2693
|
+
}); };
|
|
2694
|
+
export var deserializeAws_restJson1UpdateEventSourcesConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2695
|
+
var contents;
|
|
2696
|
+
return __generator(this, function (_a) {
|
|
2697
|
+
switch (_a.label) {
|
|
2698
|
+
case 0:
|
|
2699
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2700
|
+
return [2, deserializeAws_restJson1UpdateEventSourcesConfigCommandError(output, context)];
|
|
2701
|
+
}
|
|
2702
|
+
contents = {
|
|
2703
|
+
$metadata: deserializeMetadata(output),
|
|
2704
|
+
};
|
|
2705
|
+
return [4, collectBody(output.body, context)];
|
|
2706
|
+
case 1:
|
|
2707
|
+
_a.sent();
|
|
2708
|
+
return [2, Promise.resolve(contents)];
|
|
2709
|
+
}
|
|
2710
|
+
});
|
|
2711
|
+
}); };
|
|
2712
|
+
var deserializeAws_restJson1UpdateEventSourcesConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2713
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2714
|
+
var _c;
|
|
2715
|
+
return __generator(this, function (_d) {
|
|
2716
|
+
switch (_d.label) {
|
|
2717
|
+
case 0:
|
|
2718
|
+
_a = [__assign({}, output)];
|
|
2719
|
+
_c = {};
|
|
2720
|
+
return [4, parseBody(output.body, context)];
|
|
2721
|
+
case 1:
|
|
2722
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2723
|
+
errorCode = "UnknownError";
|
|
2724
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2725
|
+
_b = errorCode;
|
|
2726
|
+
switch (_b) {
|
|
2727
|
+
case "AccessDeniedException": return [3, 2];
|
|
2728
|
+
case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
|
|
2729
|
+
case "InternalServerException": return [3, 4];
|
|
2730
|
+
case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
|
|
2731
|
+
case "ThrottlingException": return [3, 6];
|
|
2732
|
+
case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
|
|
2733
|
+
case "ValidationException": return [3, 8];
|
|
2734
|
+
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
2735
|
+
}
|
|
2736
|
+
return [3, 10];
|
|
2737
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2738
|
+
case 3: throw _d.sent();
|
|
2739
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2740
|
+
case 5: throw _d.sent();
|
|
2741
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2742
|
+
case 7: throw _d.sent();
|
|
2743
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2744
|
+
case 9: throw _d.sent();
|
|
2745
|
+
case 10:
|
|
2746
|
+
parsedBody = parsedOutput.body;
|
|
2747
|
+
response = new __BaseException({
|
|
2748
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2749
|
+
$fault: "client",
|
|
2750
|
+
$metadata: deserializeMetadata(output),
|
|
2751
|
+
});
|
|
2752
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3070
2753
|
}
|
|
3071
2754
|
});
|
|
3072
2755
|
}); };
|
|
@@ -3089,16 +2772,16 @@ export var deserializeAws_restJson1UpdateResourceCollectionCommand = function (o
|
|
|
3089
2772
|
});
|
|
3090
2773
|
}); };
|
|
3091
2774
|
var deserializeAws_restJson1UpdateResourceCollectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3092
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3093
|
-
var
|
|
3094
|
-
return __generator(this, function (
|
|
3095
|
-
switch (
|
|
2775
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2776
|
+
var _c;
|
|
2777
|
+
return __generator(this, function (_d) {
|
|
2778
|
+
switch (_d.label) {
|
|
3096
2779
|
case 0:
|
|
3097
2780
|
_a = [__assign({}, output)];
|
|
3098
|
-
|
|
2781
|
+
_c = {};
|
|
3099
2782
|
return [4, parseBody(output.body, context)];
|
|
3100
2783
|
case 1:
|
|
3101
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2784
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3102
2785
|
errorCode = "UnknownError";
|
|
3103
2786
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3104
2787
|
_b = errorCode;
|
|
@@ -3115,46 +2798,24 @@ var deserializeAws_restJson1UpdateResourceCollectionCommandError = function (out
|
|
|
3115
2798
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
|
|
3116
2799
|
}
|
|
3117
2800
|
return [3, 12];
|
|
3118
|
-
case 2:
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
case
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
case 4
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
case
|
|
3128
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3129
|
-
return [3, 13];
|
|
3130
|
-
case 6:
|
|
3131
|
-
_e = [{}];
|
|
3132
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3133
|
-
case 7:
|
|
3134
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3135
|
-
return [3, 13];
|
|
3136
|
-
case 8:
|
|
3137
|
-
_f = [{}];
|
|
3138
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3139
|
-
case 9:
|
|
3140
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3141
|
-
return [3, 13];
|
|
3142
|
-
case 10:
|
|
3143
|
-
_g = [{}];
|
|
3144
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3145
|
-
case 11:
|
|
3146
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3147
|
-
return [3, 13];
|
|
2801
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2802
|
+
case 3: throw _d.sent();
|
|
2803
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2804
|
+
case 5: throw _d.sent();
|
|
2805
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2806
|
+
case 7: throw _d.sent();
|
|
2807
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2808
|
+
case 9: throw _d.sent();
|
|
2809
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2810
|
+
case 11: throw _d.sent();
|
|
3148
2811
|
case 12:
|
|
3149
2812
|
parsedBody = parsedOutput.body;
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
response
|
|
3156
|
-
delete response.Message;
|
|
3157
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2813
|
+
response = new __BaseException({
|
|
2814
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2815
|
+
$fault: "client",
|
|
2816
|
+
$metadata: deserializeMetadata(output),
|
|
2817
|
+
});
|
|
2818
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3158
2819
|
}
|
|
3159
2820
|
});
|
|
3160
2821
|
}); };
|
|
@@ -3177,16 +2838,16 @@ export var deserializeAws_restJson1UpdateServiceIntegrationCommand = function (o
|
|
|
3177
2838
|
});
|
|
3178
2839
|
}); };
|
|
3179
2840
|
var deserializeAws_restJson1UpdateServiceIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3180
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3181
|
-
var
|
|
3182
|
-
return __generator(this, function (
|
|
3183
|
-
switch (
|
|
2841
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2842
|
+
var _c;
|
|
2843
|
+
return __generator(this, function (_d) {
|
|
2844
|
+
switch (_d.label) {
|
|
3184
2845
|
case 0:
|
|
3185
2846
|
_a = [__assign({}, output)];
|
|
3186
|
-
|
|
2847
|
+
_c = {};
|
|
3187
2848
|
return [4, parseBody(output.body, context)];
|
|
3188
2849
|
case 1:
|
|
3189
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2850
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3190
2851
|
errorCode = "UnknownError";
|
|
3191
2852
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3192
2853
|
_b = errorCode;
|
|
@@ -3203,76 +2864,43 @@ var deserializeAws_restJson1UpdateServiceIntegrationCommandError = function (out
|
|
|
3203
2864
|
case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
|
|
3204
2865
|
}
|
|
3205
2866
|
return [3, 12];
|
|
3206
|
-
case 2:
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
case
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
case 4
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
case
|
|
3216
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3217
|
-
return [3, 13];
|
|
3218
|
-
case 6:
|
|
3219
|
-
_e = [{}];
|
|
3220
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3221
|
-
case 7:
|
|
3222
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3223
|
-
return [3, 13];
|
|
3224
|
-
case 8:
|
|
3225
|
-
_f = [{}];
|
|
3226
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3227
|
-
case 9:
|
|
3228
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3229
|
-
return [3, 13];
|
|
3230
|
-
case 10:
|
|
3231
|
-
_g = [{}];
|
|
3232
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3233
|
-
case 11:
|
|
3234
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3235
|
-
return [3, 13];
|
|
2867
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2868
|
+
case 3: throw _d.sent();
|
|
2869
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2870
|
+
case 5: throw _d.sent();
|
|
2871
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2872
|
+
case 7: throw _d.sent();
|
|
2873
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2874
|
+
case 9: throw _d.sent();
|
|
2875
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2876
|
+
case 11: throw _d.sent();
|
|
3236
2877
|
case 12:
|
|
3237
2878
|
parsedBody = parsedOutput.body;
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
response
|
|
3244
|
-
delete response.Message;
|
|
3245
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2879
|
+
response = new __BaseException({
|
|
2880
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2881
|
+
$fault: "client",
|
|
2882
|
+
$metadata: deserializeMetadata(output),
|
|
2883
|
+
});
|
|
2884
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3246
2885
|
}
|
|
3247
2886
|
});
|
|
3248
2887
|
}); };
|
|
3249
2888
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3250
|
-
var contents, data;
|
|
2889
|
+
var contents, data, exception;
|
|
3251
2890
|
return __generator(this, function (_a) {
|
|
3252
|
-
contents = {
|
|
3253
|
-
name: "AccessDeniedException",
|
|
3254
|
-
$fault: "client",
|
|
3255
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3256
|
-
Message: undefined,
|
|
3257
|
-
};
|
|
2891
|
+
contents = {};
|
|
3258
2892
|
data = parsedOutput.body;
|
|
3259
2893
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3260
2894
|
contents.Message = __expectString(data.Message);
|
|
3261
2895
|
}
|
|
3262
|
-
|
|
2896
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2897
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3263
2898
|
});
|
|
3264
2899
|
}); };
|
|
3265
2900
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3266
|
-
var contents, data;
|
|
2901
|
+
var contents, data, exception;
|
|
3267
2902
|
return __generator(this, function (_a) {
|
|
3268
|
-
contents = {
|
|
3269
|
-
name: "ConflictException",
|
|
3270
|
-
$fault: "client",
|
|
3271
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3272
|
-
Message: undefined,
|
|
3273
|
-
ResourceId: undefined,
|
|
3274
|
-
ResourceType: undefined,
|
|
3275
|
-
};
|
|
2903
|
+
contents = {};
|
|
3276
2904
|
data = parsedOutput.body;
|
|
3277
2905
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3278
2906
|
contents.Message = __expectString(data.Message);
|
|
@@ -3283,19 +2911,14 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
3283
2911
|
if (data.ResourceType !== undefined && data.ResourceType !== null) {
|
|
3284
2912
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
3285
2913
|
}
|
|
3286
|
-
|
|
2914
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2915
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3287
2916
|
});
|
|
3288
2917
|
}); };
|
|
3289
2918
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3290
|
-
var contents, data;
|
|
2919
|
+
var contents, data, exception;
|
|
3291
2920
|
return __generator(this, function (_a) {
|
|
3292
|
-
contents = {
|
|
3293
|
-
name: "InternalServerException",
|
|
3294
|
-
$fault: "server",
|
|
3295
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3296
|
-
Message: undefined,
|
|
3297
|
-
RetryAfterSeconds: undefined,
|
|
3298
|
-
};
|
|
2921
|
+
contents = {};
|
|
3299
2922
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
3300
2923
|
contents.RetryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
3301
2924
|
}
|
|
@@ -3303,20 +2926,14 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
3303
2926
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3304
2927
|
contents.Message = __expectString(data.Message);
|
|
3305
2928
|
}
|
|
3306
|
-
|
|
2929
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2930
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3307
2931
|
});
|
|
3308
2932
|
}); };
|
|
3309
2933
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3310
|
-
var contents, data;
|
|
2934
|
+
var contents, data, exception;
|
|
3311
2935
|
return __generator(this, function (_a) {
|
|
3312
|
-
contents = {
|
|
3313
|
-
name: "ResourceNotFoundException",
|
|
3314
|
-
$fault: "client",
|
|
3315
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3316
|
-
Message: undefined,
|
|
3317
|
-
ResourceId: undefined,
|
|
3318
|
-
ResourceType: undefined,
|
|
3319
|
-
};
|
|
2936
|
+
contents = {};
|
|
3320
2937
|
data = parsedOutput.body;
|
|
3321
2938
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3322
2939
|
contents.Message = __expectString(data.Message);
|
|
@@ -3327,37 +2944,26 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
3327
2944
|
if (data.ResourceType !== undefined && data.ResourceType !== null) {
|
|
3328
2945
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
3329
2946
|
}
|
|
3330
|
-
|
|
2947
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2948
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3331
2949
|
});
|
|
3332
2950
|
}); };
|
|
3333
2951
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3334
|
-
var contents, data;
|
|
2952
|
+
var contents, data, exception;
|
|
3335
2953
|
return __generator(this, function (_a) {
|
|
3336
|
-
contents = {
|
|
3337
|
-
name: "ServiceQuotaExceededException",
|
|
3338
|
-
$fault: "client",
|
|
3339
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3340
|
-
Message: undefined,
|
|
3341
|
-
};
|
|
2954
|
+
contents = {};
|
|
3342
2955
|
data = parsedOutput.body;
|
|
3343
2956
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3344
2957
|
contents.Message = __expectString(data.Message);
|
|
3345
2958
|
}
|
|
3346
|
-
|
|
2959
|
+
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2960
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3347
2961
|
});
|
|
3348
2962
|
}); };
|
|
3349
2963
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3350
|
-
var contents, data;
|
|
2964
|
+
var contents, data, exception;
|
|
3351
2965
|
return __generator(this, function (_a) {
|
|
3352
|
-
contents = {
|
|
3353
|
-
name: "ThrottlingException",
|
|
3354
|
-
$fault: "client",
|
|
3355
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3356
|
-
Message: undefined,
|
|
3357
|
-
QuotaCode: undefined,
|
|
3358
|
-
RetryAfterSeconds: undefined,
|
|
3359
|
-
ServiceCode: undefined,
|
|
3360
|
-
};
|
|
2966
|
+
contents = {};
|
|
3361
2967
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
3362
2968
|
contents.RetryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
3363
2969
|
}
|
|
@@ -3371,20 +2977,14 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
3371
2977
|
if (data.ServiceCode !== undefined && data.ServiceCode !== null) {
|
|
3372
2978
|
contents.ServiceCode = __expectString(data.ServiceCode);
|
|
3373
2979
|
}
|
|
3374
|
-
|
|
2980
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2981
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3375
2982
|
});
|
|
3376
2983
|
}); };
|
|
3377
2984
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3378
|
-
var contents, data;
|
|
2985
|
+
var contents, data, exception;
|
|
3379
2986
|
return __generator(this, function (_a) {
|
|
3380
|
-
contents = {
|
|
3381
|
-
name: "ValidationException",
|
|
3382
|
-
$fault: "client",
|
|
3383
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3384
|
-
Fields: undefined,
|
|
3385
|
-
Message: undefined,
|
|
3386
|
-
Reason: undefined,
|
|
3387
|
-
};
|
|
2987
|
+
contents = {};
|
|
3388
2988
|
data = parsedOutput.body;
|
|
3389
2989
|
if (data.Fields !== undefined && data.Fields !== null) {
|
|
3390
2990
|
contents.Fields = deserializeAws_restJson1ValidationExceptionFields(data.Fields, context);
|
|
@@ -3395,7 +2995,8 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
3395
2995
|
if (data.Reason !== undefined && data.Reason !== null) {
|
|
3396
2996
|
contents.Reason = __expectString(data.Reason);
|
|
3397
2997
|
}
|
|
3398
|
-
|
|
2998
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2999
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3399
3000
|
});
|
|
3400
3001
|
}); };
|
|
3401
3002
|
var serializeAws_restJson1AccountIdList = function (input, context) {
|
|
@@ -3408,6 +3009,9 @@ var serializeAws_restJson1AccountIdList = function (input, context) {
|
|
|
3408
3009
|
return entry;
|
|
3409
3010
|
});
|
|
3410
3011
|
};
|
|
3012
|
+
var serializeAws_restJson1AmazonCodeGuruProfilerIntegration = function (input, context) {
|
|
3013
|
+
return __assign({}, (input.Status !== undefined && input.Status !== null && { Status: input.Status }));
|
|
3014
|
+
};
|
|
3411
3015
|
var serializeAws_restJson1CloudFormationCollection = function (input, context) {
|
|
3412
3016
|
return __assign({}, (input.StackNames !== undefined &&
|
|
3413
3017
|
input.StackNames !== null && { StackNames: serializeAws_restJson1StackNames(input.StackNames, context) }));
|
|
@@ -3451,6 +3055,12 @@ var serializeAws_restJson1EndTimeRange = function (input, context) {
|
|
|
3451
3055
|
return __assign(__assign({}, (input.FromTime !== undefined &&
|
|
3452
3056
|
input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
|
|
3453
3057
|
};
|
|
3058
|
+
var serializeAws_restJson1EventSourcesConfig = function (input, context) {
|
|
3059
|
+
return __assign({}, (input.AmazonCodeGuruProfiler !== undefined &&
|
|
3060
|
+
input.AmazonCodeGuruProfiler !== null && {
|
|
3061
|
+
AmazonCodeGuruProfiler: serializeAws_restJson1AmazonCodeGuruProfilerIntegration(input.AmazonCodeGuruProfiler, context),
|
|
3062
|
+
}));
|
|
3063
|
+
};
|
|
3454
3064
|
var serializeAws_restJson1EventTimeRange = function (input, context) {
|
|
3455
3065
|
return __assign(__assign({}, (input.FromTime !== undefined &&
|
|
3456
3066
|
input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
|
|
@@ -3718,7 +3328,7 @@ var deserializeAws_restJson1AccountHealth = function (output, context) {
|
|
|
3718
3328
|
};
|
|
3719
3329
|
};
|
|
3720
3330
|
var deserializeAws_restJson1AccountHealths = function (output, context) {
|
|
3721
|
-
|
|
3331
|
+
var retVal = (output || [])
|
|
3722
3332
|
.filter(function (e) { return e != null; })
|
|
3723
3333
|
.map(function (entry) {
|
|
3724
3334
|
if (entry === null) {
|
|
@@ -3726,6 +3336,7 @@ var deserializeAws_restJson1AccountHealths = function (output, context) {
|
|
|
3726
3336
|
}
|
|
3727
3337
|
return deserializeAws_restJson1AccountHealth(entry, context);
|
|
3728
3338
|
});
|
|
3339
|
+
return retVal;
|
|
3729
3340
|
};
|
|
3730
3341
|
var deserializeAws_restJson1AccountInsightHealth = function (output, context) {
|
|
3731
3342
|
return {
|
|
@@ -3733,6 +3344,11 @@ var deserializeAws_restJson1AccountInsightHealth = function (output, context) {
|
|
|
3733
3344
|
OpenReactiveInsights: __expectInt32(output.OpenReactiveInsights),
|
|
3734
3345
|
};
|
|
3735
3346
|
};
|
|
3347
|
+
var deserializeAws_restJson1AmazonCodeGuruProfilerIntegration = function (output, context) {
|
|
3348
|
+
return {
|
|
3349
|
+
Status: __expectString(output.Status),
|
|
3350
|
+
};
|
|
3351
|
+
};
|
|
3736
3352
|
var deserializeAws_restJson1AnomalyReportedTimeRange = function (output, context) {
|
|
3737
3353
|
return {
|
|
3738
3354
|
CloseTime: output.CloseTime !== undefined && output.CloseTime !== null
|
|
@@ -3750,7 +3366,7 @@ var deserializeAws_restJson1AnomalyResource = function (output, context) {
|
|
|
3750
3366
|
};
|
|
3751
3367
|
};
|
|
3752
3368
|
var deserializeAws_restJson1AnomalyResources = function (output, context) {
|
|
3753
|
-
|
|
3369
|
+
var retVal = (output || [])
|
|
3754
3370
|
.filter(function (e) { return e != null; })
|
|
3755
3371
|
.map(function (entry) {
|
|
3756
3372
|
if (entry === null) {
|
|
@@ -3758,6 +3374,7 @@ var deserializeAws_restJson1AnomalyResources = function (output, context) {
|
|
|
3758
3374
|
}
|
|
3759
3375
|
return deserializeAws_restJson1AnomalyResource(entry, context);
|
|
3760
3376
|
});
|
|
3377
|
+
return retVal;
|
|
3761
3378
|
};
|
|
3762
3379
|
var deserializeAws_restJson1AnomalySourceDetails = function (output, context) {
|
|
3763
3380
|
return {
|
|
@@ -3769,6 +3386,13 @@ var deserializeAws_restJson1AnomalySourceDetails = function (output, context) {
|
|
|
3769
3386
|
: undefined,
|
|
3770
3387
|
};
|
|
3771
3388
|
};
|
|
3389
|
+
var deserializeAws_restJson1AnomalySourceMetadata = function (output, context) {
|
|
3390
|
+
return {
|
|
3391
|
+
Source: __expectString(output.Source),
|
|
3392
|
+
SourceResourceName: __expectString(output.SourceResourceName),
|
|
3393
|
+
SourceResourceType: __expectString(output.SourceResourceType),
|
|
3394
|
+
};
|
|
3395
|
+
};
|
|
3772
3396
|
var deserializeAws_restJson1AnomalyTimeRange = function (output, context) {
|
|
3773
3397
|
return {
|
|
3774
3398
|
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
@@ -3780,7 +3404,7 @@ var deserializeAws_restJson1AnomalyTimeRange = function (output, context) {
|
|
|
3780
3404
|
};
|
|
3781
3405
|
};
|
|
3782
3406
|
var deserializeAws_restJson1AssociatedResourceArns = function (output, context) {
|
|
3783
|
-
|
|
3407
|
+
var retVal = (output || [])
|
|
3784
3408
|
.filter(function (e) { return e != null; })
|
|
3785
3409
|
.map(function (entry) {
|
|
3786
3410
|
if (entry === null) {
|
|
@@ -3788,9 +3412,10 @@ var deserializeAws_restJson1AssociatedResourceArns = function (output, context)
|
|
|
3788
3412
|
}
|
|
3789
3413
|
return __expectString(entry);
|
|
3790
3414
|
});
|
|
3415
|
+
return retVal;
|
|
3791
3416
|
};
|
|
3792
3417
|
var deserializeAws_restJson1Channels = function (output, context) {
|
|
3793
|
-
|
|
3418
|
+
var retVal = (output || [])
|
|
3794
3419
|
.filter(function (e) { return e != null; })
|
|
3795
3420
|
.map(function (entry) {
|
|
3796
3421
|
if (entry === null) {
|
|
@@ -3798,6 +3423,7 @@ var deserializeAws_restJson1Channels = function (output, context) {
|
|
|
3798
3423
|
}
|
|
3799
3424
|
return deserializeAws_restJson1NotificationChannel(entry, context);
|
|
3800
3425
|
});
|
|
3426
|
+
return retVal;
|
|
3801
3427
|
};
|
|
3802
3428
|
var deserializeAws_restJson1CloudFormationCollection = function (output, context) {
|
|
3803
3429
|
return {
|
|
@@ -3829,7 +3455,7 @@ var deserializeAws_restJson1CloudFormationHealth = function (output, context) {
|
|
|
3829
3455
|
};
|
|
3830
3456
|
};
|
|
3831
3457
|
var deserializeAws_restJson1CloudFormationHealths = function (output, context) {
|
|
3832
|
-
|
|
3458
|
+
var retVal = (output || [])
|
|
3833
3459
|
.filter(function (e) { return e != null; })
|
|
3834
3460
|
.map(function (entry) {
|
|
3835
3461
|
if (entry === null) {
|
|
@@ -3837,6 +3463,7 @@ var deserializeAws_restJson1CloudFormationHealths = function (output, context) {
|
|
|
3837
3463
|
}
|
|
3838
3464
|
return deserializeAws_restJson1CloudFormationHealth(entry, context);
|
|
3839
3465
|
});
|
|
3466
|
+
return retVal;
|
|
3840
3467
|
};
|
|
3841
3468
|
var deserializeAws_restJson1CloudWatchMetricsDataSummary = function (output, context) {
|
|
3842
3469
|
return {
|
|
@@ -3862,7 +3489,7 @@ var deserializeAws_restJson1CloudWatchMetricsDetail = function (output, context)
|
|
|
3862
3489
|
};
|
|
3863
3490
|
};
|
|
3864
3491
|
var deserializeAws_restJson1CloudWatchMetricsDetails = function (output, context) {
|
|
3865
|
-
|
|
3492
|
+
var retVal = (output || [])
|
|
3866
3493
|
.filter(function (e) { return e != null; })
|
|
3867
3494
|
.map(function (entry) {
|
|
3868
3495
|
if (entry === null) {
|
|
@@ -3870,6 +3497,7 @@ var deserializeAws_restJson1CloudWatchMetricsDetails = function (output, context
|
|
|
3870
3497
|
}
|
|
3871
3498
|
return deserializeAws_restJson1CloudWatchMetricsDetail(entry, context);
|
|
3872
3499
|
});
|
|
3500
|
+
return retVal;
|
|
3873
3501
|
};
|
|
3874
3502
|
var deserializeAws_restJson1CloudWatchMetricsDimension = function (output, context) {
|
|
3875
3503
|
return {
|
|
@@ -3878,7 +3506,7 @@ var deserializeAws_restJson1CloudWatchMetricsDimension = function (output, conte
|
|
|
3878
3506
|
};
|
|
3879
3507
|
};
|
|
3880
3508
|
var deserializeAws_restJson1CloudWatchMetricsDimensions = function (output, context) {
|
|
3881
|
-
|
|
3509
|
+
var retVal = (output || [])
|
|
3882
3510
|
.filter(function (e) { return e != null; })
|
|
3883
3511
|
.map(function (entry) {
|
|
3884
3512
|
if (entry === null) {
|
|
@@ -3886,6 +3514,7 @@ var deserializeAws_restJson1CloudWatchMetricsDimensions = function (output, cont
|
|
|
3886
3514
|
}
|
|
3887
3515
|
return deserializeAws_restJson1CloudWatchMetricsDimension(entry, context);
|
|
3888
3516
|
});
|
|
3517
|
+
return retVal;
|
|
3889
3518
|
};
|
|
3890
3519
|
var deserializeAws_restJson1CostEstimationResourceCollectionFilter = function (output, context) {
|
|
3891
3520
|
return {
|
|
@@ -3898,7 +3527,7 @@ var deserializeAws_restJson1CostEstimationResourceCollectionFilter = function (o
|
|
|
3898
3527
|
};
|
|
3899
3528
|
};
|
|
3900
3529
|
var deserializeAws_restJson1CostEstimationStackNames = function (output, context) {
|
|
3901
|
-
|
|
3530
|
+
var retVal = (output || [])
|
|
3902
3531
|
.filter(function (e) { return e != null; })
|
|
3903
3532
|
.map(function (entry) {
|
|
3904
3533
|
if (entry === null) {
|
|
@@ -3906,9 +3535,10 @@ var deserializeAws_restJson1CostEstimationStackNames = function (output, context
|
|
|
3906
3535
|
}
|
|
3907
3536
|
return __expectString(entry);
|
|
3908
3537
|
});
|
|
3538
|
+
return retVal;
|
|
3909
3539
|
};
|
|
3910
3540
|
var deserializeAws_restJson1CostEstimationTagValues = function (output, context) {
|
|
3911
|
-
|
|
3541
|
+
var retVal = (output || [])
|
|
3912
3542
|
.filter(function (e) { return e != null; })
|
|
3913
3543
|
.map(function (entry) {
|
|
3914
3544
|
if (entry === null) {
|
|
@@ -3916,6 +3546,7 @@ var deserializeAws_restJson1CostEstimationTagValues = function (output, context)
|
|
|
3916
3546
|
}
|
|
3917
3547
|
return __expectString(entry);
|
|
3918
3548
|
});
|
|
3549
|
+
return retVal;
|
|
3919
3550
|
};
|
|
3920
3551
|
var deserializeAws_restJson1CostEstimationTimeRange = function (output, context) {
|
|
3921
3552
|
return {
|
|
@@ -3953,7 +3584,7 @@ var deserializeAws_restJson1EventResource = function (output, context) {
|
|
|
3953
3584
|
};
|
|
3954
3585
|
};
|
|
3955
3586
|
var deserializeAws_restJson1EventResources = function (output, context) {
|
|
3956
|
-
|
|
3587
|
+
var retVal = (output || [])
|
|
3957
3588
|
.filter(function (e) { return e != null; })
|
|
3958
3589
|
.map(function (entry) {
|
|
3959
3590
|
if (entry === null) {
|
|
@@ -3961,9 +3592,10 @@ var deserializeAws_restJson1EventResources = function (output, context) {
|
|
|
3961
3592
|
}
|
|
3962
3593
|
return deserializeAws_restJson1EventResource(entry, context);
|
|
3963
3594
|
});
|
|
3595
|
+
return retVal;
|
|
3964
3596
|
};
|
|
3965
3597
|
var deserializeAws_restJson1Events = function (output, context) {
|
|
3966
|
-
|
|
3598
|
+
var retVal = (output || [])
|
|
3967
3599
|
.filter(function (e) { return e != null; })
|
|
3968
3600
|
.map(function (entry) {
|
|
3969
3601
|
if (entry === null) {
|
|
@@ -3971,6 +3603,14 @@ var deserializeAws_restJson1Events = function (output, context) {
|
|
|
3971
3603
|
}
|
|
3972
3604
|
return deserializeAws_restJson1Event(entry, context);
|
|
3973
3605
|
});
|
|
3606
|
+
return retVal;
|
|
3607
|
+
};
|
|
3608
|
+
var deserializeAws_restJson1EventSourcesConfig = function (output, context) {
|
|
3609
|
+
return {
|
|
3610
|
+
AmazonCodeGuruProfiler: output.AmazonCodeGuruProfiler !== undefined && output.AmazonCodeGuruProfiler !== null
|
|
3611
|
+
? deserializeAws_restJson1AmazonCodeGuruProfilerIntegration(output.AmazonCodeGuruProfiler, context)
|
|
3612
|
+
: undefined,
|
|
3613
|
+
};
|
|
3974
3614
|
};
|
|
3975
3615
|
var deserializeAws_restJson1InsightFeedback = function (output, context) {
|
|
3976
3616
|
return {
|
|
@@ -4025,7 +3665,7 @@ var deserializeAws_restJson1PerformanceInsightsMetricDimensionGroup = function (
|
|
|
4025
3665
|
};
|
|
4026
3666
|
};
|
|
4027
3667
|
var deserializeAws_restJson1PerformanceInsightsMetricDimensions = function (output, context) {
|
|
4028
|
-
|
|
3668
|
+
var retVal = (output || [])
|
|
4029
3669
|
.filter(function (e) { return e != null; })
|
|
4030
3670
|
.map(function (entry) {
|
|
4031
3671
|
if (entry === null) {
|
|
@@ -4033,6 +3673,7 @@ var deserializeAws_restJson1PerformanceInsightsMetricDimensions = function (outp
|
|
|
4033
3673
|
}
|
|
4034
3674
|
return __expectString(entry);
|
|
4035
3675
|
});
|
|
3676
|
+
return retVal;
|
|
4036
3677
|
};
|
|
4037
3678
|
var deserializeAws_restJson1PerformanceInsightsMetricFilterMap = function (output, context) {
|
|
4038
3679
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
@@ -4074,7 +3715,7 @@ var deserializeAws_restJson1PerformanceInsightsMetricsDetail = function (output,
|
|
|
4074
3715
|
};
|
|
4075
3716
|
};
|
|
4076
3717
|
var deserializeAws_restJson1PerformanceInsightsMetricsDetails = function (output, context) {
|
|
4077
|
-
|
|
3718
|
+
var retVal = (output || [])
|
|
4078
3719
|
.filter(function (e) { return e != null; })
|
|
4079
3720
|
.map(function (entry) {
|
|
4080
3721
|
if (entry === null) {
|
|
@@ -4082,6 +3723,7 @@ var deserializeAws_restJson1PerformanceInsightsMetricsDetails = function (output
|
|
|
4082
3723
|
}
|
|
4083
3724
|
return deserializeAws_restJson1PerformanceInsightsMetricsDetail(entry, context);
|
|
4084
3725
|
});
|
|
3726
|
+
return retVal;
|
|
4085
3727
|
};
|
|
4086
3728
|
var deserializeAws_restJson1PerformanceInsightsReferenceComparisonValues = function (output, context) {
|
|
4087
3729
|
return {
|
|
@@ -4102,7 +3744,7 @@ var deserializeAws_restJson1PerformanceInsightsReferenceData = function (output,
|
|
|
4102
3744
|
};
|
|
4103
3745
|
};
|
|
4104
3746
|
var deserializeAws_restJson1PerformanceInsightsReferenceDataList = function (output, context) {
|
|
4105
|
-
|
|
3747
|
+
var retVal = (output || [])
|
|
4106
3748
|
.filter(function (e) { return e != null; })
|
|
4107
3749
|
.map(function (entry) {
|
|
4108
3750
|
if (entry === null) {
|
|
@@ -4110,6 +3752,7 @@ var deserializeAws_restJson1PerformanceInsightsReferenceDataList = function (out
|
|
|
4110
3752
|
}
|
|
4111
3753
|
return deserializeAws_restJson1PerformanceInsightsReferenceData(entry, context);
|
|
4112
3754
|
});
|
|
3755
|
+
return retVal;
|
|
4113
3756
|
};
|
|
4114
3757
|
var deserializeAws_restJson1PerformanceInsightsReferenceMetric = function (output, context) {
|
|
4115
3758
|
return {
|
|
@@ -4130,7 +3773,7 @@ var deserializeAws_restJson1PerformanceInsightsStat = function (output, context)
|
|
|
4130
3773
|
};
|
|
4131
3774
|
};
|
|
4132
3775
|
var deserializeAws_restJson1PerformanceInsightsStats = function (output, context) {
|
|
4133
|
-
|
|
3776
|
+
var retVal = (output || [])
|
|
4134
3777
|
.filter(function (e) { return e != null; })
|
|
4135
3778
|
.map(function (entry) {
|
|
4136
3779
|
if (entry === null) {
|
|
@@ -4138,6 +3781,7 @@ var deserializeAws_restJson1PerformanceInsightsStats = function (output, context
|
|
|
4138
3781
|
}
|
|
4139
3782
|
return deserializeAws_restJson1PerformanceInsightsStat(entry, context);
|
|
4140
3783
|
});
|
|
3784
|
+
return retVal;
|
|
4141
3785
|
};
|
|
4142
3786
|
var deserializeAws_restJson1PredictionTimeRange = function (output, context) {
|
|
4143
3787
|
return {
|
|
@@ -4150,7 +3794,7 @@ var deserializeAws_restJson1PredictionTimeRange = function (output, context) {
|
|
|
4150
3794
|
};
|
|
4151
3795
|
};
|
|
4152
3796
|
var deserializeAws_restJson1ProactiveAnomalies = function (output, context) {
|
|
4153
|
-
|
|
3797
|
+
var retVal = (output || [])
|
|
4154
3798
|
.filter(function (e) { return e != null; })
|
|
4155
3799
|
.map(function (entry) {
|
|
4156
3800
|
if (entry === null) {
|
|
@@ -4158,12 +3802,16 @@ var deserializeAws_restJson1ProactiveAnomalies = function (output, context) {
|
|
|
4158
3802
|
}
|
|
4159
3803
|
return deserializeAws_restJson1ProactiveAnomalySummary(entry, context);
|
|
4160
3804
|
});
|
|
3805
|
+
return retVal;
|
|
4161
3806
|
};
|
|
4162
3807
|
var deserializeAws_restJson1ProactiveAnomaly = function (output, context) {
|
|
4163
3808
|
return {
|
|
4164
3809
|
AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
|
|
4165
3810
|
? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
|
|
4166
3811
|
: undefined,
|
|
3812
|
+
AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
|
|
3813
|
+
? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
|
|
3814
|
+
: undefined,
|
|
4167
3815
|
AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
|
|
4168
3816
|
? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
|
|
4169
3817
|
: undefined,
|
|
@@ -4180,6 +3828,9 @@ var deserializeAws_restJson1ProactiveAnomaly = function (output, context) {
|
|
|
4180
3828
|
SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
|
|
4181
3829
|
? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
|
|
4182
3830
|
: undefined,
|
|
3831
|
+
SourceMetadata: output.SourceMetadata !== undefined && output.SourceMetadata !== null
|
|
3832
|
+
? deserializeAws_restJson1AnomalySourceMetadata(output.SourceMetadata, context)
|
|
3833
|
+
: undefined,
|
|
4183
3834
|
Status: __expectString(output.Status),
|
|
4184
3835
|
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
4185
3836
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateTime)))
|
|
@@ -4191,6 +3842,9 @@ var deserializeAws_restJson1ProactiveAnomalySummary = function (output, context)
|
|
|
4191
3842
|
AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
|
|
4192
3843
|
? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
|
|
4193
3844
|
: undefined,
|
|
3845
|
+
AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
|
|
3846
|
+
? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
|
|
3847
|
+
: undefined,
|
|
4194
3848
|
AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
|
|
4195
3849
|
? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
|
|
4196
3850
|
: undefined,
|
|
@@ -4207,6 +3861,9 @@ var deserializeAws_restJson1ProactiveAnomalySummary = function (output, context)
|
|
|
4207
3861
|
SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
|
|
4208
3862
|
? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
|
|
4209
3863
|
: undefined,
|
|
3864
|
+
SourceMetadata: output.SourceMetadata !== undefined && output.SourceMetadata !== null
|
|
3865
|
+
? deserializeAws_restJson1AnomalySourceMetadata(output.SourceMetadata, context)
|
|
3866
|
+
: undefined,
|
|
4210
3867
|
Status: __expectString(output.Status),
|
|
4211
3868
|
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
4212
3869
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateTime)))
|
|
@@ -4215,6 +3872,7 @@ var deserializeAws_restJson1ProactiveAnomalySummary = function (output, context)
|
|
|
4215
3872
|
};
|
|
4216
3873
|
var deserializeAws_restJson1ProactiveInsight = function (output, context) {
|
|
4217
3874
|
return {
|
|
3875
|
+
Description: __expectString(output.Description),
|
|
4218
3876
|
Id: __expectString(output.Id),
|
|
4219
3877
|
InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
|
|
4220
3878
|
? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
|
|
@@ -4232,7 +3890,7 @@ var deserializeAws_restJson1ProactiveInsight = function (output, context) {
|
|
|
4232
3890
|
};
|
|
4233
3891
|
};
|
|
4234
3892
|
var deserializeAws_restJson1ProactiveInsights = function (output, context) {
|
|
4235
|
-
|
|
3893
|
+
var retVal = (output || [])
|
|
4236
3894
|
.filter(function (e) { return e != null; })
|
|
4237
3895
|
.map(function (entry) {
|
|
4238
3896
|
if (entry === null) {
|
|
@@ -4240,6 +3898,7 @@ var deserializeAws_restJson1ProactiveInsights = function (output, context) {
|
|
|
4240
3898
|
}
|
|
4241
3899
|
return deserializeAws_restJson1ProactiveInsightSummary(entry, context);
|
|
4242
3900
|
});
|
|
3901
|
+
return retVal;
|
|
4243
3902
|
};
|
|
4244
3903
|
var deserializeAws_restJson1ProactiveInsightSummary = function (output, context) {
|
|
4245
3904
|
return {
|
|
@@ -4265,7 +3924,7 @@ var deserializeAws_restJson1ProactiveInsightSummary = function (output, context)
|
|
|
4265
3924
|
};
|
|
4266
3925
|
};
|
|
4267
3926
|
var deserializeAws_restJson1ProactiveOrganizationInsights = function (output, context) {
|
|
4268
|
-
|
|
3927
|
+
var retVal = (output || [])
|
|
4269
3928
|
.filter(function (e) { return e != null; })
|
|
4270
3929
|
.map(function (entry) {
|
|
4271
3930
|
if (entry === null) {
|
|
@@ -4273,6 +3932,7 @@ var deserializeAws_restJson1ProactiveOrganizationInsights = function (output, co
|
|
|
4273
3932
|
}
|
|
4274
3933
|
return deserializeAws_restJson1ProactiveOrganizationInsightSummary(entry, context);
|
|
4275
3934
|
});
|
|
3935
|
+
return retVal;
|
|
4276
3936
|
};
|
|
4277
3937
|
var deserializeAws_restJson1ProactiveOrganizationInsightSummary = function (output, context) {
|
|
4278
3938
|
return {
|
|
@@ -4297,7 +3957,7 @@ var deserializeAws_restJson1ProactiveOrganizationInsightSummary = function (outp
|
|
|
4297
3957
|
};
|
|
4298
3958
|
};
|
|
4299
3959
|
var deserializeAws_restJson1ReactiveAnomalies = function (output, context) {
|
|
4300
|
-
|
|
3960
|
+
var retVal = (output || [])
|
|
4301
3961
|
.filter(function (e) { return e != null; })
|
|
4302
3962
|
.map(function (entry) {
|
|
4303
3963
|
if (entry === null) {
|
|
@@ -4305,6 +3965,7 @@ var deserializeAws_restJson1ReactiveAnomalies = function (output, context) {
|
|
|
4305
3965
|
}
|
|
4306
3966
|
return deserializeAws_restJson1ReactiveAnomalySummary(entry, context);
|
|
4307
3967
|
});
|
|
3968
|
+
return retVal;
|
|
4308
3969
|
};
|
|
4309
3970
|
var deserializeAws_restJson1ReactiveAnomaly = function (output, context) {
|
|
4310
3971
|
return {
|
|
@@ -4362,6 +4023,7 @@ var deserializeAws_restJson1ReactiveAnomalySummary = function (output, context)
|
|
|
4362
4023
|
};
|
|
4363
4024
|
var deserializeAws_restJson1ReactiveInsight = function (output, context) {
|
|
4364
4025
|
return {
|
|
4026
|
+
Description: __expectString(output.Description),
|
|
4365
4027
|
Id: __expectString(output.Id),
|
|
4366
4028
|
InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
|
|
4367
4029
|
? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
|
|
@@ -4376,7 +4038,7 @@ var deserializeAws_restJson1ReactiveInsight = function (output, context) {
|
|
|
4376
4038
|
};
|
|
4377
4039
|
};
|
|
4378
4040
|
var deserializeAws_restJson1ReactiveInsights = function (output, context) {
|
|
4379
|
-
|
|
4041
|
+
var retVal = (output || [])
|
|
4380
4042
|
.filter(function (e) { return e != null; })
|
|
4381
4043
|
.map(function (entry) {
|
|
4382
4044
|
if (entry === null) {
|
|
@@ -4384,6 +4046,7 @@ var deserializeAws_restJson1ReactiveInsights = function (output, context) {
|
|
|
4384
4046
|
}
|
|
4385
4047
|
return deserializeAws_restJson1ReactiveInsightSummary(entry, context);
|
|
4386
4048
|
});
|
|
4049
|
+
return retVal;
|
|
4387
4050
|
};
|
|
4388
4051
|
var deserializeAws_restJson1ReactiveInsightSummary = function (output, context) {
|
|
4389
4052
|
return {
|
|
@@ -4406,7 +4069,7 @@ var deserializeAws_restJson1ReactiveInsightSummary = function (output, context)
|
|
|
4406
4069
|
};
|
|
4407
4070
|
};
|
|
4408
4071
|
var deserializeAws_restJson1ReactiveOrganizationInsights = function (output, context) {
|
|
4409
|
-
|
|
4072
|
+
var retVal = (output || [])
|
|
4410
4073
|
.filter(function (e) { return e != null; })
|
|
4411
4074
|
.map(function (entry) {
|
|
4412
4075
|
if (entry === null) {
|
|
@@ -4414,6 +4077,7 @@ var deserializeAws_restJson1ReactiveOrganizationInsights = function (output, con
|
|
|
4414
4077
|
}
|
|
4415
4078
|
return deserializeAws_restJson1ReactiveOrganizationInsightSummary(entry, context);
|
|
4416
4079
|
});
|
|
4080
|
+
return retVal;
|
|
4417
4081
|
};
|
|
4418
4082
|
var deserializeAws_restJson1ReactiveOrganizationInsightSummary = function (output, context) {
|
|
4419
4083
|
return {
|
|
@@ -4436,6 +4100,7 @@ var deserializeAws_restJson1ReactiveOrganizationInsightSummary = function (outpu
|
|
|
4436
4100
|
};
|
|
4437
4101
|
var deserializeAws_restJson1Recommendation = function (output, context) {
|
|
4438
4102
|
return {
|
|
4103
|
+
Category: __expectString(output.Category),
|
|
4439
4104
|
Description: __expectString(output.Description),
|
|
4440
4105
|
Link: __expectString(output.Link),
|
|
4441
4106
|
Name: __expectString(output.Name),
|
|
@@ -4449,7 +4114,7 @@ var deserializeAws_restJson1Recommendation = function (output, context) {
|
|
|
4449
4114
|
};
|
|
4450
4115
|
};
|
|
4451
4116
|
var deserializeAws_restJson1RecommendationRelatedAnomalies = function (output, context) {
|
|
4452
|
-
|
|
4117
|
+
var retVal = (output || [])
|
|
4453
4118
|
.filter(function (e) { return e != null; })
|
|
4454
4119
|
.map(function (entry) {
|
|
4455
4120
|
if (entry === null) {
|
|
@@ -4457,6 +4122,7 @@ var deserializeAws_restJson1RecommendationRelatedAnomalies = function (output, c
|
|
|
4457
4122
|
}
|
|
4458
4123
|
return deserializeAws_restJson1RecommendationRelatedAnomaly(entry, context);
|
|
4459
4124
|
});
|
|
4125
|
+
return retVal;
|
|
4460
4126
|
};
|
|
4461
4127
|
var deserializeAws_restJson1RecommendationRelatedAnomaly = function (output, context) {
|
|
4462
4128
|
return {
|
|
@@ -4476,7 +4142,7 @@ var deserializeAws_restJson1RecommendationRelatedAnomalyResource = function (out
|
|
|
4476
4142
|
};
|
|
4477
4143
|
};
|
|
4478
4144
|
var deserializeAws_restJson1RecommendationRelatedAnomalyResources = function (output, context) {
|
|
4479
|
-
|
|
4145
|
+
var retVal = (output || [])
|
|
4480
4146
|
.filter(function (e) { return e != null; })
|
|
4481
4147
|
.map(function (entry) {
|
|
4482
4148
|
if (entry === null) {
|
|
@@ -4484,6 +4150,7 @@ var deserializeAws_restJson1RecommendationRelatedAnomalyResources = function (ou
|
|
|
4484
4150
|
}
|
|
4485
4151
|
return deserializeAws_restJson1RecommendationRelatedAnomalyResource(entry, context);
|
|
4486
4152
|
});
|
|
4153
|
+
return retVal;
|
|
4487
4154
|
};
|
|
4488
4155
|
var deserializeAws_restJson1RecommendationRelatedAnomalySourceDetail = function (output, context) {
|
|
4489
4156
|
return {
|
|
@@ -4499,7 +4166,7 @@ var deserializeAws_restJson1RecommendationRelatedCloudWatchMetricsSourceDetail =
|
|
|
4499
4166
|
};
|
|
4500
4167
|
};
|
|
4501
4168
|
var deserializeAws_restJson1RecommendationRelatedCloudWatchMetricsSourceDetails = function (output, context) {
|
|
4502
|
-
|
|
4169
|
+
var retVal = (output || [])
|
|
4503
4170
|
.filter(function (e) { return e != null; })
|
|
4504
4171
|
.map(function (entry) {
|
|
4505
4172
|
if (entry === null) {
|
|
@@ -4507,6 +4174,7 @@ var deserializeAws_restJson1RecommendationRelatedCloudWatchMetricsSourceDetails
|
|
|
4507
4174
|
}
|
|
4508
4175
|
return deserializeAws_restJson1RecommendationRelatedCloudWatchMetricsSourceDetail(entry, context);
|
|
4509
4176
|
});
|
|
4177
|
+
return retVal;
|
|
4510
4178
|
};
|
|
4511
4179
|
var deserializeAws_restJson1RecommendationRelatedEvent = function (output, context) {
|
|
4512
4180
|
return {
|
|
@@ -4523,7 +4191,7 @@ var deserializeAws_restJson1RecommendationRelatedEventResource = function (outpu
|
|
|
4523
4191
|
};
|
|
4524
4192
|
};
|
|
4525
4193
|
var deserializeAws_restJson1RecommendationRelatedEventResources = function (output, context) {
|
|
4526
|
-
|
|
4194
|
+
var retVal = (output || [])
|
|
4527
4195
|
.filter(function (e) { return e != null; })
|
|
4528
4196
|
.map(function (entry) {
|
|
4529
4197
|
if (entry === null) {
|
|
@@ -4531,9 +4199,10 @@ var deserializeAws_restJson1RecommendationRelatedEventResources = function (outp
|
|
|
4531
4199
|
}
|
|
4532
4200
|
return deserializeAws_restJson1RecommendationRelatedEventResource(entry, context);
|
|
4533
4201
|
});
|
|
4202
|
+
return retVal;
|
|
4534
4203
|
};
|
|
4535
4204
|
var deserializeAws_restJson1RecommendationRelatedEvents = function (output, context) {
|
|
4536
|
-
|
|
4205
|
+
var retVal = (output || [])
|
|
4537
4206
|
.filter(function (e) { return e != null; })
|
|
4538
4207
|
.map(function (entry) {
|
|
4539
4208
|
if (entry === null) {
|
|
@@ -4541,9 +4210,10 @@ var deserializeAws_restJson1RecommendationRelatedEvents = function (output, cont
|
|
|
4541
4210
|
}
|
|
4542
4211
|
return deserializeAws_restJson1RecommendationRelatedEvent(entry, context);
|
|
4543
4212
|
});
|
|
4213
|
+
return retVal;
|
|
4544
4214
|
};
|
|
4545
4215
|
var deserializeAws_restJson1Recommendations = function (output, context) {
|
|
4546
|
-
|
|
4216
|
+
var retVal = (output || [])
|
|
4547
4217
|
.filter(function (e) { return e != null; })
|
|
4548
4218
|
.map(function (entry) {
|
|
4549
4219
|
if (entry === null) {
|
|
@@ -4551,9 +4221,10 @@ var deserializeAws_restJson1Recommendations = function (output, context) {
|
|
|
4551
4221
|
}
|
|
4552
4222
|
return deserializeAws_restJson1Recommendation(entry, context);
|
|
4553
4223
|
});
|
|
4224
|
+
return retVal;
|
|
4554
4225
|
};
|
|
4555
4226
|
var deserializeAws_restJson1RelatedAnomalySourceDetails = function (output, context) {
|
|
4556
|
-
|
|
4227
|
+
var retVal = (output || [])
|
|
4557
4228
|
.filter(function (e) { return e != null; })
|
|
4558
4229
|
.map(function (entry) {
|
|
4559
4230
|
if (entry === null) {
|
|
@@ -4561,6 +4232,7 @@ var deserializeAws_restJson1RelatedAnomalySourceDetails = function (output, cont
|
|
|
4561
4232
|
}
|
|
4562
4233
|
return deserializeAws_restJson1RecommendationRelatedAnomalySourceDetail(entry, context);
|
|
4563
4234
|
});
|
|
4235
|
+
return retVal;
|
|
4564
4236
|
};
|
|
4565
4237
|
var deserializeAws_restJson1ResourceCollection = function (output, context) {
|
|
4566
4238
|
return {
|
|
@@ -4598,7 +4270,7 @@ var deserializeAws_restJson1ServiceHealth = function (output, context) {
|
|
|
4598
4270
|
};
|
|
4599
4271
|
};
|
|
4600
4272
|
var deserializeAws_restJson1ServiceHealths = function (output, context) {
|
|
4601
|
-
|
|
4273
|
+
var retVal = (output || [])
|
|
4602
4274
|
.filter(function (e) { return e != null; })
|
|
4603
4275
|
.map(function (entry) {
|
|
4604
4276
|
if (entry === null) {
|
|
@@ -4606,6 +4278,7 @@ var deserializeAws_restJson1ServiceHealths = function (output, context) {
|
|
|
4606
4278
|
}
|
|
4607
4279
|
return deserializeAws_restJson1ServiceHealth(entry, context);
|
|
4608
4280
|
});
|
|
4281
|
+
return retVal;
|
|
4609
4282
|
};
|
|
4610
4283
|
var deserializeAws_restJson1ServiceInsightHealth = function (output, context) {
|
|
4611
4284
|
return {
|
|
@@ -4621,7 +4294,7 @@ var deserializeAws_restJson1ServiceIntegrationConfig = function (output, context
|
|
|
4621
4294
|
};
|
|
4622
4295
|
};
|
|
4623
4296
|
var deserializeAws_restJson1ServiceNames = function (output, context) {
|
|
4624
|
-
|
|
4297
|
+
var retVal = (output || [])
|
|
4625
4298
|
.filter(function (e) { return e != null; })
|
|
4626
4299
|
.map(function (entry) {
|
|
4627
4300
|
if (entry === null) {
|
|
@@ -4629,6 +4302,7 @@ var deserializeAws_restJson1ServiceNames = function (output, context) {
|
|
|
4629
4302
|
}
|
|
4630
4303
|
return __expectString(entry);
|
|
4631
4304
|
});
|
|
4305
|
+
return retVal;
|
|
4632
4306
|
};
|
|
4633
4307
|
var deserializeAws_restJson1ServiceResourceCost = function (output, context) {
|
|
4634
4308
|
return {
|
|
@@ -4640,7 +4314,7 @@ var deserializeAws_restJson1ServiceResourceCost = function (output, context) {
|
|
|
4640
4314
|
};
|
|
4641
4315
|
};
|
|
4642
4316
|
var deserializeAws_restJson1ServiceResourceCosts = function (output, context) {
|
|
4643
|
-
|
|
4317
|
+
var retVal = (output || [])
|
|
4644
4318
|
.filter(function (e) { return e != null; })
|
|
4645
4319
|
.map(function (entry) {
|
|
4646
4320
|
if (entry === null) {
|
|
@@ -4648,6 +4322,7 @@ var deserializeAws_restJson1ServiceResourceCosts = function (output, context) {
|
|
|
4648
4322
|
}
|
|
4649
4323
|
return deserializeAws_restJson1ServiceResourceCost(entry, context);
|
|
4650
4324
|
});
|
|
4325
|
+
return retVal;
|
|
4651
4326
|
};
|
|
4652
4327
|
var deserializeAws_restJson1SnsChannelConfig = function (output, context) {
|
|
4653
4328
|
return {
|
|
@@ -4655,7 +4330,7 @@ var deserializeAws_restJson1SnsChannelConfig = function (output, context) {
|
|
|
4655
4330
|
};
|
|
4656
4331
|
};
|
|
4657
4332
|
var deserializeAws_restJson1StackNames = function (output, context) {
|
|
4658
|
-
|
|
4333
|
+
var retVal = (output || [])
|
|
4659
4334
|
.filter(function (e) { return e != null; })
|
|
4660
4335
|
.map(function (entry) {
|
|
4661
4336
|
if (entry === null) {
|
|
@@ -4663,6 +4338,7 @@ var deserializeAws_restJson1StackNames = function (output, context) {
|
|
|
4663
4338
|
}
|
|
4664
4339
|
return __expectString(entry);
|
|
4665
4340
|
});
|
|
4341
|
+
return retVal;
|
|
4666
4342
|
};
|
|
4667
4343
|
var deserializeAws_restJson1TagCollection = function (output, context) {
|
|
4668
4344
|
return {
|
|
@@ -4681,7 +4357,7 @@ var deserializeAws_restJson1TagCollectionFilter = function (output, context) {
|
|
|
4681
4357
|
};
|
|
4682
4358
|
};
|
|
4683
4359
|
var deserializeAws_restJson1TagCollectionFilters = function (output, context) {
|
|
4684
|
-
|
|
4360
|
+
var retVal = (output || [])
|
|
4685
4361
|
.filter(function (e) { return e != null; })
|
|
4686
4362
|
.map(function (entry) {
|
|
4687
4363
|
if (entry === null) {
|
|
@@ -4689,9 +4365,10 @@ var deserializeAws_restJson1TagCollectionFilters = function (output, context) {
|
|
|
4689
4365
|
}
|
|
4690
4366
|
return deserializeAws_restJson1TagCollectionFilter(entry, context);
|
|
4691
4367
|
});
|
|
4368
|
+
return retVal;
|
|
4692
4369
|
};
|
|
4693
4370
|
var deserializeAws_restJson1TagCollections = function (output, context) {
|
|
4694
|
-
|
|
4371
|
+
var retVal = (output || [])
|
|
4695
4372
|
.filter(function (e) { return e != null; })
|
|
4696
4373
|
.map(function (entry) {
|
|
4697
4374
|
if (entry === null) {
|
|
@@ -4699,6 +4376,7 @@ var deserializeAws_restJson1TagCollections = function (output, context) {
|
|
|
4699
4376
|
}
|
|
4700
4377
|
return deserializeAws_restJson1TagCollection(entry, context);
|
|
4701
4378
|
});
|
|
4379
|
+
return retVal;
|
|
4702
4380
|
};
|
|
4703
4381
|
var deserializeAws_restJson1TagCostEstimationResourceCollectionFilter = function (output, context) {
|
|
4704
4382
|
return {
|
|
@@ -4709,7 +4387,7 @@ var deserializeAws_restJson1TagCostEstimationResourceCollectionFilter = function
|
|
|
4709
4387
|
};
|
|
4710
4388
|
};
|
|
4711
4389
|
var deserializeAws_restJson1TagCostEstimationResourceCollectionFilters = function (output, context) {
|
|
4712
|
-
|
|
4390
|
+
var retVal = (output || [])
|
|
4713
4391
|
.filter(function (e) { return e != null; })
|
|
4714
4392
|
.map(function (entry) {
|
|
4715
4393
|
if (entry === null) {
|
|
@@ -4717,6 +4395,7 @@ var deserializeAws_restJson1TagCostEstimationResourceCollectionFilters = functio
|
|
|
4717
4395
|
}
|
|
4718
4396
|
return deserializeAws_restJson1TagCostEstimationResourceCollectionFilter(entry, context);
|
|
4719
4397
|
});
|
|
4398
|
+
return retVal;
|
|
4720
4399
|
};
|
|
4721
4400
|
var deserializeAws_restJson1TagHealth = function (output, context) {
|
|
4722
4401
|
return {
|
|
@@ -4728,7 +4407,7 @@ var deserializeAws_restJson1TagHealth = function (output, context) {
|
|
|
4728
4407
|
};
|
|
4729
4408
|
};
|
|
4730
4409
|
var deserializeAws_restJson1TagHealths = function (output, context) {
|
|
4731
|
-
|
|
4410
|
+
var retVal = (output || [])
|
|
4732
4411
|
.filter(function (e) { return e != null; })
|
|
4733
4412
|
.map(function (entry) {
|
|
4734
4413
|
if (entry === null) {
|
|
@@ -4736,9 +4415,10 @@ var deserializeAws_restJson1TagHealths = function (output, context) {
|
|
|
4736
4415
|
}
|
|
4737
4416
|
return deserializeAws_restJson1TagHealth(entry, context);
|
|
4738
4417
|
});
|
|
4418
|
+
return retVal;
|
|
4739
4419
|
};
|
|
4740
4420
|
var deserializeAws_restJson1TagValues = function (output, context) {
|
|
4741
|
-
|
|
4421
|
+
var retVal = (output || [])
|
|
4742
4422
|
.filter(function (e) { return e != null; })
|
|
4743
4423
|
.map(function (entry) {
|
|
4744
4424
|
if (entry === null) {
|
|
@@ -4746,6 +4426,7 @@ var deserializeAws_restJson1TagValues = function (output, context) {
|
|
|
4746
4426
|
}
|
|
4747
4427
|
return __expectString(entry);
|
|
4748
4428
|
});
|
|
4429
|
+
return retVal;
|
|
4749
4430
|
};
|
|
4750
4431
|
var deserializeAws_restJson1TimestampMetricValuePair = function (output, context) {
|
|
4751
4432
|
return {
|
|
@@ -4756,7 +4437,7 @@ var deserializeAws_restJson1TimestampMetricValuePair = function (output, context
|
|
|
4756
4437
|
};
|
|
4757
4438
|
};
|
|
4758
4439
|
var deserializeAws_restJson1TimestampMetricValuePairList = function (output, context) {
|
|
4759
|
-
|
|
4440
|
+
var retVal = (output || [])
|
|
4760
4441
|
.filter(function (e) { return e != null; })
|
|
4761
4442
|
.map(function (entry) {
|
|
4762
4443
|
if (entry === null) {
|
|
@@ -4764,6 +4445,7 @@ var deserializeAws_restJson1TimestampMetricValuePairList = function (output, con
|
|
|
4764
4445
|
}
|
|
4765
4446
|
return deserializeAws_restJson1TimestampMetricValuePair(entry, context);
|
|
4766
4447
|
});
|
|
4448
|
+
return retVal;
|
|
4767
4449
|
};
|
|
4768
4450
|
var deserializeAws_restJson1ValidationExceptionField = function (output, context) {
|
|
4769
4451
|
return {
|
|
@@ -4772,7 +4454,7 @@ var deserializeAws_restJson1ValidationExceptionField = function (output, context
|
|
|
4772
4454
|
};
|
|
4773
4455
|
};
|
|
4774
4456
|
var deserializeAws_restJson1ValidationExceptionFields = function (output, context) {
|
|
4775
|
-
|
|
4457
|
+
var retVal = (output || [])
|
|
4776
4458
|
.filter(function (e) { return e != null; })
|
|
4777
4459
|
.map(function (entry) {
|
|
4778
4460
|
if (entry === null) {
|
|
@@ -4780,6 +4462,7 @@ var deserializeAws_restJson1ValidationExceptionFields = function (output, contex
|
|
|
4780
4462
|
}
|
|
4781
4463
|
return deserializeAws_restJson1ValidationExceptionField(entry, context);
|
|
4782
4464
|
});
|
|
4465
|
+
return retVal;
|
|
4783
4466
|
};
|
|
4784
4467
|
var deserializeMetadata = function (output) {
|
|
4785
4468
|
var _a;
|