@aws-sdk/client-migration-hub 3.131.0 → 3.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/AssociateCreatedArtifactCommand.js +2 -2
- package/dist-cjs/commands/AssociateDiscoveredResourceCommand.js +2 -2
- package/dist-cjs/commands/CreateProgressUpdateStreamCommand.js +2 -2
- package/dist-cjs/commands/DeleteProgressUpdateStreamCommand.js +2 -2
- package/dist-cjs/commands/DescribeApplicationStateCommand.js +2 -2
- package/dist-cjs/commands/DescribeMigrationTaskCommand.js +2 -2
- package/dist-cjs/commands/DisassociateCreatedArtifactCommand.js +2 -2
- package/dist-cjs/commands/DisassociateDiscoveredResourceCommand.js +2 -2
- package/dist-cjs/commands/ImportMigrationTaskCommand.js +2 -2
- package/dist-cjs/commands/ListApplicationStatesCommand.js +2 -2
- package/dist-cjs/commands/ListCreatedArtifactsCommand.js +2 -2
- package/dist-cjs/commands/ListDiscoveredResourcesCommand.js +2 -2
- package/dist-cjs/commands/ListMigrationTasksCommand.js +2 -2
- package/dist-cjs/commands/ListProgressUpdateStreamsCommand.js +2 -2
- package/dist-cjs/commands/NotifyApplicationStateCommand.js +2 -2
- package/dist-cjs/commands/NotifyMigrationTaskStateCommand.js +2 -2
- package/dist-cjs/commands/PutResourceAttributesCommand.js +2 -2
- package/dist-cjs/models/models_0.js +170 -254
- package/dist-cjs/protocols/Aws_json1_1.js +85 -142
- package/dist-es/commands/AssociateCreatedArtifactCommand.js +3 -3
- package/dist-es/commands/AssociateDiscoveredResourceCommand.js +3 -3
- package/dist-es/commands/CreateProgressUpdateStreamCommand.js +3 -3
- package/dist-es/commands/DeleteProgressUpdateStreamCommand.js +3 -3
- package/dist-es/commands/DescribeApplicationStateCommand.js +3 -3
- package/dist-es/commands/DescribeMigrationTaskCommand.js +3 -3
- package/dist-es/commands/DisassociateCreatedArtifactCommand.js +3 -3
- package/dist-es/commands/DisassociateDiscoveredResourceCommand.js +3 -3
- package/dist-es/commands/ImportMigrationTaskCommand.js +3 -3
- package/dist-es/commands/ListApplicationStatesCommand.js +3 -3
- package/dist-es/commands/ListCreatedArtifactsCommand.js +3 -3
- package/dist-es/commands/ListDiscoveredResourcesCommand.js +3 -3
- package/dist-es/commands/ListMigrationTasksCommand.js +3 -3
- package/dist-es/commands/ListProgressUpdateStreamsCommand.js +3 -3
- package/dist-es/commands/NotifyApplicationStateCommand.js +3 -3
- package/dist-es/commands/NotifyMigrationTaskStateCommand.js +3 -3
- package/dist-es/commands/PutResourceAttributesCommand.js +3 -3
- package/dist-es/models/models_0.js +42 -168
- package/dist-es/protocols/Aws_json1_1.js +137 -143
- package/dist-types/models/models_0.d.ts +168 -252
- package/dist-types/ts3.4/models/models_0.d.ts +84 -168
- package/package.json +6 -6
|
@@ -194,7 +194,6 @@ const deserializeAws_json1_1AssociateCreatedArtifactCommandError = async (output
|
|
|
194
194
|
...output,
|
|
195
195
|
body: await parseBody(output.body, context),
|
|
196
196
|
};
|
|
197
|
-
let response;
|
|
198
197
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
199
198
|
switch (errorCode) {
|
|
200
199
|
case "AccessDeniedException":
|
|
@@ -226,14 +225,12 @@ const deserializeAws_json1_1AssociateCreatedArtifactCommandError = async (output
|
|
|
226
225
|
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
227
226
|
default:
|
|
228
227
|
const parsedBody = parsedOutput.body;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
$metadata,
|
|
228
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
229
|
+
output,
|
|
230
|
+
parsedBody,
|
|
231
|
+
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
232
|
+
errorCode,
|
|
235
233
|
});
|
|
236
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
237
234
|
}
|
|
238
235
|
};
|
|
239
236
|
const deserializeAws_json1_1AssociateDiscoveredResourceCommand = async (output, context) => {
|
|
@@ -255,7 +252,6 @@ const deserializeAws_json1_1AssociateDiscoveredResourceCommandError = async (out
|
|
|
255
252
|
...output,
|
|
256
253
|
body: await parseBody(output.body, context),
|
|
257
254
|
};
|
|
258
|
-
let response;
|
|
259
255
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
260
256
|
switch (errorCode) {
|
|
261
257
|
case "AccessDeniedException":
|
|
@@ -290,14 +286,12 @@ const deserializeAws_json1_1AssociateDiscoveredResourceCommandError = async (out
|
|
|
290
286
|
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
291
287
|
default:
|
|
292
288
|
const parsedBody = parsedOutput.body;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
$metadata,
|
|
289
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
290
|
+
output,
|
|
291
|
+
parsedBody,
|
|
292
|
+
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
293
|
+
errorCode,
|
|
299
294
|
});
|
|
300
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
301
295
|
}
|
|
302
296
|
};
|
|
303
297
|
const deserializeAws_json1_1CreateProgressUpdateStreamCommand = async (output, context) => {
|
|
@@ -319,7 +313,6 @@ const deserializeAws_json1_1CreateProgressUpdateStreamCommandError = async (outp
|
|
|
319
313
|
...output,
|
|
320
314
|
body: await parseBody(output.body, context),
|
|
321
315
|
};
|
|
322
|
-
let response;
|
|
323
316
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
324
317
|
switch (errorCode) {
|
|
325
318
|
case "AccessDeniedException":
|
|
@@ -348,14 +341,12 @@ const deserializeAws_json1_1CreateProgressUpdateStreamCommandError = async (outp
|
|
|
348
341
|
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
349
342
|
default:
|
|
350
343
|
const parsedBody = parsedOutput.body;
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
$metadata,
|
|
344
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
345
|
+
output,
|
|
346
|
+
parsedBody,
|
|
347
|
+
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
348
|
+
errorCode,
|
|
357
349
|
});
|
|
358
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
359
350
|
}
|
|
360
351
|
};
|
|
361
352
|
const deserializeAws_json1_1DeleteProgressUpdateStreamCommand = async (output, context) => {
|
|
@@ -377,7 +368,6 @@ const deserializeAws_json1_1DeleteProgressUpdateStreamCommandError = async (outp
|
|
|
377
368
|
...output,
|
|
378
369
|
body: await parseBody(output.body, context),
|
|
379
370
|
};
|
|
380
|
-
let response;
|
|
381
371
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
382
372
|
switch (errorCode) {
|
|
383
373
|
case "AccessDeniedException":
|
|
@@ -409,14 +399,12 @@ const deserializeAws_json1_1DeleteProgressUpdateStreamCommandError = async (outp
|
|
|
409
399
|
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
410
400
|
default:
|
|
411
401
|
const parsedBody = parsedOutput.body;
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
$metadata,
|
|
402
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
403
|
+
output,
|
|
404
|
+
parsedBody,
|
|
405
|
+
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
406
|
+
errorCode,
|
|
418
407
|
});
|
|
419
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
420
408
|
}
|
|
421
409
|
};
|
|
422
410
|
const deserializeAws_json1_1DescribeApplicationStateCommand = async (output, context) => {
|
|
@@ -438,7 +426,6 @@ const deserializeAws_json1_1DescribeApplicationStateCommandError = async (output
|
|
|
438
426
|
...output,
|
|
439
427
|
body: await parseBody(output.body, context),
|
|
440
428
|
};
|
|
441
|
-
let response;
|
|
442
429
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
443
430
|
switch (errorCode) {
|
|
444
431
|
case "AccessDeniedException":
|
|
@@ -467,14 +454,12 @@ const deserializeAws_json1_1DescribeApplicationStateCommandError = async (output
|
|
|
467
454
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
468
455
|
default:
|
|
469
456
|
const parsedBody = parsedOutput.body;
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
$metadata,
|
|
457
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
458
|
+
output,
|
|
459
|
+
parsedBody,
|
|
460
|
+
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
461
|
+
errorCode,
|
|
476
462
|
});
|
|
477
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
478
463
|
}
|
|
479
464
|
};
|
|
480
465
|
const deserializeAws_json1_1DescribeMigrationTaskCommand = async (output, context) => {
|
|
@@ -496,7 +481,6 @@ const deserializeAws_json1_1DescribeMigrationTaskCommandError = async (output, c
|
|
|
496
481
|
...output,
|
|
497
482
|
body: await parseBody(output.body, context),
|
|
498
483
|
};
|
|
499
|
-
let response;
|
|
500
484
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
501
485
|
switch (errorCode) {
|
|
502
486
|
case "AccessDeniedException":
|
|
@@ -522,14 +506,12 @@ const deserializeAws_json1_1DescribeMigrationTaskCommandError = async (output, c
|
|
|
522
506
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
523
507
|
default:
|
|
524
508
|
const parsedBody = parsedOutput.body;
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
$metadata,
|
|
509
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
510
|
+
output,
|
|
511
|
+
parsedBody,
|
|
512
|
+
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
513
|
+
errorCode,
|
|
531
514
|
});
|
|
532
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
533
515
|
}
|
|
534
516
|
};
|
|
535
517
|
const deserializeAws_json1_1DisassociateCreatedArtifactCommand = async (output, context) => {
|
|
@@ -551,7 +533,6 @@ const deserializeAws_json1_1DisassociateCreatedArtifactCommandError = async (out
|
|
|
551
533
|
...output,
|
|
552
534
|
body: await parseBody(output.body, context),
|
|
553
535
|
};
|
|
554
|
-
let response;
|
|
555
536
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
537
|
switch (errorCode) {
|
|
557
538
|
case "AccessDeniedException":
|
|
@@ -583,14 +564,12 @@ const deserializeAws_json1_1DisassociateCreatedArtifactCommandError = async (out
|
|
|
583
564
|
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
584
565
|
default:
|
|
585
566
|
const parsedBody = parsedOutput.body;
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
$metadata,
|
|
567
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
568
|
+
output,
|
|
569
|
+
parsedBody,
|
|
570
|
+
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
571
|
+
errorCode,
|
|
592
572
|
});
|
|
593
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
594
573
|
}
|
|
595
574
|
};
|
|
596
575
|
const deserializeAws_json1_1DisassociateDiscoveredResourceCommand = async (output, context) => {
|
|
@@ -612,7 +591,6 @@ const deserializeAws_json1_1DisassociateDiscoveredResourceCommandError = async (
|
|
|
612
591
|
...output,
|
|
613
592
|
body: await parseBody(output.body, context),
|
|
614
593
|
};
|
|
615
|
-
let response;
|
|
616
594
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
617
595
|
switch (errorCode) {
|
|
618
596
|
case "AccessDeniedException":
|
|
@@ -644,14 +622,12 @@ const deserializeAws_json1_1DisassociateDiscoveredResourceCommandError = async (
|
|
|
644
622
|
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
645
623
|
default:
|
|
646
624
|
const parsedBody = parsedOutput.body;
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
$metadata,
|
|
625
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
626
|
+
output,
|
|
627
|
+
parsedBody,
|
|
628
|
+
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
629
|
+
errorCode,
|
|
653
630
|
});
|
|
654
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
655
631
|
}
|
|
656
632
|
};
|
|
657
633
|
const deserializeAws_json1_1ImportMigrationTaskCommand = async (output, context) => {
|
|
@@ -673,7 +649,6 @@ const deserializeAws_json1_1ImportMigrationTaskCommandError = async (output, con
|
|
|
673
649
|
...output,
|
|
674
650
|
body: await parseBody(output.body, context),
|
|
675
651
|
};
|
|
676
|
-
let response;
|
|
677
652
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
678
653
|
switch (errorCode) {
|
|
679
654
|
case "AccessDeniedException":
|
|
@@ -705,14 +680,12 @@ const deserializeAws_json1_1ImportMigrationTaskCommandError = async (output, con
|
|
|
705
680
|
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
706
681
|
default:
|
|
707
682
|
const parsedBody = parsedOutput.body;
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
$metadata,
|
|
683
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
684
|
+
output,
|
|
685
|
+
parsedBody,
|
|
686
|
+
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
687
|
+
errorCode,
|
|
714
688
|
});
|
|
715
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
716
689
|
}
|
|
717
690
|
};
|
|
718
691
|
const deserializeAws_json1_1ListApplicationStatesCommand = async (output, context) => {
|
|
@@ -734,7 +707,6 @@ const deserializeAws_json1_1ListApplicationStatesCommandError = async (output, c
|
|
|
734
707
|
...output,
|
|
735
708
|
body: await parseBody(output.body, context),
|
|
736
709
|
};
|
|
737
|
-
let response;
|
|
738
710
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
739
711
|
switch (errorCode) {
|
|
740
712
|
case "AccessDeniedException":
|
|
@@ -757,14 +729,12 @@ const deserializeAws_json1_1ListApplicationStatesCommandError = async (output, c
|
|
|
757
729
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
758
730
|
default:
|
|
759
731
|
const parsedBody = parsedOutput.body;
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
$metadata,
|
|
732
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
733
|
+
output,
|
|
734
|
+
parsedBody,
|
|
735
|
+
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
736
|
+
errorCode,
|
|
766
737
|
});
|
|
767
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
768
738
|
}
|
|
769
739
|
};
|
|
770
740
|
const deserializeAws_json1_1ListCreatedArtifactsCommand = async (output, context) => {
|
|
@@ -786,7 +756,6 @@ const deserializeAws_json1_1ListCreatedArtifactsCommandError = async (output, co
|
|
|
786
756
|
...output,
|
|
787
757
|
body: await parseBody(output.body, context),
|
|
788
758
|
};
|
|
789
|
-
let response;
|
|
790
759
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
791
760
|
switch (errorCode) {
|
|
792
761
|
case "AccessDeniedException":
|
|
@@ -812,14 +781,12 @@ const deserializeAws_json1_1ListCreatedArtifactsCommandError = async (output, co
|
|
|
812
781
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
813
782
|
default:
|
|
814
783
|
const parsedBody = parsedOutput.body;
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
$metadata,
|
|
784
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
785
|
+
output,
|
|
786
|
+
parsedBody,
|
|
787
|
+
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
788
|
+
errorCode,
|
|
821
789
|
});
|
|
822
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
823
790
|
}
|
|
824
791
|
};
|
|
825
792
|
const deserializeAws_json1_1ListDiscoveredResourcesCommand = async (output, context) => {
|
|
@@ -841,7 +808,6 @@ const deserializeAws_json1_1ListDiscoveredResourcesCommandError = async (output,
|
|
|
841
808
|
...output,
|
|
842
809
|
body: await parseBody(output.body, context),
|
|
843
810
|
};
|
|
844
|
-
let response;
|
|
845
811
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
846
812
|
switch (errorCode) {
|
|
847
813
|
case "AccessDeniedException":
|
|
@@ -867,14 +833,12 @@ const deserializeAws_json1_1ListDiscoveredResourcesCommandError = async (output,
|
|
|
867
833
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
868
834
|
default:
|
|
869
835
|
const parsedBody = parsedOutput.body;
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
$metadata,
|
|
836
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
837
|
+
output,
|
|
838
|
+
parsedBody,
|
|
839
|
+
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
840
|
+
errorCode,
|
|
876
841
|
});
|
|
877
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
878
842
|
}
|
|
879
843
|
};
|
|
880
844
|
const deserializeAws_json1_1ListMigrationTasksCommand = async (output, context) => {
|
|
@@ -896,7 +860,6 @@ const deserializeAws_json1_1ListMigrationTasksCommandError = async (output, cont
|
|
|
896
860
|
...output,
|
|
897
861
|
body: await parseBody(output.body, context),
|
|
898
862
|
};
|
|
899
|
-
let response;
|
|
900
863
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
901
864
|
switch (errorCode) {
|
|
902
865
|
case "AccessDeniedException":
|
|
@@ -925,14 +888,12 @@ const deserializeAws_json1_1ListMigrationTasksCommandError = async (output, cont
|
|
|
925
888
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
926
889
|
default:
|
|
927
890
|
const parsedBody = parsedOutput.body;
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
$metadata,
|
|
891
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
892
|
+
output,
|
|
893
|
+
parsedBody,
|
|
894
|
+
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
895
|
+
errorCode,
|
|
934
896
|
});
|
|
935
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
936
897
|
}
|
|
937
898
|
};
|
|
938
899
|
const deserializeAws_json1_1ListProgressUpdateStreamsCommand = async (output, context) => {
|
|
@@ -954,7 +915,6 @@ const deserializeAws_json1_1ListProgressUpdateStreamsCommandError = async (outpu
|
|
|
954
915
|
...output,
|
|
955
916
|
body: await parseBody(output.body, context),
|
|
956
917
|
};
|
|
957
|
-
let response;
|
|
958
918
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
919
|
switch (errorCode) {
|
|
960
920
|
case "AccessDeniedException":
|
|
@@ -977,14 +937,12 @@ const deserializeAws_json1_1ListProgressUpdateStreamsCommandError = async (outpu
|
|
|
977
937
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
978
938
|
default:
|
|
979
939
|
const parsedBody = parsedOutput.body;
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
$metadata,
|
|
940
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
941
|
+
output,
|
|
942
|
+
parsedBody,
|
|
943
|
+
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
944
|
+
errorCode,
|
|
986
945
|
});
|
|
987
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
988
946
|
}
|
|
989
947
|
};
|
|
990
948
|
const deserializeAws_json1_1NotifyApplicationStateCommand = async (output, context) => {
|
|
@@ -1006,7 +964,6 @@ const deserializeAws_json1_1NotifyApplicationStateCommandError = async (output,
|
|
|
1006
964
|
...output,
|
|
1007
965
|
body: await parseBody(output.body, context),
|
|
1008
966
|
};
|
|
1009
|
-
let response;
|
|
1010
967
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1011
968
|
switch (errorCode) {
|
|
1012
969
|
case "AccessDeniedException":
|
|
@@ -1041,14 +998,12 @@ const deserializeAws_json1_1NotifyApplicationStateCommandError = async (output,
|
|
|
1041
998
|
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
1042
999
|
default:
|
|
1043
1000
|
const parsedBody = parsedOutput.body;
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
$metadata,
|
|
1001
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1002
|
+
output,
|
|
1003
|
+
parsedBody,
|
|
1004
|
+
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
1005
|
+
errorCode,
|
|
1050
1006
|
});
|
|
1051
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1052
1007
|
}
|
|
1053
1008
|
};
|
|
1054
1009
|
const deserializeAws_json1_1NotifyMigrationTaskStateCommand = async (output, context) => {
|
|
@@ -1070,7 +1025,6 @@ const deserializeAws_json1_1NotifyMigrationTaskStateCommandError = async (output
|
|
|
1070
1025
|
...output,
|
|
1071
1026
|
body: await parseBody(output.body, context),
|
|
1072
1027
|
};
|
|
1073
|
-
let response;
|
|
1074
1028
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1075
1029
|
switch (errorCode) {
|
|
1076
1030
|
case "AccessDeniedException":
|
|
@@ -1102,14 +1056,12 @@ const deserializeAws_json1_1NotifyMigrationTaskStateCommandError = async (output
|
|
|
1102
1056
|
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
1103
1057
|
default:
|
|
1104
1058
|
const parsedBody = parsedOutput.body;
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
$metadata,
|
|
1059
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1060
|
+
output,
|
|
1061
|
+
parsedBody,
|
|
1062
|
+
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
1063
|
+
errorCode,
|
|
1111
1064
|
});
|
|
1112
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1113
1065
|
}
|
|
1114
1066
|
};
|
|
1115
1067
|
const deserializeAws_json1_1PutResourceAttributesCommand = async (output, context) => {
|
|
@@ -1131,7 +1083,6 @@ const deserializeAws_json1_1PutResourceAttributesCommandError = async (output, c
|
|
|
1131
1083
|
...output,
|
|
1132
1084
|
body: await parseBody(output.body, context),
|
|
1133
1085
|
};
|
|
1134
|
-
let response;
|
|
1135
1086
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1136
1087
|
switch (errorCode) {
|
|
1137
1088
|
case "AccessDeniedException":
|
|
@@ -1163,14 +1114,12 @@ const deserializeAws_json1_1PutResourceAttributesCommandError = async (output, c
|
|
|
1163
1114
|
throw await deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context);
|
|
1164
1115
|
default:
|
|
1165
1116
|
const parsedBody = parsedOutput.body;
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
$metadata,
|
|
1117
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1118
|
+
output,
|
|
1119
|
+
parsedBody,
|
|
1120
|
+
exceptionCtor: MigrationHubServiceException_1.MigrationHubServiceException,
|
|
1121
|
+
errorCode,
|
|
1172
1122
|
});
|
|
1173
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1174
1123
|
}
|
|
1175
1124
|
};
|
|
1176
1125
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -1267,9 +1216,6 @@ const serializeAws_json1_1ApplicationIds = (input, context) => {
|
|
|
1267
1216
|
return input
|
|
1268
1217
|
.filter((e) => e != null)
|
|
1269
1218
|
.map((entry) => {
|
|
1270
|
-
if (entry === null) {
|
|
1271
|
-
return null;
|
|
1272
|
-
}
|
|
1273
1219
|
return entry;
|
|
1274
1220
|
});
|
|
1275
1221
|
};
|
|
@@ -1427,9 +1373,6 @@ const serializeAws_json1_1ResourceAttributeList = (input, context) => {
|
|
|
1427
1373
|
return input
|
|
1428
1374
|
.filter((e) => e != null)
|
|
1429
1375
|
.map((entry) => {
|
|
1430
|
-
if (entry === null) {
|
|
1431
|
-
return null;
|
|
1432
|
-
}
|
|
1433
1376
|
return serializeAws_json1_1ResourceAttribute(entry, context);
|
|
1434
1377
|
});
|
|
1435
1378
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { AssociateCreatedArtifactRequestFilterSensitiveLog, AssociateCreatedArtifactResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_json1_1AssociateCreatedArtifactCommand, serializeAws_json1_1AssociateCreatedArtifactCommand, } from "../protocols/Aws_json1_1";
|
|
6
6
|
var AssociateCreatedArtifactCommand = (function (_super) {
|
|
7
7
|
__extends(AssociateCreatedArtifactCommand, _super);
|
|
@@ -20,8 +20,8 @@ var AssociateCreatedArtifactCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: AssociateCreatedArtifactRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: AssociateCreatedArtifactResultFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { AssociateDiscoveredResourceRequestFilterSensitiveLog, AssociateDiscoveredResourceResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_json1_1AssociateDiscoveredResourceCommand, serializeAws_json1_1AssociateDiscoveredResourceCommand, } from "../protocols/Aws_json1_1";
|
|
6
6
|
var AssociateDiscoveredResourceCommand = (function (_super) {
|
|
7
7
|
__extends(AssociateDiscoveredResourceCommand, _super);
|
|
@@ -20,8 +20,8 @@ var AssociateDiscoveredResourceCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: AssociateDiscoveredResourceRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: AssociateDiscoveredResourceResultFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { CreateProgressUpdateStreamRequestFilterSensitiveLog, CreateProgressUpdateStreamResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_json1_1CreateProgressUpdateStreamCommand, serializeAws_json1_1CreateProgressUpdateStreamCommand, } from "../protocols/Aws_json1_1";
|
|
6
6
|
var CreateProgressUpdateStreamCommand = (function (_super) {
|
|
7
7
|
__extends(CreateProgressUpdateStreamCommand, _super);
|
|
@@ -20,8 +20,8 @@ var CreateProgressUpdateStreamCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: CreateProgressUpdateStreamRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateProgressUpdateStreamResultFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DeleteProgressUpdateStreamRequestFilterSensitiveLog, DeleteProgressUpdateStreamResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_json1_1DeleteProgressUpdateStreamCommand, serializeAws_json1_1DeleteProgressUpdateStreamCommand, } from "../protocols/Aws_json1_1";
|
|
6
6
|
var DeleteProgressUpdateStreamCommand = (function (_super) {
|
|
7
7
|
__extends(DeleteProgressUpdateStreamCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DeleteProgressUpdateStreamCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DeleteProgressUpdateStreamRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteProgressUpdateStreamResultFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DescribeApplicationStateRequestFilterSensitiveLog, DescribeApplicationStateResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_json1_1DescribeApplicationStateCommand, serializeAws_json1_1DescribeApplicationStateCommand, } from "../protocols/Aws_json1_1";
|
|
6
6
|
var DescribeApplicationStateCommand = (function (_super) {
|
|
7
7
|
__extends(DescribeApplicationStateCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DescribeApplicationStateCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DescribeApplicationStateRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeApplicationStateResultFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DescribeMigrationTaskRequestFilterSensitiveLog, DescribeMigrationTaskResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_json1_1DescribeMigrationTaskCommand, serializeAws_json1_1DescribeMigrationTaskCommand, } from "../protocols/Aws_json1_1";
|
|
6
6
|
var DescribeMigrationTaskCommand = (function (_super) {
|
|
7
7
|
__extends(DescribeMigrationTaskCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DescribeMigrationTaskCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DescribeMigrationTaskRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeMigrationTaskResultFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DisassociateCreatedArtifactRequestFilterSensitiveLog, DisassociateCreatedArtifactResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_json1_1DisassociateCreatedArtifactCommand, serializeAws_json1_1DisassociateCreatedArtifactCommand, } from "../protocols/Aws_json1_1";
|
|
6
6
|
var DisassociateCreatedArtifactCommand = (function (_super) {
|
|
7
7
|
__extends(DisassociateCreatedArtifactCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DisassociateCreatedArtifactCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DisassociateCreatedArtifactRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DisassociateCreatedArtifactResultFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|