@aws-sdk/client-transcribe 3.118.0 → 3.127.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 +486 -627
- package/dist-es/protocols/Aws_json1_1.js +373 -514
- package/package.json +26 -26
|
@@ -416,8 +416,7 @@ const deserializeAws_json1_1CreateCallAnalyticsCategoryCommandError = async (out
|
|
|
416
416
|
body: await parseBody(output.body, context),
|
|
417
417
|
};
|
|
418
418
|
let response;
|
|
419
|
-
|
|
420
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
419
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
421
420
|
switch (errorCode) {
|
|
422
421
|
case "BadRequestException":
|
|
423
422
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -433,10 +432,12 @@ const deserializeAws_json1_1CreateCallAnalyticsCategoryCommandError = async (out
|
|
|
433
432
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
434
433
|
default:
|
|
435
434
|
const parsedBody = parsedOutput.body;
|
|
435
|
+
const $metadata = deserializeMetadata(output);
|
|
436
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
436
437
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
437
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
438
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
438
439
|
$fault: "client",
|
|
439
|
-
$metadata
|
|
440
|
+
$metadata,
|
|
440
441
|
});
|
|
441
442
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
442
443
|
}
|
|
@@ -461,8 +462,7 @@ const deserializeAws_json1_1CreateLanguageModelCommandError = async (output, con
|
|
|
461
462
|
body: await parseBody(output.body, context),
|
|
462
463
|
};
|
|
463
464
|
let response;
|
|
464
|
-
|
|
465
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
465
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
466
466
|
switch (errorCode) {
|
|
467
467
|
case "BadRequestException":
|
|
468
468
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -478,10 +478,12 @@ const deserializeAws_json1_1CreateLanguageModelCommandError = async (output, con
|
|
|
478
478
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
479
479
|
default:
|
|
480
480
|
const parsedBody = parsedOutput.body;
|
|
481
|
+
const $metadata = deserializeMetadata(output);
|
|
482
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
481
483
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
482
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
484
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
483
485
|
$fault: "client",
|
|
484
|
-
$metadata
|
|
486
|
+
$metadata,
|
|
485
487
|
});
|
|
486
488
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
487
489
|
}
|
|
@@ -506,8 +508,7 @@ const deserializeAws_json1_1CreateMedicalVocabularyCommandError = async (output,
|
|
|
506
508
|
body: await parseBody(output.body, context),
|
|
507
509
|
};
|
|
508
510
|
let response;
|
|
509
|
-
|
|
510
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
511
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
511
512
|
switch (errorCode) {
|
|
512
513
|
case "BadRequestException":
|
|
513
514
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -523,10 +524,12 @@ const deserializeAws_json1_1CreateMedicalVocabularyCommandError = async (output,
|
|
|
523
524
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
524
525
|
default:
|
|
525
526
|
const parsedBody = parsedOutput.body;
|
|
527
|
+
const $metadata = deserializeMetadata(output);
|
|
528
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
526
529
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
527
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
530
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
528
531
|
$fault: "client",
|
|
529
|
-
$metadata
|
|
532
|
+
$metadata,
|
|
530
533
|
});
|
|
531
534
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
532
535
|
}
|
|
@@ -551,8 +554,7 @@ const deserializeAws_json1_1CreateVocabularyCommandError = async (output, contex
|
|
|
551
554
|
body: await parseBody(output.body, context),
|
|
552
555
|
};
|
|
553
556
|
let response;
|
|
554
|
-
|
|
555
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
557
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
558
|
switch (errorCode) {
|
|
557
559
|
case "BadRequestException":
|
|
558
560
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -568,10 +570,12 @@ const deserializeAws_json1_1CreateVocabularyCommandError = async (output, contex
|
|
|
568
570
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
569
571
|
default:
|
|
570
572
|
const parsedBody = parsedOutput.body;
|
|
573
|
+
const $metadata = deserializeMetadata(output);
|
|
574
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
571
575
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
572
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
576
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
573
577
|
$fault: "client",
|
|
574
|
-
$metadata
|
|
578
|
+
$metadata,
|
|
575
579
|
});
|
|
576
580
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
577
581
|
}
|
|
@@ -596,8 +600,7 @@ const deserializeAws_json1_1CreateVocabularyFilterCommandError = async (output,
|
|
|
596
600
|
body: await parseBody(output.body, context),
|
|
597
601
|
};
|
|
598
602
|
let response;
|
|
599
|
-
|
|
600
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
603
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
601
604
|
switch (errorCode) {
|
|
602
605
|
case "BadRequestException":
|
|
603
606
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -613,10 +616,12 @@ const deserializeAws_json1_1CreateVocabularyFilterCommandError = async (output,
|
|
|
613
616
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
614
617
|
default:
|
|
615
618
|
const parsedBody = parsedOutput.body;
|
|
619
|
+
const $metadata = deserializeMetadata(output);
|
|
620
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
616
621
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
617
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
622
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
618
623
|
$fault: "client",
|
|
619
|
-
$metadata
|
|
624
|
+
$metadata,
|
|
620
625
|
});
|
|
621
626
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
622
627
|
}
|
|
@@ -641,8 +646,7 @@ const deserializeAws_json1_1DeleteCallAnalyticsCategoryCommandError = async (out
|
|
|
641
646
|
body: await parseBody(output.body, context),
|
|
642
647
|
};
|
|
643
648
|
let response;
|
|
644
|
-
|
|
645
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
649
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
646
650
|
switch (errorCode) {
|
|
647
651
|
case "BadRequestException":
|
|
648
652
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -658,10 +662,12 @@ const deserializeAws_json1_1DeleteCallAnalyticsCategoryCommandError = async (out
|
|
|
658
662
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
659
663
|
default:
|
|
660
664
|
const parsedBody = parsedOutput.body;
|
|
665
|
+
const $metadata = deserializeMetadata(output);
|
|
666
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
661
667
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
662
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
668
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
663
669
|
$fault: "client",
|
|
664
|
-
$metadata
|
|
670
|
+
$metadata,
|
|
665
671
|
});
|
|
666
672
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
667
673
|
}
|
|
@@ -686,8 +692,7 @@ const deserializeAws_json1_1DeleteCallAnalyticsJobCommandError = async (output,
|
|
|
686
692
|
body: await parseBody(output.body, context),
|
|
687
693
|
};
|
|
688
694
|
let response;
|
|
689
|
-
|
|
690
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
695
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
691
696
|
switch (errorCode) {
|
|
692
697
|
case "BadRequestException":
|
|
693
698
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -700,10 +705,12 @@ const deserializeAws_json1_1DeleteCallAnalyticsJobCommandError = async (output,
|
|
|
700
705
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
701
706
|
default:
|
|
702
707
|
const parsedBody = parsedOutput.body;
|
|
708
|
+
const $metadata = deserializeMetadata(output);
|
|
709
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
703
710
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
704
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
711
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
705
712
|
$fault: "client",
|
|
706
|
-
$metadata
|
|
713
|
+
$metadata,
|
|
707
714
|
});
|
|
708
715
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
709
716
|
}
|
|
@@ -725,8 +732,7 @@ const deserializeAws_json1_1DeleteLanguageModelCommandError = async (output, con
|
|
|
725
732
|
body: await parseBody(output.body, context),
|
|
726
733
|
};
|
|
727
734
|
let response;
|
|
728
|
-
|
|
729
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
735
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
736
|
switch (errorCode) {
|
|
731
737
|
case "BadRequestException":
|
|
732
738
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -739,10 +745,12 @@ const deserializeAws_json1_1DeleteLanguageModelCommandError = async (output, con
|
|
|
739
745
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
740
746
|
default:
|
|
741
747
|
const parsedBody = parsedOutput.body;
|
|
748
|
+
const $metadata = deserializeMetadata(output);
|
|
749
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
742
750
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
743
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
751
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
744
752
|
$fault: "client",
|
|
745
|
-
$metadata
|
|
753
|
+
$metadata,
|
|
746
754
|
});
|
|
747
755
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
748
756
|
}
|
|
@@ -764,8 +772,7 @@ const deserializeAws_json1_1DeleteMedicalTranscriptionJobCommandError = async (o
|
|
|
764
772
|
body: await parseBody(output.body, context),
|
|
765
773
|
};
|
|
766
774
|
let response;
|
|
767
|
-
|
|
768
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
775
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
769
776
|
switch (errorCode) {
|
|
770
777
|
case "BadRequestException":
|
|
771
778
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -778,10 +785,12 @@ const deserializeAws_json1_1DeleteMedicalTranscriptionJobCommandError = async (o
|
|
|
778
785
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
779
786
|
default:
|
|
780
787
|
const parsedBody = parsedOutput.body;
|
|
788
|
+
const $metadata = deserializeMetadata(output);
|
|
789
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
781
790
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
782
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
791
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
783
792
|
$fault: "client",
|
|
784
|
-
$metadata
|
|
793
|
+
$metadata,
|
|
785
794
|
});
|
|
786
795
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
787
796
|
}
|
|
@@ -803,8 +812,7 @@ const deserializeAws_json1_1DeleteMedicalVocabularyCommandError = async (output,
|
|
|
803
812
|
body: await parseBody(output.body, context),
|
|
804
813
|
};
|
|
805
814
|
let response;
|
|
806
|
-
|
|
807
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
815
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
808
816
|
switch (errorCode) {
|
|
809
817
|
case "BadRequestException":
|
|
810
818
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -820,10 +828,12 @@ const deserializeAws_json1_1DeleteMedicalVocabularyCommandError = async (output,
|
|
|
820
828
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
821
829
|
default:
|
|
822
830
|
const parsedBody = parsedOutput.body;
|
|
831
|
+
const $metadata = deserializeMetadata(output);
|
|
832
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
823
833
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
824
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
834
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
825
835
|
$fault: "client",
|
|
826
|
-
$metadata
|
|
836
|
+
$metadata,
|
|
827
837
|
});
|
|
828
838
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
829
839
|
}
|
|
@@ -845,8 +855,7 @@ const deserializeAws_json1_1DeleteTranscriptionJobCommandError = async (output,
|
|
|
845
855
|
body: await parseBody(output.body, context),
|
|
846
856
|
};
|
|
847
857
|
let response;
|
|
848
|
-
|
|
849
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
858
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
850
859
|
switch (errorCode) {
|
|
851
860
|
case "BadRequestException":
|
|
852
861
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -859,10 +868,12 @@ const deserializeAws_json1_1DeleteTranscriptionJobCommandError = async (output,
|
|
|
859
868
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
860
869
|
default:
|
|
861
870
|
const parsedBody = parsedOutput.body;
|
|
871
|
+
const $metadata = deserializeMetadata(output);
|
|
872
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
862
873
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
863
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
874
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
864
875
|
$fault: "client",
|
|
865
|
-
$metadata
|
|
876
|
+
$metadata,
|
|
866
877
|
});
|
|
867
878
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
868
879
|
}
|
|
@@ -884,8 +895,7 @@ const deserializeAws_json1_1DeleteVocabularyCommandError = async (output, contex
|
|
|
884
895
|
body: await parseBody(output.body, context),
|
|
885
896
|
};
|
|
886
897
|
let response;
|
|
887
|
-
|
|
888
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
898
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
899
|
switch (errorCode) {
|
|
890
900
|
case "BadRequestException":
|
|
891
901
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -901,10 +911,12 @@ const deserializeAws_json1_1DeleteVocabularyCommandError = async (output, contex
|
|
|
901
911
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
902
912
|
default:
|
|
903
913
|
const parsedBody = parsedOutput.body;
|
|
914
|
+
const $metadata = deserializeMetadata(output);
|
|
915
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
904
916
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
905
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
917
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
906
918
|
$fault: "client",
|
|
907
|
-
$metadata
|
|
919
|
+
$metadata,
|
|
908
920
|
});
|
|
909
921
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
910
922
|
}
|
|
@@ -926,8 +938,7 @@ const deserializeAws_json1_1DeleteVocabularyFilterCommandError = async (output,
|
|
|
926
938
|
body: await parseBody(output.body, context),
|
|
927
939
|
};
|
|
928
940
|
let response;
|
|
929
|
-
|
|
930
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
941
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
931
942
|
switch (errorCode) {
|
|
932
943
|
case "BadRequestException":
|
|
933
944
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -943,10 +954,12 @@ const deserializeAws_json1_1DeleteVocabularyFilterCommandError = async (output,
|
|
|
943
954
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
944
955
|
default:
|
|
945
956
|
const parsedBody = parsedOutput.body;
|
|
957
|
+
const $metadata = deserializeMetadata(output);
|
|
958
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
946
959
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
947
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
960
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
948
961
|
$fault: "client",
|
|
949
|
-
$metadata
|
|
962
|
+
$metadata,
|
|
950
963
|
});
|
|
951
964
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
952
965
|
}
|
|
@@ -971,8 +984,7 @@ const deserializeAws_json1_1DescribeLanguageModelCommandError = async (output, c
|
|
|
971
984
|
body: await parseBody(output.body, context),
|
|
972
985
|
};
|
|
973
986
|
let response;
|
|
974
|
-
|
|
975
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
987
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
976
988
|
switch (errorCode) {
|
|
977
989
|
case "BadRequestException":
|
|
978
990
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -988,10 +1000,12 @@ const deserializeAws_json1_1DescribeLanguageModelCommandError = async (output, c
|
|
|
988
1000
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
989
1001
|
default:
|
|
990
1002
|
const parsedBody = parsedOutput.body;
|
|
1003
|
+
const $metadata = deserializeMetadata(output);
|
|
1004
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
991
1005
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
992
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1006
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
993
1007
|
$fault: "client",
|
|
994
|
-
$metadata
|
|
1008
|
+
$metadata,
|
|
995
1009
|
});
|
|
996
1010
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
997
1011
|
}
|
|
@@ -1016,8 +1030,7 @@ const deserializeAws_json1_1GetCallAnalyticsCategoryCommandError = async (output
|
|
|
1016
1030
|
body: await parseBody(output.body, context),
|
|
1017
1031
|
};
|
|
1018
1032
|
let response;
|
|
1019
|
-
|
|
1020
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1033
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1021
1034
|
switch (errorCode) {
|
|
1022
1035
|
case "BadRequestException":
|
|
1023
1036
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1033,10 +1046,12 @@ const deserializeAws_json1_1GetCallAnalyticsCategoryCommandError = async (output
|
|
|
1033
1046
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1034
1047
|
default:
|
|
1035
1048
|
const parsedBody = parsedOutput.body;
|
|
1049
|
+
const $metadata = deserializeMetadata(output);
|
|
1050
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1036
1051
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1037
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1052
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1038
1053
|
$fault: "client",
|
|
1039
|
-
$metadata
|
|
1054
|
+
$metadata,
|
|
1040
1055
|
});
|
|
1041
1056
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1042
1057
|
}
|
|
@@ -1061,8 +1076,7 @@ const deserializeAws_json1_1GetCallAnalyticsJobCommandError = async (output, con
|
|
|
1061
1076
|
body: await parseBody(output.body, context),
|
|
1062
1077
|
};
|
|
1063
1078
|
let response;
|
|
1064
|
-
|
|
1065
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
1080
|
switch (errorCode) {
|
|
1067
1081
|
case "BadRequestException":
|
|
1068
1082
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1078,10 +1092,12 @@ const deserializeAws_json1_1GetCallAnalyticsJobCommandError = async (output, con
|
|
|
1078
1092
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1079
1093
|
default:
|
|
1080
1094
|
const parsedBody = parsedOutput.body;
|
|
1095
|
+
const $metadata = deserializeMetadata(output);
|
|
1096
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1081
1097
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1082
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1098
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1083
1099
|
$fault: "client",
|
|
1084
|
-
$metadata
|
|
1100
|
+
$metadata,
|
|
1085
1101
|
});
|
|
1086
1102
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1087
1103
|
}
|
|
@@ -1106,8 +1122,7 @@ const deserializeAws_json1_1GetMedicalTranscriptionJobCommandError = async (outp
|
|
|
1106
1122
|
body: await parseBody(output.body, context),
|
|
1107
1123
|
};
|
|
1108
1124
|
let response;
|
|
1109
|
-
|
|
1110
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
1126
|
switch (errorCode) {
|
|
1112
1127
|
case "BadRequestException":
|
|
1113
1128
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1123,10 +1138,12 @@ const deserializeAws_json1_1GetMedicalTranscriptionJobCommandError = async (outp
|
|
|
1123
1138
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1124
1139
|
default:
|
|
1125
1140
|
const parsedBody = parsedOutput.body;
|
|
1141
|
+
const $metadata = deserializeMetadata(output);
|
|
1142
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1126
1143
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1127
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1144
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1128
1145
|
$fault: "client",
|
|
1129
|
-
$metadata
|
|
1146
|
+
$metadata,
|
|
1130
1147
|
});
|
|
1131
1148
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1132
1149
|
}
|
|
@@ -1151,8 +1168,7 @@ const deserializeAws_json1_1GetMedicalVocabularyCommandError = async (output, co
|
|
|
1151
1168
|
body: await parseBody(output.body, context),
|
|
1152
1169
|
};
|
|
1153
1170
|
let response;
|
|
1154
|
-
|
|
1155
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1171
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1156
1172
|
switch (errorCode) {
|
|
1157
1173
|
case "BadRequestException":
|
|
1158
1174
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1168,10 +1184,12 @@ const deserializeAws_json1_1GetMedicalVocabularyCommandError = async (output, co
|
|
|
1168
1184
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1169
1185
|
default:
|
|
1170
1186
|
const parsedBody = parsedOutput.body;
|
|
1187
|
+
const $metadata = deserializeMetadata(output);
|
|
1188
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1171
1189
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1172
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1190
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1173
1191
|
$fault: "client",
|
|
1174
|
-
$metadata
|
|
1192
|
+
$metadata,
|
|
1175
1193
|
});
|
|
1176
1194
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1177
1195
|
}
|
|
@@ -1196,8 +1214,7 @@ const deserializeAws_json1_1GetTranscriptionJobCommandError = async (output, con
|
|
|
1196
1214
|
body: await parseBody(output.body, context),
|
|
1197
1215
|
};
|
|
1198
1216
|
let response;
|
|
1199
|
-
|
|
1200
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1217
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
1218
|
switch (errorCode) {
|
|
1202
1219
|
case "BadRequestException":
|
|
1203
1220
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1213,10 +1230,12 @@ const deserializeAws_json1_1GetTranscriptionJobCommandError = async (output, con
|
|
|
1213
1230
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1214
1231
|
default:
|
|
1215
1232
|
const parsedBody = parsedOutput.body;
|
|
1233
|
+
const $metadata = deserializeMetadata(output);
|
|
1234
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1216
1235
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1217
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1236
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1218
1237
|
$fault: "client",
|
|
1219
|
-
$metadata
|
|
1238
|
+
$metadata,
|
|
1220
1239
|
});
|
|
1221
1240
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1222
1241
|
}
|
|
@@ -1241,8 +1260,7 @@ const deserializeAws_json1_1GetVocabularyCommandError = async (output, context)
|
|
|
1241
1260
|
body: await parseBody(output.body, context),
|
|
1242
1261
|
};
|
|
1243
1262
|
let response;
|
|
1244
|
-
|
|
1245
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1263
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
1264
|
switch (errorCode) {
|
|
1247
1265
|
case "BadRequestException":
|
|
1248
1266
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1258,10 +1276,12 @@ const deserializeAws_json1_1GetVocabularyCommandError = async (output, context)
|
|
|
1258
1276
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1259
1277
|
default:
|
|
1260
1278
|
const parsedBody = parsedOutput.body;
|
|
1279
|
+
const $metadata = deserializeMetadata(output);
|
|
1280
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1261
1281
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1262
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1282
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1263
1283
|
$fault: "client",
|
|
1264
|
-
$metadata
|
|
1284
|
+
$metadata,
|
|
1265
1285
|
});
|
|
1266
1286
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1267
1287
|
}
|
|
@@ -1286,8 +1306,7 @@ const deserializeAws_json1_1GetVocabularyFilterCommandError = async (output, con
|
|
|
1286
1306
|
body: await parseBody(output.body, context),
|
|
1287
1307
|
};
|
|
1288
1308
|
let response;
|
|
1289
|
-
|
|
1290
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1291
1310
|
switch (errorCode) {
|
|
1292
1311
|
case "BadRequestException":
|
|
1293
1312
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1303,10 +1322,12 @@ const deserializeAws_json1_1GetVocabularyFilterCommandError = async (output, con
|
|
|
1303
1322
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1304
1323
|
default:
|
|
1305
1324
|
const parsedBody = parsedOutput.body;
|
|
1325
|
+
const $metadata = deserializeMetadata(output);
|
|
1326
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1306
1327
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1307
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1328
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1308
1329
|
$fault: "client",
|
|
1309
|
-
$metadata
|
|
1330
|
+
$metadata,
|
|
1310
1331
|
});
|
|
1311
1332
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1312
1333
|
}
|
|
@@ -1331,8 +1352,7 @@ const deserializeAws_json1_1ListCallAnalyticsCategoriesCommandError = async (out
|
|
|
1331
1352
|
body: await parseBody(output.body, context),
|
|
1332
1353
|
};
|
|
1333
1354
|
let response;
|
|
1334
|
-
|
|
1335
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1355
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1336
1356
|
switch (errorCode) {
|
|
1337
1357
|
case "BadRequestException":
|
|
1338
1358
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1345,10 +1365,12 @@ const deserializeAws_json1_1ListCallAnalyticsCategoriesCommandError = async (out
|
|
|
1345
1365
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1346
1366
|
default:
|
|
1347
1367
|
const parsedBody = parsedOutput.body;
|
|
1368
|
+
const $metadata = deserializeMetadata(output);
|
|
1369
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1348
1370
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1349
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1371
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1350
1372
|
$fault: "client",
|
|
1351
|
-
$metadata
|
|
1373
|
+
$metadata,
|
|
1352
1374
|
});
|
|
1353
1375
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1354
1376
|
}
|
|
@@ -1373,8 +1395,7 @@ const deserializeAws_json1_1ListCallAnalyticsJobsCommandError = async (output, c
|
|
|
1373
1395
|
body: await parseBody(output.body, context),
|
|
1374
1396
|
};
|
|
1375
1397
|
let response;
|
|
1376
|
-
|
|
1377
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1398
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1378
1399
|
switch (errorCode) {
|
|
1379
1400
|
case "BadRequestException":
|
|
1380
1401
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1387,10 +1408,12 @@ const deserializeAws_json1_1ListCallAnalyticsJobsCommandError = async (output, c
|
|
|
1387
1408
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1388
1409
|
default:
|
|
1389
1410
|
const parsedBody = parsedOutput.body;
|
|
1411
|
+
const $metadata = deserializeMetadata(output);
|
|
1412
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1390
1413
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1391
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1414
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1392
1415
|
$fault: "client",
|
|
1393
|
-
$metadata
|
|
1416
|
+
$metadata,
|
|
1394
1417
|
});
|
|
1395
1418
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1396
1419
|
}
|
|
@@ -1415,8 +1438,7 @@ const deserializeAws_json1_1ListLanguageModelsCommandError = async (output, cont
|
|
|
1415
1438
|
body: await parseBody(output.body, context),
|
|
1416
1439
|
};
|
|
1417
1440
|
let response;
|
|
1418
|
-
|
|
1419
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1441
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1420
1442
|
switch (errorCode) {
|
|
1421
1443
|
case "BadRequestException":
|
|
1422
1444
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1429,10 +1451,12 @@ const deserializeAws_json1_1ListLanguageModelsCommandError = async (output, cont
|
|
|
1429
1451
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1430
1452
|
default:
|
|
1431
1453
|
const parsedBody = parsedOutput.body;
|
|
1454
|
+
const $metadata = deserializeMetadata(output);
|
|
1455
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1432
1456
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1433
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1457
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1434
1458
|
$fault: "client",
|
|
1435
|
-
$metadata
|
|
1459
|
+
$metadata,
|
|
1436
1460
|
});
|
|
1437
1461
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1438
1462
|
}
|
|
@@ -1457,8 +1481,7 @@ const deserializeAws_json1_1ListMedicalTranscriptionJobsCommandError = async (ou
|
|
|
1457
1481
|
body: await parseBody(output.body, context),
|
|
1458
1482
|
};
|
|
1459
1483
|
let response;
|
|
1460
|
-
|
|
1461
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1462
1485
|
switch (errorCode) {
|
|
1463
1486
|
case "BadRequestException":
|
|
1464
1487
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1471,10 +1494,12 @@ const deserializeAws_json1_1ListMedicalTranscriptionJobsCommandError = async (ou
|
|
|
1471
1494
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1472
1495
|
default:
|
|
1473
1496
|
const parsedBody = parsedOutput.body;
|
|
1497
|
+
const $metadata = deserializeMetadata(output);
|
|
1498
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1474
1499
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1475
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1500
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1476
1501
|
$fault: "client",
|
|
1477
|
-
$metadata
|
|
1502
|
+
$metadata,
|
|
1478
1503
|
});
|
|
1479
1504
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1480
1505
|
}
|
|
@@ -1499,8 +1524,7 @@ const deserializeAws_json1_1ListMedicalVocabulariesCommandError = async (output,
|
|
|
1499
1524
|
body: await parseBody(output.body, context),
|
|
1500
1525
|
};
|
|
1501
1526
|
let response;
|
|
1502
|
-
|
|
1503
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1527
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1504
1528
|
switch (errorCode) {
|
|
1505
1529
|
case "BadRequestException":
|
|
1506
1530
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1513,10 +1537,12 @@ const deserializeAws_json1_1ListMedicalVocabulariesCommandError = async (output,
|
|
|
1513
1537
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1514
1538
|
default:
|
|
1515
1539
|
const parsedBody = parsedOutput.body;
|
|
1540
|
+
const $metadata = deserializeMetadata(output);
|
|
1541
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1516
1542
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1517
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1543
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1518
1544
|
$fault: "client",
|
|
1519
|
-
$metadata
|
|
1545
|
+
$metadata,
|
|
1520
1546
|
});
|
|
1521
1547
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1522
1548
|
}
|
|
@@ -1541,8 +1567,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1541
1567
|
body: await parseBody(output.body, context),
|
|
1542
1568
|
};
|
|
1543
1569
|
let response;
|
|
1544
|
-
|
|
1545
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1570
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1546
1571
|
switch (errorCode) {
|
|
1547
1572
|
case "BadRequestException":
|
|
1548
1573
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1558,10 +1583,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1558
1583
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1559
1584
|
default:
|
|
1560
1585
|
const parsedBody = parsedOutput.body;
|
|
1586
|
+
const $metadata = deserializeMetadata(output);
|
|
1587
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1561
1588
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1562
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1589
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1563
1590
|
$fault: "client",
|
|
1564
|
-
$metadata
|
|
1591
|
+
$metadata,
|
|
1565
1592
|
});
|
|
1566
1593
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1567
1594
|
}
|
|
@@ -1586,8 +1613,7 @@ const deserializeAws_json1_1ListTranscriptionJobsCommandError = async (output, c
|
|
|
1586
1613
|
body: await parseBody(output.body, context),
|
|
1587
1614
|
};
|
|
1588
1615
|
let response;
|
|
1589
|
-
|
|
1590
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1616
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1591
1617
|
switch (errorCode) {
|
|
1592
1618
|
case "BadRequestException":
|
|
1593
1619
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1600,10 +1626,12 @@ const deserializeAws_json1_1ListTranscriptionJobsCommandError = async (output, c
|
|
|
1600
1626
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1601
1627
|
default:
|
|
1602
1628
|
const parsedBody = parsedOutput.body;
|
|
1629
|
+
const $metadata = deserializeMetadata(output);
|
|
1630
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1603
1631
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1604
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1632
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1605
1633
|
$fault: "client",
|
|
1606
|
-
$metadata
|
|
1634
|
+
$metadata,
|
|
1607
1635
|
});
|
|
1608
1636
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1609
1637
|
}
|
|
@@ -1628,8 +1656,7 @@ const deserializeAws_json1_1ListVocabulariesCommandError = async (output, contex
|
|
|
1628
1656
|
body: await parseBody(output.body, context),
|
|
1629
1657
|
};
|
|
1630
1658
|
let response;
|
|
1631
|
-
|
|
1632
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1659
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1633
1660
|
switch (errorCode) {
|
|
1634
1661
|
case "BadRequestException":
|
|
1635
1662
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1642,10 +1669,12 @@ const deserializeAws_json1_1ListVocabulariesCommandError = async (output, contex
|
|
|
1642
1669
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1643
1670
|
default:
|
|
1644
1671
|
const parsedBody = parsedOutput.body;
|
|
1672
|
+
const $metadata = deserializeMetadata(output);
|
|
1673
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1645
1674
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1646
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1675
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1647
1676
|
$fault: "client",
|
|
1648
|
-
$metadata
|
|
1677
|
+
$metadata,
|
|
1649
1678
|
});
|
|
1650
1679
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1651
1680
|
}
|
|
@@ -1670,8 +1699,7 @@ const deserializeAws_json1_1ListVocabularyFiltersCommandError = async (output, c
|
|
|
1670
1699
|
body: await parseBody(output.body, context),
|
|
1671
1700
|
};
|
|
1672
1701
|
let response;
|
|
1673
|
-
|
|
1674
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1702
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1675
1703
|
switch (errorCode) {
|
|
1676
1704
|
case "BadRequestException":
|
|
1677
1705
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1684,10 +1712,12 @@ const deserializeAws_json1_1ListVocabularyFiltersCommandError = async (output, c
|
|
|
1684
1712
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1685
1713
|
default:
|
|
1686
1714
|
const parsedBody = parsedOutput.body;
|
|
1715
|
+
const $metadata = deserializeMetadata(output);
|
|
1716
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1687
1717
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1688
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1718
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1689
1719
|
$fault: "client",
|
|
1690
|
-
$metadata
|
|
1720
|
+
$metadata,
|
|
1691
1721
|
});
|
|
1692
1722
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1693
1723
|
}
|
|
@@ -1712,8 +1742,7 @@ const deserializeAws_json1_1StartCallAnalyticsJobCommandError = async (output, c
|
|
|
1712
1742
|
body: await parseBody(output.body, context),
|
|
1713
1743
|
};
|
|
1714
1744
|
let response;
|
|
1715
|
-
|
|
1716
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1745
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1717
1746
|
switch (errorCode) {
|
|
1718
1747
|
case "BadRequestException":
|
|
1719
1748
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1729,10 +1758,12 @@ const deserializeAws_json1_1StartCallAnalyticsJobCommandError = async (output, c
|
|
|
1729
1758
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1730
1759
|
default:
|
|
1731
1760
|
const parsedBody = parsedOutput.body;
|
|
1761
|
+
const $metadata = deserializeMetadata(output);
|
|
1762
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1732
1763
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1733
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1764
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1734
1765
|
$fault: "client",
|
|
1735
|
-
$metadata
|
|
1766
|
+
$metadata,
|
|
1736
1767
|
});
|
|
1737
1768
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1738
1769
|
}
|
|
@@ -1757,8 +1788,7 @@ const deserializeAws_json1_1StartMedicalTranscriptionJobCommandError = async (ou
|
|
|
1757
1788
|
body: await parseBody(output.body, context),
|
|
1758
1789
|
};
|
|
1759
1790
|
let response;
|
|
1760
|
-
|
|
1761
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1791
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
1792
|
switch (errorCode) {
|
|
1763
1793
|
case "BadRequestException":
|
|
1764
1794
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1774,10 +1804,12 @@ const deserializeAws_json1_1StartMedicalTranscriptionJobCommandError = async (ou
|
|
|
1774
1804
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1775
1805
|
default:
|
|
1776
1806
|
const parsedBody = parsedOutput.body;
|
|
1807
|
+
const $metadata = deserializeMetadata(output);
|
|
1808
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1777
1809
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1778
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1810
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1779
1811
|
$fault: "client",
|
|
1780
|
-
$metadata
|
|
1812
|
+
$metadata,
|
|
1781
1813
|
});
|
|
1782
1814
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1783
1815
|
}
|
|
@@ -1802,8 +1834,7 @@ const deserializeAws_json1_1StartTranscriptionJobCommandError = async (output, c
|
|
|
1802
1834
|
body: await parseBody(output.body, context),
|
|
1803
1835
|
};
|
|
1804
1836
|
let response;
|
|
1805
|
-
|
|
1806
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1837
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1807
1838
|
switch (errorCode) {
|
|
1808
1839
|
case "BadRequestException":
|
|
1809
1840
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1819,10 +1850,12 @@ const deserializeAws_json1_1StartTranscriptionJobCommandError = async (output, c
|
|
|
1819
1850
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1820
1851
|
default:
|
|
1821
1852
|
const parsedBody = parsedOutput.body;
|
|
1853
|
+
const $metadata = deserializeMetadata(output);
|
|
1854
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1822
1855
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1823
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1856
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1824
1857
|
$fault: "client",
|
|
1825
|
-
$metadata
|
|
1858
|
+
$metadata,
|
|
1826
1859
|
});
|
|
1827
1860
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1828
1861
|
}
|
|
@@ -1847,8 +1880,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1847
1880
|
body: await parseBody(output.body, context),
|
|
1848
1881
|
};
|
|
1849
1882
|
let response;
|
|
1850
|
-
|
|
1851
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1883
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1852
1884
|
switch (errorCode) {
|
|
1853
1885
|
case "BadRequestException":
|
|
1854
1886
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1867,10 +1899,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1867
1899
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1868
1900
|
default:
|
|
1869
1901
|
const parsedBody = parsedOutput.body;
|
|
1902
|
+
const $metadata = deserializeMetadata(output);
|
|
1903
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1870
1904
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1871
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1905
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1872
1906
|
$fault: "client",
|
|
1873
|
-
$metadata
|
|
1907
|
+
$metadata,
|
|
1874
1908
|
});
|
|
1875
1909
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1876
1910
|
}
|
|
@@ -1895,8 +1929,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1895
1929
|
body: await parseBody(output.body, context),
|
|
1896
1930
|
};
|
|
1897
1931
|
let response;
|
|
1898
|
-
|
|
1899
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1932
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1900
1933
|
switch (errorCode) {
|
|
1901
1934
|
case "BadRequestException":
|
|
1902
1935
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1915,10 +1948,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1915
1948
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1916
1949
|
default:
|
|
1917
1950
|
const parsedBody = parsedOutput.body;
|
|
1951
|
+
const $metadata = deserializeMetadata(output);
|
|
1952
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1918
1953
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1919
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1954
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1920
1955
|
$fault: "client",
|
|
1921
|
-
$metadata
|
|
1956
|
+
$metadata,
|
|
1922
1957
|
});
|
|
1923
1958
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1924
1959
|
}
|
|
@@ -1943,8 +1978,7 @@ const deserializeAws_json1_1UpdateCallAnalyticsCategoryCommandError = async (out
|
|
|
1943
1978
|
body: await parseBody(output.body, context),
|
|
1944
1979
|
};
|
|
1945
1980
|
let response;
|
|
1946
|
-
|
|
1947
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1981
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1948
1982
|
switch (errorCode) {
|
|
1949
1983
|
case "BadRequestException":
|
|
1950
1984
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -1963,10 +1997,12 @@ const deserializeAws_json1_1UpdateCallAnalyticsCategoryCommandError = async (out
|
|
|
1963
1997
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1964
1998
|
default:
|
|
1965
1999
|
const parsedBody = parsedOutput.body;
|
|
2000
|
+
const $metadata = deserializeMetadata(output);
|
|
2001
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1966
2002
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
1967
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2003
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1968
2004
|
$fault: "client",
|
|
1969
|
-
$metadata
|
|
2005
|
+
$metadata,
|
|
1970
2006
|
});
|
|
1971
2007
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1972
2008
|
}
|
|
@@ -1991,8 +2027,7 @@ const deserializeAws_json1_1UpdateMedicalVocabularyCommandError = async (output,
|
|
|
1991
2027
|
body: await parseBody(output.body, context),
|
|
1992
2028
|
};
|
|
1993
2029
|
let response;
|
|
1994
|
-
|
|
1995
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2030
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1996
2031
|
switch (errorCode) {
|
|
1997
2032
|
case "BadRequestException":
|
|
1998
2033
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -2011,10 +2046,12 @@ const deserializeAws_json1_1UpdateMedicalVocabularyCommandError = async (output,
|
|
|
2011
2046
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2012
2047
|
default:
|
|
2013
2048
|
const parsedBody = parsedOutput.body;
|
|
2049
|
+
const $metadata = deserializeMetadata(output);
|
|
2050
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2014
2051
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
2015
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2052
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2016
2053
|
$fault: "client",
|
|
2017
|
-
$metadata
|
|
2054
|
+
$metadata,
|
|
2018
2055
|
});
|
|
2019
2056
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2020
2057
|
}
|
|
@@ -2039,8 +2076,7 @@ const deserializeAws_json1_1UpdateVocabularyCommandError = async (output, contex
|
|
|
2039
2076
|
body: await parseBody(output.body, context),
|
|
2040
2077
|
};
|
|
2041
2078
|
let response;
|
|
2042
|
-
|
|
2043
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2079
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2044
2080
|
switch (errorCode) {
|
|
2045
2081
|
case "BadRequestException":
|
|
2046
2082
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -2059,10 +2095,12 @@ const deserializeAws_json1_1UpdateVocabularyCommandError = async (output, contex
|
|
|
2059
2095
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2060
2096
|
default:
|
|
2061
2097
|
const parsedBody = parsedOutput.body;
|
|
2098
|
+
const $metadata = deserializeMetadata(output);
|
|
2099
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2062
2100
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
2063
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2101
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2064
2102
|
$fault: "client",
|
|
2065
|
-
$metadata
|
|
2103
|
+
$metadata,
|
|
2066
2104
|
});
|
|
2067
2105
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2068
2106
|
}
|
|
@@ -2087,8 +2125,7 @@ const deserializeAws_json1_1UpdateVocabularyFilterCommandError = async (output,
|
|
|
2087
2125
|
body: await parseBody(output.body, context),
|
|
2088
2126
|
};
|
|
2089
2127
|
let response;
|
|
2090
|
-
|
|
2091
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2128
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2092
2129
|
switch (errorCode) {
|
|
2093
2130
|
case "BadRequestException":
|
|
2094
2131
|
case "com.amazonaws.transcribe#BadRequestException":
|
|
@@ -2104,10 +2141,12 @@ const deserializeAws_json1_1UpdateVocabularyFilterCommandError = async (output,
|
|
|
2104
2141
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2105
2142
|
default:
|
|
2106
2143
|
const parsedBody = parsedOutput.body;
|
|
2144
|
+
const $metadata = deserializeMetadata(output);
|
|
2145
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2107
2146
|
response = new TranscribeServiceException_1.TranscribeServiceException({
|
|
2108
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2147
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2109
2148
|
$fault: "client",
|
|
2110
|
-
$metadata
|
|
2149
|
+
$metadata,
|
|
2111
2150
|
});
|
|
2112
2151
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2113
2152
|
}
|
|
@@ -2159,41 +2198,33 @@ const deserializeAws_json1_1NotFoundExceptionResponse = async (parsedOutput, con
|
|
|
2159
2198
|
};
|
|
2160
2199
|
const serializeAws_json1_1AbsoluteTimeRange = (input, context) => {
|
|
2161
2200
|
return {
|
|
2162
|
-
...(input.EndTime
|
|
2163
|
-
...(input.First
|
|
2164
|
-
...(input.Last
|
|
2165
|
-
...(input.StartTime
|
|
2201
|
+
...(input.EndTime != null && { EndTime: input.EndTime }),
|
|
2202
|
+
...(input.First != null && { First: input.First }),
|
|
2203
|
+
...(input.Last != null && { Last: input.Last }),
|
|
2204
|
+
...(input.StartTime != null && { StartTime: input.StartTime }),
|
|
2166
2205
|
};
|
|
2167
2206
|
};
|
|
2168
2207
|
const serializeAws_json1_1CallAnalyticsJobSettings = (input, context) => {
|
|
2169
2208
|
return {
|
|
2170
|
-
...(input.ContentRedaction
|
|
2171
|
-
input.ContentRedaction !== null && {
|
|
2209
|
+
...(input.ContentRedaction != null && {
|
|
2172
2210
|
ContentRedaction: serializeAws_json1_1ContentRedaction(input.ContentRedaction, context),
|
|
2173
2211
|
}),
|
|
2174
|
-
...(input.LanguageIdSettings
|
|
2175
|
-
input.LanguageIdSettings !== null && {
|
|
2212
|
+
...(input.LanguageIdSettings != null && {
|
|
2176
2213
|
LanguageIdSettings: serializeAws_json1_1LanguageIdSettingsMap(input.LanguageIdSettings, context),
|
|
2177
2214
|
}),
|
|
2178
|
-
...(input.LanguageModelName
|
|
2179
|
-
|
|
2180
|
-
...(input.LanguageOptions !== undefined &&
|
|
2181
|
-
input.LanguageOptions !== null && {
|
|
2215
|
+
...(input.LanguageModelName != null && { LanguageModelName: input.LanguageModelName }),
|
|
2216
|
+
...(input.LanguageOptions != null && {
|
|
2182
2217
|
LanguageOptions: serializeAws_json1_1LanguageOptions(input.LanguageOptions, context),
|
|
2183
2218
|
}),
|
|
2184
|
-
...(input.VocabularyFilterMethod
|
|
2185
|
-
|
|
2186
|
-
...(input.
|
|
2187
|
-
input.VocabularyFilterName !== null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2188
|
-
...(input.VocabularyName !== undefined &&
|
|
2189
|
-
input.VocabularyName !== null && { VocabularyName: input.VocabularyName }),
|
|
2219
|
+
...(input.VocabularyFilterMethod != null && { VocabularyFilterMethod: input.VocabularyFilterMethod }),
|
|
2220
|
+
...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2221
|
+
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2190
2222
|
};
|
|
2191
2223
|
};
|
|
2192
2224
|
const serializeAws_json1_1ChannelDefinition = (input, context) => {
|
|
2193
2225
|
return {
|
|
2194
|
-
...(input.ChannelId
|
|
2195
|
-
...(input.ParticipantRole
|
|
2196
|
-
input.ParticipantRole !== null && { ParticipantRole: input.ParticipantRole }),
|
|
2226
|
+
...(input.ChannelId != null && { ChannelId: input.ChannelId }),
|
|
2227
|
+
...(input.ParticipantRole != null && { ParticipantRole: input.ParticipantRole }),
|
|
2197
2228
|
};
|
|
2198
2229
|
};
|
|
2199
2230
|
const serializeAws_json1_1ChannelDefinitions = (input, context) => {
|
|
@@ -2208,191 +2239,164 @@ const serializeAws_json1_1ChannelDefinitions = (input, context) => {
|
|
|
2208
2239
|
};
|
|
2209
2240
|
const serializeAws_json1_1ContentRedaction = (input, context) => {
|
|
2210
2241
|
return {
|
|
2211
|
-
...(input.PiiEntityTypes
|
|
2212
|
-
input.PiiEntityTypes !== null && {
|
|
2242
|
+
...(input.PiiEntityTypes != null && {
|
|
2213
2243
|
PiiEntityTypes: serializeAws_json1_1PiiEntityTypes(input.PiiEntityTypes, context),
|
|
2214
2244
|
}),
|
|
2215
|
-
...(input.RedactionOutput
|
|
2216
|
-
|
|
2217
|
-
...(input.RedactionType !== undefined && input.RedactionType !== null && { RedactionType: input.RedactionType }),
|
|
2245
|
+
...(input.RedactionOutput != null && { RedactionOutput: input.RedactionOutput }),
|
|
2246
|
+
...(input.RedactionType != null && { RedactionType: input.RedactionType }),
|
|
2218
2247
|
};
|
|
2219
2248
|
};
|
|
2220
2249
|
const serializeAws_json1_1CreateCallAnalyticsCategoryRequest = (input, context) => {
|
|
2221
2250
|
return {
|
|
2222
|
-
...(input.CategoryName
|
|
2223
|
-
...(input.Rules
|
|
2224
|
-
input.Rules !== null && { Rules: serializeAws_json1_1RuleList(input.Rules, context) }),
|
|
2251
|
+
...(input.CategoryName != null && { CategoryName: input.CategoryName }),
|
|
2252
|
+
...(input.Rules != null && { Rules: serializeAws_json1_1RuleList(input.Rules, context) }),
|
|
2225
2253
|
};
|
|
2226
2254
|
};
|
|
2227
2255
|
const serializeAws_json1_1CreateLanguageModelRequest = (input, context) => {
|
|
2228
2256
|
return {
|
|
2229
|
-
...(input.BaseModelName
|
|
2230
|
-
...(input.InputDataConfig
|
|
2231
|
-
input.InputDataConfig !== null && {
|
|
2257
|
+
...(input.BaseModelName != null && { BaseModelName: input.BaseModelName }),
|
|
2258
|
+
...(input.InputDataConfig != null && {
|
|
2232
2259
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
2233
2260
|
}),
|
|
2234
|
-
...(input.LanguageCode
|
|
2235
|
-
...(input.ModelName
|
|
2236
|
-
...(input.Tags
|
|
2261
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
2262
|
+
...(input.ModelName != null && { ModelName: input.ModelName }),
|
|
2263
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2237
2264
|
};
|
|
2238
2265
|
};
|
|
2239
2266
|
const serializeAws_json1_1CreateMedicalVocabularyRequest = (input, context) => {
|
|
2240
2267
|
return {
|
|
2241
|
-
...(input.LanguageCode
|
|
2242
|
-
...(input.Tags
|
|
2243
|
-
...(input.VocabularyFileUri
|
|
2244
|
-
|
|
2245
|
-
...(input.VocabularyName !== undefined &&
|
|
2246
|
-
input.VocabularyName !== null && { VocabularyName: input.VocabularyName }),
|
|
2268
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
2269
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2270
|
+
...(input.VocabularyFileUri != null && { VocabularyFileUri: input.VocabularyFileUri }),
|
|
2271
|
+
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2247
2272
|
};
|
|
2248
2273
|
};
|
|
2249
2274
|
const serializeAws_json1_1CreateVocabularyFilterRequest = (input, context) => {
|
|
2250
2275
|
return {
|
|
2251
|
-
...(input.LanguageCode
|
|
2252
|
-
...(input.Tags
|
|
2253
|
-
...(input.VocabularyFilterFileUri
|
|
2254
|
-
|
|
2255
|
-
...(input.
|
|
2256
|
-
input.VocabularyFilterName !== null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2257
|
-
...(input.Words !== undefined &&
|
|
2258
|
-
input.Words !== null && { Words: serializeAws_json1_1Words(input.Words, context) }),
|
|
2276
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
2277
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2278
|
+
...(input.VocabularyFilterFileUri != null && { VocabularyFilterFileUri: input.VocabularyFilterFileUri }),
|
|
2279
|
+
...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2280
|
+
...(input.Words != null && { Words: serializeAws_json1_1Words(input.Words, context) }),
|
|
2259
2281
|
};
|
|
2260
2282
|
};
|
|
2261
2283
|
const serializeAws_json1_1CreateVocabularyRequest = (input, context) => {
|
|
2262
2284
|
return {
|
|
2263
|
-
...(input.LanguageCode
|
|
2264
|
-
...(input.Phrases
|
|
2265
|
-
|
|
2266
|
-
...(input.
|
|
2267
|
-
...(input.
|
|
2268
|
-
input.VocabularyFileUri !== null && { VocabularyFileUri: input.VocabularyFileUri }),
|
|
2269
|
-
...(input.VocabularyName !== undefined &&
|
|
2270
|
-
input.VocabularyName !== null && { VocabularyName: input.VocabularyName }),
|
|
2285
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
2286
|
+
...(input.Phrases != null && { Phrases: serializeAws_json1_1Phrases(input.Phrases, context) }),
|
|
2287
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2288
|
+
...(input.VocabularyFileUri != null && { VocabularyFileUri: input.VocabularyFileUri }),
|
|
2289
|
+
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2271
2290
|
};
|
|
2272
2291
|
};
|
|
2273
2292
|
const serializeAws_json1_1DeleteCallAnalyticsCategoryRequest = (input, context) => {
|
|
2274
2293
|
return {
|
|
2275
|
-
...(input.CategoryName
|
|
2294
|
+
...(input.CategoryName != null && { CategoryName: input.CategoryName }),
|
|
2276
2295
|
};
|
|
2277
2296
|
};
|
|
2278
2297
|
const serializeAws_json1_1DeleteCallAnalyticsJobRequest = (input, context) => {
|
|
2279
2298
|
return {
|
|
2280
|
-
...(input.CallAnalyticsJobName
|
|
2281
|
-
input.CallAnalyticsJobName !== null && { CallAnalyticsJobName: input.CallAnalyticsJobName }),
|
|
2299
|
+
...(input.CallAnalyticsJobName != null && { CallAnalyticsJobName: input.CallAnalyticsJobName }),
|
|
2282
2300
|
};
|
|
2283
2301
|
};
|
|
2284
2302
|
const serializeAws_json1_1DeleteLanguageModelRequest = (input, context) => {
|
|
2285
2303
|
return {
|
|
2286
|
-
...(input.ModelName
|
|
2304
|
+
...(input.ModelName != null && { ModelName: input.ModelName }),
|
|
2287
2305
|
};
|
|
2288
2306
|
};
|
|
2289
2307
|
const serializeAws_json1_1DeleteMedicalTranscriptionJobRequest = (input, context) => {
|
|
2290
2308
|
return {
|
|
2291
|
-
...(input.MedicalTranscriptionJobName
|
|
2292
|
-
|
|
2309
|
+
...(input.MedicalTranscriptionJobName != null && {
|
|
2310
|
+
MedicalTranscriptionJobName: input.MedicalTranscriptionJobName,
|
|
2311
|
+
}),
|
|
2293
2312
|
};
|
|
2294
2313
|
};
|
|
2295
2314
|
const serializeAws_json1_1DeleteMedicalVocabularyRequest = (input, context) => {
|
|
2296
2315
|
return {
|
|
2297
|
-
...(input.VocabularyName
|
|
2298
|
-
input.VocabularyName !== null && { VocabularyName: input.VocabularyName }),
|
|
2316
|
+
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2299
2317
|
};
|
|
2300
2318
|
};
|
|
2301
2319
|
const serializeAws_json1_1DeleteTranscriptionJobRequest = (input, context) => {
|
|
2302
2320
|
return {
|
|
2303
|
-
...(input.TranscriptionJobName
|
|
2304
|
-
input.TranscriptionJobName !== null && { TranscriptionJobName: input.TranscriptionJobName }),
|
|
2321
|
+
...(input.TranscriptionJobName != null && { TranscriptionJobName: input.TranscriptionJobName }),
|
|
2305
2322
|
};
|
|
2306
2323
|
};
|
|
2307
2324
|
const serializeAws_json1_1DeleteVocabularyFilterRequest = (input, context) => {
|
|
2308
2325
|
return {
|
|
2309
|
-
...(input.VocabularyFilterName
|
|
2310
|
-
input.VocabularyFilterName !== null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2326
|
+
...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2311
2327
|
};
|
|
2312
2328
|
};
|
|
2313
2329
|
const serializeAws_json1_1DeleteVocabularyRequest = (input, context) => {
|
|
2314
2330
|
return {
|
|
2315
|
-
...(input.VocabularyName
|
|
2316
|
-
input.VocabularyName !== null && { VocabularyName: input.VocabularyName }),
|
|
2331
|
+
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2317
2332
|
};
|
|
2318
2333
|
};
|
|
2319
2334
|
const serializeAws_json1_1DescribeLanguageModelRequest = (input, context) => {
|
|
2320
2335
|
return {
|
|
2321
|
-
...(input.ModelName
|
|
2336
|
+
...(input.ModelName != null && { ModelName: input.ModelName }),
|
|
2322
2337
|
};
|
|
2323
2338
|
};
|
|
2324
2339
|
const serializeAws_json1_1GetCallAnalyticsCategoryRequest = (input, context) => {
|
|
2325
2340
|
return {
|
|
2326
|
-
...(input.CategoryName
|
|
2341
|
+
...(input.CategoryName != null && { CategoryName: input.CategoryName }),
|
|
2327
2342
|
};
|
|
2328
2343
|
};
|
|
2329
2344
|
const serializeAws_json1_1GetCallAnalyticsJobRequest = (input, context) => {
|
|
2330
2345
|
return {
|
|
2331
|
-
...(input.CallAnalyticsJobName
|
|
2332
|
-
input.CallAnalyticsJobName !== null && { CallAnalyticsJobName: input.CallAnalyticsJobName }),
|
|
2346
|
+
...(input.CallAnalyticsJobName != null && { CallAnalyticsJobName: input.CallAnalyticsJobName }),
|
|
2333
2347
|
};
|
|
2334
2348
|
};
|
|
2335
2349
|
const serializeAws_json1_1GetMedicalTranscriptionJobRequest = (input, context) => {
|
|
2336
2350
|
return {
|
|
2337
|
-
...(input.MedicalTranscriptionJobName
|
|
2338
|
-
|
|
2351
|
+
...(input.MedicalTranscriptionJobName != null && {
|
|
2352
|
+
MedicalTranscriptionJobName: input.MedicalTranscriptionJobName,
|
|
2353
|
+
}),
|
|
2339
2354
|
};
|
|
2340
2355
|
};
|
|
2341
2356
|
const serializeAws_json1_1GetMedicalVocabularyRequest = (input, context) => {
|
|
2342
2357
|
return {
|
|
2343
|
-
...(input.VocabularyName
|
|
2344
|
-
input.VocabularyName !== null && { VocabularyName: input.VocabularyName }),
|
|
2358
|
+
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2345
2359
|
};
|
|
2346
2360
|
};
|
|
2347
2361
|
const serializeAws_json1_1GetTranscriptionJobRequest = (input, context) => {
|
|
2348
2362
|
return {
|
|
2349
|
-
...(input.TranscriptionJobName
|
|
2350
|
-
input.TranscriptionJobName !== null && { TranscriptionJobName: input.TranscriptionJobName }),
|
|
2363
|
+
...(input.TranscriptionJobName != null && { TranscriptionJobName: input.TranscriptionJobName }),
|
|
2351
2364
|
};
|
|
2352
2365
|
};
|
|
2353
2366
|
const serializeAws_json1_1GetVocabularyFilterRequest = (input, context) => {
|
|
2354
2367
|
return {
|
|
2355
|
-
...(input.VocabularyFilterName
|
|
2356
|
-
input.VocabularyFilterName !== null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2368
|
+
...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2357
2369
|
};
|
|
2358
2370
|
};
|
|
2359
2371
|
const serializeAws_json1_1GetVocabularyRequest = (input, context) => {
|
|
2360
2372
|
return {
|
|
2361
|
-
...(input.VocabularyName
|
|
2362
|
-
input.VocabularyName !== null && { VocabularyName: input.VocabularyName }),
|
|
2373
|
+
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2363
2374
|
};
|
|
2364
2375
|
};
|
|
2365
2376
|
const serializeAws_json1_1InputDataConfig = (input, context) => {
|
|
2366
2377
|
return {
|
|
2367
|
-
...(input.DataAccessRoleArn
|
|
2368
|
-
|
|
2369
|
-
...(input.
|
|
2370
|
-
...(input.TuningDataS3Uri !== undefined &&
|
|
2371
|
-
input.TuningDataS3Uri !== null && { TuningDataS3Uri: input.TuningDataS3Uri }),
|
|
2378
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
2379
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
2380
|
+
...(input.TuningDataS3Uri != null && { TuningDataS3Uri: input.TuningDataS3Uri }),
|
|
2372
2381
|
};
|
|
2373
2382
|
};
|
|
2374
2383
|
const serializeAws_json1_1InterruptionFilter = (input, context) => {
|
|
2375
2384
|
return {
|
|
2376
|
-
...(input.AbsoluteTimeRange
|
|
2377
|
-
input.AbsoluteTimeRange !== null && {
|
|
2385
|
+
...(input.AbsoluteTimeRange != null && {
|
|
2378
2386
|
AbsoluteTimeRange: serializeAws_json1_1AbsoluteTimeRange(input.AbsoluteTimeRange, context),
|
|
2379
2387
|
}),
|
|
2380
|
-
...(input.Negate
|
|
2381
|
-
...(input.ParticipantRole
|
|
2382
|
-
|
|
2383
|
-
...(input.RelativeTimeRange !== undefined &&
|
|
2384
|
-
input.RelativeTimeRange !== null && {
|
|
2388
|
+
...(input.Negate != null && { Negate: input.Negate }),
|
|
2389
|
+
...(input.ParticipantRole != null && { ParticipantRole: input.ParticipantRole }),
|
|
2390
|
+
...(input.RelativeTimeRange != null && {
|
|
2385
2391
|
RelativeTimeRange: serializeAws_json1_1RelativeTimeRange(input.RelativeTimeRange, context),
|
|
2386
2392
|
}),
|
|
2387
|
-
...(input.Threshold
|
|
2393
|
+
...(input.Threshold != null && { Threshold: input.Threshold }),
|
|
2388
2394
|
};
|
|
2389
2395
|
};
|
|
2390
2396
|
const serializeAws_json1_1JobExecutionSettings = (input, context) => {
|
|
2391
2397
|
return {
|
|
2392
|
-
...(input.AllowDeferredExecution
|
|
2393
|
-
|
|
2394
|
-
...(input.DataAccessRoleArn !== undefined &&
|
|
2395
|
-
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
2398
|
+
...(input.AllowDeferredExecution != null && { AllowDeferredExecution: input.AllowDeferredExecution }),
|
|
2399
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
2396
2400
|
};
|
|
2397
2401
|
};
|
|
2398
2402
|
const serializeAws_json1_1KMSEncryptionContextMap = (input, context) => {
|
|
@@ -2408,12 +2412,9 @@ const serializeAws_json1_1KMSEncryptionContextMap = (input, context) => {
|
|
|
2408
2412
|
};
|
|
2409
2413
|
const serializeAws_json1_1LanguageIdSettings = (input, context) => {
|
|
2410
2414
|
return {
|
|
2411
|
-
...(input.LanguageModelName
|
|
2412
|
-
|
|
2413
|
-
...(input.
|
|
2414
|
-
input.VocabularyFilterName !== null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2415
|
-
...(input.VocabularyName !== undefined &&
|
|
2416
|
-
input.VocabularyName !== null && { VocabularyName: input.VocabularyName }),
|
|
2415
|
+
...(input.LanguageModelName != null && { LanguageModelName: input.LanguageModelName }),
|
|
2416
|
+
...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2417
|
+
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2417
2418
|
};
|
|
2418
2419
|
};
|
|
2419
2420
|
const serializeAws_json1_1LanguageIdSettingsMap = (input, context) => {
|
|
@@ -2439,114 +2440,101 @@ const serializeAws_json1_1LanguageOptions = (input, context) => {
|
|
|
2439
2440
|
};
|
|
2440
2441
|
const serializeAws_json1_1ListCallAnalyticsCategoriesRequest = (input, context) => {
|
|
2441
2442
|
return {
|
|
2442
|
-
...(input.MaxResults
|
|
2443
|
-
...(input.NextToken
|
|
2443
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2444
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2444
2445
|
};
|
|
2445
2446
|
};
|
|
2446
2447
|
const serializeAws_json1_1ListCallAnalyticsJobsRequest = (input, context) => {
|
|
2447
2448
|
return {
|
|
2448
|
-
...(input.JobNameContains
|
|
2449
|
-
|
|
2450
|
-
...(input.
|
|
2451
|
-
...(input.
|
|
2452
|
-
...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
|
|
2449
|
+
...(input.JobNameContains != null && { JobNameContains: input.JobNameContains }),
|
|
2450
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2451
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2452
|
+
...(input.Status != null && { Status: input.Status }),
|
|
2453
2453
|
};
|
|
2454
2454
|
};
|
|
2455
2455
|
const serializeAws_json1_1ListLanguageModelsRequest = (input, context) => {
|
|
2456
2456
|
return {
|
|
2457
|
-
...(input.MaxResults
|
|
2458
|
-
...(input.NameContains
|
|
2459
|
-
...(input.NextToken
|
|
2460
|
-
...(input.StatusEquals
|
|
2457
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2458
|
+
...(input.NameContains != null && { NameContains: input.NameContains }),
|
|
2459
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2460
|
+
...(input.StatusEquals != null && { StatusEquals: input.StatusEquals }),
|
|
2461
2461
|
};
|
|
2462
2462
|
};
|
|
2463
2463
|
const serializeAws_json1_1ListMedicalTranscriptionJobsRequest = (input, context) => {
|
|
2464
2464
|
return {
|
|
2465
|
-
...(input.JobNameContains
|
|
2466
|
-
|
|
2467
|
-
...(input.
|
|
2468
|
-
...(input.
|
|
2469
|
-
...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
|
|
2465
|
+
...(input.JobNameContains != null && { JobNameContains: input.JobNameContains }),
|
|
2466
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2467
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2468
|
+
...(input.Status != null && { Status: input.Status }),
|
|
2470
2469
|
};
|
|
2471
2470
|
};
|
|
2472
2471
|
const serializeAws_json1_1ListMedicalVocabulariesRequest = (input, context) => {
|
|
2473
2472
|
return {
|
|
2474
|
-
...(input.MaxResults
|
|
2475
|
-
...(input.NameContains
|
|
2476
|
-
...(input.NextToken
|
|
2477
|
-
...(input.StateEquals
|
|
2473
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2474
|
+
...(input.NameContains != null && { NameContains: input.NameContains }),
|
|
2475
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2476
|
+
...(input.StateEquals != null && { StateEquals: input.StateEquals }),
|
|
2478
2477
|
};
|
|
2479
2478
|
};
|
|
2480
2479
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
2481
2480
|
return {
|
|
2482
|
-
...(input.ResourceArn
|
|
2481
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2483
2482
|
};
|
|
2484
2483
|
};
|
|
2485
2484
|
const serializeAws_json1_1ListTranscriptionJobsRequest = (input, context) => {
|
|
2486
2485
|
return {
|
|
2487
|
-
...(input.JobNameContains
|
|
2488
|
-
|
|
2489
|
-
...(input.
|
|
2490
|
-
...(input.
|
|
2491
|
-
...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
|
|
2486
|
+
...(input.JobNameContains != null && { JobNameContains: input.JobNameContains }),
|
|
2487
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2488
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2489
|
+
...(input.Status != null && { Status: input.Status }),
|
|
2492
2490
|
};
|
|
2493
2491
|
};
|
|
2494
2492
|
const serializeAws_json1_1ListVocabulariesRequest = (input, context) => {
|
|
2495
2493
|
return {
|
|
2496
|
-
...(input.MaxResults
|
|
2497
|
-
...(input.NameContains
|
|
2498
|
-
...(input.NextToken
|
|
2499
|
-
...(input.StateEquals
|
|
2494
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2495
|
+
...(input.NameContains != null && { NameContains: input.NameContains }),
|
|
2496
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2497
|
+
...(input.StateEquals != null && { StateEquals: input.StateEquals }),
|
|
2500
2498
|
};
|
|
2501
2499
|
};
|
|
2502
2500
|
const serializeAws_json1_1ListVocabularyFiltersRequest = (input, context) => {
|
|
2503
2501
|
return {
|
|
2504
|
-
...(input.MaxResults
|
|
2505
|
-
...(input.NameContains
|
|
2506
|
-
...(input.NextToken
|
|
2502
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2503
|
+
...(input.NameContains != null && { NameContains: input.NameContains }),
|
|
2504
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2507
2505
|
};
|
|
2508
2506
|
};
|
|
2509
2507
|
const serializeAws_json1_1Media = (input, context) => {
|
|
2510
2508
|
return {
|
|
2511
|
-
...(input.MediaFileUri
|
|
2512
|
-
...(input.RedactedMediaFileUri
|
|
2513
|
-
input.RedactedMediaFileUri !== null && { RedactedMediaFileUri: input.RedactedMediaFileUri }),
|
|
2509
|
+
...(input.MediaFileUri != null && { MediaFileUri: input.MediaFileUri }),
|
|
2510
|
+
...(input.RedactedMediaFileUri != null && { RedactedMediaFileUri: input.RedactedMediaFileUri }),
|
|
2514
2511
|
};
|
|
2515
2512
|
};
|
|
2516
2513
|
const serializeAws_json1_1MedicalTranscriptionSetting = (input, context) => {
|
|
2517
2514
|
return {
|
|
2518
|
-
...(input.ChannelIdentification
|
|
2519
|
-
|
|
2520
|
-
...(input.
|
|
2521
|
-
|
|
2522
|
-
...(input.
|
|
2523
|
-
|
|
2524
|
-
...(input.ShowAlternatives !== undefined &&
|
|
2525
|
-
input.ShowAlternatives !== null && { ShowAlternatives: input.ShowAlternatives }),
|
|
2526
|
-
...(input.ShowSpeakerLabels !== undefined &&
|
|
2527
|
-
input.ShowSpeakerLabels !== null && { ShowSpeakerLabels: input.ShowSpeakerLabels }),
|
|
2528
|
-
...(input.VocabularyName !== undefined &&
|
|
2529
|
-
input.VocabularyName !== null && { VocabularyName: input.VocabularyName }),
|
|
2515
|
+
...(input.ChannelIdentification != null && { ChannelIdentification: input.ChannelIdentification }),
|
|
2516
|
+
...(input.MaxAlternatives != null && { MaxAlternatives: input.MaxAlternatives }),
|
|
2517
|
+
...(input.MaxSpeakerLabels != null && { MaxSpeakerLabels: input.MaxSpeakerLabels }),
|
|
2518
|
+
...(input.ShowAlternatives != null && { ShowAlternatives: input.ShowAlternatives }),
|
|
2519
|
+
...(input.ShowSpeakerLabels != null && { ShowSpeakerLabels: input.ShowSpeakerLabels }),
|
|
2520
|
+
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2530
2521
|
};
|
|
2531
2522
|
};
|
|
2532
2523
|
const serializeAws_json1_1ModelSettings = (input, context) => {
|
|
2533
2524
|
return {
|
|
2534
|
-
...(input.LanguageModelName
|
|
2535
|
-
input.LanguageModelName !== null && { LanguageModelName: input.LanguageModelName }),
|
|
2525
|
+
...(input.LanguageModelName != null && { LanguageModelName: input.LanguageModelName }),
|
|
2536
2526
|
};
|
|
2537
2527
|
};
|
|
2538
2528
|
const serializeAws_json1_1NonTalkTimeFilter = (input, context) => {
|
|
2539
2529
|
return {
|
|
2540
|
-
...(input.AbsoluteTimeRange
|
|
2541
|
-
input.AbsoluteTimeRange !== null && {
|
|
2530
|
+
...(input.AbsoluteTimeRange != null && {
|
|
2542
2531
|
AbsoluteTimeRange: serializeAws_json1_1AbsoluteTimeRange(input.AbsoluteTimeRange, context),
|
|
2543
2532
|
}),
|
|
2544
|
-
...(input.Negate
|
|
2545
|
-
...(input.RelativeTimeRange
|
|
2546
|
-
input.RelativeTimeRange !== null && {
|
|
2533
|
+
...(input.Negate != null && { Negate: input.Negate }),
|
|
2534
|
+
...(input.RelativeTimeRange != null && {
|
|
2547
2535
|
RelativeTimeRange: serializeAws_json1_1RelativeTimeRange(input.RelativeTimeRange, context),
|
|
2548
2536
|
}),
|
|
2549
|
-
...(input.Threshold
|
|
2537
|
+
...(input.Threshold != null && { Threshold: input.Threshold }),
|
|
2550
2538
|
};
|
|
2551
2539
|
};
|
|
2552
2540
|
const serializeAws_json1_1Phrases = (input, context) => {
|
|
@@ -2571,11 +2559,10 @@ const serializeAws_json1_1PiiEntityTypes = (input, context) => {
|
|
|
2571
2559
|
};
|
|
2572
2560
|
const serializeAws_json1_1RelativeTimeRange = (input, context) => {
|
|
2573
2561
|
return {
|
|
2574
|
-
...(input.EndPercentage
|
|
2575
|
-
...(input.First
|
|
2576
|
-
...(input.Last
|
|
2577
|
-
...(input.StartPercentage
|
|
2578
|
-
input.StartPercentage !== null && { StartPercentage: input.StartPercentage }),
|
|
2562
|
+
...(input.EndPercentage != null && { EndPercentage: input.EndPercentage }),
|
|
2563
|
+
...(input.First != null && { First: input.First }),
|
|
2564
|
+
...(input.Last != null && { Last: input.Last }),
|
|
2565
|
+
...(input.StartPercentage != null && { StartPercentage: input.StartPercentage }),
|
|
2579
2566
|
};
|
|
2580
2567
|
};
|
|
2581
2568
|
const serializeAws_json1_1Rule = (input, context) => {
|
|
@@ -2599,19 +2586,15 @@ const serializeAws_json1_1RuleList = (input, context) => {
|
|
|
2599
2586
|
};
|
|
2600
2587
|
const serializeAws_json1_1SentimentFilter = (input, context) => {
|
|
2601
2588
|
return {
|
|
2602
|
-
...(input.AbsoluteTimeRange
|
|
2603
|
-
input.AbsoluteTimeRange !== null && {
|
|
2589
|
+
...(input.AbsoluteTimeRange != null && {
|
|
2604
2590
|
AbsoluteTimeRange: serializeAws_json1_1AbsoluteTimeRange(input.AbsoluteTimeRange, context),
|
|
2605
2591
|
}),
|
|
2606
|
-
...(input.Negate
|
|
2607
|
-
...(input.ParticipantRole
|
|
2608
|
-
|
|
2609
|
-
...(input.RelativeTimeRange !== undefined &&
|
|
2610
|
-
input.RelativeTimeRange !== null && {
|
|
2592
|
+
...(input.Negate != null && { Negate: input.Negate }),
|
|
2593
|
+
...(input.ParticipantRole != null && { ParticipantRole: input.ParticipantRole }),
|
|
2594
|
+
...(input.RelativeTimeRange != null && {
|
|
2611
2595
|
RelativeTimeRange: serializeAws_json1_1RelativeTimeRange(input.RelativeTimeRange, context),
|
|
2612
2596
|
}),
|
|
2613
|
-
...(input.Sentiments
|
|
2614
|
-
input.Sentiments !== null && { Sentiments: serializeAws_json1_1SentimentValueList(input.Sentiments, context) }),
|
|
2597
|
+
...(input.Sentiments != null && { Sentiments: serializeAws_json1_1SentimentValueList(input.Sentiments, context) }),
|
|
2615
2598
|
};
|
|
2616
2599
|
};
|
|
2617
2600
|
const serializeAws_json1_1SentimentValueList = (input, context) => {
|
|
@@ -2626,122 +2609,86 @@ const serializeAws_json1_1SentimentValueList = (input, context) => {
|
|
|
2626
2609
|
};
|
|
2627
2610
|
const serializeAws_json1_1Settings = (input, context) => {
|
|
2628
2611
|
return {
|
|
2629
|
-
...(input.ChannelIdentification
|
|
2630
|
-
|
|
2631
|
-
...(input.
|
|
2632
|
-
|
|
2633
|
-
...(input.
|
|
2634
|
-
|
|
2635
|
-
...(input.
|
|
2636
|
-
|
|
2637
|
-
...(input.ShowSpeakerLabels !== undefined &&
|
|
2638
|
-
input.ShowSpeakerLabels !== null && { ShowSpeakerLabels: input.ShowSpeakerLabels }),
|
|
2639
|
-
...(input.VocabularyFilterMethod !== undefined &&
|
|
2640
|
-
input.VocabularyFilterMethod !== null && { VocabularyFilterMethod: input.VocabularyFilterMethod }),
|
|
2641
|
-
...(input.VocabularyFilterName !== undefined &&
|
|
2642
|
-
input.VocabularyFilterName !== null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2643
|
-
...(input.VocabularyName !== undefined &&
|
|
2644
|
-
input.VocabularyName !== null && { VocabularyName: input.VocabularyName }),
|
|
2612
|
+
...(input.ChannelIdentification != null && { ChannelIdentification: input.ChannelIdentification }),
|
|
2613
|
+
...(input.MaxAlternatives != null && { MaxAlternatives: input.MaxAlternatives }),
|
|
2614
|
+
...(input.MaxSpeakerLabels != null && { MaxSpeakerLabels: input.MaxSpeakerLabels }),
|
|
2615
|
+
...(input.ShowAlternatives != null && { ShowAlternatives: input.ShowAlternatives }),
|
|
2616
|
+
...(input.ShowSpeakerLabels != null && { ShowSpeakerLabels: input.ShowSpeakerLabels }),
|
|
2617
|
+
...(input.VocabularyFilterMethod != null && { VocabularyFilterMethod: input.VocabularyFilterMethod }),
|
|
2618
|
+
...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2619
|
+
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2645
2620
|
};
|
|
2646
2621
|
};
|
|
2647
2622
|
const serializeAws_json1_1StartCallAnalyticsJobRequest = (input, context) => {
|
|
2648
2623
|
return {
|
|
2649
|
-
...(input.CallAnalyticsJobName
|
|
2650
|
-
|
|
2651
|
-
...(input.ChannelDefinitions !== undefined &&
|
|
2652
|
-
input.ChannelDefinitions !== null && {
|
|
2624
|
+
...(input.CallAnalyticsJobName != null && { CallAnalyticsJobName: input.CallAnalyticsJobName }),
|
|
2625
|
+
...(input.ChannelDefinitions != null && {
|
|
2653
2626
|
ChannelDefinitions: serializeAws_json1_1ChannelDefinitions(input.ChannelDefinitions, context),
|
|
2654
2627
|
}),
|
|
2655
|
-
...(input.DataAccessRoleArn
|
|
2656
|
-
|
|
2657
|
-
...(input.
|
|
2658
|
-
|
|
2659
|
-
...(input.
|
|
2660
|
-
input.OutputEncryptionKMSKeyId !== null && { OutputEncryptionKMSKeyId: input.OutputEncryptionKMSKeyId }),
|
|
2661
|
-
...(input.OutputLocation !== undefined &&
|
|
2662
|
-
input.OutputLocation !== null && { OutputLocation: input.OutputLocation }),
|
|
2663
|
-
...(input.Settings !== undefined &&
|
|
2664
|
-
input.Settings !== null && { Settings: serializeAws_json1_1CallAnalyticsJobSettings(input.Settings, context) }),
|
|
2628
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
2629
|
+
...(input.Media != null && { Media: serializeAws_json1_1Media(input.Media, context) }),
|
|
2630
|
+
...(input.OutputEncryptionKMSKeyId != null && { OutputEncryptionKMSKeyId: input.OutputEncryptionKMSKeyId }),
|
|
2631
|
+
...(input.OutputLocation != null && { OutputLocation: input.OutputLocation }),
|
|
2632
|
+
...(input.Settings != null && { Settings: serializeAws_json1_1CallAnalyticsJobSettings(input.Settings, context) }),
|
|
2665
2633
|
};
|
|
2666
2634
|
};
|
|
2667
2635
|
const serializeAws_json1_1StartMedicalTranscriptionJobRequest = (input, context) => {
|
|
2668
2636
|
return {
|
|
2669
|
-
...(input.ContentIdentificationType
|
|
2670
|
-
|
|
2671
|
-
...(input.KMSEncryptionContext !== undefined &&
|
|
2672
|
-
input.KMSEncryptionContext !== null && {
|
|
2637
|
+
...(input.ContentIdentificationType != null && { ContentIdentificationType: input.ContentIdentificationType }),
|
|
2638
|
+
...(input.KMSEncryptionContext != null && {
|
|
2673
2639
|
KMSEncryptionContext: serializeAws_json1_1KMSEncryptionContextMap(input.KMSEncryptionContext, context),
|
|
2674
2640
|
}),
|
|
2675
|
-
...(input.LanguageCode
|
|
2676
|
-
...(input.Media
|
|
2677
|
-
|
|
2678
|
-
...(input.
|
|
2679
|
-
...(input.
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
...(input.
|
|
2684
|
-
|
|
2685
|
-
...(input.
|
|
2686
|
-
input.OutputEncryptionKMSKeyId !== null && { OutputEncryptionKMSKeyId: input.OutputEncryptionKMSKeyId }),
|
|
2687
|
-
...(input.OutputKey !== undefined && input.OutputKey !== null && { OutputKey: input.OutputKey }),
|
|
2688
|
-
...(input.Settings !== undefined &&
|
|
2689
|
-
input.Settings !== null && {
|
|
2641
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
2642
|
+
...(input.Media != null && { Media: serializeAws_json1_1Media(input.Media, context) }),
|
|
2643
|
+
...(input.MediaFormat != null && { MediaFormat: input.MediaFormat }),
|
|
2644
|
+
...(input.MediaSampleRateHertz != null && { MediaSampleRateHertz: input.MediaSampleRateHertz }),
|
|
2645
|
+
...(input.MedicalTranscriptionJobName != null && {
|
|
2646
|
+
MedicalTranscriptionJobName: input.MedicalTranscriptionJobName,
|
|
2647
|
+
}),
|
|
2648
|
+
...(input.OutputBucketName != null && { OutputBucketName: input.OutputBucketName }),
|
|
2649
|
+
...(input.OutputEncryptionKMSKeyId != null && { OutputEncryptionKMSKeyId: input.OutputEncryptionKMSKeyId }),
|
|
2650
|
+
...(input.OutputKey != null && { OutputKey: input.OutputKey }),
|
|
2651
|
+
...(input.Settings != null && {
|
|
2690
2652
|
Settings: serializeAws_json1_1MedicalTranscriptionSetting(input.Settings, context),
|
|
2691
2653
|
}),
|
|
2692
|
-
...(input.Specialty
|
|
2693
|
-
...(input.Tags
|
|
2694
|
-
...(input.Type
|
|
2654
|
+
...(input.Specialty != null && { Specialty: input.Specialty }),
|
|
2655
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2656
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2695
2657
|
};
|
|
2696
2658
|
};
|
|
2697
2659
|
const serializeAws_json1_1StartTranscriptionJobRequest = (input, context) => {
|
|
2698
2660
|
return {
|
|
2699
|
-
...(input.ContentRedaction
|
|
2700
|
-
input.ContentRedaction !== null && {
|
|
2661
|
+
...(input.ContentRedaction != null && {
|
|
2701
2662
|
ContentRedaction: serializeAws_json1_1ContentRedaction(input.ContentRedaction, context),
|
|
2702
2663
|
}),
|
|
2703
|
-
...(input.IdentifyLanguage
|
|
2704
|
-
|
|
2705
|
-
...(input.
|
|
2706
|
-
input.IdentifyMultipleLanguages !== null && { IdentifyMultipleLanguages: input.IdentifyMultipleLanguages }),
|
|
2707
|
-
...(input.JobExecutionSettings !== undefined &&
|
|
2708
|
-
input.JobExecutionSettings !== null && {
|
|
2664
|
+
...(input.IdentifyLanguage != null && { IdentifyLanguage: input.IdentifyLanguage }),
|
|
2665
|
+
...(input.IdentifyMultipleLanguages != null && { IdentifyMultipleLanguages: input.IdentifyMultipleLanguages }),
|
|
2666
|
+
...(input.JobExecutionSettings != null && {
|
|
2709
2667
|
JobExecutionSettings: serializeAws_json1_1JobExecutionSettings(input.JobExecutionSettings, context),
|
|
2710
2668
|
}),
|
|
2711
|
-
...(input.KMSEncryptionContext
|
|
2712
|
-
input.KMSEncryptionContext !== null && {
|
|
2669
|
+
...(input.KMSEncryptionContext != null && {
|
|
2713
2670
|
KMSEncryptionContext: serializeAws_json1_1KMSEncryptionContextMap(input.KMSEncryptionContext, context),
|
|
2714
2671
|
}),
|
|
2715
|
-
...(input.LanguageCode
|
|
2716
|
-
...(input.LanguageIdSettings
|
|
2717
|
-
input.LanguageIdSettings !== null && {
|
|
2672
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
2673
|
+
...(input.LanguageIdSettings != null && {
|
|
2718
2674
|
LanguageIdSettings: serializeAws_json1_1LanguageIdSettingsMap(input.LanguageIdSettings, context),
|
|
2719
2675
|
}),
|
|
2720
|
-
...(input.LanguageOptions
|
|
2721
|
-
input.LanguageOptions !== null && {
|
|
2676
|
+
...(input.LanguageOptions != null && {
|
|
2722
2677
|
LanguageOptions: serializeAws_json1_1LanguageOptions(input.LanguageOptions, context),
|
|
2723
2678
|
}),
|
|
2724
|
-
...(input.Media
|
|
2725
|
-
|
|
2726
|
-
...(input.
|
|
2727
|
-
...(input.
|
|
2728
|
-
input.MediaSampleRateHertz !== null && { MediaSampleRateHertz: input.MediaSampleRateHertz }),
|
|
2729
|
-
...(input.ModelSettings !== undefined &&
|
|
2730
|
-
input.ModelSettings !== null && {
|
|
2679
|
+
...(input.Media != null && { Media: serializeAws_json1_1Media(input.Media, context) }),
|
|
2680
|
+
...(input.MediaFormat != null && { MediaFormat: input.MediaFormat }),
|
|
2681
|
+
...(input.MediaSampleRateHertz != null && { MediaSampleRateHertz: input.MediaSampleRateHertz }),
|
|
2682
|
+
...(input.ModelSettings != null && {
|
|
2731
2683
|
ModelSettings: serializeAws_json1_1ModelSettings(input.ModelSettings, context),
|
|
2732
2684
|
}),
|
|
2733
|
-
...(input.OutputBucketName
|
|
2734
|
-
|
|
2735
|
-
...(input.
|
|
2736
|
-
|
|
2737
|
-
...(input.
|
|
2738
|
-
...(input.
|
|
2739
|
-
|
|
2740
|
-
...(input.Subtitles !== undefined &&
|
|
2741
|
-
input.Subtitles !== null && { Subtitles: serializeAws_json1_1Subtitles(input.Subtitles, context) }),
|
|
2742
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2743
|
-
...(input.TranscriptionJobName !== undefined &&
|
|
2744
|
-
input.TranscriptionJobName !== null && { TranscriptionJobName: input.TranscriptionJobName }),
|
|
2685
|
+
...(input.OutputBucketName != null && { OutputBucketName: input.OutputBucketName }),
|
|
2686
|
+
...(input.OutputEncryptionKMSKeyId != null && { OutputEncryptionKMSKeyId: input.OutputEncryptionKMSKeyId }),
|
|
2687
|
+
...(input.OutputKey != null && { OutputKey: input.OutputKey }),
|
|
2688
|
+
...(input.Settings != null && { Settings: serializeAws_json1_1Settings(input.Settings, context) }),
|
|
2689
|
+
...(input.Subtitles != null && { Subtitles: serializeAws_json1_1Subtitles(input.Subtitles, context) }),
|
|
2690
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2691
|
+
...(input.TranscriptionJobName != null && { TranscriptionJobName: input.TranscriptionJobName }),
|
|
2745
2692
|
};
|
|
2746
2693
|
};
|
|
2747
2694
|
const serializeAws_json1_1StringTargetList = (input, context) => {
|
|
@@ -2766,16 +2713,14 @@ const serializeAws_json1_1SubtitleFormats = (input, context) => {
|
|
|
2766
2713
|
};
|
|
2767
2714
|
const serializeAws_json1_1Subtitles = (input, context) => {
|
|
2768
2715
|
return {
|
|
2769
|
-
...(input.Formats
|
|
2770
|
-
|
|
2771
|
-
...(input.OutputStartIndex !== undefined &&
|
|
2772
|
-
input.OutputStartIndex !== null && { OutputStartIndex: input.OutputStartIndex }),
|
|
2716
|
+
...(input.Formats != null && { Formats: serializeAws_json1_1SubtitleFormats(input.Formats, context) }),
|
|
2717
|
+
...(input.OutputStartIndex != null && { OutputStartIndex: input.OutputStartIndex }),
|
|
2773
2718
|
};
|
|
2774
2719
|
};
|
|
2775
2720
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
2776
2721
|
return {
|
|
2777
|
-
...(input.Key
|
|
2778
|
-
...(input.Value
|
|
2722
|
+
...(input.Key != null && { Key: input.Key }),
|
|
2723
|
+
...(input.Value != null && { Value: input.Value }),
|
|
2779
2724
|
};
|
|
2780
2725
|
};
|
|
2781
2726
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
@@ -2800,71 +2745,56 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
2800
2745
|
};
|
|
2801
2746
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
2802
2747
|
return {
|
|
2803
|
-
...(input.ResourceArn
|
|
2804
|
-
...(input.Tags
|
|
2748
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2749
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2805
2750
|
};
|
|
2806
2751
|
};
|
|
2807
2752
|
const serializeAws_json1_1TranscriptFilter = (input, context) => {
|
|
2808
2753
|
return {
|
|
2809
|
-
...(input.AbsoluteTimeRange
|
|
2810
|
-
input.AbsoluteTimeRange !== null && {
|
|
2754
|
+
...(input.AbsoluteTimeRange != null && {
|
|
2811
2755
|
AbsoluteTimeRange: serializeAws_json1_1AbsoluteTimeRange(input.AbsoluteTimeRange, context),
|
|
2812
2756
|
}),
|
|
2813
|
-
...(input.Negate
|
|
2814
|
-
...(input.ParticipantRole
|
|
2815
|
-
|
|
2816
|
-
...(input.RelativeTimeRange !== undefined &&
|
|
2817
|
-
input.RelativeTimeRange !== null && {
|
|
2757
|
+
...(input.Negate != null && { Negate: input.Negate }),
|
|
2758
|
+
...(input.ParticipantRole != null && { ParticipantRole: input.ParticipantRole }),
|
|
2759
|
+
...(input.RelativeTimeRange != null && {
|
|
2818
2760
|
RelativeTimeRange: serializeAws_json1_1RelativeTimeRange(input.RelativeTimeRange, context),
|
|
2819
2761
|
}),
|
|
2820
|
-
...(input.Targets
|
|
2821
|
-
|
|
2822
|
-
...(input.TranscriptFilterType !== undefined &&
|
|
2823
|
-
input.TranscriptFilterType !== null && { TranscriptFilterType: input.TranscriptFilterType }),
|
|
2762
|
+
...(input.Targets != null && { Targets: serializeAws_json1_1StringTargetList(input.Targets, context) }),
|
|
2763
|
+
...(input.TranscriptFilterType != null && { TranscriptFilterType: input.TranscriptFilterType }),
|
|
2824
2764
|
};
|
|
2825
2765
|
};
|
|
2826
2766
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
2827
2767
|
return {
|
|
2828
|
-
...(input.ResourceArn
|
|
2829
|
-
...(input.TagKeys
|
|
2830
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
2768
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2769
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
2831
2770
|
};
|
|
2832
2771
|
};
|
|
2833
2772
|
const serializeAws_json1_1UpdateCallAnalyticsCategoryRequest = (input, context) => {
|
|
2834
2773
|
return {
|
|
2835
|
-
...(input.CategoryName
|
|
2836
|
-
...(input.Rules
|
|
2837
|
-
input.Rules !== null && { Rules: serializeAws_json1_1RuleList(input.Rules, context) }),
|
|
2774
|
+
...(input.CategoryName != null && { CategoryName: input.CategoryName }),
|
|
2775
|
+
...(input.Rules != null && { Rules: serializeAws_json1_1RuleList(input.Rules, context) }),
|
|
2838
2776
|
};
|
|
2839
2777
|
};
|
|
2840
2778
|
const serializeAws_json1_1UpdateMedicalVocabularyRequest = (input, context) => {
|
|
2841
2779
|
return {
|
|
2842
|
-
...(input.LanguageCode
|
|
2843
|
-
...(input.VocabularyFileUri
|
|
2844
|
-
|
|
2845
|
-
...(input.VocabularyName !== undefined &&
|
|
2846
|
-
input.VocabularyName !== null && { VocabularyName: input.VocabularyName }),
|
|
2780
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
2781
|
+
...(input.VocabularyFileUri != null && { VocabularyFileUri: input.VocabularyFileUri }),
|
|
2782
|
+
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2847
2783
|
};
|
|
2848
2784
|
};
|
|
2849
2785
|
const serializeAws_json1_1UpdateVocabularyFilterRequest = (input, context) => {
|
|
2850
2786
|
return {
|
|
2851
|
-
...(input.VocabularyFilterFileUri
|
|
2852
|
-
|
|
2853
|
-
...(input.
|
|
2854
|
-
input.VocabularyFilterName !== null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2855
|
-
...(input.Words !== undefined &&
|
|
2856
|
-
input.Words !== null && { Words: serializeAws_json1_1Words(input.Words, context) }),
|
|
2787
|
+
...(input.VocabularyFilterFileUri != null && { VocabularyFilterFileUri: input.VocabularyFilterFileUri }),
|
|
2788
|
+
...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
|
|
2789
|
+
...(input.Words != null && { Words: serializeAws_json1_1Words(input.Words, context) }),
|
|
2857
2790
|
};
|
|
2858
2791
|
};
|
|
2859
2792
|
const serializeAws_json1_1UpdateVocabularyRequest = (input, context) => {
|
|
2860
2793
|
return {
|
|
2861
|
-
...(input.LanguageCode
|
|
2862
|
-
...(input.Phrases
|
|
2863
|
-
|
|
2864
|
-
...(input.
|
|
2865
|
-
input.VocabularyFileUri !== null && { VocabularyFileUri: input.VocabularyFileUri }),
|
|
2866
|
-
...(input.VocabularyName !== undefined &&
|
|
2867
|
-
input.VocabularyName !== null && { VocabularyName: input.VocabularyName }),
|
|
2794
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
2795
|
+
...(input.Phrases != null && { Phrases: serializeAws_json1_1Phrases(input.Phrases, context) }),
|
|
2796
|
+
...(input.VocabularyFileUri != null && { VocabularyFileUri: input.VocabularyFileUri }),
|
|
2797
|
+
...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
|
|
2868
2798
|
};
|
|
2869
2799
|
};
|
|
2870
2800
|
const serializeAws_json1_1Words = (input, context) => {
|
|
@@ -2894,45 +2824,37 @@ const deserializeAws_json1_1CallAnalyticsJob = (output, context) => {
|
|
|
2894
2824
|
return {
|
|
2895
2825
|
CallAnalyticsJobName: (0, smithy_client_1.expectString)(output.CallAnalyticsJobName),
|
|
2896
2826
|
CallAnalyticsJobStatus: (0, smithy_client_1.expectString)(output.CallAnalyticsJobStatus),
|
|
2897
|
-
ChannelDefinitions: output.ChannelDefinitions
|
|
2827
|
+
ChannelDefinitions: output.ChannelDefinitions != null
|
|
2898
2828
|
? deserializeAws_json1_1ChannelDefinitions(output.ChannelDefinitions, context)
|
|
2899
2829
|
: undefined,
|
|
2900
|
-
CompletionTime: output.CompletionTime
|
|
2830
|
+
CompletionTime: output.CompletionTime != null
|
|
2901
2831
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionTime)))
|
|
2902
2832
|
: undefined,
|
|
2903
|
-
CreationTime: output.CreationTime
|
|
2833
|
+
CreationTime: output.CreationTime != null
|
|
2904
2834
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2905
2835
|
: undefined,
|
|
2906
2836
|
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
2907
2837
|
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
2908
2838
|
IdentifiedLanguageScore: (0, smithy_client_1.limitedParseFloat32)(output.IdentifiedLanguageScore),
|
|
2909
2839
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
2910
|
-
Media: output.Media
|
|
2911
|
-
? deserializeAws_json1_1Media(output.Media, context)
|
|
2912
|
-
: undefined,
|
|
2840
|
+
Media: output.Media != null ? deserializeAws_json1_1Media(output.Media, context) : undefined,
|
|
2913
2841
|
MediaFormat: (0, smithy_client_1.expectString)(output.MediaFormat),
|
|
2914
2842
|
MediaSampleRateHertz: (0, smithy_client_1.expectInt32)(output.MediaSampleRateHertz),
|
|
2915
|
-
Settings: output.Settings
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
2919
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
2920
|
-
: undefined,
|
|
2921
|
-
Transcript: output.Transcript !== undefined && output.Transcript !== null
|
|
2922
|
-
? deserializeAws_json1_1Transcript(output.Transcript, context)
|
|
2923
|
-
: undefined,
|
|
2843
|
+
Settings: output.Settings != null ? deserializeAws_json1_1CallAnalyticsJobSettings(output.Settings, context) : undefined,
|
|
2844
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2845
|
+
Transcript: output.Transcript != null ? deserializeAws_json1_1Transcript(output.Transcript, context) : undefined,
|
|
2924
2846
|
};
|
|
2925
2847
|
};
|
|
2926
2848
|
const deserializeAws_json1_1CallAnalyticsJobSettings = (output, context) => {
|
|
2927
2849
|
return {
|
|
2928
|
-
ContentRedaction: output.ContentRedaction
|
|
2850
|
+
ContentRedaction: output.ContentRedaction != null
|
|
2929
2851
|
? deserializeAws_json1_1ContentRedaction(output.ContentRedaction, context)
|
|
2930
2852
|
: undefined,
|
|
2931
|
-
LanguageIdSettings: output.LanguageIdSettings
|
|
2853
|
+
LanguageIdSettings: output.LanguageIdSettings != null
|
|
2932
2854
|
? deserializeAws_json1_1LanguageIdSettingsMap(output.LanguageIdSettings, context)
|
|
2933
2855
|
: undefined,
|
|
2934
2856
|
LanguageModelName: (0, smithy_client_1.expectString)(output.LanguageModelName),
|
|
2935
|
-
LanguageOptions: output.LanguageOptions
|
|
2857
|
+
LanguageOptions: output.LanguageOptions != null
|
|
2936
2858
|
? deserializeAws_json1_1LanguageOptions(output.LanguageOptions, context)
|
|
2937
2859
|
: undefined,
|
|
2938
2860
|
VocabularyFilterMethod: (0, smithy_client_1.expectString)(output.VocabularyFilterMethod),
|
|
@@ -2955,31 +2877,25 @@ const deserializeAws_json1_1CallAnalyticsJobSummary = (output, context) => {
|
|
|
2955
2877
|
return {
|
|
2956
2878
|
CallAnalyticsJobName: (0, smithy_client_1.expectString)(output.CallAnalyticsJobName),
|
|
2957
2879
|
CallAnalyticsJobStatus: (0, smithy_client_1.expectString)(output.CallAnalyticsJobStatus),
|
|
2958
|
-
CompletionTime: output.CompletionTime
|
|
2880
|
+
CompletionTime: output.CompletionTime != null
|
|
2959
2881
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionTime)))
|
|
2960
2882
|
: undefined,
|
|
2961
|
-
CreationTime: output.CreationTime
|
|
2883
|
+
CreationTime: output.CreationTime != null
|
|
2962
2884
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2963
2885
|
: undefined,
|
|
2964
2886
|
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
2965
2887
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
2966
|
-
StartTime: output.StartTime
|
|
2967
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
2968
|
-
: undefined,
|
|
2888
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2969
2889
|
};
|
|
2970
2890
|
};
|
|
2971
2891
|
const deserializeAws_json1_1CategoryProperties = (output, context) => {
|
|
2972
2892
|
return {
|
|
2973
2893
|
CategoryName: (0, smithy_client_1.expectString)(output.CategoryName),
|
|
2974
|
-
CreateTime: output.CreateTime
|
|
2975
|
-
|
|
2976
|
-
: undefined,
|
|
2977
|
-
LastUpdateTime: output.LastUpdateTime !== undefined && output.LastUpdateTime !== null
|
|
2894
|
+
CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTime))) : undefined,
|
|
2895
|
+
LastUpdateTime: output.LastUpdateTime != null
|
|
2978
2896
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTime)))
|
|
2979
2897
|
: undefined,
|
|
2980
|
-
Rules: output.Rules
|
|
2981
|
-
? deserializeAws_json1_1RuleList(output.Rules, context)
|
|
2982
|
-
: undefined,
|
|
2898
|
+
Rules: output.Rules != null ? deserializeAws_json1_1RuleList(output.Rules, context) : undefined,
|
|
2983
2899
|
};
|
|
2984
2900
|
};
|
|
2985
2901
|
const deserializeAws_json1_1CategoryPropertiesList = (output, context) => {
|
|
@@ -3017,16 +2933,14 @@ const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
|
3017
2933
|
};
|
|
3018
2934
|
const deserializeAws_json1_1ContentRedaction = (output, context) => {
|
|
3019
2935
|
return {
|
|
3020
|
-
PiiEntityTypes: output.PiiEntityTypes
|
|
3021
|
-
? deserializeAws_json1_1PiiEntityTypes(output.PiiEntityTypes, context)
|
|
3022
|
-
: undefined,
|
|
2936
|
+
PiiEntityTypes: output.PiiEntityTypes != null ? deserializeAws_json1_1PiiEntityTypes(output.PiiEntityTypes, context) : undefined,
|
|
3023
2937
|
RedactionOutput: (0, smithy_client_1.expectString)(output.RedactionOutput),
|
|
3024
2938
|
RedactionType: (0, smithy_client_1.expectString)(output.RedactionType),
|
|
3025
2939
|
};
|
|
3026
2940
|
};
|
|
3027
2941
|
const deserializeAws_json1_1CreateCallAnalyticsCategoryResponse = (output, context) => {
|
|
3028
2942
|
return {
|
|
3029
|
-
CategoryProperties: output.CategoryProperties
|
|
2943
|
+
CategoryProperties: output.CategoryProperties != null
|
|
3030
2944
|
? deserializeAws_json1_1CategoryProperties(output.CategoryProperties, context)
|
|
3031
2945
|
: undefined,
|
|
3032
2946
|
};
|
|
@@ -3034,7 +2948,7 @@ const deserializeAws_json1_1CreateCallAnalyticsCategoryResponse = (output, conte
|
|
|
3034
2948
|
const deserializeAws_json1_1CreateLanguageModelResponse = (output, context) => {
|
|
3035
2949
|
return {
|
|
3036
2950
|
BaseModelName: (0, smithy_client_1.expectString)(output.BaseModelName),
|
|
3037
|
-
InputDataConfig: output.InputDataConfig
|
|
2951
|
+
InputDataConfig: output.InputDataConfig != null
|
|
3038
2952
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
3039
2953
|
: undefined,
|
|
3040
2954
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
@@ -3046,7 +2960,7 @@ const deserializeAws_json1_1CreateMedicalVocabularyResponse = (output, context)
|
|
|
3046
2960
|
return {
|
|
3047
2961
|
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
3048
2962
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
3049
|
-
LastModifiedTime: output.LastModifiedTime
|
|
2963
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3050
2964
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3051
2965
|
: undefined,
|
|
3052
2966
|
VocabularyName: (0, smithy_client_1.expectString)(output.VocabularyName),
|
|
@@ -3056,7 +2970,7 @@ const deserializeAws_json1_1CreateMedicalVocabularyResponse = (output, context)
|
|
|
3056
2970
|
const deserializeAws_json1_1CreateVocabularyFilterResponse = (output, context) => {
|
|
3057
2971
|
return {
|
|
3058
2972
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
3059
|
-
LastModifiedTime: output.LastModifiedTime
|
|
2973
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3060
2974
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3061
2975
|
: undefined,
|
|
3062
2976
|
VocabularyFilterName: (0, smithy_client_1.expectString)(output.VocabularyFilterName),
|
|
@@ -3066,7 +2980,7 @@ const deserializeAws_json1_1CreateVocabularyResponse = (output, context) => {
|
|
|
3066
2980
|
return {
|
|
3067
2981
|
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
3068
2982
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
3069
|
-
LastModifiedTime: output.LastModifiedTime
|
|
2983
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3070
2984
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3071
2985
|
: undefined,
|
|
3072
2986
|
VocabularyName: (0, smithy_client_1.expectString)(output.VocabularyName),
|
|
@@ -3081,28 +2995,26 @@ const deserializeAws_json1_1DeleteCallAnalyticsJobResponse = (output, context) =
|
|
|
3081
2995
|
};
|
|
3082
2996
|
const deserializeAws_json1_1DescribeLanguageModelResponse = (output, context) => {
|
|
3083
2997
|
return {
|
|
3084
|
-
LanguageModel: output.LanguageModel
|
|
3085
|
-
? deserializeAws_json1_1LanguageModel(output.LanguageModel, context)
|
|
3086
|
-
: undefined,
|
|
2998
|
+
LanguageModel: output.LanguageModel != null ? deserializeAws_json1_1LanguageModel(output.LanguageModel, context) : undefined,
|
|
3087
2999
|
};
|
|
3088
3000
|
};
|
|
3089
3001
|
const deserializeAws_json1_1GetCallAnalyticsCategoryResponse = (output, context) => {
|
|
3090
3002
|
return {
|
|
3091
|
-
CategoryProperties: output.CategoryProperties
|
|
3003
|
+
CategoryProperties: output.CategoryProperties != null
|
|
3092
3004
|
? deserializeAws_json1_1CategoryProperties(output.CategoryProperties, context)
|
|
3093
3005
|
: undefined,
|
|
3094
3006
|
};
|
|
3095
3007
|
};
|
|
3096
3008
|
const deserializeAws_json1_1GetCallAnalyticsJobResponse = (output, context) => {
|
|
3097
3009
|
return {
|
|
3098
|
-
CallAnalyticsJob: output.CallAnalyticsJob
|
|
3010
|
+
CallAnalyticsJob: output.CallAnalyticsJob != null
|
|
3099
3011
|
? deserializeAws_json1_1CallAnalyticsJob(output.CallAnalyticsJob, context)
|
|
3100
3012
|
: undefined,
|
|
3101
3013
|
};
|
|
3102
3014
|
};
|
|
3103
3015
|
const deserializeAws_json1_1GetMedicalTranscriptionJobResponse = (output, context) => {
|
|
3104
3016
|
return {
|
|
3105
|
-
MedicalTranscriptionJob: output.MedicalTranscriptionJob
|
|
3017
|
+
MedicalTranscriptionJob: output.MedicalTranscriptionJob != null
|
|
3106
3018
|
? deserializeAws_json1_1MedicalTranscriptionJob(output.MedicalTranscriptionJob, context)
|
|
3107
3019
|
: undefined,
|
|
3108
3020
|
};
|
|
@@ -3112,7 +3024,7 @@ const deserializeAws_json1_1GetMedicalVocabularyResponse = (output, context) =>
|
|
|
3112
3024
|
DownloadUri: (0, smithy_client_1.expectString)(output.DownloadUri),
|
|
3113
3025
|
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
3114
3026
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
3115
|
-
LastModifiedTime: output.LastModifiedTime
|
|
3027
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3116
3028
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3117
3029
|
: undefined,
|
|
3118
3030
|
VocabularyName: (0, smithy_client_1.expectString)(output.VocabularyName),
|
|
@@ -3121,7 +3033,7 @@ const deserializeAws_json1_1GetMedicalVocabularyResponse = (output, context) =>
|
|
|
3121
3033
|
};
|
|
3122
3034
|
const deserializeAws_json1_1GetTranscriptionJobResponse = (output, context) => {
|
|
3123
3035
|
return {
|
|
3124
|
-
TranscriptionJob: output.TranscriptionJob
|
|
3036
|
+
TranscriptionJob: output.TranscriptionJob != null
|
|
3125
3037
|
? deserializeAws_json1_1TranscriptionJob(output.TranscriptionJob, context)
|
|
3126
3038
|
: undefined,
|
|
3127
3039
|
};
|
|
@@ -3130,7 +3042,7 @@ const deserializeAws_json1_1GetVocabularyFilterResponse = (output, context) => {
|
|
|
3130
3042
|
return {
|
|
3131
3043
|
DownloadUri: (0, smithy_client_1.expectString)(output.DownloadUri),
|
|
3132
3044
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
3133
|
-
LastModifiedTime: output.LastModifiedTime
|
|
3045
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3134
3046
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3135
3047
|
: undefined,
|
|
3136
3048
|
VocabularyFilterName: (0, smithy_client_1.expectString)(output.VocabularyFilterName),
|
|
@@ -3141,7 +3053,7 @@ const deserializeAws_json1_1GetVocabularyResponse = (output, context) => {
|
|
|
3141
3053
|
DownloadUri: (0, smithy_client_1.expectString)(output.DownloadUri),
|
|
3142
3054
|
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
3143
3055
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
3144
|
-
LastModifiedTime: output.LastModifiedTime
|
|
3056
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3145
3057
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3146
3058
|
: undefined,
|
|
3147
3059
|
VocabularyName: (0, smithy_client_1.expectString)(output.VocabularyName),
|
|
@@ -3162,12 +3074,12 @@ const deserializeAws_json1_1InternalFailureException = (output, context) => {
|
|
|
3162
3074
|
};
|
|
3163
3075
|
const deserializeAws_json1_1InterruptionFilter = (output, context) => {
|
|
3164
3076
|
return {
|
|
3165
|
-
AbsoluteTimeRange: output.AbsoluteTimeRange
|
|
3077
|
+
AbsoluteTimeRange: output.AbsoluteTimeRange != null
|
|
3166
3078
|
? deserializeAws_json1_1AbsoluteTimeRange(output.AbsoluteTimeRange, context)
|
|
3167
3079
|
: undefined,
|
|
3168
3080
|
Negate: (0, smithy_client_1.expectBoolean)(output.Negate),
|
|
3169
3081
|
ParticipantRole: (0, smithy_client_1.expectString)(output.ParticipantRole),
|
|
3170
|
-
RelativeTimeRange: output.RelativeTimeRange
|
|
3082
|
+
RelativeTimeRange: output.RelativeTimeRange != null
|
|
3171
3083
|
? deserializeAws_json1_1RelativeTimeRange(output.RelativeTimeRange, context)
|
|
3172
3084
|
: undefined,
|
|
3173
3085
|
Threshold: (0, smithy_client_1.expectLong)(output.Threshold),
|
|
@@ -3217,15 +3129,13 @@ const deserializeAws_json1_1LanguageIdSettingsMap = (output, context) => {
|
|
|
3217
3129
|
const deserializeAws_json1_1LanguageModel = (output, context) => {
|
|
3218
3130
|
return {
|
|
3219
3131
|
BaseModelName: (0, smithy_client_1.expectString)(output.BaseModelName),
|
|
3220
|
-
CreateTime: output.CreateTime
|
|
3221
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTime)))
|
|
3222
|
-
: undefined,
|
|
3132
|
+
CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTime))) : undefined,
|
|
3223
3133
|
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
3224
|
-
InputDataConfig: output.InputDataConfig
|
|
3134
|
+
InputDataConfig: output.InputDataConfig != null
|
|
3225
3135
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
3226
3136
|
: undefined,
|
|
3227
3137
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
3228
|
-
LastModifiedTime: output.LastModifiedTime
|
|
3138
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3229
3139
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3230
3140
|
: undefined,
|
|
3231
3141
|
ModelName: (0, smithy_client_1.expectString)(output.ModelName),
|
|
@@ -3251,15 +3161,13 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
3251
3161
|
};
|
|
3252
3162
|
const deserializeAws_json1_1ListCallAnalyticsCategoriesResponse = (output, context) => {
|
|
3253
3163
|
return {
|
|
3254
|
-
Categories: output.Categories
|
|
3255
|
-
? deserializeAws_json1_1CategoryPropertiesList(output.Categories, context)
|
|
3256
|
-
: undefined,
|
|
3164
|
+
Categories: output.Categories != null ? deserializeAws_json1_1CategoryPropertiesList(output.Categories, context) : undefined,
|
|
3257
3165
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3258
3166
|
};
|
|
3259
3167
|
};
|
|
3260
3168
|
const deserializeAws_json1_1ListCallAnalyticsJobsResponse = (output, context) => {
|
|
3261
3169
|
return {
|
|
3262
|
-
CallAnalyticsJobSummaries: output.CallAnalyticsJobSummaries
|
|
3170
|
+
CallAnalyticsJobSummaries: output.CallAnalyticsJobSummaries != null
|
|
3263
3171
|
? deserializeAws_json1_1CallAnalyticsJobSummaries(output.CallAnalyticsJobSummaries, context)
|
|
3264
3172
|
: undefined,
|
|
3265
3173
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -3268,15 +3176,13 @@ const deserializeAws_json1_1ListCallAnalyticsJobsResponse = (output, context) =>
|
|
|
3268
3176
|
};
|
|
3269
3177
|
const deserializeAws_json1_1ListLanguageModelsResponse = (output, context) => {
|
|
3270
3178
|
return {
|
|
3271
|
-
Models: output.Models
|
|
3272
|
-
? deserializeAws_json1_1Models(output.Models, context)
|
|
3273
|
-
: undefined,
|
|
3179
|
+
Models: output.Models != null ? deserializeAws_json1_1Models(output.Models, context) : undefined,
|
|
3274
3180
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3275
3181
|
};
|
|
3276
3182
|
};
|
|
3277
3183
|
const deserializeAws_json1_1ListMedicalTranscriptionJobsResponse = (output, context) => {
|
|
3278
3184
|
return {
|
|
3279
|
-
MedicalTranscriptionJobSummaries: output.MedicalTranscriptionJobSummaries
|
|
3185
|
+
MedicalTranscriptionJobSummaries: output.MedicalTranscriptionJobSummaries != null
|
|
3280
3186
|
? deserializeAws_json1_1MedicalTranscriptionJobSummaries(output.MedicalTranscriptionJobSummaries, context)
|
|
3281
3187
|
: undefined,
|
|
3282
3188
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -3287,24 +3193,20 @@ const deserializeAws_json1_1ListMedicalVocabulariesResponse = (output, context)
|
|
|
3287
3193
|
return {
|
|
3288
3194
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3289
3195
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3290
|
-
Vocabularies: output.Vocabularies
|
|
3291
|
-
? deserializeAws_json1_1Vocabularies(output.Vocabularies, context)
|
|
3292
|
-
: undefined,
|
|
3196
|
+
Vocabularies: output.Vocabularies != null ? deserializeAws_json1_1Vocabularies(output.Vocabularies, context) : undefined,
|
|
3293
3197
|
};
|
|
3294
3198
|
};
|
|
3295
3199
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
3296
3200
|
return {
|
|
3297
3201
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
3298
|
-
Tags: output.Tags
|
|
3299
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
3300
|
-
: undefined,
|
|
3202
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
3301
3203
|
};
|
|
3302
3204
|
};
|
|
3303
3205
|
const deserializeAws_json1_1ListTranscriptionJobsResponse = (output, context) => {
|
|
3304
3206
|
return {
|
|
3305
3207
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3306
3208
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3307
|
-
TranscriptionJobSummaries: output.TranscriptionJobSummaries
|
|
3209
|
+
TranscriptionJobSummaries: output.TranscriptionJobSummaries != null
|
|
3308
3210
|
? deserializeAws_json1_1TranscriptionJobSummaries(output.TranscriptionJobSummaries, context)
|
|
3309
3211
|
: undefined,
|
|
3310
3212
|
};
|
|
@@ -3313,15 +3215,13 @@ const deserializeAws_json1_1ListVocabulariesResponse = (output, context) => {
|
|
|
3313
3215
|
return {
|
|
3314
3216
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3315
3217
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3316
|
-
Vocabularies: output.Vocabularies
|
|
3317
|
-
? deserializeAws_json1_1Vocabularies(output.Vocabularies, context)
|
|
3318
|
-
: undefined,
|
|
3218
|
+
Vocabularies: output.Vocabularies != null ? deserializeAws_json1_1Vocabularies(output.Vocabularies, context) : undefined,
|
|
3319
3219
|
};
|
|
3320
3220
|
};
|
|
3321
3221
|
const deserializeAws_json1_1ListVocabularyFiltersResponse = (output, context) => {
|
|
3322
3222
|
return {
|
|
3323
3223
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3324
|
-
VocabularyFilters: output.VocabularyFilters
|
|
3224
|
+
VocabularyFilters: output.VocabularyFilters != null
|
|
3325
3225
|
? deserializeAws_json1_1VocabularyFilters(output.VocabularyFilters, context)
|
|
3326
3226
|
: undefined,
|
|
3327
3227
|
};
|
|
@@ -3339,34 +3239,24 @@ const deserializeAws_json1_1MedicalTranscript = (output, context) => {
|
|
|
3339
3239
|
};
|
|
3340
3240
|
const deserializeAws_json1_1MedicalTranscriptionJob = (output, context) => {
|
|
3341
3241
|
return {
|
|
3342
|
-
CompletionTime: output.CompletionTime
|
|
3242
|
+
CompletionTime: output.CompletionTime != null
|
|
3343
3243
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionTime)))
|
|
3344
3244
|
: undefined,
|
|
3345
3245
|
ContentIdentificationType: (0, smithy_client_1.expectString)(output.ContentIdentificationType),
|
|
3346
|
-
CreationTime: output.CreationTime
|
|
3246
|
+
CreationTime: output.CreationTime != null
|
|
3347
3247
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
3348
3248
|
: undefined,
|
|
3349
3249
|
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
3350
3250
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
3351
|
-
Media: output.Media
|
|
3352
|
-
? deserializeAws_json1_1Media(output.Media, context)
|
|
3353
|
-
: undefined,
|
|
3251
|
+
Media: output.Media != null ? deserializeAws_json1_1Media(output.Media, context) : undefined,
|
|
3354
3252
|
MediaFormat: (0, smithy_client_1.expectString)(output.MediaFormat),
|
|
3355
3253
|
MediaSampleRateHertz: (0, smithy_client_1.expectInt32)(output.MediaSampleRateHertz),
|
|
3356
3254
|
MedicalTranscriptionJobName: (0, smithy_client_1.expectString)(output.MedicalTranscriptionJobName),
|
|
3357
|
-
Settings: output.Settings
|
|
3358
|
-
? deserializeAws_json1_1MedicalTranscriptionSetting(output.Settings, context)
|
|
3359
|
-
: undefined,
|
|
3255
|
+
Settings: output.Settings != null ? deserializeAws_json1_1MedicalTranscriptionSetting(output.Settings, context) : undefined,
|
|
3360
3256
|
Specialty: (0, smithy_client_1.expectString)(output.Specialty),
|
|
3361
|
-
StartTime: output.StartTime
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
Tags: output.Tags !== undefined && output.Tags !== null
|
|
3365
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
3366
|
-
: undefined,
|
|
3367
|
-
Transcript: output.Transcript !== undefined && output.Transcript !== null
|
|
3368
|
-
? deserializeAws_json1_1MedicalTranscript(output.Transcript, context)
|
|
3369
|
-
: undefined,
|
|
3257
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
3258
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
3259
|
+
Transcript: output.Transcript != null ? deserializeAws_json1_1MedicalTranscript(output.Transcript, context) : undefined,
|
|
3370
3260
|
TranscriptionJobStatus: (0, smithy_client_1.expectString)(output.TranscriptionJobStatus),
|
|
3371
3261
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3372
3262
|
};
|
|
@@ -3384,11 +3274,11 @@ const deserializeAws_json1_1MedicalTranscriptionJobSummaries = (output, context)
|
|
|
3384
3274
|
};
|
|
3385
3275
|
const deserializeAws_json1_1MedicalTranscriptionJobSummary = (output, context) => {
|
|
3386
3276
|
return {
|
|
3387
|
-
CompletionTime: output.CompletionTime
|
|
3277
|
+
CompletionTime: output.CompletionTime != null
|
|
3388
3278
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionTime)))
|
|
3389
3279
|
: undefined,
|
|
3390
3280
|
ContentIdentificationType: (0, smithy_client_1.expectString)(output.ContentIdentificationType),
|
|
3391
|
-
CreationTime: output.CreationTime
|
|
3281
|
+
CreationTime: output.CreationTime != null
|
|
3392
3282
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
3393
3283
|
: undefined,
|
|
3394
3284
|
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
@@ -3396,9 +3286,7 @@ const deserializeAws_json1_1MedicalTranscriptionJobSummary = (output, context) =
|
|
|
3396
3286
|
MedicalTranscriptionJobName: (0, smithy_client_1.expectString)(output.MedicalTranscriptionJobName),
|
|
3397
3287
|
OutputLocationType: (0, smithy_client_1.expectString)(output.OutputLocationType),
|
|
3398
3288
|
Specialty: (0, smithy_client_1.expectString)(output.Specialty),
|
|
3399
|
-
StartTime: output.StartTime
|
|
3400
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
3401
|
-
: undefined,
|
|
3289
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
3402
3290
|
TranscriptionJobStatus: (0, smithy_client_1.expectString)(output.TranscriptionJobStatus),
|
|
3403
3291
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3404
3292
|
};
|
|
@@ -3431,11 +3319,11 @@ const deserializeAws_json1_1ModelSettings = (output, context) => {
|
|
|
3431
3319
|
};
|
|
3432
3320
|
const deserializeAws_json1_1NonTalkTimeFilter = (output, context) => {
|
|
3433
3321
|
return {
|
|
3434
|
-
AbsoluteTimeRange: output.AbsoluteTimeRange
|
|
3322
|
+
AbsoluteTimeRange: output.AbsoluteTimeRange != null
|
|
3435
3323
|
? deserializeAws_json1_1AbsoluteTimeRange(output.AbsoluteTimeRange, context)
|
|
3436
3324
|
: undefined,
|
|
3437
3325
|
Negate: (0, smithy_client_1.expectBoolean)(output.Negate),
|
|
3438
|
-
RelativeTimeRange: output.RelativeTimeRange
|
|
3326
|
+
RelativeTimeRange: output.RelativeTimeRange != null
|
|
3439
3327
|
? deserializeAws_json1_1RelativeTimeRange(output.RelativeTimeRange, context)
|
|
3440
3328
|
: undefined,
|
|
3441
3329
|
Threshold: (0, smithy_client_1.expectLong)(output.Threshold),
|
|
@@ -3501,17 +3389,15 @@ const deserializeAws_json1_1RuleList = (output, context) => {
|
|
|
3501
3389
|
};
|
|
3502
3390
|
const deserializeAws_json1_1SentimentFilter = (output, context) => {
|
|
3503
3391
|
return {
|
|
3504
|
-
AbsoluteTimeRange: output.AbsoluteTimeRange
|
|
3392
|
+
AbsoluteTimeRange: output.AbsoluteTimeRange != null
|
|
3505
3393
|
? deserializeAws_json1_1AbsoluteTimeRange(output.AbsoluteTimeRange, context)
|
|
3506
3394
|
: undefined,
|
|
3507
3395
|
Negate: (0, smithy_client_1.expectBoolean)(output.Negate),
|
|
3508
3396
|
ParticipantRole: (0, smithy_client_1.expectString)(output.ParticipantRole),
|
|
3509
|
-
RelativeTimeRange: output.RelativeTimeRange
|
|
3397
|
+
RelativeTimeRange: output.RelativeTimeRange != null
|
|
3510
3398
|
? deserializeAws_json1_1RelativeTimeRange(output.RelativeTimeRange, context)
|
|
3511
3399
|
: undefined,
|
|
3512
|
-
Sentiments: output.Sentiments
|
|
3513
|
-
? deserializeAws_json1_1SentimentValueList(output.Sentiments, context)
|
|
3514
|
-
: undefined,
|
|
3400
|
+
Sentiments: output.Sentiments != null ? deserializeAws_json1_1SentimentValueList(output.Sentiments, context) : undefined,
|
|
3515
3401
|
};
|
|
3516
3402
|
};
|
|
3517
3403
|
const deserializeAws_json1_1SentimentValueList = (output, context) => {
|
|
@@ -3539,21 +3425,21 @@ const deserializeAws_json1_1Settings = (output, context) => {
|
|
|
3539
3425
|
};
|
|
3540
3426
|
const deserializeAws_json1_1StartCallAnalyticsJobResponse = (output, context) => {
|
|
3541
3427
|
return {
|
|
3542
|
-
CallAnalyticsJob: output.CallAnalyticsJob
|
|
3428
|
+
CallAnalyticsJob: output.CallAnalyticsJob != null
|
|
3543
3429
|
? deserializeAws_json1_1CallAnalyticsJob(output.CallAnalyticsJob, context)
|
|
3544
3430
|
: undefined,
|
|
3545
3431
|
};
|
|
3546
3432
|
};
|
|
3547
3433
|
const deserializeAws_json1_1StartMedicalTranscriptionJobResponse = (output, context) => {
|
|
3548
3434
|
return {
|
|
3549
|
-
MedicalTranscriptionJob: output.MedicalTranscriptionJob
|
|
3435
|
+
MedicalTranscriptionJob: output.MedicalTranscriptionJob != null
|
|
3550
3436
|
? deserializeAws_json1_1MedicalTranscriptionJob(output.MedicalTranscriptionJob, context)
|
|
3551
3437
|
: undefined,
|
|
3552
3438
|
};
|
|
3553
3439
|
};
|
|
3554
3440
|
const deserializeAws_json1_1StartTranscriptionJobResponse = (output, context) => {
|
|
3555
3441
|
return {
|
|
3556
|
-
TranscriptionJob: output.TranscriptionJob
|
|
3442
|
+
TranscriptionJob: output.TranscriptionJob != null
|
|
3557
3443
|
? deserializeAws_json1_1TranscriptionJob(output.TranscriptionJob, context)
|
|
3558
3444
|
: undefined,
|
|
3559
3445
|
};
|
|
@@ -3593,11 +3479,9 @@ const deserializeAws_json1_1SubtitleFormats = (output, context) => {
|
|
|
3593
3479
|
};
|
|
3594
3480
|
const deserializeAws_json1_1SubtitlesOutput = (output, context) => {
|
|
3595
3481
|
return {
|
|
3596
|
-
Formats: output.Formats
|
|
3597
|
-
? deserializeAws_json1_1SubtitleFormats(output.Formats, context)
|
|
3598
|
-
: undefined,
|
|
3482
|
+
Formats: output.Formats != null ? deserializeAws_json1_1SubtitleFormats(output.Formats, context) : undefined,
|
|
3599
3483
|
OutputStartIndex: (0, smithy_client_1.expectInt32)(output.OutputStartIndex),
|
|
3600
|
-
SubtitleFileUris: output.SubtitleFileUris
|
|
3484
|
+
SubtitleFileUris: output.SubtitleFileUris != null
|
|
3601
3485
|
? deserializeAws_json1_1SubtitleFileUris(output.SubtitleFileUris, context)
|
|
3602
3486
|
: undefined,
|
|
3603
3487
|
};
|
|
@@ -3630,71 +3514,53 @@ const deserializeAws_json1_1Transcript = (output, context) => {
|
|
|
3630
3514
|
};
|
|
3631
3515
|
const deserializeAws_json1_1TranscriptFilter = (output, context) => {
|
|
3632
3516
|
return {
|
|
3633
|
-
AbsoluteTimeRange: output.AbsoluteTimeRange
|
|
3517
|
+
AbsoluteTimeRange: output.AbsoluteTimeRange != null
|
|
3634
3518
|
? deserializeAws_json1_1AbsoluteTimeRange(output.AbsoluteTimeRange, context)
|
|
3635
3519
|
: undefined,
|
|
3636
3520
|
Negate: (0, smithy_client_1.expectBoolean)(output.Negate),
|
|
3637
3521
|
ParticipantRole: (0, smithy_client_1.expectString)(output.ParticipantRole),
|
|
3638
|
-
RelativeTimeRange: output.RelativeTimeRange
|
|
3522
|
+
RelativeTimeRange: output.RelativeTimeRange != null
|
|
3639
3523
|
? deserializeAws_json1_1RelativeTimeRange(output.RelativeTimeRange, context)
|
|
3640
3524
|
: undefined,
|
|
3641
|
-
Targets: output.Targets
|
|
3642
|
-
? deserializeAws_json1_1StringTargetList(output.Targets, context)
|
|
3643
|
-
: undefined,
|
|
3525
|
+
Targets: output.Targets != null ? deserializeAws_json1_1StringTargetList(output.Targets, context) : undefined,
|
|
3644
3526
|
TranscriptFilterType: (0, smithy_client_1.expectString)(output.TranscriptFilterType),
|
|
3645
3527
|
};
|
|
3646
3528
|
};
|
|
3647
3529
|
const deserializeAws_json1_1TranscriptionJob = (output, context) => {
|
|
3648
3530
|
return {
|
|
3649
|
-
CompletionTime: output.CompletionTime
|
|
3531
|
+
CompletionTime: output.CompletionTime != null
|
|
3650
3532
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionTime)))
|
|
3651
3533
|
: undefined,
|
|
3652
|
-
ContentRedaction: output.ContentRedaction
|
|
3534
|
+
ContentRedaction: output.ContentRedaction != null
|
|
3653
3535
|
? deserializeAws_json1_1ContentRedaction(output.ContentRedaction, context)
|
|
3654
3536
|
: undefined,
|
|
3655
|
-
CreationTime: output.CreationTime
|
|
3537
|
+
CreationTime: output.CreationTime != null
|
|
3656
3538
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
3657
3539
|
: undefined,
|
|
3658
3540
|
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
3659
3541
|
IdentifiedLanguageScore: (0, smithy_client_1.limitedParseFloat32)(output.IdentifiedLanguageScore),
|
|
3660
3542
|
IdentifyLanguage: (0, smithy_client_1.expectBoolean)(output.IdentifyLanguage),
|
|
3661
3543
|
IdentifyMultipleLanguages: (0, smithy_client_1.expectBoolean)(output.IdentifyMultipleLanguages),
|
|
3662
|
-
JobExecutionSettings: output.JobExecutionSettings
|
|
3544
|
+
JobExecutionSettings: output.JobExecutionSettings != null
|
|
3663
3545
|
? deserializeAws_json1_1JobExecutionSettings(output.JobExecutionSettings, context)
|
|
3664
3546
|
: undefined,
|
|
3665
3547
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
3666
|
-
LanguageCodes: output.LanguageCodes
|
|
3667
|
-
|
|
3668
|
-
: undefined,
|
|
3669
|
-
LanguageIdSettings: output.LanguageIdSettings !== undefined && output.LanguageIdSettings !== null
|
|
3548
|
+
LanguageCodes: output.LanguageCodes != null ? deserializeAws_json1_1LanguageCodeList(output.LanguageCodes, context) : undefined,
|
|
3549
|
+
LanguageIdSettings: output.LanguageIdSettings != null
|
|
3670
3550
|
? deserializeAws_json1_1LanguageIdSettingsMap(output.LanguageIdSettings, context)
|
|
3671
3551
|
: undefined,
|
|
3672
|
-
LanguageOptions: output.LanguageOptions
|
|
3552
|
+
LanguageOptions: output.LanguageOptions != null
|
|
3673
3553
|
? deserializeAws_json1_1LanguageOptions(output.LanguageOptions, context)
|
|
3674
3554
|
: undefined,
|
|
3675
|
-
Media: output.Media
|
|
3676
|
-
? deserializeAws_json1_1Media(output.Media, context)
|
|
3677
|
-
: undefined,
|
|
3555
|
+
Media: output.Media != null ? deserializeAws_json1_1Media(output.Media, context) : undefined,
|
|
3678
3556
|
MediaFormat: (0, smithy_client_1.expectString)(output.MediaFormat),
|
|
3679
3557
|
MediaSampleRateHertz: (0, smithy_client_1.expectInt32)(output.MediaSampleRateHertz),
|
|
3680
|
-
ModelSettings: output.ModelSettings
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
3687
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
3688
|
-
: undefined,
|
|
3689
|
-
Subtitles: output.Subtitles !== undefined && output.Subtitles !== null
|
|
3690
|
-
? deserializeAws_json1_1SubtitlesOutput(output.Subtitles, context)
|
|
3691
|
-
: undefined,
|
|
3692
|
-
Tags: output.Tags !== undefined && output.Tags !== null
|
|
3693
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
3694
|
-
: undefined,
|
|
3695
|
-
Transcript: output.Transcript !== undefined && output.Transcript !== null
|
|
3696
|
-
? deserializeAws_json1_1Transcript(output.Transcript, context)
|
|
3697
|
-
: undefined,
|
|
3558
|
+
ModelSettings: output.ModelSettings != null ? deserializeAws_json1_1ModelSettings(output.ModelSettings, context) : undefined,
|
|
3559
|
+
Settings: output.Settings != null ? deserializeAws_json1_1Settings(output.Settings, context) : undefined,
|
|
3560
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
3561
|
+
Subtitles: output.Subtitles != null ? deserializeAws_json1_1SubtitlesOutput(output.Subtitles, context) : undefined,
|
|
3562
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
3563
|
+
Transcript: output.Transcript != null ? deserializeAws_json1_1Transcript(output.Transcript, context) : undefined,
|
|
3698
3564
|
TranscriptionJobName: (0, smithy_client_1.expectString)(output.TranscriptionJobName),
|
|
3699
3565
|
TranscriptionJobStatus: (0, smithy_client_1.expectString)(output.TranscriptionJobStatus),
|
|
3700
3566
|
};
|
|
@@ -3712,13 +3578,13 @@ const deserializeAws_json1_1TranscriptionJobSummaries = (output, context) => {
|
|
|
3712
3578
|
};
|
|
3713
3579
|
const deserializeAws_json1_1TranscriptionJobSummary = (output, context) => {
|
|
3714
3580
|
return {
|
|
3715
|
-
CompletionTime: output.CompletionTime
|
|
3581
|
+
CompletionTime: output.CompletionTime != null
|
|
3716
3582
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionTime)))
|
|
3717
3583
|
: undefined,
|
|
3718
|
-
ContentRedaction: output.ContentRedaction
|
|
3584
|
+
ContentRedaction: output.ContentRedaction != null
|
|
3719
3585
|
? deserializeAws_json1_1ContentRedaction(output.ContentRedaction, context)
|
|
3720
3586
|
: undefined,
|
|
3721
|
-
CreationTime: output.CreationTime
|
|
3587
|
+
CreationTime: output.CreationTime != null
|
|
3722
3588
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
3723
3589
|
: undefined,
|
|
3724
3590
|
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
@@ -3726,16 +3592,10 @@ const deserializeAws_json1_1TranscriptionJobSummary = (output, context) => {
|
|
|
3726
3592
|
IdentifyLanguage: (0, smithy_client_1.expectBoolean)(output.IdentifyLanguage),
|
|
3727
3593
|
IdentifyMultipleLanguages: (0, smithy_client_1.expectBoolean)(output.IdentifyMultipleLanguages),
|
|
3728
3594
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
3729
|
-
LanguageCodes: output.LanguageCodes
|
|
3730
|
-
|
|
3731
|
-
: undefined,
|
|
3732
|
-
ModelSettings: output.ModelSettings !== undefined && output.ModelSettings !== null
|
|
3733
|
-
? deserializeAws_json1_1ModelSettings(output.ModelSettings, context)
|
|
3734
|
-
: undefined,
|
|
3595
|
+
LanguageCodes: output.LanguageCodes != null ? deserializeAws_json1_1LanguageCodeList(output.LanguageCodes, context) : undefined,
|
|
3596
|
+
ModelSettings: output.ModelSettings != null ? deserializeAws_json1_1ModelSettings(output.ModelSettings, context) : undefined,
|
|
3735
3597
|
OutputLocationType: (0, smithy_client_1.expectString)(output.OutputLocationType),
|
|
3736
|
-
StartTime: output.StartTime
|
|
3737
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
3738
|
-
: undefined,
|
|
3598
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
3739
3599
|
TranscriptionJobName: (0, smithy_client_1.expectString)(output.TranscriptionJobName),
|
|
3740
3600
|
TranscriptionJobStatus: (0, smithy_client_1.expectString)(output.TranscriptionJobStatus),
|
|
3741
3601
|
};
|
|
@@ -3745,7 +3605,7 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
|
3745
3605
|
};
|
|
3746
3606
|
const deserializeAws_json1_1UpdateCallAnalyticsCategoryResponse = (output, context) => {
|
|
3747
3607
|
return {
|
|
3748
|
-
CategoryProperties: output.CategoryProperties
|
|
3608
|
+
CategoryProperties: output.CategoryProperties != null
|
|
3749
3609
|
? deserializeAws_json1_1CategoryProperties(output.CategoryProperties, context)
|
|
3750
3610
|
: undefined,
|
|
3751
3611
|
};
|
|
@@ -3753,7 +3613,7 @@ const deserializeAws_json1_1UpdateCallAnalyticsCategoryResponse = (output, conte
|
|
|
3753
3613
|
const deserializeAws_json1_1UpdateMedicalVocabularyResponse = (output, context) => {
|
|
3754
3614
|
return {
|
|
3755
3615
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
3756
|
-
LastModifiedTime: output.LastModifiedTime
|
|
3616
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3757
3617
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3758
3618
|
: undefined,
|
|
3759
3619
|
VocabularyName: (0, smithy_client_1.expectString)(output.VocabularyName),
|
|
@@ -3763,7 +3623,7 @@ const deserializeAws_json1_1UpdateMedicalVocabularyResponse = (output, context)
|
|
|
3763
3623
|
const deserializeAws_json1_1UpdateVocabularyFilterResponse = (output, context) => {
|
|
3764
3624
|
return {
|
|
3765
3625
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
3766
|
-
LastModifiedTime: output.LastModifiedTime
|
|
3626
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3767
3627
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3768
3628
|
: undefined,
|
|
3769
3629
|
VocabularyFilterName: (0, smithy_client_1.expectString)(output.VocabularyFilterName),
|
|
@@ -3772,7 +3632,7 @@ const deserializeAws_json1_1UpdateVocabularyFilterResponse = (output, context) =
|
|
|
3772
3632
|
const deserializeAws_json1_1UpdateVocabularyResponse = (output, context) => {
|
|
3773
3633
|
return {
|
|
3774
3634
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
3775
|
-
LastModifiedTime: output.LastModifiedTime
|
|
3635
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3776
3636
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3777
3637
|
: undefined,
|
|
3778
3638
|
VocabularyName: (0, smithy_client_1.expectString)(output.VocabularyName),
|
|
@@ -3793,7 +3653,7 @@ const deserializeAws_json1_1Vocabularies = (output, context) => {
|
|
|
3793
3653
|
const deserializeAws_json1_1VocabularyFilterInfo = (output, context) => {
|
|
3794
3654
|
return {
|
|
3795
3655
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
3796
|
-
LastModifiedTime: output.LastModifiedTime
|
|
3656
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3797
3657
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3798
3658
|
: undefined,
|
|
3799
3659
|
VocabularyFilterName: (0, smithy_client_1.expectString)(output.VocabularyFilterName),
|
|
@@ -3813,7 +3673,7 @@ const deserializeAws_json1_1VocabularyFilters = (output, context) => {
|
|
|
3813
3673
|
const deserializeAws_json1_1VocabularyInfo = (output, context) => {
|
|
3814
3674
|
return {
|
|
3815
3675
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
3816
|
-
LastModifiedTime: output.LastModifiedTime
|
|
3676
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3817
3677
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3818
3678
|
: undefined,
|
|
3819
3679
|
VocabularyName: (0, smithy_client_1.expectString)(output.VocabularyName),
|
|
@@ -3882,5 +3742,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3882
3742
|
if (data["__type"] !== undefined) {
|
|
3883
3743
|
return sanitizeErrorCode(data["__type"]);
|
|
3884
3744
|
}
|
|
3885
|
-
return "";
|
|
3886
3745
|
};
|