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