@aws-sdk/client-migrationhubstrategy 3.489.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/MigrationHubStrategy.js +1 -55
- package/dist-cjs/MigrationHubStrategyClient.js +1 -43
- package/dist-cjs/commands/GetApplicationComponentDetailsCommand.js +1 -28
- package/dist-cjs/commands/GetApplicationComponentStrategiesCommand.js +1 -28
- package/dist-cjs/commands/GetAssessmentCommand.js +1 -28
- package/dist-cjs/commands/GetImportFileTaskCommand.js +1 -28
- package/dist-cjs/commands/GetLatestAssessmentIdCommand.js +1 -28
- package/dist-cjs/commands/GetPortfolioPreferencesCommand.js +1 -28
- package/dist-cjs/commands/GetPortfolioSummaryCommand.js +1 -28
- package/dist-cjs/commands/GetRecommendationReportDetailsCommand.js +1 -28
- package/dist-cjs/commands/GetServerDetailsCommand.js +1 -28
- package/dist-cjs/commands/GetServerStrategiesCommand.js +1 -28
- package/dist-cjs/commands/ListAnalyzableServersCommand.js +1 -28
- package/dist-cjs/commands/ListApplicationComponentsCommand.js +1 -28
- package/dist-cjs/commands/ListCollectorsCommand.js +1 -28
- package/dist-cjs/commands/ListImportFileTaskCommand.js +1 -28
- package/dist-cjs/commands/ListServersCommand.js +1 -28
- package/dist-cjs/commands/PutPortfolioPreferencesCommand.js +1 -28
- package/dist-cjs/commands/StartAssessmentCommand.js +1 -28
- package/dist-cjs/commands/StartImportFileTaskCommand.js +1 -28
- package/dist-cjs/commands/StartRecommendationReportGenerationCommand.js +1 -28
- package/dist-cjs/commands/StopAssessmentCommand.js +1 -28
- package/dist-cjs/commands/UpdateApplicationComponentConfigCommand.js +1 -29
- package/dist-cjs/commands/UpdateServerConfigCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -25
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2793 -11
- package/dist-cjs/models/MigrationHubStrategyServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -479
- package/dist-cjs/pagination/GetServerDetailsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAnalyzableServersPaginator.js +1 -7
- package/dist-cjs/pagination/ListApplicationComponentsPaginator.js +1 -7
- package/dist-cjs/pagination/ListCollectorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListImportFileTaskPaginator.js +1 -7
- package/dist-cjs/pagination/ListServersPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -10
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1575
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,1575 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateServerConfigCommand = exports.de_UpdateApplicationComponentConfigCommand = exports.de_StopAssessmentCommand = exports.de_StartRecommendationReportGenerationCommand = exports.de_StartImportFileTaskCommand = exports.de_StartAssessmentCommand = exports.de_PutPortfolioPreferencesCommand = exports.de_ListServersCommand = exports.de_ListImportFileTaskCommand = exports.de_ListCollectorsCommand = exports.de_ListApplicationComponentsCommand = exports.de_ListAnalyzableServersCommand = exports.de_GetServerStrategiesCommand = exports.de_GetServerDetailsCommand = exports.de_GetRecommendationReportDetailsCommand = exports.de_GetPortfolioSummaryCommand = exports.de_GetPortfolioPreferencesCommand = exports.de_GetLatestAssessmentIdCommand = exports.de_GetImportFileTaskCommand = exports.de_GetAssessmentCommand = exports.de_GetApplicationComponentStrategiesCommand = exports.de_GetApplicationComponentDetailsCommand = exports.se_UpdateServerConfigCommand = exports.se_UpdateApplicationComponentConfigCommand = exports.se_StopAssessmentCommand = exports.se_StartRecommendationReportGenerationCommand = exports.se_StartImportFileTaskCommand = exports.se_StartAssessmentCommand = exports.se_PutPortfolioPreferencesCommand = exports.se_ListServersCommand = exports.se_ListImportFileTaskCommand = exports.se_ListCollectorsCommand = exports.se_ListApplicationComponentsCommand = exports.se_ListAnalyzableServersCommand = exports.se_GetServerStrategiesCommand = exports.se_GetServerDetailsCommand = exports.se_GetRecommendationReportDetailsCommand = exports.se_GetPortfolioSummaryCommand = exports.se_GetPortfolioPreferencesCommand = exports.se_GetLatestAssessmentIdCommand = exports.se_GetImportFileTaskCommand = exports.se_GetAssessmentCommand = exports.se_GetApplicationComponentStrategiesCommand = exports.se_GetApplicationComponentDetailsCommand = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const MigrationHubStrategyServiceException_1 = require("../models/MigrationHubStrategyServiceException");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const se_GetApplicationComponentDetailsCommand = async (input, context) => {
|
|
9
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
|
-
const headers = {};
|
|
11
|
-
b.bp("/get-applicationcomponent-details/{applicationComponentId}");
|
|
12
|
-
b.p("applicationComponentId", () => input.applicationComponentId, "{applicationComponentId}", false);
|
|
13
|
-
let body;
|
|
14
|
-
b.m("GET").h(headers).b(body);
|
|
15
|
-
return b.build();
|
|
16
|
-
};
|
|
17
|
-
exports.se_GetApplicationComponentDetailsCommand = se_GetApplicationComponentDetailsCommand;
|
|
18
|
-
const se_GetApplicationComponentStrategiesCommand = async (input, context) => {
|
|
19
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
20
|
-
const headers = {};
|
|
21
|
-
b.bp("/get-applicationcomponent-strategies/{applicationComponentId}");
|
|
22
|
-
b.p("applicationComponentId", () => input.applicationComponentId, "{applicationComponentId}", false);
|
|
23
|
-
let body;
|
|
24
|
-
b.m("GET").h(headers).b(body);
|
|
25
|
-
return b.build();
|
|
26
|
-
};
|
|
27
|
-
exports.se_GetApplicationComponentStrategiesCommand = se_GetApplicationComponentStrategiesCommand;
|
|
28
|
-
const se_GetAssessmentCommand = async (input, context) => {
|
|
29
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
30
|
-
const headers = {};
|
|
31
|
-
b.bp("/get-assessment/{id}");
|
|
32
|
-
b.p("id", () => input.id, "{id}", false);
|
|
33
|
-
let body;
|
|
34
|
-
b.m("GET").h(headers).b(body);
|
|
35
|
-
return b.build();
|
|
36
|
-
};
|
|
37
|
-
exports.se_GetAssessmentCommand = se_GetAssessmentCommand;
|
|
38
|
-
const se_GetImportFileTaskCommand = async (input, context) => {
|
|
39
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
40
|
-
const headers = {};
|
|
41
|
-
b.bp("/get-import-file-task/{id}");
|
|
42
|
-
b.p("id", () => input.id, "{id}", false);
|
|
43
|
-
let body;
|
|
44
|
-
b.m("GET").h(headers).b(body);
|
|
45
|
-
return b.build();
|
|
46
|
-
};
|
|
47
|
-
exports.se_GetImportFileTaskCommand = se_GetImportFileTaskCommand;
|
|
48
|
-
const se_GetLatestAssessmentIdCommand = async (input, context) => {
|
|
49
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
50
|
-
const headers = {
|
|
51
|
-
"content-type": "application/json",
|
|
52
|
-
};
|
|
53
|
-
b.bp("/get-latest-assessment-id");
|
|
54
|
-
let body;
|
|
55
|
-
body = "";
|
|
56
|
-
b.m("GET").h(headers).b(body);
|
|
57
|
-
return b.build();
|
|
58
|
-
};
|
|
59
|
-
exports.se_GetLatestAssessmentIdCommand = se_GetLatestAssessmentIdCommand;
|
|
60
|
-
const se_GetPortfolioPreferencesCommand = async (input, context) => {
|
|
61
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
62
|
-
const headers = {
|
|
63
|
-
"content-type": "application/json",
|
|
64
|
-
};
|
|
65
|
-
b.bp("/get-portfolio-preferences");
|
|
66
|
-
let body;
|
|
67
|
-
body = "";
|
|
68
|
-
b.m("GET").h(headers).b(body);
|
|
69
|
-
return b.build();
|
|
70
|
-
};
|
|
71
|
-
exports.se_GetPortfolioPreferencesCommand = se_GetPortfolioPreferencesCommand;
|
|
72
|
-
const se_GetPortfolioSummaryCommand = async (input, context) => {
|
|
73
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
74
|
-
const headers = {
|
|
75
|
-
"content-type": "application/json",
|
|
76
|
-
};
|
|
77
|
-
b.bp("/get-portfolio-summary");
|
|
78
|
-
let body;
|
|
79
|
-
body = "";
|
|
80
|
-
b.m("GET").h(headers).b(body);
|
|
81
|
-
return b.build();
|
|
82
|
-
};
|
|
83
|
-
exports.se_GetPortfolioSummaryCommand = se_GetPortfolioSummaryCommand;
|
|
84
|
-
const se_GetRecommendationReportDetailsCommand = async (input, context) => {
|
|
85
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
86
|
-
const headers = {};
|
|
87
|
-
b.bp("/get-recommendation-report-details/{id}");
|
|
88
|
-
b.p("id", () => input.id, "{id}", false);
|
|
89
|
-
let body;
|
|
90
|
-
b.m("GET").h(headers).b(body);
|
|
91
|
-
return b.build();
|
|
92
|
-
};
|
|
93
|
-
exports.se_GetRecommendationReportDetailsCommand = se_GetRecommendationReportDetailsCommand;
|
|
94
|
-
const se_GetServerDetailsCommand = async (input, context) => {
|
|
95
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
96
|
-
const headers = {};
|
|
97
|
-
b.bp("/get-server-details/{serverId}");
|
|
98
|
-
b.p("serverId", () => input.serverId, "{serverId}", false);
|
|
99
|
-
const query = (0, smithy_client_1.map)({
|
|
100
|
-
[_nT]: [, input[_nT]],
|
|
101
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
102
|
-
});
|
|
103
|
-
let body;
|
|
104
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
105
|
-
return b.build();
|
|
106
|
-
};
|
|
107
|
-
exports.se_GetServerDetailsCommand = se_GetServerDetailsCommand;
|
|
108
|
-
const se_GetServerStrategiesCommand = async (input, context) => {
|
|
109
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
110
|
-
const headers = {};
|
|
111
|
-
b.bp("/get-server-strategies/{serverId}");
|
|
112
|
-
b.p("serverId", () => input.serverId, "{serverId}", false);
|
|
113
|
-
let body;
|
|
114
|
-
b.m("GET").h(headers).b(body);
|
|
115
|
-
return b.build();
|
|
116
|
-
};
|
|
117
|
-
exports.se_GetServerStrategiesCommand = se_GetServerStrategiesCommand;
|
|
118
|
-
const se_ListAnalyzableServersCommand = async (input, context) => {
|
|
119
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
120
|
-
const headers = {
|
|
121
|
-
"content-type": "application/json",
|
|
122
|
-
};
|
|
123
|
-
b.bp("/list-analyzable-servers");
|
|
124
|
-
let body;
|
|
125
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
126
|
-
maxResults: [],
|
|
127
|
-
nextToken: [],
|
|
128
|
-
sort: [],
|
|
129
|
-
}));
|
|
130
|
-
b.m("POST").h(headers).b(body);
|
|
131
|
-
return b.build();
|
|
132
|
-
};
|
|
133
|
-
exports.se_ListAnalyzableServersCommand = se_ListAnalyzableServersCommand;
|
|
134
|
-
const se_ListApplicationComponentsCommand = async (input, context) => {
|
|
135
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
136
|
-
const headers = {
|
|
137
|
-
"content-type": "application/json",
|
|
138
|
-
};
|
|
139
|
-
b.bp("/list-applicationcomponents");
|
|
140
|
-
let body;
|
|
141
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
142
|
-
applicationComponentCriteria: [],
|
|
143
|
-
filterValue: [],
|
|
144
|
-
groupIdFilter: (_) => (0, smithy_client_1._json)(_),
|
|
145
|
-
maxResults: [],
|
|
146
|
-
nextToken: [],
|
|
147
|
-
sort: [],
|
|
148
|
-
}));
|
|
149
|
-
b.m("POST").h(headers).b(body);
|
|
150
|
-
return b.build();
|
|
151
|
-
};
|
|
152
|
-
exports.se_ListApplicationComponentsCommand = se_ListApplicationComponentsCommand;
|
|
153
|
-
const se_ListCollectorsCommand = async (input, context) => {
|
|
154
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
155
|
-
const headers = {};
|
|
156
|
-
b.bp("/list-collectors");
|
|
157
|
-
const query = (0, smithy_client_1.map)({
|
|
158
|
-
[_nT]: [, input[_nT]],
|
|
159
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
160
|
-
});
|
|
161
|
-
let body;
|
|
162
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
163
|
-
return b.build();
|
|
164
|
-
};
|
|
165
|
-
exports.se_ListCollectorsCommand = se_ListCollectorsCommand;
|
|
166
|
-
const se_ListImportFileTaskCommand = async (input, context) => {
|
|
167
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
168
|
-
const headers = {};
|
|
169
|
-
b.bp("/list-import-file-task");
|
|
170
|
-
const query = (0, smithy_client_1.map)({
|
|
171
|
-
[_nT]: [, input[_nT]],
|
|
172
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
173
|
-
});
|
|
174
|
-
let body;
|
|
175
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
176
|
-
return b.build();
|
|
177
|
-
};
|
|
178
|
-
exports.se_ListImportFileTaskCommand = se_ListImportFileTaskCommand;
|
|
179
|
-
const se_ListServersCommand = async (input, context) => {
|
|
180
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
181
|
-
const headers = {
|
|
182
|
-
"content-type": "application/json",
|
|
183
|
-
};
|
|
184
|
-
b.bp("/list-servers");
|
|
185
|
-
let body;
|
|
186
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
187
|
-
filterValue: [],
|
|
188
|
-
groupIdFilter: (_) => (0, smithy_client_1._json)(_),
|
|
189
|
-
maxResults: [],
|
|
190
|
-
nextToken: [],
|
|
191
|
-
serverCriteria: [],
|
|
192
|
-
sort: [],
|
|
193
|
-
}));
|
|
194
|
-
b.m("POST").h(headers).b(body);
|
|
195
|
-
return b.build();
|
|
196
|
-
};
|
|
197
|
-
exports.se_ListServersCommand = se_ListServersCommand;
|
|
198
|
-
const se_PutPortfolioPreferencesCommand = async (input, context) => {
|
|
199
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
200
|
-
const headers = {
|
|
201
|
-
"content-type": "application/json",
|
|
202
|
-
};
|
|
203
|
-
b.bp("/put-portfolio-preferences");
|
|
204
|
-
let body;
|
|
205
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
206
|
-
applicationMode: [],
|
|
207
|
-
applicationPreferences: (_) => (0, smithy_client_1._json)(_),
|
|
208
|
-
databasePreferences: (_) => (0, smithy_client_1._json)(_),
|
|
209
|
-
prioritizeBusinessGoals: (_) => (0, smithy_client_1._json)(_),
|
|
210
|
-
}));
|
|
211
|
-
b.m("POST").h(headers).b(body);
|
|
212
|
-
return b.build();
|
|
213
|
-
};
|
|
214
|
-
exports.se_PutPortfolioPreferencesCommand = se_PutPortfolioPreferencesCommand;
|
|
215
|
-
const se_StartAssessmentCommand = async (input, context) => {
|
|
216
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
217
|
-
const headers = {
|
|
218
|
-
"content-type": "application/json",
|
|
219
|
-
};
|
|
220
|
-
b.bp("/start-assessment");
|
|
221
|
-
let body;
|
|
222
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
223
|
-
assessmentDataSourceType: [],
|
|
224
|
-
assessmentTargets: (_) => (0, smithy_client_1._json)(_),
|
|
225
|
-
s3bucketForAnalysisData: [],
|
|
226
|
-
s3bucketForReportData: [],
|
|
227
|
-
}));
|
|
228
|
-
b.m("POST").h(headers).b(body);
|
|
229
|
-
return b.build();
|
|
230
|
-
};
|
|
231
|
-
exports.se_StartAssessmentCommand = se_StartAssessmentCommand;
|
|
232
|
-
const se_StartImportFileTaskCommand = async (input, context) => {
|
|
233
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
234
|
-
const headers = {
|
|
235
|
-
"content-type": "application/json",
|
|
236
|
-
};
|
|
237
|
-
b.bp("/start-import-file-task");
|
|
238
|
-
let body;
|
|
239
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
240
|
-
S3Bucket: [],
|
|
241
|
-
dataSourceType: [],
|
|
242
|
-
groupId: (_) => (0, smithy_client_1._json)(_),
|
|
243
|
-
name: [],
|
|
244
|
-
s3bucketForReportData: [],
|
|
245
|
-
s3key: [],
|
|
246
|
-
}));
|
|
247
|
-
b.m("POST").h(headers).b(body);
|
|
248
|
-
return b.build();
|
|
249
|
-
};
|
|
250
|
-
exports.se_StartImportFileTaskCommand = se_StartImportFileTaskCommand;
|
|
251
|
-
const se_StartRecommendationReportGenerationCommand = async (input, context) => {
|
|
252
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
253
|
-
const headers = {
|
|
254
|
-
"content-type": "application/json",
|
|
255
|
-
};
|
|
256
|
-
b.bp("/start-recommendation-report-generation");
|
|
257
|
-
let body;
|
|
258
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
259
|
-
groupIdFilter: (_) => (0, smithy_client_1._json)(_),
|
|
260
|
-
outputFormat: [],
|
|
261
|
-
}));
|
|
262
|
-
b.m("POST").h(headers).b(body);
|
|
263
|
-
return b.build();
|
|
264
|
-
};
|
|
265
|
-
exports.se_StartRecommendationReportGenerationCommand = se_StartRecommendationReportGenerationCommand;
|
|
266
|
-
const se_StopAssessmentCommand = async (input, context) => {
|
|
267
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
268
|
-
const headers = {
|
|
269
|
-
"content-type": "application/json",
|
|
270
|
-
};
|
|
271
|
-
b.bp("/stop-assessment");
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
274
|
-
assessmentId: [],
|
|
275
|
-
}));
|
|
276
|
-
b.m("POST").h(headers).b(body);
|
|
277
|
-
return b.build();
|
|
278
|
-
};
|
|
279
|
-
exports.se_StopAssessmentCommand = se_StopAssessmentCommand;
|
|
280
|
-
const se_UpdateApplicationComponentConfigCommand = async (input, context) => {
|
|
281
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
282
|
-
const headers = {
|
|
283
|
-
"content-type": "application/json",
|
|
284
|
-
};
|
|
285
|
-
b.bp("/update-applicationcomponent-config");
|
|
286
|
-
let body;
|
|
287
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
288
|
-
appType: [],
|
|
289
|
-
applicationComponentId: [],
|
|
290
|
-
configureOnly: [],
|
|
291
|
-
inclusionStatus: [],
|
|
292
|
-
secretsManagerKey: [],
|
|
293
|
-
sourceCodeList: (_) => (0, smithy_client_1._json)(_),
|
|
294
|
-
strategyOption: (_) => (0, smithy_client_1._json)(_),
|
|
295
|
-
}));
|
|
296
|
-
b.m("POST").h(headers).b(body);
|
|
297
|
-
return b.build();
|
|
298
|
-
};
|
|
299
|
-
exports.se_UpdateApplicationComponentConfigCommand = se_UpdateApplicationComponentConfigCommand;
|
|
300
|
-
const se_UpdateServerConfigCommand = async (input, context) => {
|
|
301
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
302
|
-
const headers = {
|
|
303
|
-
"content-type": "application/json",
|
|
304
|
-
};
|
|
305
|
-
b.bp("/update-server-config");
|
|
306
|
-
let body;
|
|
307
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
308
|
-
serverId: [],
|
|
309
|
-
strategyOption: (_) => (0, smithy_client_1._json)(_),
|
|
310
|
-
}));
|
|
311
|
-
b.m("POST").h(headers).b(body);
|
|
312
|
-
return b.build();
|
|
313
|
-
};
|
|
314
|
-
exports.se_UpdateServerConfigCommand = se_UpdateServerConfigCommand;
|
|
315
|
-
const de_GetApplicationComponentDetailsCommand = async (output, context) => {
|
|
316
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
317
|
-
return de_GetApplicationComponentDetailsCommandError(output, context);
|
|
318
|
-
}
|
|
319
|
-
const contents = (0, smithy_client_1.map)({
|
|
320
|
-
$metadata: deserializeMetadata(output),
|
|
321
|
-
});
|
|
322
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
323
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
324
|
-
applicationComponentDetail: (_) => de_ApplicationComponentDetail(_, context),
|
|
325
|
-
associatedApplications: smithy_client_1._json,
|
|
326
|
-
associatedServerIds: smithy_client_1._json,
|
|
327
|
-
moreApplicationResource: smithy_client_1.expectBoolean,
|
|
328
|
-
});
|
|
329
|
-
Object.assign(contents, doc);
|
|
330
|
-
return contents;
|
|
331
|
-
};
|
|
332
|
-
exports.de_GetApplicationComponentDetailsCommand = de_GetApplicationComponentDetailsCommand;
|
|
333
|
-
const de_GetApplicationComponentDetailsCommandError = async (output, context) => {
|
|
334
|
-
const parsedOutput = {
|
|
335
|
-
...output,
|
|
336
|
-
body: await parseErrorBody(output.body, context),
|
|
337
|
-
};
|
|
338
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
339
|
-
switch (errorCode) {
|
|
340
|
-
case "InternalServerException":
|
|
341
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
342
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
343
|
-
case "ResourceNotFoundException":
|
|
344
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
345
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
346
|
-
case "ThrottlingException":
|
|
347
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
348
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
349
|
-
default:
|
|
350
|
-
const parsedBody = parsedOutput.body;
|
|
351
|
-
return throwDefaultError({
|
|
352
|
-
output,
|
|
353
|
-
parsedBody,
|
|
354
|
-
errorCode,
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
|
-
const de_GetApplicationComponentStrategiesCommand = async (output, context) => {
|
|
359
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
360
|
-
return de_GetApplicationComponentStrategiesCommandError(output, context);
|
|
361
|
-
}
|
|
362
|
-
const contents = (0, smithy_client_1.map)({
|
|
363
|
-
$metadata: deserializeMetadata(output),
|
|
364
|
-
});
|
|
365
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
366
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
367
|
-
applicationComponentStrategies: smithy_client_1._json,
|
|
368
|
-
});
|
|
369
|
-
Object.assign(contents, doc);
|
|
370
|
-
return contents;
|
|
371
|
-
};
|
|
372
|
-
exports.de_GetApplicationComponentStrategiesCommand = de_GetApplicationComponentStrategiesCommand;
|
|
373
|
-
const de_GetApplicationComponentStrategiesCommandError = async (output, context) => {
|
|
374
|
-
const parsedOutput = {
|
|
375
|
-
...output,
|
|
376
|
-
body: await parseErrorBody(output.body, context),
|
|
377
|
-
};
|
|
378
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
379
|
-
switch (errorCode) {
|
|
380
|
-
case "InternalServerException":
|
|
381
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
382
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
383
|
-
case "ResourceNotFoundException":
|
|
384
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
385
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
386
|
-
case "ThrottlingException":
|
|
387
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
388
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
389
|
-
default:
|
|
390
|
-
const parsedBody = parsedOutput.body;
|
|
391
|
-
return throwDefaultError({
|
|
392
|
-
output,
|
|
393
|
-
parsedBody,
|
|
394
|
-
errorCode,
|
|
395
|
-
});
|
|
396
|
-
}
|
|
397
|
-
};
|
|
398
|
-
const de_GetAssessmentCommand = async (output, context) => {
|
|
399
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
400
|
-
return de_GetAssessmentCommandError(output, context);
|
|
401
|
-
}
|
|
402
|
-
const contents = (0, smithy_client_1.map)({
|
|
403
|
-
$metadata: deserializeMetadata(output),
|
|
404
|
-
});
|
|
405
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
406
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
407
|
-
assessmentTargets: smithy_client_1._json,
|
|
408
|
-
dataCollectionDetails: (_) => de_DataCollectionDetails(_, context),
|
|
409
|
-
id: smithy_client_1.expectString,
|
|
410
|
-
});
|
|
411
|
-
Object.assign(contents, doc);
|
|
412
|
-
return contents;
|
|
413
|
-
};
|
|
414
|
-
exports.de_GetAssessmentCommand = de_GetAssessmentCommand;
|
|
415
|
-
const de_GetAssessmentCommandError = async (output, context) => {
|
|
416
|
-
const parsedOutput = {
|
|
417
|
-
...output,
|
|
418
|
-
body: await parseErrorBody(output.body, context),
|
|
419
|
-
};
|
|
420
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
421
|
-
switch (errorCode) {
|
|
422
|
-
case "AccessDeniedException":
|
|
423
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
424
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
425
|
-
case "InternalServerException":
|
|
426
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
427
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
428
|
-
case "ResourceNotFoundException":
|
|
429
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
430
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
431
|
-
case "ThrottlingException":
|
|
432
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
433
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
434
|
-
default:
|
|
435
|
-
const parsedBody = parsedOutput.body;
|
|
436
|
-
return throwDefaultError({
|
|
437
|
-
output,
|
|
438
|
-
parsedBody,
|
|
439
|
-
errorCode,
|
|
440
|
-
});
|
|
441
|
-
}
|
|
442
|
-
};
|
|
443
|
-
const de_GetImportFileTaskCommand = async (output, context) => {
|
|
444
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
445
|
-
return de_GetImportFileTaskCommandError(output, context);
|
|
446
|
-
}
|
|
447
|
-
const contents = (0, smithy_client_1.map)({
|
|
448
|
-
$metadata: deserializeMetadata(output),
|
|
449
|
-
});
|
|
450
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
451
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
452
|
-
completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
453
|
-
id: smithy_client_1.expectString,
|
|
454
|
-
importName: smithy_client_1.expectString,
|
|
455
|
-
inputS3Bucket: smithy_client_1.expectString,
|
|
456
|
-
inputS3Key: smithy_client_1.expectString,
|
|
457
|
-
numberOfRecordsFailed: smithy_client_1.expectInt32,
|
|
458
|
-
numberOfRecordsSuccess: smithy_client_1.expectInt32,
|
|
459
|
-
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
460
|
-
status: smithy_client_1.expectString,
|
|
461
|
-
statusReportS3Bucket: smithy_client_1.expectString,
|
|
462
|
-
statusReportS3Key: smithy_client_1.expectString,
|
|
463
|
-
});
|
|
464
|
-
Object.assign(contents, doc);
|
|
465
|
-
return contents;
|
|
466
|
-
};
|
|
467
|
-
exports.de_GetImportFileTaskCommand = de_GetImportFileTaskCommand;
|
|
468
|
-
const de_GetImportFileTaskCommandError = async (output, context) => {
|
|
469
|
-
const parsedOutput = {
|
|
470
|
-
...output,
|
|
471
|
-
body: await parseErrorBody(output.body, context),
|
|
472
|
-
};
|
|
473
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
474
|
-
switch (errorCode) {
|
|
475
|
-
case "AccessDeniedException":
|
|
476
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
477
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
478
|
-
case "InternalServerException":
|
|
479
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
480
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
481
|
-
case "ResourceNotFoundException":
|
|
482
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
483
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
484
|
-
case "ThrottlingException":
|
|
485
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
486
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
487
|
-
case "ValidationException":
|
|
488
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
489
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
490
|
-
default:
|
|
491
|
-
const parsedBody = parsedOutput.body;
|
|
492
|
-
return throwDefaultError({
|
|
493
|
-
output,
|
|
494
|
-
parsedBody,
|
|
495
|
-
errorCode,
|
|
496
|
-
});
|
|
497
|
-
}
|
|
498
|
-
};
|
|
499
|
-
const de_GetLatestAssessmentIdCommand = async (output, context) => {
|
|
500
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
501
|
-
return de_GetLatestAssessmentIdCommandError(output, context);
|
|
502
|
-
}
|
|
503
|
-
const contents = (0, smithy_client_1.map)({
|
|
504
|
-
$metadata: deserializeMetadata(output),
|
|
505
|
-
});
|
|
506
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
507
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
508
|
-
id: smithy_client_1.expectString,
|
|
509
|
-
});
|
|
510
|
-
Object.assign(contents, doc);
|
|
511
|
-
return contents;
|
|
512
|
-
};
|
|
513
|
-
exports.de_GetLatestAssessmentIdCommand = de_GetLatestAssessmentIdCommand;
|
|
514
|
-
const de_GetLatestAssessmentIdCommandError = async (output, context) => {
|
|
515
|
-
const parsedOutput = {
|
|
516
|
-
...output,
|
|
517
|
-
body: await parseErrorBody(output.body, context),
|
|
518
|
-
};
|
|
519
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
520
|
-
switch (errorCode) {
|
|
521
|
-
case "AccessDeniedException":
|
|
522
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
523
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
524
|
-
case "DependencyException":
|
|
525
|
-
case "com.amazonaws.migrationhubstrategy#DependencyException":
|
|
526
|
-
throw await de_DependencyExceptionRes(parsedOutput, context);
|
|
527
|
-
case "InternalServerException":
|
|
528
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
529
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
530
|
-
case "ValidationException":
|
|
531
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
532
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
533
|
-
default:
|
|
534
|
-
const parsedBody = parsedOutput.body;
|
|
535
|
-
return throwDefaultError({
|
|
536
|
-
output,
|
|
537
|
-
parsedBody,
|
|
538
|
-
errorCode,
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
};
|
|
542
|
-
const de_GetPortfolioPreferencesCommand = async (output, context) => {
|
|
543
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
544
|
-
return de_GetPortfolioPreferencesCommandError(output, context);
|
|
545
|
-
}
|
|
546
|
-
const contents = (0, smithy_client_1.map)({
|
|
547
|
-
$metadata: deserializeMetadata(output),
|
|
548
|
-
});
|
|
549
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
550
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
551
|
-
applicationMode: smithy_client_1.expectString,
|
|
552
|
-
applicationPreferences: smithy_client_1._json,
|
|
553
|
-
databasePreferences: smithy_client_1._json,
|
|
554
|
-
prioritizeBusinessGoals: smithy_client_1._json,
|
|
555
|
-
});
|
|
556
|
-
Object.assign(contents, doc);
|
|
557
|
-
return contents;
|
|
558
|
-
};
|
|
559
|
-
exports.de_GetPortfolioPreferencesCommand = de_GetPortfolioPreferencesCommand;
|
|
560
|
-
const de_GetPortfolioPreferencesCommandError = async (output, context) => {
|
|
561
|
-
const parsedOutput = {
|
|
562
|
-
...output,
|
|
563
|
-
body: await parseErrorBody(output.body, context),
|
|
564
|
-
};
|
|
565
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
566
|
-
switch (errorCode) {
|
|
567
|
-
case "AccessDeniedException":
|
|
568
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
569
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
570
|
-
case "InternalServerException":
|
|
571
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
572
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
573
|
-
case "ResourceNotFoundException":
|
|
574
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
575
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
576
|
-
case "ThrottlingException":
|
|
577
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
578
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
579
|
-
default:
|
|
580
|
-
const parsedBody = parsedOutput.body;
|
|
581
|
-
return throwDefaultError({
|
|
582
|
-
output,
|
|
583
|
-
parsedBody,
|
|
584
|
-
errorCode,
|
|
585
|
-
});
|
|
586
|
-
}
|
|
587
|
-
};
|
|
588
|
-
const de_GetPortfolioSummaryCommand = async (output, context) => {
|
|
589
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
590
|
-
return de_GetPortfolioSummaryCommandError(output, context);
|
|
591
|
-
}
|
|
592
|
-
const contents = (0, smithy_client_1.map)({
|
|
593
|
-
$metadata: deserializeMetadata(output),
|
|
594
|
-
});
|
|
595
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
596
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
597
|
-
assessmentSummary: (_) => de_AssessmentSummary(_, context),
|
|
598
|
-
});
|
|
599
|
-
Object.assign(contents, doc);
|
|
600
|
-
return contents;
|
|
601
|
-
};
|
|
602
|
-
exports.de_GetPortfolioSummaryCommand = de_GetPortfolioSummaryCommand;
|
|
603
|
-
const de_GetPortfolioSummaryCommandError = async (output, context) => {
|
|
604
|
-
const parsedOutput = {
|
|
605
|
-
...output,
|
|
606
|
-
body: await parseErrorBody(output.body, context),
|
|
607
|
-
};
|
|
608
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
609
|
-
switch (errorCode) {
|
|
610
|
-
case "AccessDeniedException":
|
|
611
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
612
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
613
|
-
case "InternalServerException":
|
|
614
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
615
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
616
|
-
case "ThrottlingException":
|
|
617
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
618
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
619
|
-
default:
|
|
620
|
-
const parsedBody = parsedOutput.body;
|
|
621
|
-
return throwDefaultError({
|
|
622
|
-
output,
|
|
623
|
-
parsedBody,
|
|
624
|
-
errorCode,
|
|
625
|
-
});
|
|
626
|
-
}
|
|
627
|
-
};
|
|
628
|
-
const de_GetRecommendationReportDetailsCommand = async (output, context) => {
|
|
629
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
630
|
-
return de_GetRecommendationReportDetailsCommandError(output, context);
|
|
631
|
-
}
|
|
632
|
-
const contents = (0, smithy_client_1.map)({
|
|
633
|
-
$metadata: deserializeMetadata(output),
|
|
634
|
-
});
|
|
635
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
636
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
637
|
-
id: smithy_client_1.expectString,
|
|
638
|
-
recommendationReportDetails: (_) => de_RecommendationReportDetails(_, context),
|
|
639
|
-
});
|
|
640
|
-
Object.assign(contents, doc);
|
|
641
|
-
return contents;
|
|
642
|
-
};
|
|
643
|
-
exports.de_GetRecommendationReportDetailsCommand = de_GetRecommendationReportDetailsCommand;
|
|
644
|
-
const de_GetRecommendationReportDetailsCommandError = async (output, context) => {
|
|
645
|
-
const parsedOutput = {
|
|
646
|
-
...output,
|
|
647
|
-
body: await parseErrorBody(output.body, context),
|
|
648
|
-
};
|
|
649
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
650
|
-
switch (errorCode) {
|
|
651
|
-
case "AccessDeniedException":
|
|
652
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
653
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
654
|
-
case "InternalServerException":
|
|
655
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
656
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
657
|
-
case "ResourceNotFoundException":
|
|
658
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
659
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
660
|
-
case "ThrottlingException":
|
|
661
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
662
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
663
|
-
case "ValidationException":
|
|
664
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
665
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
666
|
-
default:
|
|
667
|
-
const parsedBody = parsedOutput.body;
|
|
668
|
-
return throwDefaultError({
|
|
669
|
-
output,
|
|
670
|
-
parsedBody,
|
|
671
|
-
errorCode,
|
|
672
|
-
});
|
|
673
|
-
}
|
|
674
|
-
};
|
|
675
|
-
const de_GetServerDetailsCommand = async (output, context) => {
|
|
676
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
677
|
-
return de_GetServerDetailsCommandError(output, context);
|
|
678
|
-
}
|
|
679
|
-
const contents = (0, smithy_client_1.map)({
|
|
680
|
-
$metadata: deserializeMetadata(output),
|
|
681
|
-
});
|
|
682
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
683
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
684
|
-
associatedApplications: smithy_client_1._json,
|
|
685
|
-
nextToken: smithy_client_1.expectString,
|
|
686
|
-
serverDetail: (_) => de_ServerDetail(_, context),
|
|
687
|
-
});
|
|
688
|
-
Object.assign(contents, doc);
|
|
689
|
-
return contents;
|
|
690
|
-
};
|
|
691
|
-
exports.de_GetServerDetailsCommand = de_GetServerDetailsCommand;
|
|
692
|
-
const de_GetServerDetailsCommandError = async (output, context) => {
|
|
693
|
-
const parsedOutput = {
|
|
694
|
-
...output,
|
|
695
|
-
body: await parseErrorBody(output.body, context),
|
|
696
|
-
};
|
|
697
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
698
|
-
switch (errorCode) {
|
|
699
|
-
case "AccessDeniedException":
|
|
700
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
701
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
702
|
-
case "InternalServerException":
|
|
703
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
704
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
705
|
-
case "ResourceNotFoundException":
|
|
706
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
707
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
708
|
-
case "ThrottlingException":
|
|
709
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
710
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
711
|
-
case "ValidationException":
|
|
712
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
713
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
714
|
-
default:
|
|
715
|
-
const parsedBody = parsedOutput.body;
|
|
716
|
-
return throwDefaultError({
|
|
717
|
-
output,
|
|
718
|
-
parsedBody,
|
|
719
|
-
errorCode,
|
|
720
|
-
});
|
|
721
|
-
}
|
|
722
|
-
};
|
|
723
|
-
const de_GetServerStrategiesCommand = async (output, context) => {
|
|
724
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
725
|
-
return de_GetServerStrategiesCommandError(output, context);
|
|
726
|
-
}
|
|
727
|
-
const contents = (0, smithy_client_1.map)({
|
|
728
|
-
$metadata: deserializeMetadata(output),
|
|
729
|
-
});
|
|
730
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
731
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
732
|
-
serverStrategies: smithy_client_1._json,
|
|
733
|
-
});
|
|
734
|
-
Object.assign(contents, doc);
|
|
735
|
-
return contents;
|
|
736
|
-
};
|
|
737
|
-
exports.de_GetServerStrategiesCommand = de_GetServerStrategiesCommand;
|
|
738
|
-
const de_GetServerStrategiesCommandError = async (output, context) => {
|
|
739
|
-
const parsedOutput = {
|
|
740
|
-
...output,
|
|
741
|
-
body: await parseErrorBody(output.body, context),
|
|
742
|
-
};
|
|
743
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
|
-
switch (errorCode) {
|
|
745
|
-
case "AccessDeniedException":
|
|
746
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
747
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
748
|
-
case "InternalServerException":
|
|
749
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
750
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
751
|
-
case "ResourceNotFoundException":
|
|
752
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
753
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
754
|
-
case "ThrottlingException":
|
|
755
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
756
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
757
|
-
case "ValidationException":
|
|
758
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
759
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
760
|
-
default:
|
|
761
|
-
const parsedBody = parsedOutput.body;
|
|
762
|
-
return throwDefaultError({
|
|
763
|
-
output,
|
|
764
|
-
parsedBody,
|
|
765
|
-
errorCode,
|
|
766
|
-
});
|
|
767
|
-
}
|
|
768
|
-
};
|
|
769
|
-
const de_ListAnalyzableServersCommand = async (output, context) => {
|
|
770
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
771
|
-
return de_ListAnalyzableServersCommandError(output, context);
|
|
772
|
-
}
|
|
773
|
-
const contents = (0, smithy_client_1.map)({
|
|
774
|
-
$metadata: deserializeMetadata(output),
|
|
775
|
-
});
|
|
776
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
777
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
778
|
-
analyzableServers: smithy_client_1._json,
|
|
779
|
-
nextToken: smithy_client_1.expectString,
|
|
780
|
-
});
|
|
781
|
-
Object.assign(contents, doc);
|
|
782
|
-
return contents;
|
|
783
|
-
};
|
|
784
|
-
exports.de_ListAnalyzableServersCommand = de_ListAnalyzableServersCommand;
|
|
785
|
-
const de_ListAnalyzableServersCommandError = async (output, context) => {
|
|
786
|
-
const parsedOutput = {
|
|
787
|
-
...output,
|
|
788
|
-
body: await parseErrorBody(output.body, context),
|
|
789
|
-
};
|
|
790
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
791
|
-
switch (errorCode) {
|
|
792
|
-
case "AccessDeniedException":
|
|
793
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
794
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
795
|
-
case "InternalServerException":
|
|
796
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
797
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
798
|
-
case "ThrottlingException":
|
|
799
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
800
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
801
|
-
case "ValidationException":
|
|
802
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
803
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
804
|
-
default:
|
|
805
|
-
const parsedBody = parsedOutput.body;
|
|
806
|
-
return throwDefaultError({
|
|
807
|
-
output,
|
|
808
|
-
parsedBody,
|
|
809
|
-
errorCode,
|
|
810
|
-
});
|
|
811
|
-
}
|
|
812
|
-
};
|
|
813
|
-
const de_ListApplicationComponentsCommand = async (output, context) => {
|
|
814
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
815
|
-
return de_ListApplicationComponentsCommandError(output, context);
|
|
816
|
-
}
|
|
817
|
-
const contents = (0, smithy_client_1.map)({
|
|
818
|
-
$metadata: deserializeMetadata(output),
|
|
819
|
-
});
|
|
820
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
821
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
822
|
-
applicationComponentInfos: (_) => de_ApplicationComponentDetails(_, context),
|
|
823
|
-
nextToken: smithy_client_1.expectString,
|
|
824
|
-
});
|
|
825
|
-
Object.assign(contents, doc);
|
|
826
|
-
return contents;
|
|
827
|
-
};
|
|
828
|
-
exports.de_ListApplicationComponentsCommand = de_ListApplicationComponentsCommand;
|
|
829
|
-
const de_ListApplicationComponentsCommandError = async (output, context) => {
|
|
830
|
-
const parsedOutput = {
|
|
831
|
-
...output,
|
|
832
|
-
body: await parseErrorBody(output.body, context),
|
|
833
|
-
};
|
|
834
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
835
|
-
switch (errorCode) {
|
|
836
|
-
case "AccessDeniedException":
|
|
837
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
838
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
839
|
-
case "InternalServerException":
|
|
840
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
841
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
842
|
-
case "ServiceLinkedRoleLockClientException":
|
|
843
|
-
case "com.amazonaws.migrationhubstrategy#ServiceLinkedRoleLockClientException":
|
|
844
|
-
throw await de_ServiceLinkedRoleLockClientExceptionRes(parsedOutput, context);
|
|
845
|
-
case "ValidationException":
|
|
846
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
847
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
848
|
-
default:
|
|
849
|
-
const parsedBody = parsedOutput.body;
|
|
850
|
-
return throwDefaultError({
|
|
851
|
-
output,
|
|
852
|
-
parsedBody,
|
|
853
|
-
errorCode,
|
|
854
|
-
});
|
|
855
|
-
}
|
|
856
|
-
};
|
|
857
|
-
const de_ListCollectorsCommand = async (output, context) => {
|
|
858
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
859
|
-
return de_ListCollectorsCommandError(output, context);
|
|
860
|
-
}
|
|
861
|
-
const contents = (0, smithy_client_1.map)({
|
|
862
|
-
$metadata: deserializeMetadata(output),
|
|
863
|
-
});
|
|
864
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
865
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
866
|
-
Collectors: smithy_client_1._json,
|
|
867
|
-
nextToken: smithy_client_1.expectString,
|
|
868
|
-
});
|
|
869
|
-
Object.assign(contents, doc);
|
|
870
|
-
return contents;
|
|
871
|
-
};
|
|
872
|
-
exports.de_ListCollectorsCommand = de_ListCollectorsCommand;
|
|
873
|
-
const de_ListCollectorsCommandError = async (output, context) => {
|
|
874
|
-
const parsedOutput = {
|
|
875
|
-
...output,
|
|
876
|
-
body: await parseErrorBody(output.body, context),
|
|
877
|
-
};
|
|
878
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
879
|
-
switch (errorCode) {
|
|
880
|
-
case "AccessDeniedException":
|
|
881
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
882
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
883
|
-
case "InternalServerException":
|
|
884
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
885
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
886
|
-
case "ThrottlingException":
|
|
887
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
888
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
889
|
-
case "ValidationException":
|
|
890
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
891
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
892
|
-
default:
|
|
893
|
-
const parsedBody = parsedOutput.body;
|
|
894
|
-
return throwDefaultError({
|
|
895
|
-
output,
|
|
896
|
-
parsedBody,
|
|
897
|
-
errorCode,
|
|
898
|
-
});
|
|
899
|
-
}
|
|
900
|
-
};
|
|
901
|
-
const de_ListImportFileTaskCommand = async (output, context) => {
|
|
902
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
903
|
-
return de_ListImportFileTaskCommandError(output, context);
|
|
904
|
-
}
|
|
905
|
-
const contents = (0, smithy_client_1.map)({
|
|
906
|
-
$metadata: deserializeMetadata(output),
|
|
907
|
-
});
|
|
908
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
909
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
910
|
-
nextToken: smithy_client_1.expectString,
|
|
911
|
-
taskInfos: (_) => de_ListImportFileTaskInformation(_, context),
|
|
912
|
-
});
|
|
913
|
-
Object.assign(contents, doc);
|
|
914
|
-
return contents;
|
|
915
|
-
};
|
|
916
|
-
exports.de_ListImportFileTaskCommand = de_ListImportFileTaskCommand;
|
|
917
|
-
const de_ListImportFileTaskCommandError = async (output, context) => {
|
|
918
|
-
const parsedOutput = {
|
|
919
|
-
...output,
|
|
920
|
-
body: await parseErrorBody(output.body, context),
|
|
921
|
-
};
|
|
922
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
923
|
-
switch (errorCode) {
|
|
924
|
-
case "AccessDeniedException":
|
|
925
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
926
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
927
|
-
case "InternalServerException":
|
|
928
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
929
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
930
|
-
case "ThrottlingException":
|
|
931
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
932
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
933
|
-
case "ValidationException":
|
|
934
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
935
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
936
|
-
default:
|
|
937
|
-
const parsedBody = parsedOutput.body;
|
|
938
|
-
return throwDefaultError({
|
|
939
|
-
output,
|
|
940
|
-
parsedBody,
|
|
941
|
-
errorCode,
|
|
942
|
-
});
|
|
943
|
-
}
|
|
944
|
-
};
|
|
945
|
-
const de_ListServersCommand = async (output, context) => {
|
|
946
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
947
|
-
return de_ListServersCommandError(output, context);
|
|
948
|
-
}
|
|
949
|
-
const contents = (0, smithy_client_1.map)({
|
|
950
|
-
$metadata: deserializeMetadata(output),
|
|
951
|
-
});
|
|
952
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
953
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
954
|
-
nextToken: smithy_client_1.expectString,
|
|
955
|
-
serverInfos: (_) => de_ServerDetails(_, context),
|
|
956
|
-
});
|
|
957
|
-
Object.assign(contents, doc);
|
|
958
|
-
return contents;
|
|
959
|
-
};
|
|
960
|
-
exports.de_ListServersCommand = de_ListServersCommand;
|
|
961
|
-
const de_ListServersCommandError = async (output, context) => {
|
|
962
|
-
const parsedOutput = {
|
|
963
|
-
...output,
|
|
964
|
-
body: await parseErrorBody(output.body, context),
|
|
965
|
-
};
|
|
966
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
967
|
-
switch (errorCode) {
|
|
968
|
-
case "AccessDeniedException":
|
|
969
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
970
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
971
|
-
case "InternalServerException":
|
|
972
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
973
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
974
|
-
case "ThrottlingException":
|
|
975
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
976
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
977
|
-
case "ValidationException":
|
|
978
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
979
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
980
|
-
default:
|
|
981
|
-
const parsedBody = parsedOutput.body;
|
|
982
|
-
return throwDefaultError({
|
|
983
|
-
output,
|
|
984
|
-
parsedBody,
|
|
985
|
-
errorCode,
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
};
|
|
989
|
-
const de_PutPortfolioPreferencesCommand = async (output, context) => {
|
|
990
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
991
|
-
return de_PutPortfolioPreferencesCommandError(output, context);
|
|
992
|
-
}
|
|
993
|
-
const contents = (0, smithy_client_1.map)({
|
|
994
|
-
$metadata: deserializeMetadata(output),
|
|
995
|
-
});
|
|
996
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
997
|
-
return contents;
|
|
998
|
-
};
|
|
999
|
-
exports.de_PutPortfolioPreferencesCommand = de_PutPortfolioPreferencesCommand;
|
|
1000
|
-
const de_PutPortfolioPreferencesCommandError = async (output, context) => {
|
|
1001
|
-
const parsedOutput = {
|
|
1002
|
-
...output,
|
|
1003
|
-
body: await parseErrorBody(output.body, context),
|
|
1004
|
-
};
|
|
1005
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
|
-
switch (errorCode) {
|
|
1007
|
-
case "AccessDeniedException":
|
|
1008
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1009
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "ConflictException":
|
|
1011
|
-
case "com.amazonaws.migrationhubstrategy#ConflictException":
|
|
1012
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "InternalServerException":
|
|
1014
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1015
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "ThrottlingException":
|
|
1017
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1018
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ValidationException":
|
|
1020
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1021
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1022
|
-
default:
|
|
1023
|
-
const parsedBody = parsedOutput.body;
|
|
1024
|
-
return throwDefaultError({
|
|
1025
|
-
output,
|
|
1026
|
-
parsedBody,
|
|
1027
|
-
errorCode,
|
|
1028
|
-
});
|
|
1029
|
-
}
|
|
1030
|
-
};
|
|
1031
|
-
const de_StartAssessmentCommand = async (output, context) => {
|
|
1032
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1033
|
-
return de_StartAssessmentCommandError(output, context);
|
|
1034
|
-
}
|
|
1035
|
-
const contents = (0, smithy_client_1.map)({
|
|
1036
|
-
$metadata: deserializeMetadata(output),
|
|
1037
|
-
});
|
|
1038
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1039
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1040
|
-
assessmentId: smithy_client_1.expectString,
|
|
1041
|
-
});
|
|
1042
|
-
Object.assign(contents, doc);
|
|
1043
|
-
return contents;
|
|
1044
|
-
};
|
|
1045
|
-
exports.de_StartAssessmentCommand = de_StartAssessmentCommand;
|
|
1046
|
-
const de_StartAssessmentCommandError = async (output, context) => {
|
|
1047
|
-
const parsedOutput = {
|
|
1048
|
-
...output,
|
|
1049
|
-
body: await parseErrorBody(output.body, context),
|
|
1050
|
-
};
|
|
1051
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1052
|
-
switch (errorCode) {
|
|
1053
|
-
case "AccessDeniedException":
|
|
1054
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1055
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "InternalServerException":
|
|
1057
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1058
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "ServiceQuotaExceededException":
|
|
1060
|
-
case "com.amazonaws.migrationhubstrategy#ServiceQuotaExceededException":
|
|
1061
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "ThrottlingException":
|
|
1063
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1064
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1065
|
-
default:
|
|
1066
|
-
const parsedBody = parsedOutput.body;
|
|
1067
|
-
return throwDefaultError({
|
|
1068
|
-
output,
|
|
1069
|
-
parsedBody,
|
|
1070
|
-
errorCode,
|
|
1071
|
-
});
|
|
1072
|
-
}
|
|
1073
|
-
};
|
|
1074
|
-
const de_StartImportFileTaskCommand = async (output, context) => {
|
|
1075
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1076
|
-
return de_StartImportFileTaskCommandError(output, context);
|
|
1077
|
-
}
|
|
1078
|
-
const contents = (0, smithy_client_1.map)({
|
|
1079
|
-
$metadata: deserializeMetadata(output),
|
|
1080
|
-
});
|
|
1081
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1082
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1083
|
-
id: smithy_client_1.expectString,
|
|
1084
|
-
});
|
|
1085
|
-
Object.assign(contents, doc);
|
|
1086
|
-
return contents;
|
|
1087
|
-
};
|
|
1088
|
-
exports.de_StartImportFileTaskCommand = de_StartImportFileTaskCommand;
|
|
1089
|
-
const de_StartImportFileTaskCommandError = async (output, context) => {
|
|
1090
|
-
const parsedOutput = {
|
|
1091
|
-
...output,
|
|
1092
|
-
body: await parseErrorBody(output.body, context),
|
|
1093
|
-
};
|
|
1094
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1095
|
-
switch (errorCode) {
|
|
1096
|
-
case "AccessDeniedException":
|
|
1097
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1098
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "InternalServerException":
|
|
1100
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1101
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "ServiceQuotaExceededException":
|
|
1103
|
-
case "com.amazonaws.migrationhubstrategy#ServiceQuotaExceededException":
|
|
1104
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "ThrottlingException":
|
|
1106
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1107
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "ValidationException":
|
|
1109
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1110
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1111
|
-
default:
|
|
1112
|
-
const parsedBody = parsedOutput.body;
|
|
1113
|
-
return throwDefaultError({
|
|
1114
|
-
output,
|
|
1115
|
-
parsedBody,
|
|
1116
|
-
errorCode,
|
|
1117
|
-
});
|
|
1118
|
-
}
|
|
1119
|
-
};
|
|
1120
|
-
const de_StartRecommendationReportGenerationCommand = async (output, context) => {
|
|
1121
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1122
|
-
return de_StartRecommendationReportGenerationCommandError(output, context);
|
|
1123
|
-
}
|
|
1124
|
-
const contents = (0, smithy_client_1.map)({
|
|
1125
|
-
$metadata: deserializeMetadata(output),
|
|
1126
|
-
});
|
|
1127
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1128
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1129
|
-
id: smithy_client_1.expectString,
|
|
1130
|
-
});
|
|
1131
|
-
Object.assign(contents, doc);
|
|
1132
|
-
return contents;
|
|
1133
|
-
};
|
|
1134
|
-
exports.de_StartRecommendationReportGenerationCommand = de_StartRecommendationReportGenerationCommand;
|
|
1135
|
-
const de_StartRecommendationReportGenerationCommandError = async (output, context) => {
|
|
1136
|
-
const parsedOutput = {
|
|
1137
|
-
...output,
|
|
1138
|
-
body: await parseErrorBody(output.body, context),
|
|
1139
|
-
};
|
|
1140
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1141
|
-
switch (errorCode) {
|
|
1142
|
-
case "AccessDeniedException":
|
|
1143
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1144
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1145
|
-
case "ConflictException":
|
|
1146
|
-
case "com.amazonaws.migrationhubstrategy#ConflictException":
|
|
1147
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1148
|
-
case "InternalServerException":
|
|
1149
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1150
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "ThrottlingException":
|
|
1152
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1153
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "ValidationException":
|
|
1155
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1156
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1157
|
-
default:
|
|
1158
|
-
const parsedBody = parsedOutput.body;
|
|
1159
|
-
return throwDefaultError({
|
|
1160
|
-
output,
|
|
1161
|
-
parsedBody,
|
|
1162
|
-
errorCode,
|
|
1163
|
-
});
|
|
1164
|
-
}
|
|
1165
|
-
};
|
|
1166
|
-
const de_StopAssessmentCommand = async (output, context) => {
|
|
1167
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1168
|
-
return de_StopAssessmentCommandError(output, context);
|
|
1169
|
-
}
|
|
1170
|
-
const contents = (0, smithy_client_1.map)({
|
|
1171
|
-
$metadata: deserializeMetadata(output),
|
|
1172
|
-
});
|
|
1173
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1174
|
-
return contents;
|
|
1175
|
-
};
|
|
1176
|
-
exports.de_StopAssessmentCommand = de_StopAssessmentCommand;
|
|
1177
|
-
const de_StopAssessmentCommandError = async (output, context) => {
|
|
1178
|
-
const parsedOutput = {
|
|
1179
|
-
...output,
|
|
1180
|
-
body: await parseErrorBody(output.body, context),
|
|
1181
|
-
};
|
|
1182
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1183
|
-
switch (errorCode) {
|
|
1184
|
-
case "AccessDeniedException":
|
|
1185
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1186
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "InternalServerException":
|
|
1188
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1189
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "ThrottlingException":
|
|
1191
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1192
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1193
|
-
case "ValidationException":
|
|
1194
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1195
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1196
|
-
default:
|
|
1197
|
-
const parsedBody = parsedOutput.body;
|
|
1198
|
-
return throwDefaultError({
|
|
1199
|
-
output,
|
|
1200
|
-
parsedBody,
|
|
1201
|
-
errorCode,
|
|
1202
|
-
});
|
|
1203
|
-
}
|
|
1204
|
-
};
|
|
1205
|
-
const de_UpdateApplicationComponentConfigCommand = async (output, context) => {
|
|
1206
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1207
|
-
return de_UpdateApplicationComponentConfigCommandError(output, context);
|
|
1208
|
-
}
|
|
1209
|
-
const contents = (0, smithy_client_1.map)({
|
|
1210
|
-
$metadata: deserializeMetadata(output),
|
|
1211
|
-
});
|
|
1212
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1213
|
-
return contents;
|
|
1214
|
-
};
|
|
1215
|
-
exports.de_UpdateApplicationComponentConfigCommand = de_UpdateApplicationComponentConfigCommand;
|
|
1216
|
-
const de_UpdateApplicationComponentConfigCommandError = async (output, context) => {
|
|
1217
|
-
const parsedOutput = {
|
|
1218
|
-
...output,
|
|
1219
|
-
body: await parseErrorBody(output.body, context),
|
|
1220
|
-
};
|
|
1221
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1222
|
-
switch (errorCode) {
|
|
1223
|
-
case "InternalServerException":
|
|
1224
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1225
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "ResourceNotFoundException":
|
|
1227
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
1228
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "ThrottlingException":
|
|
1230
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1231
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "ValidationException":
|
|
1233
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1234
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1235
|
-
default:
|
|
1236
|
-
const parsedBody = parsedOutput.body;
|
|
1237
|
-
return throwDefaultError({
|
|
1238
|
-
output,
|
|
1239
|
-
parsedBody,
|
|
1240
|
-
errorCode,
|
|
1241
|
-
});
|
|
1242
|
-
}
|
|
1243
|
-
};
|
|
1244
|
-
const de_UpdateServerConfigCommand = async (output, context) => {
|
|
1245
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1246
|
-
return de_UpdateServerConfigCommandError(output, context);
|
|
1247
|
-
}
|
|
1248
|
-
const contents = (0, smithy_client_1.map)({
|
|
1249
|
-
$metadata: deserializeMetadata(output),
|
|
1250
|
-
});
|
|
1251
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1252
|
-
return contents;
|
|
1253
|
-
};
|
|
1254
|
-
exports.de_UpdateServerConfigCommand = de_UpdateServerConfigCommand;
|
|
1255
|
-
const de_UpdateServerConfigCommandError = async (output, context) => {
|
|
1256
|
-
const parsedOutput = {
|
|
1257
|
-
...output,
|
|
1258
|
-
body: await parseErrorBody(output.body, context),
|
|
1259
|
-
};
|
|
1260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
|
-
switch (errorCode) {
|
|
1262
|
-
case "InternalServerException":
|
|
1263
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1264
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1265
|
-
case "ResourceNotFoundException":
|
|
1266
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
1267
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "ThrottlingException":
|
|
1269
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1270
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1271
|
-
case "ValidationException":
|
|
1272
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1273
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1274
|
-
default:
|
|
1275
|
-
const parsedBody = parsedOutput.body;
|
|
1276
|
-
return throwDefaultError({
|
|
1277
|
-
output,
|
|
1278
|
-
parsedBody,
|
|
1279
|
-
errorCode,
|
|
1280
|
-
});
|
|
1281
|
-
}
|
|
1282
|
-
};
|
|
1283
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException);
|
|
1284
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1285
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1286
|
-
const data = parsedOutput.body;
|
|
1287
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1288
|
-
message: smithy_client_1.expectString,
|
|
1289
|
-
});
|
|
1290
|
-
Object.assign(contents, doc);
|
|
1291
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1292
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1293
|
-
...contents,
|
|
1294
|
-
});
|
|
1295
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1296
|
-
};
|
|
1297
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1298
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1299
|
-
const data = parsedOutput.body;
|
|
1300
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1301
|
-
message: smithy_client_1.expectString,
|
|
1302
|
-
});
|
|
1303
|
-
Object.assign(contents, doc);
|
|
1304
|
-
const exception = new models_0_1.ConflictException({
|
|
1305
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1306
|
-
...contents,
|
|
1307
|
-
});
|
|
1308
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1309
|
-
};
|
|
1310
|
-
const de_DependencyExceptionRes = async (parsedOutput, context) => {
|
|
1311
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1312
|
-
const data = parsedOutput.body;
|
|
1313
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1314
|
-
message: smithy_client_1.expectString,
|
|
1315
|
-
});
|
|
1316
|
-
Object.assign(contents, doc);
|
|
1317
|
-
const exception = new models_0_1.DependencyException({
|
|
1318
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1319
|
-
...contents,
|
|
1320
|
-
});
|
|
1321
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1322
|
-
};
|
|
1323
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1324
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1325
|
-
const data = parsedOutput.body;
|
|
1326
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1327
|
-
message: smithy_client_1.expectString,
|
|
1328
|
-
});
|
|
1329
|
-
Object.assign(contents, doc);
|
|
1330
|
-
const exception = new models_0_1.InternalServerException({
|
|
1331
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1332
|
-
...contents,
|
|
1333
|
-
});
|
|
1334
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1335
|
-
};
|
|
1336
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1337
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1338
|
-
const data = parsedOutput.body;
|
|
1339
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1340
|
-
message: smithy_client_1.expectString,
|
|
1341
|
-
});
|
|
1342
|
-
Object.assign(contents, doc);
|
|
1343
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1344
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1345
|
-
...contents,
|
|
1346
|
-
});
|
|
1347
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1348
|
-
};
|
|
1349
|
-
const de_ServiceLinkedRoleLockClientExceptionRes = async (parsedOutput, context) => {
|
|
1350
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1351
|
-
const data = parsedOutput.body;
|
|
1352
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1353
|
-
message: smithy_client_1.expectString,
|
|
1354
|
-
});
|
|
1355
|
-
Object.assign(contents, doc);
|
|
1356
|
-
const exception = new models_0_1.ServiceLinkedRoleLockClientException({
|
|
1357
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1358
|
-
...contents,
|
|
1359
|
-
});
|
|
1360
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1361
|
-
};
|
|
1362
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1363
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1364
|
-
const data = parsedOutput.body;
|
|
1365
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1366
|
-
message: smithy_client_1.expectString,
|
|
1367
|
-
});
|
|
1368
|
-
Object.assign(contents, doc);
|
|
1369
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1370
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1371
|
-
...contents,
|
|
1372
|
-
});
|
|
1373
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1374
|
-
};
|
|
1375
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1376
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1377
|
-
const data = parsedOutput.body;
|
|
1378
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1379
|
-
message: smithy_client_1.expectString,
|
|
1380
|
-
});
|
|
1381
|
-
Object.assign(contents, doc);
|
|
1382
|
-
const exception = new models_0_1.ThrottlingException({
|
|
1383
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1384
|
-
...contents,
|
|
1385
|
-
});
|
|
1386
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1387
|
-
};
|
|
1388
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1389
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1390
|
-
const data = parsedOutput.body;
|
|
1391
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1392
|
-
message: smithy_client_1.expectString,
|
|
1393
|
-
});
|
|
1394
|
-
Object.assign(contents, doc);
|
|
1395
|
-
const exception = new models_0_1.ValidationException({
|
|
1396
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1397
|
-
...contents,
|
|
1398
|
-
});
|
|
1399
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1400
|
-
};
|
|
1401
|
-
const de_ApplicationComponentDetail = (output, context) => {
|
|
1402
|
-
return (0, smithy_client_1.take)(output, {
|
|
1403
|
-
analysisStatus: smithy_client_1.expectString,
|
|
1404
|
-
antipatternReportS3Object: smithy_client_1._json,
|
|
1405
|
-
antipatternReportStatus: smithy_client_1.expectString,
|
|
1406
|
-
antipatternReportStatusMessage: smithy_client_1.expectString,
|
|
1407
|
-
appType: smithy_client_1.expectString,
|
|
1408
|
-
appUnitError: smithy_client_1._json,
|
|
1409
|
-
associatedServerId: smithy_client_1.expectString,
|
|
1410
|
-
databaseConfigDetail: smithy_client_1._json,
|
|
1411
|
-
id: smithy_client_1.expectString,
|
|
1412
|
-
inclusionStatus: smithy_client_1.expectString,
|
|
1413
|
-
lastAnalyzedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1414
|
-
listAntipatternSeveritySummary: smithy_client_1._json,
|
|
1415
|
-
moreServerAssociationExists: smithy_client_1.expectBoolean,
|
|
1416
|
-
name: smithy_client_1.expectString,
|
|
1417
|
-
osDriver: smithy_client_1.expectString,
|
|
1418
|
-
osVersion: smithy_client_1.expectString,
|
|
1419
|
-
recommendationSet: smithy_client_1._json,
|
|
1420
|
-
resourceSubType: smithy_client_1.expectString,
|
|
1421
|
-
resultList: smithy_client_1._json,
|
|
1422
|
-
runtimeStatus: smithy_client_1.expectString,
|
|
1423
|
-
runtimeStatusMessage: smithy_client_1.expectString,
|
|
1424
|
-
sourceCodeRepositories: smithy_client_1._json,
|
|
1425
|
-
statusMessage: smithy_client_1.expectString,
|
|
1426
|
-
});
|
|
1427
|
-
};
|
|
1428
|
-
const de_ApplicationComponentDetails = (output, context) => {
|
|
1429
|
-
const retVal = (output || [])
|
|
1430
|
-
.filter((e) => e != null)
|
|
1431
|
-
.map((entry) => {
|
|
1432
|
-
return de_ApplicationComponentDetail(entry, context);
|
|
1433
|
-
});
|
|
1434
|
-
return retVal;
|
|
1435
|
-
};
|
|
1436
|
-
const de_AssessmentSummary = (output, context) => {
|
|
1437
|
-
return (0, smithy_client_1.take)(output, {
|
|
1438
|
-
antipatternReportS3Object: smithy_client_1._json,
|
|
1439
|
-
antipatternReportStatus: smithy_client_1.expectString,
|
|
1440
|
-
antipatternReportStatusMessage: smithy_client_1.expectString,
|
|
1441
|
-
lastAnalyzedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1442
|
-
listAntipatternSeveritySummary: smithy_client_1._json,
|
|
1443
|
-
listApplicationComponentStatusSummary: smithy_client_1._json,
|
|
1444
|
-
listApplicationComponentStrategySummary: smithy_client_1._json,
|
|
1445
|
-
listApplicationComponentSummary: smithy_client_1._json,
|
|
1446
|
-
listServerStatusSummary: smithy_client_1._json,
|
|
1447
|
-
listServerStrategySummary: smithy_client_1._json,
|
|
1448
|
-
listServerSummary: smithy_client_1._json,
|
|
1449
|
-
});
|
|
1450
|
-
};
|
|
1451
|
-
const de_DataCollectionDetails = (output, context) => {
|
|
1452
|
-
return (0, smithy_client_1.take)(output, {
|
|
1453
|
-
completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1454
|
-
failed: smithy_client_1.expectInt32,
|
|
1455
|
-
inProgress: smithy_client_1.expectInt32,
|
|
1456
|
-
servers: smithy_client_1.expectInt32,
|
|
1457
|
-
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1458
|
-
status: smithy_client_1.expectString,
|
|
1459
|
-
statusMessage: smithy_client_1.expectString,
|
|
1460
|
-
success: smithy_client_1.expectInt32,
|
|
1461
|
-
});
|
|
1462
|
-
};
|
|
1463
|
-
const de_ImportFileTaskInformation = (output, context) => {
|
|
1464
|
-
return (0, smithy_client_1.take)(output, {
|
|
1465
|
-
completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1466
|
-
id: smithy_client_1.expectString,
|
|
1467
|
-
importName: smithy_client_1.expectString,
|
|
1468
|
-
inputS3Bucket: smithy_client_1.expectString,
|
|
1469
|
-
inputS3Key: smithy_client_1.expectString,
|
|
1470
|
-
numberOfRecordsFailed: smithy_client_1.expectInt32,
|
|
1471
|
-
numberOfRecordsSuccess: smithy_client_1.expectInt32,
|
|
1472
|
-
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1473
|
-
status: smithy_client_1.expectString,
|
|
1474
|
-
statusReportS3Bucket: smithy_client_1.expectString,
|
|
1475
|
-
statusReportS3Key: smithy_client_1.expectString,
|
|
1476
|
-
});
|
|
1477
|
-
};
|
|
1478
|
-
const de_ListImportFileTaskInformation = (output, context) => {
|
|
1479
|
-
const retVal = (output || [])
|
|
1480
|
-
.filter((e) => e != null)
|
|
1481
|
-
.map((entry) => {
|
|
1482
|
-
return de_ImportFileTaskInformation(entry, context);
|
|
1483
|
-
});
|
|
1484
|
-
return retVal;
|
|
1485
|
-
};
|
|
1486
|
-
const de_RecommendationReportDetails = (output, context) => {
|
|
1487
|
-
return (0, smithy_client_1.take)(output, {
|
|
1488
|
-
completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1489
|
-
s3Bucket: smithy_client_1.expectString,
|
|
1490
|
-
s3Keys: smithy_client_1._json,
|
|
1491
|
-
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1492
|
-
status: smithy_client_1.expectString,
|
|
1493
|
-
statusMessage: smithy_client_1.expectString,
|
|
1494
|
-
});
|
|
1495
|
-
};
|
|
1496
|
-
const de_ServerDetail = (output, context) => {
|
|
1497
|
-
return (0, smithy_client_1.take)(output, {
|
|
1498
|
-
antipatternReportS3Object: smithy_client_1._json,
|
|
1499
|
-
antipatternReportStatus: smithy_client_1.expectString,
|
|
1500
|
-
antipatternReportStatusMessage: smithy_client_1.expectString,
|
|
1501
|
-
applicationComponentStrategySummary: smithy_client_1._json,
|
|
1502
|
-
dataCollectionStatus: smithy_client_1.expectString,
|
|
1503
|
-
id: smithy_client_1.expectString,
|
|
1504
|
-
lastAnalyzedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1505
|
-
listAntipatternSeveritySummary: smithy_client_1._json,
|
|
1506
|
-
name: smithy_client_1.expectString,
|
|
1507
|
-
recommendationSet: smithy_client_1._json,
|
|
1508
|
-
serverError: smithy_client_1._json,
|
|
1509
|
-
serverType: smithy_client_1.expectString,
|
|
1510
|
-
statusMessage: smithy_client_1.expectString,
|
|
1511
|
-
systemInfo: smithy_client_1._json,
|
|
1512
|
-
});
|
|
1513
|
-
};
|
|
1514
|
-
const de_ServerDetails = (output, context) => {
|
|
1515
|
-
const retVal = (output || [])
|
|
1516
|
-
.filter((e) => e != null)
|
|
1517
|
-
.map((entry) => {
|
|
1518
|
-
return de_ServerDetail(entry, context);
|
|
1519
|
-
});
|
|
1520
|
-
return retVal;
|
|
1521
|
-
};
|
|
1522
|
-
const deserializeMetadata = (output) => ({
|
|
1523
|
-
httpStatusCode: output.statusCode,
|
|
1524
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1525
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1526
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1527
|
-
});
|
|
1528
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1529
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1530
|
-
value !== null &&
|
|
1531
|
-
value !== "" &&
|
|
1532
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1533
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1534
|
-
const _mR = "maxResults";
|
|
1535
|
-
const _nT = "nextToken";
|
|
1536
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1537
|
-
if (encoded.length) {
|
|
1538
|
-
return JSON.parse(encoded);
|
|
1539
|
-
}
|
|
1540
|
-
return {};
|
|
1541
|
-
});
|
|
1542
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1543
|
-
const value = await parseBody(errorBody, context);
|
|
1544
|
-
value.message = value.message ?? value.Message;
|
|
1545
|
-
return value;
|
|
1546
|
-
};
|
|
1547
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1548
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1549
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1550
|
-
let cleanValue = rawValue;
|
|
1551
|
-
if (typeof cleanValue === "number") {
|
|
1552
|
-
cleanValue = cleanValue.toString();
|
|
1553
|
-
}
|
|
1554
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1555
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1556
|
-
}
|
|
1557
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1558
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1559
|
-
}
|
|
1560
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1561
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1562
|
-
}
|
|
1563
|
-
return cleanValue;
|
|
1564
|
-
};
|
|
1565
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1566
|
-
if (headerKey !== undefined) {
|
|
1567
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1568
|
-
}
|
|
1569
|
-
if (data.code !== undefined) {
|
|
1570
|
-
return sanitizeErrorCode(data.code);
|
|
1571
|
-
}
|
|
1572
|
-
if (data["__type"] !== undefined) {
|
|
1573
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1574
|
-
}
|
|
1575
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|