@aws-sdk/client-migrationhubstrategy 3.141.0 → 3.142.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 +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +241 -426
- package/dist-es/protocols/Aws_restJson1.js +309 -425
- package/package.json +6 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { MigrationHubStrategyServiceException as __BaseException } from "../models/MigrationHubStrategyServiceException";
|
|
5
5
|
import { AccessDeniedException, ConflictException, DatabaseMigrationPreference, InternalServerException, ManagementPreference, ResourceNotFoundException, ServiceLinkedRoleLockClientException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1GetApplicationComponentDetailsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
7
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
8
8
|
return __generator(this, function (_c) {
|
|
9
9
|
switch (_c.label) {
|
|
10
10
|
case 0: return [4, context.endpoint()];
|
|
@@ -13,16 +13,7 @@ export var serializeAws_restJson1GetApplicationComponentDetailsCommand = functio
|
|
|
13
13
|
headers = {};
|
|
14
14
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
15
15
|
"/get-applicationcomponent-details/{applicationComponentId}";
|
|
16
|
-
|
|
17
|
-
labelValue = input.applicationComponentId;
|
|
18
|
-
if (labelValue.length <= 0) {
|
|
19
|
-
throw new Error("Empty value provided for input HTTP label: applicationComponentId.");
|
|
20
|
-
}
|
|
21
|
-
resolvedPath = resolvedPath.replace("{applicationComponentId}", __extendedEncodeURIComponent(labelValue));
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("No value provided for input HTTP label: applicationComponentId.");
|
|
25
|
-
}
|
|
16
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "applicationComponentId", function () { return input.applicationComponentId; }, "{applicationComponentId}", false);
|
|
26
17
|
return [2, new __HttpRequest({
|
|
27
18
|
protocol: protocol,
|
|
28
19
|
hostname: hostname,
|
|
@@ -36,7 +27,7 @@ export var serializeAws_restJson1GetApplicationComponentDetailsCommand = functio
|
|
|
36
27
|
});
|
|
37
28
|
}); };
|
|
38
29
|
export var serializeAws_restJson1GetApplicationComponentStrategiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
39
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
30
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
40
31
|
return __generator(this, function (_c) {
|
|
41
32
|
switch (_c.label) {
|
|
42
33
|
case 0: return [4, context.endpoint()];
|
|
@@ -45,16 +36,7 @@ export var serializeAws_restJson1GetApplicationComponentStrategiesCommand = func
|
|
|
45
36
|
headers = {};
|
|
46
37
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
47
38
|
"/get-applicationcomponent-strategies/{applicationComponentId}";
|
|
48
|
-
|
|
49
|
-
labelValue = input.applicationComponentId;
|
|
50
|
-
if (labelValue.length <= 0) {
|
|
51
|
-
throw new Error("Empty value provided for input HTTP label: applicationComponentId.");
|
|
52
|
-
}
|
|
53
|
-
resolvedPath = resolvedPath.replace("{applicationComponentId}", __extendedEncodeURIComponent(labelValue));
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
throw new Error("No value provided for input HTTP label: applicationComponentId.");
|
|
57
|
-
}
|
|
39
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "applicationComponentId", function () { return input.applicationComponentId; }, "{applicationComponentId}", false);
|
|
58
40
|
return [2, new __HttpRequest({
|
|
59
41
|
protocol: protocol,
|
|
60
42
|
hostname: hostname,
|
|
@@ -68,7 +50,7 @@ export var serializeAws_restJson1GetApplicationComponentStrategiesCommand = func
|
|
|
68
50
|
});
|
|
69
51
|
}); };
|
|
70
52
|
export var serializeAws_restJson1GetAssessmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
71
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
53
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
72
54
|
return __generator(this, function (_c) {
|
|
73
55
|
switch (_c.label) {
|
|
74
56
|
case 0: return [4, context.endpoint()];
|
|
@@ -76,16 +58,7 @@ export var serializeAws_restJson1GetAssessmentCommand = function (input, context
|
|
|
76
58
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
77
59
|
headers = {};
|
|
78
60
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-assessment/{id}";
|
|
79
|
-
|
|
80
|
-
labelValue = input.id;
|
|
81
|
-
if (labelValue.length <= 0) {
|
|
82
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
83
|
-
}
|
|
84
|
-
resolvedPath = resolvedPath.replace("{id}", __extendedEncodeURIComponent(labelValue));
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
88
|
-
}
|
|
61
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
89
62
|
return [2, new __HttpRequest({
|
|
90
63
|
protocol: protocol,
|
|
91
64
|
hostname: hostname,
|
|
@@ -99,7 +72,7 @@ export var serializeAws_restJson1GetAssessmentCommand = function (input, context
|
|
|
99
72
|
});
|
|
100
73
|
}); };
|
|
101
74
|
export var serializeAws_restJson1GetImportFileTaskCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
102
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
75
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
103
76
|
return __generator(this, function (_c) {
|
|
104
77
|
switch (_c.label) {
|
|
105
78
|
case 0: return [4, context.endpoint()];
|
|
@@ -107,16 +80,7 @@ export var serializeAws_restJson1GetImportFileTaskCommand = function (input, con
|
|
|
107
80
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
108
81
|
headers = {};
|
|
109
82
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-import-file-task/{id}";
|
|
110
|
-
|
|
111
|
-
labelValue = input.id;
|
|
112
|
-
if (labelValue.length <= 0) {
|
|
113
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
114
|
-
}
|
|
115
|
-
resolvedPath = resolvedPath.replace("{id}", __extendedEncodeURIComponent(labelValue));
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
119
|
-
}
|
|
83
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
120
84
|
return [2, new __HttpRequest({
|
|
121
85
|
protocol: protocol,
|
|
122
86
|
hostname: hostname,
|
|
@@ -178,7 +142,7 @@ export var serializeAws_restJson1GetPortfolioSummaryCommand = function (input, c
|
|
|
178
142
|
});
|
|
179
143
|
}); };
|
|
180
144
|
export var serializeAws_restJson1GetRecommendationReportDetailsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
181
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
145
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
182
146
|
return __generator(this, function (_c) {
|
|
183
147
|
switch (_c.label) {
|
|
184
148
|
case 0: return [4, context.endpoint()];
|
|
@@ -186,16 +150,7 @@ export var serializeAws_restJson1GetRecommendationReportDetailsCommand = functio
|
|
|
186
150
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
187
151
|
headers = {};
|
|
188
152
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-recommendation-report-details/{id}";
|
|
189
|
-
|
|
190
|
-
labelValue = input.id;
|
|
191
|
-
if (labelValue.length <= 0) {
|
|
192
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
193
|
-
}
|
|
194
|
-
resolvedPath = resolvedPath.replace("{id}", __extendedEncodeURIComponent(labelValue));
|
|
195
|
-
}
|
|
196
|
-
else {
|
|
197
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
198
|
-
}
|
|
153
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
199
154
|
return [2, new __HttpRequest({
|
|
200
155
|
protocol: protocol,
|
|
201
156
|
hostname: hostname,
|
|
@@ -209,7 +164,7 @@ export var serializeAws_restJson1GetRecommendationReportDetailsCommand = functio
|
|
|
209
164
|
});
|
|
210
165
|
}); };
|
|
211
166
|
export var serializeAws_restJson1GetServerDetailsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
212
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
167
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
213
168
|
return __generator(this, function (_c) {
|
|
214
169
|
switch (_c.label) {
|
|
215
170
|
case 0: return [4, context.endpoint()];
|
|
@@ -217,17 +172,11 @@ export var serializeAws_restJson1GetServerDetailsCommand = function (input, cont
|
|
|
217
172
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
218
173
|
headers = {};
|
|
219
174
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-server-details/{serverId}";
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
resolvedPath = resolvedPath.replace("{serverId}", __extendedEncodeURIComponent(labelValue));
|
|
226
|
-
}
|
|
227
|
-
else {
|
|
228
|
-
throw new Error("No value provided for input HTTP label: serverId.");
|
|
229
|
-
}
|
|
230
|
-
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
175
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "serverId", function () { return input.serverId; }, "{serverId}", false);
|
|
176
|
+
query = map({
|
|
177
|
+
nextToken: [, input.nextToken],
|
|
178
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
179
|
+
});
|
|
231
180
|
return [2, new __HttpRequest({
|
|
232
181
|
protocol: protocol,
|
|
233
182
|
hostname: hostname,
|
|
@@ -242,7 +191,7 @@ export var serializeAws_restJson1GetServerDetailsCommand = function (input, cont
|
|
|
242
191
|
});
|
|
243
192
|
}); };
|
|
244
193
|
export var serializeAws_restJson1GetServerStrategiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
245
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
194
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
246
195
|
return __generator(this, function (_c) {
|
|
247
196
|
switch (_c.label) {
|
|
248
197
|
case 0: return [4, context.endpoint()];
|
|
@@ -250,16 +199,7 @@ export var serializeAws_restJson1GetServerStrategiesCommand = function (input, c
|
|
|
250
199
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
251
200
|
headers = {};
|
|
252
201
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-server-strategies/{serverId}";
|
|
253
|
-
|
|
254
|
-
labelValue = input.serverId;
|
|
255
|
-
if (labelValue.length <= 0) {
|
|
256
|
-
throw new Error("Empty value provided for input HTTP label: serverId.");
|
|
257
|
-
}
|
|
258
|
-
resolvedPath = resolvedPath.replace("{serverId}", __extendedEncodeURIComponent(labelValue));
|
|
259
|
-
}
|
|
260
|
-
else {
|
|
261
|
-
throw new Error("No value provided for input HTTP label: serverId.");
|
|
262
|
-
}
|
|
202
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "serverId", function () { return input.serverId; }, "{serverId}", false);
|
|
263
203
|
return [2, new __HttpRequest({
|
|
264
204
|
protocol: protocol,
|
|
265
205
|
hostname: hostname,
|
|
@@ -307,7 +247,10 @@ export var serializeAws_restJson1ListCollectorsCommand = function (input, contex
|
|
|
307
247
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
308
248
|
headers = {};
|
|
309
249
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-collectors";
|
|
310
|
-
query =
|
|
250
|
+
query = map({
|
|
251
|
+
nextToken: [, input.nextToken],
|
|
252
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
253
|
+
});
|
|
311
254
|
return [2, new __HttpRequest({
|
|
312
255
|
protocol: protocol,
|
|
313
256
|
hostname: hostname,
|
|
@@ -330,7 +273,10 @@ export var serializeAws_restJson1ListImportFileTaskCommand = function (input, co
|
|
|
330
273
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
331
274
|
headers = {};
|
|
332
275
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-import-file-task";
|
|
333
|
-
query =
|
|
276
|
+
query = map({
|
|
277
|
+
nextToken: [, input.nextToken],
|
|
278
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
279
|
+
});
|
|
334
280
|
return [2, new __HttpRequest({
|
|
335
281
|
protocol: protocol,
|
|
336
282
|
hostname: hostname,
|
|
@@ -556,36 +502,32 @@ export var deserializeAws_restJson1GetApplicationComponentDetailsCommand = funct
|
|
|
556
502
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
557
503
|
return [2, deserializeAws_restJson1GetApplicationComponentDetailsCommandError(output, context)];
|
|
558
504
|
}
|
|
559
|
-
contents = {
|
|
505
|
+
contents = map({
|
|
560
506
|
$metadata: deserializeMetadata(output),
|
|
561
|
-
|
|
562
|
-
associatedApplications: undefined,
|
|
563
|
-
associatedServerIds: undefined,
|
|
564
|
-
moreApplicationResource: undefined,
|
|
565
|
-
};
|
|
507
|
+
});
|
|
566
508
|
_a = __expectNonNull;
|
|
567
509
|
_b = __expectObject;
|
|
568
510
|
return [4, parseBody(output.body, context)];
|
|
569
511
|
case 1:
|
|
570
512
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
571
|
-
if (data.applicationComponentDetail
|
|
513
|
+
if (data.applicationComponentDetail != null) {
|
|
572
514
|
contents.applicationComponentDetail = deserializeAws_restJson1ApplicationComponentDetail(data.applicationComponentDetail, context);
|
|
573
515
|
}
|
|
574
|
-
if (data.associatedApplications
|
|
516
|
+
if (data.associatedApplications != null) {
|
|
575
517
|
contents.associatedApplications = deserializeAws_restJson1AssociatedApplications(data.associatedApplications, context);
|
|
576
518
|
}
|
|
577
|
-
if (data.associatedServerIds
|
|
519
|
+
if (data.associatedServerIds != null) {
|
|
578
520
|
contents.associatedServerIds = deserializeAws_restJson1AssociatedServerIDs(data.associatedServerIds, context);
|
|
579
521
|
}
|
|
580
|
-
if (data.moreApplicationResource
|
|
522
|
+
if (data.moreApplicationResource != null) {
|
|
581
523
|
contents.moreApplicationResource = __expectBoolean(data.moreApplicationResource);
|
|
582
524
|
}
|
|
583
|
-
return [2,
|
|
525
|
+
return [2, contents];
|
|
584
526
|
}
|
|
585
527
|
});
|
|
586
528
|
}); };
|
|
587
529
|
var deserializeAws_restJson1GetApplicationComponentDetailsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
588
|
-
var parsedOutput, _a,
|
|
530
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
589
531
|
var _c;
|
|
590
532
|
return __generator(this, function (_d) {
|
|
591
533
|
switch (_d.label) {
|
|
@@ -614,14 +556,14 @@ var deserializeAws_restJson1GetApplicationComponentDetailsCommandError = functio
|
|
|
614
556
|
case 7: throw _d.sent();
|
|
615
557
|
case 8:
|
|
616
558
|
parsedBody = parsedOutput.body;
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
$metadata: $metadata,
|
|
559
|
+
throwDefaultError({
|
|
560
|
+
output: output,
|
|
561
|
+
parsedBody: parsedBody,
|
|
562
|
+
exceptionCtor: __BaseException,
|
|
563
|
+
errorCode: errorCode,
|
|
623
564
|
});
|
|
624
|
-
|
|
565
|
+
_d.label = 9;
|
|
566
|
+
case 9: return [2];
|
|
625
567
|
}
|
|
626
568
|
});
|
|
627
569
|
}); };
|
|
@@ -633,24 +575,23 @@ export var deserializeAws_restJson1GetApplicationComponentStrategiesCommand = fu
|
|
|
633
575
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
634
576
|
return [2, deserializeAws_restJson1GetApplicationComponentStrategiesCommandError(output, context)];
|
|
635
577
|
}
|
|
636
|
-
contents = {
|
|
578
|
+
contents = map({
|
|
637
579
|
$metadata: deserializeMetadata(output),
|
|
638
|
-
|
|
639
|
-
};
|
|
580
|
+
});
|
|
640
581
|
_a = __expectNonNull;
|
|
641
582
|
_b = __expectObject;
|
|
642
583
|
return [4, parseBody(output.body, context)];
|
|
643
584
|
case 1:
|
|
644
585
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
645
|
-
if (data.applicationComponentStrategies
|
|
586
|
+
if (data.applicationComponentStrategies != null) {
|
|
646
587
|
contents.applicationComponentStrategies = deserializeAws_restJson1ApplicationComponentStrategies(data.applicationComponentStrategies, context);
|
|
647
588
|
}
|
|
648
|
-
return [2,
|
|
589
|
+
return [2, contents];
|
|
649
590
|
}
|
|
650
591
|
});
|
|
651
592
|
}); };
|
|
652
593
|
var deserializeAws_restJson1GetApplicationComponentStrategiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
653
|
-
var parsedOutput, _a,
|
|
594
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
654
595
|
var _c;
|
|
655
596
|
return __generator(this, function (_d) {
|
|
656
597
|
switch (_d.label) {
|
|
@@ -679,14 +620,14 @@ var deserializeAws_restJson1GetApplicationComponentStrategiesCommandError = func
|
|
|
679
620
|
case 7: throw _d.sent();
|
|
680
621
|
case 8:
|
|
681
622
|
parsedBody = parsedOutput.body;
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
$metadata: $metadata,
|
|
623
|
+
throwDefaultError({
|
|
624
|
+
output: output,
|
|
625
|
+
parsedBody: parsedBody,
|
|
626
|
+
exceptionCtor: __BaseException,
|
|
627
|
+
errorCode: errorCode,
|
|
688
628
|
});
|
|
689
|
-
|
|
629
|
+
_d.label = 9;
|
|
630
|
+
case 9: return [2];
|
|
690
631
|
}
|
|
691
632
|
});
|
|
692
633
|
}); };
|
|
@@ -698,28 +639,26 @@ export var deserializeAws_restJson1GetAssessmentCommand = function (output, cont
|
|
|
698
639
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
699
640
|
return [2, deserializeAws_restJson1GetAssessmentCommandError(output, context)];
|
|
700
641
|
}
|
|
701
|
-
contents = {
|
|
642
|
+
contents = map({
|
|
702
643
|
$metadata: deserializeMetadata(output),
|
|
703
|
-
|
|
704
|
-
id: undefined,
|
|
705
|
-
};
|
|
644
|
+
});
|
|
706
645
|
_a = __expectNonNull;
|
|
707
646
|
_b = __expectObject;
|
|
708
647
|
return [4, parseBody(output.body, context)];
|
|
709
648
|
case 1:
|
|
710
649
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
711
|
-
if (data.dataCollectionDetails
|
|
650
|
+
if (data.dataCollectionDetails != null) {
|
|
712
651
|
contents.dataCollectionDetails = deserializeAws_restJson1DataCollectionDetails(data.dataCollectionDetails, context);
|
|
713
652
|
}
|
|
714
|
-
if (data.id
|
|
653
|
+
if (data.id != null) {
|
|
715
654
|
contents.id = __expectString(data.id);
|
|
716
655
|
}
|
|
717
|
-
return [2,
|
|
656
|
+
return [2, contents];
|
|
718
657
|
}
|
|
719
658
|
});
|
|
720
659
|
}); };
|
|
721
660
|
var deserializeAws_restJson1GetAssessmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
722
|
-
var parsedOutput, _a,
|
|
661
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
723
662
|
var _c;
|
|
724
663
|
return __generator(this, function (_d) {
|
|
725
664
|
switch (_d.label) {
|
|
@@ -752,14 +691,14 @@ var deserializeAws_restJson1GetAssessmentCommandError = function (output, contex
|
|
|
752
691
|
case 9: throw _d.sent();
|
|
753
692
|
case 10:
|
|
754
693
|
parsedBody = parsedOutput.body;
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
$metadata: $metadata,
|
|
694
|
+
throwDefaultError({
|
|
695
|
+
output: output,
|
|
696
|
+
parsedBody: parsedBody,
|
|
697
|
+
exceptionCtor: __BaseException,
|
|
698
|
+
errorCode: errorCode,
|
|
761
699
|
});
|
|
762
|
-
|
|
700
|
+
_d.label = 11;
|
|
701
|
+
case 11: return [2];
|
|
763
702
|
}
|
|
764
703
|
});
|
|
765
704
|
}); };
|
|
@@ -771,64 +710,53 @@ export var deserializeAws_restJson1GetImportFileTaskCommand = function (output,
|
|
|
771
710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
772
711
|
return [2, deserializeAws_restJson1GetImportFileTaskCommandError(output, context)];
|
|
773
712
|
}
|
|
774
|
-
contents = {
|
|
713
|
+
contents = map({
|
|
775
714
|
$metadata: deserializeMetadata(output),
|
|
776
|
-
|
|
777
|
-
id: undefined,
|
|
778
|
-
importName: undefined,
|
|
779
|
-
inputS3Bucket: undefined,
|
|
780
|
-
inputS3Key: undefined,
|
|
781
|
-
numberOfRecordsFailed: undefined,
|
|
782
|
-
numberOfRecordsSuccess: undefined,
|
|
783
|
-
startTime: undefined,
|
|
784
|
-
status: undefined,
|
|
785
|
-
statusReportS3Bucket: undefined,
|
|
786
|
-
statusReportS3Key: undefined,
|
|
787
|
-
};
|
|
715
|
+
});
|
|
788
716
|
_a = __expectNonNull;
|
|
789
717
|
_b = __expectObject;
|
|
790
718
|
return [4, parseBody(output.body, context)];
|
|
791
719
|
case 1:
|
|
792
720
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
793
|
-
if (data.completionTime
|
|
721
|
+
if (data.completionTime != null) {
|
|
794
722
|
contents.completionTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.completionTime)));
|
|
795
723
|
}
|
|
796
|
-
if (data.id
|
|
724
|
+
if (data.id != null) {
|
|
797
725
|
contents.id = __expectString(data.id);
|
|
798
726
|
}
|
|
799
|
-
if (data.importName
|
|
727
|
+
if (data.importName != null) {
|
|
800
728
|
contents.importName = __expectString(data.importName);
|
|
801
729
|
}
|
|
802
|
-
if (data.inputS3Bucket
|
|
730
|
+
if (data.inputS3Bucket != null) {
|
|
803
731
|
contents.inputS3Bucket = __expectString(data.inputS3Bucket);
|
|
804
732
|
}
|
|
805
|
-
if (data.inputS3Key
|
|
733
|
+
if (data.inputS3Key != null) {
|
|
806
734
|
contents.inputS3Key = __expectString(data.inputS3Key);
|
|
807
735
|
}
|
|
808
|
-
if (data.numberOfRecordsFailed
|
|
736
|
+
if (data.numberOfRecordsFailed != null) {
|
|
809
737
|
contents.numberOfRecordsFailed = __expectInt32(data.numberOfRecordsFailed);
|
|
810
738
|
}
|
|
811
|
-
if (data.numberOfRecordsSuccess
|
|
739
|
+
if (data.numberOfRecordsSuccess != null) {
|
|
812
740
|
contents.numberOfRecordsSuccess = __expectInt32(data.numberOfRecordsSuccess);
|
|
813
741
|
}
|
|
814
|
-
if (data.startTime
|
|
742
|
+
if (data.startTime != null) {
|
|
815
743
|
contents.startTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.startTime)));
|
|
816
744
|
}
|
|
817
|
-
if (data.status
|
|
745
|
+
if (data.status != null) {
|
|
818
746
|
contents.status = __expectString(data.status);
|
|
819
747
|
}
|
|
820
|
-
if (data.statusReportS3Bucket
|
|
748
|
+
if (data.statusReportS3Bucket != null) {
|
|
821
749
|
contents.statusReportS3Bucket = __expectString(data.statusReportS3Bucket);
|
|
822
750
|
}
|
|
823
|
-
if (data.statusReportS3Key
|
|
751
|
+
if (data.statusReportS3Key != null) {
|
|
824
752
|
contents.statusReportS3Key = __expectString(data.statusReportS3Key);
|
|
825
753
|
}
|
|
826
|
-
return [2,
|
|
754
|
+
return [2, contents];
|
|
827
755
|
}
|
|
828
756
|
});
|
|
829
757
|
}); };
|
|
830
758
|
var deserializeAws_restJson1GetImportFileTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
831
|
-
var parsedOutput, _a,
|
|
759
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
832
760
|
var _c;
|
|
833
761
|
return __generator(this, function (_d) {
|
|
834
762
|
switch (_d.label) {
|
|
@@ -865,14 +793,14 @@ var deserializeAws_restJson1GetImportFileTaskCommandError = function (output, co
|
|
|
865
793
|
case 11: throw _d.sent();
|
|
866
794
|
case 12:
|
|
867
795
|
parsedBody = parsedOutput.body;
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
$metadata: $metadata,
|
|
796
|
+
throwDefaultError({
|
|
797
|
+
output: output,
|
|
798
|
+
parsedBody: parsedBody,
|
|
799
|
+
exceptionCtor: __BaseException,
|
|
800
|
+
errorCode: errorCode,
|
|
874
801
|
});
|
|
875
|
-
|
|
802
|
+
_d.label = 13;
|
|
803
|
+
case 13: return [2];
|
|
876
804
|
}
|
|
877
805
|
});
|
|
878
806
|
}); };
|
|
@@ -884,32 +812,29 @@ export var deserializeAws_restJson1GetPortfolioPreferencesCommand = function (ou
|
|
|
884
812
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
885
813
|
return [2, deserializeAws_restJson1GetPortfolioPreferencesCommandError(output, context)];
|
|
886
814
|
}
|
|
887
|
-
contents = {
|
|
815
|
+
contents = map({
|
|
888
816
|
$metadata: deserializeMetadata(output),
|
|
889
|
-
|
|
890
|
-
databasePreferences: undefined,
|
|
891
|
-
prioritizeBusinessGoals: undefined,
|
|
892
|
-
};
|
|
817
|
+
});
|
|
893
818
|
_a = __expectNonNull;
|
|
894
819
|
_b = __expectObject;
|
|
895
820
|
return [4, parseBody(output.body, context)];
|
|
896
821
|
case 1:
|
|
897
822
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
898
|
-
if (data.applicationPreferences
|
|
823
|
+
if (data.applicationPreferences != null) {
|
|
899
824
|
contents.applicationPreferences = deserializeAws_restJson1ApplicationPreferences(data.applicationPreferences, context);
|
|
900
825
|
}
|
|
901
|
-
if (data.databasePreferences
|
|
826
|
+
if (data.databasePreferences != null) {
|
|
902
827
|
contents.databasePreferences = deserializeAws_restJson1DatabasePreferences(data.databasePreferences, context);
|
|
903
828
|
}
|
|
904
|
-
if (data.prioritizeBusinessGoals
|
|
829
|
+
if (data.prioritizeBusinessGoals != null) {
|
|
905
830
|
contents.prioritizeBusinessGoals = deserializeAws_restJson1PrioritizeBusinessGoals(data.prioritizeBusinessGoals, context);
|
|
906
831
|
}
|
|
907
|
-
return [2,
|
|
832
|
+
return [2, contents];
|
|
908
833
|
}
|
|
909
834
|
});
|
|
910
835
|
}); };
|
|
911
836
|
var deserializeAws_restJson1GetPortfolioPreferencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
912
|
-
var parsedOutput, _a,
|
|
837
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
913
838
|
var _c;
|
|
914
839
|
return __generator(this, function (_d) {
|
|
915
840
|
switch (_d.label) {
|
|
@@ -942,14 +867,14 @@ var deserializeAws_restJson1GetPortfolioPreferencesCommandError = function (outp
|
|
|
942
867
|
case 9: throw _d.sent();
|
|
943
868
|
case 10:
|
|
944
869
|
parsedBody = parsedOutput.body;
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
$metadata: $metadata,
|
|
870
|
+
throwDefaultError({
|
|
871
|
+
output: output,
|
|
872
|
+
parsedBody: parsedBody,
|
|
873
|
+
exceptionCtor: __BaseException,
|
|
874
|
+
errorCode: errorCode,
|
|
951
875
|
});
|
|
952
|
-
|
|
876
|
+
_d.label = 11;
|
|
877
|
+
case 11: return [2];
|
|
953
878
|
}
|
|
954
879
|
});
|
|
955
880
|
}); };
|
|
@@ -961,24 +886,23 @@ export var deserializeAws_restJson1GetPortfolioSummaryCommand = function (output
|
|
|
961
886
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
962
887
|
return [2, deserializeAws_restJson1GetPortfolioSummaryCommandError(output, context)];
|
|
963
888
|
}
|
|
964
|
-
contents = {
|
|
889
|
+
contents = map({
|
|
965
890
|
$metadata: deserializeMetadata(output),
|
|
966
|
-
|
|
967
|
-
};
|
|
891
|
+
});
|
|
968
892
|
_a = __expectNonNull;
|
|
969
893
|
_b = __expectObject;
|
|
970
894
|
return [4, parseBody(output.body, context)];
|
|
971
895
|
case 1:
|
|
972
896
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
973
|
-
if (data.assessmentSummary
|
|
897
|
+
if (data.assessmentSummary != null) {
|
|
974
898
|
contents.assessmentSummary = deserializeAws_restJson1AssessmentSummary(data.assessmentSummary, context);
|
|
975
899
|
}
|
|
976
|
-
return [2,
|
|
900
|
+
return [2, contents];
|
|
977
901
|
}
|
|
978
902
|
});
|
|
979
903
|
}); };
|
|
980
904
|
var deserializeAws_restJson1GetPortfolioSummaryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
981
|
-
var parsedOutput, _a,
|
|
905
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
982
906
|
var _c;
|
|
983
907
|
return __generator(this, function (_d) {
|
|
984
908
|
switch (_d.label) {
|
|
@@ -1007,14 +931,14 @@ var deserializeAws_restJson1GetPortfolioSummaryCommandError = function (output,
|
|
|
1007
931
|
case 7: throw _d.sent();
|
|
1008
932
|
case 8:
|
|
1009
933
|
parsedBody = parsedOutput.body;
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
$metadata: $metadata,
|
|
934
|
+
throwDefaultError({
|
|
935
|
+
output: output,
|
|
936
|
+
parsedBody: parsedBody,
|
|
937
|
+
exceptionCtor: __BaseException,
|
|
938
|
+
errorCode: errorCode,
|
|
1016
939
|
});
|
|
1017
|
-
|
|
940
|
+
_d.label = 9;
|
|
941
|
+
case 9: return [2];
|
|
1018
942
|
}
|
|
1019
943
|
});
|
|
1020
944
|
}); };
|
|
@@ -1026,28 +950,26 @@ export var deserializeAws_restJson1GetRecommendationReportDetailsCommand = funct
|
|
|
1026
950
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1027
951
|
return [2, deserializeAws_restJson1GetRecommendationReportDetailsCommandError(output, context)];
|
|
1028
952
|
}
|
|
1029
|
-
contents = {
|
|
953
|
+
contents = map({
|
|
1030
954
|
$metadata: deserializeMetadata(output),
|
|
1031
|
-
|
|
1032
|
-
recommendationReportDetails: undefined,
|
|
1033
|
-
};
|
|
955
|
+
});
|
|
1034
956
|
_a = __expectNonNull;
|
|
1035
957
|
_b = __expectObject;
|
|
1036
958
|
return [4, parseBody(output.body, context)];
|
|
1037
959
|
case 1:
|
|
1038
960
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1039
|
-
if (data.id
|
|
961
|
+
if (data.id != null) {
|
|
1040
962
|
contents.id = __expectString(data.id);
|
|
1041
963
|
}
|
|
1042
|
-
if (data.recommendationReportDetails
|
|
964
|
+
if (data.recommendationReportDetails != null) {
|
|
1043
965
|
contents.recommendationReportDetails = deserializeAws_restJson1RecommendationReportDetails(data.recommendationReportDetails, context);
|
|
1044
966
|
}
|
|
1045
|
-
return [2,
|
|
967
|
+
return [2, contents];
|
|
1046
968
|
}
|
|
1047
969
|
});
|
|
1048
970
|
}); };
|
|
1049
971
|
var deserializeAws_restJson1GetRecommendationReportDetailsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1050
|
-
var parsedOutput, _a,
|
|
972
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1051
973
|
var _c;
|
|
1052
974
|
return __generator(this, function (_d) {
|
|
1053
975
|
switch (_d.label) {
|
|
@@ -1084,14 +1006,14 @@ var deserializeAws_restJson1GetRecommendationReportDetailsCommandError = functio
|
|
|
1084
1006
|
case 11: throw _d.sent();
|
|
1085
1007
|
case 12:
|
|
1086
1008
|
parsedBody = parsedOutput.body;
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
$metadata: $metadata,
|
|
1009
|
+
throwDefaultError({
|
|
1010
|
+
output: output,
|
|
1011
|
+
parsedBody: parsedBody,
|
|
1012
|
+
exceptionCtor: __BaseException,
|
|
1013
|
+
errorCode: errorCode,
|
|
1093
1014
|
});
|
|
1094
|
-
|
|
1015
|
+
_d.label = 13;
|
|
1016
|
+
case 13: return [2];
|
|
1095
1017
|
}
|
|
1096
1018
|
});
|
|
1097
1019
|
}); };
|
|
@@ -1103,32 +1025,29 @@ export var deserializeAws_restJson1GetServerDetailsCommand = function (output, c
|
|
|
1103
1025
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1104
1026
|
return [2, deserializeAws_restJson1GetServerDetailsCommandError(output, context)];
|
|
1105
1027
|
}
|
|
1106
|
-
contents = {
|
|
1028
|
+
contents = map({
|
|
1107
1029
|
$metadata: deserializeMetadata(output),
|
|
1108
|
-
|
|
1109
|
-
nextToken: undefined,
|
|
1110
|
-
serverDetail: undefined,
|
|
1111
|
-
};
|
|
1030
|
+
});
|
|
1112
1031
|
_a = __expectNonNull;
|
|
1113
1032
|
_b = __expectObject;
|
|
1114
1033
|
return [4, parseBody(output.body, context)];
|
|
1115
1034
|
case 1:
|
|
1116
1035
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1117
|
-
if (data.associatedApplications
|
|
1036
|
+
if (data.associatedApplications != null) {
|
|
1118
1037
|
contents.associatedApplications = deserializeAws_restJson1AssociatedApplications(data.associatedApplications, context);
|
|
1119
1038
|
}
|
|
1120
|
-
if (data.nextToken
|
|
1039
|
+
if (data.nextToken != null) {
|
|
1121
1040
|
contents.nextToken = __expectString(data.nextToken);
|
|
1122
1041
|
}
|
|
1123
|
-
if (data.serverDetail
|
|
1042
|
+
if (data.serverDetail != null) {
|
|
1124
1043
|
contents.serverDetail = deserializeAws_restJson1ServerDetail(data.serverDetail, context);
|
|
1125
1044
|
}
|
|
1126
|
-
return [2,
|
|
1045
|
+
return [2, contents];
|
|
1127
1046
|
}
|
|
1128
1047
|
});
|
|
1129
1048
|
}); };
|
|
1130
1049
|
var deserializeAws_restJson1GetServerDetailsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1131
|
-
var parsedOutput, _a,
|
|
1050
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1132
1051
|
var _c;
|
|
1133
1052
|
return __generator(this, function (_d) {
|
|
1134
1053
|
switch (_d.label) {
|
|
@@ -1165,14 +1084,14 @@ var deserializeAws_restJson1GetServerDetailsCommandError = function (output, con
|
|
|
1165
1084
|
case 11: throw _d.sent();
|
|
1166
1085
|
case 12:
|
|
1167
1086
|
parsedBody = parsedOutput.body;
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
$metadata: $metadata,
|
|
1087
|
+
throwDefaultError({
|
|
1088
|
+
output: output,
|
|
1089
|
+
parsedBody: parsedBody,
|
|
1090
|
+
exceptionCtor: __BaseException,
|
|
1091
|
+
errorCode: errorCode,
|
|
1174
1092
|
});
|
|
1175
|
-
|
|
1093
|
+
_d.label = 13;
|
|
1094
|
+
case 13: return [2];
|
|
1176
1095
|
}
|
|
1177
1096
|
});
|
|
1178
1097
|
}); };
|
|
@@ -1184,24 +1103,23 @@ export var deserializeAws_restJson1GetServerStrategiesCommand = function (output
|
|
|
1184
1103
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1185
1104
|
return [2, deserializeAws_restJson1GetServerStrategiesCommandError(output, context)];
|
|
1186
1105
|
}
|
|
1187
|
-
contents = {
|
|
1106
|
+
contents = map({
|
|
1188
1107
|
$metadata: deserializeMetadata(output),
|
|
1189
|
-
|
|
1190
|
-
};
|
|
1108
|
+
});
|
|
1191
1109
|
_a = __expectNonNull;
|
|
1192
1110
|
_b = __expectObject;
|
|
1193
1111
|
return [4, parseBody(output.body, context)];
|
|
1194
1112
|
case 1:
|
|
1195
1113
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1196
|
-
if (data.serverStrategies
|
|
1114
|
+
if (data.serverStrategies != null) {
|
|
1197
1115
|
contents.serverStrategies = deserializeAws_restJson1ServerStrategies(data.serverStrategies, context);
|
|
1198
1116
|
}
|
|
1199
|
-
return [2,
|
|
1117
|
+
return [2, contents];
|
|
1200
1118
|
}
|
|
1201
1119
|
});
|
|
1202
1120
|
}); };
|
|
1203
1121
|
var deserializeAws_restJson1GetServerStrategiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1204
|
-
var parsedOutput, _a,
|
|
1122
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1205
1123
|
var _c;
|
|
1206
1124
|
return __generator(this, function (_d) {
|
|
1207
1125
|
switch (_d.label) {
|
|
@@ -1238,14 +1156,14 @@ var deserializeAws_restJson1GetServerStrategiesCommandError = function (output,
|
|
|
1238
1156
|
case 11: throw _d.sent();
|
|
1239
1157
|
case 12:
|
|
1240
1158
|
parsedBody = parsedOutput.body;
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
$metadata: $metadata,
|
|
1159
|
+
throwDefaultError({
|
|
1160
|
+
output: output,
|
|
1161
|
+
parsedBody: parsedBody,
|
|
1162
|
+
exceptionCtor: __BaseException,
|
|
1163
|
+
errorCode: errorCode,
|
|
1247
1164
|
});
|
|
1248
|
-
|
|
1165
|
+
_d.label = 13;
|
|
1166
|
+
case 13: return [2];
|
|
1249
1167
|
}
|
|
1250
1168
|
});
|
|
1251
1169
|
}); };
|
|
@@ -1257,28 +1175,26 @@ export var deserializeAws_restJson1ListApplicationComponentsCommand = function (
|
|
|
1257
1175
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1258
1176
|
return [2, deserializeAws_restJson1ListApplicationComponentsCommandError(output, context)];
|
|
1259
1177
|
}
|
|
1260
|
-
contents = {
|
|
1178
|
+
contents = map({
|
|
1261
1179
|
$metadata: deserializeMetadata(output),
|
|
1262
|
-
|
|
1263
|
-
nextToken: undefined,
|
|
1264
|
-
};
|
|
1180
|
+
});
|
|
1265
1181
|
_a = __expectNonNull;
|
|
1266
1182
|
_b = __expectObject;
|
|
1267
1183
|
return [4, parseBody(output.body, context)];
|
|
1268
1184
|
case 1:
|
|
1269
1185
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1270
|
-
if (data.applicationComponentInfos
|
|
1186
|
+
if (data.applicationComponentInfos != null) {
|
|
1271
1187
|
contents.applicationComponentInfos = deserializeAws_restJson1ApplicationComponentDetails(data.applicationComponentInfos, context);
|
|
1272
1188
|
}
|
|
1273
|
-
if (data.nextToken
|
|
1189
|
+
if (data.nextToken != null) {
|
|
1274
1190
|
contents.nextToken = __expectString(data.nextToken);
|
|
1275
1191
|
}
|
|
1276
|
-
return [2,
|
|
1192
|
+
return [2, contents];
|
|
1277
1193
|
}
|
|
1278
1194
|
});
|
|
1279
1195
|
}); };
|
|
1280
1196
|
var deserializeAws_restJson1ListApplicationComponentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1281
|
-
var parsedOutput, _a,
|
|
1197
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1282
1198
|
var _c;
|
|
1283
1199
|
return __generator(this, function (_d) {
|
|
1284
1200
|
switch (_d.label) {
|
|
@@ -1311,14 +1227,14 @@ var deserializeAws_restJson1ListApplicationComponentsCommandError = function (ou
|
|
|
1311
1227
|
case 9: throw _d.sent();
|
|
1312
1228
|
case 10:
|
|
1313
1229
|
parsedBody = parsedOutput.body;
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
$metadata: $metadata,
|
|
1230
|
+
throwDefaultError({
|
|
1231
|
+
output: output,
|
|
1232
|
+
parsedBody: parsedBody,
|
|
1233
|
+
exceptionCtor: __BaseException,
|
|
1234
|
+
errorCode: errorCode,
|
|
1320
1235
|
});
|
|
1321
|
-
|
|
1236
|
+
_d.label = 11;
|
|
1237
|
+
case 11: return [2];
|
|
1322
1238
|
}
|
|
1323
1239
|
});
|
|
1324
1240
|
}); };
|
|
@@ -1330,28 +1246,26 @@ export var deserializeAws_restJson1ListCollectorsCommand = function (output, con
|
|
|
1330
1246
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1331
1247
|
return [2, deserializeAws_restJson1ListCollectorsCommandError(output, context)];
|
|
1332
1248
|
}
|
|
1333
|
-
contents = {
|
|
1249
|
+
contents = map({
|
|
1334
1250
|
$metadata: deserializeMetadata(output),
|
|
1335
|
-
|
|
1336
|
-
nextToken: undefined,
|
|
1337
|
-
};
|
|
1251
|
+
});
|
|
1338
1252
|
_a = __expectNonNull;
|
|
1339
1253
|
_b = __expectObject;
|
|
1340
1254
|
return [4, parseBody(output.body, context)];
|
|
1341
1255
|
case 1:
|
|
1342
1256
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1343
|
-
if (data.Collectors
|
|
1257
|
+
if (data.Collectors != null) {
|
|
1344
1258
|
contents.Collectors = deserializeAws_restJson1Collectors(data.Collectors, context);
|
|
1345
1259
|
}
|
|
1346
|
-
if (data.nextToken
|
|
1260
|
+
if (data.nextToken != null) {
|
|
1347
1261
|
contents.nextToken = __expectString(data.nextToken);
|
|
1348
1262
|
}
|
|
1349
|
-
return [2,
|
|
1263
|
+
return [2, contents];
|
|
1350
1264
|
}
|
|
1351
1265
|
});
|
|
1352
1266
|
}); };
|
|
1353
1267
|
var deserializeAws_restJson1ListCollectorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1354
|
-
var parsedOutput, _a,
|
|
1268
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1355
1269
|
var _c;
|
|
1356
1270
|
return __generator(this, function (_d) {
|
|
1357
1271
|
switch (_d.label) {
|
|
@@ -1384,14 +1298,14 @@ var deserializeAws_restJson1ListCollectorsCommandError = function (output, conte
|
|
|
1384
1298
|
case 9: throw _d.sent();
|
|
1385
1299
|
case 10:
|
|
1386
1300
|
parsedBody = parsedOutput.body;
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
$metadata: $metadata,
|
|
1301
|
+
throwDefaultError({
|
|
1302
|
+
output: output,
|
|
1303
|
+
parsedBody: parsedBody,
|
|
1304
|
+
exceptionCtor: __BaseException,
|
|
1305
|
+
errorCode: errorCode,
|
|
1393
1306
|
});
|
|
1394
|
-
|
|
1307
|
+
_d.label = 11;
|
|
1308
|
+
case 11: return [2];
|
|
1395
1309
|
}
|
|
1396
1310
|
});
|
|
1397
1311
|
}); };
|
|
@@ -1403,28 +1317,26 @@ export var deserializeAws_restJson1ListImportFileTaskCommand = function (output,
|
|
|
1403
1317
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1404
1318
|
return [2, deserializeAws_restJson1ListImportFileTaskCommandError(output, context)];
|
|
1405
1319
|
}
|
|
1406
|
-
contents = {
|
|
1320
|
+
contents = map({
|
|
1407
1321
|
$metadata: deserializeMetadata(output),
|
|
1408
|
-
|
|
1409
|
-
taskInfos: undefined,
|
|
1410
|
-
};
|
|
1322
|
+
});
|
|
1411
1323
|
_a = __expectNonNull;
|
|
1412
1324
|
_b = __expectObject;
|
|
1413
1325
|
return [4, parseBody(output.body, context)];
|
|
1414
1326
|
case 1:
|
|
1415
1327
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1416
|
-
if (data.nextToken
|
|
1328
|
+
if (data.nextToken != null) {
|
|
1417
1329
|
contents.nextToken = __expectString(data.nextToken);
|
|
1418
1330
|
}
|
|
1419
|
-
if (data.taskInfos
|
|
1331
|
+
if (data.taskInfos != null) {
|
|
1420
1332
|
contents.taskInfos = deserializeAws_restJson1ListImportFileTaskInformation(data.taskInfos, context);
|
|
1421
1333
|
}
|
|
1422
|
-
return [2,
|
|
1334
|
+
return [2, contents];
|
|
1423
1335
|
}
|
|
1424
1336
|
});
|
|
1425
1337
|
}); };
|
|
1426
1338
|
var deserializeAws_restJson1ListImportFileTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1427
|
-
var parsedOutput, _a,
|
|
1339
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1428
1340
|
var _c;
|
|
1429
1341
|
return __generator(this, function (_d) {
|
|
1430
1342
|
switch (_d.label) {
|
|
@@ -1457,14 +1369,14 @@ var deserializeAws_restJson1ListImportFileTaskCommandError = function (output, c
|
|
|
1457
1369
|
case 9: throw _d.sent();
|
|
1458
1370
|
case 10:
|
|
1459
1371
|
parsedBody = parsedOutput.body;
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
$metadata: $metadata,
|
|
1372
|
+
throwDefaultError({
|
|
1373
|
+
output: output,
|
|
1374
|
+
parsedBody: parsedBody,
|
|
1375
|
+
exceptionCtor: __BaseException,
|
|
1376
|
+
errorCode: errorCode,
|
|
1466
1377
|
});
|
|
1467
|
-
|
|
1378
|
+
_d.label = 11;
|
|
1379
|
+
case 11: return [2];
|
|
1468
1380
|
}
|
|
1469
1381
|
});
|
|
1470
1382
|
}); };
|
|
@@ -1476,28 +1388,26 @@ export var deserializeAws_restJson1ListServersCommand = function (output, contex
|
|
|
1476
1388
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1477
1389
|
return [2, deserializeAws_restJson1ListServersCommandError(output, context)];
|
|
1478
1390
|
}
|
|
1479
|
-
contents = {
|
|
1391
|
+
contents = map({
|
|
1480
1392
|
$metadata: deserializeMetadata(output),
|
|
1481
|
-
|
|
1482
|
-
serverInfos: undefined,
|
|
1483
|
-
};
|
|
1393
|
+
});
|
|
1484
1394
|
_a = __expectNonNull;
|
|
1485
1395
|
_b = __expectObject;
|
|
1486
1396
|
return [4, parseBody(output.body, context)];
|
|
1487
1397
|
case 1:
|
|
1488
1398
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1489
|
-
if (data.nextToken
|
|
1399
|
+
if (data.nextToken != null) {
|
|
1490
1400
|
contents.nextToken = __expectString(data.nextToken);
|
|
1491
1401
|
}
|
|
1492
|
-
if (data.serverInfos
|
|
1402
|
+
if (data.serverInfos != null) {
|
|
1493
1403
|
contents.serverInfos = deserializeAws_restJson1ServerDetails(data.serverInfos, context);
|
|
1494
1404
|
}
|
|
1495
|
-
return [2,
|
|
1405
|
+
return [2, contents];
|
|
1496
1406
|
}
|
|
1497
1407
|
});
|
|
1498
1408
|
}); };
|
|
1499
1409
|
var deserializeAws_restJson1ListServersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1500
|
-
var parsedOutput, _a,
|
|
1410
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1501
1411
|
var _c;
|
|
1502
1412
|
return __generator(this, function (_d) {
|
|
1503
1413
|
switch (_d.label) {
|
|
@@ -1530,14 +1440,14 @@ var deserializeAws_restJson1ListServersCommandError = function (output, context)
|
|
|
1530
1440
|
case 9: throw _d.sent();
|
|
1531
1441
|
case 10:
|
|
1532
1442
|
parsedBody = parsedOutput.body;
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
$metadata: $metadata,
|
|
1443
|
+
throwDefaultError({
|
|
1444
|
+
output: output,
|
|
1445
|
+
parsedBody: parsedBody,
|
|
1446
|
+
exceptionCtor: __BaseException,
|
|
1447
|
+
errorCode: errorCode,
|
|
1539
1448
|
});
|
|
1540
|
-
|
|
1449
|
+
_d.label = 11;
|
|
1450
|
+
case 11: return [2];
|
|
1541
1451
|
}
|
|
1542
1452
|
});
|
|
1543
1453
|
}); };
|
|
@@ -1549,18 +1459,18 @@ export var deserializeAws_restJson1PutPortfolioPreferencesCommand = function (ou
|
|
|
1549
1459
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1550
1460
|
return [2, deserializeAws_restJson1PutPortfolioPreferencesCommandError(output, context)];
|
|
1551
1461
|
}
|
|
1552
|
-
contents = {
|
|
1462
|
+
contents = map({
|
|
1553
1463
|
$metadata: deserializeMetadata(output),
|
|
1554
|
-
};
|
|
1464
|
+
});
|
|
1555
1465
|
return [4, collectBody(output.body, context)];
|
|
1556
1466
|
case 1:
|
|
1557
1467
|
_a.sent();
|
|
1558
|
-
return [2,
|
|
1468
|
+
return [2, contents];
|
|
1559
1469
|
}
|
|
1560
1470
|
});
|
|
1561
1471
|
}); };
|
|
1562
1472
|
var deserializeAws_restJson1PutPortfolioPreferencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1563
|
-
var parsedOutput, _a,
|
|
1473
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1564
1474
|
var _c;
|
|
1565
1475
|
return __generator(this, function (_d) {
|
|
1566
1476
|
switch (_d.label) {
|
|
@@ -1597,14 +1507,14 @@ var deserializeAws_restJson1PutPortfolioPreferencesCommandError = function (outp
|
|
|
1597
1507
|
case 11: throw _d.sent();
|
|
1598
1508
|
case 12:
|
|
1599
1509
|
parsedBody = parsedOutput.body;
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
$metadata: $metadata,
|
|
1510
|
+
throwDefaultError({
|
|
1511
|
+
output: output,
|
|
1512
|
+
parsedBody: parsedBody,
|
|
1513
|
+
exceptionCtor: __BaseException,
|
|
1514
|
+
errorCode: errorCode,
|
|
1606
1515
|
});
|
|
1607
|
-
|
|
1516
|
+
_d.label = 13;
|
|
1517
|
+
case 13: return [2];
|
|
1608
1518
|
}
|
|
1609
1519
|
});
|
|
1610
1520
|
}); };
|
|
@@ -1616,24 +1526,23 @@ export var deserializeAws_restJson1StartAssessmentCommand = function (output, co
|
|
|
1616
1526
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1617
1527
|
return [2, deserializeAws_restJson1StartAssessmentCommandError(output, context)];
|
|
1618
1528
|
}
|
|
1619
|
-
contents = {
|
|
1529
|
+
contents = map({
|
|
1620
1530
|
$metadata: deserializeMetadata(output),
|
|
1621
|
-
|
|
1622
|
-
};
|
|
1531
|
+
});
|
|
1623
1532
|
_a = __expectNonNull;
|
|
1624
1533
|
_b = __expectObject;
|
|
1625
1534
|
return [4, parseBody(output.body, context)];
|
|
1626
1535
|
case 1:
|
|
1627
1536
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1628
|
-
if (data.assessmentId
|
|
1537
|
+
if (data.assessmentId != null) {
|
|
1629
1538
|
contents.assessmentId = __expectString(data.assessmentId);
|
|
1630
1539
|
}
|
|
1631
|
-
return [2,
|
|
1540
|
+
return [2, contents];
|
|
1632
1541
|
}
|
|
1633
1542
|
});
|
|
1634
1543
|
}); };
|
|
1635
1544
|
var deserializeAws_restJson1StartAssessmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1636
|
-
var parsedOutput, _a,
|
|
1545
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1637
1546
|
var _c;
|
|
1638
1547
|
return __generator(this, function (_d) {
|
|
1639
1548
|
switch (_d.label) {
|
|
@@ -1666,14 +1575,14 @@ var deserializeAws_restJson1StartAssessmentCommandError = function (output, cont
|
|
|
1666
1575
|
case 9: throw _d.sent();
|
|
1667
1576
|
case 10:
|
|
1668
1577
|
parsedBody = parsedOutput.body;
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
$metadata: $metadata,
|
|
1578
|
+
throwDefaultError({
|
|
1579
|
+
output: output,
|
|
1580
|
+
parsedBody: parsedBody,
|
|
1581
|
+
exceptionCtor: __BaseException,
|
|
1582
|
+
errorCode: errorCode,
|
|
1675
1583
|
});
|
|
1676
|
-
|
|
1584
|
+
_d.label = 11;
|
|
1585
|
+
case 11: return [2];
|
|
1677
1586
|
}
|
|
1678
1587
|
});
|
|
1679
1588
|
}); };
|
|
@@ -1685,24 +1594,23 @@ export var deserializeAws_restJson1StartImportFileTaskCommand = function (output
|
|
|
1685
1594
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1686
1595
|
return [2, deserializeAws_restJson1StartImportFileTaskCommandError(output, context)];
|
|
1687
1596
|
}
|
|
1688
|
-
contents = {
|
|
1597
|
+
contents = map({
|
|
1689
1598
|
$metadata: deserializeMetadata(output),
|
|
1690
|
-
|
|
1691
|
-
};
|
|
1599
|
+
});
|
|
1692
1600
|
_a = __expectNonNull;
|
|
1693
1601
|
_b = __expectObject;
|
|
1694
1602
|
return [4, parseBody(output.body, context)];
|
|
1695
1603
|
case 1:
|
|
1696
1604
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1697
|
-
if (data.id
|
|
1605
|
+
if (data.id != null) {
|
|
1698
1606
|
contents.id = __expectString(data.id);
|
|
1699
1607
|
}
|
|
1700
|
-
return [2,
|
|
1608
|
+
return [2, contents];
|
|
1701
1609
|
}
|
|
1702
1610
|
});
|
|
1703
1611
|
}); };
|
|
1704
1612
|
var deserializeAws_restJson1StartImportFileTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1705
|
-
var parsedOutput, _a,
|
|
1613
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1706
1614
|
var _c;
|
|
1707
1615
|
return __generator(this, function (_d) {
|
|
1708
1616
|
switch (_d.label) {
|
|
@@ -1739,14 +1647,14 @@ var deserializeAws_restJson1StartImportFileTaskCommandError = function (output,
|
|
|
1739
1647
|
case 11: throw _d.sent();
|
|
1740
1648
|
case 12:
|
|
1741
1649
|
parsedBody = parsedOutput.body;
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
$metadata: $metadata,
|
|
1650
|
+
throwDefaultError({
|
|
1651
|
+
output: output,
|
|
1652
|
+
parsedBody: parsedBody,
|
|
1653
|
+
exceptionCtor: __BaseException,
|
|
1654
|
+
errorCode: errorCode,
|
|
1748
1655
|
});
|
|
1749
|
-
|
|
1656
|
+
_d.label = 13;
|
|
1657
|
+
case 13: return [2];
|
|
1750
1658
|
}
|
|
1751
1659
|
});
|
|
1752
1660
|
}); };
|
|
@@ -1758,24 +1666,23 @@ export var deserializeAws_restJson1StartRecommendationReportGenerationCommand =
|
|
|
1758
1666
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1759
1667
|
return [2, deserializeAws_restJson1StartRecommendationReportGenerationCommandError(output, context)];
|
|
1760
1668
|
}
|
|
1761
|
-
contents = {
|
|
1669
|
+
contents = map({
|
|
1762
1670
|
$metadata: deserializeMetadata(output),
|
|
1763
|
-
|
|
1764
|
-
};
|
|
1671
|
+
});
|
|
1765
1672
|
_a = __expectNonNull;
|
|
1766
1673
|
_b = __expectObject;
|
|
1767
1674
|
return [4, parseBody(output.body, context)];
|
|
1768
1675
|
case 1:
|
|
1769
1676
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1770
|
-
if (data.id
|
|
1677
|
+
if (data.id != null) {
|
|
1771
1678
|
contents.id = __expectString(data.id);
|
|
1772
1679
|
}
|
|
1773
|
-
return [2,
|
|
1680
|
+
return [2, contents];
|
|
1774
1681
|
}
|
|
1775
1682
|
});
|
|
1776
1683
|
}); };
|
|
1777
1684
|
var deserializeAws_restJson1StartRecommendationReportGenerationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1778
|
-
var parsedOutput, _a,
|
|
1685
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1779
1686
|
var _c;
|
|
1780
1687
|
return __generator(this, function (_d) {
|
|
1781
1688
|
switch (_d.label) {
|
|
@@ -1812,14 +1719,14 @@ var deserializeAws_restJson1StartRecommendationReportGenerationCommandError = fu
|
|
|
1812
1719
|
case 11: throw _d.sent();
|
|
1813
1720
|
case 12:
|
|
1814
1721
|
parsedBody = parsedOutput.body;
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
$metadata: $metadata,
|
|
1722
|
+
throwDefaultError({
|
|
1723
|
+
output: output,
|
|
1724
|
+
parsedBody: parsedBody,
|
|
1725
|
+
exceptionCtor: __BaseException,
|
|
1726
|
+
errorCode: errorCode,
|
|
1821
1727
|
});
|
|
1822
|
-
|
|
1728
|
+
_d.label = 13;
|
|
1729
|
+
case 13: return [2];
|
|
1823
1730
|
}
|
|
1824
1731
|
});
|
|
1825
1732
|
}); };
|
|
@@ -1831,18 +1738,18 @@ export var deserializeAws_restJson1StopAssessmentCommand = function (output, con
|
|
|
1831
1738
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1832
1739
|
return [2, deserializeAws_restJson1StopAssessmentCommandError(output, context)];
|
|
1833
1740
|
}
|
|
1834
|
-
contents = {
|
|
1741
|
+
contents = map({
|
|
1835
1742
|
$metadata: deserializeMetadata(output),
|
|
1836
|
-
};
|
|
1743
|
+
});
|
|
1837
1744
|
return [4, collectBody(output.body, context)];
|
|
1838
1745
|
case 1:
|
|
1839
1746
|
_a.sent();
|
|
1840
|
-
return [2,
|
|
1747
|
+
return [2, contents];
|
|
1841
1748
|
}
|
|
1842
1749
|
});
|
|
1843
1750
|
}); };
|
|
1844
1751
|
var deserializeAws_restJson1StopAssessmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1845
|
-
var parsedOutput, _a,
|
|
1752
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1846
1753
|
var _c;
|
|
1847
1754
|
return __generator(this, function (_d) {
|
|
1848
1755
|
switch (_d.label) {
|
|
@@ -1875,14 +1782,14 @@ var deserializeAws_restJson1StopAssessmentCommandError = function (output, conte
|
|
|
1875
1782
|
case 9: throw _d.sent();
|
|
1876
1783
|
case 10:
|
|
1877
1784
|
parsedBody = parsedOutput.body;
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
$metadata: $metadata,
|
|
1785
|
+
throwDefaultError({
|
|
1786
|
+
output: output,
|
|
1787
|
+
parsedBody: parsedBody,
|
|
1788
|
+
exceptionCtor: __BaseException,
|
|
1789
|
+
errorCode: errorCode,
|
|
1884
1790
|
});
|
|
1885
|
-
|
|
1791
|
+
_d.label = 11;
|
|
1792
|
+
case 11: return [2];
|
|
1886
1793
|
}
|
|
1887
1794
|
});
|
|
1888
1795
|
}); };
|
|
@@ -1894,18 +1801,18 @@ export var deserializeAws_restJson1UpdateApplicationComponentConfigCommand = fun
|
|
|
1894
1801
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1895
1802
|
return [2, deserializeAws_restJson1UpdateApplicationComponentConfigCommandError(output, context)];
|
|
1896
1803
|
}
|
|
1897
|
-
contents = {
|
|
1804
|
+
contents = map({
|
|
1898
1805
|
$metadata: deserializeMetadata(output),
|
|
1899
|
-
};
|
|
1806
|
+
});
|
|
1900
1807
|
return [4, collectBody(output.body, context)];
|
|
1901
1808
|
case 1:
|
|
1902
1809
|
_a.sent();
|
|
1903
|
-
return [2,
|
|
1810
|
+
return [2, contents];
|
|
1904
1811
|
}
|
|
1905
1812
|
});
|
|
1906
1813
|
}); };
|
|
1907
1814
|
var deserializeAws_restJson1UpdateApplicationComponentConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1908
|
-
var parsedOutput, _a,
|
|
1815
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1909
1816
|
var _c;
|
|
1910
1817
|
return __generator(this, function (_d) {
|
|
1911
1818
|
switch (_d.label) {
|
|
@@ -1938,14 +1845,14 @@ var deserializeAws_restJson1UpdateApplicationComponentConfigCommandError = funct
|
|
|
1938
1845
|
case 9: throw _d.sent();
|
|
1939
1846
|
case 10:
|
|
1940
1847
|
parsedBody = parsedOutput.body;
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
$metadata: $metadata,
|
|
1848
|
+
throwDefaultError({
|
|
1849
|
+
output: output,
|
|
1850
|
+
parsedBody: parsedBody,
|
|
1851
|
+
exceptionCtor: __BaseException,
|
|
1852
|
+
errorCode: errorCode,
|
|
1947
1853
|
});
|
|
1948
|
-
|
|
1854
|
+
_d.label = 11;
|
|
1855
|
+
case 11: return [2];
|
|
1949
1856
|
}
|
|
1950
1857
|
});
|
|
1951
1858
|
}); };
|
|
@@ -1957,18 +1864,18 @@ export var deserializeAws_restJson1UpdateServerConfigCommand = function (output,
|
|
|
1957
1864
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1958
1865
|
return [2, deserializeAws_restJson1UpdateServerConfigCommandError(output, context)];
|
|
1959
1866
|
}
|
|
1960
|
-
contents = {
|
|
1867
|
+
contents = map({
|
|
1961
1868
|
$metadata: deserializeMetadata(output),
|
|
1962
|
-
};
|
|
1869
|
+
});
|
|
1963
1870
|
return [4, collectBody(output.body, context)];
|
|
1964
1871
|
case 1:
|
|
1965
1872
|
_a.sent();
|
|
1966
|
-
return [2,
|
|
1873
|
+
return [2, contents];
|
|
1967
1874
|
}
|
|
1968
1875
|
});
|
|
1969
1876
|
}); };
|
|
1970
1877
|
var deserializeAws_restJson1UpdateServerConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1971
|
-
var parsedOutput, _a,
|
|
1878
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1972
1879
|
var _c;
|
|
1973
1880
|
return __generator(this, function (_d) {
|
|
1974
1881
|
switch (_d.label) {
|
|
@@ -2001,23 +1908,24 @@ var deserializeAws_restJson1UpdateServerConfigCommandError = function (output, c
|
|
|
2001
1908
|
case 9: throw _d.sent();
|
|
2002
1909
|
case 10:
|
|
2003
1910
|
parsedBody = parsedOutput.body;
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
$metadata: $metadata,
|
|
1911
|
+
throwDefaultError({
|
|
1912
|
+
output: output,
|
|
1913
|
+
parsedBody: parsedBody,
|
|
1914
|
+
exceptionCtor: __BaseException,
|
|
1915
|
+
errorCode: errorCode,
|
|
2010
1916
|
});
|
|
2011
|
-
|
|
1917
|
+
_d.label = 11;
|
|
1918
|
+
case 11: return [2];
|
|
2012
1919
|
}
|
|
2013
1920
|
});
|
|
2014
1921
|
}); };
|
|
1922
|
+
var map = __map;
|
|
2015
1923
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2016
1924
|
var contents, data, exception;
|
|
2017
1925
|
return __generator(this, function (_a) {
|
|
2018
|
-
contents = {};
|
|
1926
|
+
contents = map({});
|
|
2019
1927
|
data = parsedOutput.body;
|
|
2020
|
-
if (data.message
|
|
1928
|
+
if (data.message != null) {
|
|
2021
1929
|
contents.message = __expectString(data.message);
|
|
2022
1930
|
}
|
|
2023
1931
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2027,9 +1935,9 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
2027
1935
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2028
1936
|
var contents, data, exception;
|
|
2029
1937
|
return __generator(this, function (_a) {
|
|
2030
|
-
contents = {};
|
|
1938
|
+
contents = map({});
|
|
2031
1939
|
data = parsedOutput.body;
|
|
2032
|
-
if (data.message
|
|
1940
|
+
if (data.message != null) {
|
|
2033
1941
|
contents.message = __expectString(data.message);
|
|
2034
1942
|
}
|
|
2035
1943
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2039,9 +1947,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
2039
1947
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2040
1948
|
var contents, data, exception;
|
|
2041
1949
|
return __generator(this, function (_a) {
|
|
2042
|
-
contents = {};
|
|
1950
|
+
contents = map({});
|
|
2043
1951
|
data = parsedOutput.body;
|
|
2044
|
-
if (data.message
|
|
1952
|
+
if (data.message != null) {
|
|
2045
1953
|
contents.message = __expectString(data.message);
|
|
2046
1954
|
}
|
|
2047
1955
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2051,9 +1959,9 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
2051
1959
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2052
1960
|
var contents, data, exception;
|
|
2053
1961
|
return __generator(this, function (_a) {
|
|
2054
|
-
contents = {};
|
|
1962
|
+
contents = map({});
|
|
2055
1963
|
data = parsedOutput.body;
|
|
2056
|
-
if (data.message
|
|
1964
|
+
if (data.message != null) {
|
|
2057
1965
|
contents.message = __expectString(data.message);
|
|
2058
1966
|
}
|
|
2059
1967
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2063,9 +1971,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
2063
1971
|
var deserializeAws_restJson1ServiceLinkedRoleLockClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2064
1972
|
var contents, data, exception;
|
|
2065
1973
|
return __generator(this, function (_a) {
|
|
2066
|
-
contents = {};
|
|
1974
|
+
contents = map({});
|
|
2067
1975
|
data = parsedOutput.body;
|
|
2068
|
-
if (data.message
|
|
1976
|
+
if (data.message != null) {
|
|
2069
1977
|
contents.message = __expectString(data.message);
|
|
2070
1978
|
}
|
|
2071
1979
|
exception = new ServiceLinkedRoleLockClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2075,9 +1983,9 @@ var deserializeAws_restJson1ServiceLinkedRoleLockClientExceptionResponse = funct
|
|
|
2075
1983
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2076
1984
|
var contents, data, exception;
|
|
2077
1985
|
return __generator(this, function (_a) {
|
|
2078
|
-
contents = {};
|
|
1986
|
+
contents = map({});
|
|
2079
1987
|
data = parsedOutput.body;
|
|
2080
|
-
if (data.message
|
|
1988
|
+
if (data.message != null) {
|
|
2081
1989
|
contents.message = __expectString(data.message);
|
|
2082
1990
|
}
|
|
2083
1991
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2087,9 +1995,9 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
2087
1995
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2088
1996
|
var contents, data, exception;
|
|
2089
1997
|
return __generator(this, function (_a) {
|
|
2090
|
-
contents = {};
|
|
1998
|
+
contents = map({});
|
|
2091
1999
|
data = parsedOutput.body;
|
|
2092
|
-
if (data.message
|
|
2000
|
+
if (data.message != null) {
|
|
2093
2001
|
contents.message = __expectString(data.message);
|
|
2094
2002
|
}
|
|
2095
2003
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2099,9 +2007,9 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
2099
2007
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2100
2008
|
var contents, data, exception;
|
|
2101
2009
|
return __generator(this, function (_a) {
|
|
2102
|
-
contents = {};
|
|
2010
|
+
contents = map({});
|
|
2103
2011
|
data = parsedOutput.body;
|
|
2104
|
-
if (data.message
|
|
2012
|
+
if (data.message != null) {
|
|
2105
2013
|
contents.message = __expectString(data.message);
|
|
2106
2014
|
}
|
|
2107
2015
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2122,9 +2030,6 @@ var serializeAws_restJson1AwsManagedTargetDestinations = function (input, contex
|
|
|
2122
2030
|
return input
|
|
2123
2031
|
.filter(function (e) { return e != null; })
|
|
2124
2032
|
.map(function (entry) {
|
|
2125
|
-
if (entry === null) {
|
|
2126
|
-
return null;
|
|
2127
|
-
}
|
|
2128
2033
|
return entry;
|
|
2129
2034
|
});
|
|
2130
2035
|
};
|
|
@@ -2157,9 +2062,6 @@ var serializeAws_restJson1GroupIds = function (input, context) {
|
|
|
2157
2062
|
return input
|
|
2158
2063
|
.filter(function (e) { return e != null; })
|
|
2159
2064
|
.map(function (entry) {
|
|
2160
|
-
if (entry === null) {
|
|
2161
|
-
return null;
|
|
2162
|
-
}
|
|
2163
2065
|
return serializeAws_restJson1Group(entry, context);
|
|
2164
2066
|
});
|
|
2165
2067
|
};
|
|
@@ -2172,9 +2074,6 @@ var serializeAws_restJson1HeterogeneousTargetDatabaseEngines = function (input,
|
|
|
2172
2074
|
return input
|
|
2173
2075
|
.filter(function (e) { return e != null; })
|
|
2174
2076
|
.map(function (entry) {
|
|
2175
|
-
if (entry === null) {
|
|
2176
|
-
return null;
|
|
2177
|
-
}
|
|
2178
2077
|
return entry;
|
|
2179
2078
|
});
|
|
2180
2079
|
};
|
|
@@ -2187,9 +2086,6 @@ var serializeAws_restJson1HomogeneousTargetDatabaseEngines = function (input, co
|
|
|
2187
2086
|
return input
|
|
2188
2087
|
.filter(function (e) { return e != null; })
|
|
2189
2088
|
.map(function (entry) {
|
|
2190
|
-
if (entry === null) {
|
|
2191
|
-
return null;
|
|
2192
|
-
}
|
|
2193
2089
|
return entry;
|
|
2194
2090
|
});
|
|
2195
2091
|
};
|
|
@@ -2219,9 +2115,6 @@ var serializeAws_restJson1NoPreferenceTargetDestinations = function (input, cont
|
|
|
2219
2115
|
return input
|
|
2220
2116
|
.filter(function (e) { return e != null; })
|
|
2221
2117
|
.map(function (entry) {
|
|
2222
|
-
if (entry === null) {
|
|
2223
|
-
return null;
|
|
2224
|
-
}
|
|
2225
2118
|
return entry;
|
|
2226
2119
|
});
|
|
2227
2120
|
};
|
|
@@ -2239,9 +2132,6 @@ var serializeAws_restJson1SelfManageTargetDestinations = function (input, contex
|
|
|
2239
2132
|
return input
|
|
2240
2133
|
.filter(function (e) { return e != null; })
|
|
2241
2134
|
.map(function (entry) {
|
|
2242
|
-
if (entry === null) {
|
|
2243
|
-
return null;
|
|
2244
|
-
}
|
|
2245
2135
|
return entry;
|
|
2246
2136
|
});
|
|
2247
2137
|
};
|
|
@@ -2252,9 +2142,6 @@ var serializeAws_restJson1SourceCodeList = function (input, context) {
|
|
|
2252
2142
|
return input
|
|
2253
2143
|
.filter(function (e) { return e != null; })
|
|
2254
2144
|
.map(function (entry) {
|
|
2255
|
-
if (entry === null) {
|
|
2256
|
-
return null;
|
|
2257
|
-
}
|
|
2258
2145
|
return serializeAws_restJson1SourceCode(entry, context);
|
|
2259
2146
|
});
|
|
2260
2147
|
};
|
|
@@ -2265,9 +2152,6 @@ var serializeAws_restJson1TargetDatabaseEngines = function (input, context) {
|
|
|
2265
2152
|
return input
|
|
2266
2153
|
.filter(function (e) { return e != null; })
|
|
2267
2154
|
.map(function (entry) {
|
|
2268
|
-
if (entry === null) {
|
|
2269
|
-
return null;
|
|
2270
|
-
}
|
|
2271
2155
|
return entry;
|
|
2272
2156
|
});
|
|
2273
2157
|
};
|
|
@@ -2465,17 +2349,17 @@ var deserializeAws_restJson1DatabaseConfigDetail = function (output, context) {
|
|
|
2465
2349
|
};
|
|
2466
2350
|
};
|
|
2467
2351
|
var deserializeAws_restJson1DatabaseMigrationPreference = function (output, context) {
|
|
2468
|
-
if (output.heterogeneous
|
|
2352
|
+
if (output.heterogeneous != null) {
|
|
2469
2353
|
return {
|
|
2470
2354
|
heterogeneous: deserializeAws_restJson1Heterogeneous(output.heterogeneous, context),
|
|
2471
2355
|
};
|
|
2472
2356
|
}
|
|
2473
|
-
if (output.homogeneous
|
|
2357
|
+
if (output.homogeneous != null) {
|
|
2474
2358
|
return {
|
|
2475
2359
|
homogeneous: deserializeAws_restJson1Homogeneous(output.homogeneous, context),
|
|
2476
2360
|
};
|
|
2477
2361
|
}
|
|
2478
|
-
if (output.noPreference
|
|
2362
|
+
if (output.noPreference != null) {
|
|
2479
2363
|
return {
|
|
2480
2364
|
noPreference: deserializeAws_restJson1NoDatabaseMigrationPreference(output.noPreference, context),
|
|
2481
2365
|
};
|
|
@@ -2612,17 +2496,17 @@ var deserializeAws_restJson1ListStrategySummary = function (output, context) {
|
|
|
2612
2496
|
return retVal;
|
|
2613
2497
|
};
|
|
2614
2498
|
var deserializeAws_restJson1ManagementPreference = function (output, context) {
|
|
2615
|
-
if (output.awsManagedResources
|
|
2499
|
+
if (output.awsManagedResources != null) {
|
|
2616
2500
|
return {
|
|
2617
2501
|
awsManagedResources: deserializeAws_restJson1AwsManagedResources(output.awsManagedResources, context),
|
|
2618
2502
|
};
|
|
2619
2503
|
}
|
|
2620
|
-
if (output.noPreference
|
|
2504
|
+
if (output.noPreference != null) {
|
|
2621
2505
|
return {
|
|
2622
2506
|
noPreference: deserializeAws_restJson1NoManagementPreference(output.noPreference, context),
|
|
2623
2507
|
};
|
|
2624
2508
|
}
|
|
2625
|
-
if (output.selfManageResources
|
|
2509
|
+
if (output.selfManageResources != null) {
|
|
2626
2510
|
return {
|
|
2627
2511
|
selfManageResources: deserializeAws_restJson1SelfManageResources(output.selfManageResources, context),
|
|
2628
2512
|
};
|