@aws-sdk/client-migration-hub 3.310.0 → 3.315.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/protocols/Aws_json1_1.js +143 -548
- package/dist-es/protocols/Aws_json1_1.js +144 -549
- package/package.json +6 -6
|
@@ -6,172 +6,121 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
6
6
|
const MigrationHubServiceException_1 = require("../models/MigrationHubServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_AssociateCreatedArtifactCommand = async (input, context) => {
|
|
9
|
-
const headers =
|
|
10
|
-
"content-type": "application/x-amz-json-1.1",
|
|
11
|
-
"x-amz-target": "AWSMigrationHub.AssociateCreatedArtifact",
|
|
12
|
-
};
|
|
9
|
+
const headers = sharedHeaders("AssociateCreatedArtifact");
|
|
13
10
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
15
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
13
|
};
|
|
17
14
|
exports.se_AssociateCreatedArtifactCommand = se_AssociateCreatedArtifactCommand;
|
|
18
15
|
const se_AssociateDiscoveredResourceCommand = async (input, context) => {
|
|
19
|
-
const headers =
|
|
20
|
-
"content-type": "application/x-amz-json-1.1",
|
|
21
|
-
"x-amz-target": "AWSMigrationHub.AssociateDiscoveredResource",
|
|
22
|
-
};
|
|
16
|
+
const headers = sharedHeaders("AssociateDiscoveredResource");
|
|
23
17
|
let body;
|
|
24
|
-
body = JSON.stringify(
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
25
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
20
|
};
|
|
27
21
|
exports.se_AssociateDiscoveredResourceCommand = se_AssociateDiscoveredResourceCommand;
|
|
28
22
|
const se_CreateProgressUpdateStreamCommand = async (input, context) => {
|
|
29
|
-
const headers =
|
|
30
|
-
"content-type": "application/x-amz-json-1.1",
|
|
31
|
-
"x-amz-target": "AWSMigrationHub.CreateProgressUpdateStream",
|
|
32
|
-
};
|
|
23
|
+
const headers = sharedHeaders("CreateProgressUpdateStream");
|
|
33
24
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
27
|
};
|
|
37
28
|
exports.se_CreateProgressUpdateStreamCommand = se_CreateProgressUpdateStreamCommand;
|
|
38
29
|
const se_DeleteProgressUpdateStreamCommand = async (input, context) => {
|
|
39
|
-
const headers =
|
|
40
|
-
"content-type": "application/x-amz-json-1.1",
|
|
41
|
-
"x-amz-target": "AWSMigrationHub.DeleteProgressUpdateStream",
|
|
42
|
-
};
|
|
30
|
+
const headers = sharedHeaders("DeleteProgressUpdateStream");
|
|
43
31
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
45
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
34
|
};
|
|
47
35
|
exports.se_DeleteProgressUpdateStreamCommand = se_DeleteProgressUpdateStreamCommand;
|
|
48
36
|
const se_DescribeApplicationStateCommand = async (input, context) => {
|
|
49
|
-
const headers =
|
|
50
|
-
"content-type": "application/x-amz-json-1.1",
|
|
51
|
-
"x-amz-target": "AWSMigrationHub.DescribeApplicationState",
|
|
52
|
-
};
|
|
37
|
+
const headers = sharedHeaders("DescribeApplicationState");
|
|
53
38
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
41
|
};
|
|
57
42
|
exports.se_DescribeApplicationStateCommand = se_DescribeApplicationStateCommand;
|
|
58
43
|
const se_DescribeMigrationTaskCommand = async (input, context) => {
|
|
59
|
-
const headers =
|
|
60
|
-
"content-type": "application/x-amz-json-1.1",
|
|
61
|
-
"x-amz-target": "AWSMigrationHub.DescribeMigrationTask",
|
|
62
|
-
};
|
|
44
|
+
const headers = sharedHeaders("DescribeMigrationTask");
|
|
63
45
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
46
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
65
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
48
|
};
|
|
67
49
|
exports.se_DescribeMigrationTaskCommand = se_DescribeMigrationTaskCommand;
|
|
68
50
|
const se_DisassociateCreatedArtifactCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "AWSMigrationHub.DisassociateCreatedArtifact",
|
|
72
|
-
};
|
|
51
|
+
const headers = sharedHeaders("DisassociateCreatedArtifact");
|
|
73
52
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
53
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
75
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
55
|
};
|
|
77
56
|
exports.se_DisassociateCreatedArtifactCommand = se_DisassociateCreatedArtifactCommand;
|
|
78
57
|
const se_DisassociateDiscoveredResourceCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-amz-json-1.1",
|
|
81
|
-
"x-amz-target": "AWSMigrationHub.DisassociateDiscoveredResource",
|
|
82
|
-
};
|
|
58
|
+
const headers = sharedHeaders("DisassociateDiscoveredResource");
|
|
83
59
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
60
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
85
61
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
62
|
};
|
|
87
63
|
exports.se_DisassociateDiscoveredResourceCommand = se_DisassociateDiscoveredResourceCommand;
|
|
88
64
|
const se_ImportMigrationTaskCommand = async (input, context) => {
|
|
89
|
-
const headers =
|
|
90
|
-
"content-type": "application/x-amz-json-1.1",
|
|
91
|
-
"x-amz-target": "AWSMigrationHub.ImportMigrationTask",
|
|
92
|
-
};
|
|
65
|
+
const headers = sharedHeaders("ImportMigrationTask");
|
|
93
66
|
let body;
|
|
94
|
-
body = JSON.stringify(
|
|
67
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
95
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
69
|
};
|
|
97
70
|
exports.se_ImportMigrationTaskCommand = se_ImportMigrationTaskCommand;
|
|
98
71
|
const se_ListApplicationStatesCommand = async (input, context) => {
|
|
99
|
-
const headers =
|
|
100
|
-
"content-type": "application/x-amz-json-1.1",
|
|
101
|
-
"x-amz-target": "AWSMigrationHub.ListApplicationStates",
|
|
102
|
-
};
|
|
72
|
+
const headers = sharedHeaders("ListApplicationStates");
|
|
103
73
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
105
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
76
|
};
|
|
107
77
|
exports.se_ListApplicationStatesCommand = se_ListApplicationStatesCommand;
|
|
108
78
|
const se_ListCreatedArtifactsCommand = async (input, context) => {
|
|
109
|
-
const headers =
|
|
110
|
-
"content-type": "application/x-amz-json-1.1",
|
|
111
|
-
"x-amz-target": "AWSMigrationHub.ListCreatedArtifacts",
|
|
112
|
-
};
|
|
79
|
+
const headers = sharedHeaders("ListCreatedArtifacts");
|
|
113
80
|
let body;
|
|
114
|
-
body = JSON.stringify(
|
|
81
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
115
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
83
|
};
|
|
117
84
|
exports.se_ListCreatedArtifactsCommand = se_ListCreatedArtifactsCommand;
|
|
118
85
|
const se_ListDiscoveredResourcesCommand = async (input, context) => {
|
|
119
|
-
const headers =
|
|
120
|
-
"content-type": "application/x-amz-json-1.1",
|
|
121
|
-
"x-amz-target": "AWSMigrationHub.ListDiscoveredResources",
|
|
122
|
-
};
|
|
86
|
+
const headers = sharedHeaders("ListDiscoveredResources");
|
|
123
87
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
88
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
125
89
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
90
|
};
|
|
127
91
|
exports.se_ListDiscoveredResourcesCommand = se_ListDiscoveredResourcesCommand;
|
|
128
92
|
const se_ListMigrationTasksCommand = async (input, context) => {
|
|
129
|
-
const headers =
|
|
130
|
-
"content-type": "application/x-amz-json-1.1",
|
|
131
|
-
"x-amz-target": "AWSMigrationHub.ListMigrationTasks",
|
|
132
|
-
};
|
|
93
|
+
const headers = sharedHeaders("ListMigrationTasks");
|
|
133
94
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
135
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
97
|
};
|
|
137
98
|
exports.se_ListMigrationTasksCommand = se_ListMigrationTasksCommand;
|
|
138
99
|
const se_ListProgressUpdateStreamsCommand = async (input, context) => {
|
|
139
|
-
const headers =
|
|
140
|
-
"content-type": "application/x-amz-json-1.1",
|
|
141
|
-
"x-amz-target": "AWSMigrationHub.ListProgressUpdateStreams",
|
|
142
|
-
};
|
|
100
|
+
const headers = sharedHeaders("ListProgressUpdateStreams");
|
|
143
101
|
let body;
|
|
144
|
-
body = JSON.stringify(
|
|
102
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
145
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
104
|
};
|
|
147
105
|
exports.se_ListProgressUpdateStreamsCommand = se_ListProgressUpdateStreamsCommand;
|
|
148
106
|
const se_NotifyApplicationStateCommand = async (input, context) => {
|
|
149
|
-
const headers =
|
|
150
|
-
"content-type": "application/x-amz-json-1.1",
|
|
151
|
-
"x-amz-target": "AWSMigrationHub.NotifyApplicationState",
|
|
152
|
-
};
|
|
107
|
+
const headers = sharedHeaders("NotifyApplicationState");
|
|
153
108
|
let body;
|
|
154
109
|
body = JSON.stringify(se_NotifyApplicationStateRequest(input, context));
|
|
155
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
111
|
};
|
|
157
112
|
exports.se_NotifyApplicationStateCommand = se_NotifyApplicationStateCommand;
|
|
158
113
|
const se_NotifyMigrationTaskStateCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "AWSMigrationHub.NotifyMigrationTaskState",
|
|
162
|
-
};
|
|
114
|
+
const headers = sharedHeaders("NotifyMigrationTaskState");
|
|
163
115
|
let body;
|
|
164
116
|
body = JSON.stringify(se_NotifyMigrationTaskStateRequest(input, context));
|
|
165
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
118
|
};
|
|
167
119
|
exports.se_NotifyMigrationTaskStateCommand = se_NotifyMigrationTaskStateCommand;
|
|
168
120
|
const se_PutResourceAttributesCommand = async (input, context) => {
|
|
169
|
-
const headers =
|
|
170
|
-
"content-type": "application/x-amz-json-1.1",
|
|
171
|
-
"x-amz-target": "AWSMigrationHub.PutResourceAttributes",
|
|
172
|
-
};
|
|
121
|
+
const headers = sharedHeaders("PutResourceAttributes");
|
|
173
122
|
let body;
|
|
174
|
-
body = JSON.stringify(
|
|
123
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
175
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
125
|
};
|
|
177
126
|
exports.se_PutResourceAttributesCommand = se_PutResourceAttributesCommand;
|
|
@@ -181,12 +130,12 @@ const de_AssociateCreatedArtifactCommand = async (output, context) => {
|
|
|
181
130
|
}
|
|
182
131
|
const data = await parseBody(output.body, context);
|
|
183
132
|
let contents = {};
|
|
184
|
-
contents =
|
|
133
|
+
contents = (0, smithy_client_1._json)(data);
|
|
185
134
|
const response = {
|
|
186
135
|
$metadata: deserializeMetadata(output),
|
|
187
136
|
...contents,
|
|
188
137
|
};
|
|
189
|
-
return
|
|
138
|
+
return response;
|
|
190
139
|
};
|
|
191
140
|
exports.de_AssociateCreatedArtifactCommand = de_AssociateCreatedArtifactCommand;
|
|
192
141
|
const de_AssociateCreatedArtifactCommandError = async (output, context) => {
|
|
@@ -225,10 +174,9 @@ const de_AssociateCreatedArtifactCommandError = async (output, context) => {
|
|
|
225
174
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
226
175
|
default:
|
|
227
176
|
const parsedBody = parsedOutput.body;
|
|
228
|
-
|
|
177
|
+
return throwDefaultError({
|
|
229
178
|
output,
|
|
230
179
|
parsedBody,
|
|
231
|
-
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
232
180
|
errorCode,
|
|
233
181
|
});
|
|
234
182
|
}
|
|
@@ -239,12 +187,12 @@ const de_AssociateDiscoveredResourceCommand = async (output, context) => {
|
|
|
239
187
|
}
|
|
240
188
|
const data = await parseBody(output.body, context);
|
|
241
189
|
let contents = {};
|
|
242
|
-
contents =
|
|
190
|
+
contents = (0, smithy_client_1._json)(data);
|
|
243
191
|
const response = {
|
|
244
192
|
$metadata: deserializeMetadata(output),
|
|
245
193
|
...contents,
|
|
246
194
|
};
|
|
247
|
-
return
|
|
195
|
+
return response;
|
|
248
196
|
};
|
|
249
197
|
exports.de_AssociateDiscoveredResourceCommand = de_AssociateDiscoveredResourceCommand;
|
|
250
198
|
const de_AssociateDiscoveredResourceCommandError = async (output, context) => {
|
|
@@ -286,10 +234,9 @@ const de_AssociateDiscoveredResourceCommandError = async (output, context) => {
|
|
|
286
234
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
287
235
|
default:
|
|
288
236
|
const parsedBody = parsedOutput.body;
|
|
289
|
-
|
|
237
|
+
return throwDefaultError({
|
|
290
238
|
output,
|
|
291
239
|
parsedBody,
|
|
292
|
-
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
293
240
|
errorCode,
|
|
294
241
|
});
|
|
295
242
|
}
|
|
@@ -300,12 +247,12 @@ const de_CreateProgressUpdateStreamCommand = async (output, context) => {
|
|
|
300
247
|
}
|
|
301
248
|
const data = await parseBody(output.body, context);
|
|
302
249
|
let contents = {};
|
|
303
|
-
contents =
|
|
250
|
+
contents = (0, smithy_client_1._json)(data);
|
|
304
251
|
const response = {
|
|
305
252
|
$metadata: deserializeMetadata(output),
|
|
306
253
|
...contents,
|
|
307
254
|
};
|
|
308
|
-
return
|
|
255
|
+
return response;
|
|
309
256
|
};
|
|
310
257
|
exports.de_CreateProgressUpdateStreamCommand = de_CreateProgressUpdateStreamCommand;
|
|
311
258
|
const de_CreateProgressUpdateStreamCommandError = async (output, context) => {
|
|
@@ -341,10 +288,9 @@ const de_CreateProgressUpdateStreamCommandError = async (output, context) => {
|
|
|
341
288
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
342
289
|
default:
|
|
343
290
|
const parsedBody = parsedOutput.body;
|
|
344
|
-
|
|
291
|
+
return throwDefaultError({
|
|
345
292
|
output,
|
|
346
293
|
parsedBody,
|
|
347
|
-
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
348
294
|
errorCode,
|
|
349
295
|
});
|
|
350
296
|
}
|
|
@@ -355,12 +301,12 @@ const de_DeleteProgressUpdateStreamCommand = async (output, context) => {
|
|
|
355
301
|
}
|
|
356
302
|
const data = await parseBody(output.body, context);
|
|
357
303
|
let contents = {};
|
|
358
|
-
contents =
|
|
304
|
+
contents = (0, smithy_client_1._json)(data);
|
|
359
305
|
const response = {
|
|
360
306
|
$metadata: deserializeMetadata(output),
|
|
361
307
|
...contents,
|
|
362
308
|
};
|
|
363
|
-
return
|
|
309
|
+
return response;
|
|
364
310
|
};
|
|
365
311
|
exports.de_DeleteProgressUpdateStreamCommand = de_DeleteProgressUpdateStreamCommand;
|
|
366
312
|
const de_DeleteProgressUpdateStreamCommandError = async (output, context) => {
|
|
@@ -399,10 +345,9 @@ const de_DeleteProgressUpdateStreamCommandError = async (output, context) => {
|
|
|
399
345
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
400
346
|
default:
|
|
401
347
|
const parsedBody = parsedOutput.body;
|
|
402
|
-
|
|
348
|
+
return throwDefaultError({
|
|
403
349
|
output,
|
|
404
350
|
parsedBody,
|
|
405
|
-
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
406
351
|
errorCode,
|
|
407
352
|
});
|
|
408
353
|
}
|
|
@@ -418,7 +363,7 @@ const de_DescribeApplicationStateCommand = async (output, context) => {
|
|
|
418
363
|
$metadata: deserializeMetadata(output),
|
|
419
364
|
...contents,
|
|
420
365
|
};
|
|
421
|
-
return
|
|
366
|
+
return response;
|
|
422
367
|
};
|
|
423
368
|
exports.de_DescribeApplicationStateCommand = de_DescribeApplicationStateCommand;
|
|
424
369
|
const de_DescribeApplicationStateCommandError = async (output, context) => {
|
|
@@ -454,10 +399,9 @@ const de_DescribeApplicationStateCommandError = async (output, context) => {
|
|
|
454
399
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
455
400
|
default:
|
|
456
401
|
const parsedBody = parsedOutput.body;
|
|
457
|
-
|
|
402
|
+
return throwDefaultError({
|
|
458
403
|
output,
|
|
459
404
|
parsedBody,
|
|
460
|
-
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
461
405
|
errorCode,
|
|
462
406
|
});
|
|
463
407
|
}
|
|
@@ -473,7 +417,7 @@ const de_DescribeMigrationTaskCommand = async (output, context) => {
|
|
|
473
417
|
$metadata: deserializeMetadata(output),
|
|
474
418
|
...contents,
|
|
475
419
|
};
|
|
476
|
-
return
|
|
420
|
+
return response;
|
|
477
421
|
};
|
|
478
422
|
exports.de_DescribeMigrationTaskCommand = de_DescribeMigrationTaskCommand;
|
|
479
423
|
const de_DescribeMigrationTaskCommandError = async (output, context) => {
|
|
@@ -506,10 +450,9 @@ const de_DescribeMigrationTaskCommandError = async (output, context) => {
|
|
|
506
450
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
507
451
|
default:
|
|
508
452
|
const parsedBody = parsedOutput.body;
|
|
509
|
-
|
|
453
|
+
return throwDefaultError({
|
|
510
454
|
output,
|
|
511
455
|
parsedBody,
|
|
512
|
-
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
513
456
|
errorCode,
|
|
514
457
|
});
|
|
515
458
|
}
|
|
@@ -520,12 +463,12 @@ const de_DisassociateCreatedArtifactCommand = async (output, context) => {
|
|
|
520
463
|
}
|
|
521
464
|
const data = await parseBody(output.body, context);
|
|
522
465
|
let contents = {};
|
|
523
|
-
contents =
|
|
466
|
+
contents = (0, smithy_client_1._json)(data);
|
|
524
467
|
const response = {
|
|
525
468
|
$metadata: deserializeMetadata(output),
|
|
526
469
|
...contents,
|
|
527
470
|
};
|
|
528
|
-
return
|
|
471
|
+
return response;
|
|
529
472
|
};
|
|
530
473
|
exports.de_DisassociateCreatedArtifactCommand = de_DisassociateCreatedArtifactCommand;
|
|
531
474
|
const de_DisassociateCreatedArtifactCommandError = async (output, context) => {
|
|
@@ -564,10 +507,9 @@ const de_DisassociateCreatedArtifactCommandError = async (output, context) => {
|
|
|
564
507
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
565
508
|
default:
|
|
566
509
|
const parsedBody = parsedOutput.body;
|
|
567
|
-
|
|
510
|
+
return throwDefaultError({
|
|
568
511
|
output,
|
|
569
512
|
parsedBody,
|
|
570
|
-
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
571
513
|
errorCode,
|
|
572
514
|
});
|
|
573
515
|
}
|
|
@@ -578,12 +520,12 @@ const de_DisassociateDiscoveredResourceCommand = async (output, context) => {
|
|
|
578
520
|
}
|
|
579
521
|
const data = await parseBody(output.body, context);
|
|
580
522
|
let contents = {};
|
|
581
|
-
contents =
|
|
523
|
+
contents = (0, smithy_client_1._json)(data);
|
|
582
524
|
const response = {
|
|
583
525
|
$metadata: deserializeMetadata(output),
|
|
584
526
|
...contents,
|
|
585
527
|
};
|
|
586
|
-
return
|
|
528
|
+
return response;
|
|
587
529
|
};
|
|
588
530
|
exports.de_DisassociateDiscoveredResourceCommand = de_DisassociateDiscoveredResourceCommand;
|
|
589
531
|
const de_DisassociateDiscoveredResourceCommandError = async (output, context) => {
|
|
@@ -622,10 +564,9 @@ const de_DisassociateDiscoveredResourceCommandError = async (output, context) =>
|
|
|
622
564
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
623
565
|
default:
|
|
624
566
|
const parsedBody = parsedOutput.body;
|
|
625
|
-
|
|
567
|
+
return throwDefaultError({
|
|
626
568
|
output,
|
|
627
569
|
parsedBody,
|
|
628
|
-
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
629
570
|
errorCode,
|
|
630
571
|
});
|
|
631
572
|
}
|
|
@@ -636,12 +577,12 @@ const de_ImportMigrationTaskCommand = async (output, context) => {
|
|
|
636
577
|
}
|
|
637
578
|
const data = await parseBody(output.body, context);
|
|
638
579
|
let contents = {};
|
|
639
|
-
contents =
|
|
580
|
+
contents = (0, smithy_client_1._json)(data);
|
|
640
581
|
const response = {
|
|
641
582
|
$metadata: deserializeMetadata(output),
|
|
642
583
|
...contents,
|
|
643
584
|
};
|
|
644
|
-
return
|
|
585
|
+
return response;
|
|
645
586
|
};
|
|
646
587
|
exports.de_ImportMigrationTaskCommand = de_ImportMigrationTaskCommand;
|
|
647
588
|
const de_ImportMigrationTaskCommandError = async (output, context) => {
|
|
@@ -680,10 +621,9 @@ const de_ImportMigrationTaskCommandError = async (output, context) => {
|
|
|
680
621
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
681
622
|
default:
|
|
682
623
|
const parsedBody = parsedOutput.body;
|
|
683
|
-
|
|
624
|
+
return throwDefaultError({
|
|
684
625
|
output,
|
|
685
626
|
parsedBody,
|
|
686
|
-
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
687
627
|
errorCode,
|
|
688
628
|
});
|
|
689
629
|
}
|
|
@@ -699,7 +639,7 @@ const de_ListApplicationStatesCommand = async (output, context) => {
|
|
|
699
639
|
$metadata: deserializeMetadata(output),
|
|
700
640
|
...contents,
|
|
701
641
|
};
|
|
702
|
-
return
|
|
642
|
+
return response;
|
|
703
643
|
};
|
|
704
644
|
exports.de_ListApplicationStatesCommand = de_ListApplicationStatesCommand;
|
|
705
645
|
const de_ListApplicationStatesCommandError = async (output, context) => {
|
|
@@ -729,10 +669,9 @@ const de_ListApplicationStatesCommandError = async (output, context) => {
|
|
|
729
669
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
730
670
|
default:
|
|
731
671
|
const parsedBody = parsedOutput.body;
|
|
732
|
-
|
|
672
|
+
return throwDefaultError({
|
|
733
673
|
output,
|
|
734
674
|
parsedBody,
|
|
735
|
-
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
736
675
|
errorCode,
|
|
737
676
|
});
|
|
738
677
|
}
|
|
@@ -743,12 +682,12 @@ const de_ListCreatedArtifactsCommand = async (output, context) => {
|
|
|
743
682
|
}
|
|
744
683
|
const data = await parseBody(output.body, context);
|
|
745
684
|
let contents = {};
|
|
746
|
-
contents =
|
|
685
|
+
contents = (0, smithy_client_1._json)(data);
|
|
747
686
|
const response = {
|
|
748
687
|
$metadata: deserializeMetadata(output),
|
|
749
688
|
...contents,
|
|
750
689
|
};
|
|
751
|
-
return
|
|
690
|
+
return response;
|
|
752
691
|
};
|
|
753
692
|
exports.de_ListCreatedArtifactsCommand = de_ListCreatedArtifactsCommand;
|
|
754
693
|
const de_ListCreatedArtifactsCommandError = async (output, context) => {
|
|
@@ -781,10 +720,9 @@ const de_ListCreatedArtifactsCommandError = async (output, context) => {
|
|
|
781
720
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
782
721
|
default:
|
|
783
722
|
const parsedBody = parsedOutput.body;
|
|
784
|
-
|
|
723
|
+
return throwDefaultError({
|
|
785
724
|
output,
|
|
786
725
|
parsedBody,
|
|
787
|
-
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
788
726
|
errorCode,
|
|
789
727
|
});
|
|
790
728
|
}
|
|
@@ -795,12 +733,12 @@ const de_ListDiscoveredResourcesCommand = async (output, context) => {
|
|
|
795
733
|
}
|
|
796
734
|
const data = await parseBody(output.body, context);
|
|
797
735
|
let contents = {};
|
|
798
|
-
contents =
|
|
736
|
+
contents = (0, smithy_client_1._json)(data);
|
|
799
737
|
const response = {
|
|
800
738
|
$metadata: deserializeMetadata(output),
|
|
801
739
|
...contents,
|
|
802
740
|
};
|
|
803
|
-
return
|
|
741
|
+
return response;
|
|
804
742
|
};
|
|
805
743
|
exports.de_ListDiscoveredResourcesCommand = de_ListDiscoveredResourcesCommand;
|
|
806
744
|
const de_ListDiscoveredResourcesCommandError = async (output, context) => {
|
|
@@ -833,10 +771,9 @@ const de_ListDiscoveredResourcesCommandError = async (output, context) => {
|
|
|
833
771
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
834
772
|
default:
|
|
835
773
|
const parsedBody = parsedOutput.body;
|
|
836
|
-
|
|
774
|
+
return throwDefaultError({
|
|
837
775
|
output,
|
|
838
776
|
parsedBody,
|
|
839
|
-
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
840
777
|
errorCode,
|
|
841
778
|
});
|
|
842
779
|
}
|
|
@@ -852,7 +789,7 @@ const de_ListMigrationTasksCommand = async (output, context) => {
|
|
|
852
789
|
$metadata: deserializeMetadata(output),
|
|
853
790
|
...contents,
|
|
854
791
|
};
|
|
855
|
-
return
|
|
792
|
+
return response;
|
|
856
793
|
};
|
|
857
794
|
exports.de_ListMigrationTasksCommand = de_ListMigrationTasksCommand;
|
|
858
795
|
const de_ListMigrationTasksCommandError = async (output, context) => {
|
|
@@ -888,10 +825,9 @@ const de_ListMigrationTasksCommandError = async (output, context) => {
|
|
|
888
825
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
889
826
|
default:
|
|
890
827
|
const parsedBody = parsedOutput.body;
|
|
891
|
-
|
|
828
|
+
return throwDefaultError({
|
|
892
829
|
output,
|
|
893
830
|
parsedBody,
|
|
894
|
-
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
895
831
|
errorCode,
|
|
896
832
|
});
|
|
897
833
|
}
|
|
@@ -902,12 +838,12 @@ const de_ListProgressUpdateStreamsCommand = async (output, context) => {
|
|
|
902
838
|
}
|
|
903
839
|
const data = await parseBody(output.body, context);
|
|
904
840
|
let contents = {};
|
|
905
|
-
contents =
|
|
841
|
+
contents = (0, smithy_client_1._json)(data);
|
|
906
842
|
const response = {
|
|
907
843
|
$metadata: deserializeMetadata(output),
|
|
908
844
|
...contents,
|
|
909
845
|
};
|
|
910
|
-
return
|
|
846
|
+
return response;
|
|
911
847
|
};
|
|
912
848
|
exports.de_ListProgressUpdateStreamsCommand = de_ListProgressUpdateStreamsCommand;
|
|
913
849
|
const de_ListProgressUpdateStreamsCommandError = async (output, context) => {
|
|
@@ -937,10 +873,9 @@ const de_ListProgressUpdateStreamsCommandError = async (output, context) => {
|
|
|
937
873
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
938
874
|
default:
|
|
939
875
|
const parsedBody = parsedOutput.body;
|
|
940
|
-
|
|
876
|
+
return throwDefaultError({
|
|
941
877
|
output,
|
|
942
878
|
parsedBody,
|
|
943
|
-
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
944
879
|
errorCode,
|
|
945
880
|
});
|
|
946
881
|
}
|
|
@@ -951,12 +886,12 @@ const de_NotifyApplicationStateCommand = async (output, context) => {
|
|
|
951
886
|
}
|
|
952
887
|
const data = await parseBody(output.body, context);
|
|
953
888
|
let contents = {};
|
|
954
|
-
contents =
|
|
889
|
+
contents = (0, smithy_client_1._json)(data);
|
|
955
890
|
const response = {
|
|
956
891
|
$metadata: deserializeMetadata(output),
|
|
957
892
|
...contents,
|
|
958
893
|
};
|
|
959
|
-
return
|
|
894
|
+
return response;
|
|
960
895
|
};
|
|
961
896
|
exports.de_NotifyApplicationStateCommand = de_NotifyApplicationStateCommand;
|
|
962
897
|
const de_NotifyApplicationStateCommandError = async (output, context) => {
|
|
@@ -998,10 +933,9 @@ const de_NotifyApplicationStateCommandError = async (output, context) => {
|
|
|
998
933
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
999
934
|
default:
|
|
1000
935
|
const parsedBody = parsedOutput.body;
|
|
1001
|
-
|
|
936
|
+
return throwDefaultError({
|
|
1002
937
|
output,
|
|
1003
938
|
parsedBody,
|
|
1004
|
-
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
1005
939
|
errorCode,
|
|
1006
940
|
});
|
|
1007
941
|
}
|
|
@@ -1012,12 +946,12 @@ const de_NotifyMigrationTaskStateCommand = async (output, context) => {
|
|
|
1012
946
|
}
|
|
1013
947
|
const data = await parseBody(output.body, context);
|
|
1014
948
|
let contents = {};
|
|
1015
|
-
contents =
|
|
949
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1016
950
|
const response = {
|
|
1017
951
|
$metadata: deserializeMetadata(output),
|
|
1018
952
|
...contents,
|
|
1019
953
|
};
|
|
1020
|
-
return
|
|
954
|
+
return response;
|
|
1021
955
|
};
|
|
1022
956
|
exports.de_NotifyMigrationTaskStateCommand = de_NotifyMigrationTaskStateCommand;
|
|
1023
957
|
const de_NotifyMigrationTaskStateCommandError = async (output, context) => {
|
|
@@ -1056,10 +990,9 @@ const de_NotifyMigrationTaskStateCommandError = async (output, context) => {
|
|
|
1056
990
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
1057
991
|
default:
|
|
1058
992
|
const parsedBody = parsedOutput.body;
|
|
1059
|
-
|
|
993
|
+
return throwDefaultError({
|
|
1060
994
|
output,
|
|
1061
995
|
parsedBody,
|
|
1062
|
-
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
1063
996
|
errorCode,
|
|
1064
997
|
});
|
|
1065
998
|
}
|
|
@@ -1070,12 +1003,12 @@ const de_PutResourceAttributesCommand = async (output, context) => {
|
|
|
1070
1003
|
}
|
|
1071
1004
|
const data = await parseBody(output.body, context);
|
|
1072
1005
|
let contents = {};
|
|
1073
|
-
contents =
|
|
1006
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1074
1007
|
const response = {
|
|
1075
1008
|
$metadata: deserializeMetadata(output),
|
|
1076
1009
|
...contents,
|
|
1077
1010
|
};
|
|
1078
|
-
return
|
|
1011
|
+
return response;
|
|
1079
1012
|
};
|
|
1080
1013
|
exports.de_PutResourceAttributesCommand = de_PutResourceAttributesCommand;
|
|
1081
1014
|
const de_PutResourceAttributesCommandError = async (output, context) => {
|
|
@@ -1114,17 +1047,16 @@ const de_PutResourceAttributesCommandError = async (output, context) => {
|
|
|
1114
1047
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
1115
1048
|
default:
|
|
1116
1049
|
const parsedBody = parsedOutput.body;
|
|
1117
|
-
|
|
1050
|
+
return throwDefaultError({
|
|
1118
1051
|
output,
|
|
1119
1052
|
parsedBody,
|
|
1120
|
-
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
1121
1053
|
errorCode,
|
|
1122
1054
|
});
|
|
1123
1055
|
}
|
|
1124
1056
|
};
|
|
1125
1057
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1126
1058
|
const body = parsedOutput.body;
|
|
1127
|
-
const deserialized =
|
|
1059
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1128
1060
|
const exception = new models_0_1.AccessDeniedException({
|
|
1129
1061
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1130
1062
|
...deserialized,
|
|
@@ -1133,7 +1065,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1133
1065
|
};
|
|
1134
1066
|
const de_DryRunOperationRes = async (parsedOutput, context) => {
|
|
1135
1067
|
const body = parsedOutput.body;
|
|
1136
|
-
const deserialized =
|
|
1068
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1137
1069
|
const exception = new models_0_1.DryRunOperation({
|
|
1138
1070
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1139
1071
|
...deserialized,
|
|
@@ -1142,7 +1074,7 @@ const de_DryRunOperationRes = async (parsedOutput, context) => {
|
|
|
1142
1074
|
};
|
|
1143
1075
|
const de_HomeRegionNotSetExceptionRes = async (parsedOutput, context) => {
|
|
1144
1076
|
const body = parsedOutput.body;
|
|
1145
|
-
const deserialized =
|
|
1077
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1146
1078
|
const exception = new models_0_1.HomeRegionNotSetException({
|
|
1147
1079
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1148
1080
|
...deserialized,
|
|
@@ -1151,7 +1083,7 @@ const de_HomeRegionNotSetExceptionRes = async (parsedOutput, context) => {
|
|
|
1151
1083
|
};
|
|
1152
1084
|
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
1153
1085
|
const body = parsedOutput.body;
|
|
1154
|
-
const deserialized =
|
|
1086
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1155
1087
|
const exception = new models_0_1.InternalServerError({
|
|
1156
1088
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1157
1089
|
...deserialized,
|
|
@@ -1160,7 +1092,7 @@ const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
|
1160
1092
|
};
|
|
1161
1093
|
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
1162
1094
|
const body = parsedOutput.body;
|
|
1163
|
-
const deserialized =
|
|
1095
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1164
1096
|
const exception = new models_0_1.InvalidInputException({
|
|
1165
1097
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1166
1098
|
...deserialized,
|
|
@@ -1169,7 +1101,7 @@ const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
|
1169
1101
|
};
|
|
1170
1102
|
const de_PolicyErrorExceptionRes = async (parsedOutput, context) => {
|
|
1171
1103
|
const body = parsedOutput.body;
|
|
1172
|
-
const deserialized =
|
|
1104
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1173
1105
|
const exception = new models_0_1.PolicyErrorException({
|
|
1174
1106
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1175
1107
|
...deserialized,
|
|
@@ -1178,7 +1110,7 @@ const de_PolicyErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
1178
1110
|
};
|
|
1179
1111
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1180
1112
|
const body = parsedOutput.body;
|
|
1181
|
-
const deserialized =
|
|
1113
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1182
1114
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1183
1115
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1184
1116
|
...deserialized,
|
|
@@ -1187,7 +1119,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1187
1119
|
};
|
|
1188
1120
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1189
1121
|
const body = parsedOutput.body;
|
|
1190
|
-
const deserialized =
|
|
1122
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1191
1123
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
1192
1124
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1193
1125
|
...deserialized,
|
|
@@ -1196,7 +1128,7 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
1196
1128
|
};
|
|
1197
1129
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1198
1130
|
const body = parsedOutput.body;
|
|
1199
|
-
const deserialized =
|
|
1131
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1200
1132
|
const exception = new models_0_1.ThrottlingException({
|
|
1201
1133
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1202
1134
|
...deserialized,
|
|
@@ -1205,440 +1137,96 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1205
1137
|
};
|
|
1206
1138
|
const de_UnauthorizedOperationRes = async (parsedOutput, context) => {
|
|
1207
1139
|
const body = parsedOutput.body;
|
|
1208
|
-
const deserialized =
|
|
1140
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1209
1141
|
const exception = new models_0_1.UnauthorizedOperation({
|
|
1210
1142
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1211
1143
|
...deserialized,
|
|
1212
1144
|
});
|
|
1213
1145
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1214
1146
|
};
|
|
1215
|
-
const se_ApplicationIds = (input, context) => {
|
|
1216
|
-
return input
|
|
1217
|
-
.filter((e) => e != null)
|
|
1218
|
-
.map((entry) => {
|
|
1219
|
-
return entry;
|
|
1220
|
-
});
|
|
1221
|
-
};
|
|
1222
|
-
const se_AssociateCreatedArtifactRequest = (input, context) => {
|
|
1223
|
-
return {
|
|
1224
|
-
...(input.CreatedArtifact != null && { CreatedArtifact: se_CreatedArtifact(input.CreatedArtifact, context) }),
|
|
1225
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1226
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1227
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1228
|
-
};
|
|
1229
|
-
};
|
|
1230
|
-
const se_AssociateDiscoveredResourceRequest = (input, context) => {
|
|
1231
|
-
return {
|
|
1232
|
-
...(input.DiscoveredResource != null && {
|
|
1233
|
-
DiscoveredResource: se_DiscoveredResource(input.DiscoveredResource, context),
|
|
1234
|
-
}),
|
|
1235
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1236
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1237
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1238
|
-
};
|
|
1239
|
-
};
|
|
1240
|
-
const se_CreatedArtifact = (input, context) => {
|
|
1241
|
-
return {
|
|
1242
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1243
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1244
|
-
};
|
|
1245
|
-
};
|
|
1246
|
-
const se_CreateProgressUpdateStreamRequest = (input, context) => {
|
|
1247
|
-
return {
|
|
1248
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1249
|
-
...(input.ProgressUpdateStreamName != null && { ProgressUpdateStreamName: input.ProgressUpdateStreamName }),
|
|
1250
|
-
};
|
|
1251
|
-
};
|
|
1252
|
-
const se_DeleteProgressUpdateStreamRequest = (input, context) => {
|
|
1253
|
-
return {
|
|
1254
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1255
|
-
...(input.ProgressUpdateStreamName != null && { ProgressUpdateStreamName: input.ProgressUpdateStreamName }),
|
|
1256
|
-
};
|
|
1257
|
-
};
|
|
1258
|
-
const se_DescribeApplicationStateRequest = (input, context) => {
|
|
1259
|
-
return {
|
|
1260
|
-
...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
|
|
1261
|
-
};
|
|
1262
|
-
};
|
|
1263
|
-
const se_DescribeMigrationTaskRequest = (input, context) => {
|
|
1264
|
-
return {
|
|
1265
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1266
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1267
|
-
};
|
|
1268
|
-
};
|
|
1269
|
-
const se_DisassociateCreatedArtifactRequest = (input, context) => {
|
|
1270
|
-
return {
|
|
1271
|
-
...(input.CreatedArtifactName != null && { CreatedArtifactName: input.CreatedArtifactName }),
|
|
1272
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1273
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1274
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1275
|
-
};
|
|
1276
|
-
};
|
|
1277
|
-
const se_DisassociateDiscoveredResourceRequest = (input, context) => {
|
|
1278
|
-
return {
|
|
1279
|
-
...(input.ConfigurationId != null && { ConfigurationId: input.ConfigurationId }),
|
|
1280
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1281
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1282
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1283
|
-
};
|
|
1284
|
-
};
|
|
1285
|
-
const se_DiscoveredResource = (input, context) => {
|
|
1286
|
-
return {
|
|
1287
|
-
...(input.ConfigurationId != null && { ConfigurationId: input.ConfigurationId }),
|
|
1288
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1289
|
-
};
|
|
1290
|
-
};
|
|
1291
|
-
const se_ImportMigrationTaskRequest = (input, context) => {
|
|
1292
|
-
return {
|
|
1293
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1294
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1295
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1296
|
-
};
|
|
1297
|
-
};
|
|
1298
|
-
const se_ListApplicationStatesRequest = (input, context) => {
|
|
1299
|
-
return {
|
|
1300
|
-
...(input.ApplicationIds != null && { ApplicationIds: se_ApplicationIds(input.ApplicationIds, context) }),
|
|
1301
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1302
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1303
|
-
};
|
|
1304
|
-
};
|
|
1305
|
-
const se_ListCreatedArtifactsRequest = (input, context) => {
|
|
1306
|
-
return {
|
|
1307
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1308
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1309
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1310
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1311
|
-
};
|
|
1312
|
-
};
|
|
1313
|
-
const se_ListDiscoveredResourcesRequest = (input, context) => {
|
|
1314
|
-
return {
|
|
1315
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1316
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1317
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1318
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1319
|
-
};
|
|
1320
|
-
};
|
|
1321
|
-
const se_ListMigrationTasksRequest = (input, context) => {
|
|
1322
|
-
return {
|
|
1323
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1324
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1325
|
-
...(input.ResourceName != null && { ResourceName: input.ResourceName }),
|
|
1326
|
-
};
|
|
1327
|
-
};
|
|
1328
|
-
const se_ListProgressUpdateStreamsRequest = (input, context) => {
|
|
1329
|
-
return {
|
|
1330
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1331
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1332
|
-
};
|
|
1333
|
-
};
|
|
1334
1147
|
const se_NotifyApplicationStateRequest = (input, context) => {
|
|
1335
|
-
return {
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
};
|
|
1148
|
+
return (0, smithy_client_1.take)(input, {
|
|
1149
|
+
ApplicationId: [],
|
|
1150
|
+
DryRun: [],
|
|
1151
|
+
Status: [],
|
|
1152
|
+
UpdateDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1153
|
+
});
|
|
1341
1154
|
};
|
|
1342
1155
|
const se_NotifyMigrationTaskStateRequest = (input, context) => {
|
|
1343
|
-
return {
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
};
|
|
1351
|
-
};
|
|
1352
|
-
const se_PutResourceAttributesRequest = (input, context) => {
|
|
1353
|
-
return {
|
|
1354
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1355
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1356
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1357
|
-
...(input.ResourceAttributeList != null && {
|
|
1358
|
-
ResourceAttributeList: se_ResourceAttributeList(input.ResourceAttributeList, context),
|
|
1359
|
-
}),
|
|
1360
|
-
};
|
|
1361
|
-
};
|
|
1362
|
-
const se_ResourceAttribute = (input, context) => {
|
|
1363
|
-
return {
|
|
1364
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1365
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1366
|
-
};
|
|
1367
|
-
};
|
|
1368
|
-
const se_ResourceAttributeList = (input, context) => {
|
|
1369
|
-
return input
|
|
1370
|
-
.filter((e) => e != null)
|
|
1371
|
-
.map((entry) => {
|
|
1372
|
-
return se_ResourceAttribute(entry, context);
|
|
1156
|
+
return (0, smithy_client_1.take)(input, {
|
|
1157
|
+
DryRun: [],
|
|
1158
|
+
MigrationTaskName: [],
|
|
1159
|
+
NextUpdateSeconds: [],
|
|
1160
|
+
ProgressUpdateStream: [],
|
|
1161
|
+
Task: smithy_client_1._json,
|
|
1162
|
+
UpdateDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1373
1163
|
});
|
|
1374
1164
|
};
|
|
1375
|
-
const se_Task = (input, context) => {
|
|
1376
|
-
return {
|
|
1377
|
-
...(input.ProgressPercent != null && { ProgressPercent: input.ProgressPercent }),
|
|
1378
|
-
...(input.Status != null && { Status: input.Status }),
|
|
1379
|
-
...(input.StatusDetail != null && { StatusDetail: input.StatusDetail }),
|
|
1380
|
-
};
|
|
1381
|
-
};
|
|
1382
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1383
|
-
return {
|
|
1384
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1385
|
-
};
|
|
1386
|
-
};
|
|
1387
1165
|
const de_ApplicationState = (output, context) => {
|
|
1388
|
-
return {
|
|
1389
|
-
ApplicationId:
|
|
1390
|
-
ApplicationStatus:
|
|
1391
|
-
LastUpdatedTime:
|
|
1392
|
-
|
|
1393
|
-
: undefined,
|
|
1394
|
-
};
|
|
1166
|
+
return (0, smithy_client_1.take)(output, {
|
|
1167
|
+
ApplicationId: smithy_client_1.expectString,
|
|
1168
|
+
ApplicationStatus: smithy_client_1.expectString,
|
|
1169
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1170
|
+
});
|
|
1395
1171
|
};
|
|
1396
1172
|
const de_ApplicationStateList = (output, context) => {
|
|
1397
1173
|
const retVal = (output || [])
|
|
1398
1174
|
.filter((e) => e != null)
|
|
1399
1175
|
.map((entry) => {
|
|
1400
|
-
if (entry === null) {
|
|
1401
|
-
return null;
|
|
1402
|
-
}
|
|
1403
1176
|
return de_ApplicationState(entry, context);
|
|
1404
1177
|
});
|
|
1405
1178
|
return retVal;
|
|
1406
1179
|
};
|
|
1407
|
-
const de_AssociateCreatedArtifactResult = (output, context) => {
|
|
1408
|
-
return {};
|
|
1409
|
-
};
|
|
1410
|
-
const de_AssociateDiscoveredResourceResult = (output, context) => {
|
|
1411
|
-
return {};
|
|
1412
|
-
};
|
|
1413
|
-
const de_CreatedArtifact = (output, context) => {
|
|
1414
|
-
return {
|
|
1415
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1416
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1417
|
-
};
|
|
1418
|
-
};
|
|
1419
|
-
const de_CreatedArtifactList = (output, context) => {
|
|
1420
|
-
const retVal = (output || [])
|
|
1421
|
-
.filter((e) => e != null)
|
|
1422
|
-
.map((entry) => {
|
|
1423
|
-
if (entry === null) {
|
|
1424
|
-
return null;
|
|
1425
|
-
}
|
|
1426
|
-
return de_CreatedArtifact(entry, context);
|
|
1427
|
-
});
|
|
1428
|
-
return retVal;
|
|
1429
|
-
};
|
|
1430
|
-
const de_CreateProgressUpdateStreamResult = (output, context) => {
|
|
1431
|
-
return {};
|
|
1432
|
-
};
|
|
1433
|
-
const de_DeleteProgressUpdateStreamResult = (output, context) => {
|
|
1434
|
-
return {};
|
|
1435
|
-
};
|
|
1436
1180
|
const de_DescribeApplicationStateResult = (output, context) => {
|
|
1437
|
-
return {
|
|
1438
|
-
ApplicationStatus:
|
|
1439
|
-
LastUpdatedTime:
|
|
1440
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
|
|
1441
|
-
: undefined,
|
|
1442
|
-
};
|
|
1443
|
-
};
|
|
1444
|
-
const de_DescribeMigrationTaskResult = (output, context) => {
|
|
1445
|
-
return {
|
|
1446
|
-
MigrationTask: output.MigrationTask != null ? de_MigrationTask(output.MigrationTask, context) : undefined,
|
|
1447
|
-
};
|
|
1448
|
-
};
|
|
1449
|
-
const de_DisassociateCreatedArtifactResult = (output, context) => {
|
|
1450
|
-
return {};
|
|
1451
|
-
};
|
|
1452
|
-
const de_DisassociateDiscoveredResourceResult = (output, context) => {
|
|
1453
|
-
return {};
|
|
1454
|
-
};
|
|
1455
|
-
const de_DiscoveredResource = (output, context) => {
|
|
1456
|
-
return {
|
|
1457
|
-
ConfigurationId: (0, smithy_client_1.expectString)(output.ConfigurationId),
|
|
1458
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1459
|
-
};
|
|
1460
|
-
};
|
|
1461
|
-
const de_DiscoveredResourceList = (output, context) => {
|
|
1462
|
-
const retVal = (output || [])
|
|
1463
|
-
.filter((e) => e != null)
|
|
1464
|
-
.map((entry) => {
|
|
1465
|
-
if (entry === null) {
|
|
1466
|
-
return null;
|
|
1467
|
-
}
|
|
1468
|
-
return de_DiscoveredResource(entry, context);
|
|
1181
|
+
return (0, smithy_client_1.take)(output, {
|
|
1182
|
+
ApplicationStatus: smithy_client_1.expectString,
|
|
1183
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1469
1184
|
});
|
|
1470
|
-
return retVal;
|
|
1471
|
-
};
|
|
1472
|
-
const de_DryRunOperation = (output, context) => {
|
|
1473
|
-
return {
|
|
1474
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1475
|
-
};
|
|
1476
|
-
};
|
|
1477
|
-
const de_HomeRegionNotSetException = (output, context) => {
|
|
1478
|
-
return {
|
|
1479
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1480
|
-
};
|
|
1481
|
-
};
|
|
1482
|
-
const de_ImportMigrationTaskResult = (output, context) => {
|
|
1483
|
-
return {};
|
|
1484
|
-
};
|
|
1485
|
-
const de_InternalServerError = (output, context) => {
|
|
1486
|
-
return {
|
|
1487
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1488
|
-
};
|
|
1489
1185
|
};
|
|
1490
|
-
const
|
|
1491
|
-
return {
|
|
1492
|
-
|
|
1493
|
-
};
|
|
1494
|
-
};
|
|
1495
|
-
const de_LatestResourceAttributeList = (output, context) => {
|
|
1496
|
-
const retVal = (output || [])
|
|
1497
|
-
.filter((e) => e != null)
|
|
1498
|
-
.map((entry) => {
|
|
1499
|
-
if (entry === null) {
|
|
1500
|
-
return null;
|
|
1501
|
-
}
|
|
1502
|
-
return de_ResourceAttribute(entry, context);
|
|
1186
|
+
const de_DescribeMigrationTaskResult = (output, context) => {
|
|
1187
|
+
return (0, smithy_client_1.take)(output, {
|
|
1188
|
+
MigrationTask: (_) => de_MigrationTask(_, context),
|
|
1503
1189
|
});
|
|
1504
|
-
return retVal;
|
|
1505
1190
|
};
|
|
1506
1191
|
const de_ListApplicationStatesResult = (output, context) => {
|
|
1507
|
-
return {
|
|
1508
|
-
ApplicationStateList:
|
|
1509
|
-
NextToken:
|
|
1510
|
-
};
|
|
1511
|
-
};
|
|
1512
|
-
const de_ListCreatedArtifactsResult = (output, context) => {
|
|
1513
|
-
return {
|
|
1514
|
-
CreatedArtifactList: output.CreatedArtifactList != null ? de_CreatedArtifactList(output.CreatedArtifactList, context) : undefined,
|
|
1515
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1516
|
-
};
|
|
1517
|
-
};
|
|
1518
|
-
const de_ListDiscoveredResourcesResult = (output, context) => {
|
|
1519
|
-
return {
|
|
1520
|
-
DiscoveredResourceList: output.DiscoveredResourceList != null
|
|
1521
|
-
? de_DiscoveredResourceList(output.DiscoveredResourceList, context)
|
|
1522
|
-
: undefined,
|
|
1523
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1524
|
-
};
|
|
1192
|
+
return (0, smithy_client_1.take)(output, {
|
|
1193
|
+
ApplicationStateList: (_) => de_ApplicationStateList(_, context),
|
|
1194
|
+
NextToken: smithy_client_1.expectString,
|
|
1195
|
+
});
|
|
1525
1196
|
};
|
|
1526
1197
|
const de_ListMigrationTasksResult = (output, context) => {
|
|
1527
|
-
return {
|
|
1528
|
-
MigrationTaskSummaryList:
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1532
|
-
};
|
|
1533
|
-
};
|
|
1534
|
-
const de_ListProgressUpdateStreamsResult = (output, context) => {
|
|
1535
|
-
return {
|
|
1536
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1537
|
-
ProgressUpdateStreamSummaryList: output.ProgressUpdateStreamSummaryList != null
|
|
1538
|
-
? de_ProgressUpdateStreamSummaryList(output.ProgressUpdateStreamSummaryList, context)
|
|
1539
|
-
: undefined,
|
|
1540
|
-
};
|
|
1198
|
+
return (0, smithy_client_1.take)(output, {
|
|
1199
|
+
MigrationTaskSummaryList: (_) => de_MigrationTaskSummaryList(_, context),
|
|
1200
|
+
NextToken: smithy_client_1.expectString,
|
|
1201
|
+
});
|
|
1541
1202
|
};
|
|
1542
1203
|
const de_MigrationTask = (output, context) => {
|
|
1543
|
-
return {
|
|
1544
|
-
MigrationTaskName:
|
|
1545
|
-
ProgressUpdateStream:
|
|
1546
|
-
ResourceAttributeList:
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
UpdateDateTime: output.UpdateDateTime != null
|
|
1551
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdateDateTime)))
|
|
1552
|
-
: undefined,
|
|
1553
|
-
};
|
|
1204
|
+
return (0, smithy_client_1.take)(output, {
|
|
1205
|
+
MigrationTaskName: smithy_client_1.expectString,
|
|
1206
|
+
ProgressUpdateStream: smithy_client_1.expectString,
|
|
1207
|
+
ResourceAttributeList: smithy_client_1._json,
|
|
1208
|
+
Task: smithy_client_1._json,
|
|
1209
|
+
UpdateDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1210
|
+
});
|
|
1554
1211
|
};
|
|
1555
1212
|
const de_MigrationTaskSummary = (output, context) => {
|
|
1556
|
-
return {
|
|
1557
|
-
MigrationTaskName:
|
|
1558
|
-
ProgressPercent:
|
|
1559
|
-
ProgressUpdateStream:
|
|
1560
|
-
Status:
|
|
1561
|
-
StatusDetail:
|
|
1562
|
-
UpdateDateTime:
|
|
1563
|
-
|
|
1564
|
-
: undefined,
|
|
1565
|
-
};
|
|
1213
|
+
return (0, smithy_client_1.take)(output, {
|
|
1214
|
+
MigrationTaskName: smithy_client_1.expectString,
|
|
1215
|
+
ProgressPercent: smithy_client_1.expectInt32,
|
|
1216
|
+
ProgressUpdateStream: smithy_client_1.expectString,
|
|
1217
|
+
Status: smithy_client_1.expectString,
|
|
1218
|
+
StatusDetail: smithy_client_1.expectString,
|
|
1219
|
+
UpdateDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1220
|
+
});
|
|
1566
1221
|
};
|
|
1567
1222
|
const de_MigrationTaskSummaryList = (output, context) => {
|
|
1568
1223
|
const retVal = (output || [])
|
|
1569
1224
|
.filter((e) => e != null)
|
|
1570
1225
|
.map((entry) => {
|
|
1571
|
-
if (entry === null) {
|
|
1572
|
-
return null;
|
|
1573
|
-
}
|
|
1574
1226
|
return de_MigrationTaskSummary(entry, context);
|
|
1575
1227
|
});
|
|
1576
1228
|
return retVal;
|
|
1577
1229
|
};
|
|
1578
|
-
const de_NotifyApplicationStateResult = (output, context) => {
|
|
1579
|
-
return {};
|
|
1580
|
-
};
|
|
1581
|
-
const de_NotifyMigrationTaskStateResult = (output, context) => {
|
|
1582
|
-
return {};
|
|
1583
|
-
};
|
|
1584
|
-
const de_PolicyErrorException = (output, context) => {
|
|
1585
|
-
return {
|
|
1586
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1587
|
-
};
|
|
1588
|
-
};
|
|
1589
|
-
const de_ProgressUpdateStreamSummary = (output, context) => {
|
|
1590
|
-
return {
|
|
1591
|
-
ProgressUpdateStreamName: (0, smithy_client_1.expectString)(output.ProgressUpdateStreamName),
|
|
1592
|
-
};
|
|
1593
|
-
};
|
|
1594
|
-
const de_ProgressUpdateStreamSummaryList = (output, context) => {
|
|
1595
|
-
const retVal = (output || [])
|
|
1596
|
-
.filter((e) => e != null)
|
|
1597
|
-
.map((entry) => {
|
|
1598
|
-
if (entry === null) {
|
|
1599
|
-
return null;
|
|
1600
|
-
}
|
|
1601
|
-
return de_ProgressUpdateStreamSummary(entry, context);
|
|
1602
|
-
});
|
|
1603
|
-
return retVal;
|
|
1604
|
-
};
|
|
1605
|
-
const de_PutResourceAttributesResult = (output, context) => {
|
|
1606
|
-
return {};
|
|
1607
|
-
};
|
|
1608
|
-
const de_ResourceAttribute = (output, context) => {
|
|
1609
|
-
return {
|
|
1610
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1611
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1612
|
-
};
|
|
1613
|
-
};
|
|
1614
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1615
|
-
return {
|
|
1616
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1617
|
-
};
|
|
1618
|
-
};
|
|
1619
|
-
const de_ServiceUnavailableException = (output, context) => {
|
|
1620
|
-
return {
|
|
1621
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1622
|
-
};
|
|
1623
|
-
};
|
|
1624
|
-
const de_Task = (output, context) => {
|
|
1625
|
-
return {
|
|
1626
|
-
ProgressPercent: (0, smithy_client_1.expectInt32)(output.ProgressPercent),
|
|
1627
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1628
|
-
StatusDetail: (0, smithy_client_1.expectString)(output.StatusDetail),
|
|
1629
|
-
};
|
|
1630
|
-
};
|
|
1631
|
-
const de_ThrottlingException = (output, context) => {
|
|
1632
|
-
return {
|
|
1633
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1634
|
-
RetryAfterSeconds: (0, smithy_client_1.expectInt32)(output.RetryAfterSeconds),
|
|
1635
|
-
};
|
|
1636
|
-
};
|
|
1637
|
-
const de_UnauthorizedOperation = (output, context) => {
|
|
1638
|
-
return {
|
|
1639
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1640
|
-
};
|
|
1641
|
-
};
|
|
1642
1230
|
const deserializeMetadata = (output) => ({
|
|
1643
1231
|
httpStatusCode: output.statusCode,
|
|
1644
1232
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1652,6 +1240,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1652
1240
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1653
1241
|
};
|
|
1654
1242
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1243
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(MigrationHubServiceException_1.MigrationHubServiceException);
|
|
1655
1244
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1656
1245
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1657
1246
|
const contents = {
|
|
@@ -1670,6 +1259,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
1670
1259
|
}
|
|
1671
1260
|
return new protocol_http_1.HttpRequest(contents);
|
|
1672
1261
|
};
|
|
1262
|
+
function sharedHeaders(operation) {
|
|
1263
|
+
return {
|
|
1264
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1265
|
+
"x-amz-target": `AWSMigrationHub.${operation}`,
|
|
1266
|
+
};
|
|
1267
|
+
}
|
|
1673
1268
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1674
1269
|
if (encoded.length) {
|
|
1675
1270
|
return JSON.parse(encoded);
|