@aws-sdk/client-devops-guru 3.141.0 → 3.150.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +367 -636
- package/dist-es/protocols/Aws_restJson1.js +468 -634
- package/package.json +11 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { DevOpsGuruServiceException as __BaseException } from "../models/DevOpsGuruServiceException";
|
|
6
6
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
@@ -29,7 +29,7 @@ export var serializeAws_restJson1AddNotificationChannelCommand = function (input
|
|
|
29
29
|
});
|
|
30
30
|
}); };
|
|
31
31
|
export var serializeAws_restJson1DeleteInsightCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
32
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
32
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
33
33
|
return __generator(this, function (_c) {
|
|
34
34
|
switch (_c.label) {
|
|
35
35
|
case 0: return [4, context.endpoint()];
|
|
@@ -37,16 +37,7 @@ export var serializeAws_restJson1DeleteInsightCommand = function (input, context
|
|
|
37
37
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
38
38
|
headers = {};
|
|
39
39
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights/{Id}";
|
|
40
|
-
|
|
41
|
-
labelValue = input.Id;
|
|
42
|
-
if (labelValue.length <= 0) {
|
|
43
|
-
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
44
|
-
}
|
|
45
|
-
resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
throw new Error("No value provided for input HTTP label: Id.");
|
|
49
|
-
}
|
|
40
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
50
41
|
return [2, new __HttpRequest({
|
|
51
42
|
protocol: protocol,
|
|
52
43
|
hostname: hostname,
|
|
@@ -108,7 +99,7 @@ export var serializeAws_restJson1DescribeAccountOverviewCommand = function (inpu
|
|
|
108
99
|
});
|
|
109
100
|
}); };
|
|
110
101
|
export var serializeAws_restJson1DescribeAnomalyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
111
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
102
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
112
103
|
return __generator(this, function (_c) {
|
|
113
104
|
switch (_c.label) {
|
|
114
105
|
case 0: return [4, context.endpoint()];
|
|
@@ -116,17 +107,10 @@ export var serializeAws_restJson1DescribeAnomalyCommand = function (input, conte
|
|
|
116
107
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
117
108
|
headers = {};
|
|
118
109
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/anomalies/{Id}";
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
throw new Error("No value provided for input HTTP label: Id.");
|
|
128
|
-
}
|
|
129
|
-
query = __assign({}, (input.AccountId !== undefined && { AccountId: input.AccountId }));
|
|
110
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
111
|
+
query = map({
|
|
112
|
+
AccountId: [, input.AccountId],
|
|
113
|
+
});
|
|
130
114
|
return [2, new __HttpRequest({
|
|
131
115
|
protocol: protocol,
|
|
132
116
|
hostname: hostname,
|
|
@@ -189,7 +173,7 @@ export var serializeAws_restJson1DescribeFeedbackCommand = function (input, cont
|
|
|
189
173
|
});
|
|
190
174
|
}); };
|
|
191
175
|
export var serializeAws_restJson1DescribeInsightCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
192
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
176
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
193
177
|
return __generator(this, function (_c) {
|
|
194
178
|
switch (_c.label) {
|
|
195
179
|
case 0: return [4, context.endpoint()];
|
|
@@ -197,17 +181,10 @@ export var serializeAws_restJson1DescribeInsightCommand = function (input, conte
|
|
|
197
181
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
198
182
|
headers = {};
|
|
199
183
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/insights/{Id}";
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
205
|
-
resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
throw new Error("No value provided for input HTTP label: Id.");
|
|
209
|
-
}
|
|
210
|
-
query = __assign({}, (input.AccountId !== undefined && { AccountId: input.AccountId }));
|
|
184
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
185
|
+
query = map({
|
|
186
|
+
AccountId: [, input.AccountId],
|
|
187
|
+
});
|
|
211
188
|
return [2, new __HttpRequest({
|
|
212
189
|
protocol: protocol,
|
|
213
190
|
hostname: hostname,
|
|
@@ -302,7 +279,7 @@ export var serializeAws_restJson1DescribeOrganizationResourceCollectionHealthCom
|
|
|
302
279
|
});
|
|
303
280
|
}); };
|
|
304
281
|
export var serializeAws_restJson1DescribeResourceCollectionHealthCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
305
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
282
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
306
283
|
return __generator(this, function (_c) {
|
|
307
284
|
switch (_c.label) {
|
|
308
285
|
case 0: return [4, context.endpoint()];
|
|
@@ -311,17 +288,10 @@ export var serializeAws_restJson1DescribeResourceCollectionHealthCommand = funct
|
|
|
311
288
|
headers = {};
|
|
312
289
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
313
290
|
"/accounts/health/resource-collection/{ResourceCollectionType}";
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
}
|
|
319
|
-
resolvedPath = resolvedPath.replace("{ResourceCollectionType}", __extendedEncodeURIComponent(labelValue));
|
|
320
|
-
}
|
|
321
|
-
else {
|
|
322
|
-
throw new Error("No value provided for input HTTP label: ResourceCollectionType.");
|
|
323
|
-
}
|
|
324
|
-
query = __assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken }));
|
|
291
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceCollectionType", function () { return input.ResourceCollectionType; }, "{ResourceCollectionType}", false);
|
|
292
|
+
query = map({
|
|
293
|
+
NextToken: [, input.NextToken],
|
|
294
|
+
});
|
|
325
295
|
return [2, new __HttpRequest({
|
|
326
296
|
protocol: protocol,
|
|
327
297
|
hostname: hostname,
|
|
@@ -368,7 +338,9 @@ export var serializeAws_restJson1GetCostEstimationCommand = function (input, con
|
|
|
368
338
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
369
339
|
headers = {};
|
|
370
340
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/cost-estimation";
|
|
371
|
-
query =
|
|
341
|
+
query = map({
|
|
342
|
+
NextToken: [, input.NextToken],
|
|
343
|
+
});
|
|
372
344
|
return [2, new __HttpRequest({
|
|
373
345
|
protocol: protocol,
|
|
374
346
|
hostname: hostname,
|
|
@@ -383,7 +355,7 @@ export var serializeAws_restJson1GetCostEstimationCommand = function (input, con
|
|
|
383
355
|
});
|
|
384
356
|
}); };
|
|
385
357
|
export var serializeAws_restJson1GetResourceCollectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
386
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
358
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
387
359
|
return __generator(this, function (_c) {
|
|
388
360
|
switch (_c.label) {
|
|
389
361
|
case 0: return [4, context.endpoint()];
|
|
@@ -392,17 +364,10 @@ export var serializeAws_restJson1GetResourceCollectionCommand = function (input,
|
|
|
392
364
|
headers = {};
|
|
393
365
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
394
366
|
"/resource-collections/{ResourceCollectionType}";
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
}
|
|
400
|
-
resolvedPath = resolvedPath.replace("{ResourceCollectionType}", __extendedEncodeURIComponent(labelValue));
|
|
401
|
-
}
|
|
402
|
-
else {
|
|
403
|
-
throw new Error("No value provided for input HTTP label: ResourceCollectionType.");
|
|
404
|
-
}
|
|
405
|
-
query = __assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken }));
|
|
367
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceCollectionType", function () { return input.ResourceCollectionType; }, "{ResourceCollectionType}", false);
|
|
368
|
+
query = map({
|
|
369
|
+
NextToken: [, input.NextToken],
|
|
370
|
+
});
|
|
406
371
|
return [2, new __HttpRequest({
|
|
407
372
|
protocol: protocol,
|
|
408
373
|
hostname: hostname,
|
|
@@ -417,7 +382,7 @@ export var serializeAws_restJson1GetResourceCollectionCommand = function (input,
|
|
|
417
382
|
});
|
|
418
383
|
}); };
|
|
419
384
|
export var serializeAws_restJson1ListAnomaliesForInsightCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
420
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
385
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
421
386
|
return __generator(this, function (_c) {
|
|
422
387
|
switch (_c.label) {
|
|
423
388
|
case 0: return [4, context.endpoint()];
|
|
@@ -427,16 +392,7 @@ export var serializeAws_restJson1ListAnomaliesForInsightCommand = function (inpu
|
|
|
427
392
|
"content-type": "application/json",
|
|
428
393
|
};
|
|
429
394
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/anomalies/insight/{InsightId}";
|
|
430
|
-
|
|
431
|
-
labelValue = input.InsightId;
|
|
432
|
-
if (labelValue.length <= 0) {
|
|
433
|
-
throw new Error("Empty value provided for input HTTP label: InsightId.");
|
|
434
|
-
}
|
|
435
|
-
resolvedPath = resolvedPath.replace("{InsightId}", __extendedEncodeURIComponent(labelValue));
|
|
436
|
-
}
|
|
437
|
-
else {
|
|
438
|
-
throw new Error("No value provided for input HTTP label: InsightId.");
|
|
439
|
-
}
|
|
395
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "InsightId", function () { return input.InsightId; }, "{InsightId}", false);
|
|
440
396
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StartTimeRange != null && {
|
|
441
397
|
StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
|
|
442
398
|
})));
|
|
@@ -657,7 +613,7 @@ export var serializeAws_restJson1PutFeedbackCommand = function (input, context)
|
|
|
657
613
|
});
|
|
658
614
|
}); };
|
|
659
615
|
export var serializeAws_restJson1RemoveNotificationChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
660
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
616
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
661
617
|
return __generator(this, function (_c) {
|
|
662
618
|
switch (_c.label) {
|
|
663
619
|
case 0: return [4, context.endpoint()];
|
|
@@ -665,16 +621,7 @@ export var serializeAws_restJson1RemoveNotificationChannelCommand = function (in
|
|
|
665
621
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
666
622
|
headers = {};
|
|
667
623
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels/{Id}";
|
|
668
|
-
|
|
669
|
-
labelValue = input.Id;
|
|
670
|
-
if (labelValue.length <= 0) {
|
|
671
|
-
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
672
|
-
}
|
|
673
|
-
resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
|
|
674
|
-
}
|
|
675
|
-
else {
|
|
676
|
-
throw new Error("No value provided for input HTTP label: Id.");
|
|
677
|
-
}
|
|
624
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
678
625
|
return [2, new __HttpRequest({
|
|
679
626
|
protocol: protocol,
|
|
680
627
|
hostname: hostname,
|
|
@@ -856,24 +803,23 @@ export var deserializeAws_restJson1AddNotificationChannelCommand = function (out
|
|
|
856
803
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
857
804
|
return [2, deserializeAws_restJson1AddNotificationChannelCommandError(output, context)];
|
|
858
805
|
}
|
|
859
|
-
contents = {
|
|
806
|
+
contents = map({
|
|
860
807
|
$metadata: deserializeMetadata(output),
|
|
861
|
-
|
|
862
|
-
};
|
|
808
|
+
});
|
|
863
809
|
_a = __expectNonNull;
|
|
864
810
|
_b = __expectObject;
|
|
865
811
|
return [4, parseBody(output.body, context)];
|
|
866
812
|
case 1:
|
|
867
813
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
868
|
-
if (data.Id
|
|
814
|
+
if (data.Id != null) {
|
|
869
815
|
contents.Id = __expectString(data.Id);
|
|
870
816
|
}
|
|
871
|
-
return [2,
|
|
817
|
+
return [2, contents];
|
|
872
818
|
}
|
|
873
819
|
});
|
|
874
820
|
}); };
|
|
875
821
|
var deserializeAws_restJson1AddNotificationChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
876
|
-
var parsedOutput, _a,
|
|
822
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
877
823
|
var _c;
|
|
878
824
|
return __generator(this, function (_d) {
|
|
879
825
|
switch (_d.label) {
|
|
@@ -918,14 +864,14 @@ var deserializeAws_restJson1AddNotificationChannelCommandError = function (outpu
|
|
|
918
864
|
case 15: throw _d.sent();
|
|
919
865
|
case 16:
|
|
920
866
|
parsedBody = parsedOutput.body;
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
$metadata: $metadata,
|
|
867
|
+
throwDefaultError({
|
|
868
|
+
output: output,
|
|
869
|
+
parsedBody: parsedBody,
|
|
870
|
+
exceptionCtor: __BaseException,
|
|
871
|
+
errorCode: errorCode,
|
|
927
872
|
});
|
|
928
|
-
|
|
873
|
+
_d.label = 17;
|
|
874
|
+
case 17: return [2];
|
|
929
875
|
}
|
|
930
876
|
});
|
|
931
877
|
}); };
|
|
@@ -937,18 +883,18 @@ export var deserializeAws_restJson1DeleteInsightCommand = function (output, cont
|
|
|
937
883
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
938
884
|
return [2, deserializeAws_restJson1DeleteInsightCommandError(output, context)];
|
|
939
885
|
}
|
|
940
|
-
contents = {
|
|
886
|
+
contents = map({
|
|
941
887
|
$metadata: deserializeMetadata(output),
|
|
942
|
-
};
|
|
888
|
+
});
|
|
943
889
|
return [4, collectBody(output.body, context)];
|
|
944
890
|
case 1:
|
|
945
891
|
_a.sent();
|
|
946
|
-
return [2,
|
|
892
|
+
return [2, contents];
|
|
947
893
|
}
|
|
948
894
|
});
|
|
949
895
|
}); };
|
|
950
896
|
var deserializeAws_restJson1DeleteInsightCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
951
|
-
var parsedOutput, _a,
|
|
897
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
952
898
|
var _c;
|
|
953
899
|
return __generator(this, function (_d) {
|
|
954
900
|
switch (_d.label) {
|
|
@@ -989,14 +935,14 @@ var deserializeAws_restJson1DeleteInsightCommandError = function (output, contex
|
|
|
989
935
|
case 13: throw _d.sent();
|
|
990
936
|
case 14:
|
|
991
937
|
parsedBody = parsedOutput.body;
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
$metadata: $metadata,
|
|
938
|
+
throwDefaultError({
|
|
939
|
+
output: output,
|
|
940
|
+
parsedBody: parsedBody,
|
|
941
|
+
exceptionCtor: __BaseException,
|
|
942
|
+
errorCode: errorCode,
|
|
998
943
|
});
|
|
999
|
-
|
|
944
|
+
_d.label = 15;
|
|
945
|
+
case 15: return [2];
|
|
1000
946
|
}
|
|
1001
947
|
});
|
|
1002
948
|
}); };
|
|
@@ -1008,36 +954,32 @@ export var deserializeAws_restJson1DescribeAccountHealthCommand = function (outp
|
|
|
1008
954
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1009
955
|
return [2, deserializeAws_restJson1DescribeAccountHealthCommandError(output, context)];
|
|
1010
956
|
}
|
|
1011
|
-
contents = {
|
|
957
|
+
contents = map({
|
|
1012
958
|
$metadata: deserializeMetadata(output),
|
|
1013
|
-
|
|
1014
|
-
OpenProactiveInsights: undefined,
|
|
1015
|
-
OpenReactiveInsights: undefined,
|
|
1016
|
-
ResourceHours: undefined,
|
|
1017
|
-
};
|
|
959
|
+
});
|
|
1018
960
|
_a = __expectNonNull;
|
|
1019
961
|
_b = __expectObject;
|
|
1020
962
|
return [4, parseBody(output.body, context)];
|
|
1021
963
|
case 1:
|
|
1022
964
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1023
|
-
if (data.MetricsAnalyzed
|
|
965
|
+
if (data.MetricsAnalyzed != null) {
|
|
1024
966
|
contents.MetricsAnalyzed = __expectInt32(data.MetricsAnalyzed);
|
|
1025
967
|
}
|
|
1026
|
-
if (data.OpenProactiveInsights
|
|
968
|
+
if (data.OpenProactiveInsights != null) {
|
|
1027
969
|
contents.OpenProactiveInsights = __expectInt32(data.OpenProactiveInsights);
|
|
1028
970
|
}
|
|
1029
|
-
if (data.OpenReactiveInsights
|
|
971
|
+
if (data.OpenReactiveInsights != null) {
|
|
1030
972
|
contents.OpenReactiveInsights = __expectInt32(data.OpenReactiveInsights);
|
|
1031
973
|
}
|
|
1032
|
-
if (data.ResourceHours
|
|
974
|
+
if (data.ResourceHours != null) {
|
|
1033
975
|
contents.ResourceHours = __expectLong(data.ResourceHours);
|
|
1034
976
|
}
|
|
1035
|
-
return [2,
|
|
977
|
+
return [2, contents];
|
|
1036
978
|
}
|
|
1037
979
|
});
|
|
1038
980
|
}); };
|
|
1039
981
|
var deserializeAws_restJson1DescribeAccountHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1040
|
-
var parsedOutput, _a,
|
|
982
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1041
983
|
var _c;
|
|
1042
984
|
return __generator(this, function (_d) {
|
|
1043
985
|
switch (_d.label) {
|
|
@@ -1070,14 +1012,14 @@ var deserializeAws_restJson1DescribeAccountHealthCommandError = function (output
|
|
|
1070
1012
|
case 9: throw _d.sent();
|
|
1071
1013
|
case 10:
|
|
1072
1014
|
parsedBody = parsedOutput.body;
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
$metadata: $metadata,
|
|
1015
|
+
throwDefaultError({
|
|
1016
|
+
output: output,
|
|
1017
|
+
parsedBody: parsedBody,
|
|
1018
|
+
exceptionCtor: __BaseException,
|
|
1019
|
+
errorCode: errorCode,
|
|
1079
1020
|
});
|
|
1080
|
-
|
|
1021
|
+
_d.label = 11;
|
|
1022
|
+
case 11: return [2];
|
|
1081
1023
|
}
|
|
1082
1024
|
});
|
|
1083
1025
|
}); };
|
|
@@ -1089,32 +1031,29 @@ export var deserializeAws_restJson1DescribeAccountOverviewCommand = function (ou
|
|
|
1089
1031
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1090
1032
|
return [2, deserializeAws_restJson1DescribeAccountOverviewCommandError(output, context)];
|
|
1091
1033
|
}
|
|
1092
|
-
contents = {
|
|
1034
|
+
contents = map({
|
|
1093
1035
|
$metadata: deserializeMetadata(output),
|
|
1094
|
-
|
|
1095
|
-
ProactiveInsights: undefined,
|
|
1096
|
-
ReactiveInsights: undefined,
|
|
1097
|
-
};
|
|
1036
|
+
});
|
|
1098
1037
|
_a = __expectNonNull;
|
|
1099
1038
|
_b = __expectObject;
|
|
1100
1039
|
return [4, parseBody(output.body, context)];
|
|
1101
1040
|
case 1:
|
|
1102
1041
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1103
|
-
if (data.MeanTimeToRecoverInMilliseconds
|
|
1042
|
+
if (data.MeanTimeToRecoverInMilliseconds != null) {
|
|
1104
1043
|
contents.MeanTimeToRecoverInMilliseconds = __expectLong(data.MeanTimeToRecoverInMilliseconds);
|
|
1105
1044
|
}
|
|
1106
|
-
if (data.ProactiveInsights
|
|
1045
|
+
if (data.ProactiveInsights != null) {
|
|
1107
1046
|
contents.ProactiveInsights = __expectInt32(data.ProactiveInsights);
|
|
1108
1047
|
}
|
|
1109
|
-
if (data.ReactiveInsights
|
|
1048
|
+
if (data.ReactiveInsights != null) {
|
|
1110
1049
|
contents.ReactiveInsights = __expectInt32(data.ReactiveInsights);
|
|
1111
1050
|
}
|
|
1112
|
-
return [2,
|
|
1051
|
+
return [2, contents];
|
|
1113
1052
|
}
|
|
1114
1053
|
});
|
|
1115
1054
|
}); };
|
|
1116
1055
|
var deserializeAws_restJson1DescribeAccountOverviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1117
|
-
var parsedOutput, _a,
|
|
1056
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1118
1057
|
var _c;
|
|
1119
1058
|
return __generator(this, function (_d) {
|
|
1120
1059
|
switch (_d.label) {
|
|
@@ -1147,14 +1086,14 @@ var deserializeAws_restJson1DescribeAccountOverviewCommandError = function (outp
|
|
|
1147
1086
|
case 9: throw _d.sent();
|
|
1148
1087
|
case 10:
|
|
1149
1088
|
parsedBody = parsedOutput.body;
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
$metadata: $metadata,
|
|
1089
|
+
throwDefaultError({
|
|
1090
|
+
output: output,
|
|
1091
|
+
parsedBody: parsedBody,
|
|
1092
|
+
exceptionCtor: __BaseException,
|
|
1093
|
+
errorCode: errorCode,
|
|
1156
1094
|
});
|
|
1157
|
-
|
|
1095
|
+
_d.label = 11;
|
|
1096
|
+
case 11: return [2];
|
|
1158
1097
|
}
|
|
1159
1098
|
});
|
|
1160
1099
|
}); };
|
|
@@ -1166,28 +1105,26 @@ export var deserializeAws_restJson1DescribeAnomalyCommand = function (output, co
|
|
|
1166
1105
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1167
1106
|
return [2, deserializeAws_restJson1DescribeAnomalyCommandError(output, context)];
|
|
1168
1107
|
}
|
|
1169
|
-
contents = {
|
|
1108
|
+
contents = map({
|
|
1170
1109
|
$metadata: deserializeMetadata(output),
|
|
1171
|
-
|
|
1172
|
-
ReactiveAnomaly: undefined,
|
|
1173
|
-
};
|
|
1110
|
+
});
|
|
1174
1111
|
_a = __expectNonNull;
|
|
1175
1112
|
_b = __expectObject;
|
|
1176
1113
|
return [4, parseBody(output.body, context)];
|
|
1177
1114
|
case 1:
|
|
1178
1115
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1179
|
-
if (data.ProactiveAnomaly
|
|
1116
|
+
if (data.ProactiveAnomaly != null) {
|
|
1180
1117
|
contents.ProactiveAnomaly = deserializeAws_restJson1ProactiveAnomaly(data.ProactiveAnomaly, context);
|
|
1181
1118
|
}
|
|
1182
|
-
if (data.ReactiveAnomaly
|
|
1119
|
+
if (data.ReactiveAnomaly != null) {
|
|
1183
1120
|
contents.ReactiveAnomaly = deserializeAws_restJson1ReactiveAnomaly(data.ReactiveAnomaly, context);
|
|
1184
1121
|
}
|
|
1185
|
-
return [2,
|
|
1122
|
+
return [2, contents];
|
|
1186
1123
|
}
|
|
1187
1124
|
});
|
|
1188
1125
|
}); };
|
|
1189
1126
|
var deserializeAws_restJson1DescribeAnomalyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1190
|
-
var parsedOutput, _a,
|
|
1127
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1191
1128
|
var _c;
|
|
1192
1129
|
return __generator(this, function (_d) {
|
|
1193
1130
|
switch (_d.label) {
|
|
@@ -1224,14 +1161,14 @@ var deserializeAws_restJson1DescribeAnomalyCommandError = function (output, cont
|
|
|
1224
1161
|
case 11: throw _d.sent();
|
|
1225
1162
|
case 12:
|
|
1226
1163
|
parsedBody = parsedOutput.body;
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
$metadata: $metadata,
|
|
1164
|
+
throwDefaultError({
|
|
1165
|
+
output: output,
|
|
1166
|
+
parsedBody: parsedBody,
|
|
1167
|
+
exceptionCtor: __BaseException,
|
|
1168
|
+
errorCode: errorCode,
|
|
1233
1169
|
});
|
|
1234
|
-
|
|
1170
|
+
_d.label = 13;
|
|
1171
|
+
case 13: return [2];
|
|
1235
1172
|
}
|
|
1236
1173
|
});
|
|
1237
1174
|
}); };
|
|
@@ -1243,24 +1180,23 @@ export var deserializeAws_restJson1DescribeEventSourcesConfigCommand = function
|
|
|
1243
1180
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1244
1181
|
return [2, deserializeAws_restJson1DescribeEventSourcesConfigCommandError(output, context)];
|
|
1245
1182
|
}
|
|
1246
|
-
contents = {
|
|
1183
|
+
contents = map({
|
|
1247
1184
|
$metadata: deserializeMetadata(output),
|
|
1248
|
-
|
|
1249
|
-
};
|
|
1185
|
+
});
|
|
1250
1186
|
_a = __expectNonNull;
|
|
1251
1187
|
_b = __expectObject;
|
|
1252
1188
|
return [4, parseBody(output.body, context)];
|
|
1253
1189
|
case 1:
|
|
1254
1190
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1255
|
-
if (data.EventSources
|
|
1191
|
+
if (data.EventSources != null) {
|
|
1256
1192
|
contents.EventSources = deserializeAws_restJson1EventSourcesConfig(data.EventSources, context);
|
|
1257
1193
|
}
|
|
1258
|
-
return [2,
|
|
1194
|
+
return [2, contents];
|
|
1259
1195
|
}
|
|
1260
1196
|
});
|
|
1261
1197
|
}); };
|
|
1262
1198
|
var deserializeAws_restJson1DescribeEventSourcesConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1263
|
-
var parsedOutput, _a,
|
|
1199
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1264
1200
|
var _c;
|
|
1265
1201
|
return __generator(this, function (_d) {
|
|
1266
1202
|
switch (_d.label) {
|
|
@@ -1293,14 +1229,14 @@ var deserializeAws_restJson1DescribeEventSourcesConfigCommandError = function (o
|
|
|
1293
1229
|
case 9: throw _d.sent();
|
|
1294
1230
|
case 10:
|
|
1295
1231
|
parsedBody = parsedOutput.body;
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
$metadata: $metadata,
|
|
1232
|
+
throwDefaultError({
|
|
1233
|
+
output: output,
|
|
1234
|
+
parsedBody: parsedBody,
|
|
1235
|
+
exceptionCtor: __BaseException,
|
|
1236
|
+
errorCode: errorCode,
|
|
1302
1237
|
});
|
|
1303
|
-
|
|
1238
|
+
_d.label = 11;
|
|
1239
|
+
case 11: return [2];
|
|
1304
1240
|
}
|
|
1305
1241
|
});
|
|
1306
1242
|
}); };
|
|
@@ -1312,24 +1248,23 @@ export var deserializeAws_restJson1DescribeFeedbackCommand = function (output, c
|
|
|
1312
1248
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1313
1249
|
return [2, deserializeAws_restJson1DescribeFeedbackCommandError(output, context)];
|
|
1314
1250
|
}
|
|
1315
|
-
contents = {
|
|
1251
|
+
contents = map({
|
|
1316
1252
|
$metadata: deserializeMetadata(output),
|
|
1317
|
-
|
|
1318
|
-
};
|
|
1253
|
+
});
|
|
1319
1254
|
_a = __expectNonNull;
|
|
1320
1255
|
_b = __expectObject;
|
|
1321
1256
|
return [4, parseBody(output.body, context)];
|
|
1322
1257
|
case 1:
|
|
1323
1258
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1324
|
-
if (data.InsightFeedback
|
|
1259
|
+
if (data.InsightFeedback != null) {
|
|
1325
1260
|
contents.InsightFeedback = deserializeAws_restJson1InsightFeedback(data.InsightFeedback, context);
|
|
1326
1261
|
}
|
|
1327
|
-
return [2,
|
|
1262
|
+
return [2, contents];
|
|
1328
1263
|
}
|
|
1329
1264
|
});
|
|
1330
1265
|
}); };
|
|
1331
1266
|
var deserializeAws_restJson1DescribeFeedbackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1332
|
-
var parsedOutput, _a,
|
|
1267
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1333
1268
|
var _c;
|
|
1334
1269
|
return __generator(this, function (_d) {
|
|
1335
1270
|
switch (_d.label) {
|
|
@@ -1366,14 +1301,14 @@ var deserializeAws_restJson1DescribeFeedbackCommandError = function (output, con
|
|
|
1366
1301
|
case 11: throw _d.sent();
|
|
1367
1302
|
case 12:
|
|
1368
1303
|
parsedBody = parsedOutput.body;
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
$metadata: $metadata,
|
|
1304
|
+
throwDefaultError({
|
|
1305
|
+
output: output,
|
|
1306
|
+
parsedBody: parsedBody,
|
|
1307
|
+
exceptionCtor: __BaseException,
|
|
1308
|
+
errorCode: errorCode,
|
|
1375
1309
|
});
|
|
1376
|
-
|
|
1310
|
+
_d.label = 13;
|
|
1311
|
+
case 13: return [2];
|
|
1377
1312
|
}
|
|
1378
1313
|
});
|
|
1379
1314
|
}); };
|
|
@@ -1385,28 +1320,26 @@ export var deserializeAws_restJson1DescribeInsightCommand = function (output, co
|
|
|
1385
1320
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1386
1321
|
return [2, deserializeAws_restJson1DescribeInsightCommandError(output, context)];
|
|
1387
1322
|
}
|
|
1388
|
-
contents = {
|
|
1323
|
+
contents = map({
|
|
1389
1324
|
$metadata: deserializeMetadata(output),
|
|
1390
|
-
|
|
1391
|
-
ReactiveInsight: undefined,
|
|
1392
|
-
};
|
|
1325
|
+
});
|
|
1393
1326
|
_a = __expectNonNull;
|
|
1394
1327
|
_b = __expectObject;
|
|
1395
1328
|
return [4, parseBody(output.body, context)];
|
|
1396
1329
|
case 1:
|
|
1397
1330
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1398
|
-
if (data.ProactiveInsight
|
|
1331
|
+
if (data.ProactiveInsight != null) {
|
|
1399
1332
|
contents.ProactiveInsight = deserializeAws_restJson1ProactiveInsight(data.ProactiveInsight, context);
|
|
1400
1333
|
}
|
|
1401
|
-
if (data.ReactiveInsight
|
|
1334
|
+
if (data.ReactiveInsight != null) {
|
|
1402
1335
|
contents.ReactiveInsight = deserializeAws_restJson1ReactiveInsight(data.ReactiveInsight, context);
|
|
1403
1336
|
}
|
|
1404
|
-
return [2,
|
|
1337
|
+
return [2, contents];
|
|
1405
1338
|
}
|
|
1406
1339
|
});
|
|
1407
1340
|
}); };
|
|
1408
1341
|
var deserializeAws_restJson1DescribeInsightCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1409
|
-
var parsedOutput, _a,
|
|
1342
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1410
1343
|
var _c;
|
|
1411
1344
|
return __generator(this, function (_d) {
|
|
1412
1345
|
switch (_d.label) {
|
|
@@ -1443,14 +1376,14 @@ var deserializeAws_restJson1DescribeInsightCommandError = function (output, cont
|
|
|
1443
1376
|
case 11: throw _d.sent();
|
|
1444
1377
|
case 12:
|
|
1445
1378
|
parsedBody = parsedOutput.body;
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
$metadata: $metadata,
|
|
1379
|
+
throwDefaultError({
|
|
1380
|
+
output: output,
|
|
1381
|
+
parsedBody: parsedBody,
|
|
1382
|
+
exceptionCtor: __BaseException,
|
|
1383
|
+
errorCode: errorCode,
|
|
1452
1384
|
});
|
|
1453
|
-
|
|
1385
|
+
_d.label = 13;
|
|
1386
|
+
case 13: return [2];
|
|
1454
1387
|
}
|
|
1455
1388
|
});
|
|
1456
1389
|
}); };
|
|
@@ -1462,36 +1395,32 @@ export var deserializeAws_restJson1DescribeOrganizationHealthCommand = function
|
|
|
1462
1395
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1463
1396
|
return [2, deserializeAws_restJson1DescribeOrganizationHealthCommandError(output, context)];
|
|
1464
1397
|
}
|
|
1465
|
-
contents = {
|
|
1398
|
+
contents = map({
|
|
1466
1399
|
$metadata: deserializeMetadata(output),
|
|
1467
|
-
|
|
1468
|
-
OpenProactiveInsights: undefined,
|
|
1469
|
-
OpenReactiveInsights: undefined,
|
|
1470
|
-
ResourceHours: undefined,
|
|
1471
|
-
};
|
|
1400
|
+
});
|
|
1472
1401
|
_a = __expectNonNull;
|
|
1473
1402
|
_b = __expectObject;
|
|
1474
1403
|
return [4, parseBody(output.body, context)];
|
|
1475
1404
|
case 1:
|
|
1476
1405
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1477
|
-
if (data.MetricsAnalyzed
|
|
1406
|
+
if (data.MetricsAnalyzed != null) {
|
|
1478
1407
|
contents.MetricsAnalyzed = __expectInt32(data.MetricsAnalyzed);
|
|
1479
1408
|
}
|
|
1480
|
-
if (data.OpenProactiveInsights
|
|
1409
|
+
if (data.OpenProactiveInsights != null) {
|
|
1481
1410
|
contents.OpenProactiveInsights = __expectInt32(data.OpenProactiveInsights);
|
|
1482
1411
|
}
|
|
1483
|
-
if (data.OpenReactiveInsights
|
|
1412
|
+
if (data.OpenReactiveInsights != null) {
|
|
1484
1413
|
contents.OpenReactiveInsights = __expectInt32(data.OpenReactiveInsights);
|
|
1485
1414
|
}
|
|
1486
|
-
if (data.ResourceHours
|
|
1415
|
+
if (data.ResourceHours != null) {
|
|
1487
1416
|
contents.ResourceHours = __expectLong(data.ResourceHours);
|
|
1488
1417
|
}
|
|
1489
|
-
return [2,
|
|
1418
|
+
return [2, contents];
|
|
1490
1419
|
}
|
|
1491
1420
|
});
|
|
1492
1421
|
}); };
|
|
1493
1422
|
var deserializeAws_restJson1DescribeOrganizationHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1494
|
-
var parsedOutput, _a,
|
|
1423
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1495
1424
|
var _c;
|
|
1496
1425
|
return __generator(this, function (_d) {
|
|
1497
1426
|
switch (_d.label) {
|
|
@@ -1524,14 +1453,14 @@ var deserializeAws_restJson1DescribeOrganizationHealthCommandError = function (o
|
|
|
1524
1453
|
case 9: throw _d.sent();
|
|
1525
1454
|
case 10:
|
|
1526
1455
|
parsedBody = parsedOutput.body;
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
$metadata: $metadata,
|
|
1456
|
+
throwDefaultError({
|
|
1457
|
+
output: output,
|
|
1458
|
+
parsedBody: parsedBody,
|
|
1459
|
+
exceptionCtor: __BaseException,
|
|
1460
|
+
errorCode: errorCode,
|
|
1533
1461
|
});
|
|
1534
|
-
|
|
1462
|
+
_d.label = 11;
|
|
1463
|
+
case 11: return [2];
|
|
1535
1464
|
}
|
|
1536
1465
|
});
|
|
1537
1466
|
}); };
|
|
@@ -1543,28 +1472,26 @@ export var deserializeAws_restJson1DescribeOrganizationOverviewCommand = functio
|
|
|
1543
1472
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1544
1473
|
return [2, deserializeAws_restJson1DescribeOrganizationOverviewCommandError(output, context)];
|
|
1545
1474
|
}
|
|
1546
|
-
contents = {
|
|
1475
|
+
contents = map({
|
|
1547
1476
|
$metadata: deserializeMetadata(output),
|
|
1548
|
-
|
|
1549
|
-
ReactiveInsights: undefined,
|
|
1550
|
-
};
|
|
1477
|
+
});
|
|
1551
1478
|
_a = __expectNonNull;
|
|
1552
1479
|
_b = __expectObject;
|
|
1553
1480
|
return [4, parseBody(output.body, context)];
|
|
1554
1481
|
case 1:
|
|
1555
1482
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1556
|
-
if (data.ProactiveInsights
|
|
1483
|
+
if (data.ProactiveInsights != null) {
|
|
1557
1484
|
contents.ProactiveInsights = __expectInt32(data.ProactiveInsights);
|
|
1558
1485
|
}
|
|
1559
|
-
if (data.ReactiveInsights
|
|
1486
|
+
if (data.ReactiveInsights != null) {
|
|
1560
1487
|
contents.ReactiveInsights = __expectInt32(data.ReactiveInsights);
|
|
1561
1488
|
}
|
|
1562
|
-
return [2,
|
|
1489
|
+
return [2, contents];
|
|
1563
1490
|
}
|
|
1564
1491
|
});
|
|
1565
1492
|
}); };
|
|
1566
1493
|
var deserializeAws_restJson1DescribeOrganizationOverviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1567
|
-
var parsedOutput, _a,
|
|
1494
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1568
1495
|
var _c;
|
|
1569
1496
|
return __generator(this, function (_d) {
|
|
1570
1497
|
switch (_d.label) {
|
|
@@ -1597,14 +1524,14 @@ var deserializeAws_restJson1DescribeOrganizationOverviewCommandError = function
|
|
|
1597
1524
|
case 9: throw _d.sent();
|
|
1598
1525
|
case 10:
|
|
1599
1526
|
parsedBody = parsedOutput.body;
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
$metadata: $metadata,
|
|
1527
|
+
throwDefaultError({
|
|
1528
|
+
output: output,
|
|
1529
|
+
parsedBody: parsedBody,
|
|
1530
|
+
exceptionCtor: __BaseException,
|
|
1531
|
+
errorCode: errorCode,
|
|
1606
1532
|
});
|
|
1607
|
-
|
|
1533
|
+
_d.label = 11;
|
|
1534
|
+
case 11: return [2];
|
|
1608
1535
|
}
|
|
1609
1536
|
});
|
|
1610
1537
|
}); };
|
|
@@ -1616,40 +1543,35 @@ export var deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthC
|
|
|
1616
1543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1617
1544
|
return [2, deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandError(output, context)];
|
|
1618
1545
|
}
|
|
1619
|
-
contents = {
|
|
1546
|
+
contents = map({
|
|
1620
1547
|
$metadata: deserializeMetadata(output),
|
|
1621
|
-
|
|
1622
|
-
CloudFormation: undefined,
|
|
1623
|
-
NextToken: undefined,
|
|
1624
|
-
Service: undefined,
|
|
1625
|
-
Tags: undefined,
|
|
1626
|
-
};
|
|
1548
|
+
});
|
|
1627
1549
|
_a = __expectNonNull;
|
|
1628
1550
|
_b = __expectObject;
|
|
1629
1551
|
return [4, parseBody(output.body, context)];
|
|
1630
1552
|
case 1:
|
|
1631
1553
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1632
|
-
if (data.Account
|
|
1554
|
+
if (data.Account != null) {
|
|
1633
1555
|
contents.Account = deserializeAws_restJson1AccountHealths(data.Account, context);
|
|
1634
1556
|
}
|
|
1635
|
-
if (data.CloudFormation
|
|
1557
|
+
if (data.CloudFormation != null) {
|
|
1636
1558
|
contents.CloudFormation = deserializeAws_restJson1CloudFormationHealths(data.CloudFormation, context);
|
|
1637
1559
|
}
|
|
1638
|
-
if (data.NextToken
|
|
1560
|
+
if (data.NextToken != null) {
|
|
1639
1561
|
contents.NextToken = __expectString(data.NextToken);
|
|
1640
1562
|
}
|
|
1641
|
-
if (data.Service
|
|
1563
|
+
if (data.Service != null) {
|
|
1642
1564
|
contents.Service = deserializeAws_restJson1ServiceHealths(data.Service, context);
|
|
1643
1565
|
}
|
|
1644
|
-
if (data.Tags
|
|
1566
|
+
if (data.Tags != null) {
|
|
1645
1567
|
contents.Tags = deserializeAws_restJson1TagHealths(data.Tags, context);
|
|
1646
1568
|
}
|
|
1647
|
-
return [2,
|
|
1569
|
+
return [2, contents];
|
|
1648
1570
|
}
|
|
1649
1571
|
});
|
|
1650
1572
|
}); };
|
|
1651
1573
|
var deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1652
|
-
var parsedOutput, _a,
|
|
1574
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1653
1575
|
var _c;
|
|
1654
1576
|
return __generator(this, function (_d) {
|
|
1655
1577
|
switch (_d.label) {
|
|
@@ -1682,14 +1604,14 @@ var deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandE
|
|
|
1682
1604
|
case 9: throw _d.sent();
|
|
1683
1605
|
case 10:
|
|
1684
1606
|
parsedBody = parsedOutput.body;
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
$metadata: $metadata,
|
|
1607
|
+
throwDefaultError({
|
|
1608
|
+
output: output,
|
|
1609
|
+
parsedBody: parsedBody,
|
|
1610
|
+
exceptionCtor: __BaseException,
|
|
1611
|
+
errorCode: errorCode,
|
|
1691
1612
|
});
|
|
1692
|
-
|
|
1613
|
+
_d.label = 11;
|
|
1614
|
+
case 11: return [2];
|
|
1693
1615
|
}
|
|
1694
1616
|
});
|
|
1695
1617
|
}); };
|
|
@@ -1701,36 +1623,32 @@ export var deserializeAws_restJson1DescribeResourceCollectionHealthCommand = fun
|
|
|
1701
1623
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1702
1624
|
return [2, deserializeAws_restJson1DescribeResourceCollectionHealthCommandError(output, context)];
|
|
1703
1625
|
}
|
|
1704
|
-
contents = {
|
|
1626
|
+
contents = map({
|
|
1705
1627
|
$metadata: deserializeMetadata(output),
|
|
1706
|
-
|
|
1707
|
-
NextToken: undefined,
|
|
1708
|
-
Service: undefined,
|
|
1709
|
-
Tags: undefined,
|
|
1710
|
-
};
|
|
1628
|
+
});
|
|
1711
1629
|
_a = __expectNonNull;
|
|
1712
1630
|
_b = __expectObject;
|
|
1713
1631
|
return [4, parseBody(output.body, context)];
|
|
1714
1632
|
case 1:
|
|
1715
1633
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1716
|
-
if (data.CloudFormation
|
|
1634
|
+
if (data.CloudFormation != null) {
|
|
1717
1635
|
contents.CloudFormation = deserializeAws_restJson1CloudFormationHealths(data.CloudFormation, context);
|
|
1718
1636
|
}
|
|
1719
|
-
if (data.NextToken
|
|
1637
|
+
if (data.NextToken != null) {
|
|
1720
1638
|
contents.NextToken = __expectString(data.NextToken);
|
|
1721
1639
|
}
|
|
1722
|
-
if (data.Service
|
|
1640
|
+
if (data.Service != null) {
|
|
1723
1641
|
contents.Service = deserializeAws_restJson1ServiceHealths(data.Service, context);
|
|
1724
1642
|
}
|
|
1725
|
-
if (data.Tags
|
|
1643
|
+
if (data.Tags != null) {
|
|
1726
1644
|
contents.Tags = deserializeAws_restJson1TagHealths(data.Tags, context);
|
|
1727
1645
|
}
|
|
1728
|
-
return [2,
|
|
1646
|
+
return [2, contents];
|
|
1729
1647
|
}
|
|
1730
1648
|
});
|
|
1731
1649
|
}); };
|
|
1732
1650
|
var deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1733
|
-
var parsedOutput, _a,
|
|
1651
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1734
1652
|
var _c;
|
|
1735
1653
|
return __generator(this, function (_d) {
|
|
1736
1654
|
switch (_d.label) {
|
|
@@ -1763,14 +1681,14 @@ var deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = funct
|
|
|
1763
1681
|
case 9: throw _d.sent();
|
|
1764
1682
|
case 10:
|
|
1765
1683
|
parsedBody = parsedOutput.body;
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
$metadata: $metadata,
|
|
1684
|
+
throwDefaultError({
|
|
1685
|
+
output: output,
|
|
1686
|
+
parsedBody: parsedBody,
|
|
1687
|
+
exceptionCtor: __BaseException,
|
|
1688
|
+
errorCode: errorCode,
|
|
1772
1689
|
});
|
|
1773
|
-
|
|
1690
|
+
_d.label = 11;
|
|
1691
|
+
case 11: return [2];
|
|
1774
1692
|
}
|
|
1775
1693
|
});
|
|
1776
1694
|
}); };
|
|
@@ -1782,24 +1700,23 @@ export var deserializeAws_restJson1DescribeServiceIntegrationCommand = function
|
|
|
1782
1700
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1783
1701
|
return [2, deserializeAws_restJson1DescribeServiceIntegrationCommandError(output, context)];
|
|
1784
1702
|
}
|
|
1785
|
-
contents = {
|
|
1703
|
+
contents = map({
|
|
1786
1704
|
$metadata: deserializeMetadata(output),
|
|
1787
|
-
|
|
1788
|
-
};
|
|
1705
|
+
});
|
|
1789
1706
|
_a = __expectNonNull;
|
|
1790
1707
|
_b = __expectObject;
|
|
1791
1708
|
return [4, parseBody(output.body, context)];
|
|
1792
1709
|
case 1:
|
|
1793
1710
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1794
|
-
if (data.ServiceIntegration
|
|
1711
|
+
if (data.ServiceIntegration != null) {
|
|
1795
1712
|
contents.ServiceIntegration = deserializeAws_restJson1ServiceIntegrationConfig(data.ServiceIntegration, context);
|
|
1796
1713
|
}
|
|
1797
|
-
return [2,
|
|
1714
|
+
return [2, contents];
|
|
1798
1715
|
}
|
|
1799
1716
|
});
|
|
1800
1717
|
}); };
|
|
1801
1718
|
var deserializeAws_restJson1DescribeServiceIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1802
|
-
var parsedOutput, _a,
|
|
1719
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1803
1720
|
var _c;
|
|
1804
1721
|
return __generator(this, function (_d) {
|
|
1805
1722
|
switch (_d.label) {
|
|
@@ -1836,14 +1753,14 @@ var deserializeAws_restJson1DescribeServiceIntegrationCommandError = function (o
|
|
|
1836
1753
|
case 11: throw _d.sent();
|
|
1837
1754
|
case 12:
|
|
1838
1755
|
parsedBody = parsedOutput.body;
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
$metadata: $metadata,
|
|
1756
|
+
throwDefaultError({
|
|
1757
|
+
output: output,
|
|
1758
|
+
parsedBody: parsedBody,
|
|
1759
|
+
exceptionCtor: __BaseException,
|
|
1760
|
+
errorCode: errorCode,
|
|
1845
1761
|
});
|
|
1846
|
-
|
|
1762
|
+
_d.label = 13;
|
|
1763
|
+
case 13: return [2];
|
|
1847
1764
|
}
|
|
1848
1765
|
});
|
|
1849
1766
|
}); };
|
|
@@ -1855,44 +1772,38 @@ export var deserializeAws_restJson1GetCostEstimationCommand = function (output,
|
|
|
1855
1772
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1856
1773
|
return [2, deserializeAws_restJson1GetCostEstimationCommandError(output, context)];
|
|
1857
1774
|
}
|
|
1858
|
-
contents = {
|
|
1775
|
+
contents = map({
|
|
1859
1776
|
$metadata: deserializeMetadata(output),
|
|
1860
|
-
|
|
1861
|
-
NextToken: undefined,
|
|
1862
|
-
ResourceCollection: undefined,
|
|
1863
|
-
Status: undefined,
|
|
1864
|
-
TimeRange: undefined,
|
|
1865
|
-
TotalCost: undefined,
|
|
1866
|
-
};
|
|
1777
|
+
});
|
|
1867
1778
|
_a = __expectNonNull;
|
|
1868
1779
|
_b = __expectObject;
|
|
1869
1780
|
return [4, parseBody(output.body, context)];
|
|
1870
1781
|
case 1:
|
|
1871
1782
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1872
|
-
if (data.Costs
|
|
1783
|
+
if (data.Costs != null) {
|
|
1873
1784
|
contents.Costs = deserializeAws_restJson1ServiceResourceCosts(data.Costs, context);
|
|
1874
1785
|
}
|
|
1875
|
-
if (data.NextToken
|
|
1786
|
+
if (data.NextToken != null) {
|
|
1876
1787
|
contents.NextToken = __expectString(data.NextToken);
|
|
1877
1788
|
}
|
|
1878
|
-
if (data.ResourceCollection
|
|
1789
|
+
if (data.ResourceCollection != null) {
|
|
1879
1790
|
contents.ResourceCollection = deserializeAws_restJson1CostEstimationResourceCollectionFilter(data.ResourceCollection, context);
|
|
1880
1791
|
}
|
|
1881
|
-
if (data.Status
|
|
1792
|
+
if (data.Status != null) {
|
|
1882
1793
|
contents.Status = __expectString(data.Status);
|
|
1883
1794
|
}
|
|
1884
|
-
if (data.TimeRange
|
|
1795
|
+
if (data.TimeRange != null) {
|
|
1885
1796
|
contents.TimeRange = deserializeAws_restJson1CostEstimationTimeRange(data.TimeRange, context);
|
|
1886
1797
|
}
|
|
1887
|
-
if (data.TotalCost
|
|
1798
|
+
if (data.TotalCost != null) {
|
|
1888
1799
|
contents.TotalCost = __limitedParseDouble(data.TotalCost);
|
|
1889
1800
|
}
|
|
1890
|
-
return [2,
|
|
1801
|
+
return [2, contents];
|
|
1891
1802
|
}
|
|
1892
1803
|
});
|
|
1893
1804
|
}); };
|
|
1894
1805
|
var deserializeAws_restJson1GetCostEstimationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1895
|
-
var parsedOutput, _a,
|
|
1806
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1896
1807
|
var _c;
|
|
1897
1808
|
return __generator(this, function (_d) {
|
|
1898
1809
|
switch (_d.label) {
|
|
@@ -1929,14 +1840,14 @@ var deserializeAws_restJson1GetCostEstimationCommandError = function (output, co
|
|
|
1929
1840
|
case 11: throw _d.sent();
|
|
1930
1841
|
case 12:
|
|
1931
1842
|
parsedBody = parsedOutput.body;
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
$metadata: $metadata,
|
|
1843
|
+
throwDefaultError({
|
|
1844
|
+
output: output,
|
|
1845
|
+
parsedBody: parsedBody,
|
|
1846
|
+
exceptionCtor: __BaseException,
|
|
1847
|
+
errorCode: errorCode,
|
|
1938
1848
|
});
|
|
1939
|
-
|
|
1849
|
+
_d.label = 13;
|
|
1850
|
+
case 13: return [2];
|
|
1940
1851
|
}
|
|
1941
1852
|
});
|
|
1942
1853
|
}); };
|
|
@@ -1948,28 +1859,26 @@ export var deserializeAws_restJson1GetResourceCollectionCommand = function (outp
|
|
|
1948
1859
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1949
1860
|
return [2, deserializeAws_restJson1GetResourceCollectionCommandError(output, context)];
|
|
1950
1861
|
}
|
|
1951
|
-
contents = {
|
|
1862
|
+
contents = map({
|
|
1952
1863
|
$metadata: deserializeMetadata(output),
|
|
1953
|
-
|
|
1954
|
-
ResourceCollection: undefined,
|
|
1955
|
-
};
|
|
1864
|
+
});
|
|
1956
1865
|
_a = __expectNonNull;
|
|
1957
1866
|
_b = __expectObject;
|
|
1958
1867
|
return [4, parseBody(output.body, context)];
|
|
1959
1868
|
case 1:
|
|
1960
1869
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1961
|
-
if (data.NextToken
|
|
1870
|
+
if (data.NextToken != null) {
|
|
1962
1871
|
contents.NextToken = __expectString(data.NextToken);
|
|
1963
1872
|
}
|
|
1964
|
-
if (data.ResourceCollection
|
|
1873
|
+
if (data.ResourceCollection != null) {
|
|
1965
1874
|
contents.ResourceCollection = deserializeAws_restJson1ResourceCollectionFilter(data.ResourceCollection, context);
|
|
1966
1875
|
}
|
|
1967
|
-
return [2,
|
|
1876
|
+
return [2, contents];
|
|
1968
1877
|
}
|
|
1969
1878
|
});
|
|
1970
1879
|
}); };
|
|
1971
1880
|
var deserializeAws_restJson1GetResourceCollectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1972
|
-
var parsedOutput, _a,
|
|
1881
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1973
1882
|
var _c;
|
|
1974
1883
|
return __generator(this, function (_d) {
|
|
1975
1884
|
switch (_d.label) {
|
|
@@ -2006,14 +1915,14 @@ var deserializeAws_restJson1GetResourceCollectionCommandError = function (output
|
|
|
2006
1915
|
case 11: throw _d.sent();
|
|
2007
1916
|
case 12:
|
|
2008
1917
|
parsedBody = parsedOutput.body;
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
$metadata: $metadata,
|
|
1918
|
+
throwDefaultError({
|
|
1919
|
+
output: output,
|
|
1920
|
+
parsedBody: parsedBody,
|
|
1921
|
+
exceptionCtor: __BaseException,
|
|
1922
|
+
errorCode: errorCode,
|
|
2015
1923
|
});
|
|
2016
|
-
|
|
1924
|
+
_d.label = 13;
|
|
1925
|
+
case 13: return [2];
|
|
2017
1926
|
}
|
|
2018
1927
|
});
|
|
2019
1928
|
}); };
|
|
@@ -2025,32 +1934,29 @@ export var deserializeAws_restJson1ListAnomaliesForInsightCommand = function (ou
|
|
|
2025
1934
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2026
1935
|
return [2, deserializeAws_restJson1ListAnomaliesForInsightCommandError(output, context)];
|
|
2027
1936
|
}
|
|
2028
|
-
contents = {
|
|
1937
|
+
contents = map({
|
|
2029
1938
|
$metadata: deserializeMetadata(output),
|
|
2030
|
-
|
|
2031
|
-
ProactiveAnomalies: undefined,
|
|
2032
|
-
ReactiveAnomalies: undefined,
|
|
2033
|
-
};
|
|
1939
|
+
});
|
|
2034
1940
|
_a = __expectNonNull;
|
|
2035
1941
|
_b = __expectObject;
|
|
2036
1942
|
return [4, parseBody(output.body, context)];
|
|
2037
1943
|
case 1:
|
|
2038
1944
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2039
|
-
if (data.NextToken
|
|
1945
|
+
if (data.NextToken != null) {
|
|
2040
1946
|
contents.NextToken = __expectString(data.NextToken);
|
|
2041
1947
|
}
|
|
2042
|
-
if (data.ProactiveAnomalies
|
|
1948
|
+
if (data.ProactiveAnomalies != null) {
|
|
2043
1949
|
contents.ProactiveAnomalies = deserializeAws_restJson1ProactiveAnomalies(data.ProactiveAnomalies, context);
|
|
2044
1950
|
}
|
|
2045
|
-
if (data.ReactiveAnomalies
|
|
1951
|
+
if (data.ReactiveAnomalies != null) {
|
|
2046
1952
|
contents.ReactiveAnomalies = deserializeAws_restJson1ReactiveAnomalies(data.ReactiveAnomalies, context);
|
|
2047
1953
|
}
|
|
2048
|
-
return [2,
|
|
1954
|
+
return [2, contents];
|
|
2049
1955
|
}
|
|
2050
1956
|
});
|
|
2051
1957
|
}); };
|
|
2052
1958
|
var deserializeAws_restJson1ListAnomaliesForInsightCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2053
|
-
var parsedOutput, _a,
|
|
1959
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2054
1960
|
var _c;
|
|
2055
1961
|
return __generator(this, function (_d) {
|
|
2056
1962
|
switch (_d.label) {
|
|
@@ -2087,14 +1993,14 @@ var deserializeAws_restJson1ListAnomaliesForInsightCommandError = function (outp
|
|
|
2087
1993
|
case 11: throw _d.sent();
|
|
2088
1994
|
case 12:
|
|
2089
1995
|
parsedBody = parsedOutput.body;
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
$metadata: $metadata,
|
|
1996
|
+
throwDefaultError({
|
|
1997
|
+
output: output,
|
|
1998
|
+
parsedBody: parsedBody,
|
|
1999
|
+
exceptionCtor: __BaseException,
|
|
2000
|
+
errorCode: errorCode,
|
|
2096
2001
|
});
|
|
2097
|
-
|
|
2002
|
+
_d.label = 13;
|
|
2003
|
+
case 13: return [2];
|
|
2098
2004
|
}
|
|
2099
2005
|
});
|
|
2100
2006
|
}); };
|
|
@@ -2106,32 +2012,29 @@ export var deserializeAws_restJson1ListAnomalousLogGroupsCommand = function (out
|
|
|
2106
2012
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2107
2013
|
return [2, deserializeAws_restJson1ListAnomalousLogGroupsCommandError(output, context)];
|
|
2108
2014
|
}
|
|
2109
|
-
contents = {
|
|
2015
|
+
contents = map({
|
|
2110
2016
|
$metadata: deserializeMetadata(output),
|
|
2111
|
-
|
|
2112
|
-
InsightId: undefined,
|
|
2113
|
-
NextToken: undefined,
|
|
2114
|
-
};
|
|
2017
|
+
});
|
|
2115
2018
|
_a = __expectNonNull;
|
|
2116
2019
|
_b = __expectObject;
|
|
2117
2020
|
return [4, parseBody(output.body, context)];
|
|
2118
2021
|
case 1:
|
|
2119
2022
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2120
|
-
if (data.AnomalousLogGroups
|
|
2023
|
+
if (data.AnomalousLogGroups != null) {
|
|
2121
2024
|
contents.AnomalousLogGroups = deserializeAws_restJson1AnomalousLogGroups(data.AnomalousLogGroups, context);
|
|
2122
2025
|
}
|
|
2123
|
-
if (data.InsightId
|
|
2026
|
+
if (data.InsightId != null) {
|
|
2124
2027
|
contents.InsightId = __expectString(data.InsightId);
|
|
2125
2028
|
}
|
|
2126
|
-
if (data.NextToken
|
|
2029
|
+
if (data.NextToken != null) {
|
|
2127
2030
|
contents.NextToken = __expectString(data.NextToken);
|
|
2128
2031
|
}
|
|
2129
|
-
return [2,
|
|
2032
|
+
return [2, contents];
|
|
2130
2033
|
}
|
|
2131
2034
|
});
|
|
2132
2035
|
}); };
|
|
2133
2036
|
var deserializeAws_restJson1ListAnomalousLogGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2134
|
-
var parsedOutput, _a,
|
|
2037
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2135
2038
|
var _c;
|
|
2136
2039
|
return __generator(this, function (_d) {
|
|
2137
2040
|
switch (_d.label) {
|
|
@@ -2168,14 +2071,14 @@ var deserializeAws_restJson1ListAnomalousLogGroupsCommandError = function (outpu
|
|
|
2168
2071
|
case 11: throw _d.sent();
|
|
2169
2072
|
case 12:
|
|
2170
2073
|
parsedBody = parsedOutput.body;
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
$metadata: $metadata,
|
|
2074
|
+
throwDefaultError({
|
|
2075
|
+
output: output,
|
|
2076
|
+
parsedBody: parsedBody,
|
|
2077
|
+
exceptionCtor: __BaseException,
|
|
2078
|
+
errorCode: errorCode,
|
|
2177
2079
|
});
|
|
2178
|
-
|
|
2080
|
+
_d.label = 13;
|
|
2081
|
+
case 13: return [2];
|
|
2179
2082
|
}
|
|
2180
2083
|
});
|
|
2181
2084
|
}); };
|
|
@@ -2187,28 +2090,26 @@ export var deserializeAws_restJson1ListEventsCommand = function (output, context
|
|
|
2187
2090
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2188
2091
|
return [2, deserializeAws_restJson1ListEventsCommandError(output, context)];
|
|
2189
2092
|
}
|
|
2190
|
-
contents = {
|
|
2093
|
+
contents = map({
|
|
2191
2094
|
$metadata: deserializeMetadata(output),
|
|
2192
|
-
|
|
2193
|
-
NextToken: undefined,
|
|
2194
|
-
};
|
|
2095
|
+
});
|
|
2195
2096
|
_a = __expectNonNull;
|
|
2196
2097
|
_b = __expectObject;
|
|
2197
2098
|
return [4, parseBody(output.body, context)];
|
|
2198
2099
|
case 1:
|
|
2199
2100
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2200
|
-
if (data.Events
|
|
2101
|
+
if (data.Events != null) {
|
|
2201
2102
|
contents.Events = deserializeAws_restJson1Events(data.Events, context);
|
|
2202
2103
|
}
|
|
2203
|
-
if (data.NextToken
|
|
2104
|
+
if (data.NextToken != null) {
|
|
2204
2105
|
contents.NextToken = __expectString(data.NextToken);
|
|
2205
2106
|
}
|
|
2206
|
-
return [2,
|
|
2107
|
+
return [2, contents];
|
|
2207
2108
|
}
|
|
2208
2109
|
});
|
|
2209
2110
|
}); };
|
|
2210
2111
|
var deserializeAws_restJson1ListEventsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2211
|
-
var parsedOutput, _a,
|
|
2112
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2212
2113
|
var _c;
|
|
2213
2114
|
return __generator(this, function (_d) {
|
|
2214
2115
|
switch (_d.label) {
|
|
@@ -2245,14 +2146,14 @@ var deserializeAws_restJson1ListEventsCommandError = function (output, context)
|
|
|
2245
2146
|
case 11: throw _d.sent();
|
|
2246
2147
|
case 12:
|
|
2247
2148
|
parsedBody = parsedOutput.body;
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
$metadata: $metadata,
|
|
2149
|
+
throwDefaultError({
|
|
2150
|
+
output: output,
|
|
2151
|
+
parsedBody: parsedBody,
|
|
2152
|
+
exceptionCtor: __BaseException,
|
|
2153
|
+
errorCode: errorCode,
|
|
2254
2154
|
});
|
|
2255
|
-
|
|
2155
|
+
_d.label = 13;
|
|
2156
|
+
case 13: return [2];
|
|
2256
2157
|
}
|
|
2257
2158
|
});
|
|
2258
2159
|
}); };
|
|
@@ -2264,32 +2165,29 @@ export var deserializeAws_restJson1ListInsightsCommand = function (output, conte
|
|
|
2264
2165
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2265
2166
|
return [2, deserializeAws_restJson1ListInsightsCommandError(output, context)];
|
|
2266
2167
|
}
|
|
2267
|
-
contents = {
|
|
2168
|
+
contents = map({
|
|
2268
2169
|
$metadata: deserializeMetadata(output),
|
|
2269
|
-
|
|
2270
|
-
ProactiveInsights: undefined,
|
|
2271
|
-
ReactiveInsights: undefined,
|
|
2272
|
-
};
|
|
2170
|
+
});
|
|
2273
2171
|
_a = __expectNonNull;
|
|
2274
2172
|
_b = __expectObject;
|
|
2275
2173
|
return [4, parseBody(output.body, context)];
|
|
2276
2174
|
case 1:
|
|
2277
2175
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2278
|
-
if (data.NextToken
|
|
2176
|
+
if (data.NextToken != null) {
|
|
2279
2177
|
contents.NextToken = __expectString(data.NextToken);
|
|
2280
2178
|
}
|
|
2281
|
-
if (data.ProactiveInsights
|
|
2179
|
+
if (data.ProactiveInsights != null) {
|
|
2282
2180
|
contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
|
|
2283
2181
|
}
|
|
2284
|
-
if (data.ReactiveInsights
|
|
2182
|
+
if (data.ReactiveInsights != null) {
|
|
2285
2183
|
contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
|
|
2286
2184
|
}
|
|
2287
|
-
return [2,
|
|
2185
|
+
return [2, contents];
|
|
2288
2186
|
}
|
|
2289
2187
|
});
|
|
2290
2188
|
}); };
|
|
2291
2189
|
var deserializeAws_restJson1ListInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2292
|
-
var parsedOutput, _a,
|
|
2190
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2293
2191
|
var _c;
|
|
2294
2192
|
return __generator(this, function (_d) {
|
|
2295
2193
|
switch (_d.label) {
|
|
@@ -2322,14 +2220,14 @@ var deserializeAws_restJson1ListInsightsCommandError = function (output, context
|
|
|
2322
2220
|
case 9: throw _d.sent();
|
|
2323
2221
|
case 10:
|
|
2324
2222
|
parsedBody = parsedOutput.body;
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
$metadata: $metadata,
|
|
2223
|
+
throwDefaultError({
|
|
2224
|
+
output: output,
|
|
2225
|
+
parsedBody: parsedBody,
|
|
2226
|
+
exceptionCtor: __BaseException,
|
|
2227
|
+
errorCode: errorCode,
|
|
2331
2228
|
});
|
|
2332
|
-
|
|
2229
|
+
_d.label = 11;
|
|
2230
|
+
case 11: return [2];
|
|
2333
2231
|
}
|
|
2334
2232
|
});
|
|
2335
2233
|
}); };
|
|
@@ -2341,28 +2239,26 @@ export var deserializeAws_restJson1ListMonitoredResourcesCommand = function (out
|
|
|
2341
2239
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2342
2240
|
return [2, deserializeAws_restJson1ListMonitoredResourcesCommandError(output, context)];
|
|
2343
2241
|
}
|
|
2344
|
-
contents = {
|
|
2242
|
+
contents = map({
|
|
2345
2243
|
$metadata: deserializeMetadata(output),
|
|
2346
|
-
|
|
2347
|
-
NextToken: undefined,
|
|
2348
|
-
};
|
|
2244
|
+
});
|
|
2349
2245
|
_a = __expectNonNull;
|
|
2350
2246
|
_b = __expectObject;
|
|
2351
2247
|
return [4, parseBody(output.body, context)];
|
|
2352
2248
|
case 1:
|
|
2353
2249
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2354
|
-
if (data.MonitoredResourceIdentifiers
|
|
2250
|
+
if (data.MonitoredResourceIdentifiers != null) {
|
|
2355
2251
|
contents.MonitoredResourceIdentifiers = deserializeAws_restJson1MonitoredResourceIdentifiers(data.MonitoredResourceIdentifiers, context);
|
|
2356
2252
|
}
|
|
2357
|
-
if (data.NextToken
|
|
2253
|
+
if (data.NextToken != null) {
|
|
2358
2254
|
contents.NextToken = __expectString(data.NextToken);
|
|
2359
2255
|
}
|
|
2360
|
-
return [2,
|
|
2256
|
+
return [2, contents];
|
|
2361
2257
|
}
|
|
2362
2258
|
});
|
|
2363
2259
|
}); };
|
|
2364
2260
|
var deserializeAws_restJson1ListMonitoredResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2365
|
-
var parsedOutput, _a,
|
|
2261
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2366
2262
|
var _c;
|
|
2367
2263
|
return __generator(this, function (_d) {
|
|
2368
2264
|
switch (_d.label) {
|
|
@@ -2395,14 +2291,14 @@ var deserializeAws_restJson1ListMonitoredResourcesCommandError = function (outpu
|
|
|
2395
2291
|
case 9: throw _d.sent();
|
|
2396
2292
|
case 10:
|
|
2397
2293
|
parsedBody = parsedOutput.body;
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
$metadata: $metadata,
|
|
2294
|
+
throwDefaultError({
|
|
2295
|
+
output: output,
|
|
2296
|
+
parsedBody: parsedBody,
|
|
2297
|
+
exceptionCtor: __BaseException,
|
|
2298
|
+
errorCode: errorCode,
|
|
2404
2299
|
});
|
|
2405
|
-
|
|
2300
|
+
_d.label = 11;
|
|
2301
|
+
case 11: return [2];
|
|
2406
2302
|
}
|
|
2407
2303
|
});
|
|
2408
2304
|
}); };
|
|
@@ -2414,28 +2310,26 @@ export var deserializeAws_restJson1ListNotificationChannelsCommand = function (o
|
|
|
2414
2310
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2415
2311
|
return [2, deserializeAws_restJson1ListNotificationChannelsCommandError(output, context)];
|
|
2416
2312
|
}
|
|
2417
|
-
contents = {
|
|
2313
|
+
contents = map({
|
|
2418
2314
|
$metadata: deserializeMetadata(output),
|
|
2419
|
-
|
|
2420
|
-
NextToken: undefined,
|
|
2421
|
-
};
|
|
2315
|
+
});
|
|
2422
2316
|
_a = __expectNonNull;
|
|
2423
2317
|
_b = __expectObject;
|
|
2424
2318
|
return [4, parseBody(output.body, context)];
|
|
2425
2319
|
case 1:
|
|
2426
2320
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2427
|
-
if (data.Channels
|
|
2321
|
+
if (data.Channels != null) {
|
|
2428
2322
|
contents.Channels = deserializeAws_restJson1Channels(data.Channels, context);
|
|
2429
2323
|
}
|
|
2430
|
-
if (data.NextToken
|
|
2324
|
+
if (data.NextToken != null) {
|
|
2431
2325
|
contents.NextToken = __expectString(data.NextToken);
|
|
2432
2326
|
}
|
|
2433
|
-
return [2,
|
|
2327
|
+
return [2, contents];
|
|
2434
2328
|
}
|
|
2435
2329
|
});
|
|
2436
2330
|
}); };
|
|
2437
2331
|
var deserializeAws_restJson1ListNotificationChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2438
|
-
var parsedOutput, _a,
|
|
2332
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2439
2333
|
var _c;
|
|
2440
2334
|
return __generator(this, function (_d) {
|
|
2441
2335
|
switch (_d.label) {
|
|
@@ -2468,14 +2362,14 @@ var deserializeAws_restJson1ListNotificationChannelsCommandError = function (out
|
|
|
2468
2362
|
case 9: throw _d.sent();
|
|
2469
2363
|
case 10:
|
|
2470
2364
|
parsedBody = parsedOutput.body;
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
$metadata: $metadata,
|
|
2365
|
+
throwDefaultError({
|
|
2366
|
+
output: output,
|
|
2367
|
+
parsedBody: parsedBody,
|
|
2368
|
+
exceptionCtor: __BaseException,
|
|
2369
|
+
errorCode: errorCode,
|
|
2477
2370
|
});
|
|
2478
|
-
|
|
2371
|
+
_d.label = 11;
|
|
2372
|
+
case 11: return [2];
|
|
2479
2373
|
}
|
|
2480
2374
|
});
|
|
2481
2375
|
}); };
|
|
@@ -2487,32 +2381,29 @@ export var deserializeAws_restJson1ListOrganizationInsightsCommand = function (o
|
|
|
2487
2381
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2488
2382
|
return [2, deserializeAws_restJson1ListOrganizationInsightsCommandError(output, context)];
|
|
2489
2383
|
}
|
|
2490
|
-
contents = {
|
|
2384
|
+
contents = map({
|
|
2491
2385
|
$metadata: deserializeMetadata(output),
|
|
2492
|
-
|
|
2493
|
-
ProactiveInsights: undefined,
|
|
2494
|
-
ReactiveInsights: undefined,
|
|
2495
|
-
};
|
|
2386
|
+
});
|
|
2496
2387
|
_a = __expectNonNull;
|
|
2497
2388
|
_b = __expectObject;
|
|
2498
2389
|
return [4, parseBody(output.body, context)];
|
|
2499
2390
|
case 1:
|
|
2500
2391
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2501
|
-
if (data.NextToken
|
|
2392
|
+
if (data.NextToken != null) {
|
|
2502
2393
|
contents.NextToken = __expectString(data.NextToken);
|
|
2503
2394
|
}
|
|
2504
|
-
if (data.ProactiveInsights
|
|
2395
|
+
if (data.ProactiveInsights != null) {
|
|
2505
2396
|
contents.ProactiveInsights = deserializeAws_restJson1ProactiveOrganizationInsights(data.ProactiveInsights, context);
|
|
2506
2397
|
}
|
|
2507
|
-
if (data.ReactiveInsights
|
|
2398
|
+
if (data.ReactiveInsights != null) {
|
|
2508
2399
|
contents.ReactiveInsights = deserializeAws_restJson1ReactiveOrganizationInsights(data.ReactiveInsights, context);
|
|
2509
2400
|
}
|
|
2510
|
-
return [2,
|
|
2401
|
+
return [2, contents];
|
|
2511
2402
|
}
|
|
2512
2403
|
});
|
|
2513
2404
|
}); };
|
|
2514
2405
|
var deserializeAws_restJson1ListOrganizationInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2515
|
-
var parsedOutput, _a,
|
|
2406
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2516
2407
|
var _c;
|
|
2517
2408
|
return __generator(this, function (_d) {
|
|
2518
2409
|
switch (_d.label) {
|
|
@@ -2545,14 +2436,14 @@ var deserializeAws_restJson1ListOrganizationInsightsCommandError = function (out
|
|
|
2545
2436
|
case 9: throw _d.sent();
|
|
2546
2437
|
case 10:
|
|
2547
2438
|
parsedBody = parsedOutput.body;
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
$metadata: $metadata,
|
|
2439
|
+
throwDefaultError({
|
|
2440
|
+
output: output,
|
|
2441
|
+
parsedBody: parsedBody,
|
|
2442
|
+
exceptionCtor: __BaseException,
|
|
2443
|
+
errorCode: errorCode,
|
|
2554
2444
|
});
|
|
2555
|
-
|
|
2445
|
+
_d.label = 11;
|
|
2446
|
+
case 11: return [2];
|
|
2556
2447
|
}
|
|
2557
2448
|
});
|
|
2558
2449
|
}); };
|
|
@@ -2564,28 +2455,26 @@ export var deserializeAws_restJson1ListRecommendationsCommand = function (output
|
|
|
2564
2455
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2565
2456
|
return [2, deserializeAws_restJson1ListRecommendationsCommandError(output, context)];
|
|
2566
2457
|
}
|
|
2567
|
-
contents = {
|
|
2458
|
+
contents = map({
|
|
2568
2459
|
$metadata: deserializeMetadata(output),
|
|
2569
|
-
|
|
2570
|
-
Recommendations: undefined,
|
|
2571
|
-
};
|
|
2460
|
+
});
|
|
2572
2461
|
_a = __expectNonNull;
|
|
2573
2462
|
_b = __expectObject;
|
|
2574
2463
|
return [4, parseBody(output.body, context)];
|
|
2575
2464
|
case 1:
|
|
2576
2465
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2577
|
-
if (data.NextToken
|
|
2466
|
+
if (data.NextToken != null) {
|
|
2578
2467
|
contents.NextToken = __expectString(data.NextToken);
|
|
2579
2468
|
}
|
|
2580
|
-
if (data.Recommendations
|
|
2469
|
+
if (data.Recommendations != null) {
|
|
2581
2470
|
contents.Recommendations = deserializeAws_restJson1Recommendations(data.Recommendations, context);
|
|
2582
2471
|
}
|
|
2583
|
-
return [2,
|
|
2472
|
+
return [2, contents];
|
|
2584
2473
|
}
|
|
2585
2474
|
});
|
|
2586
2475
|
}); };
|
|
2587
2476
|
var deserializeAws_restJson1ListRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2588
|
-
var parsedOutput, _a,
|
|
2477
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2589
2478
|
var _c;
|
|
2590
2479
|
return __generator(this, function (_d) {
|
|
2591
2480
|
switch (_d.label) {
|
|
@@ -2622,14 +2511,14 @@ var deserializeAws_restJson1ListRecommendationsCommandError = function (output,
|
|
|
2622
2511
|
case 11: throw _d.sent();
|
|
2623
2512
|
case 12:
|
|
2624
2513
|
parsedBody = parsedOutput.body;
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
$metadata: $metadata,
|
|
2514
|
+
throwDefaultError({
|
|
2515
|
+
output: output,
|
|
2516
|
+
parsedBody: parsedBody,
|
|
2517
|
+
exceptionCtor: __BaseException,
|
|
2518
|
+
errorCode: errorCode,
|
|
2631
2519
|
});
|
|
2632
|
-
|
|
2520
|
+
_d.label = 13;
|
|
2521
|
+
case 13: return [2];
|
|
2633
2522
|
}
|
|
2634
2523
|
});
|
|
2635
2524
|
}); };
|
|
@@ -2641,18 +2530,18 @@ export var deserializeAws_restJson1PutFeedbackCommand = function (output, contex
|
|
|
2641
2530
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2642
2531
|
return [2, deserializeAws_restJson1PutFeedbackCommandError(output, context)];
|
|
2643
2532
|
}
|
|
2644
|
-
contents = {
|
|
2533
|
+
contents = map({
|
|
2645
2534
|
$metadata: deserializeMetadata(output),
|
|
2646
|
-
};
|
|
2535
|
+
});
|
|
2647
2536
|
return [4, collectBody(output.body, context)];
|
|
2648
2537
|
case 1:
|
|
2649
2538
|
_a.sent();
|
|
2650
|
-
return [2,
|
|
2539
|
+
return [2, contents];
|
|
2651
2540
|
}
|
|
2652
2541
|
});
|
|
2653
2542
|
}); };
|
|
2654
2543
|
var deserializeAws_restJson1PutFeedbackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2655
|
-
var parsedOutput, _a,
|
|
2544
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2656
2545
|
var _c;
|
|
2657
2546
|
return __generator(this, function (_d) {
|
|
2658
2547
|
switch (_d.label) {
|
|
@@ -2693,14 +2582,14 @@ var deserializeAws_restJson1PutFeedbackCommandError = function (output, context)
|
|
|
2693
2582
|
case 13: throw _d.sent();
|
|
2694
2583
|
case 14:
|
|
2695
2584
|
parsedBody = parsedOutput.body;
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
$metadata: $metadata,
|
|
2585
|
+
throwDefaultError({
|
|
2586
|
+
output: output,
|
|
2587
|
+
parsedBody: parsedBody,
|
|
2588
|
+
exceptionCtor: __BaseException,
|
|
2589
|
+
errorCode: errorCode,
|
|
2702
2590
|
});
|
|
2703
|
-
|
|
2591
|
+
_d.label = 15;
|
|
2592
|
+
case 15: return [2];
|
|
2704
2593
|
}
|
|
2705
2594
|
});
|
|
2706
2595
|
}); };
|
|
@@ -2712,18 +2601,18 @@ export var deserializeAws_restJson1RemoveNotificationChannelCommand = function (
|
|
|
2712
2601
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2713
2602
|
return [2, deserializeAws_restJson1RemoveNotificationChannelCommandError(output, context)];
|
|
2714
2603
|
}
|
|
2715
|
-
contents = {
|
|
2604
|
+
contents = map({
|
|
2716
2605
|
$metadata: deserializeMetadata(output),
|
|
2717
|
-
};
|
|
2606
|
+
});
|
|
2718
2607
|
return [4, collectBody(output.body, context)];
|
|
2719
2608
|
case 1:
|
|
2720
2609
|
_a.sent();
|
|
2721
|
-
return [2,
|
|
2610
|
+
return [2, contents];
|
|
2722
2611
|
}
|
|
2723
2612
|
});
|
|
2724
2613
|
}); };
|
|
2725
2614
|
var deserializeAws_restJson1RemoveNotificationChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2726
|
-
var parsedOutput, _a,
|
|
2615
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2727
2616
|
var _c;
|
|
2728
2617
|
return __generator(this, function (_d) {
|
|
2729
2618
|
switch (_d.label) {
|
|
@@ -2764,14 +2653,14 @@ var deserializeAws_restJson1RemoveNotificationChannelCommandError = function (ou
|
|
|
2764
2653
|
case 13: throw _d.sent();
|
|
2765
2654
|
case 14:
|
|
2766
2655
|
parsedBody = parsedOutput.body;
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
$metadata: $metadata,
|
|
2656
|
+
throwDefaultError({
|
|
2657
|
+
output: output,
|
|
2658
|
+
parsedBody: parsedBody,
|
|
2659
|
+
exceptionCtor: __BaseException,
|
|
2660
|
+
errorCode: errorCode,
|
|
2773
2661
|
});
|
|
2774
|
-
|
|
2662
|
+
_d.label = 15;
|
|
2663
|
+
case 15: return [2];
|
|
2775
2664
|
}
|
|
2776
2665
|
});
|
|
2777
2666
|
}); };
|
|
@@ -2783,32 +2672,29 @@ export var deserializeAws_restJson1SearchInsightsCommand = function (output, con
|
|
|
2783
2672
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2784
2673
|
return [2, deserializeAws_restJson1SearchInsightsCommandError(output, context)];
|
|
2785
2674
|
}
|
|
2786
|
-
contents = {
|
|
2675
|
+
contents = map({
|
|
2787
2676
|
$metadata: deserializeMetadata(output),
|
|
2788
|
-
|
|
2789
|
-
ProactiveInsights: undefined,
|
|
2790
|
-
ReactiveInsights: undefined,
|
|
2791
|
-
};
|
|
2677
|
+
});
|
|
2792
2678
|
_a = __expectNonNull;
|
|
2793
2679
|
_b = __expectObject;
|
|
2794
2680
|
return [4, parseBody(output.body, context)];
|
|
2795
2681
|
case 1:
|
|
2796
2682
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2797
|
-
if (data.NextToken
|
|
2683
|
+
if (data.NextToken != null) {
|
|
2798
2684
|
contents.NextToken = __expectString(data.NextToken);
|
|
2799
2685
|
}
|
|
2800
|
-
if (data.ProactiveInsights
|
|
2686
|
+
if (data.ProactiveInsights != null) {
|
|
2801
2687
|
contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
|
|
2802
2688
|
}
|
|
2803
|
-
if (data.ReactiveInsights
|
|
2689
|
+
if (data.ReactiveInsights != null) {
|
|
2804
2690
|
contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
|
|
2805
2691
|
}
|
|
2806
|
-
return [2,
|
|
2692
|
+
return [2, contents];
|
|
2807
2693
|
}
|
|
2808
2694
|
});
|
|
2809
2695
|
}); };
|
|
2810
2696
|
var deserializeAws_restJson1SearchInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2811
|
-
var parsedOutput, _a,
|
|
2697
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2812
2698
|
var _c;
|
|
2813
2699
|
return __generator(this, function (_d) {
|
|
2814
2700
|
switch (_d.label) {
|
|
@@ -2841,14 +2727,14 @@ var deserializeAws_restJson1SearchInsightsCommandError = function (output, conte
|
|
|
2841
2727
|
case 9: throw _d.sent();
|
|
2842
2728
|
case 10:
|
|
2843
2729
|
parsedBody = parsedOutput.body;
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
$metadata: $metadata,
|
|
2730
|
+
throwDefaultError({
|
|
2731
|
+
output: output,
|
|
2732
|
+
parsedBody: parsedBody,
|
|
2733
|
+
exceptionCtor: __BaseException,
|
|
2734
|
+
errorCode: errorCode,
|
|
2850
2735
|
});
|
|
2851
|
-
|
|
2736
|
+
_d.label = 11;
|
|
2737
|
+
case 11: return [2];
|
|
2852
2738
|
}
|
|
2853
2739
|
});
|
|
2854
2740
|
}); };
|
|
@@ -2860,32 +2746,29 @@ export var deserializeAws_restJson1SearchOrganizationInsightsCommand = function
|
|
|
2860
2746
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2861
2747
|
return [2, deserializeAws_restJson1SearchOrganizationInsightsCommandError(output, context)];
|
|
2862
2748
|
}
|
|
2863
|
-
contents = {
|
|
2749
|
+
contents = map({
|
|
2864
2750
|
$metadata: deserializeMetadata(output),
|
|
2865
|
-
|
|
2866
|
-
ProactiveInsights: undefined,
|
|
2867
|
-
ReactiveInsights: undefined,
|
|
2868
|
-
};
|
|
2751
|
+
});
|
|
2869
2752
|
_a = __expectNonNull;
|
|
2870
2753
|
_b = __expectObject;
|
|
2871
2754
|
return [4, parseBody(output.body, context)];
|
|
2872
2755
|
case 1:
|
|
2873
2756
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2874
|
-
if (data.NextToken
|
|
2757
|
+
if (data.NextToken != null) {
|
|
2875
2758
|
contents.NextToken = __expectString(data.NextToken);
|
|
2876
2759
|
}
|
|
2877
|
-
if (data.ProactiveInsights
|
|
2760
|
+
if (data.ProactiveInsights != null) {
|
|
2878
2761
|
contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
|
|
2879
2762
|
}
|
|
2880
|
-
if (data.ReactiveInsights
|
|
2763
|
+
if (data.ReactiveInsights != null) {
|
|
2881
2764
|
contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
|
|
2882
2765
|
}
|
|
2883
|
-
return [2,
|
|
2766
|
+
return [2, contents];
|
|
2884
2767
|
}
|
|
2885
2768
|
});
|
|
2886
2769
|
}); };
|
|
2887
2770
|
var deserializeAws_restJson1SearchOrganizationInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2888
|
-
var parsedOutput, _a,
|
|
2771
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2889
2772
|
var _c;
|
|
2890
2773
|
return __generator(this, function (_d) {
|
|
2891
2774
|
switch (_d.label) {
|
|
@@ -2918,14 +2801,14 @@ var deserializeAws_restJson1SearchOrganizationInsightsCommandError = function (o
|
|
|
2918
2801
|
case 9: throw _d.sent();
|
|
2919
2802
|
case 10:
|
|
2920
2803
|
parsedBody = parsedOutput.body;
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
$metadata: $metadata,
|
|
2804
|
+
throwDefaultError({
|
|
2805
|
+
output: output,
|
|
2806
|
+
parsedBody: parsedBody,
|
|
2807
|
+
exceptionCtor: __BaseException,
|
|
2808
|
+
errorCode: errorCode,
|
|
2927
2809
|
});
|
|
2928
|
-
|
|
2810
|
+
_d.label = 11;
|
|
2811
|
+
case 11: return [2];
|
|
2929
2812
|
}
|
|
2930
2813
|
});
|
|
2931
2814
|
}); };
|
|
@@ -2937,18 +2820,18 @@ export var deserializeAws_restJson1StartCostEstimationCommand = function (output
|
|
|
2937
2820
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2938
2821
|
return [2, deserializeAws_restJson1StartCostEstimationCommandError(output, context)];
|
|
2939
2822
|
}
|
|
2940
|
-
contents = {
|
|
2823
|
+
contents = map({
|
|
2941
2824
|
$metadata: deserializeMetadata(output),
|
|
2942
|
-
};
|
|
2825
|
+
});
|
|
2943
2826
|
return [4, collectBody(output.body, context)];
|
|
2944
2827
|
case 1:
|
|
2945
2828
|
_a.sent();
|
|
2946
|
-
return [2,
|
|
2829
|
+
return [2, contents];
|
|
2947
2830
|
}
|
|
2948
2831
|
});
|
|
2949
2832
|
}); };
|
|
2950
2833
|
var deserializeAws_restJson1StartCostEstimationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2951
|
-
var parsedOutput, _a,
|
|
2834
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2952
2835
|
var _c;
|
|
2953
2836
|
return __generator(this, function (_d) {
|
|
2954
2837
|
switch (_d.label) {
|
|
@@ -2989,14 +2872,14 @@ var deserializeAws_restJson1StartCostEstimationCommandError = function (output,
|
|
|
2989
2872
|
case 13: throw _d.sent();
|
|
2990
2873
|
case 14:
|
|
2991
2874
|
parsedBody = parsedOutput.body;
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
$metadata: $metadata,
|
|
2875
|
+
throwDefaultError({
|
|
2876
|
+
output: output,
|
|
2877
|
+
parsedBody: parsedBody,
|
|
2878
|
+
exceptionCtor: __BaseException,
|
|
2879
|
+
errorCode: errorCode,
|
|
2998
2880
|
});
|
|
2999
|
-
|
|
2881
|
+
_d.label = 15;
|
|
2882
|
+
case 15: return [2];
|
|
3000
2883
|
}
|
|
3001
2884
|
});
|
|
3002
2885
|
}); };
|
|
@@ -3008,18 +2891,18 @@ export var deserializeAws_restJson1UpdateEventSourcesConfigCommand = function (o
|
|
|
3008
2891
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3009
2892
|
return [2, deserializeAws_restJson1UpdateEventSourcesConfigCommandError(output, context)];
|
|
3010
2893
|
}
|
|
3011
|
-
contents = {
|
|
2894
|
+
contents = map({
|
|
3012
2895
|
$metadata: deserializeMetadata(output),
|
|
3013
|
-
};
|
|
2896
|
+
});
|
|
3014
2897
|
return [4, collectBody(output.body, context)];
|
|
3015
2898
|
case 1:
|
|
3016
2899
|
_a.sent();
|
|
3017
|
-
return [2,
|
|
2900
|
+
return [2, contents];
|
|
3018
2901
|
}
|
|
3019
2902
|
});
|
|
3020
2903
|
}); };
|
|
3021
2904
|
var deserializeAws_restJson1UpdateEventSourcesConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3022
|
-
var parsedOutput, _a,
|
|
2905
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3023
2906
|
var _c;
|
|
3024
2907
|
return __generator(this, function (_d) {
|
|
3025
2908
|
switch (_d.label) {
|
|
@@ -3052,14 +2935,14 @@ var deserializeAws_restJson1UpdateEventSourcesConfigCommandError = function (out
|
|
|
3052
2935
|
case 9: throw _d.sent();
|
|
3053
2936
|
case 10:
|
|
3054
2937
|
parsedBody = parsedOutput.body;
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
$metadata: $metadata,
|
|
2938
|
+
throwDefaultError({
|
|
2939
|
+
output: output,
|
|
2940
|
+
parsedBody: parsedBody,
|
|
2941
|
+
exceptionCtor: __BaseException,
|
|
2942
|
+
errorCode: errorCode,
|
|
3061
2943
|
});
|
|
3062
|
-
|
|
2944
|
+
_d.label = 11;
|
|
2945
|
+
case 11: return [2];
|
|
3063
2946
|
}
|
|
3064
2947
|
});
|
|
3065
2948
|
}); };
|
|
@@ -3071,18 +2954,18 @@ export var deserializeAws_restJson1UpdateResourceCollectionCommand = function (o
|
|
|
3071
2954
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3072
2955
|
return [2, deserializeAws_restJson1UpdateResourceCollectionCommandError(output, context)];
|
|
3073
2956
|
}
|
|
3074
|
-
contents = {
|
|
2957
|
+
contents = map({
|
|
3075
2958
|
$metadata: deserializeMetadata(output),
|
|
3076
|
-
};
|
|
2959
|
+
});
|
|
3077
2960
|
return [4, collectBody(output.body, context)];
|
|
3078
2961
|
case 1:
|
|
3079
2962
|
_a.sent();
|
|
3080
|
-
return [2,
|
|
2963
|
+
return [2, contents];
|
|
3081
2964
|
}
|
|
3082
2965
|
});
|
|
3083
2966
|
}); };
|
|
3084
2967
|
var deserializeAws_restJson1UpdateResourceCollectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3085
|
-
var parsedOutput, _a,
|
|
2968
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3086
2969
|
var _c;
|
|
3087
2970
|
return __generator(this, function (_d) {
|
|
3088
2971
|
switch (_d.label) {
|
|
@@ -3119,14 +3002,14 @@ var deserializeAws_restJson1UpdateResourceCollectionCommandError = function (out
|
|
|
3119
3002
|
case 11: throw _d.sent();
|
|
3120
3003
|
case 12:
|
|
3121
3004
|
parsedBody = parsedOutput.body;
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
$metadata: $metadata,
|
|
3005
|
+
throwDefaultError({
|
|
3006
|
+
output: output,
|
|
3007
|
+
parsedBody: parsedBody,
|
|
3008
|
+
exceptionCtor: __BaseException,
|
|
3009
|
+
errorCode: errorCode,
|
|
3128
3010
|
});
|
|
3129
|
-
|
|
3011
|
+
_d.label = 13;
|
|
3012
|
+
case 13: return [2];
|
|
3130
3013
|
}
|
|
3131
3014
|
});
|
|
3132
3015
|
}); };
|
|
@@ -3138,18 +3021,18 @@ export var deserializeAws_restJson1UpdateServiceIntegrationCommand = function (o
|
|
|
3138
3021
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3139
3022
|
return [2, deserializeAws_restJson1UpdateServiceIntegrationCommandError(output, context)];
|
|
3140
3023
|
}
|
|
3141
|
-
contents = {
|
|
3024
|
+
contents = map({
|
|
3142
3025
|
$metadata: deserializeMetadata(output),
|
|
3143
|
-
};
|
|
3026
|
+
});
|
|
3144
3027
|
return [4, collectBody(output.body, context)];
|
|
3145
3028
|
case 1:
|
|
3146
3029
|
_a.sent();
|
|
3147
|
-
return [2,
|
|
3030
|
+
return [2, contents];
|
|
3148
3031
|
}
|
|
3149
3032
|
});
|
|
3150
3033
|
}); };
|
|
3151
3034
|
var deserializeAws_restJson1UpdateServiceIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3152
|
-
var parsedOutput, _a,
|
|
3035
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3153
3036
|
var _c;
|
|
3154
3037
|
return __generator(this, function (_d) {
|
|
3155
3038
|
switch (_d.label) {
|
|
@@ -3186,23 +3069,24 @@ var deserializeAws_restJson1UpdateServiceIntegrationCommandError = function (out
|
|
|
3186
3069
|
case 11: throw _d.sent();
|
|
3187
3070
|
case 12:
|
|
3188
3071
|
parsedBody = parsedOutput.body;
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
$metadata: $metadata,
|
|
3072
|
+
throwDefaultError({
|
|
3073
|
+
output: output,
|
|
3074
|
+
parsedBody: parsedBody,
|
|
3075
|
+
exceptionCtor: __BaseException,
|
|
3076
|
+
errorCode: errorCode,
|
|
3195
3077
|
});
|
|
3196
|
-
|
|
3078
|
+
_d.label = 13;
|
|
3079
|
+
case 13: return [2];
|
|
3197
3080
|
}
|
|
3198
3081
|
});
|
|
3199
3082
|
}); };
|
|
3083
|
+
var map = __map;
|
|
3200
3084
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3201
3085
|
var contents, data, exception;
|
|
3202
3086
|
return __generator(this, function (_a) {
|
|
3203
|
-
contents = {};
|
|
3087
|
+
contents = map({});
|
|
3204
3088
|
data = parsedOutput.body;
|
|
3205
|
-
if (data.Message
|
|
3089
|
+
if (data.Message != null) {
|
|
3206
3090
|
contents.Message = __expectString(data.Message);
|
|
3207
3091
|
}
|
|
3208
3092
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3212,15 +3096,15 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
3212
3096
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3213
3097
|
var contents, data, exception;
|
|
3214
3098
|
return __generator(this, function (_a) {
|
|
3215
|
-
contents = {};
|
|
3099
|
+
contents = map({});
|
|
3216
3100
|
data = parsedOutput.body;
|
|
3217
|
-
if (data.Message
|
|
3101
|
+
if (data.Message != null) {
|
|
3218
3102
|
contents.Message = __expectString(data.Message);
|
|
3219
3103
|
}
|
|
3220
|
-
if (data.ResourceId
|
|
3104
|
+
if (data.ResourceId != null) {
|
|
3221
3105
|
contents.ResourceId = __expectString(data.ResourceId);
|
|
3222
3106
|
}
|
|
3223
|
-
if (data.ResourceType
|
|
3107
|
+
if (data.ResourceType != null) {
|
|
3224
3108
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
3225
3109
|
}
|
|
3226
3110
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3230,12 +3114,14 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
3230
3114
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3231
3115
|
var contents, data, exception;
|
|
3232
3116
|
return __generator(this, function (_a) {
|
|
3233
|
-
contents = {
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3117
|
+
contents = map({
|
|
3118
|
+
RetryAfterSeconds: [
|
|
3119
|
+
function () { return void 0 !== parsedOutput.headers["retry-after"]; },
|
|
3120
|
+
function () { return __strictParseInt32(parsedOutput.headers["retry-after"]); },
|
|
3121
|
+
],
|
|
3122
|
+
});
|
|
3237
3123
|
data = parsedOutput.body;
|
|
3238
|
-
if (data.Message
|
|
3124
|
+
if (data.Message != null) {
|
|
3239
3125
|
contents.Message = __expectString(data.Message);
|
|
3240
3126
|
}
|
|
3241
3127
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3245,15 +3131,15 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
3245
3131
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3246
3132
|
var contents, data, exception;
|
|
3247
3133
|
return __generator(this, function (_a) {
|
|
3248
|
-
contents = {};
|
|
3134
|
+
contents = map({});
|
|
3249
3135
|
data = parsedOutput.body;
|
|
3250
|
-
if (data.Message
|
|
3136
|
+
if (data.Message != null) {
|
|
3251
3137
|
contents.Message = __expectString(data.Message);
|
|
3252
3138
|
}
|
|
3253
|
-
if (data.ResourceId
|
|
3139
|
+
if (data.ResourceId != null) {
|
|
3254
3140
|
contents.ResourceId = __expectString(data.ResourceId);
|
|
3255
3141
|
}
|
|
3256
|
-
if (data.ResourceType
|
|
3142
|
+
if (data.ResourceType != null) {
|
|
3257
3143
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
3258
3144
|
}
|
|
3259
3145
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3263,9 +3149,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
3263
3149
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3264
3150
|
var contents, data, exception;
|
|
3265
3151
|
return __generator(this, function (_a) {
|
|
3266
|
-
contents = {};
|
|
3152
|
+
contents = map({});
|
|
3267
3153
|
data = parsedOutput.body;
|
|
3268
|
-
if (data.Message
|
|
3154
|
+
if (data.Message != null) {
|
|
3269
3155
|
contents.Message = __expectString(data.Message);
|
|
3270
3156
|
}
|
|
3271
3157
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3275,18 +3161,20 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
3275
3161
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3276
3162
|
var contents, data, exception;
|
|
3277
3163
|
return __generator(this, function (_a) {
|
|
3278
|
-
contents = {
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3164
|
+
contents = map({
|
|
3165
|
+
RetryAfterSeconds: [
|
|
3166
|
+
function () { return void 0 !== parsedOutput.headers["retry-after"]; },
|
|
3167
|
+
function () { return __strictParseInt32(parsedOutput.headers["retry-after"]); },
|
|
3168
|
+
],
|
|
3169
|
+
});
|
|
3282
3170
|
data = parsedOutput.body;
|
|
3283
|
-
if (data.Message
|
|
3171
|
+
if (data.Message != null) {
|
|
3284
3172
|
contents.Message = __expectString(data.Message);
|
|
3285
3173
|
}
|
|
3286
|
-
if (data.QuotaCode
|
|
3174
|
+
if (data.QuotaCode != null) {
|
|
3287
3175
|
contents.QuotaCode = __expectString(data.QuotaCode);
|
|
3288
3176
|
}
|
|
3289
|
-
if (data.ServiceCode
|
|
3177
|
+
if (data.ServiceCode != null) {
|
|
3290
3178
|
contents.ServiceCode = __expectString(data.ServiceCode);
|
|
3291
3179
|
}
|
|
3292
3180
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3296,15 +3184,15 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
3296
3184
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3297
3185
|
var contents, data, exception;
|
|
3298
3186
|
return __generator(this, function (_a) {
|
|
3299
|
-
contents = {};
|
|
3187
|
+
contents = map({});
|
|
3300
3188
|
data = parsedOutput.body;
|
|
3301
|
-
if (data.Fields
|
|
3189
|
+
if (data.Fields != null) {
|
|
3302
3190
|
contents.Fields = deserializeAws_restJson1ValidationExceptionFields(data.Fields, context);
|
|
3303
3191
|
}
|
|
3304
|
-
if (data.Message
|
|
3192
|
+
if (data.Message != null) {
|
|
3305
3193
|
contents.Message = __expectString(data.Message);
|
|
3306
3194
|
}
|
|
3307
|
-
if (data.Reason
|
|
3195
|
+
if (data.Reason != null) {
|
|
3308
3196
|
contents.Reason = __expectString(data.Reason);
|
|
3309
3197
|
}
|
|
3310
3198
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3315,9 +3203,6 @@ var serializeAws_restJson1AccountIdList = function (input, context) {
|
|
|
3315
3203
|
return input
|
|
3316
3204
|
.filter(function (e) { return e != null; })
|
|
3317
3205
|
.map(function (entry) {
|
|
3318
|
-
if (entry === null) {
|
|
3319
|
-
return null;
|
|
3320
|
-
}
|
|
3321
3206
|
return entry;
|
|
3322
3207
|
});
|
|
3323
3208
|
};
|
|
@@ -3343,9 +3228,6 @@ var serializeAws_restJson1CostEstimationStackNames = function (input, context) {
|
|
|
3343
3228
|
return input
|
|
3344
3229
|
.filter(function (e) { return e != null; })
|
|
3345
3230
|
.map(function (entry) {
|
|
3346
|
-
if (entry === null) {
|
|
3347
|
-
return null;
|
|
3348
|
-
}
|
|
3349
3231
|
return entry;
|
|
3350
3232
|
});
|
|
3351
3233
|
};
|
|
@@ -3353,9 +3235,6 @@ var serializeAws_restJson1CostEstimationTagValues = function (input, context) {
|
|
|
3353
3235
|
return input
|
|
3354
3236
|
.filter(function (e) { return e != null; })
|
|
3355
3237
|
.map(function (entry) {
|
|
3356
|
-
if (entry === null) {
|
|
3357
|
-
return null;
|
|
3358
|
-
}
|
|
3359
3238
|
return entry;
|
|
3360
3239
|
});
|
|
3361
3240
|
};
|
|
@@ -3377,9 +3256,6 @@ var serializeAws_restJson1InsightSeverities = function (input, context) {
|
|
|
3377
3256
|
return input
|
|
3378
3257
|
.filter(function (e) { return e != null; })
|
|
3379
3258
|
.map(function (entry) {
|
|
3380
|
-
if (entry === null) {
|
|
3381
|
-
return null;
|
|
3382
|
-
}
|
|
3383
3259
|
return entry;
|
|
3384
3260
|
});
|
|
3385
3261
|
};
|
|
@@ -3387,9 +3263,6 @@ var serializeAws_restJson1InsightStatuses = function (input, context) {
|
|
|
3387
3263
|
return input
|
|
3388
3264
|
.filter(function (e) { return e != null; })
|
|
3389
3265
|
.map(function (entry) {
|
|
3390
|
-
if (entry === null) {
|
|
3391
|
-
return null;
|
|
3392
|
-
}
|
|
3393
3266
|
return entry;
|
|
3394
3267
|
});
|
|
3395
3268
|
};
|
|
@@ -3404,9 +3277,6 @@ var serializeAws_restJson1ListInsightsAccountIdList = function (input, context)
|
|
|
3404
3277
|
return input
|
|
3405
3278
|
.filter(function (e) { return e != null; })
|
|
3406
3279
|
.map(function (entry) {
|
|
3407
|
-
if (entry === null) {
|
|
3408
|
-
return null;
|
|
3409
|
-
}
|
|
3410
3280
|
return entry;
|
|
3411
3281
|
});
|
|
3412
3282
|
};
|
|
@@ -3427,9 +3297,6 @@ var serializeAws_restJson1ListInsightsOrganizationalUnitIdList = function (input
|
|
|
3427
3297
|
return input
|
|
3428
3298
|
.filter(function (e) { return e != null; })
|
|
3429
3299
|
.map(function (entry) {
|
|
3430
|
-
if (entry === null) {
|
|
3431
|
-
return null;
|
|
3432
|
-
}
|
|
3433
3300
|
return entry;
|
|
3434
3301
|
});
|
|
3435
3302
|
};
|
|
@@ -3458,9 +3325,6 @@ var serializeAws_restJson1OrganizationalUnitIdList = function (input, context) {
|
|
|
3458
3325
|
return input
|
|
3459
3326
|
.filter(function (e) { return e != null; })
|
|
3460
3327
|
.map(function (entry) {
|
|
3461
|
-
if (entry === null) {
|
|
3462
|
-
return null;
|
|
3463
|
-
}
|
|
3464
3328
|
return entry;
|
|
3465
3329
|
});
|
|
3466
3330
|
};
|
|
@@ -3473,9 +3337,6 @@ var serializeAws_restJson1ResourceTypeFilters = function (input, context) {
|
|
|
3473
3337
|
return input
|
|
3474
3338
|
.filter(function (e) { return e != null; })
|
|
3475
3339
|
.map(function (entry) {
|
|
3476
|
-
if (entry === null) {
|
|
3477
|
-
return null;
|
|
3478
|
-
}
|
|
3479
3340
|
return entry;
|
|
3480
3341
|
});
|
|
3481
3342
|
};
|
|
@@ -3483,9 +3344,6 @@ var serializeAws_restJson1SearchInsightsAccountIdList = function (input, context
|
|
|
3483
3344
|
return input
|
|
3484
3345
|
.filter(function (e) { return e != null; })
|
|
3485
3346
|
.map(function (entry) {
|
|
3486
|
-
if (entry === null) {
|
|
3487
|
-
return null;
|
|
3488
|
-
}
|
|
3489
3347
|
return entry;
|
|
3490
3348
|
});
|
|
3491
3349
|
};
|
|
@@ -3512,9 +3370,6 @@ var serializeAws_restJson1ServiceNames = function (input, context) {
|
|
|
3512
3370
|
return input
|
|
3513
3371
|
.filter(function (e) { return e != null; })
|
|
3514
3372
|
.map(function (entry) {
|
|
3515
|
-
if (entry === null) {
|
|
3516
|
-
return null;
|
|
3517
|
-
}
|
|
3518
3373
|
return entry;
|
|
3519
3374
|
});
|
|
3520
3375
|
};
|
|
@@ -3525,9 +3380,6 @@ var serializeAws_restJson1StackNames = function (input, context) {
|
|
|
3525
3380
|
return input
|
|
3526
3381
|
.filter(function (e) { return e != null; })
|
|
3527
3382
|
.map(function (entry) {
|
|
3528
|
-
if (entry === null) {
|
|
3529
|
-
return null;
|
|
3530
|
-
}
|
|
3531
3383
|
return entry;
|
|
3532
3384
|
});
|
|
3533
3385
|
};
|
|
@@ -3541,9 +3393,6 @@ var serializeAws_restJson1TagCollections = function (input, context) {
|
|
|
3541
3393
|
return input
|
|
3542
3394
|
.filter(function (e) { return e != null; })
|
|
3543
3395
|
.map(function (entry) {
|
|
3544
|
-
if (entry === null) {
|
|
3545
|
-
return null;
|
|
3546
|
-
}
|
|
3547
3396
|
return serializeAws_restJson1TagCollection(entry, context);
|
|
3548
3397
|
});
|
|
3549
3398
|
};
|
|
@@ -3556,9 +3405,6 @@ var serializeAws_restJson1TagCostEstimationResourceCollectionFilters = function
|
|
|
3556
3405
|
return input
|
|
3557
3406
|
.filter(function (e) { return e != null; })
|
|
3558
3407
|
.map(function (entry) {
|
|
3559
|
-
if (entry === null) {
|
|
3560
|
-
return null;
|
|
3561
|
-
}
|
|
3562
3408
|
return serializeAws_restJson1TagCostEstimationResourceCollectionFilter(entry, context);
|
|
3563
3409
|
});
|
|
3564
3410
|
};
|
|
@@ -3566,9 +3412,6 @@ var serializeAws_restJson1TagValues = function (input, context) {
|
|
|
3566
3412
|
return input
|
|
3567
3413
|
.filter(function (e) { return e != null; })
|
|
3568
3414
|
.map(function (entry) {
|
|
3569
|
-
if (entry === null) {
|
|
3570
|
-
return null;
|
|
3571
|
-
}
|
|
3572
3415
|
return entry;
|
|
3573
3416
|
});
|
|
3574
3417
|
};
|
|
@@ -3591,9 +3434,6 @@ var serializeAws_restJson1UpdateStackNames = function (input, context) {
|
|
|
3591
3434
|
return input
|
|
3592
3435
|
.filter(function (e) { return e != null; })
|
|
3593
3436
|
.map(function (entry) {
|
|
3594
|
-
if (entry === null) {
|
|
3595
|
-
return null;
|
|
3596
|
-
}
|
|
3597
3437
|
return entry;
|
|
3598
3438
|
});
|
|
3599
3439
|
};
|
|
@@ -3604,9 +3444,6 @@ var serializeAws_restJson1UpdateTagCollectionFilters = function (input, context)
|
|
|
3604
3444
|
return input
|
|
3605
3445
|
.filter(function (e) { return e != null; })
|
|
3606
3446
|
.map(function (entry) {
|
|
3607
|
-
if (entry === null) {
|
|
3608
|
-
return null;
|
|
3609
|
-
}
|
|
3610
3447
|
return serializeAws_restJson1UpdateTagCollectionFilter(entry, context);
|
|
3611
3448
|
});
|
|
3612
3449
|
};
|
|
@@ -3614,9 +3451,6 @@ var serializeAws_restJson1UpdateTagValues = function (input, context) {
|
|
|
3614
3451
|
return input
|
|
3615
3452
|
.filter(function (e) { return e != null; })
|
|
3616
3453
|
.map(function (entry) {
|
|
3617
|
-
if (entry === null) {
|
|
3618
|
-
return null;
|
|
3619
|
-
}
|
|
3620
3454
|
return entry;
|
|
3621
3455
|
});
|
|
3622
3456
|
};
|