@aws-sdk/client-transfer 3.118.1 → 3.128.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +387 -473
- package/dist-es/protocols/Aws_json1_1.js +292 -378
- package/package.json +27 -27
|
@@ -346,8 +346,7 @@ const deserializeAws_json1_1CreateAccessCommandError = async (output, context) =
|
|
|
346
346
|
body: await parseBody(output.body, context),
|
|
347
347
|
};
|
|
348
348
|
let response;
|
|
349
|
-
|
|
350
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
349
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
351
350
|
switch (errorCode) {
|
|
352
351
|
case "InternalServiceError":
|
|
353
352
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -366,10 +365,12 @@ const deserializeAws_json1_1CreateAccessCommandError = async (output, context) =
|
|
|
366
365
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
367
366
|
default:
|
|
368
367
|
const parsedBody = parsedOutput.body;
|
|
368
|
+
const $metadata = deserializeMetadata(output);
|
|
369
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
369
370
|
response = new TransferServiceException_1.TransferServiceException({
|
|
370
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
371
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
371
372
|
$fault: "client",
|
|
372
|
-
$metadata
|
|
373
|
+
$metadata,
|
|
373
374
|
});
|
|
374
375
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
375
376
|
}
|
|
@@ -394,8 +395,7 @@ const deserializeAws_json1_1CreateServerCommandError = async (output, context) =
|
|
|
394
395
|
body: await parseBody(output.body, context),
|
|
395
396
|
};
|
|
396
397
|
let response;
|
|
397
|
-
|
|
398
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
398
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
399
399
|
switch (errorCode) {
|
|
400
400
|
case "AccessDeniedException":
|
|
401
401
|
case "com.amazonaws.transfer#AccessDeniedException":
|
|
@@ -420,10 +420,12 @@ const deserializeAws_json1_1CreateServerCommandError = async (output, context) =
|
|
|
420
420
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
421
421
|
default:
|
|
422
422
|
const parsedBody = parsedOutput.body;
|
|
423
|
+
const $metadata = deserializeMetadata(output);
|
|
424
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
423
425
|
response = new TransferServiceException_1.TransferServiceException({
|
|
424
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
426
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
425
427
|
$fault: "client",
|
|
426
|
-
$metadata
|
|
428
|
+
$metadata,
|
|
427
429
|
});
|
|
428
430
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
429
431
|
}
|
|
@@ -448,8 +450,7 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
448
450
|
body: await parseBody(output.body, context),
|
|
449
451
|
};
|
|
450
452
|
let response;
|
|
451
|
-
|
|
452
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
453
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
453
454
|
switch (errorCode) {
|
|
454
455
|
case "InternalServiceError":
|
|
455
456
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -468,10 +469,12 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
468
469
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
469
470
|
default:
|
|
470
471
|
const parsedBody = parsedOutput.body;
|
|
472
|
+
const $metadata = deserializeMetadata(output);
|
|
473
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
471
474
|
response = new TransferServiceException_1.TransferServiceException({
|
|
472
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
475
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
473
476
|
$fault: "client",
|
|
474
|
-
$metadata
|
|
477
|
+
$metadata,
|
|
475
478
|
});
|
|
476
479
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
477
480
|
}
|
|
@@ -496,8 +499,7 @@ const deserializeAws_json1_1CreateWorkflowCommandError = async (output, context)
|
|
|
496
499
|
body: await parseBody(output.body, context),
|
|
497
500
|
};
|
|
498
501
|
let response;
|
|
499
|
-
|
|
500
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
502
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
501
503
|
switch (errorCode) {
|
|
502
504
|
case "AccessDeniedException":
|
|
503
505
|
case "com.amazonaws.transfer#AccessDeniedException":
|
|
@@ -519,10 +521,12 @@ const deserializeAws_json1_1CreateWorkflowCommandError = async (output, context)
|
|
|
519
521
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
520
522
|
default:
|
|
521
523
|
const parsedBody = parsedOutput.body;
|
|
524
|
+
const $metadata = deserializeMetadata(output);
|
|
525
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
522
526
|
response = new TransferServiceException_1.TransferServiceException({
|
|
523
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
527
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
524
528
|
$fault: "client",
|
|
525
|
-
$metadata
|
|
529
|
+
$metadata,
|
|
526
530
|
});
|
|
527
531
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
528
532
|
}
|
|
@@ -544,8 +548,7 @@ const deserializeAws_json1_1DeleteAccessCommandError = async (output, context) =
|
|
|
544
548
|
body: await parseBody(output.body, context),
|
|
545
549
|
};
|
|
546
550
|
let response;
|
|
547
|
-
|
|
548
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
551
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
549
552
|
switch (errorCode) {
|
|
550
553
|
case "InternalServiceError":
|
|
551
554
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -561,10 +564,12 @@ const deserializeAws_json1_1DeleteAccessCommandError = async (output, context) =
|
|
|
561
564
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
562
565
|
default:
|
|
563
566
|
const parsedBody = parsedOutput.body;
|
|
567
|
+
const $metadata = deserializeMetadata(output);
|
|
568
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
564
569
|
response = new TransferServiceException_1.TransferServiceException({
|
|
565
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
570
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
566
571
|
$fault: "client",
|
|
567
|
-
$metadata
|
|
572
|
+
$metadata,
|
|
568
573
|
});
|
|
569
574
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
570
575
|
}
|
|
@@ -586,8 +591,7 @@ const deserializeAws_json1_1DeleteServerCommandError = async (output, context) =
|
|
|
586
591
|
body: await parseBody(output.body, context),
|
|
587
592
|
};
|
|
588
593
|
let response;
|
|
589
|
-
|
|
590
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
594
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
591
595
|
switch (errorCode) {
|
|
592
596
|
case "AccessDeniedException":
|
|
593
597
|
case "com.amazonaws.transfer#AccessDeniedException":
|
|
@@ -606,10 +610,12 @@ const deserializeAws_json1_1DeleteServerCommandError = async (output, context) =
|
|
|
606
610
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
607
611
|
default:
|
|
608
612
|
const parsedBody = parsedOutput.body;
|
|
613
|
+
const $metadata = deserializeMetadata(output);
|
|
614
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
609
615
|
response = new TransferServiceException_1.TransferServiceException({
|
|
610
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
616
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
611
617
|
$fault: "client",
|
|
612
|
-
$metadata
|
|
618
|
+
$metadata,
|
|
613
619
|
});
|
|
614
620
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
615
621
|
}
|
|
@@ -631,8 +637,7 @@ const deserializeAws_json1_1DeleteSshPublicKeyCommandError = async (output, cont
|
|
|
631
637
|
body: await parseBody(output.body, context),
|
|
632
638
|
};
|
|
633
639
|
let response;
|
|
634
|
-
|
|
635
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
640
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
636
641
|
switch (errorCode) {
|
|
637
642
|
case "InternalServiceError":
|
|
638
643
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -651,10 +656,12 @@ const deserializeAws_json1_1DeleteSshPublicKeyCommandError = async (output, cont
|
|
|
651
656
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
652
657
|
default:
|
|
653
658
|
const parsedBody = parsedOutput.body;
|
|
659
|
+
const $metadata = deserializeMetadata(output);
|
|
660
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
654
661
|
response = new TransferServiceException_1.TransferServiceException({
|
|
655
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
662
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
656
663
|
$fault: "client",
|
|
657
|
-
$metadata
|
|
664
|
+
$metadata,
|
|
658
665
|
});
|
|
659
666
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
660
667
|
}
|
|
@@ -676,8 +683,7 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
676
683
|
body: await parseBody(output.body, context),
|
|
677
684
|
};
|
|
678
685
|
let response;
|
|
679
|
-
|
|
680
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
686
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
681
687
|
switch (errorCode) {
|
|
682
688
|
case "InternalServiceError":
|
|
683
689
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -693,10 +699,12 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
693
699
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
694
700
|
default:
|
|
695
701
|
const parsedBody = parsedOutput.body;
|
|
702
|
+
const $metadata = deserializeMetadata(output);
|
|
703
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
696
704
|
response = new TransferServiceException_1.TransferServiceException({
|
|
697
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
705
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
698
706
|
$fault: "client",
|
|
699
|
-
$metadata
|
|
707
|
+
$metadata,
|
|
700
708
|
});
|
|
701
709
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
702
710
|
}
|
|
@@ -718,8 +726,7 @@ const deserializeAws_json1_1DeleteWorkflowCommandError = async (output, context)
|
|
|
718
726
|
body: await parseBody(output.body, context),
|
|
719
727
|
};
|
|
720
728
|
let response;
|
|
721
|
-
|
|
722
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
729
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
730
|
switch (errorCode) {
|
|
724
731
|
case "AccessDeniedException":
|
|
725
732
|
case "com.amazonaws.transfer#AccessDeniedException":
|
|
@@ -738,10 +745,12 @@ const deserializeAws_json1_1DeleteWorkflowCommandError = async (output, context)
|
|
|
738
745
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
739
746
|
default:
|
|
740
747
|
const parsedBody = parsedOutput.body;
|
|
748
|
+
const $metadata = deserializeMetadata(output);
|
|
749
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
741
750
|
response = new TransferServiceException_1.TransferServiceException({
|
|
742
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
751
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
743
752
|
$fault: "client",
|
|
744
|
-
$metadata
|
|
753
|
+
$metadata,
|
|
745
754
|
});
|
|
746
755
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
747
756
|
}
|
|
@@ -766,8 +775,7 @@ const deserializeAws_json1_1DescribeAccessCommandError = async (output, context)
|
|
|
766
775
|
body: await parseBody(output.body, context),
|
|
767
776
|
};
|
|
768
777
|
let response;
|
|
769
|
-
|
|
770
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
778
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
771
779
|
switch (errorCode) {
|
|
772
780
|
case "InternalServiceError":
|
|
773
781
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -783,10 +791,12 @@ const deserializeAws_json1_1DescribeAccessCommandError = async (output, context)
|
|
|
783
791
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
784
792
|
default:
|
|
785
793
|
const parsedBody = parsedOutput.body;
|
|
794
|
+
const $metadata = deserializeMetadata(output);
|
|
795
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
786
796
|
response = new TransferServiceException_1.TransferServiceException({
|
|
787
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
797
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
788
798
|
$fault: "client",
|
|
789
|
-
$metadata
|
|
799
|
+
$metadata,
|
|
790
800
|
});
|
|
791
801
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
792
802
|
}
|
|
@@ -811,8 +821,7 @@ const deserializeAws_json1_1DescribeExecutionCommandError = async (output, conte
|
|
|
811
821
|
body: await parseBody(output.body, context),
|
|
812
822
|
};
|
|
813
823
|
let response;
|
|
814
|
-
|
|
815
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
824
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
816
825
|
switch (errorCode) {
|
|
817
826
|
case "InternalServiceError":
|
|
818
827
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -828,10 +837,12 @@ const deserializeAws_json1_1DescribeExecutionCommandError = async (output, conte
|
|
|
828
837
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
829
838
|
default:
|
|
830
839
|
const parsedBody = parsedOutput.body;
|
|
840
|
+
const $metadata = deserializeMetadata(output);
|
|
841
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
831
842
|
response = new TransferServiceException_1.TransferServiceException({
|
|
832
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
843
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
833
844
|
$fault: "client",
|
|
834
|
-
$metadata
|
|
845
|
+
$metadata,
|
|
835
846
|
});
|
|
836
847
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
837
848
|
}
|
|
@@ -856,8 +867,7 @@ const deserializeAws_json1_1DescribeSecurityPolicyCommandError = async (output,
|
|
|
856
867
|
body: await parseBody(output.body, context),
|
|
857
868
|
};
|
|
858
869
|
let response;
|
|
859
|
-
|
|
860
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
861
871
|
switch (errorCode) {
|
|
862
872
|
case "InternalServiceError":
|
|
863
873
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -873,10 +883,12 @@ const deserializeAws_json1_1DescribeSecurityPolicyCommandError = async (output,
|
|
|
873
883
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
874
884
|
default:
|
|
875
885
|
const parsedBody = parsedOutput.body;
|
|
886
|
+
const $metadata = deserializeMetadata(output);
|
|
887
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
876
888
|
response = new TransferServiceException_1.TransferServiceException({
|
|
877
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
889
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
878
890
|
$fault: "client",
|
|
879
|
-
$metadata
|
|
891
|
+
$metadata,
|
|
880
892
|
});
|
|
881
893
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
882
894
|
}
|
|
@@ -901,8 +913,7 @@ const deserializeAws_json1_1DescribeServerCommandError = async (output, context)
|
|
|
901
913
|
body: await parseBody(output.body, context),
|
|
902
914
|
};
|
|
903
915
|
let response;
|
|
904
|
-
|
|
905
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
916
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
906
917
|
switch (errorCode) {
|
|
907
918
|
case "InternalServiceError":
|
|
908
919
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -918,10 +929,12 @@ const deserializeAws_json1_1DescribeServerCommandError = async (output, context)
|
|
|
918
929
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
919
930
|
default:
|
|
920
931
|
const parsedBody = parsedOutput.body;
|
|
932
|
+
const $metadata = deserializeMetadata(output);
|
|
933
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
921
934
|
response = new TransferServiceException_1.TransferServiceException({
|
|
922
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
935
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
923
936
|
$fault: "client",
|
|
924
|
-
$metadata
|
|
937
|
+
$metadata,
|
|
925
938
|
});
|
|
926
939
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
927
940
|
}
|
|
@@ -946,8 +959,7 @@ const deserializeAws_json1_1DescribeUserCommandError = async (output, context) =
|
|
|
946
959
|
body: await parseBody(output.body, context),
|
|
947
960
|
};
|
|
948
961
|
let response;
|
|
949
|
-
|
|
950
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
951
963
|
switch (errorCode) {
|
|
952
964
|
case "InternalServiceError":
|
|
953
965
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -963,10 +975,12 @@ const deserializeAws_json1_1DescribeUserCommandError = async (output, context) =
|
|
|
963
975
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
964
976
|
default:
|
|
965
977
|
const parsedBody = parsedOutput.body;
|
|
978
|
+
const $metadata = deserializeMetadata(output);
|
|
979
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
966
980
|
response = new TransferServiceException_1.TransferServiceException({
|
|
967
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
981
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
968
982
|
$fault: "client",
|
|
969
|
-
$metadata
|
|
983
|
+
$metadata,
|
|
970
984
|
});
|
|
971
985
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
972
986
|
}
|
|
@@ -991,8 +1005,7 @@ const deserializeAws_json1_1DescribeWorkflowCommandError = async (output, contex
|
|
|
991
1005
|
body: await parseBody(output.body, context),
|
|
992
1006
|
};
|
|
993
1007
|
let response;
|
|
994
|
-
|
|
995
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1008
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
996
1009
|
switch (errorCode) {
|
|
997
1010
|
case "InternalServiceError":
|
|
998
1011
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -1008,10 +1021,12 @@ const deserializeAws_json1_1DescribeWorkflowCommandError = async (output, contex
|
|
|
1008
1021
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1009
1022
|
default:
|
|
1010
1023
|
const parsedBody = parsedOutput.body;
|
|
1024
|
+
const $metadata = deserializeMetadata(output);
|
|
1025
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1011
1026
|
response = new TransferServiceException_1.TransferServiceException({
|
|
1012
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1027
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1013
1028
|
$fault: "client",
|
|
1014
|
-
$metadata
|
|
1029
|
+
$metadata,
|
|
1015
1030
|
});
|
|
1016
1031
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1017
1032
|
}
|
|
@@ -1036,8 +1051,7 @@ const deserializeAws_json1_1ImportSshPublicKeyCommandError = async (output, cont
|
|
|
1036
1051
|
body: await parseBody(output.body, context),
|
|
1037
1052
|
};
|
|
1038
1053
|
let response;
|
|
1039
|
-
|
|
1040
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1054
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1041
1055
|
switch (errorCode) {
|
|
1042
1056
|
case "InternalServiceError":
|
|
1043
1057
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -1059,10 +1073,12 @@ const deserializeAws_json1_1ImportSshPublicKeyCommandError = async (output, cont
|
|
|
1059
1073
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1060
1074
|
default:
|
|
1061
1075
|
const parsedBody = parsedOutput.body;
|
|
1076
|
+
const $metadata = deserializeMetadata(output);
|
|
1077
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1062
1078
|
response = new TransferServiceException_1.TransferServiceException({
|
|
1063
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1079
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1064
1080
|
$fault: "client",
|
|
1065
|
-
$metadata
|
|
1081
|
+
$metadata,
|
|
1066
1082
|
});
|
|
1067
1083
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1068
1084
|
}
|
|
@@ -1087,8 +1103,7 @@ const deserializeAws_json1_1ListAccessesCommandError = async (output, context) =
|
|
|
1087
1103
|
body: await parseBody(output.body, context),
|
|
1088
1104
|
};
|
|
1089
1105
|
let response;
|
|
1090
|
-
|
|
1091
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1106
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1092
1107
|
switch (errorCode) {
|
|
1093
1108
|
case "InternalServiceError":
|
|
1094
1109
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -1107,10 +1122,12 @@ const deserializeAws_json1_1ListAccessesCommandError = async (output, context) =
|
|
|
1107
1122
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1108
1123
|
default:
|
|
1109
1124
|
const parsedBody = parsedOutput.body;
|
|
1125
|
+
const $metadata = deserializeMetadata(output);
|
|
1126
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1110
1127
|
response = new TransferServiceException_1.TransferServiceException({
|
|
1111
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1128
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1112
1129
|
$fault: "client",
|
|
1113
|
-
$metadata
|
|
1130
|
+
$metadata,
|
|
1114
1131
|
});
|
|
1115
1132
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1116
1133
|
}
|
|
@@ -1135,8 +1152,7 @@ const deserializeAws_json1_1ListExecutionsCommandError = async (output, context)
|
|
|
1135
1152
|
body: await parseBody(output.body, context),
|
|
1136
1153
|
};
|
|
1137
1154
|
let response;
|
|
1138
|
-
|
|
1139
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1155
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1140
1156
|
switch (errorCode) {
|
|
1141
1157
|
case "InternalServiceError":
|
|
1142
1158
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -1155,10 +1171,12 @@ const deserializeAws_json1_1ListExecutionsCommandError = async (output, context)
|
|
|
1155
1171
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1156
1172
|
default:
|
|
1157
1173
|
const parsedBody = parsedOutput.body;
|
|
1174
|
+
const $metadata = deserializeMetadata(output);
|
|
1175
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1158
1176
|
response = new TransferServiceException_1.TransferServiceException({
|
|
1159
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1177
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1160
1178
|
$fault: "client",
|
|
1161
|
-
$metadata
|
|
1179
|
+
$metadata,
|
|
1162
1180
|
});
|
|
1163
1181
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1164
1182
|
}
|
|
@@ -1183,8 +1201,7 @@ const deserializeAws_json1_1ListSecurityPoliciesCommandError = async (output, co
|
|
|
1183
1201
|
body: await parseBody(output.body, context),
|
|
1184
1202
|
};
|
|
1185
1203
|
let response;
|
|
1186
|
-
|
|
1187
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1204
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
1205
|
switch (errorCode) {
|
|
1189
1206
|
case "InternalServiceError":
|
|
1190
1207
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -1200,10 +1217,12 @@ const deserializeAws_json1_1ListSecurityPoliciesCommandError = async (output, co
|
|
|
1200
1217
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1201
1218
|
default:
|
|
1202
1219
|
const parsedBody = parsedOutput.body;
|
|
1220
|
+
const $metadata = deserializeMetadata(output);
|
|
1221
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1203
1222
|
response = new TransferServiceException_1.TransferServiceException({
|
|
1204
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1223
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1205
1224
|
$fault: "client",
|
|
1206
|
-
$metadata
|
|
1225
|
+
$metadata,
|
|
1207
1226
|
});
|
|
1208
1227
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1209
1228
|
}
|
|
@@ -1228,8 +1247,7 @@ const deserializeAws_json1_1ListServersCommandError = async (output, context) =>
|
|
|
1228
1247
|
body: await parseBody(output.body, context),
|
|
1229
1248
|
};
|
|
1230
1249
|
let response;
|
|
1231
|
-
|
|
1232
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1250
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1233
1251
|
switch (errorCode) {
|
|
1234
1252
|
case "InternalServiceError":
|
|
1235
1253
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -1245,10 +1263,12 @@ const deserializeAws_json1_1ListServersCommandError = async (output, context) =>
|
|
|
1245
1263
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1246
1264
|
default:
|
|
1247
1265
|
const parsedBody = parsedOutput.body;
|
|
1266
|
+
const $metadata = deserializeMetadata(output);
|
|
1267
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1248
1268
|
response = new TransferServiceException_1.TransferServiceException({
|
|
1249
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1269
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1250
1270
|
$fault: "client",
|
|
1251
|
-
$metadata
|
|
1271
|
+
$metadata,
|
|
1252
1272
|
});
|
|
1253
1273
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1254
1274
|
}
|
|
@@ -1273,8 +1293,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1273
1293
|
body: await parseBody(output.body, context),
|
|
1274
1294
|
};
|
|
1275
1295
|
let response;
|
|
1276
|
-
|
|
1277
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1296
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1278
1297
|
switch (errorCode) {
|
|
1279
1298
|
case "InternalServiceError":
|
|
1280
1299
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -1290,10 +1309,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1290
1309
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1291
1310
|
default:
|
|
1292
1311
|
const parsedBody = parsedOutput.body;
|
|
1312
|
+
const $metadata = deserializeMetadata(output);
|
|
1313
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1293
1314
|
response = new TransferServiceException_1.TransferServiceException({
|
|
1294
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1315
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1295
1316
|
$fault: "client",
|
|
1296
|
-
$metadata
|
|
1317
|
+
$metadata,
|
|
1297
1318
|
});
|
|
1298
1319
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1299
1320
|
}
|
|
@@ -1318,8 +1339,7 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
|
1318
1339
|
body: await parseBody(output.body, context),
|
|
1319
1340
|
};
|
|
1320
1341
|
let response;
|
|
1321
|
-
|
|
1322
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1342
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
1343
|
switch (errorCode) {
|
|
1324
1344
|
case "InternalServiceError":
|
|
1325
1345
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -1338,10 +1358,12 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
|
1338
1358
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1339
1359
|
default:
|
|
1340
1360
|
const parsedBody = parsedOutput.body;
|
|
1361
|
+
const $metadata = deserializeMetadata(output);
|
|
1362
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1341
1363
|
response = new TransferServiceException_1.TransferServiceException({
|
|
1342
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1364
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1343
1365
|
$fault: "client",
|
|
1344
|
-
$metadata
|
|
1366
|
+
$metadata,
|
|
1345
1367
|
});
|
|
1346
1368
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1347
1369
|
}
|
|
@@ -1366,8 +1388,7 @@ const deserializeAws_json1_1ListWorkflowsCommandError = async (output, context)
|
|
|
1366
1388
|
body: await parseBody(output.body, context),
|
|
1367
1389
|
};
|
|
1368
1390
|
let response;
|
|
1369
|
-
|
|
1370
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1371
1392
|
switch (errorCode) {
|
|
1372
1393
|
case "InternalServiceError":
|
|
1373
1394
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -1383,10 +1404,12 @@ const deserializeAws_json1_1ListWorkflowsCommandError = async (output, context)
|
|
|
1383
1404
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1384
1405
|
default:
|
|
1385
1406
|
const parsedBody = parsedOutput.body;
|
|
1407
|
+
const $metadata = deserializeMetadata(output);
|
|
1408
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1386
1409
|
response = new TransferServiceException_1.TransferServiceException({
|
|
1387
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1410
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1388
1411
|
$fault: "client",
|
|
1389
|
-
$metadata
|
|
1412
|
+
$metadata,
|
|
1390
1413
|
});
|
|
1391
1414
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1392
1415
|
}
|
|
@@ -1411,8 +1434,7 @@ const deserializeAws_json1_1SendWorkflowStepStateCommandError = async (output, c
|
|
|
1411
1434
|
body: await parseBody(output.body, context),
|
|
1412
1435
|
};
|
|
1413
1436
|
let response;
|
|
1414
|
-
|
|
1415
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1437
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1416
1438
|
switch (errorCode) {
|
|
1417
1439
|
case "AccessDeniedException":
|
|
1418
1440
|
case "com.amazonaws.transfer#AccessDeniedException":
|
|
@@ -1434,10 +1456,12 @@ const deserializeAws_json1_1SendWorkflowStepStateCommandError = async (output, c
|
|
|
1434
1456
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1435
1457
|
default:
|
|
1436
1458
|
const parsedBody = parsedOutput.body;
|
|
1459
|
+
const $metadata = deserializeMetadata(output);
|
|
1460
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1437
1461
|
response = new TransferServiceException_1.TransferServiceException({
|
|
1438
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1462
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1439
1463
|
$fault: "client",
|
|
1440
|
-
$metadata
|
|
1464
|
+
$metadata,
|
|
1441
1465
|
});
|
|
1442
1466
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1443
1467
|
}
|
|
@@ -1459,8 +1483,7 @@ const deserializeAws_json1_1StartServerCommandError = async (output, context) =>
|
|
|
1459
1483
|
body: await parseBody(output.body, context),
|
|
1460
1484
|
};
|
|
1461
1485
|
let response;
|
|
1462
|
-
|
|
1463
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1486
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1464
1487
|
switch (errorCode) {
|
|
1465
1488
|
case "InternalServiceError":
|
|
1466
1489
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -1479,10 +1502,12 @@ const deserializeAws_json1_1StartServerCommandError = async (output, context) =>
|
|
|
1479
1502
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1480
1503
|
default:
|
|
1481
1504
|
const parsedBody = parsedOutput.body;
|
|
1505
|
+
const $metadata = deserializeMetadata(output);
|
|
1506
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1482
1507
|
response = new TransferServiceException_1.TransferServiceException({
|
|
1483
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1508
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1484
1509
|
$fault: "client",
|
|
1485
|
-
$metadata
|
|
1510
|
+
$metadata,
|
|
1486
1511
|
});
|
|
1487
1512
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1488
1513
|
}
|
|
@@ -1504,8 +1529,7 @@ const deserializeAws_json1_1StopServerCommandError = async (output, context) =>
|
|
|
1504
1529
|
body: await parseBody(output.body, context),
|
|
1505
1530
|
};
|
|
1506
1531
|
let response;
|
|
1507
|
-
|
|
1508
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1532
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1509
1533
|
switch (errorCode) {
|
|
1510
1534
|
case "InternalServiceError":
|
|
1511
1535
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -1524,10 +1548,12 @@ const deserializeAws_json1_1StopServerCommandError = async (output, context) =>
|
|
|
1524
1548
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1525
1549
|
default:
|
|
1526
1550
|
const parsedBody = parsedOutput.body;
|
|
1551
|
+
const $metadata = deserializeMetadata(output);
|
|
1552
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1527
1553
|
response = new TransferServiceException_1.TransferServiceException({
|
|
1528
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1554
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1529
1555
|
$fault: "client",
|
|
1530
|
-
$metadata
|
|
1556
|
+
$metadata,
|
|
1531
1557
|
});
|
|
1532
1558
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1533
1559
|
}
|
|
@@ -1549,8 +1575,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1549
1575
|
body: await parseBody(output.body, context),
|
|
1550
1576
|
};
|
|
1551
1577
|
let response;
|
|
1552
|
-
|
|
1553
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1578
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1554
1579
|
switch (errorCode) {
|
|
1555
1580
|
case "InternalServiceError":
|
|
1556
1581
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -1566,10 +1591,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1566
1591
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1567
1592
|
default:
|
|
1568
1593
|
const parsedBody = parsedOutput.body;
|
|
1594
|
+
const $metadata = deserializeMetadata(output);
|
|
1595
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1569
1596
|
response = new TransferServiceException_1.TransferServiceException({
|
|
1570
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1597
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1571
1598
|
$fault: "client",
|
|
1572
|
-
$metadata
|
|
1599
|
+
$metadata,
|
|
1573
1600
|
});
|
|
1574
1601
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1575
1602
|
}
|
|
@@ -1594,8 +1621,7 @@ const deserializeAws_json1_1TestIdentityProviderCommandError = async (output, co
|
|
|
1594
1621
|
body: await parseBody(output.body, context),
|
|
1595
1622
|
};
|
|
1596
1623
|
let response;
|
|
1597
|
-
|
|
1598
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1599
1625
|
switch (errorCode) {
|
|
1600
1626
|
case "InternalServiceError":
|
|
1601
1627
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -1611,10 +1637,12 @@ const deserializeAws_json1_1TestIdentityProviderCommandError = async (output, co
|
|
|
1611
1637
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1612
1638
|
default:
|
|
1613
1639
|
const parsedBody = parsedOutput.body;
|
|
1640
|
+
const $metadata = deserializeMetadata(output);
|
|
1641
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1614
1642
|
response = new TransferServiceException_1.TransferServiceException({
|
|
1615
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1643
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1616
1644
|
$fault: "client",
|
|
1617
|
-
$metadata
|
|
1645
|
+
$metadata,
|
|
1618
1646
|
});
|
|
1619
1647
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1620
1648
|
}
|
|
@@ -1636,8 +1664,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1636
1664
|
body: await parseBody(output.body, context),
|
|
1637
1665
|
};
|
|
1638
1666
|
let response;
|
|
1639
|
-
|
|
1640
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1667
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1641
1668
|
switch (errorCode) {
|
|
1642
1669
|
case "InternalServiceError":
|
|
1643
1670
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -1653,10 +1680,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1653
1680
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1654
1681
|
default:
|
|
1655
1682
|
const parsedBody = parsedOutput.body;
|
|
1683
|
+
const $metadata = deserializeMetadata(output);
|
|
1684
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1656
1685
|
response = new TransferServiceException_1.TransferServiceException({
|
|
1657
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1686
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1658
1687
|
$fault: "client",
|
|
1659
|
-
$metadata
|
|
1688
|
+
$metadata,
|
|
1660
1689
|
});
|
|
1661
1690
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1662
1691
|
}
|
|
@@ -1681,8 +1710,7 @@ const deserializeAws_json1_1UpdateAccessCommandError = async (output, context) =
|
|
|
1681
1710
|
body: await parseBody(output.body, context),
|
|
1682
1711
|
};
|
|
1683
1712
|
let response;
|
|
1684
|
-
|
|
1685
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1713
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1686
1714
|
switch (errorCode) {
|
|
1687
1715
|
case "InternalServiceError":
|
|
1688
1716
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -1701,10 +1729,12 @@ const deserializeAws_json1_1UpdateAccessCommandError = async (output, context) =
|
|
|
1701
1729
|
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1702
1730
|
default:
|
|
1703
1731
|
const parsedBody = parsedOutput.body;
|
|
1732
|
+
const $metadata = deserializeMetadata(output);
|
|
1733
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1704
1734
|
response = new TransferServiceException_1.TransferServiceException({
|
|
1705
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1735
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1706
1736
|
$fault: "client",
|
|
1707
|
-
$metadata
|
|
1737
|
+
$metadata,
|
|
1708
1738
|
});
|
|
1709
1739
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1710
1740
|
}
|
|
@@ -1729,8 +1759,7 @@ const deserializeAws_json1_1UpdateServerCommandError = async (output, context) =
|
|
|
1729
1759
|
body: await parseBody(output.body, context),
|
|
1730
1760
|
};
|
|
1731
1761
|
let response;
|
|
1732
|
-
|
|
1733
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1734
1763
|
switch (errorCode) {
|
|
1735
1764
|
case "AccessDeniedException":
|
|
1736
1765
|
case "com.amazonaws.transfer#AccessDeniedException":
|
|
@@ -1758,10 +1787,12 @@ const deserializeAws_json1_1UpdateServerCommandError = async (output, context) =
|
|
|
1758
1787
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1759
1788
|
default:
|
|
1760
1789
|
const parsedBody = parsedOutput.body;
|
|
1790
|
+
const $metadata = deserializeMetadata(output);
|
|
1791
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1761
1792
|
response = new TransferServiceException_1.TransferServiceException({
|
|
1762
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1793
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1763
1794
|
$fault: "client",
|
|
1764
|
-
$metadata
|
|
1795
|
+
$metadata,
|
|
1765
1796
|
});
|
|
1766
1797
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1767
1798
|
}
|
|
@@ -1786,8 +1817,7 @@ const deserializeAws_json1_1UpdateUserCommandError = async (output, context) =>
|
|
|
1786
1817
|
body: await parseBody(output.body, context),
|
|
1787
1818
|
};
|
|
1788
1819
|
let response;
|
|
1789
|
-
|
|
1790
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1820
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1791
1821
|
switch (errorCode) {
|
|
1792
1822
|
case "InternalServiceError":
|
|
1793
1823
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
@@ -1806,10 +1836,12 @@ const deserializeAws_json1_1UpdateUserCommandError = async (output, context) =>
|
|
|
1806
1836
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1807
1837
|
default:
|
|
1808
1838
|
const parsedBody = parsedOutput.body;
|
|
1839
|
+
const $metadata = deserializeMetadata(output);
|
|
1840
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1809
1841
|
response = new TransferServiceException_1.TransferServiceException({
|
|
1810
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1842
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1811
1843
|
$fault: "client",
|
|
1812
|
-
$metadata
|
|
1844
|
+
$metadata,
|
|
1813
1845
|
});
|
|
1814
1846
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1815
1847
|
}
|
|
@@ -1907,213 +1939,184 @@ const serializeAws_json1_1AddressAllocationIds = (input, context) => {
|
|
|
1907
1939
|
};
|
|
1908
1940
|
const serializeAws_json1_1CopyStepDetails = (input, context) => {
|
|
1909
1941
|
return {
|
|
1910
|
-
...(input.DestinationFileLocation
|
|
1911
|
-
input.DestinationFileLocation !== null && {
|
|
1942
|
+
...(input.DestinationFileLocation != null && {
|
|
1912
1943
|
DestinationFileLocation: serializeAws_json1_1InputFileLocation(input.DestinationFileLocation, context),
|
|
1913
1944
|
}),
|
|
1914
|
-
...(input.Name
|
|
1915
|
-
...(input.OverwriteExisting
|
|
1916
|
-
|
|
1917
|
-
...(input.SourceFileLocation !== undefined &&
|
|
1918
|
-
input.SourceFileLocation !== null && { SourceFileLocation: input.SourceFileLocation }),
|
|
1945
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1946
|
+
...(input.OverwriteExisting != null && { OverwriteExisting: input.OverwriteExisting }),
|
|
1947
|
+
...(input.SourceFileLocation != null && { SourceFileLocation: input.SourceFileLocation }),
|
|
1919
1948
|
};
|
|
1920
1949
|
};
|
|
1921
1950
|
const serializeAws_json1_1CreateAccessRequest = (input, context) => {
|
|
1922
1951
|
return {
|
|
1923
|
-
...(input.ExternalId
|
|
1924
|
-
...(input.HomeDirectory
|
|
1925
|
-
...(input.HomeDirectoryMappings
|
|
1926
|
-
input.HomeDirectoryMappings !== null && {
|
|
1952
|
+
...(input.ExternalId != null && { ExternalId: input.ExternalId }),
|
|
1953
|
+
...(input.HomeDirectory != null && { HomeDirectory: input.HomeDirectory }),
|
|
1954
|
+
...(input.HomeDirectoryMappings != null && {
|
|
1927
1955
|
HomeDirectoryMappings: serializeAws_json1_1HomeDirectoryMappings(input.HomeDirectoryMappings, context),
|
|
1928
1956
|
}),
|
|
1929
|
-
...(input.HomeDirectoryType
|
|
1930
|
-
|
|
1931
|
-
...(input.
|
|
1932
|
-
...(input.
|
|
1933
|
-
|
|
1934
|
-
...(input.Role !== undefined && input.Role !== null && { Role: input.Role }),
|
|
1935
|
-
...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
|
|
1957
|
+
...(input.HomeDirectoryType != null && { HomeDirectoryType: input.HomeDirectoryType }),
|
|
1958
|
+
...(input.Policy != null && { Policy: input.Policy }),
|
|
1959
|
+
...(input.PosixProfile != null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) }),
|
|
1960
|
+
...(input.Role != null && { Role: input.Role }),
|
|
1961
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
1936
1962
|
};
|
|
1937
1963
|
};
|
|
1938
1964
|
const serializeAws_json1_1CreateServerRequest = (input, context) => {
|
|
1939
1965
|
return {
|
|
1940
|
-
...(input.Certificate
|
|
1941
|
-
...(input.Domain
|
|
1942
|
-
...(input.EndpointDetails
|
|
1943
|
-
input.EndpointDetails !== null && {
|
|
1966
|
+
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
1967
|
+
...(input.Domain != null && { Domain: input.Domain }),
|
|
1968
|
+
...(input.EndpointDetails != null && {
|
|
1944
1969
|
EndpointDetails: serializeAws_json1_1EndpointDetails(input.EndpointDetails, context),
|
|
1945
1970
|
}),
|
|
1946
|
-
...(input.EndpointType
|
|
1947
|
-
...(input.HostKey
|
|
1948
|
-
...(input.IdentityProviderDetails
|
|
1949
|
-
input.IdentityProviderDetails !== null && {
|
|
1971
|
+
...(input.EndpointType != null && { EndpointType: input.EndpointType }),
|
|
1972
|
+
...(input.HostKey != null && { HostKey: input.HostKey }),
|
|
1973
|
+
...(input.IdentityProviderDetails != null && {
|
|
1950
1974
|
IdentityProviderDetails: serializeAws_json1_1IdentityProviderDetails(input.IdentityProviderDetails, context),
|
|
1951
1975
|
}),
|
|
1952
|
-
...(input.IdentityProviderType
|
|
1953
|
-
|
|
1954
|
-
...(input.
|
|
1955
|
-
...(input.PostAuthenticationLoginBanner !== undefined &&
|
|
1956
|
-
input.PostAuthenticationLoginBanner !== null && {
|
|
1976
|
+
...(input.IdentityProviderType != null && { IdentityProviderType: input.IdentityProviderType }),
|
|
1977
|
+
...(input.LoggingRole != null && { LoggingRole: input.LoggingRole }),
|
|
1978
|
+
...(input.PostAuthenticationLoginBanner != null && {
|
|
1957
1979
|
PostAuthenticationLoginBanner: input.PostAuthenticationLoginBanner,
|
|
1958
1980
|
}),
|
|
1959
|
-
...(input.PreAuthenticationLoginBanner
|
|
1960
|
-
input.PreAuthenticationLoginBanner !== null && {
|
|
1981
|
+
...(input.PreAuthenticationLoginBanner != null && {
|
|
1961
1982
|
PreAuthenticationLoginBanner: input.PreAuthenticationLoginBanner,
|
|
1962
1983
|
}),
|
|
1963
|
-
...(input.ProtocolDetails
|
|
1964
|
-
input.ProtocolDetails !== null && {
|
|
1984
|
+
...(input.ProtocolDetails != null && {
|
|
1965
1985
|
ProtocolDetails: serializeAws_json1_1ProtocolDetails(input.ProtocolDetails, context),
|
|
1966
1986
|
}),
|
|
1967
|
-
...(input.Protocols
|
|
1968
|
-
|
|
1969
|
-
...(input.
|
|
1970
|
-
|
|
1971
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
1972
|
-
...(input.WorkflowDetails !== undefined &&
|
|
1973
|
-
input.WorkflowDetails !== null && {
|
|
1987
|
+
...(input.Protocols != null && { Protocols: serializeAws_json1_1Protocols(input.Protocols, context) }),
|
|
1988
|
+
...(input.SecurityPolicyName != null && { SecurityPolicyName: input.SecurityPolicyName }),
|
|
1989
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
1990
|
+
...(input.WorkflowDetails != null && {
|
|
1974
1991
|
WorkflowDetails: serializeAws_json1_1WorkflowDetails(input.WorkflowDetails, context),
|
|
1975
1992
|
}),
|
|
1976
1993
|
};
|
|
1977
1994
|
};
|
|
1978
1995
|
const serializeAws_json1_1CreateUserRequest = (input, context) => {
|
|
1979
1996
|
return {
|
|
1980
|
-
...(input.HomeDirectory
|
|
1981
|
-
...(input.HomeDirectoryMappings
|
|
1982
|
-
input.HomeDirectoryMappings !== null && {
|
|
1997
|
+
...(input.HomeDirectory != null && { HomeDirectory: input.HomeDirectory }),
|
|
1998
|
+
...(input.HomeDirectoryMappings != null && {
|
|
1983
1999
|
HomeDirectoryMappings: serializeAws_json1_1HomeDirectoryMappings(input.HomeDirectoryMappings, context),
|
|
1984
2000
|
}),
|
|
1985
|
-
...(input.HomeDirectoryType
|
|
1986
|
-
|
|
1987
|
-
...(input.
|
|
1988
|
-
...(input.
|
|
1989
|
-
|
|
1990
|
-
...(input.
|
|
1991
|
-
...(input.
|
|
1992
|
-
...(input.
|
|
1993
|
-
input.SshPublicKeyBody !== null && { SshPublicKeyBody: input.SshPublicKeyBody }),
|
|
1994
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
1995
|
-
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
2001
|
+
...(input.HomeDirectoryType != null && { HomeDirectoryType: input.HomeDirectoryType }),
|
|
2002
|
+
...(input.Policy != null && { Policy: input.Policy }),
|
|
2003
|
+
...(input.PosixProfile != null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) }),
|
|
2004
|
+
...(input.Role != null && { Role: input.Role }),
|
|
2005
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
2006
|
+
...(input.SshPublicKeyBody != null && { SshPublicKeyBody: input.SshPublicKeyBody }),
|
|
2007
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
2008
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
1996
2009
|
};
|
|
1997
2010
|
};
|
|
1998
2011
|
const serializeAws_json1_1CreateWorkflowRequest = (input, context) => {
|
|
1999
2012
|
return {
|
|
2000
|
-
...(input.Description
|
|
2001
|
-
...(input.OnExceptionSteps
|
|
2002
|
-
input.OnExceptionSteps !== null && {
|
|
2013
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2014
|
+
...(input.OnExceptionSteps != null && {
|
|
2003
2015
|
OnExceptionSteps: serializeAws_json1_1WorkflowSteps(input.OnExceptionSteps, context),
|
|
2004
2016
|
}),
|
|
2005
|
-
...(input.Steps
|
|
2006
|
-
|
|
2007
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
2017
|
+
...(input.Steps != null && { Steps: serializeAws_json1_1WorkflowSteps(input.Steps, context) }),
|
|
2018
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
2008
2019
|
};
|
|
2009
2020
|
};
|
|
2010
2021
|
const serializeAws_json1_1CustomStepDetails = (input, context) => {
|
|
2011
2022
|
return {
|
|
2012
|
-
...(input.Name
|
|
2013
|
-
...(input.SourceFileLocation
|
|
2014
|
-
|
|
2015
|
-
...(input.
|
|
2016
|
-
...(input.TimeoutSeconds !== undefined &&
|
|
2017
|
-
input.TimeoutSeconds !== null && { TimeoutSeconds: input.TimeoutSeconds }),
|
|
2023
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2024
|
+
...(input.SourceFileLocation != null && { SourceFileLocation: input.SourceFileLocation }),
|
|
2025
|
+
...(input.Target != null && { Target: input.Target }),
|
|
2026
|
+
...(input.TimeoutSeconds != null && { TimeoutSeconds: input.TimeoutSeconds }),
|
|
2018
2027
|
};
|
|
2019
2028
|
};
|
|
2020
2029
|
const serializeAws_json1_1DeleteAccessRequest = (input, context) => {
|
|
2021
2030
|
return {
|
|
2022
|
-
...(input.ExternalId
|
|
2023
|
-
...(input.ServerId
|
|
2031
|
+
...(input.ExternalId != null && { ExternalId: input.ExternalId }),
|
|
2032
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
2024
2033
|
};
|
|
2025
2034
|
};
|
|
2026
2035
|
const serializeAws_json1_1DeleteServerRequest = (input, context) => {
|
|
2027
2036
|
return {
|
|
2028
|
-
...(input.ServerId
|
|
2037
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
2029
2038
|
};
|
|
2030
2039
|
};
|
|
2031
2040
|
const serializeAws_json1_1DeleteSshPublicKeyRequest = (input, context) => {
|
|
2032
2041
|
return {
|
|
2033
|
-
...(input.ServerId
|
|
2034
|
-
...(input.SshPublicKeyId
|
|
2035
|
-
|
|
2036
|
-
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
2042
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
2043
|
+
...(input.SshPublicKeyId != null && { SshPublicKeyId: input.SshPublicKeyId }),
|
|
2044
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
2037
2045
|
};
|
|
2038
2046
|
};
|
|
2039
2047
|
const serializeAws_json1_1DeleteStepDetails = (input, context) => {
|
|
2040
2048
|
return {
|
|
2041
|
-
...(input.Name
|
|
2042
|
-
...(input.SourceFileLocation
|
|
2043
|
-
input.SourceFileLocation !== null && { SourceFileLocation: input.SourceFileLocation }),
|
|
2049
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2050
|
+
...(input.SourceFileLocation != null && { SourceFileLocation: input.SourceFileLocation }),
|
|
2044
2051
|
};
|
|
2045
2052
|
};
|
|
2046
2053
|
const serializeAws_json1_1DeleteUserRequest = (input, context) => {
|
|
2047
2054
|
return {
|
|
2048
|
-
...(input.ServerId
|
|
2049
|
-
...(input.UserName
|
|
2055
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
2056
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
2050
2057
|
};
|
|
2051
2058
|
};
|
|
2052
2059
|
const serializeAws_json1_1DeleteWorkflowRequest = (input, context) => {
|
|
2053
2060
|
return {
|
|
2054
|
-
...(input.WorkflowId
|
|
2061
|
+
...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
|
|
2055
2062
|
};
|
|
2056
2063
|
};
|
|
2057
2064
|
const serializeAws_json1_1DescribeAccessRequest = (input, context) => {
|
|
2058
2065
|
return {
|
|
2059
|
-
...(input.ExternalId
|
|
2060
|
-
...(input.ServerId
|
|
2066
|
+
...(input.ExternalId != null && { ExternalId: input.ExternalId }),
|
|
2067
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
2061
2068
|
};
|
|
2062
2069
|
};
|
|
2063
2070
|
const serializeAws_json1_1DescribeExecutionRequest = (input, context) => {
|
|
2064
2071
|
return {
|
|
2065
|
-
...(input.ExecutionId
|
|
2066
|
-
...(input.WorkflowId
|
|
2072
|
+
...(input.ExecutionId != null && { ExecutionId: input.ExecutionId }),
|
|
2073
|
+
...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
|
|
2067
2074
|
};
|
|
2068
2075
|
};
|
|
2069
2076
|
const serializeAws_json1_1DescribeSecurityPolicyRequest = (input, context) => {
|
|
2070
2077
|
return {
|
|
2071
|
-
...(input.SecurityPolicyName
|
|
2072
|
-
input.SecurityPolicyName !== null && { SecurityPolicyName: input.SecurityPolicyName }),
|
|
2078
|
+
...(input.SecurityPolicyName != null && { SecurityPolicyName: input.SecurityPolicyName }),
|
|
2073
2079
|
};
|
|
2074
2080
|
};
|
|
2075
2081
|
const serializeAws_json1_1DescribeServerRequest = (input, context) => {
|
|
2076
2082
|
return {
|
|
2077
|
-
...(input.ServerId
|
|
2083
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
2078
2084
|
};
|
|
2079
2085
|
};
|
|
2080
2086
|
const serializeAws_json1_1DescribeUserRequest = (input, context) => {
|
|
2081
2087
|
return {
|
|
2082
|
-
...(input.ServerId
|
|
2083
|
-
...(input.UserName
|
|
2088
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
2089
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
2084
2090
|
};
|
|
2085
2091
|
};
|
|
2086
2092
|
const serializeAws_json1_1DescribeWorkflowRequest = (input, context) => {
|
|
2087
2093
|
return {
|
|
2088
|
-
...(input.WorkflowId
|
|
2094
|
+
...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
|
|
2089
2095
|
};
|
|
2090
2096
|
};
|
|
2091
2097
|
const serializeAws_json1_1EfsFileLocation = (input, context) => {
|
|
2092
2098
|
return {
|
|
2093
|
-
...(input.FileSystemId
|
|
2094
|
-
...(input.Path
|
|
2099
|
+
...(input.FileSystemId != null && { FileSystemId: input.FileSystemId }),
|
|
2100
|
+
...(input.Path != null && { Path: input.Path }),
|
|
2095
2101
|
};
|
|
2096
2102
|
};
|
|
2097
2103
|
const serializeAws_json1_1EndpointDetails = (input, context) => {
|
|
2098
2104
|
return {
|
|
2099
|
-
...(input.AddressAllocationIds
|
|
2100
|
-
input.AddressAllocationIds !== null && {
|
|
2105
|
+
...(input.AddressAllocationIds != null && {
|
|
2101
2106
|
AddressAllocationIds: serializeAws_json1_1AddressAllocationIds(input.AddressAllocationIds, context),
|
|
2102
2107
|
}),
|
|
2103
|
-
...(input.SecurityGroupIds
|
|
2104
|
-
input.SecurityGroupIds !== null && {
|
|
2108
|
+
...(input.SecurityGroupIds != null && {
|
|
2105
2109
|
SecurityGroupIds: serializeAws_json1_1SecurityGroupIds(input.SecurityGroupIds, context),
|
|
2106
2110
|
}),
|
|
2107
|
-
...(input.SubnetIds
|
|
2108
|
-
|
|
2109
|
-
...(input.
|
|
2110
|
-
...(input.VpcId !== undefined && input.VpcId !== null && { VpcId: input.VpcId }),
|
|
2111
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) }),
|
|
2112
|
+
...(input.VpcEndpointId != null && { VpcEndpointId: input.VpcEndpointId }),
|
|
2113
|
+
...(input.VpcId != null && { VpcId: input.VpcId }),
|
|
2111
2114
|
};
|
|
2112
2115
|
};
|
|
2113
2116
|
const serializeAws_json1_1HomeDirectoryMapEntry = (input, context) => {
|
|
2114
2117
|
return {
|
|
2115
|
-
...(input.Entry
|
|
2116
|
-
...(input.Target
|
|
2118
|
+
...(input.Entry != null && { Entry: input.Entry }),
|
|
2119
|
+
...(input.Target != null && { Target: input.Target }),
|
|
2117
2120
|
};
|
|
2118
2121
|
};
|
|
2119
2122
|
const serializeAws_json1_1HomeDirectoryMappings = (input, context) => {
|
|
@@ -2128,77 +2131,73 @@ const serializeAws_json1_1HomeDirectoryMappings = (input, context) => {
|
|
|
2128
2131
|
};
|
|
2129
2132
|
const serializeAws_json1_1IdentityProviderDetails = (input, context) => {
|
|
2130
2133
|
return {
|
|
2131
|
-
...(input.DirectoryId
|
|
2132
|
-
...(input.Function
|
|
2133
|
-
...(input.InvocationRole
|
|
2134
|
-
|
|
2135
|
-
...(input.Url !== undefined && input.Url !== null && { Url: input.Url }),
|
|
2134
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
2135
|
+
...(input.Function != null && { Function: input.Function }),
|
|
2136
|
+
...(input.InvocationRole != null && { InvocationRole: input.InvocationRole }),
|
|
2137
|
+
...(input.Url != null && { Url: input.Url }),
|
|
2136
2138
|
};
|
|
2137
2139
|
};
|
|
2138
2140
|
const serializeAws_json1_1ImportSshPublicKeyRequest = (input, context) => {
|
|
2139
2141
|
return {
|
|
2140
|
-
...(input.ServerId
|
|
2141
|
-
...(input.SshPublicKeyBody
|
|
2142
|
-
|
|
2143
|
-
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
2142
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
2143
|
+
...(input.SshPublicKeyBody != null && { SshPublicKeyBody: input.SshPublicKeyBody }),
|
|
2144
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
2144
2145
|
};
|
|
2145
2146
|
};
|
|
2146
2147
|
const serializeAws_json1_1InputFileLocation = (input, context) => {
|
|
2147
2148
|
return {
|
|
2148
|
-
...(input.EfsFileLocation
|
|
2149
|
-
input.EfsFileLocation !== null && {
|
|
2149
|
+
...(input.EfsFileLocation != null && {
|
|
2150
2150
|
EfsFileLocation: serializeAws_json1_1EfsFileLocation(input.EfsFileLocation, context),
|
|
2151
2151
|
}),
|
|
2152
|
-
...(input.S3FileLocation
|
|
2153
|
-
input.S3FileLocation !== null && {
|
|
2152
|
+
...(input.S3FileLocation != null && {
|
|
2154
2153
|
S3FileLocation: serializeAws_json1_1S3InputFileLocation(input.S3FileLocation, context),
|
|
2155
2154
|
}),
|
|
2156
2155
|
};
|
|
2157
2156
|
};
|
|
2158
2157
|
const serializeAws_json1_1ListAccessesRequest = (input, context) => {
|
|
2159
2158
|
return {
|
|
2160
|
-
...(input.MaxResults
|
|
2161
|
-
...(input.NextToken
|
|
2162
|
-
...(input.ServerId
|
|
2159
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2160
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2161
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
2163
2162
|
};
|
|
2164
2163
|
};
|
|
2165
2164
|
const serializeAws_json1_1ListExecutionsRequest = (input, context) => {
|
|
2166
2165
|
return {
|
|
2167
|
-
...(input.MaxResults
|
|
2168
|
-
...(input.NextToken
|
|
2169
|
-
...(input.WorkflowId
|
|
2166
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2167
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2168
|
+
...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
|
|
2170
2169
|
};
|
|
2171
2170
|
};
|
|
2172
2171
|
const serializeAws_json1_1ListSecurityPoliciesRequest = (input, context) => {
|
|
2173
2172
|
return {
|
|
2174
|
-
...(input.MaxResults
|
|
2175
|
-
...(input.NextToken
|
|
2173
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2174
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2176
2175
|
};
|
|
2177
2176
|
};
|
|
2178
2177
|
const serializeAws_json1_1ListServersRequest = (input, context) => {
|
|
2179
2178
|
return {
|
|
2180
|
-
...(input.MaxResults
|
|
2181
|
-
...(input.NextToken
|
|
2179
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2180
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2182
2181
|
};
|
|
2183
2182
|
};
|
|
2184
2183
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
2185
2184
|
return {
|
|
2186
|
-
...(input.Arn
|
|
2187
|
-
...(input.MaxResults
|
|
2188
|
-
...(input.NextToken
|
|
2185
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
2186
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2187
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2189
2188
|
};
|
|
2190
2189
|
};
|
|
2191
2190
|
const serializeAws_json1_1ListUsersRequest = (input, context) => {
|
|
2192
2191
|
return {
|
|
2193
|
-
...(input.MaxResults
|
|
2194
|
-
...(input.NextToken
|
|
2195
|
-
...(input.ServerId
|
|
2192
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2193
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2194
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
2196
2195
|
};
|
|
2197
2196
|
};
|
|
2198
2197
|
const serializeAws_json1_1ListWorkflowsRequest = (input, context) => {
|
|
2199
2198
|
return {
|
|
2200
|
-
...(input.MaxResults
|
|
2201
|
-
...(input.NextToken
|
|
2199
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2200
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2202
2201
|
};
|
|
2203
2202
|
};
|
|
2204
2203
|
const serializeAws_json1_1OnUploadWorkflowDetails = (input, context) => {
|
|
@@ -2213,20 +2212,18 @@ const serializeAws_json1_1OnUploadWorkflowDetails = (input, context) => {
|
|
|
2213
2212
|
};
|
|
2214
2213
|
const serializeAws_json1_1PosixProfile = (input, context) => {
|
|
2215
2214
|
return {
|
|
2216
|
-
...(input.Gid
|
|
2217
|
-
...(input.SecondaryGids
|
|
2218
|
-
input.SecondaryGids !== null && {
|
|
2215
|
+
...(input.Gid != null && { Gid: input.Gid }),
|
|
2216
|
+
...(input.SecondaryGids != null && {
|
|
2219
2217
|
SecondaryGids: serializeAws_json1_1SecondaryGids(input.SecondaryGids, context),
|
|
2220
2218
|
}),
|
|
2221
|
-
...(input.Uid
|
|
2219
|
+
...(input.Uid != null && { Uid: input.Uid }),
|
|
2222
2220
|
};
|
|
2223
2221
|
};
|
|
2224
2222
|
const serializeAws_json1_1ProtocolDetails = (input, context) => {
|
|
2225
2223
|
return {
|
|
2226
|
-
...(input.PassiveIp
|
|
2227
|
-
...(input.SetStatOption
|
|
2228
|
-
...(input.TlsSessionResumptionMode
|
|
2229
|
-
input.TlsSessionResumptionMode !== null && { TlsSessionResumptionMode: input.TlsSessionResumptionMode }),
|
|
2224
|
+
...(input.PassiveIp != null && { PassiveIp: input.PassiveIp }),
|
|
2225
|
+
...(input.SetStatOption != null && { SetStatOption: input.SetStatOption }),
|
|
2226
|
+
...(input.TlsSessionResumptionMode != null && { TlsSessionResumptionMode: input.TlsSessionResumptionMode }),
|
|
2230
2227
|
};
|
|
2231
2228
|
};
|
|
2232
2229
|
const serializeAws_json1_1Protocols = (input, context) => {
|
|
@@ -2241,14 +2238,14 @@ const serializeAws_json1_1Protocols = (input, context) => {
|
|
|
2241
2238
|
};
|
|
2242
2239
|
const serializeAws_json1_1S3InputFileLocation = (input, context) => {
|
|
2243
2240
|
return {
|
|
2244
|
-
...(input.Bucket
|
|
2245
|
-
...(input.Key
|
|
2241
|
+
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
2242
|
+
...(input.Key != null && { Key: input.Key }),
|
|
2246
2243
|
};
|
|
2247
2244
|
};
|
|
2248
2245
|
const serializeAws_json1_1S3Tag = (input, context) => {
|
|
2249
2246
|
return {
|
|
2250
|
-
...(input.Key
|
|
2251
|
-
...(input.Value
|
|
2247
|
+
...(input.Key != null && { Key: input.Key }),
|
|
2248
|
+
...(input.Value != null && { Value: input.Value }),
|
|
2252
2249
|
};
|
|
2253
2250
|
};
|
|
2254
2251
|
const serializeAws_json1_1S3Tags = (input, context) => {
|
|
@@ -2283,20 +2280,20 @@ const serializeAws_json1_1SecurityGroupIds = (input, context) => {
|
|
|
2283
2280
|
};
|
|
2284
2281
|
const serializeAws_json1_1SendWorkflowStepStateRequest = (input, context) => {
|
|
2285
2282
|
return {
|
|
2286
|
-
...(input.ExecutionId
|
|
2287
|
-
...(input.Status
|
|
2288
|
-
...(input.Token
|
|
2289
|
-
...(input.WorkflowId
|
|
2283
|
+
...(input.ExecutionId != null && { ExecutionId: input.ExecutionId }),
|
|
2284
|
+
...(input.Status != null && { Status: input.Status }),
|
|
2285
|
+
...(input.Token != null && { Token: input.Token }),
|
|
2286
|
+
...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
|
|
2290
2287
|
};
|
|
2291
2288
|
};
|
|
2292
2289
|
const serializeAws_json1_1StartServerRequest = (input, context) => {
|
|
2293
2290
|
return {
|
|
2294
|
-
...(input.ServerId
|
|
2291
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
2295
2292
|
};
|
|
2296
2293
|
};
|
|
2297
2294
|
const serializeAws_json1_1StopServerRequest = (input, context) => {
|
|
2298
2295
|
return {
|
|
2299
|
-
...(input.ServerId
|
|
2296
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
2300
2297
|
};
|
|
2301
2298
|
};
|
|
2302
2299
|
const serializeAws_json1_1SubnetIds = (input, context) => {
|
|
@@ -2311,8 +2308,8 @@ const serializeAws_json1_1SubnetIds = (input, context) => {
|
|
|
2311
2308
|
};
|
|
2312
2309
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
2313
2310
|
return {
|
|
2314
|
-
...(input.Key
|
|
2315
|
-
...(input.Value
|
|
2311
|
+
...(input.Key != null && { Key: input.Key }),
|
|
2312
|
+
...(input.Value != null && { Value: input.Value }),
|
|
2316
2313
|
};
|
|
2317
2314
|
};
|
|
2318
2315
|
const serializeAws_json1_1TagKeys = (input, context) => {
|
|
@@ -2327,8 +2324,8 @@ const serializeAws_json1_1TagKeys = (input, context) => {
|
|
|
2327
2324
|
};
|
|
2328
2325
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
2329
2326
|
return {
|
|
2330
|
-
...(input.Arn
|
|
2331
|
-
...(input.Tags
|
|
2327
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
2328
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
2332
2329
|
};
|
|
2333
2330
|
};
|
|
2334
2331
|
const serializeAws_json1_1Tags = (input, context) => {
|
|
@@ -2343,131 +2340,109 @@ const serializeAws_json1_1Tags = (input, context) => {
|
|
|
2343
2340
|
};
|
|
2344
2341
|
const serializeAws_json1_1TagStepDetails = (input, context) => {
|
|
2345
2342
|
return {
|
|
2346
|
-
...(input.Name
|
|
2347
|
-
...(input.SourceFileLocation
|
|
2348
|
-
|
|
2349
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1S3Tags(input.Tags, context) }),
|
|
2343
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2344
|
+
...(input.SourceFileLocation != null && { SourceFileLocation: input.SourceFileLocation }),
|
|
2345
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1S3Tags(input.Tags, context) }),
|
|
2350
2346
|
};
|
|
2351
2347
|
};
|
|
2352
2348
|
const serializeAws_json1_1TestIdentityProviderRequest = (input, context) => {
|
|
2353
2349
|
return {
|
|
2354
|
-
...(input.ServerId
|
|
2355
|
-
...(input.ServerProtocol
|
|
2356
|
-
|
|
2357
|
-
...(input.
|
|
2358
|
-
...(input.
|
|
2359
|
-
...(input.UserPassword !== undefined && input.UserPassword !== null && { UserPassword: input.UserPassword }),
|
|
2350
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
2351
|
+
...(input.ServerProtocol != null && { ServerProtocol: input.ServerProtocol }),
|
|
2352
|
+
...(input.SourceIp != null && { SourceIp: input.SourceIp }),
|
|
2353
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
2354
|
+
...(input.UserPassword != null && { UserPassword: input.UserPassword }),
|
|
2360
2355
|
};
|
|
2361
2356
|
};
|
|
2362
2357
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
2363
2358
|
return {
|
|
2364
|
-
...(input.Arn
|
|
2365
|
-
...(input.TagKeys
|
|
2366
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }),
|
|
2359
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
2360
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }),
|
|
2367
2361
|
};
|
|
2368
2362
|
};
|
|
2369
2363
|
const serializeAws_json1_1UpdateAccessRequest = (input, context) => {
|
|
2370
2364
|
return {
|
|
2371
|
-
...(input.ExternalId
|
|
2372
|
-
...(input.HomeDirectory
|
|
2373
|
-
...(input.HomeDirectoryMappings
|
|
2374
|
-
input.HomeDirectoryMappings !== null && {
|
|
2365
|
+
...(input.ExternalId != null && { ExternalId: input.ExternalId }),
|
|
2366
|
+
...(input.HomeDirectory != null && { HomeDirectory: input.HomeDirectory }),
|
|
2367
|
+
...(input.HomeDirectoryMappings != null && {
|
|
2375
2368
|
HomeDirectoryMappings: serializeAws_json1_1HomeDirectoryMappings(input.HomeDirectoryMappings, context),
|
|
2376
2369
|
}),
|
|
2377
|
-
...(input.HomeDirectoryType
|
|
2378
|
-
|
|
2379
|
-
...(input.
|
|
2380
|
-
...(input.
|
|
2381
|
-
|
|
2382
|
-
...(input.Role !== undefined && input.Role !== null && { Role: input.Role }),
|
|
2383
|
-
...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
|
|
2370
|
+
...(input.HomeDirectoryType != null && { HomeDirectoryType: input.HomeDirectoryType }),
|
|
2371
|
+
...(input.Policy != null && { Policy: input.Policy }),
|
|
2372
|
+
...(input.PosixProfile != null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) }),
|
|
2373
|
+
...(input.Role != null && { Role: input.Role }),
|
|
2374
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
2384
2375
|
};
|
|
2385
2376
|
};
|
|
2386
2377
|
const serializeAws_json1_1UpdateServerRequest = (input, context) => {
|
|
2387
2378
|
return {
|
|
2388
|
-
...(input.Certificate
|
|
2389
|
-
...(input.EndpointDetails
|
|
2390
|
-
input.EndpointDetails !== null && {
|
|
2379
|
+
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
2380
|
+
...(input.EndpointDetails != null && {
|
|
2391
2381
|
EndpointDetails: serializeAws_json1_1EndpointDetails(input.EndpointDetails, context),
|
|
2392
2382
|
}),
|
|
2393
|
-
...(input.EndpointType
|
|
2394
|
-
...(input.HostKey
|
|
2395
|
-
...(input.IdentityProviderDetails
|
|
2396
|
-
input.IdentityProviderDetails !== null && {
|
|
2383
|
+
...(input.EndpointType != null && { EndpointType: input.EndpointType }),
|
|
2384
|
+
...(input.HostKey != null && { HostKey: input.HostKey }),
|
|
2385
|
+
...(input.IdentityProviderDetails != null && {
|
|
2397
2386
|
IdentityProviderDetails: serializeAws_json1_1IdentityProviderDetails(input.IdentityProviderDetails, context),
|
|
2398
2387
|
}),
|
|
2399
|
-
...(input.LoggingRole
|
|
2400
|
-
...(input.PostAuthenticationLoginBanner
|
|
2401
|
-
input.PostAuthenticationLoginBanner !== null && {
|
|
2388
|
+
...(input.LoggingRole != null && { LoggingRole: input.LoggingRole }),
|
|
2389
|
+
...(input.PostAuthenticationLoginBanner != null && {
|
|
2402
2390
|
PostAuthenticationLoginBanner: input.PostAuthenticationLoginBanner,
|
|
2403
2391
|
}),
|
|
2404
|
-
...(input.PreAuthenticationLoginBanner
|
|
2405
|
-
input.PreAuthenticationLoginBanner !== null && {
|
|
2392
|
+
...(input.PreAuthenticationLoginBanner != null && {
|
|
2406
2393
|
PreAuthenticationLoginBanner: input.PreAuthenticationLoginBanner,
|
|
2407
2394
|
}),
|
|
2408
|
-
...(input.ProtocolDetails
|
|
2409
|
-
input.ProtocolDetails !== null && {
|
|
2395
|
+
...(input.ProtocolDetails != null && {
|
|
2410
2396
|
ProtocolDetails: serializeAws_json1_1ProtocolDetails(input.ProtocolDetails, context),
|
|
2411
2397
|
}),
|
|
2412
|
-
...(input.Protocols
|
|
2413
|
-
|
|
2414
|
-
...(input.
|
|
2415
|
-
|
|
2416
|
-
...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
|
|
2417
|
-
...(input.WorkflowDetails !== undefined &&
|
|
2418
|
-
input.WorkflowDetails !== null && {
|
|
2398
|
+
...(input.Protocols != null && { Protocols: serializeAws_json1_1Protocols(input.Protocols, context) }),
|
|
2399
|
+
...(input.SecurityPolicyName != null && { SecurityPolicyName: input.SecurityPolicyName }),
|
|
2400
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
2401
|
+
...(input.WorkflowDetails != null && {
|
|
2419
2402
|
WorkflowDetails: serializeAws_json1_1WorkflowDetails(input.WorkflowDetails, context),
|
|
2420
2403
|
}),
|
|
2421
2404
|
};
|
|
2422
2405
|
};
|
|
2423
2406
|
const serializeAws_json1_1UpdateUserRequest = (input, context) => {
|
|
2424
2407
|
return {
|
|
2425
|
-
...(input.HomeDirectory
|
|
2426
|
-
...(input.HomeDirectoryMappings
|
|
2427
|
-
input.HomeDirectoryMappings !== null && {
|
|
2408
|
+
...(input.HomeDirectory != null && { HomeDirectory: input.HomeDirectory }),
|
|
2409
|
+
...(input.HomeDirectoryMappings != null && {
|
|
2428
2410
|
HomeDirectoryMappings: serializeAws_json1_1HomeDirectoryMappings(input.HomeDirectoryMappings, context),
|
|
2429
2411
|
}),
|
|
2430
|
-
...(input.HomeDirectoryType
|
|
2431
|
-
|
|
2432
|
-
...(input.
|
|
2433
|
-
...(input.
|
|
2434
|
-
|
|
2435
|
-
...(input.
|
|
2436
|
-
...(input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }),
|
|
2437
|
-
...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
|
|
2412
|
+
...(input.HomeDirectoryType != null && { HomeDirectoryType: input.HomeDirectoryType }),
|
|
2413
|
+
...(input.Policy != null && { Policy: input.Policy }),
|
|
2414
|
+
...(input.PosixProfile != null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) }),
|
|
2415
|
+
...(input.Role != null && { Role: input.Role }),
|
|
2416
|
+
...(input.ServerId != null && { ServerId: input.ServerId }),
|
|
2417
|
+
...(input.UserName != null && { UserName: input.UserName }),
|
|
2438
2418
|
};
|
|
2439
2419
|
};
|
|
2440
2420
|
const serializeAws_json1_1WorkflowDetail = (input, context) => {
|
|
2441
2421
|
return {
|
|
2442
|
-
...(input.ExecutionRole
|
|
2443
|
-
...(input.WorkflowId
|
|
2422
|
+
...(input.ExecutionRole != null && { ExecutionRole: input.ExecutionRole }),
|
|
2423
|
+
...(input.WorkflowId != null && { WorkflowId: input.WorkflowId }),
|
|
2444
2424
|
};
|
|
2445
2425
|
};
|
|
2446
2426
|
const serializeAws_json1_1WorkflowDetails = (input, context) => {
|
|
2447
2427
|
return {
|
|
2448
|
-
...(input.OnUpload
|
|
2449
|
-
input.OnUpload !== null && { OnUpload: serializeAws_json1_1OnUploadWorkflowDetails(input.OnUpload, context) }),
|
|
2428
|
+
...(input.OnUpload != null && { OnUpload: serializeAws_json1_1OnUploadWorkflowDetails(input.OnUpload, context) }),
|
|
2450
2429
|
};
|
|
2451
2430
|
};
|
|
2452
2431
|
const serializeAws_json1_1WorkflowStep = (input, context) => {
|
|
2453
2432
|
return {
|
|
2454
|
-
...(input.CopyStepDetails
|
|
2455
|
-
input.CopyStepDetails !== null && {
|
|
2433
|
+
...(input.CopyStepDetails != null && {
|
|
2456
2434
|
CopyStepDetails: serializeAws_json1_1CopyStepDetails(input.CopyStepDetails, context),
|
|
2457
2435
|
}),
|
|
2458
|
-
...(input.CustomStepDetails
|
|
2459
|
-
input.CustomStepDetails !== null && {
|
|
2436
|
+
...(input.CustomStepDetails != null && {
|
|
2460
2437
|
CustomStepDetails: serializeAws_json1_1CustomStepDetails(input.CustomStepDetails, context),
|
|
2461
2438
|
}),
|
|
2462
|
-
...(input.DeleteStepDetails
|
|
2463
|
-
input.DeleteStepDetails !== null && {
|
|
2439
|
+
...(input.DeleteStepDetails != null && {
|
|
2464
2440
|
DeleteStepDetails: serializeAws_json1_1DeleteStepDetails(input.DeleteStepDetails, context),
|
|
2465
2441
|
}),
|
|
2466
|
-
...(input.TagStepDetails
|
|
2467
|
-
input.TagStepDetails !== null && {
|
|
2442
|
+
...(input.TagStepDetails != null && {
|
|
2468
2443
|
TagStepDetails: serializeAws_json1_1TagStepDetails(input.TagStepDetails, context),
|
|
2469
2444
|
}),
|
|
2470
|
-
...(input.Type
|
|
2445
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2471
2446
|
};
|
|
2472
2447
|
};
|
|
2473
2448
|
const serializeAws_json1_1WorkflowSteps = (input, context) => {
|
|
@@ -2503,7 +2478,7 @@ const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
|
2503
2478
|
};
|
|
2504
2479
|
const deserializeAws_json1_1CopyStepDetails = (output, context) => {
|
|
2505
2480
|
return {
|
|
2506
|
-
DestinationFileLocation: output.DestinationFileLocation
|
|
2481
|
+
DestinationFileLocation: output.DestinationFileLocation != null
|
|
2507
2482
|
? deserializeAws_json1_1InputFileLocation(output.DestinationFileLocation, context)
|
|
2508
2483
|
: undefined,
|
|
2509
2484
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -2549,9 +2524,7 @@ const deserializeAws_json1_1DeleteStepDetails = (output, context) => {
|
|
|
2549
2524
|
};
|
|
2550
2525
|
const deserializeAws_json1_1DescribeAccessResponse = (output, context) => {
|
|
2551
2526
|
return {
|
|
2552
|
-
Access: output.Access
|
|
2553
|
-
? deserializeAws_json1_1DescribedAccess(output.Access, context)
|
|
2554
|
-
: undefined,
|
|
2527
|
+
Access: output.Access != null ? deserializeAws_json1_1DescribedAccess(output.Access, context) : undefined,
|
|
2555
2528
|
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
2556
2529
|
};
|
|
2557
2530
|
};
|
|
@@ -2559,14 +2532,12 @@ const deserializeAws_json1_1DescribedAccess = (output, context) => {
|
|
|
2559
2532
|
return {
|
|
2560
2533
|
ExternalId: (0, smithy_client_1.expectString)(output.ExternalId),
|
|
2561
2534
|
HomeDirectory: (0, smithy_client_1.expectString)(output.HomeDirectory),
|
|
2562
|
-
HomeDirectoryMappings: output.HomeDirectoryMappings
|
|
2535
|
+
HomeDirectoryMappings: output.HomeDirectoryMappings != null
|
|
2563
2536
|
? deserializeAws_json1_1HomeDirectoryMappings(output.HomeDirectoryMappings, context)
|
|
2564
2537
|
: undefined,
|
|
2565
2538
|
HomeDirectoryType: (0, smithy_client_1.expectString)(output.HomeDirectoryType),
|
|
2566
2539
|
Policy: (0, smithy_client_1.expectString)(output.Policy),
|
|
2567
|
-
PosixProfile: output.PosixProfile
|
|
2568
|
-
? deserializeAws_json1_1PosixProfile(output.PosixProfile, context)
|
|
2569
|
-
: undefined,
|
|
2540
|
+
PosixProfile: output.PosixProfile != null ? deserializeAws_json1_1PosixProfile(output.PosixProfile, context) : undefined,
|
|
2570
2541
|
Role: (0, smithy_client_1.expectString)(output.Role),
|
|
2571
2542
|
};
|
|
2572
2543
|
};
|
|
@@ -2574,19 +2545,15 @@ const deserializeAws_json1_1DescribedExecution = (output, context) => {
|
|
|
2574
2545
|
return {
|
|
2575
2546
|
ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId),
|
|
2576
2547
|
ExecutionRole: (0, smithy_client_1.expectString)(output.ExecutionRole),
|
|
2577
|
-
InitialFileLocation: output.InitialFileLocation
|
|
2548
|
+
InitialFileLocation: output.InitialFileLocation != null
|
|
2578
2549
|
? deserializeAws_json1_1FileLocation(output.InitialFileLocation, context)
|
|
2579
2550
|
: undefined,
|
|
2580
|
-
LoggingConfiguration: output.LoggingConfiguration
|
|
2551
|
+
LoggingConfiguration: output.LoggingConfiguration != null
|
|
2581
2552
|
? deserializeAws_json1_1LoggingConfiguration(output.LoggingConfiguration, context)
|
|
2582
2553
|
: undefined,
|
|
2583
|
-
PosixProfile: output.PosixProfile
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
Results: output.Results !== undefined && output.Results !== null
|
|
2587
|
-
? deserializeAws_json1_1ExecutionResults(output.Results, context)
|
|
2588
|
-
: undefined,
|
|
2589
|
-
ServiceMetadata: output.ServiceMetadata !== undefined && output.ServiceMetadata !== null
|
|
2554
|
+
PosixProfile: output.PosixProfile != null ? deserializeAws_json1_1PosixProfile(output.PosixProfile, context) : undefined,
|
|
2555
|
+
Results: output.Results != null ? deserializeAws_json1_1ExecutionResults(output.Results, context) : undefined,
|
|
2556
|
+
ServiceMetadata: output.ServiceMetadata != null
|
|
2590
2557
|
? deserializeAws_json1_1ServiceMetadata(output.ServiceMetadata, context)
|
|
2591
2558
|
: undefined,
|
|
2592
2559
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -2596,18 +2563,10 @@ const deserializeAws_json1_1DescribedSecurityPolicy = (output, context) => {
|
|
|
2596
2563
|
return {
|
|
2597
2564
|
Fips: (0, smithy_client_1.expectBoolean)(output.Fips),
|
|
2598
2565
|
SecurityPolicyName: (0, smithy_client_1.expectString)(output.SecurityPolicyName),
|
|
2599
|
-
SshCiphers: output.SshCiphers
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
? deserializeAws_json1_1SecurityPolicyOptions(output.SshKexs, context)
|
|
2604
|
-
: undefined,
|
|
2605
|
-
SshMacs: output.SshMacs !== undefined && output.SshMacs !== null
|
|
2606
|
-
? deserializeAws_json1_1SecurityPolicyOptions(output.SshMacs, context)
|
|
2607
|
-
: undefined,
|
|
2608
|
-
TlsCiphers: output.TlsCiphers !== undefined && output.TlsCiphers !== null
|
|
2609
|
-
? deserializeAws_json1_1SecurityPolicyOptions(output.TlsCiphers, context)
|
|
2610
|
-
: undefined,
|
|
2566
|
+
SshCiphers: output.SshCiphers != null ? deserializeAws_json1_1SecurityPolicyOptions(output.SshCiphers, context) : undefined,
|
|
2567
|
+
SshKexs: output.SshKexs != null ? deserializeAws_json1_1SecurityPolicyOptions(output.SshKexs, context) : undefined,
|
|
2568
|
+
SshMacs: output.SshMacs != null ? deserializeAws_json1_1SecurityPolicyOptions(output.SshMacs, context) : undefined,
|
|
2569
|
+
TlsCiphers: output.TlsCiphers != null ? deserializeAws_json1_1SecurityPolicyOptions(output.TlsCiphers, context) : undefined,
|
|
2611
2570
|
};
|
|
2612
2571
|
};
|
|
2613
2572
|
const deserializeAws_json1_1DescribedServer = (output, context) => {
|
|
@@ -2615,30 +2574,28 @@ const deserializeAws_json1_1DescribedServer = (output, context) => {
|
|
|
2615
2574
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2616
2575
|
Certificate: (0, smithy_client_1.expectString)(output.Certificate),
|
|
2617
2576
|
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
2618
|
-
EndpointDetails: output.EndpointDetails
|
|
2577
|
+
EndpointDetails: output.EndpointDetails != null
|
|
2619
2578
|
? deserializeAws_json1_1EndpointDetails(output.EndpointDetails, context)
|
|
2620
2579
|
: undefined,
|
|
2621
2580
|
EndpointType: (0, smithy_client_1.expectString)(output.EndpointType),
|
|
2622
2581
|
HostKeyFingerprint: (0, smithy_client_1.expectString)(output.HostKeyFingerprint),
|
|
2623
|
-
IdentityProviderDetails: output.IdentityProviderDetails
|
|
2582
|
+
IdentityProviderDetails: output.IdentityProviderDetails != null
|
|
2624
2583
|
? deserializeAws_json1_1IdentityProviderDetails(output.IdentityProviderDetails, context)
|
|
2625
2584
|
: undefined,
|
|
2626
2585
|
IdentityProviderType: (0, smithy_client_1.expectString)(output.IdentityProviderType),
|
|
2627
2586
|
LoggingRole: (0, smithy_client_1.expectString)(output.LoggingRole),
|
|
2628
2587
|
PostAuthenticationLoginBanner: (0, smithy_client_1.expectString)(output.PostAuthenticationLoginBanner),
|
|
2629
2588
|
PreAuthenticationLoginBanner: (0, smithy_client_1.expectString)(output.PreAuthenticationLoginBanner),
|
|
2630
|
-
ProtocolDetails: output.ProtocolDetails
|
|
2589
|
+
ProtocolDetails: output.ProtocolDetails != null
|
|
2631
2590
|
? deserializeAws_json1_1ProtocolDetails(output.ProtocolDetails, context)
|
|
2632
2591
|
: undefined,
|
|
2633
|
-
Protocols: output.Protocols
|
|
2634
|
-
? deserializeAws_json1_1Protocols(output.Protocols, context)
|
|
2635
|
-
: undefined,
|
|
2592
|
+
Protocols: output.Protocols != null ? deserializeAws_json1_1Protocols(output.Protocols, context) : undefined,
|
|
2636
2593
|
SecurityPolicyName: (0, smithy_client_1.expectString)(output.SecurityPolicyName),
|
|
2637
2594
|
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
2638
2595
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
2639
|
-
Tags: output.Tags
|
|
2596
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
2640
2597
|
UserCount: (0, smithy_client_1.expectInt32)(output.UserCount),
|
|
2641
|
-
WorkflowDetails: output.WorkflowDetails
|
|
2598
|
+
WorkflowDetails: output.WorkflowDetails != null
|
|
2642
2599
|
? deserializeAws_json1_1WorkflowDetails(output.WorkflowDetails, context)
|
|
2643
2600
|
: undefined,
|
|
2644
2601
|
};
|
|
@@ -2647,19 +2604,15 @@ const deserializeAws_json1_1DescribedUser = (output, context) => {
|
|
|
2647
2604
|
return {
|
|
2648
2605
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2649
2606
|
HomeDirectory: (0, smithy_client_1.expectString)(output.HomeDirectory),
|
|
2650
|
-
HomeDirectoryMappings: output.HomeDirectoryMappings
|
|
2607
|
+
HomeDirectoryMappings: output.HomeDirectoryMappings != null
|
|
2651
2608
|
? deserializeAws_json1_1HomeDirectoryMappings(output.HomeDirectoryMappings, context)
|
|
2652
2609
|
: undefined,
|
|
2653
2610
|
HomeDirectoryType: (0, smithy_client_1.expectString)(output.HomeDirectoryType),
|
|
2654
2611
|
Policy: (0, smithy_client_1.expectString)(output.Policy),
|
|
2655
|
-
PosixProfile: output.PosixProfile
|
|
2656
|
-
? deserializeAws_json1_1PosixProfile(output.PosixProfile, context)
|
|
2657
|
-
: undefined,
|
|
2612
|
+
PosixProfile: output.PosixProfile != null ? deserializeAws_json1_1PosixProfile(output.PosixProfile, context) : undefined,
|
|
2658
2613
|
Role: (0, smithy_client_1.expectString)(output.Role),
|
|
2659
|
-
SshPublicKeys: output.SshPublicKeys
|
|
2660
|
-
|
|
2661
|
-
: undefined,
|
|
2662
|
-
Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
2614
|
+
SshPublicKeys: output.SshPublicKeys != null ? deserializeAws_json1_1SshPublicKeys(output.SshPublicKeys, context) : undefined,
|
|
2615
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
2663
2616
|
UserName: (0, smithy_client_1.expectString)(output.UserName),
|
|
2664
2617
|
};
|
|
2665
2618
|
};
|
|
@@ -2667,51 +2620,41 @@ const deserializeAws_json1_1DescribedWorkflow = (output, context) => {
|
|
|
2667
2620
|
return {
|
|
2668
2621
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2669
2622
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
2670
|
-
OnExceptionSteps: output.OnExceptionSteps
|
|
2623
|
+
OnExceptionSteps: output.OnExceptionSteps != null
|
|
2671
2624
|
? deserializeAws_json1_1WorkflowSteps(output.OnExceptionSteps, context)
|
|
2672
2625
|
: undefined,
|
|
2673
|
-
Steps: output.Steps
|
|
2674
|
-
|
|
2675
|
-
: undefined,
|
|
2676
|
-
Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
2626
|
+
Steps: output.Steps != null ? deserializeAws_json1_1WorkflowSteps(output.Steps, context) : undefined,
|
|
2627
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
2677
2628
|
WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
|
|
2678
2629
|
};
|
|
2679
2630
|
};
|
|
2680
2631
|
const deserializeAws_json1_1DescribeExecutionResponse = (output, context) => {
|
|
2681
2632
|
return {
|
|
2682
|
-
Execution: output.Execution
|
|
2683
|
-
? deserializeAws_json1_1DescribedExecution(output.Execution, context)
|
|
2684
|
-
: undefined,
|
|
2633
|
+
Execution: output.Execution != null ? deserializeAws_json1_1DescribedExecution(output.Execution, context) : undefined,
|
|
2685
2634
|
WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
|
|
2686
2635
|
};
|
|
2687
2636
|
};
|
|
2688
2637
|
const deserializeAws_json1_1DescribeSecurityPolicyResponse = (output, context) => {
|
|
2689
2638
|
return {
|
|
2690
|
-
SecurityPolicy: output.SecurityPolicy
|
|
2639
|
+
SecurityPolicy: output.SecurityPolicy != null
|
|
2691
2640
|
? deserializeAws_json1_1DescribedSecurityPolicy(output.SecurityPolicy, context)
|
|
2692
2641
|
: undefined,
|
|
2693
2642
|
};
|
|
2694
2643
|
};
|
|
2695
2644
|
const deserializeAws_json1_1DescribeServerResponse = (output, context) => {
|
|
2696
2645
|
return {
|
|
2697
|
-
Server: output.Server
|
|
2698
|
-
? deserializeAws_json1_1DescribedServer(output.Server, context)
|
|
2699
|
-
: undefined,
|
|
2646
|
+
Server: output.Server != null ? deserializeAws_json1_1DescribedServer(output.Server, context) : undefined,
|
|
2700
2647
|
};
|
|
2701
2648
|
};
|
|
2702
2649
|
const deserializeAws_json1_1DescribeUserResponse = (output, context) => {
|
|
2703
2650
|
return {
|
|
2704
2651
|
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
2705
|
-
User: output.User
|
|
2706
|
-
? deserializeAws_json1_1DescribedUser(output.User, context)
|
|
2707
|
-
: undefined,
|
|
2652
|
+
User: output.User != null ? deserializeAws_json1_1DescribedUser(output.User, context) : undefined,
|
|
2708
2653
|
};
|
|
2709
2654
|
};
|
|
2710
2655
|
const deserializeAws_json1_1DescribeWorkflowResponse = (output, context) => {
|
|
2711
2656
|
return {
|
|
2712
|
-
Workflow: output.Workflow
|
|
2713
|
-
? deserializeAws_json1_1DescribedWorkflow(output.Workflow, context)
|
|
2714
|
-
: undefined,
|
|
2657
|
+
Workflow: output.Workflow != null ? deserializeAws_json1_1DescribedWorkflow(output.Workflow, context) : undefined,
|
|
2715
2658
|
};
|
|
2716
2659
|
};
|
|
2717
2660
|
const deserializeAws_json1_1EfsFileLocation = (output, context) => {
|
|
@@ -2722,15 +2665,13 @@ const deserializeAws_json1_1EfsFileLocation = (output, context) => {
|
|
|
2722
2665
|
};
|
|
2723
2666
|
const deserializeAws_json1_1EndpointDetails = (output, context) => {
|
|
2724
2667
|
return {
|
|
2725
|
-
AddressAllocationIds: output.AddressAllocationIds
|
|
2668
|
+
AddressAllocationIds: output.AddressAllocationIds != null
|
|
2726
2669
|
? deserializeAws_json1_1AddressAllocationIds(output.AddressAllocationIds, context)
|
|
2727
2670
|
: undefined,
|
|
2728
|
-
SecurityGroupIds: output.SecurityGroupIds
|
|
2671
|
+
SecurityGroupIds: output.SecurityGroupIds != null
|
|
2729
2672
|
? deserializeAws_json1_1SecurityGroupIds(output.SecurityGroupIds, context)
|
|
2730
2673
|
: undefined,
|
|
2731
|
-
SubnetIds: output.SubnetIds
|
|
2732
|
-
? deserializeAws_json1_1SubnetIds(output.SubnetIds, context)
|
|
2733
|
-
: undefined,
|
|
2674
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context) : undefined,
|
|
2734
2675
|
VpcEndpointId: (0, smithy_client_1.expectString)(output.VpcEndpointId),
|
|
2735
2676
|
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
2736
2677
|
};
|
|
@@ -2743,19 +2684,15 @@ const deserializeAws_json1_1ExecutionError = (output, context) => {
|
|
|
2743
2684
|
};
|
|
2744
2685
|
const deserializeAws_json1_1ExecutionResults = (output, context) => {
|
|
2745
2686
|
return {
|
|
2746
|
-
OnExceptionSteps: output.OnExceptionSteps
|
|
2687
|
+
OnExceptionSteps: output.OnExceptionSteps != null
|
|
2747
2688
|
? deserializeAws_json1_1ExecutionStepResults(output.OnExceptionSteps, context)
|
|
2748
2689
|
: undefined,
|
|
2749
|
-
Steps: output.Steps
|
|
2750
|
-
? deserializeAws_json1_1ExecutionStepResults(output.Steps, context)
|
|
2751
|
-
: undefined,
|
|
2690
|
+
Steps: output.Steps != null ? deserializeAws_json1_1ExecutionStepResults(output.Steps, context) : undefined,
|
|
2752
2691
|
};
|
|
2753
2692
|
};
|
|
2754
2693
|
const deserializeAws_json1_1ExecutionStepResult = (output, context) => {
|
|
2755
2694
|
return {
|
|
2756
|
-
Error: output.Error
|
|
2757
|
-
? deserializeAws_json1_1ExecutionError(output.Error, context)
|
|
2758
|
-
: undefined,
|
|
2695
|
+
Error: output.Error != null ? deserializeAws_json1_1ExecutionError(output.Error, context) : undefined,
|
|
2759
2696
|
Outputs: (0, smithy_client_1.expectString)(output.Outputs),
|
|
2760
2697
|
StepType: (0, smithy_client_1.expectString)(output.StepType),
|
|
2761
2698
|
};
|
|
@@ -2773,12 +2710,10 @@ const deserializeAws_json1_1ExecutionStepResults = (output, context) => {
|
|
|
2773
2710
|
};
|
|
2774
2711
|
const deserializeAws_json1_1FileLocation = (output, context) => {
|
|
2775
2712
|
return {
|
|
2776
|
-
EfsFileLocation: output.EfsFileLocation
|
|
2713
|
+
EfsFileLocation: output.EfsFileLocation != null
|
|
2777
2714
|
? deserializeAws_json1_1EfsFileLocation(output.EfsFileLocation, context)
|
|
2778
2715
|
: undefined,
|
|
2779
|
-
S3FileLocation: output.S3FileLocation
|
|
2780
|
-
? deserializeAws_json1_1S3FileLocation(output.S3FileLocation, context)
|
|
2781
|
-
: undefined,
|
|
2716
|
+
S3FileLocation: output.S3FileLocation != null ? deserializeAws_json1_1S3FileLocation(output.S3FileLocation, context) : undefined,
|
|
2782
2717
|
};
|
|
2783
2718
|
};
|
|
2784
2719
|
const deserializeAws_json1_1HomeDirectoryMapEntry = (output, context) => {
|
|
@@ -2815,10 +2750,10 @@ const deserializeAws_json1_1ImportSshPublicKeyResponse = (output, context) => {
|
|
|
2815
2750
|
};
|
|
2816
2751
|
const deserializeAws_json1_1InputFileLocation = (output, context) => {
|
|
2817
2752
|
return {
|
|
2818
|
-
EfsFileLocation: output.EfsFileLocation
|
|
2753
|
+
EfsFileLocation: output.EfsFileLocation != null
|
|
2819
2754
|
? deserializeAws_json1_1EfsFileLocation(output.EfsFileLocation, context)
|
|
2820
2755
|
: undefined,
|
|
2821
|
-
S3FileLocation: output.S3FileLocation
|
|
2756
|
+
S3FileLocation: output.S3FileLocation != null
|
|
2822
2757
|
? deserializeAws_json1_1S3InputFileLocation(output.S3FileLocation, context)
|
|
2823
2758
|
: undefined,
|
|
2824
2759
|
};
|
|
@@ -2840,9 +2775,7 @@ const deserializeAws_json1_1InvalidRequestException = (output, context) => {
|
|
|
2840
2775
|
};
|
|
2841
2776
|
const deserializeAws_json1_1ListAccessesResponse = (output, context) => {
|
|
2842
2777
|
return {
|
|
2843
|
-
Accesses: output.Accesses
|
|
2844
|
-
? deserializeAws_json1_1ListedAccesses(output.Accesses, context)
|
|
2845
|
-
: undefined,
|
|
2778
|
+
Accesses: output.Accesses != null ? deserializeAws_json1_1ListedAccesses(output.Accesses, context) : undefined,
|
|
2846
2779
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2847
2780
|
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
2848
2781
|
};
|
|
@@ -2869,10 +2802,10 @@ const deserializeAws_json1_1ListedAccesses = (output, context) => {
|
|
|
2869
2802
|
const deserializeAws_json1_1ListedExecution = (output, context) => {
|
|
2870
2803
|
return {
|
|
2871
2804
|
ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId),
|
|
2872
|
-
InitialFileLocation: output.InitialFileLocation
|
|
2805
|
+
InitialFileLocation: output.InitialFileLocation != null
|
|
2873
2806
|
? deserializeAws_json1_1FileLocation(output.InitialFileLocation, context)
|
|
2874
2807
|
: undefined,
|
|
2875
|
-
ServiceMetadata: output.ServiceMetadata
|
|
2808
|
+
ServiceMetadata: output.ServiceMetadata != null
|
|
2876
2809
|
? deserializeAws_json1_1ServiceMetadata(output.ServiceMetadata, context)
|
|
2877
2810
|
: undefined,
|
|
2878
2811
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -2953,9 +2886,7 @@ const deserializeAws_json1_1ListedWorkflows = (output, context) => {
|
|
|
2953
2886
|
};
|
|
2954
2887
|
const deserializeAws_json1_1ListExecutionsResponse = (output, context) => {
|
|
2955
2888
|
return {
|
|
2956
|
-
Executions: output.Executions
|
|
2957
|
-
? deserializeAws_json1_1ListedExecutions(output.Executions, context)
|
|
2958
|
-
: undefined,
|
|
2889
|
+
Executions: output.Executions != null ? deserializeAws_json1_1ListedExecutions(output.Executions, context) : undefined,
|
|
2959
2890
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2960
2891
|
WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
|
|
2961
2892
|
};
|
|
@@ -2963,7 +2894,7 @@ const deserializeAws_json1_1ListExecutionsResponse = (output, context) => {
|
|
|
2963
2894
|
const deserializeAws_json1_1ListSecurityPoliciesResponse = (output, context) => {
|
|
2964
2895
|
return {
|
|
2965
2896
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2966
|
-
SecurityPolicyNames: output.SecurityPolicyNames
|
|
2897
|
+
SecurityPolicyNames: output.SecurityPolicyNames != null
|
|
2967
2898
|
? deserializeAws_json1_1SecurityPolicyNames(output.SecurityPolicyNames, context)
|
|
2968
2899
|
: undefined,
|
|
2969
2900
|
};
|
|
@@ -2971,33 +2902,27 @@ const deserializeAws_json1_1ListSecurityPoliciesResponse = (output, context) =>
|
|
|
2971
2902
|
const deserializeAws_json1_1ListServersResponse = (output, context) => {
|
|
2972
2903
|
return {
|
|
2973
2904
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2974
|
-
Servers: output.Servers
|
|
2975
|
-
? deserializeAws_json1_1ListedServers(output.Servers, context)
|
|
2976
|
-
: undefined,
|
|
2905
|
+
Servers: output.Servers != null ? deserializeAws_json1_1ListedServers(output.Servers, context) : undefined,
|
|
2977
2906
|
};
|
|
2978
2907
|
};
|
|
2979
2908
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
2980
2909
|
return {
|
|
2981
2910
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2982
2911
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2983
|
-
Tags: output.Tags
|
|
2912
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
2984
2913
|
};
|
|
2985
2914
|
};
|
|
2986
2915
|
const deserializeAws_json1_1ListUsersResponse = (output, context) => {
|
|
2987
2916
|
return {
|
|
2988
2917
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2989
2918
|
ServerId: (0, smithy_client_1.expectString)(output.ServerId),
|
|
2990
|
-
Users: output.Users
|
|
2991
|
-
? deserializeAws_json1_1ListedUsers(output.Users, context)
|
|
2992
|
-
: undefined,
|
|
2919
|
+
Users: output.Users != null ? deserializeAws_json1_1ListedUsers(output.Users, context) : undefined,
|
|
2993
2920
|
};
|
|
2994
2921
|
};
|
|
2995
2922
|
const deserializeAws_json1_1ListWorkflowsResponse = (output, context) => {
|
|
2996
2923
|
return {
|
|
2997
2924
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2998
|
-
Workflows: output.Workflows
|
|
2999
|
-
? deserializeAws_json1_1ListedWorkflows(output.Workflows, context)
|
|
3000
|
-
: undefined,
|
|
2925
|
+
Workflows: output.Workflows != null ? deserializeAws_json1_1ListedWorkflows(output.Workflows, context) : undefined,
|
|
3001
2926
|
};
|
|
3002
2927
|
};
|
|
3003
2928
|
const deserializeAws_json1_1LoggingConfiguration = (output, context) => {
|
|
@@ -3020,9 +2945,7 @@ const deserializeAws_json1_1OnUploadWorkflowDetails = (output, context) => {
|
|
|
3020
2945
|
const deserializeAws_json1_1PosixProfile = (output, context) => {
|
|
3021
2946
|
return {
|
|
3022
2947
|
Gid: (0, smithy_client_1.expectLong)(output.Gid),
|
|
3023
|
-
SecondaryGids: output.SecondaryGids
|
|
3024
|
-
? deserializeAws_json1_1SecondaryGids(output.SecondaryGids, context)
|
|
3025
|
-
: undefined,
|
|
2948
|
+
SecondaryGids: output.SecondaryGids != null ? deserializeAws_json1_1SecondaryGids(output.SecondaryGids, context) : undefined,
|
|
3026
2949
|
Uid: (0, smithy_client_1.expectLong)(output.Uid),
|
|
3027
2950
|
};
|
|
3028
2951
|
};
|
|
@@ -3138,9 +3061,7 @@ const deserializeAws_json1_1SendWorkflowStepStateResponse = (output, context) =>
|
|
|
3138
3061
|
};
|
|
3139
3062
|
const deserializeAws_json1_1ServiceMetadata = (output, context) => {
|
|
3140
3063
|
return {
|
|
3141
|
-
UserDetails: output.UserDetails
|
|
3142
|
-
? deserializeAws_json1_1UserDetails(output.UserDetails, context)
|
|
3143
|
-
: undefined,
|
|
3064
|
+
UserDetails: output.UserDetails != null ? deserializeAws_json1_1UserDetails(output.UserDetails, context) : undefined,
|
|
3144
3065
|
};
|
|
3145
3066
|
};
|
|
3146
3067
|
const deserializeAws_json1_1ServiceUnavailableException = (output, context) => {
|
|
@@ -3150,7 +3071,7 @@ const deserializeAws_json1_1ServiceUnavailableException = (output, context) => {
|
|
|
3150
3071
|
};
|
|
3151
3072
|
const deserializeAws_json1_1SshPublicKey = (output, context) => {
|
|
3152
3073
|
return {
|
|
3153
|
-
DateImported: output.DateImported
|
|
3074
|
+
DateImported: output.DateImported != null
|
|
3154
3075
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateImported)))
|
|
3155
3076
|
: undefined,
|
|
3156
3077
|
SshPublicKeyBody: (0, smithy_client_1.expectString)(output.SshPublicKeyBody),
|
|
@@ -3200,9 +3121,7 @@ const deserializeAws_json1_1TagStepDetails = (output, context) => {
|
|
|
3200
3121
|
return {
|
|
3201
3122
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3202
3123
|
SourceFileLocation: (0, smithy_client_1.expectString)(output.SourceFileLocation),
|
|
3203
|
-
Tags: output.Tags
|
|
3204
|
-
? deserializeAws_json1_1S3Tags(output.Tags, context)
|
|
3205
|
-
: undefined,
|
|
3124
|
+
Tags: output.Tags != null ? deserializeAws_json1_1S3Tags(output.Tags, context) : undefined,
|
|
3206
3125
|
};
|
|
3207
3126
|
};
|
|
3208
3127
|
const deserializeAws_json1_1TestIdentityProviderResponse = (output, context) => {
|
|
@@ -3250,25 +3169,21 @@ const deserializeAws_json1_1WorkflowDetail = (output, context) => {
|
|
|
3250
3169
|
};
|
|
3251
3170
|
const deserializeAws_json1_1WorkflowDetails = (output, context) => {
|
|
3252
3171
|
return {
|
|
3253
|
-
OnUpload: output.OnUpload
|
|
3254
|
-
? deserializeAws_json1_1OnUploadWorkflowDetails(output.OnUpload, context)
|
|
3255
|
-
: undefined,
|
|
3172
|
+
OnUpload: output.OnUpload != null ? deserializeAws_json1_1OnUploadWorkflowDetails(output.OnUpload, context) : undefined,
|
|
3256
3173
|
};
|
|
3257
3174
|
};
|
|
3258
3175
|
const deserializeAws_json1_1WorkflowStep = (output, context) => {
|
|
3259
3176
|
return {
|
|
3260
|
-
CopyStepDetails: output.CopyStepDetails
|
|
3177
|
+
CopyStepDetails: output.CopyStepDetails != null
|
|
3261
3178
|
? deserializeAws_json1_1CopyStepDetails(output.CopyStepDetails, context)
|
|
3262
3179
|
: undefined,
|
|
3263
|
-
CustomStepDetails: output.CustomStepDetails
|
|
3180
|
+
CustomStepDetails: output.CustomStepDetails != null
|
|
3264
3181
|
? deserializeAws_json1_1CustomStepDetails(output.CustomStepDetails, context)
|
|
3265
3182
|
: undefined,
|
|
3266
|
-
DeleteStepDetails: output.DeleteStepDetails
|
|
3183
|
+
DeleteStepDetails: output.DeleteStepDetails != null
|
|
3267
3184
|
? deserializeAws_json1_1DeleteStepDetails(output.DeleteStepDetails, context)
|
|
3268
3185
|
: undefined,
|
|
3269
|
-
TagStepDetails: output.TagStepDetails
|
|
3270
|
-
? deserializeAws_json1_1TagStepDetails(output.TagStepDetails, context)
|
|
3271
|
-
: undefined,
|
|
3186
|
+
TagStepDetails: output.TagStepDetails != null ? deserializeAws_json1_1TagStepDetails(output.TagStepDetails, context) : undefined,
|
|
3272
3187
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3273
3188
|
};
|
|
3274
3189
|
};
|
|
@@ -3345,5 +3260,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3345
3260
|
if (data["__type"] !== undefined) {
|
|
3346
3261
|
return sanitizeErrorCode(data["__type"]);
|
|
3347
3262
|
}
|
|
3348
|
-
return "";
|
|
3349
3263
|
};
|