@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
|
@@ -1,89 +1,89 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { MigrationHubServiceException as __BaseException } from "../models/MigrationHubServiceException";
|
|
4
4
|
import { AccessDeniedException, DryRunOperation, HomeRegionNotSetException, InternalServerError, InvalidInputException, PolicyErrorException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, UnauthorizedOperation, } from "../models/models_0";
|
|
5
5
|
export const se_AssociateCreatedArtifactCommand = async (input, context) => {
|
|
6
6
|
const headers = sharedHeaders("AssociateCreatedArtifact");
|
|
7
7
|
let body;
|
|
8
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
9
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
10
10
|
};
|
|
11
11
|
export const se_AssociateDiscoveredResourceCommand = async (input, context) => {
|
|
12
12
|
const headers = sharedHeaders("AssociateDiscoveredResource");
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
17
|
export const se_CreateProgressUpdateStreamCommand = async (input, context) => {
|
|
18
18
|
const headers = sharedHeaders("CreateProgressUpdateStream");
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
23
|
export const se_DeleteProgressUpdateStreamCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("DeleteProgressUpdateStream");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
export const se_DescribeApplicationStateCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("DescribeApplicationState");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
export const se_DescribeMigrationTaskCommand = async (input, context) => {
|
|
36
36
|
const headers = sharedHeaders("DescribeMigrationTask");
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
41
|
export const se_DisassociateCreatedArtifactCommand = async (input, context) => {
|
|
42
42
|
const headers = sharedHeaders("DisassociateCreatedArtifact");
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
47
|
export const se_DisassociateDiscoveredResourceCommand = async (input, context) => {
|
|
48
48
|
const headers = sharedHeaders("DisassociateDiscoveredResource");
|
|
49
49
|
let body;
|
|
50
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
51
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
52
|
};
|
|
53
53
|
export const se_ImportMigrationTaskCommand = async (input, context) => {
|
|
54
54
|
const headers = sharedHeaders("ImportMigrationTask");
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
59
|
export const se_ListApplicationStatesCommand = async (input, context) => {
|
|
60
60
|
const headers = sharedHeaders("ListApplicationStates");
|
|
61
61
|
let body;
|
|
62
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
63
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
64
|
};
|
|
65
65
|
export const se_ListCreatedArtifactsCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("ListCreatedArtifacts");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
export const se_ListDiscoveredResourcesCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("ListDiscoveredResources");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
export const se_ListMigrationTasksCommand = async (input, context) => {
|
|
78
78
|
const headers = sharedHeaders("ListMigrationTasks");
|
|
79
79
|
let body;
|
|
80
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
81
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
82
82
|
};
|
|
83
83
|
export const se_ListProgressUpdateStreamsCommand = async (input, context) => {
|
|
84
84
|
const headers = sharedHeaders("ListProgressUpdateStreams");
|
|
85
85
|
let body;
|
|
86
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
87
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
88
|
};
|
|
89
89
|
export const se_NotifyApplicationStateCommand = async (input, context) => {
|
|
@@ -101,7 +101,7 @@ export const se_NotifyMigrationTaskStateCommand = async (input, context) => {
|
|
|
101
101
|
export const se_PutResourceAttributesCommand = async (input, context) => {
|
|
102
102
|
const headers = sharedHeaders("PutResourceAttributes");
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(_json(input));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
107
|
export const de_AssociateCreatedArtifactCommand = async (output, context) => {
|
|
@@ -110,12 +110,12 @@ export const de_AssociateCreatedArtifactCommand = async (output, context) => {
|
|
|
110
110
|
}
|
|
111
111
|
const data = await parseBody(output.body, context);
|
|
112
112
|
let contents = {};
|
|
113
|
-
contents =
|
|
113
|
+
contents = _json(data);
|
|
114
114
|
const response = {
|
|
115
115
|
$metadata: deserializeMetadata(output),
|
|
116
116
|
...contents,
|
|
117
117
|
};
|
|
118
|
-
return
|
|
118
|
+
return response;
|
|
119
119
|
};
|
|
120
120
|
const de_AssociateCreatedArtifactCommandError = async (output, context) => {
|
|
121
121
|
const parsedOutput = {
|
|
@@ -153,10 +153,9 @@ const de_AssociateCreatedArtifactCommandError = async (output, context) => {
|
|
|
153
153
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
154
154
|
default:
|
|
155
155
|
const parsedBody = parsedOutput.body;
|
|
156
|
-
throwDefaultError({
|
|
156
|
+
return throwDefaultError({
|
|
157
157
|
output,
|
|
158
158
|
parsedBody,
|
|
159
|
-
exceptionCtor: __BaseException,
|
|
160
159
|
errorCode,
|
|
161
160
|
});
|
|
162
161
|
}
|
|
@@ -167,12 +166,12 @@ export const de_AssociateDiscoveredResourceCommand = async (output, context) =>
|
|
|
167
166
|
}
|
|
168
167
|
const data = await parseBody(output.body, context);
|
|
169
168
|
let contents = {};
|
|
170
|
-
contents =
|
|
169
|
+
contents = _json(data);
|
|
171
170
|
const response = {
|
|
172
171
|
$metadata: deserializeMetadata(output),
|
|
173
172
|
...contents,
|
|
174
173
|
};
|
|
175
|
-
return
|
|
174
|
+
return response;
|
|
176
175
|
};
|
|
177
176
|
const de_AssociateDiscoveredResourceCommandError = async (output, context) => {
|
|
178
177
|
const parsedOutput = {
|
|
@@ -213,10 +212,9 @@ const de_AssociateDiscoveredResourceCommandError = async (output, context) => {
|
|
|
213
212
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
214
213
|
default:
|
|
215
214
|
const parsedBody = parsedOutput.body;
|
|
216
|
-
throwDefaultError({
|
|
215
|
+
return throwDefaultError({
|
|
217
216
|
output,
|
|
218
217
|
parsedBody,
|
|
219
|
-
exceptionCtor: __BaseException,
|
|
220
218
|
errorCode,
|
|
221
219
|
});
|
|
222
220
|
}
|
|
@@ -227,12 +225,12 @@ export const de_CreateProgressUpdateStreamCommand = async (output, context) => {
|
|
|
227
225
|
}
|
|
228
226
|
const data = await parseBody(output.body, context);
|
|
229
227
|
let contents = {};
|
|
230
|
-
contents =
|
|
228
|
+
contents = _json(data);
|
|
231
229
|
const response = {
|
|
232
230
|
$metadata: deserializeMetadata(output),
|
|
233
231
|
...contents,
|
|
234
232
|
};
|
|
235
|
-
return
|
|
233
|
+
return response;
|
|
236
234
|
};
|
|
237
235
|
const de_CreateProgressUpdateStreamCommandError = async (output, context) => {
|
|
238
236
|
const parsedOutput = {
|
|
@@ -267,10 +265,9 @@ const de_CreateProgressUpdateStreamCommandError = async (output, context) => {
|
|
|
267
265
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
268
266
|
default:
|
|
269
267
|
const parsedBody = parsedOutput.body;
|
|
270
|
-
throwDefaultError({
|
|
268
|
+
return throwDefaultError({
|
|
271
269
|
output,
|
|
272
270
|
parsedBody,
|
|
273
|
-
exceptionCtor: __BaseException,
|
|
274
271
|
errorCode,
|
|
275
272
|
});
|
|
276
273
|
}
|
|
@@ -281,12 +278,12 @@ export const de_DeleteProgressUpdateStreamCommand = async (output, context) => {
|
|
|
281
278
|
}
|
|
282
279
|
const data = await parseBody(output.body, context);
|
|
283
280
|
let contents = {};
|
|
284
|
-
contents =
|
|
281
|
+
contents = _json(data);
|
|
285
282
|
const response = {
|
|
286
283
|
$metadata: deserializeMetadata(output),
|
|
287
284
|
...contents,
|
|
288
285
|
};
|
|
289
|
-
return
|
|
286
|
+
return response;
|
|
290
287
|
};
|
|
291
288
|
const de_DeleteProgressUpdateStreamCommandError = async (output, context) => {
|
|
292
289
|
const parsedOutput = {
|
|
@@ -324,10 +321,9 @@ const de_DeleteProgressUpdateStreamCommandError = async (output, context) => {
|
|
|
324
321
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
325
322
|
default:
|
|
326
323
|
const parsedBody = parsedOutput.body;
|
|
327
|
-
throwDefaultError({
|
|
324
|
+
return throwDefaultError({
|
|
328
325
|
output,
|
|
329
326
|
parsedBody,
|
|
330
|
-
exceptionCtor: __BaseException,
|
|
331
327
|
errorCode,
|
|
332
328
|
});
|
|
333
329
|
}
|
|
@@ -343,7 +339,7 @@ export const de_DescribeApplicationStateCommand = async (output, context) => {
|
|
|
343
339
|
$metadata: deserializeMetadata(output),
|
|
344
340
|
...contents,
|
|
345
341
|
};
|
|
346
|
-
return
|
|
342
|
+
return response;
|
|
347
343
|
};
|
|
348
344
|
const de_DescribeApplicationStateCommandError = async (output, context) => {
|
|
349
345
|
const parsedOutput = {
|
|
@@ -378,10 +374,9 @@ const de_DescribeApplicationStateCommandError = async (output, context) => {
|
|
|
378
374
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
379
375
|
default:
|
|
380
376
|
const parsedBody = parsedOutput.body;
|
|
381
|
-
throwDefaultError({
|
|
377
|
+
return throwDefaultError({
|
|
382
378
|
output,
|
|
383
379
|
parsedBody,
|
|
384
|
-
exceptionCtor: __BaseException,
|
|
385
380
|
errorCode,
|
|
386
381
|
});
|
|
387
382
|
}
|
|
@@ -397,7 +392,7 @@ export const de_DescribeMigrationTaskCommand = async (output, context) => {
|
|
|
397
392
|
$metadata: deserializeMetadata(output),
|
|
398
393
|
...contents,
|
|
399
394
|
};
|
|
400
|
-
return
|
|
395
|
+
return response;
|
|
401
396
|
};
|
|
402
397
|
const de_DescribeMigrationTaskCommandError = async (output, context) => {
|
|
403
398
|
const parsedOutput = {
|
|
@@ -429,10 +424,9 @@ const de_DescribeMigrationTaskCommandError = async (output, context) => {
|
|
|
429
424
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
430
425
|
default:
|
|
431
426
|
const parsedBody = parsedOutput.body;
|
|
432
|
-
throwDefaultError({
|
|
427
|
+
return throwDefaultError({
|
|
433
428
|
output,
|
|
434
429
|
parsedBody,
|
|
435
|
-
exceptionCtor: __BaseException,
|
|
436
430
|
errorCode,
|
|
437
431
|
});
|
|
438
432
|
}
|
|
@@ -443,12 +437,12 @@ export const de_DisassociateCreatedArtifactCommand = async (output, context) =>
|
|
|
443
437
|
}
|
|
444
438
|
const data = await parseBody(output.body, context);
|
|
445
439
|
let contents = {};
|
|
446
|
-
contents =
|
|
440
|
+
contents = _json(data);
|
|
447
441
|
const response = {
|
|
448
442
|
$metadata: deserializeMetadata(output),
|
|
449
443
|
...contents,
|
|
450
444
|
};
|
|
451
|
-
return
|
|
445
|
+
return response;
|
|
452
446
|
};
|
|
453
447
|
const de_DisassociateCreatedArtifactCommandError = async (output, context) => {
|
|
454
448
|
const parsedOutput = {
|
|
@@ -486,10 +480,9 @@ const de_DisassociateCreatedArtifactCommandError = async (output, context) => {
|
|
|
486
480
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
487
481
|
default:
|
|
488
482
|
const parsedBody = parsedOutput.body;
|
|
489
|
-
throwDefaultError({
|
|
483
|
+
return throwDefaultError({
|
|
490
484
|
output,
|
|
491
485
|
parsedBody,
|
|
492
|
-
exceptionCtor: __BaseException,
|
|
493
486
|
errorCode,
|
|
494
487
|
});
|
|
495
488
|
}
|
|
@@ -500,12 +493,12 @@ export const de_DisassociateDiscoveredResourceCommand = async (output, context)
|
|
|
500
493
|
}
|
|
501
494
|
const data = await parseBody(output.body, context);
|
|
502
495
|
let contents = {};
|
|
503
|
-
contents =
|
|
496
|
+
contents = _json(data);
|
|
504
497
|
const response = {
|
|
505
498
|
$metadata: deserializeMetadata(output),
|
|
506
499
|
...contents,
|
|
507
500
|
};
|
|
508
|
-
return
|
|
501
|
+
return response;
|
|
509
502
|
};
|
|
510
503
|
const de_DisassociateDiscoveredResourceCommandError = async (output, context) => {
|
|
511
504
|
const parsedOutput = {
|
|
@@ -543,10 +536,9 @@ const de_DisassociateDiscoveredResourceCommandError = async (output, context) =>
|
|
|
543
536
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
544
537
|
default:
|
|
545
538
|
const parsedBody = parsedOutput.body;
|
|
546
|
-
throwDefaultError({
|
|
539
|
+
return throwDefaultError({
|
|
547
540
|
output,
|
|
548
541
|
parsedBody,
|
|
549
|
-
exceptionCtor: __BaseException,
|
|
550
542
|
errorCode,
|
|
551
543
|
});
|
|
552
544
|
}
|
|
@@ -557,12 +549,12 @@ export const de_ImportMigrationTaskCommand = async (output, context) => {
|
|
|
557
549
|
}
|
|
558
550
|
const data = await parseBody(output.body, context);
|
|
559
551
|
let contents = {};
|
|
560
|
-
contents =
|
|
552
|
+
contents = _json(data);
|
|
561
553
|
const response = {
|
|
562
554
|
$metadata: deserializeMetadata(output),
|
|
563
555
|
...contents,
|
|
564
556
|
};
|
|
565
|
-
return
|
|
557
|
+
return response;
|
|
566
558
|
};
|
|
567
559
|
const de_ImportMigrationTaskCommandError = async (output, context) => {
|
|
568
560
|
const parsedOutput = {
|
|
@@ -600,10 +592,9 @@ const de_ImportMigrationTaskCommandError = async (output, context) => {
|
|
|
600
592
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
601
593
|
default:
|
|
602
594
|
const parsedBody = parsedOutput.body;
|
|
603
|
-
throwDefaultError({
|
|
595
|
+
return throwDefaultError({
|
|
604
596
|
output,
|
|
605
597
|
parsedBody,
|
|
606
|
-
exceptionCtor: __BaseException,
|
|
607
598
|
errorCode,
|
|
608
599
|
});
|
|
609
600
|
}
|
|
@@ -619,7 +610,7 @@ export const de_ListApplicationStatesCommand = async (output, context) => {
|
|
|
619
610
|
$metadata: deserializeMetadata(output),
|
|
620
611
|
...contents,
|
|
621
612
|
};
|
|
622
|
-
return
|
|
613
|
+
return response;
|
|
623
614
|
};
|
|
624
615
|
const de_ListApplicationStatesCommandError = async (output, context) => {
|
|
625
616
|
const parsedOutput = {
|
|
@@ -648,10 +639,9 @@ const de_ListApplicationStatesCommandError = async (output, context) => {
|
|
|
648
639
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
649
640
|
default:
|
|
650
641
|
const parsedBody = parsedOutput.body;
|
|
651
|
-
throwDefaultError({
|
|
642
|
+
return throwDefaultError({
|
|
652
643
|
output,
|
|
653
644
|
parsedBody,
|
|
654
|
-
exceptionCtor: __BaseException,
|
|
655
645
|
errorCode,
|
|
656
646
|
});
|
|
657
647
|
}
|
|
@@ -662,12 +652,12 @@ export const de_ListCreatedArtifactsCommand = async (output, context) => {
|
|
|
662
652
|
}
|
|
663
653
|
const data = await parseBody(output.body, context);
|
|
664
654
|
let contents = {};
|
|
665
|
-
contents =
|
|
655
|
+
contents = _json(data);
|
|
666
656
|
const response = {
|
|
667
657
|
$metadata: deserializeMetadata(output),
|
|
668
658
|
...contents,
|
|
669
659
|
};
|
|
670
|
-
return
|
|
660
|
+
return response;
|
|
671
661
|
};
|
|
672
662
|
const de_ListCreatedArtifactsCommandError = async (output, context) => {
|
|
673
663
|
const parsedOutput = {
|
|
@@ -699,10 +689,9 @@ const de_ListCreatedArtifactsCommandError = async (output, context) => {
|
|
|
699
689
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
700
690
|
default:
|
|
701
691
|
const parsedBody = parsedOutput.body;
|
|
702
|
-
throwDefaultError({
|
|
692
|
+
return throwDefaultError({
|
|
703
693
|
output,
|
|
704
694
|
parsedBody,
|
|
705
|
-
exceptionCtor: __BaseException,
|
|
706
695
|
errorCode,
|
|
707
696
|
});
|
|
708
697
|
}
|
|
@@ -713,12 +702,12 @@ export const de_ListDiscoveredResourcesCommand = async (output, context) => {
|
|
|
713
702
|
}
|
|
714
703
|
const data = await parseBody(output.body, context);
|
|
715
704
|
let contents = {};
|
|
716
|
-
contents =
|
|
705
|
+
contents = _json(data);
|
|
717
706
|
const response = {
|
|
718
707
|
$metadata: deserializeMetadata(output),
|
|
719
708
|
...contents,
|
|
720
709
|
};
|
|
721
|
-
return
|
|
710
|
+
return response;
|
|
722
711
|
};
|
|
723
712
|
const de_ListDiscoveredResourcesCommandError = async (output, context) => {
|
|
724
713
|
const parsedOutput = {
|
|
@@ -750,10 +739,9 @@ const de_ListDiscoveredResourcesCommandError = async (output, context) => {
|
|
|
750
739
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
751
740
|
default:
|
|
752
741
|
const parsedBody = parsedOutput.body;
|
|
753
|
-
throwDefaultError({
|
|
742
|
+
return throwDefaultError({
|
|
754
743
|
output,
|
|
755
744
|
parsedBody,
|
|
756
|
-
exceptionCtor: __BaseException,
|
|
757
745
|
errorCode,
|
|
758
746
|
});
|
|
759
747
|
}
|
|
@@ -769,7 +757,7 @@ export const de_ListMigrationTasksCommand = async (output, context) => {
|
|
|
769
757
|
$metadata: deserializeMetadata(output),
|
|
770
758
|
...contents,
|
|
771
759
|
};
|
|
772
|
-
return
|
|
760
|
+
return response;
|
|
773
761
|
};
|
|
774
762
|
const de_ListMigrationTasksCommandError = async (output, context) => {
|
|
775
763
|
const parsedOutput = {
|
|
@@ -804,10 +792,9 @@ const de_ListMigrationTasksCommandError = async (output, context) => {
|
|
|
804
792
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
805
793
|
default:
|
|
806
794
|
const parsedBody = parsedOutput.body;
|
|
807
|
-
throwDefaultError({
|
|
795
|
+
return throwDefaultError({
|
|
808
796
|
output,
|
|
809
797
|
parsedBody,
|
|
810
|
-
exceptionCtor: __BaseException,
|
|
811
798
|
errorCode,
|
|
812
799
|
});
|
|
813
800
|
}
|
|
@@ -818,12 +805,12 @@ export const de_ListProgressUpdateStreamsCommand = async (output, context) => {
|
|
|
818
805
|
}
|
|
819
806
|
const data = await parseBody(output.body, context);
|
|
820
807
|
let contents = {};
|
|
821
|
-
contents =
|
|
808
|
+
contents = _json(data);
|
|
822
809
|
const response = {
|
|
823
810
|
$metadata: deserializeMetadata(output),
|
|
824
811
|
...contents,
|
|
825
812
|
};
|
|
826
|
-
return
|
|
813
|
+
return response;
|
|
827
814
|
};
|
|
828
815
|
const de_ListProgressUpdateStreamsCommandError = async (output, context) => {
|
|
829
816
|
const parsedOutput = {
|
|
@@ -852,10 +839,9 @@ const de_ListProgressUpdateStreamsCommandError = async (output, context) => {
|
|
|
852
839
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
853
840
|
default:
|
|
854
841
|
const parsedBody = parsedOutput.body;
|
|
855
|
-
throwDefaultError({
|
|
842
|
+
return throwDefaultError({
|
|
856
843
|
output,
|
|
857
844
|
parsedBody,
|
|
858
|
-
exceptionCtor: __BaseException,
|
|
859
845
|
errorCode,
|
|
860
846
|
});
|
|
861
847
|
}
|
|
@@ -866,12 +852,12 @@ export const de_NotifyApplicationStateCommand = async (output, context) => {
|
|
|
866
852
|
}
|
|
867
853
|
const data = await parseBody(output.body, context);
|
|
868
854
|
let contents = {};
|
|
869
|
-
contents =
|
|
855
|
+
contents = _json(data);
|
|
870
856
|
const response = {
|
|
871
857
|
$metadata: deserializeMetadata(output),
|
|
872
858
|
...contents,
|
|
873
859
|
};
|
|
874
|
-
return
|
|
860
|
+
return response;
|
|
875
861
|
};
|
|
876
862
|
const de_NotifyApplicationStateCommandError = async (output, context) => {
|
|
877
863
|
const parsedOutput = {
|
|
@@ -912,10 +898,9 @@ const de_NotifyApplicationStateCommandError = async (output, context) => {
|
|
|
912
898
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
913
899
|
default:
|
|
914
900
|
const parsedBody = parsedOutput.body;
|
|
915
|
-
throwDefaultError({
|
|
901
|
+
return throwDefaultError({
|
|
916
902
|
output,
|
|
917
903
|
parsedBody,
|
|
918
|
-
exceptionCtor: __BaseException,
|
|
919
904
|
errorCode,
|
|
920
905
|
});
|
|
921
906
|
}
|
|
@@ -926,12 +911,12 @@ export const de_NotifyMigrationTaskStateCommand = async (output, context) => {
|
|
|
926
911
|
}
|
|
927
912
|
const data = await parseBody(output.body, context);
|
|
928
913
|
let contents = {};
|
|
929
|
-
contents =
|
|
914
|
+
contents = _json(data);
|
|
930
915
|
const response = {
|
|
931
916
|
$metadata: deserializeMetadata(output),
|
|
932
917
|
...contents,
|
|
933
918
|
};
|
|
934
|
-
return
|
|
919
|
+
return response;
|
|
935
920
|
};
|
|
936
921
|
const de_NotifyMigrationTaskStateCommandError = async (output, context) => {
|
|
937
922
|
const parsedOutput = {
|
|
@@ -969,10 +954,9 @@ const de_NotifyMigrationTaskStateCommandError = async (output, context) => {
|
|
|
969
954
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
970
955
|
default:
|
|
971
956
|
const parsedBody = parsedOutput.body;
|
|
972
|
-
throwDefaultError({
|
|
957
|
+
return throwDefaultError({
|
|
973
958
|
output,
|
|
974
959
|
parsedBody,
|
|
975
|
-
exceptionCtor: __BaseException,
|
|
976
960
|
errorCode,
|
|
977
961
|
});
|
|
978
962
|
}
|
|
@@ -983,12 +967,12 @@ export const de_PutResourceAttributesCommand = async (output, context) => {
|
|
|
983
967
|
}
|
|
984
968
|
const data = await parseBody(output.body, context);
|
|
985
969
|
let contents = {};
|
|
986
|
-
contents =
|
|
970
|
+
contents = _json(data);
|
|
987
971
|
const response = {
|
|
988
972
|
$metadata: deserializeMetadata(output),
|
|
989
973
|
...contents,
|
|
990
974
|
};
|
|
991
|
-
return
|
|
975
|
+
return response;
|
|
992
976
|
};
|
|
993
977
|
const de_PutResourceAttributesCommandError = async (output, context) => {
|
|
994
978
|
const parsedOutput = {
|
|
@@ -1026,17 +1010,16 @@ const de_PutResourceAttributesCommandError = async (output, context) => {
|
|
|
1026
1010
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
1027
1011
|
default:
|
|
1028
1012
|
const parsedBody = parsedOutput.body;
|
|
1029
|
-
throwDefaultError({
|
|
1013
|
+
return throwDefaultError({
|
|
1030
1014
|
output,
|
|
1031
1015
|
parsedBody,
|
|
1032
|
-
exceptionCtor: __BaseException,
|
|
1033
1016
|
errorCode,
|
|
1034
1017
|
});
|
|
1035
1018
|
}
|
|
1036
1019
|
};
|
|
1037
1020
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1038
1021
|
const body = parsedOutput.body;
|
|
1039
|
-
const deserialized =
|
|
1022
|
+
const deserialized = _json(body);
|
|
1040
1023
|
const exception = new AccessDeniedException({
|
|
1041
1024
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1042
1025
|
...deserialized,
|
|
@@ -1045,7 +1028,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1045
1028
|
};
|
|
1046
1029
|
const de_DryRunOperationRes = async (parsedOutput, context) => {
|
|
1047
1030
|
const body = parsedOutput.body;
|
|
1048
|
-
const deserialized =
|
|
1031
|
+
const deserialized = _json(body);
|
|
1049
1032
|
const exception = new DryRunOperation({
|
|
1050
1033
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1051
1034
|
...deserialized,
|
|
@@ -1054,7 +1037,7 @@ const de_DryRunOperationRes = async (parsedOutput, context) => {
|
|
|
1054
1037
|
};
|
|
1055
1038
|
const de_HomeRegionNotSetExceptionRes = async (parsedOutput, context) => {
|
|
1056
1039
|
const body = parsedOutput.body;
|
|
1057
|
-
const deserialized =
|
|
1040
|
+
const deserialized = _json(body);
|
|
1058
1041
|
const exception = new HomeRegionNotSetException({
|
|
1059
1042
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1060
1043
|
...deserialized,
|
|
@@ -1063,7 +1046,7 @@ const de_HomeRegionNotSetExceptionRes = async (parsedOutput, context) => {
|
|
|
1063
1046
|
};
|
|
1064
1047
|
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
1065
1048
|
const body = parsedOutput.body;
|
|
1066
|
-
const deserialized =
|
|
1049
|
+
const deserialized = _json(body);
|
|
1067
1050
|
const exception = new InternalServerError({
|
|
1068
1051
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1069
1052
|
...deserialized,
|
|
@@ -1072,7 +1055,7 @@ const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
|
1072
1055
|
};
|
|
1073
1056
|
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
1074
1057
|
const body = parsedOutput.body;
|
|
1075
|
-
const deserialized =
|
|
1058
|
+
const deserialized = _json(body);
|
|
1076
1059
|
const exception = new InvalidInputException({
|
|
1077
1060
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1078
1061
|
...deserialized,
|
|
@@ -1081,7 +1064,7 @@ const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
|
1081
1064
|
};
|
|
1082
1065
|
const de_PolicyErrorExceptionRes = async (parsedOutput, context) => {
|
|
1083
1066
|
const body = parsedOutput.body;
|
|
1084
|
-
const deserialized =
|
|
1067
|
+
const deserialized = _json(body);
|
|
1085
1068
|
const exception = new PolicyErrorException({
|
|
1086
1069
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1087
1070
|
...deserialized,
|
|
@@ -1090,7 +1073,7 @@ const de_PolicyErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
1090
1073
|
};
|
|
1091
1074
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1092
1075
|
const body = parsedOutput.body;
|
|
1093
|
-
const deserialized =
|
|
1076
|
+
const deserialized = _json(body);
|
|
1094
1077
|
const exception = new ResourceNotFoundException({
|
|
1095
1078
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1096
1079
|
...deserialized,
|
|
@@ -1099,7 +1082,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1099
1082
|
};
|
|
1100
1083
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1101
1084
|
const body = parsedOutput.body;
|
|
1102
|
-
const deserialized =
|
|
1085
|
+
const deserialized = _json(body);
|
|
1103
1086
|
const exception = new ServiceUnavailableException({
|
|
1104
1087
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1105
1088
|
...deserialized,
|
|
@@ -1108,7 +1091,7 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
1108
1091
|
};
|
|
1109
1092
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1110
1093
|
const body = parsedOutput.body;
|
|
1111
|
-
const deserialized =
|
|
1094
|
+
const deserialized = _json(body);
|
|
1112
1095
|
const exception = new ThrottlingException({
|
|
1113
1096
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1114
1097
|
...deserialized,
|
|
@@ -1117,440 +1100,96 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1117
1100
|
};
|
|
1118
1101
|
const de_UnauthorizedOperationRes = async (parsedOutput, context) => {
|
|
1119
1102
|
const body = parsedOutput.body;
|
|
1120
|
-
const deserialized =
|
|
1103
|
+
const deserialized = _json(body);
|
|
1121
1104
|
const exception = new UnauthorizedOperation({
|
|
1122
1105
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1123
1106
|
...deserialized,
|
|
1124
1107
|
});
|
|
1125
1108
|
return __decorateServiceException(exception, body);
|
|
1126
1109
|
};
|
|
1127
|
-
const se_ApplicationIds = (input, context) => {
|
|
1128
|
-
return input
|
|
1129
|
-
.filter((e) => e != null)
|
|
1130
|
-
.map((entry) => {
|
|
1131
|
-
return entry;
|
|
1132
|
-
});
|
|
1133
|
-
};
|
|
1134
|
-
const se_AssociateCreatedArtifactRequest = (input, context) => {
|
|
1135
|
-
return {
|
|
1136
|
-
...(input.CreatedArtifact != null && { CreatedArtifact: se_CreatedArtifact(input.CreatedArtifact, context) }),
|
|
1137
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1138
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1139
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1140
|
-
};
|
|
1141
|
-
};
|
|
1142
|
-
const se_AssociateDiscoveredResourceRequest = (input, context) => {
|
|
1143
|
-
return {
|
|
1144
|
-
...(input.DiscoveredResource != null && {
|
|
1145
|
-
DiscoveredResource: se_DiscoveredResource(input.DiscoveredResource, context),
|
|
1146
|
-
}),
|
|
1147
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1148
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1149
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1150
|
-
};
|
|
1151
|
-
};
|
|
1152
|
-
const se_CreatedArtifact = (input, context) => {
|
|
1153
|
-
return {
|
|
1154
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1155
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1156
|
-
};
|
|
1157
|
-
};
|
|
1158
|
-
const se_CreateProgressUpdateStreamRequest = (input, context) => {
|
|
1159
|
-
return {
|
|
1160
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1161
|
-
...(input.ProgressUpdateStreamName != null && { ProgressUpdateStreamName: input.ProgressUpdateStreamName }),
|
|
1162
|
-
};
|
|
1163
|
-
};
|
|
1164
|
-
const se_DeleteProgressUpdateStreamRequest = (input, context) => {
|
|
1165
|
-
return {
|
|
1166
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1167
|
-
...(input.ProgressUpdateStreamName != null && { ProgressUpdateStreamName: input.ProgressUpdateStreamName }),
|
|
1168
|
-
};
|
|
1169
|
-
};
|
|
1170
|
-
const se_DescribeApplicationStateRequest = (input, context) => {
|
|
1171
|
-
return {
|
|
1172
|
-
...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
|
|
1173
|
-
};
|
|
1174
|
-
};
|
|
1175
|
-
const se_DescribeMigrationTaskRequest = (input, context) => {
|
|
1176
|
-
return {
|
|
1177
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1178
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1179
|
-
};
|
|
1180
|
-
};
|
|
1181
|
-
const se_DisassociateCreatedArtifactRequest = (input, context) => {
|
|
1182
|
-
return {
|
|
1183
|
-
...(input.CreatedArtifactName != null && { CreatedArtifactName: input.CreatedArtifactName }),
|
|
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_DisassociateDiscoveredResourceRequest = (input, context) => {
|
|
1190
|
-
return {
|
|
1191
|
-
...(input.ConfigurationId != null && { ConfigurationId: input.ConfigurationId }),
|
|
1192
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1193
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1194
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1195
|
-
};
|
|
1196
|
-
};
|
|
1197
|
-
const se_DiscoveredResource = (input, context) => {
|
|
1198
|
-
return {
|
|
1199
|
-
...(input.ConfigurationId != null && { ConfigurationId: input.ConfigurationId }),
|
|
1200
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1201
|
-
};
|
|
1202
|
-
};
|
|
1203
|
-
const se_ImportMigrationTaskRequest = (input, context) => {
|
|
1204
|
-
return {
|
|
1205
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1206
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1207
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1208
|
-
};
|
|
1209
|
-
};
|
|
1210
|
-
const se_ListApplicationStatesRequest = (input, context) => {
|
|
1211
|
-
return {
|
|
1212
|
-
...(input.ApplicationIds != null && { ApplicationIds: se_ApplicationIds(input.ApplicationIds, context) }),
|
|
1213
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1214
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1215
|
-
};
|
|
1216
|
-
};
|
|
1217
|
-
const se_ListCreatedArtifactsRequest = (input, context) => {
|
|
1218
|
-
return {
|
|
1219
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1220
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1221
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1222
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1223
|
-
};
|
|
1224
|
-
};
|
|
1225
|
-
const se_ListDiscoveredResourcesRequest = (input, context) => {
|
|
1226
|
-
return {
|
|
1227
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1228
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1229
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1230
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1231
|
-
};
|
|
1232
|
-
};
|
|
1233
|
-
const se_ListMigrationTasksRequest = (input, context) => {
|
|
1234
|
-
return {
|
|
1235
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1236
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1237
|
-
...(input.ResourceName != null && { ResourceName: input.ResourceName }),
|
|
1238
|
-
};
|
|
1239
|
-
};
|
|
1240
|
-
const se_ListProgressUpdateStreamsRequest = (input, context) => {
|
|
1241
|
-
return {
|
|
1242
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1243
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1244
|
-
};
|
|
1245
|
-
};
|
|
1246
1110
|
const se_NotifyApplicationStateRequest = (input, context) => {
|
|
1247
|
-
return {
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
};
|
|
1111
|
+
return take(input, {
|
|
1112
|
+
ApplicationId: [],
|
|
1113
|
+
DryRun: [],
|
|
1114
|
+
Status: [],
|
|
1115
|
+
UpdateDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1116
|
+
});
|
|
1253
1117
|
};
|
|
1254
1118
|
const se_NotifyMigrationTaskStateRequest = (input, context) => {
|
|
1255
|
-
return {
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
};
|
|
1263
|
-
};
|
|
1264
|
-
const se_PutResourceAttributesRequest = (input, context) => {
|
|
1265
|
-
return {
|
|
1266
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1267
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1268
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1269
|
-
...(input.ResourceAttributeList != null && {
|
|
1270
|
-
ResourceAttributeList: se_ResourceAttributeList(input.ResourceAttributeList, context),
|
|
1271
|
-
}),
|
|
1272
|
-
};
|
|
1273
|
-
};
|
|
1274
|
-
const se_ResourceAttribute = (input, context) => {
|
|
1275
|
-
return {
|
|
1276
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1277
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1278
|
-
};
|
|
1279
|
-
};
|
|
1280
|
-
const se_ResourceAttributeList = (input, context) => {
|
|
1281
|
-
return input
|
|
1282
|
-
.filter((e) => e != null)
|
|
1283
|
-
.map((entry) => {
|
|
1284
|
-
return se_ResourceAttribute(entry, context);
|
|
1119
|
+
return take(input, {
|
|
1120
|
+
DryRun: [],
|
|
1121
|
+
MigrationTaskName: [],
|
|
1122
|
+
NextUpdateSeconds: [],
|
|
1123
|
+
ProgressUpdateStream: [],
|
|
1124
|
+
Task: _json,
|
|
1125
|
+
UpdateDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
1285
1126
|
});
|
|
1286
1127
|
};
|
|
1287
|
-
const se_Task = (input, context) => {
|
|
1288
|
-
return {
|
|
1289
|
-
...(input.ProgressPercent != null && { ProgressPercent: input.ProgressPercent }),
|
|
1290
|
-
...(input.Status != null && { Status: input.Status }),
|
|
1291
|
-
...(input.StatusDetail != null && { StatusDetail: input.StatusDetail }),
|
|
1292
|
-
};
|
|
1293
|
-
};
|
|
1294
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1295
|
-
return {
|
|
1296
|
-
Message: __expectString(output.Message),
|
|
1297
|
-
};
|
|
1298
|
-
};
|
|
1299
1128
|
const de_ApplicationState = (output, context) => {
|
|
1300
|
-
return {
|
|
1301
|
-
ApplicationId: __expectString
|
|
1302
|
-
ApplicationStatus: __expectString
|
|
1303
|
-
LastUpdatedTime:
|
|
1304
|
-
|
|
1305
|
-
: undefined,
|
|
1306
|
-
};
|
|
1129
|
+
return take(output, {
|
|
1130
|
+
ApplicationId: __expectString,
|
|
1131
|
+
ApplicationStatus: __expectString,
|
|
1132
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1133
|
+
});
|
|
1307
1134
|
};
|
|
1308
1135
|
const de_ApplicationStateList = (output, context) => {
|
|
1309
1136
|
const retVal = (output || [])
|
|
1310
1137
|
.filter((e) => e != null)
|
|
1311
1138
|
.map((entry) => {
|
|
1312
|
-
if (entry === null) {
|
|
1313
|
-
return null;
|
|
1314
|
-
}
|
|
1315
1139
|
return de_ApplicationState(entry, context);
|
|
1316
1140
|
});
|
|
1317
1141
|
return retVal;
|
|
1318
1142
|
};
|
|
1319
|
-
const de_AssociateCreatedArtifactResult = (output, context) => {
|
|
1320
|
-
return {};
|
|
1321
|
-
};
|
|
1322
|
-
const de_AssociateDiscoveredResourceResult = (output, context) => {
|
|
1323
|
-
return {};
|
|
1324
|
-
};
|
|
1325
|
-
const de_CreatedArtifact = (output, context) => {
|
|
1326
|
-
return {
|
|
1327
|
-
Description: __expectString(output.Description),
|
|
1328
|
-
Name: __expectString(output.Name),
|
|
1329
|
-
};
|
|
1330
|
-
};
|
|
1331
|
-
const de_CreatedArtifactList = (output, context) => {
|
|
1332
|
-
const retVal = (output || [])
|
|
1333
|
-
.filter((e) => e != null)
|
|
1334
|
-
.map((entry) => {
|
|
1335
|
-
if (entry === null) {
|
|
1336
|
-
return null;
|
|
1337
|
-
}
|
|
1338
|
-
return de_CreatedArtifact(entry, context);
|
|
1339
|
-
});
|
|
1340
|
-
return retVal;
|
|
1341
|
-
};
|
|
1342
|
-
const de_CreateProgressUpdateStreamResult = (output, context) => {
|
|
1343
|
-
return {};
|
|
1344
|
-
};
|
|
1345
|
-
const de_DeleteProgressUpdateStreamResult = (output, context) => {
|
|
1346
|
-
return {};
|
|
1347
|
-
};
|
|
1348
1143
|
const de_DescribeApplicationStateResult = (output, context) => {
|
|
1349
|
-
return {
|
|
1350
|
-
ApplicationStatus: __expectString
|
|
1351
|
-
LastUpdatedTime:
|
|
1352
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
|
|
1353
|
-
: undefined,
|
|
1354
|
-
};
|
|
1355
|
-
};
|
|
1356
|
-
const de_DescribeMigrationTaskResult = (output, context) => {
|
|
1357
|
-
return {
|
|
1358
|
-
MigrationTask: output.MigrationTask != null ? de_MigrationTask(output.MigrationTask, context) : undefined,
|
|
1359
|
-
};
|
|
1360
|
-
};
|
|
1361
|
-
const de_DisassociateCreatedArtifactResult = (output, context) => {
|
|
1362
|
-
return {};
|
|
1363
|
-
};
|
|
1364
|
-
const de_DisassociateDiscoveredResourceResult = (output, context) => {
|
|
1365
|
-
return {};
|
|
1366
|
-
};
|
|
1367
|
-
const de_DiscoveredResource = (output, context) => {
|
|
1368
|
-
return {
|
|
1369
|
-
ConfigurationId: __expectString(output.ConfigurationId),
|
|
1370
|
-
Description: __expectString(output.Description),
|
|
1371
|
-
};
|
|
1372
|
-
};
|
|
1373
|
-
const de_DiscoveredResourceList = (output, context) => {
|
|
1374
|
-
const retVal = (output || [])
|
|
1375
|
-
.filter((e) => e != null)
|
|
1376
|
-
.map((entry) => {
|
|
1377
|
-
if (entry === null) {
|
|
1378
|
-
return null;
|
|
1379
|
-
}
|
|
1380
|
-
return de_DiscoveredResource(entry, context);
|
|
1144
|
+
return take(output, {
|
|
1145
|
+
ApplicationStatus: __expectString,
|
|
1146
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1381
1147
|
});
|
|
1382
|
-
return retVal;
|
|
1383
|
-
};
|
|
1384
|
-
const de_DryRunOperation = (output, context) => {
|
|
1385
|
-
return {
|
|
1386
|
-
Message: __expectString(output.Message),
|
|
1387
|
-
};
|
|
1388
|
-
};
|
|
1389
|
-
const de_HomeRegionNotSetException = (output, context) => {
|
|
1390
|
-
return {
|
|
1391
|
-
Message: __expectString(output.Message),
|
|
1392
|
-
};
|
|
1393
|
-
};
|
|
1394
|
-
const de_ImportMigrationTaskResult = (output, context) => {
|
|
1395
|
-
return {};
|
|
1396
|
-
};
|
|
1397
|
-
const de_InternalServerError = (output, context) => {
|
|
1398
|
-
return {
|
|
1399
|
-
Message: __expectString(output.Message),
|
|
1400
|
-
};
|
|
1401
|
-
};
|
|
1402
|
-
const de_InvalidInputException = (output, context) => {
|
|
1403
|
-
return {
|
|
1404
|
-
Message: __expectString(output.Message),
|
|
1405
|
-
};
|
|
1406
1148
|
};
|
|
1407
|
-
const
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
.map((entry) => {
|
|
1411
|
-
if (entry === null) {
|
|
1412
|
-
return null;
|
|
1413
|
-
}
|
|
1414
|
-
return de_ResourceAttribute(entry, context);
|
|
1149
|
+
const de_DescribeMigrationTaskResult = (output, context) => {
|
|
1150
|
+
return take(output, {
|
|
1151
|
+
MigrationTask: (_) => de_MigrationTask(_, context),
|
|
1415
1152
|
});
|
|
1416
|
-
return retVal;
|
|
1417
1153
|
};
|
|
1418
1154
|
const de_ListApplicationStatesResult = (output, context) => {
|
|
1419
|
-
return {
|
|
1420
|
-
ApplicationStateList:
|
|
1421
|
-
NextToken: __expectString
|
|
1422
|
-
};
|
|
1423
|
-
};
|
|
1424
|
-
const de_ListCreatedArtifactsResult = (output, context) => {
|
|
1425
|
-
return {
|
|
1426
|
-
CreatedArtifactList: output.CreatedArtifactList != null ? de_CreatedArtifactList(output.CreatedArtifactList, context) : undefined,
|
|
1427
|
-
NextToken: __expectString(output.NextToken),
|
|
1428
|
-
};
|
|
1429
|
-
};
|
|
1430
|
-
const de_ListDiscoveredResourcesResult = (output, context) => {
|
|
1431
|
-
return {
|
|
1432
|
-
DiscoveredResourceList: output.DiscoveredResourceList != null
|
|
1433
|
-
? de_DiscoveredResourceList(output.DiscoveredResourceList, context)
|
|
1434
|
-
: undefined,
|
|
1435
|
-
NextToken: __expectString(output.NextToken),
|
|
1436
|
-
};
|
|
1155
|
+
return take(output, {
|
|
1156
|
+
ApplicationStateList: (_) => de_ApplicationStateList(_, context),
|
|
1157
|
+
NextToken: __expectString,
|
|
1158
|
+
});
|
|
1437
1159
|
};
|
|
1438
1160
|
const de_ListMigrationTasksResult = (output, context) => {
|
|
1439
|
-
return {
|
|
1440
|
-
MigrationTaskSummaryList:
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
NextToken: __expectString(output.NextToken),
|
|
1444
|
-
};
|
|
1445
|
-
};
|
|
1446
|
-
const de_ListProgressUpdateStreamsResult = (output, context) => {
|
|
1447
|
-
return {
|
|
1448
|
-
NextToken: __expectString(output.NextToken),
|
|
1449
|
-
ProgressUpdateStreamSummaryList: output.ProgressUpdateStreamSummaryList != null
|
|
1450
|
-
? de_ProgressUpdateStreamSummaryList(output.ProgressUpdateStreamSummaryList, context)
|
|
1451
|
-
: undefined,
|
|
1452
|
-
};
|
|
1161
|
+
return take(output, {
|
|
1162
|
+
MigrationTaskSummaryList: (_) => de_MigrationTaskSummaryList(_, context),
|
|
1163
|
+
NextToken: __expectString,
|
|
1164
|
+
});
|
|
1453
1165
|
};
|
|
1454
1166
|
const de_MigrationTask = (output, context) => {
|
|
1455
|
-
return {
|
|
1456
|
-
MigrationTaskName: __expectString
|
|
1457
|
-
ProgressUpdateStream: __expectString
|
|
1458
|
-
ResourceAttributeList:
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
UpdateDateTime: output.UpdateDateTime != null
|
|
1463
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateDateTime)))
|
|
1464
|
-
: undefined,
|
|
1465
|
-
};
|
|
1167
|
+
return take(output, {
|
|
1168
|
+
MigrationTaskName: __expectString,
|
|
1169
|
+
ProgressUpdateStream: __expectString,
|
|
1170
|
+
ResourceAttributeList: _json,
|
|
1171
|
+
Task: _json,
|
|
1172
|
+
UpdateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1173
|
+
});
|
|
1466
1174
|
};
|
|
1467
1175
|
const de_MigrationTaskSummary = (output, context) => {
|
|
1468
|
-
return {
|
|
1469
|
-
MigrationTaskName: __expectString
|
|
1470
|
-
ProgressPercent: __expectInt32
|
|
1471
|
-
ProgressUpdateStream: __expectString
|
|
1472
|
-
Status: __expectString
|
|
1473
|
-
StatusDetail: __expectString
|
|
1474
|
-
UpdateDateTime:
|
|
1475
|
-
|
|
1476
|
-
: undefined,
|
|
1477
|
-
};
|
|
1176
|
+
return take(output, {
|
|
1177
|
+
MigrationTaskName: __expectString,
|
|
1178
|
+
ProgressPercent: __expectInt32,
|
|
1179
|
+
ProgressUpdateStream: __expectString,
|
|
1180
|
+
Status: __expectString,
|
|
1181
|
+
StatusDetail: __expectString,
|
|
1182
|
+
UpdateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1183
|
+
});
|
|
1478
1184
|
};
|
|
1479
1185
|
const de_MigrationTaskSummaryList = (output, context) => {
|
|
1480
1186
|
const retVal = (output || [])
|
|
1481
1187
|
.filter((e) => e != null)
|
|
1482
1188
|
.map((entry) => {
|
|
1483
|
-
if (entry === null) {
|
|
1484
|
-
return null;
|
|
1485
|
-
}
|
|
1486
1189
|
return de_MigrationTaskSummary(entry, context);
|
|
1487
1190
|
});
|
|
1488
1191
|
return retVal;
|
|
1489
1192
|
};
|
|
1490
|
-
const de_NotifyApplicationStateResult = (output, context) => {
|
|
1491
|
-
return {};
|
|
1492
|
-
};
|
|
1493
|
-
const de_NotifyMigrationTaskStateResult = (output, context) => {
|
|
1494
|
-
return {};
|
|
1495
|
-
};
|
|
1496
|
-
const de_PolicyErrorException = (output, context) => {
|
|
1497
|
-
return {
|
|
1498
|
-
Message: __expectString(output.Message),
|
|
1499
|
-
};
|
|
1500
|
-
};
|
|
1501
|
-
const de_ProgressUpdateStreamSummary = (output, context) => {
|
|
1502
|
-
return {
|
|
1503
|
-
ProgressUpdateStreamName: __expectString(output.ProgressUpdateStreamName),
|
|
1504
|
-
};
|
|
1505
|
-
};
|
|
1506
|
-
const de_ProgressUpdateStreamSummaryList = (output, context) => {
|
|
1507
|
-
const retVal = (output || [])
|
|
1508
|
-
.filter((e) => e != null)
|
|
1509
|
-
.map((entry) => {
|
|
1510
|
-
if (entry === null) {
|
|
1511
|
-
return null;
|
|
1512
|
-
}
|
|
1513
|
-
return de_ProgressUpdateStreamSummary(entry, context);
|
|
1514
|
-
});
|
|
1515
|
-
return retVal;
|
|
1516
|
-
};
|
|
1517
|
-
const de_PutResourceAttributesResult = (output, context) => {
|
|
1518
|
-
return {};
|
|
1519
|
-
};
|
|
1520
|
-
const de_ResourceAttribute = (output, context) => {
|
|
1521
|
-
return {
|
|
1522
|
-
Type: __expectString(output.Type),
|
|
1523
|
-
Value: __expectString(output.Value),
|
|
1524
|
-
};
|
|
1525
|
-
};
|
|
1526
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1527
|
-
return {
|
|
1528
|
-
Message: __expectString(output.Message),
|
|
1529
|
-
};
|
|
1530
|
-
};
|
|
1531
|
-
const de_ServiceUnavailableException = (output, context) => {
|
|
1532
|
-
return {
|
|
1533
|
-
Message: __expectString(output.Message),
|
|
1534
|
-
};
|
|
1535
|
-
};
|
|
1536
|
-
const de_Task = (output, context) => {
|
|
1537
|
-
return {
|
|
1538
|
-
ProgressPercent: __expectInt32(output.ProgressPercent),
|
|
1539
|
-
Status: __expectString(output.Status),
|
|
1540
|
-
StatusDetail: __expectString(output.StatusDetail),
|
|
1541
|
-
};
|
|
1542
|
-
};
|
|
1543
|
-
const de_ThrottlingException = (output, context) => {
|
|
1544
|
-
return {
|
|
1545
|
-
Message: __expectString(output.Message),
|
|
1546
|
-
RetryAfterSeconds: __expectInt32(output.RetryAfterSeconds),
|
|
1547
|
-
};
|
|
1548
|
-
};
|
|
1549
|
-
const de_UnauthorizedOperation = (output, context) => {
|
|
1550
|
-
return {
|
|
1551
|
-
Message: __expectString(output.Message),
|
|
1552
|
-
};
|
|
1553
|
-
};
|
|
1554
1193
|
const deserializeMetadata = (output) => ({
|
|
1555
1194
|
httpStatusCode: output.statusCode,
|
|
1556
1195
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1564,6 +1203,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1564
1203
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1565
1204
|
};
|
|
1566
1205
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1206
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1567
1207
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1568
1208
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1569
1209
|
const contents = {
|