@aws-sdk/client-rekognition 3.30.0 → 3.34.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 +35 -0
- package/dist/cjs/RekognitionClient.js +13 -13
- package/dist/cjs/RekognitionClient.js.map +1 -1
- package/dist/cjs/commands/CompareFacesCommand.js +3 -3
- package/dist/cjs/commands/CompareFacesCommand.js.map +1 -1
- package/dist/cjs/commands/CreateCollectionCommand.js +3 -3
- package/dist/cjs/commands/CreateCollectionCommand.js.map +1 -1
- package/dist/cjs/commands/CreateProjectCommand.js +3 -3
- package/dist/cjs/commands/CreateProjectCommand.js.map +1 -1
- package/dist/cjs/commands/CreateProjectVersionCommand.js +3 -3
- package/dist/cjs/commands/CreateProjectVersionCommand.js.map +1 -1
- package/dist/cjs/commands/CreateStreamProcessorCommand.js +3 -3
- package/dist/cjs/commands/CreateStreamProcessorCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteCollectionCommand.js +3 -3
- package/dist/cjs/commands/DeleteCollectionCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteFacesCommand.js +3 -3
- package/dist/cjs/commands/DeleteFacesCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteProjectCommand.js +3 -3
- package/dist/cjs/commands/DeleteProjectCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteProjectVersionCommand.js +3 -3
- package/dist/cjs/commands/DeleteProjectVersionCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteStreamProcessorCommand.js +3 -3
- package/dist/cjs/commands/DeleteStreamProcessorCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeCollectionCommand.js +3 -3
- package/dist/cjs/commands/DescribeCollectionCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeProjectVersionsCommand.js +3 -3
- package/dist/cjs/commands/DescribeProjectVersionsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeProjectsCommand.js +3 -3
- package/dist/cjs/commands/DescribeProjectsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeStreamProcessorCommand.js +3 -3
- package/dist/cjs/commands/DescribeStreamProcessorCommand.js.map +1 -1
- package/dist/cjs/commands/DetectCustomLabelsCommand.js +3 -3
- package/dist/cjs/commands/DetectCustomLabelsCommand.js.map +1 -1
- package/dist/cjs/commands/DetectFacesCommand.js +3 -3
- package/dist/cjs/commands/DetectFacesCommand.js.map +1 -1
- package/dist/cjs/commands/DetectLabelsCommand.js +3 -3
- package/dist/cjs/commands/DetectLabelsCommand.js.map +1 -1
- package/dist/cjs/commands/DetectModerationLabelsCommand.js +3 -3
- package/dist/cjs/commands/DetectModerationLabelsCommand.js.map +1 -1
- package/dist/cjs/commands/DetectProtectiveEquipmentCommand.js +3 -3
- package/dist/cjs/commands/DetectProtectiveEquipmentCommand.js.map +1 -1
- package/dist/cjs/commands/DetectTextCommand.js +3 -3
- package/dist/cjs/commands/DetectTextCommand.js.map +1 -1
- package/dist/cjs/commands/GetCelebrityInfoCommand.js +3 -3
- package/dist/cjs/commands/GetCelebrityInfoCommand.js.map +1 -1
- package/dist/cjs/commands/GetCelebrityRecognitionCommand.js +3 -3
- package/dist/cjs/commands/GetCelebrityRecognitionCommand.js.map +1 -1
- package/dist/cjs/commands/GetContentModerationCommand.js +3 -3
- package/dist/cjs/commands/GetContentModerationCommand.js.map +1 -1
- package/dist/cjs/commands/GetFaceDetectionCommand.js +3 -3
- package/dist/cjs/commands/GetFaceDetectionCommand.js.map +1 -1
- package/dist/cjs/commands/GetFaceSearchCommand.js +3 -3
- package/dist/cjs/commands/GetFaceSearchCommand.js.map +1 -1
- package/dist/cjs/commands/GetLabelDetectionCommand.js +3 -3
- package/dist/cjs/commands/GetLabelDetectionCommand.js.map +1 -1
- package/dist/cjs/commands/GetPersonTrackingCommand.js +3 -3
- package/dist/cjs/commands/GetPersonTrackingCommand.js.map +1 -1
- package/dist/cjs/commands/GetSegmentDetectionCommand.js +3 -3
- package/dist/cjs/commands/GetSegmentDetectionCommand.js.map +1 -1
- package/dist/cjs/commands/GetTextDetectionCommand.js +3 -3
- package/dist/cjs/commands/GetTextDetectionCommand.js.map +1 -1
- package/dist/cjs/commands/IndexFacesCommand.js +3 -3
- package/dist/cjs/commands/IndexFacesCommand.js.map +1 -1
- package/dist/cjs/commands/ListCollectionsCommand.js +3 -3
- package/dist/cjs/commands/ListCollectionsCommand.js.map +1 -1
- package/dist/cjs/commands/ListFacesCommand.js +3 -3
- package/dist/cjs/commands/ListFacesCommand.js.map +1 -1
- package/dist/cjs/commands/ListStreamProcessorsCommand.js +3 -3
- package/dist/cjs/commands/ListStreamProcessorsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/RecognizeCelebritiesCommand.js +3 -3
- package/dist/cjs/commands/RecognizeCelebritiesCommand.js.map +1 -1
- package/dist/cjs/commands/SearchFacesByImageCommand.js +3 -3
- package/dist/cjs/commands/SearchFacesByImageCommand.js.map +1 -1
- package/dist/cjs/commands/SearchFacesCommand.js +3 -3
- package/dist/cjs/commands/SearchFacesCommand.js.map +1 -1
- package/dist/cjs/commands/StartCelebrityRecognitionCommand.js +3 -3
- package/dist/cjs/commands/StartCelebrityRecognitionCommand.js.map +1 -1
- package/dist/cjs/commands/StartContentModerationCommand.js +3 -3
- package/dist/cjs/commands/StartContentModerationCommand.js.map +1 -1
- package/dist/cjs/commands/StartFaceDetectionCommand.js +3 -3
- package/dist/cjs/commands/StartFaceDetectionCommand.js.map +1 -1
- package/dist/cjs/commands/StartFaceSearchCommand.js +3 -3
- package/dist/cjs/commands/StartFaceSearchCommand.js.map +1 -1
- package/dist/cjs/commands/StartLabelDetectionCommand.js +3 -3
- package/dist/cjs/commands/StartLabelDetectionCommand.js.map +1 -1
- package/dist/cjs/commands/StartPersonTrackingCommand.js +3 -3
- package/dist/cjs/commands/StartPersonTrackingCommand.js.map +1 -1
- package/dist/cjs/commands/StartProjectVersionCommand.js +3 -3
- package/dist/cjs/commands/StartProjectVersionCommand.js.map +1 -1
- package/dist/cjs/commands/StartSegmentDetectionCommand.js +3 -3
- package/dist/cjs/commands/StartSegmentDetectionCommand.js.map +1 -1
- package/dist/cjs/commands/StartStreamProcessorCommand.js +3 -3
- package/dist/cjs/commands/StartStreamProcessorCommand.js.map +1 -1
- package/dist/cjs/commands/StartTextDetectionCommand.js +3 -3
- package/dist/cjs/commands/StartTextDetectionCommand.js.map +1 -1
- package/dist/cjs/commands/StopProjectVersionCommand.js +3 -3
- package/dist/cjs/commands/StopProjectVersionCommand.js.map +1 -1
- package/dist/cjs/commands/StopStreamProcessorCommand.js +3 -3
- package/dist/cjs/commands/StopStreamProcessorCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +70 -70
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +40 -40
- package/dist/cjs/protocols/Aws_json1_1.js +298 -298
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/cjs/waiters/waitForProjectVersionRunning.js +3 -3
- package/dist/cjs/waiters/waitForProjectVersionRunning.js.map +1 -1
- package/dist/cjs/waiters/waitForProjectVersionTrainingCompleted.js +3 -3
- package/dist/cjs/waiters/waitForProjectVersionTrainingCompleted.js.map +1 -1
- package/dist/es/Rekognition.js +1 -4
- package/dist/es/Rekognition.js.map +1 -1
- package/dist/es/RekognitionClient.js +1 -9
- package/dist/es/RekognitionClient.js.map +1 -1
- package/dist/es/commands/CompareFacesCommand.js +2 -89
- package/dist/es/commands/CompareFacesCommand.js.map +1 -1
- package/dist/es/commands/CreateCollectionCommand.js +2 -39
- package/dist/es/commands/CreateCollectionCommand.js.map +1 -1
- package/dist/es/commands/CreateProjectCommand.js +2 -29
- package/dist/es/commands/CreateProjectCommand.js.map +1 -1
- package/dist/es/commands/CreateProjectVersionCommand.js +2 -38
- package/dist/es/commands/CreateProjectVersionCommand.js.map +1 -1
- package/dist/es/commands/CreateStreamProcessorCommand.js +2 -37
- package/dist/es/commands/CreateStreamProcessorCommand.js.map +1 -1
- package/dist/es/commands/DeleteCollectionCommand.js +2 -31
- package/dist/es/commands/DeleteCollectionCommand.js.map +1 -1
- package/dist/es/commands/DeleteFacesCommand.js +2 -30
- package/dist/es/commands/DeleteFacesCommand.js.map +1 -1
- package/dist/es/commands/DeleteProjectCommand.js +2 -30
- package/dist/es/commands/DeleteProjectCommand.js.map +1 -1
- package/dist/es/commands/DeleteProjectVersionCommand.js +2 -34
- package/dist/es/commands/DeleteProjectVersionCommand.js.map +1 -1
- package/dist/es/commands/DeleteStreamProcessorCommand.js +2 -28
- package/dist/es/commands/DeleteStreamProcessorCommand.js.map +1 -1
- package/dist/es/commands/DescribeCollectionCommand.js +2 -32
- package/dist/es/commands/DescribeCollectionCommand.js.map +1 -1
- package/dist/es/commands/DescribeProjectVersionsCommand.js +2 -31
- package/dist/es/commands/DescribeProjectVersionsCommand.js.map +1 -1
- package/dist/es/commands/DescribeProjectsCommand.js +2 -28
- package/dist/es/commands/DescribeProjectsCommand.js.map +1 -1
- package/dist/es/commands/DescribeStreamProcessorCommand.js +2 -28
- package/dist/es/commands/DescribeStreamProcessorCommand.js.map +1 -1
- package/dist/es/commands/DetectCustomLabelsCommand.js +2 -77
- package/dist/es/commands/DetectCustomLabelsCommand.js.map +1 -1
- package/dist/es/commands/DetectFacesCommand.js +2 -49
- package/dist/es/commands/DetectFacesCommand.js.map +1 -1
- package/dist/es/commands/DetectLabelsCommand.js +2 -99
- package/dist/es/commands/DetectLabelsCommand.js.map +1 -1
- package/dist/es/commands/DetectModerationLabelsCommand.js +2 -40
- package/dist/es/commands/DetectModerationLabelsCommand.js.map +1 -1
- package/dist/es/commands/DetectProtectiveEquipmentCommand.js +2 -66
- package/dist/es/commands/DetectProtectiveEquipmentCommand.js.map +1 -1
- package/dist/es/commands/DetectTextCommand.js +2 -48
- package/dist/es/commands/DetectTextCommand.js.map +1 -1
- package/dist/es/commands/GetCelebrityInfoCommand.js +2 -34
- package/dist/es/commands/GetCelebrityInfoCommand.js.map +1 -1
- package/dist/es/commands/GetCelebrityRecognitionCommand.js +2 -61
- package/dist/es/commands/GetCelebrityRecognitionCommand.js.map +1 -1
- package/dist/es/commands/GetContentModerationCommand.js +2 -56
- package/dist/es/commands/GetContentModerationCommand.js.map +1 -1
- package/dist/es/commands/GetFaceDetectionCommand.js +2 -39
- package/dist/es/commands/GetFaceDetectionCommand.js.map +1 -1
- package/dist/es/commands/GetFaceSearchCommand.js +2 -57
- package/dist/es/commands/GetFaceSearchCommand.js.map +1 -1
- package/dist/es/commands/GetLabelDetectionCommand.js +2 -47
- package/dist/es/commands/GetLabelDetectionCommand.js.map +1 -1
- package/dist/es/commands/GetPersonTrackingCommand.js +2 -56
- package/dist/es/commands/GetPersonTrackingCommand.js.map +1 -1
- package/dist/es/commands/GetSegmentDetectionCommand.js +2 -49
- package/dist/es/commands/GetSegmentDetectionCommand.js.map +1 -1
- package/dist/es/commands/GetTextDetectionCommand.js +2 -45
- package/dist/es/commands/GetTextDetectionCommand.js.map +1 -1
- package/dist/es/commands/IndexFacesCommand.js +2 -126
- package/dist/es/commands/IndexFacesCommand.js.map +1 -1
- package/dist/es/commands/ListCollectionsCommand.js +2 -32
- package/dist/es/commands/ListCollectionsCommand.js.map +1 -1
- package/dist/es/commands/ListFacesCommand.js +2 -34
- package/dist/es/commands/ListFacesCommand.js.map +1 -1
- package/dist/es/commands/ListStreamProcessorsCommand.js +2 -27
- package/dist/es/commands/ListStreamProcessorsCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -31
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/RecognizeCelebritiesCommand.js +2 -57
- package/dist/es/commands/RecognizeCelebritiesCommand.js.map +1 -1
- package/dist/es/commands/SearchFacesByImageCommand.js +2 -73
- package/dist/es/commands/SearchFacesByImageCommand.js.map +1 -1
- package/dist/es/commands/SearchFacesCommand.js +2 -47
- package/dist/es/commands/SearchFacesCommand.js.map +1 -1
- package/dist/es/commands/StartCelebrityRecognitionCommand.js +2 -38
- package/dist/es/commands/StartCelebrityRecognitionCommand.js.map +1 -1
- package/dist/es/commands/StartContentModerationCommand.js +2 -38
- package/dist/es/commands/StartContentModerationCommand.js.map +1 -1
- package/dist/es/commands/StartFaceDetectionCommand.js +2 -39
- package/dist/es/commands/StartFaceDetectionCommand.js.map +1 -1
- package/dist/es/commands/StartFaceSearchCommand.js +2 -36
- package/dist/es/commands/StartFaceSearchCommand.js.map +1 -1
- package/dist/es/commands/StartLabelDetectionCommand.js +2 -41
- package/dist/es/commands/StartLabelDetectionCommand.js.map +1 -1
- package/dist/es/commands/StartPersonTrackingCommand.js +2 -35
- package/dist/es/commands/StartPersonTrackingCommand.js.map +1 -1
- package/dist/es/commands/StartProjectVersionCommand.js +2 -36
- package/dist/es/commands/StartProjectVersionCommand.js.map +1 -1
- package/dist/es/commands/StartSegmentDetectionCommand.js +2 -42
- package/dist/es/commands/StartSegmentDetectionCommand.js.map +1 -1
- package/dist/es/commands/StartStreamProcessorCommand.js +2 -29
- package/dist/es/commands/StartStreamProcessorCommand.js.map +1 -1
- package/dist/es/commands/StartTextDetectionCommand.js +2 -34
- package/dist/es/commands/StartTextDetectionCommand.js.map +1 -1
- package/dist/es/commands/StopProjectVersionCommand.js +2 -28
- package/dist/es/commands/StopProjectVersionCommand.js.map +1 -1
- package/dist/es/commands/StopStreamProcessorCommand.js +2 -27
- package/dist/es/commands/StopStreamProcessorCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -31
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -31
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -621
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +40 -40
- package/dist/es/pagination/DescribeProjectVersionsPaginator.js +16 -28
- package/dist/es/pagination/DescribeProjectVersionsPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeProjectsPaginator.js +16 -28
- package/dist/es/pagination/DescribeProjectsPaginator.js.map +1 -1
- package/dist/es/pagination/GetCelebrityRecognitionPaginator.js +16 -28
- package/dist/es/pagination/GetCelebrityRecognitionPaginator.js.map +1 -1
- package/dist/es/pagination/GetContentModerationPaginator.js +16 -28
- package/dist/es/pagination/GetContentModerationPaginator.js.map +1 -1
- package/dist/es/pagination/GetFaceDetectionPaginator.js +16 -28
- package/dist/es/pagination/GetFaceDetectionPaginator.js.map +1 -1
- package/dist/es/pagination/GetFaceSearchPaginator.js +16 -28
- package/dist/es/pagination/GetFaceSearchPaginator.js.map +1 -1
- package/dist/es/pagination/GetLabelDetectionPaginator.js +16 -28
- package/dist/es/pagination/GetLabelDetectionPaginator.js.map +1 -1
- package/dist/es/pagination/GetPersonTrackingPaginator.js +16 -28
- package/dist/es/pagination/GetPersonTrackingPaginator.js.map +1 -1
- package/dist/es/pagination/GetSegmentDetectionPaginator.js +16 -28
- package/dist/es/pagination/GetSegmentDetectionPaginator.js.map +1 -1
- package/dist/es/pagination/GetTextDetectionPaginator.js +16 -28
- package/dist/es/pagination/GetTextDetectionPaginator.js.map +1 -1
- package/dist/es/pagination/ListCollectionsPaginator.js +16 -28
- package/dist/es/pagination/ListCollectionsPaginator.js.map +1 -1
- package/dist/es/pagination/ListFacesPaginator.js +16 -28
- package/dist/es/pagination/ListFacesPaginator.js.map +1 -1
- package/dist/es/pagination/ListStreamProcessorsPaginator.js +16 -28
- package/dist/es/pagination/ListStreamProcessorsPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_1.js +1924 -1929
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/es/waiters/waitForProjectVersionRunning.js +11 -20
- package/dist/es/waiters/waitForProjectVersionRunning.js.map +1 -1
- package/dist/es/waiters/waitForProjectVersionTrainingCompleted.js +11 -20
- package/dist/es/waiters/waitForProjectVersionTrainingCompleted.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +40 -40
- package/protocols/Aws_json1_1.ts +9 -6
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -5813,24 +5813,24 @@ const serializeAws_json1_1Attributes = (input, context) => {
|
|
|
5813
5813
|
const serializeAws_json1_1BlackFrame = (input, context) => {
|
|
5814
5814
|
return {
|
|
5815
5815
|
...(input.MaxPixelThreshold !== undefined &&
|
|
5816
|
-
input.MaxPixelThreshold !== null && { MaxPixelThreshold:
|
|
5816
|
+
input.MaxPixelThreshold !== null && { MaxPixelThreshold: smithy_client_1.serializeFloat(input.MaxPixelThreshold) }),
|
|
5817
5817
|
...(input.MinCoveragePercentage !== undefined &&
|
|
5818
|
-
input.MinCoveragePercentage !== null && { MinCoveragePercentage:
|
|
5818
|
+
input.MinCoveragePercentage !== null && { MinCoveragePercentage: smithy_client_1.serializeFloat(input.MinCoveragePercentage) }),
|
|
5819
5819
|
};
|
|
5820
5820
|
};
|
|
5821
5821
|
const serializeAws_json1_1BoundingBox = (input, context) => {
|
|
5822
5822
|
return {
|
|
5823
|
-
...(input.Height !== undefined && input.Height !== null && { Height:
|
|
5824
|
-
...(input.Left !== undefined && input.Left !== null && { Left:
|
|
5825
|
-
...(input.Top !== undefined && input.Top !== null && { Top:
|
|
5826
|
-
...(input.Width !== undefined && input.Width !== null && { Width:
|
|
5823
|
+
...(input.Height !== undefined && input.Height !== null && { Height: smithy_client_1.serializeFloat(input.Height) }),
|
|
5824
|
+
...(input.Left !== undefined && input.Left !== null && { Left: smithy_client_1.serializeFloat(input.Left) }),
|
|
5825
|
+
...(input.Top !== undefined && input.Top !== null && { Top: smithy_client_1.serializeFloat(input.Top) }),
|
|
5826
|
+
...(input.Width !== undefined && input.Width !== null && { Width: smithy_client_1.serializeFloat(input.Width) }),
|
|
5827
5827
|
};
|
|
5828
5828
|
};
|
|
5829
5829
|
const serializeAws_json1_1CompareFacesRequest = (input, context) => {
|
|
5830
5830
|
return {
|
|
5831
5831
|
...(input.QualityFilter !== undefined && input.QualityFilter !== null && { QualityFilter: input.QualityFilter }),
|
|
5832
5832
|
...(input.SimilarityThreshold !== undefined &&
|
|
5833
|
-
input.SimilarityThreshold !== null && { SimilarityThreshold:
|
|
5833
|
+
input.SimilarityThreshold !== null && { SimilarityThreshold: smithy_client_1.serializeFloat(input.SimilarityThreshold) }),
|
|
5834
5834
|
...(input.SourceImage !== undefined &&
|
|
5835
5835
|
input.SourceImage !== null && { SourceImage: serializeAws_json1_1Image(input.SourceImage, context) }),
|
|
5836
5836
|
...(input.TargetImage !== undefined &&
|
|
@@ -5944,7 +5944,7 @@ const serializeAws_json1_1DetectCustomLabelsRequest = (input, context) => {
|
|
|
5944
5944
|
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
5945
5945
|
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
5946
5946
|
...(input.MinConfidence !== undefined &&
|
|
5947
|
-
input.MinConfidence !== null && { MinConfidence:
|
|
5947
|
+
input.MinConfidence !== null && { MinConfidence: smithy_client_1.serializeFloat(input.MinConfidence) }),
|
|
5948
5948
|
...(input.ProjectVersionArn !== undefined &&
|
|
5949
5949
|
input.ProjectVersionArn !== null && { ProjectVersionArn: input.ProjectVersionArn }),
|
|
5950
5950
|
};
|
|
@@ -5960,11 +5960,11 @@ const serializeAws_json1_1DetectFacesRequest = (input, context) => {
|
|
|
5960
5960
|
const serializeAws_json1_1DetectionFilter = (input, context) => {
|
|
5961
5961
|
return {
|
|
5962
5962
|
...(input.MinBoundingBoxHeight !== undefined &&
|
|
5963
|
-
input.MinBoundingBoxHeight !== null && { MinBoundingBoxHeight:
|
|
5963
|
+
input.MinBoundingBoxHeight !== null && { MinBoundingBoxHeight: smithy_client_1.serializeFloat(input.MinBoundingBoxHeight) }),
|
|
5964
5964
|
...(input.MinBoundingBoxWidth !== undefined &&
|
|
5965
|
-
input.MinBoundingBoxWidth !== null && { MinBoundingBoxWidth:
|
|
5965
|
+
input.MinBoundingBoxWidth !== null && { MinBoundingBoxWidth: smithy_client_1.serializeFloat(input.MinBoundingBoxWidth) }),
|
|
5966
5966
|
...(input.MinConfidence !== undefined &&
|
|
5967
|
-
input.MinConfidence !== null && { MinConfidence:
|
|
5967
|
+
input.MinConfidence !== null && { MinConfidence: smithy_client_1.serializeFloat(input.MinConfidence) }),
|
|
5968
5968
|
};
|
|
5969
5969
|
};
|
|
5970
5970
|
const serializeAws_json1_1DetectLabelsRequest = (input, context) => {
|
|
@@ -5973,7 +5973,7 @@ const serializeAws_json1_1DetectLabelsRequest = (input, context) => {
|
|
|
5973
5973
|
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
5974
5974
|
...(input.MaxLabels !== undefined && input.MaxLabels !== null && { MaxLabels: input.MaxLabels }),
|
|
5975
5975
|
...(input.MinConfidence !== undefined &&
|
|
5976
|
-
input.MinConfidence !== null && { MinConfidence:
|
|
5976
|
+
input.MinConfidence !== null && { MinConfidence: smithy_client_1.serializeFloat(input.MinConfidence) }),
|
|
5977
5977
|
};
|
|
5978
5978
|
};
|
|
5979
5979
|
const serializeAws_json1_1DetectModerationLabelsRequest = (input, context) => {
|
|
@@ -5985,7 +5985,7 @@ const serializeAws_json1_1DetectModerationLabelsRequest = (input, context) => {
|
|
|
5985
5985
|
...(input.Image !== undefined &&
|
|
5986
5986
|
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
5987
5987
|
...(input.MinConfidence !== undefined &&
|
|
5988
|
-
input.MinConfidence !== null && { MinConfidence:
|
|
5988
|
+
input.MinConfidence !== null && { MinConfidence: smithy_client_1.serializeFloat(input.MinConfidence) }),
|
|
5989
5989
|
};
|
|
5990
5990
|
};
|
|
5991
5991
|
const serializeAws_json1_1DetectProtectiveEquipmentRequest = (input, context) => {
|
|
@@ -6030,7 +6030,7 @@ const serializeAws_json1_1FaceSearchSettings = (input, context) => {
|
|
|
6030
6030
|
return {
|
|
6031
6031
|
...(input.CollectionId !== undefined && input.CollectionId !== null && { CollectionId: input.CollectionId }),
|
|
6032
6032
|
...(input.FaceMatchThreshold !== undefined &&
|
|
6033
|
-
input.FaceMatchThreshold !== null && { FaceMatchThreshold:
|
|
6033
|
+
input.FaceMatchThreshold !== null && { FaceMatchThreshold: smithy_client_1.serializeFloat(input.FaceMatchThreshold) }),
|
|
6034
6034
|
};
|
|
6035
6035
|
};
|
|
6036
6036
|
const serializeAws_json1_1GetCelebrityInfoRequest = (input, context) => {
|
|
@@ -6195,7 +6195,7 @@ const serializeAws_json1_1OutputConfig = (input, context) => {
|
|
|
6195
6195
|
const serializeAws_json1_1ProtectiveEquipmentSummarizationAttributes = (input, context) => {
|
|
6196
6196
|
return {
|
|
6197
6197
|
...(input.MinConfidence !== undefined &&
|
|
6198
|
-
input.MinConfidence !== null && { MinConfidence:
|
|
6198
|
+
input.MinConfidence !== null && { MinConfidence: smithy_client_1.serializeFloat(input.MinConfidence) }),
|
|
6199
6199
|
...(input.RequiredEquipmentTypes !== undefined &&
|
|
6200
6200
|
input.RequiredEquipmentTypes !== null && {
|
|
6201
6201
|
RequiredEquipmentTypes: serializeAws_json1_1ProtectiveEquipmentTypes(input.RequiredEquipmentTypes, context),
|
|
@@ -6245,7 +6245,7 @@ const serializeAws_json1_1SearchFacesByImageRequest = (input, context) => {
|
|
|
6245
6245
|
return {
|
|
6246
6246
|
...(input.CollectionId !== undefined && input.CollectionId !== null && { CollectionId: input.CollectionId }),
|
|
6247
6247
|
...(input.FaceMatchThreshold !== undefined &&
|
|
6248
|
-
input.FaceMatchThreshold !== null && { FaceMatchThreshold:
|
|
6248
|
+
input.FaceMatchThreshold !== null && { FaceMatchThreshold: smithy_client_1.serializeFloat(input.FaceMatchThreshold) }),
|
|
6249
6249
|
...(input.Image !== undefined &&
|
|
6250
6250
|
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
6251
6251
|
...(input.MaxFaces !== undefined && input.MaxFaces !== null && { MaxFaces: input.MaxFaces }),
|
|
@@ -6257,7 +6257,7 @@ const serializeAws_json1_1SearchFacesRequest = (input, context) => {
|
|
|
6257
6257
|
...(input.CollectionId !== undefined && input.CollectionId !== null && { CollectionId: input.CollectionId }),
|
|
6258
6258
|
...(input.FaceId !== undefined && input.FaceId !== null && { FaceId: input.FaceId }),
|
|
6259
6259
|
...(input.FaceMatchThreshold !== undefined &&
|
|
6260
|
-
input.FaceMatchThreshold !== null && { FaceMatchThreshold:
|
|
6260
|
+
input.FaceMatchThreshold !== null && { FaceMatchThreshold: smithy_client_1.serializeFloat(input.FaceMatchThreshold) }),
|
|
6261
6261
|
...(input.MaxFaces !== undefined && input.MaxFaces !== null && { MaxFaces: input.MaxFaces }),
|
|
6262
6262
|
};
|
|
6263
6263
|
};
|
|
@@ -6290,7 +6290,7 @@ const serializeAws_json1_1StartContentModerationRequest = (input, context) => {
|
|
|
6290
6290
|
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken }),
|
|
6291
6291
|
...(input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag }),
|
|
6292
6292
|
...(input.MinConfidence !== undefined &&
|
|
6293
|
-
input.MinConfidence !== null && { MinConfidence:
|
|
6293
|
+
input.MinConfidence !== null && { MinConfidence: smithy_client_1.serializeFloat(input.MinConfidence) }),
|
|
6294
6294
|
...(input.NotificationChannel !== undefined &&
|
|
6295
6295
|
input.NotificationChannel !== null && {
|
|
6296
6296
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
@@ -6320,7 +6320,7 @@ const serializeAws_json1_1StartFaceSearchRequest = (input, context) => {
|
|
|
6320
6320
|
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken }),
|
|
6321
6321
|
...(input.CollectionId !== undefined && input.CollectionId !== null && { CollectionId: input.CollectionId }),
|
|
6322
6322
|
...(input.FaceMatchThreshold !== undefined &&
|
|
6323
|
-
input.FaceMatchThreshold !== null && { FaceMatchThreshold:
|
|
6323
|
+
input.FaceMatchThreshold !== null && { FaceMatchThreshold: smithy_client_1.serializeFloat(input.FaceMatchThreshold) }),
|
|
6324
6324
|
...(input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag }),
|
|
6325
6325
|
...(input.NotificationChannel !== undefined &&
|
|
6326
6326
|
input.NotificationChannel !== null && {
|
|
@@ -6336,7 +6336,7 @@ const serializeAws_json1_1StartLabelDetectionRequest = (input, context) => {
|
|
|
6336
6336
|
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken }),
|
|
6337
6337
|
...(input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag }),
|
|
6338
6338
|
...(input.MinConfidence !== undefined &&
|
|
6339
|
-
input.MinConfidence !== null && { MinConfidence:
|
|
6339
|
+
input.MinConfidence !== null && { MinConfidence: smithy_client_1.serializeFloat(input.MinConfidence) }),
|
|
6340
6340
|
...(input.NotificationChannel !== undefined &&
|
|
6341
6341
|
input.NotificationChannel !== null && {
|
|
6342
6342
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
@@ -6398,7 +6398,7 @@ const serializeAws_json1_1StartSegmentDetectionRequest = (input, context) => {
|
|
|
6398
6398
|
const serializeAws_json1_1StartShotDetectionFilter = (input, context) => {
|
|
6399
6399
|
return {
|
|
6400
6400
|
...(input.MinSegmentConfidence !== undefined &&
|
|
6401
|
-
input.MinSegmentConfidence !== null && { MinSegmentConfidence:
|
|
6401
|
+
input.MinSegmentConfidence !== null && { MinSegmentConfidence: smithy_client_1.serializeFloat(input.MinSegmentConfidence) }),
|
|
6402
6402
|
};
|
|
6403
6403
|
};
|
|
6404
6404
|
const serializeAws_json1_1StartStreamProcessorRequest = (input, context) => {
|
|
@@ -6411,7 +6411,7 @@ const serializeAws_json1_1StartTechnicalCueDetectionFilter = (input, context) =>
|
|
|
6411
6411
|
...(input.BlackFrame !== undefined &&
|
|
6412
6412
|
input.BlackFrame !== null && { BlackFrame: serializeAws_json1_1BlackFrame(input.BlackFrame, context) }),
|
|
6413
6413
|
...(input.MinSegmentConfidence !== undefined &&
|
|
6414
|
-
input.MinSegmentConfidence !== null && { MinSegmentConfidence:
|
|
6414
|
+
input.MinSegmentConfidence !== null && { MinSegmentConfidence: smithy_client_1.serializeFloat(input.MinSegmentConfidence) }),
|
|
6415
6415
|
};
|
|
6416
6416
|
};
|
|
6417
6417
|
const serializeAws_json1_1StartTextDetectionFilters = (input, context) => {
|
|
@@ -6537,15 +6537,15 @@ const serializeAws_json1_1Video = (input, context) => {
|
|
|
6537
6537
|
};
|
|
6538
6538
|
const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
6539
6539
|
return {
|
|
6540
|
-
Code:
|
|
6541
|
-
Logref:
|
|
6542
|
-
Message:
|
|
6540
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
6541
|
+
Logref: smithy_client_1.expectString(output.Logref),
|
|
6542
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
6543
6543
|
};
|
|
6544
6544
|
};
|
|
6545
6545
|
const deserializeAws_json1_1AgeRange = (output, context) => {
|
|
6546
6546
|
return {
|
|
6547
|
-
High:
|
|
6548
|
-
Low:
|
|
6547
|
+
High: smithy_client_1.expectInt32(output.High),
|
|
6548
|
+
Low: smithy_client_1.expectInt32(output.Low),
|
|
6549
6549
|
};
|
|
6550
6550
|
};
|
|
6551
6551
|
const deserializeAws_json1_1Asset = (output, context) => {
|
|
@@ -6567,10 +6567,10 @@ const deserializeAws_json1_1Assets = (output, context) => {
|
|
|
6567
6567
|
};
|
|
6568
6568
|
const deserializeAws_json1_1AudioMetadata = (output, context) => {
|
|
6569
6569
|
return {
|
|
6570
|
-
Codec:
|
|
6571
|
-
DurationMillis:
|
|
6572
|
-
NumberOfChannels:
|
|
6573
|
-
SampleRate:
|
|
6570
|
+
Codec: smithy_client_1.expectString(output.Codec),
|
|
6571
|
+
DurationMillis: smithy_client_1.expectLong(output.DurationMillis),
|
|
6572
|
+
NumberOfChannels: smithy_client_1.expectLong(output.NumberOfChannels),
|
|
6573
|
+
SampleRate: smithy_client_1.expectLong(output.SampleRate),
|
|
6574
6574
|
};
|
|
6575
6575
|
};
|
|
6576
6576
|
const deserializeAws_json1_1AudioMetadataList = (output, context) => {
|
|
@@ -6585,8 +6585,8 @@ const deserializeAws_json1_1AudioMetadataList = (output, context) => {
|
|
|
6585
6585
|
};
|
|
6586
6586
|
const deserializeAws_json1_1Beard = (output, context) => {
|
|
6587
6587
|
return {
|
|
6588
|
-
Confidence:
|
|
6589
|
-
Value:
|
|
6588
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
6589
|
+
Value: smithy_client_1.expectBoolean(output.Value),
|
|
6590
6590
|
};
|
|
6591
6591
|
};
|
|
6592
6592
|
const deserializeAws_json1_1BodyParts = (output, context) => {
|
|
@@ -6601,10 +6601,10 @@ const deserializeAws_json1_1BodyParts = (output, context) => {
|
|
|
6601
6601
|
};
|
|
6602
6602
|
const deserializeAws_json1_1BoundingBox = (output, context) => {
|
|
6603
6603
|
return {
|
|
6604
|
-
Height:
|
|
6605
|
-
Left:
|
|
6606
|
-
Top:
|
|
6607
|
-
Width:
|
|
6604
|
+
Height: smithy_client_1.limitedParseFloat32(output.Height),
|
|
6605
|
+
Left: smithy_client_1.limitedParseFloat32(output.Left),
|
|
6606
|
+
Top: smithy_client_1.limitedParseFloat32(output.Top),
|
|
6607
|
+
Width: smithy_client_1.limitedParseFloat32(output.Width),
|
|
6608
6608
|
};
|
|
6609
6609
|
};
|
|
6610
6610
|
const deserializeAws_json1_1Celebrity = (output, context) => {
|
|
@@ -6612,12 +6612,12 @@ const deserializeAws_json1_1Celebrity = (output, context) => {
|
|
|
6612
6612
|
Face: output.Face !== undefined && output.Face !== null
|
|
6613
6613
|
? deserializeAws_json1_1ComparedFace(output.Face, context)
|
|
6614
6614
|
: undefined,
|
|
6615
|
-
Id:
|
|
6615
|
+
Id: smithy_client_1.expectString(output.Id),
|
|
6616
6616
|
KnownGender: output.KnownGender !== undefined && output.KnownGender !== null
|
|
6617
6617
|
? deserializeAws_json1_1KnownGender(output.KnownGender, context)
|
|
6618
6618
|
: undefined,
|
|
6619
|
-
MatchConfidence:
|
|
6620
|
-
Name:
|
|
6619
|
+
MatchConfidence: smithy_client_1.limitedParseFloat32(output.MatchConfidence),
|
|
6620
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
6621
6621
|
Urls: output.Urls !== undefined && output.Urls !== null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined,
|
|
6622
6622
|
};
|
|
6623
6623
|
};
|
|
@@ -6626,12 +6626,12 @@ const deserializeAws_json1_1CelebrityDetail = (output, context) => {
|
|
|
6626
6626
|
BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null
|
|
6627
6627
|
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6628
6628
|
: undefined,
|
|
6629
|
-
Confidence:
|
|
6629
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
6630
6630
|
Face: output.Face !== undefined && output.Face !== null
|
|
6631
6631
|
? deserializeAws_json1_1FaceDetail(output.Face, context)
|
|
6632
6632
|
: undefined,
|
|
6633
|
-
Id:
|
|
6634
|
-
Name:
|
|
6633
|
+
Id: smithy_client_1.expectString(output.Id),
|
|
6634
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
6635
6635
|
Urls: output.Urls !== undefined && output.Urls !== null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined,
|
|
6636
6636
|
};
|
|
6637
6637
|
};
|
|
@@ -6650,7 +6650,7 @@ const deserializeAws_json1_1CelebrityRecognition = (output, context) => {
|
|
|
6650
6650
|
Celebrity: output.Celebrity !== undefined && output.Celebrity !== null
|
|
6651
6651
|
? deserializeAws_json1_1CelebrityDetail(output.Celebrity, context)
|
|
6652
6652
|
: undefined,
|
|
6653
|
-
Timestamp:
|
|
6653
|
+
Timestamp: smithy_client_1.expectLong(output.Timestamp),
|
|
6654
6654
|
};
|
|
6655
6655
|
};
|
|
6656
6656
|
const deserializeAws_json1_1CelebrityRecognitions = (output, context) => {
|
|
@@ -6670,7 +6670,7 @@ const deserializeAws_json1_1CollectionIdList = (output, context) => {
|
|
|
6670
6670
|
if (entry === null) {
|
|
6671
6671
|
return null;
|
|
6672
6672
|
}
|
|
6673
|
-
return
|
|
6673
|
+
return smithy_client_1.expectString(entry);
|
|
6674
6674
|
});
|
|
6675
6675
|
};
|
|
6676
6676
|
const deserializeAws_json1_1ComparedFace = (output, context) => {
|
|
@@ -6678,7 +6678,7 @@ const deserializeAws_json1_1ComparedFace = (output, context) => {
|
|
|
6678
6678
|
BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null
|
|
6679
6679
|
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6680
6680
|
: undefined,
|
|
6681
|
-
Confidence:
|
|
6681
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
6682
6682
|
Emotions: output.Emotions !== undefined && output.Emotions !== null
|
|
6683
6683
|
? deserializeAws_json1_1Emotions(output.Emotions, context)
|
|
6684
6684
|
: undefined,
|
|
@@ -6709,7 +6709,7 @@ const deserializeAws_json1_1ComparedSourceImageFace = (output, context) => {
|
|
|
6709
6709
|
BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null
|
|
6710
6710
|
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6711
6711
|
: undefined,
|
|
6712
|
-
Confidence:
|
|
6712
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
6713
6713
|
};
|
|
6714
6714
|
};
|
|
6715
6715
|
const deserializeAws_json1_1CompareFacesMatch = (output, context) => {
|
|
@@ -6717,7 +6717,7 @@ const deserializeAws_json1_1CompareFacesMatch = (output, context) => {
|
|
|
6717
6717
|
Face: output.Face !== undefined && output.Face !== null
|
|
6718
6718
|
? deserializeAws_json1_1ComparedFace(output.Face, context)
|
|
6719
6719
|
: undefined,
|
|
6720
|
-
Similarity:
|
|
6720
|
+
Similarity: smithy_client_1.limitedParseFloat32(output.Similarity),
|
|
6721
6721
|
};
|
|
6722
6722
|
};
|
|
6723
6723
|
const deserializeAws_json1_1CompareFacesMatchList = (output, context) => {
|
|
@@ -6738,8 +6738,8 @@ const deserializeAws_json1_1CompareFacesResponse = (output, context) => {
|
|
|
6738
6738
|
SourceImageFace: output.SourceImageFace !== undefined && output.SourceImageFace !== null
|
|
6739
6739
|
? deserializeAws_json1_1ComparedSourceImageFace(output.SourceImageFace, context)
|
|
6740
6740
|
: undefined,
|
|
6741
|
-
SourceImageOrientationCorrection:
|
|
6742
|
-
TargetImageOrientationCorrection:
|
|
6741
|
+
SourceImageOrientationCorrection: smithy_client_1.expectString(output.SourceImageOrientationCorrection),
|
|
6742
|
+
TargetImageOrientationCorrection: smithy_client_1.expectString(output.TargetImageOrientationCorrection),
|
|
6743
6743
|
UnmatchedFaces: output.UnmatchedFaces !== undefined && output.UnmatchedFaces !== null
|
|
6744
6744
|
? deserializeAws_json1_1CompareFacesUnmatchList(output.UnmatchedFaces, context)
|
|
6745
6745
|
: undefined,
|
|
@@ -6760,7 +6760,7 @@ const deserializeAws_json1_1ContentModerationDetection = (output, context) => {
|
|
|
6760
6760
|
ModerationLabel: output.ModerationLabel !== undefined && output.ModerationLabel !== null
|
|
6761
6761
|
? deserializeAws_json1_1ModerationLabel(output.ModerationLabel, context)
|
|
6762
6762
|
: undefined,
|
|
6763
|
-
Timestamp:
|
|
6763
|
+
Timestamp: smithy_client_1.expectLong(output.Timestamp),
|
|
6764
6764
|
};
|
|
6765
6765
|
};
|
|
6766
6766
|
const deserializeAws_json1_1ContentModerationDetections = (output, context) => {
|
|
@@ -6775,39 +6775,39 @@ const deserializeAws_json1_1ContentModerationDetections = (output, context) => {
|
|
|
6775
6775
|
};
|
|
6776
6776
|
const deserializeAws_json1_1CoversBodyPart = (output, context) => {
|
|
6777
6777
|
return {
|
|
6778
|
-
Confidence:
|
|
6779
|
-
Value:
|
|
6778
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
6779
|
+
Value: smithy_client_1.expectBoolean(output.Value),
|
|
6780
6780
|
};
|
|
6781
6781
|
};
|
|
6782
6782
|
const deserializeAws_json1_1CreateCollectionResponse = (output, context) => {
|
|
6783
6783
|
return {
|
|
6784
|
-
CollectionArn:
|
|
6785
|
-
FaceModelVersion:
|
|
6786
|
-
StatusCode:
|
|
6784
|
+
CollectionArn: smithy_client_1.expectString(output.CollectionArn),
|
|
6785
|
+
FaceModelVersion: smithy_client_1.expectString(output.FaceModelVersion),
|
|
6786
|
+
StatusCode: smithy_client_1.expectInt32(output.StatusCode),
|
|
6787
6787
|
};
|
|
6788
6788
|
};
|
|
6789
6789
|
const deserializeAws_json1_1CreateProjectResponse = (output, context) => {
|
|
6790
6790
|
return {
|
|
6791
|
-
ProjectArn:
|
|
6791
|
+
ProjectArn: smithy_client_1.expectString(output.ProjectArn),
|
|
6792
6792
|
};
|
|
6793
6793
|
};
|
|
6794
6794
|
const deserializeAws_json1_1CreateProjectVersionResponse = (output, context) => {
|
|
6795
6795
|
return {
|
|
6796
|
-
ProjectVersionArn:
|
|
6796
|
+
ProjectVersionArn: smithy_client_1.expectString(output.ProjectVersionArn),
|
|
6797
6797
|
};
|
|
6798
6798
|
};
|
|
6799
6799
|
const deserializeAws_json1_1CreateStreamProcessorResponse = (output, context) => {
|
|
6800
6800
|
return {
|
|
6801
|
-
StreamProcessorArn:
|
|
6801
|
+
StreamProcessorArn: smithy_client_1.expectString(output.StreamProcessorArn),
|
|
6802
6802
|
};
|
|
6803
6803
|
};
|
|
6804
6804
|
const deserializeAws_json1_1CustomLabel = (output, context) => {
|
|
6805
6805
|
return {
|
|
6806
|
-
Confidence:
|
|
6806
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
6807
6807
|
Geometry: output.Geometry !== undefined && output.Geometry !== null
|
|
6808
6808
|
? deserializeAws_json1_1Geometry(output.Geometry, context)
|
|
6809
6809
|
: undefined,
|
|
6810
|
-
Name:
|
|
6810
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
6811
6811
|
};
|
|
6812
6812
|
};
|
|
6813
6813
|
const deserializeAws_json1_1CustomLabels = (output, context) => {
|
|
@@ -6822,7 +6822,7 @@ const deserializeAws_json1_1CustomLabels = (output, context) => {
|
|
|
6822
6822
|
};
|
|
6823
6823
|
const deserializeAws_json1_1DeleteCollectionResponse = (output, context) => {
|
|
6824
6824
|
return {
|
|
6825
|
-
StatusCode:
|
|
6825
|
+
StatusCode: smithy_client_1.expectInt32(output.StatusCode),
|
|
6826
6826
|
};
|
|
6827
6827
|
};
|
|
6828
6828
|
const deserializeAws_json1_1DeleteFacesResponse = (output, context) => {
|
|
@@ -6834,12 +6834,12 @@ const deserializeAws_json1_1DeleteFacesResponse = (output, context) => {
|
|
|
6834
6834
|
};
|
|
6835
6835
|
const deserializeAws_json1_1DeleteProjectResponse = (output, context) => {
|
|
6836
6836
|
return {
|
|
6837
|
-
Status:
|
|
6837
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
6838
6838
|
};
|
|
6839
6839
|
};
|
|
6840
6840
|
const deserializeAws_json1_1DeleteProjectVersionResponse = (output, context) => {
|
|
6841
6841
|
return {
|
|
6842
|
-
Status:
|
|
6842
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
6843
6843
|
};
|
|
6844
6844
|
};
|
|
6845
6845
|
const deserializeAws_json1_1DeleteStreamProcessorResponse = (output, context) => {
|
|
@@ -6847,17 +6847,17 @@ const deserializeAws_json1_1DeleteStreamProcessorResponse = (output, context) =>
|
|
|
6847
6847
|
};
|
|
6848
6848
|
const deserializeAws_json1_1DescribeCollectionResponse = (output, context) => {
|
|
6849
6849
|
return {
|
|
6850
|
-
CollectionARN:
|
|
6850
|
+
CollectionARN: smithy_client_1.expectString(output.CollectionARN),
|
|
6851
6851
|
CreationTimestamp: output.CreationTimestamp !== undefined && output.CreationTimestamp !== null
|
|
6852
|
-
?
|
|
6852
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTimestamp)))
|
|
6853
6853
|
: undefined,
|
|
6854
|
-
FaceCount:
|
|
6855
|
-
FaceModelVersion:
|
|
6854
|
+
FaceCount: smithy_client_1.expectLong(output.FaceCount),
|
|
6855
|
+
FaceModelVersion: smithy_client_1.expectString(output.FaceModelVersion),
|
|
6856
6856
|
};
|
|
6857
6857
|
};
|
|
6858
6858
|
const deserializeAws_json1_1DescribeProjectsResponse = (output, context) => {
|
|
6859
6859
|
return {
|
|
6860
|
-
NextToken:
|
|
6860
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
6861
6861
|
ProjectDescriptions: output.ProjectDescriptions !== undefined && output.ProjectDescriptions !== null
|
|
6862
6862
|
? deserializeAws_json1_1ProjectDescriptions(output.ProjectDescriptions, context)
|
|
6863
6863
|
: undefined,
|
|
@@ -6865,7 +6865,7 @@ const deserializeAws_json1_1DescribeProjectsResponse = (output, context) => {
|
|
|
6865
6865
|
};
|
|
6866
6866
|
const deserializeAws_json1_1DescribeProjectVersionsResponse = (output, context) => {
|
|
6867
6867
|
return {
|
|
6868
|
-
NextToken:
|
|
6868
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
6869
6869
|
ProjectVersionDescriptions: output.ProjectVersionDescriptions !== undefined && output.ProjectVersionDescriptions !== null
|
|
6870
6870
|
? deserializeAws_json1_1ProjectVersionDescriptions(output.ProjectVersionDescriptions, context)
|
|
6871
6871
|
: undefined,
|
|
@@ -6874,25 +6874,25 @@ const deserializeAws_json1_1DescribeProjectVersionsResponse = (output, context)
|
|
|
6874
6874
|
const deserializeAws_json1_1DescribeStreamProcessorResponse = (output, context) => {
|
|
6875
6875
|
return {
|
|
6876
6876
|
CreationTimestamp: output.CreationTimestamp !== undefined && output.CreationTimestamp !== null
|
|
6877
|
-
?
|
|
6877
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTimestamp)))
|
|
6878
6878
|
: undefined,
|
|
6879
6879
|
Input: output.Input !== undefined && output.Input !== null
|
|
6880
6880
|
? deserializeAws_json1_1StreamProcessorInput(output.Input, context)
|
|
6881
6881
|
: undefined,
|
|
6882
6882
|
LastUpdateTimestamp: output.LastUpdateTimestamp !== undefined && output.LastUpdateTimestamp !== null
|
|
6883
|
-
?
|
|
6883
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdateTimestamp)))
|
|
6884
6884
|
: undefined,
|
|
6885
|
-
Name:
|
|
6885
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
6886
6886
|
Output: output.Output !== undefined && output.Output !== null
|
|
6887
6887
|
? deserializeAws_json1_1StreamProcessorOutput(output.Output, context)
|
|
6888
6888
|
: undefined,
|
|
6889
|
-
RoleArn:
|
|
6889
|
+
RoleArn: smithy_client_1.expectString(output.RoleArn),
|
|
6890
6890
|
Settings: output.Settings !== undefined && output.Settings !== null
|
|
6891
6891
|
? deserializeAws_json1_1StreamProcessorSettings(output.Settings, context)
|
|
6892
6892
|
: undefined,
|
|
6893
|
-
Status:
|
|
6894
|
-
StatusMessage:
|
|
6895
|
-
StreamProcessorArn:
|
|
6893
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
6894
|
+
StatusMessage: smithy_client_1.expectString(output.StatusMessage),
|
|
6895
|
+
StreamProcessorArn: smithy_client_1.expectString(output.StreamProcessorArn),
|
|
6896
6896
|
};
|
|
6897
6897
|
};
|
|
6898
6898
|
const deserializeAws_json1_1DetectCustomLabelsResponse = (output, context) => {
|
|
@@ -6907,16 +6907,16 @@ const deserializeAws_json1_1DetectFacesResponse = (output, context) => {
|
|
|
6907
6907
|
FaceDetails: output.FaceDetails !== undefined && output.FaceDetails !== null
|
|
6908
6908
|
? deserializeAws_json1_1FaceDetailList(output.FaceDetails, context)
|
|
6909
6909
|
: undefined,
|
|
6910
|
-
OrientationCorrection:
|
|
6910
|
+
OrientationCorrection: smithy_client_1.expectString(output.OrientationCorrection),
|
|
6911
6911
|
};
|
|
6912
6912
|
};
|
|
6913
6913
|
const deserializeAws_json1_1DetectLabelsResponse = (output, context) => {
|
|
6914
6914
|
return {
|
|
6915
|
-
LabelModelVersion:
|
|
6915
|
+
LabelModelVersion: smithy_client_1.expectString(output.LabelModelVersion),
|
|
6916
6916
|
Labels: output.Labels !== undefined && output.Labels !== null
|
|
6917
6917
|
? deserializeAws_json1_1Labels(output.Labels, context)
|
|
6918
6918
|
: undefined,
|
|
6919
|
-
OrientationCorrection:
|
|
6919
|
+
OrientationCorrection: smithy_client_1.expectString(output.OrientationCorrection),
|
|
6920
6920
|
};
|
|
6921
6921
|
};
|
|
6922
6922
|
const deserializeAws_json1_1DetectModerationLabelsResponse = (output, context) => {
|
|
@@ -6927,7 +6927,7 @@ const deserializeAws_json1_1DetectModerationLabelsResponse = (output, context) =
|
|
|
6927
6927
|
ModerationLabels: output.ModerationLabels !== undefined && output.ModerationLabels !== null
|
|
6928
6928
|
? deserializeAws_json1_1ModerationLabels(output.ModerationLabels, context)
|
|
6929
6929
|
: undefined,
|
|
6930
|
-
ModerationModelVersion:
|
|
6930
|
+
ModerationModelVersion: smithy_client_1.expectString(output.ModerationModelVersion),
|
|
6931
6931
|
};
|
|
6932
6932
|
};
|
|
6933
6933
|
const deserializeAws_json1_1DetectProtectiveEquipmentResponse = (output, context) => {
|
|
@@ -6935,7 +6935,7 @@ const deserializeAws_json1_1DetectProtectiveEquipmentResponse = (output, context
|
|
|
6935
6935
|
Persons: output.Persons !== undefined && output.Persons !== null
|
|
6936
6936
|
? deserializeAws_json1_1ProtectiveEquipmentPersons(output.Persons, context)
|
|
6937
6937
|
: undefined,
|
|
6938
|
-
ProtectiveEquipmentModelVersion:
|
|
6938
|
+
ProtectiveEquipmentModelVersion: smithy_client_1.expectString(output.ProtectiveEquipmentModelVersion),
|
|
6939
6939
|
Summary: output.Summary !== undefined && output.Summary !== null
|
|
6940
6940
|
? deserializeAws_json1_1ProtectiveEquipmentSummary(output.Summary, context)
|
|
6941
6941
|
: undefined,
|
|
@@ -6946,13 +6946,13 @@ const deserializeAws_json1_1DetectTextResponse = (output, context) => {
|
|
|
6946
6946
|
TextDetections: output.TextDetections !== undefined && output.TextDetections !== null
|
|
6947
6947
|
? deserializeAws_json1_1TextDetectionList(output.TextDetections, context)
|
|
6948
6948
|
: undefined,
|
|
6949
|
-
TextModelVersion:
|
|
6949
|
+
TextModelVersion: smithy_client_1.expectString(output.TextModelVersion),
|
|
6950
6950
|
};
|
|
6951
6951
|
};
|
|
6952
6952
|
const deserializeAws_json1_1Emotion = (output, context) => {
|
|
6953
6953
|
return {
|
|
6954
|
-
Confidence:
|
|
6955
|
-
Type:
|
|
6954
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
6955
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
6956
6956
|
};
|
|
6957
6957
|
};
|
|
6958
6958
|
const deserializeAws_json1_1Emotions = (output, context) => {
|
|
@@ -6970,11 +6970,11 @@ const deserializeAws_json1_1EquipmentDetection = (output, context) => {
|
|
|
6970
6970
|
BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null
|
|
6971
6971
|
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6972
6972
|
: undefined,
|
|
6973
|
-
Confidence:
|
|
6973
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
6974
6974
|
CoversBodyPart: output.CoversBodyPart !== undefined && output.CoversBodyPart !== null
|
|
6975
6975
|
? deserializeAws_json1_1CoversBodyPart(output.CoversBodyPart, context)
|
|
6976
6976
|
: undefined,
|
|
6977
|
-
Type:
|
|
6977
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
6978
6978
|
};
|
|
6979
6979
|
};
|
|
6980
6980
|
const deserializeAws_json1_1EquipmentDetections = (output, context) => {
|
|
@@ -6989,7 +6989,7 @@ const deserializeAws_json1_1EquipmentDetections = (output, context) => {
|
|
|
6989
6989
|
};
|
|
6990
6990
|
const deserializeAws_json1_1EvaluationResult = (output, context) => {
|
|
6991
6991
|
return {
|
|
6992
|
-
F1Score:
|
|
6992
|
+
F1Score: smithy_client_1.limitedParseFloat32(output.F1Score),
|
|
6993
6993
|
Summary: output.Summary !== undefined && output.Summary !== null
|
|
6994
6994
|
? deserializeAws_json1_1Summary(output.Summary, context)
|
|
6995
6995
|
: undefined,
|
|
@@ -6997,14 +6997,14 @@ const deserializeAws_json1_1EvaluationResult = (output, context) => {
|
|
|
6997
6997
|
};
|
|
6998
6998
|
const deserializeAws_json1_1Eyeglasses = (output, context) => {
|
|
6999
6999
|
return {
|
|
7000
|
-
Confidence:
|
|
7001
|
-
Value:
|
|
7000
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
7001
|
+
Value: smithy_client_1.expectBoolean(output.Value),
|
|
7002
7002
|
};
|
|
7003
7003
|
};
|
|
7004
7004
|
const deserializeAws_json1_1EyeOpen = (output, context) => {
|
|
7005
7005
|
return {
|
|
7006
|
-
Confidence:
|
|
7007
|
-
Value:
|
|
7006
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
7007
|
+
Value: smithy_client_1.expectBoolean(output.Value),
|
|
7008
7008
|
};
|
|
7009
7009
|
};
|
|
7010
7010
|
const deserializeAws_json1_1Face = (output, context) => {
|
|
@@ -7012,10 +7012,10 @@ const deserializeAws_json1_1Face = (output, context) => {
|
|
|
7012
7012
|
BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null
|
|
7013
7013
|
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
7014
7014
|
: undefined,
|
|
7015
|
-
Confidence:
|
|
7016
|
-
ExternalImageId:
|
|
7017
|
-
FaceId:
|
|
7018
|
-
ImageId:
|
|
7015
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
7016
|
+
ExternalImageId: smithy_client_1.expectString(output.ExternalImageId),
|
|
7017
|
+
FaceId: smithy_client_1.expectString(output.FaceId),
|
|
7018
|
+
ImageId: smithy_client_1.expectString(output.ImageId),
|
|
7019
7019
|
};
|
|
7020
7020
|
};
|
|
7021
7021
|
const deserializeAws_json1_1FaceDetail = (output, context) => {
|
|
@@ -7029,7 +7029,7 @@ const deserializeAws_json1_1FaceDetail = (output, context) => {
|
|
|
7029
7029
|
BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null
|
|
7030
7030
|
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
7031
7031
|
: undefined,
|
|
7032
|
-
Confidence:
|
|
7032
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
7033
7033
|
Emotions: output.Emotions !== undefined && output.Emotions !== null
|
|
7034
7034
|
? deserializeAws_json1_1Emotions(output.Emotions, context)
|
|
7035
7035
|
: undefined,
|
|
@@ -7078,7 +7078,7 @@ const deserializeAws_json1_1FaceDetection = (output, context) => {
|
|
|
7078
7078
|
Face: output.Face !== undefined && output.Face !== null
|
|
7079
7079
|
? deserializeAws_json1_1FaceDetail(output.Face, context)
|
|
7080
7080
|
: undefined,
|
|
7081
|
-
Timestamp:
|
|
7081
|
+
Timestamp: smithy_client_1.expectLong(output.Timestamp),
|
|
7082
7082
|
};
|
|
7083
7083
|
};
|
|
7084
7084
|
const deserializeAws_json1_1FaceDetections = (output, context) => {
|
|
@@ -7098,7 +7098,7 @@ const deserializeAws_json1_1FaceIdList = (output, context) => {
|
|
|
7098
7098
|
if (entry === null) {
|
|
7099
7099
|
return null;
|
|
7100
7100
|
}
|
|
7101
|
-
return
|
|
7101
|
+
return smithy_client_1.expectString(entry);
|
|
7102
7102
|
});
|
|
7103
7103
|
};
|
|
7104
7104
|
const deserializeAws_json1_1FaceList = (output, context) => {
|
|
@@ -7114,7 +7114,7 @@ const deserializeAws_json1_1FaceList = (output, context) => {
|
|
|
7114
7114
|
const deserializeAws_json1_1FaceMatch = (output, context) => {
|
|
7115
7115
|
return {
|
|
7116
7116
|
Face: output.Face !== undefined && output.Face !== null ? deserializeAws_json1_1Face(output.Face, context) : undefined,
|
|
7117
|
-
Similarity:
|
|
7117
|
+
Similarity: smithy_client_1.limitedParseFloat32(output.Similarity),
|
|
7118
7118
|
};
|
|
7119
7119
|
};
|
|
7120
7120
|
const deserializeAws_json1_1FaceMatchList = (output, context) => {
|
|
@@ -7134,7 +7134,7 @@ const deserializeAws_json1_1FaceModelVersionList = (output, context) => {
|
|
|
7134
7134
|
if (entry === null) {
|
|
7135
7135
|
return null;
|
|
7136
7136
|
}
|
|
7137
|
-
return
|
|
7137
|
+
return smithy_client_1.expectString(entry);
|
|
7138
7138
|
});
|
|
7139
7139
|
};
|
|
7140
7140
|
const deserializeAws_json1_1FaceRecord = (output, context) => {
|
|
@@ -7157,14 +7157,14 @@ const deserializeAws_json1_1FaceRecordList = (output, context) => {
|
|
|
7157
7157
|
};
|
|
7158
7158
|
const deserializeAws_json1_1FaceSearchSettings = (output, context) => {
|
|
7159
7159
|
return {
|
|
7160
|
-
CollectionId:
|
|
7161
|
-
FaceMatchThreshold:
|
|
7160
|
+
CollectionId: smithy_client_1.expectString(output.CollectionId),
|
|
7161
|
+
FaceMatchThreshold: smithy_client_1.limitedParseFloat32(output.FaceMatchThreshold),
|
|
7162
7162
|
};
|
|
7163
7163
|
};
|
|
7164
7164
|
const deserializeAws_json1_1Gender = (output, context) => {
|
|
7165
7165
|
return {
|
|
7166
|
-
Confidence:
|
|
7167
|
-
Value:
|
|
7166
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
7167
|
+
Value: smithy_client_1.expectString(output.Value),
|
|
7168
7168
|
};
|
|
7169
7169
|
};
|
|
7170
7170
|
const deserializeAws_json1_1Geometry = (output, context) => {
|
|
@@ -7182,7 +7182,7 @@ const deserializeAws_json1_1GetCelebrityInfoResponse = (output, context) => {
|
|
|
7182
7182
|
KnownGender: output.KnownGender !== undefined && output.KnownGender !== null
|
|
7183
7183
|
? deserializeAws_json1_1KnownGender(output.KnownGender, context)
|
|
7184
7184
|
: undefined,
|
|
7185
|
-
Name:
|
|
7185
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
7186
7186
|
Urls: output.Urls !== undefined && output.Urls !== null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined,
|
|
7187
7187
|
};
|
|
7188
7188
|
};
|
|
@@ -7191,9 +7191,9 @@ const deserializeAws_json1_1GetCelebrityRecognitionResponse = (output, context)
|
|
|
7191
7191
|
Celebrities: output.Celebrities !== undefined && output.Celebrities !== null
|
|
7192
7192
|
? deserializeAws_json1_1CelebrityRecognitions(output.Celebrities, context)
|
|
7193
7193
|
: undefined,
|
|
7194
|
-
JobStatus:
|
|
7195
|
-
NextToken:
|
|
7196
|
-
StatusMessage:
|
|
7194
|
+
JobStatus: smithy_client_1.expectString(output.JobStatus),
|
|
7195
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
7196
|
+
StatusMessage: smithy_client_1.expectString(output.StatusMessage),
|
|
7197
7197
|
VideoMetadata: output.VideoMetadata !== undefined && output.VideoMetadata !== null
|
|
7198
7198
|
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
7199
7199
|
: undefined,
|
|
@@ -7201,13 +7201,13 @@ const deserializeAws_json1_1GetCelebrityRecognitionResponse = (output, context)
|
|
|
7201
7201
|
};
|
|
7202
7202
|
const deserializeAws_json1_1GetContentModerationResponse = (output, context) => {
|
|
7203
7203
|
return {
|
|
7204
|
-
JobStatus:
|
|
7204
|
+
JobStatus: smithy_client_1.expectString(output.JobStatus),
|
|
7205
7205
|
ModerationLabels: output.ModerationLabels !== undefined && output.ModerationLabels !== null
|
|
7206
7206
|
? deserializeAws_json1_1ContentModerationDetections(output.ModerationLabels, context)
|
|
7207
7207
|
: undefined,
|
|
7208
|
-
ModerationModelVersion:
|
|
7209
|
-
NextToken:
|
|
7210
|
-
StatusMessage:
|
|
7208
|
+
ModerationModelVersion: smithy_client_1.expectString(output.ModerationModelVersion),
|
|
7209
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
7210
|
+
StatusMessage: smithy_client_1.expectString(output.StatusMessage),
|
|
7211
7211
|
VideoMetadata: output.VideoMetadata !== undefined && output.VideoMetadata !== null
|
|
7212
7212
|
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
7213
7213
|
: undefined,
|
|
@@ -7218,9 +7218,9 @@ const deserializeAws_json1_1GetFaceDetectionResponse = (output, context) => {
|
|
|
7218
7218
|
Faces: output.Faces !== undefined && output.Faces !== null
|
|
7219
7219
|
? deserializeAws_json1_1FaceDetections(output.Faces, context)
|
|
7220
7220
|
: undefined,
|
|
7221
|
-
JobStatus:
|
|
7222
|
-
NextToken:
|
|
7223
|
-
StatusMessage:
|
|
7221
|
+
JobStatus: smithy_client_1.expectString(output.JobStatus),
|
|
7222
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
7223
|
+
StatusMessage: smithy_client_1.expectString(output.StatusMessage),
|
|
7224
7224
|
VideoMetadata: output.VideoMetadata !== undefined && output.VideoMetadata !== null
|
|
7225
7225
|
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
7226
7226
|
: undefined,
|
|
@@ -7228,12 +7228,12 @@ const deserializeAws_json1_1GetFaceDetectionResponse = (output, context) => {
|
|
|
7228
7228
|
};
|
|
7229
7229
|
const deserializeAws_json1_1GetFaceSearchResponse = (output, context) => {
|
|
7230
7230
|
return {
|
|
7231
|
-
JobStatus:
|
|
7232
|
-
NextToken:
|
|
7231
|
+
JobStatus: smithy_client_1.expectString(output.JobStatus),
|
|
7232
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
7233
7233
|
Persons: output.Persons !== undefined && output.Persons !== null
|
|
7234
7234
|
? deserializeAws_json1_1PersonMatches(output.Persons, context)
|
|
7235
7235
|
: undefined,
|
|
7236
|
-
StatusMessage:
|
|
7236
|
+
StatusMessage: smithy_client_1.expectString(output.StatusMessage),
|
|
7237
7237
|
VideoMetadata: output.VideoMetadata !== undefined && output.VideoMetadata !== null
|
|
7238
7238
|
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
7239
7239
|
: undefined,
|
|
@@ -7241,13 +7241,13 @@ const deserializeAws_json1_1GetFaceSearchResponse = (output, context) => {
|
|
|
7241
7241
|
};
|
|
7242
7242
|
const deserializeAws_json1_1GetLabelDetectionResponse = (output, context) => {
|
|
7243
7243
|
return {
|
|
7244
|
-
JobStatus:
|
|
7245
|
-
LabelModelVersion:
|
|
7244
|
+
JobStatus: smithy_client_1.expectString(output.JobStatus),
|
|
7245
|
+
LabelModelVersion: smithy_client_1.expectString(output.LabelModelVersion),
|
|
7246
7246
|
Labels: output.Labels !== undefined && output.Labels !== null
|
|
7247
7247
|
? deserializeAws_json1_1LabelDetections(output.Labels, context)
|
|
7248
7248
|
: undefined,
|
|
7249
|
-
NextToken:
|
|
7250
|
-
StatusMessage:
|
|
7249
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
7250
|
+
StatusMessage: smithy_client_1.expectString(output.StatusMessage),
|
|
7251
7251
|
VideoMetadata: output.VideoMetadata !== undefined && output.VideoMetadata !== null
|
|
7252
7252
|
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
7253
7253
|
: undefined,
|
|
@@ -7255,12 +7255,12 @@ const deserializeAws_json1_1GetLabelDetectionResponse = (output, context) => {
|
|
|
7255
7255
|
};
|
|
7256
7256
|
const deserializeAws_json1_1GetPersonTrackingResponse = (output, context) => {
|
|
7257
7257
|
return {
|
|
7258
|
-
JobStatus:
|
|
7259
|
-
NextToken:
|
|
7258
|
+
JobStatus: smithy_client_1.expectString(output.JobStatus),
|
|
7259
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
7260
7260
|
Persons: output.Persons !== undefined && output.Persons !== null
|
|
7261
7261
|
? deserializeAws_json1_1PersonDetections(output.Persons, context)
|
|
7262
7262
|
: undefined,
|
|
7263
|
-
StatusMessage:
|
|
7263
|
+
StatusMessage: smithy_client_1.expectString(output.StatusMessage),
|
|
7264
7264
|
VideoMetadata: output.VideoMetadata !== undefined && output.VideoMetadata !== null
|
|
7265
7265
|
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
7266
7266
|
: undefined,
|
|
@@ -7271,15 +7271,15 @@ const deserializeAws_json1_1GetSegmentDetectionResponse = (output, context) => {
|
|
|
7271
7271
|
AudioMetadata: output.AudioMetadata !== undefined && output.AudioMetadata !== null
|
|
7272
7272
|
? deserializeAws_json1_1AudioMetadataList(output.AudioMetadata, context)
|
|
7273
7273
|
: undefined,
|
|
7274
|
-
JobStatus:
|
|
7275
|
-
NextToken:
|
|
7274
|
+
JobStatus: smithy_client_1.expectString(output.JobStatus),
|
|
7275
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
7276
7276
|
Segments: output.Segments !== undefined && output.Segments !== null
|
|
7277
7277
|
? deserializeAws_json1_1SegmentDetections(output.Segments, context)
|
|
7278
7278
|
: undefined,
|
|
7279
7279
|
SelectedSegmentTypes: output.SelectedSegmentTypes !== undefined && output.SelectedSegmentTypes !== null
|
|
7280
7280
|
? deserializeAws_json1_1SegmentTypesInfo(output.SelectedSegmentTypes, context)
|
|
7281
7281
|
: undefined,
|
|
7282
|
-
StatusMessage:
|
|
7282
|
+
StatusMessage: smithy_client_1.expectString(output.StatusMessage),
|
|
7283
7283
|
VideoMetadata: output.VideoMetadata !== undefined && output.VideoMetadata !== null
|
|
7284
7284
|
? deserializeAws_json1_1VideoMetadataList(output.VideoMetadata, context)
|
|
7285
7285
|
: undefined,
|
|
@@ -7287,13 +7287,13 @@ const deserializeAws_json1_1GetSegmentDetectionResponse = (output, context) => {
|
|
|
7287
7287
|
};
|
|
7288
7288
|
const deserializeAws_json1_1GetTextDetectionResponse = (output, context) => {
|
|
7289
7289
|
return {
|
|
7290
|
-
JobStatus:
|
|
7291
|
-
NextToken:
|
|
7292
|
-
StatusMessage:
|
|
7290
|
+
JobStatus: smithy_client_1.expectString(output.JobStatus),
|
|
7291
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
7292
|
+
StatusMessage: smithy_client_1.expectString(output.StatusMessage),
|
|
7293
7293
|
TextDetections: output.TextDetections !== undefined && output.TextDetections !== null
|
|
7294
7294
|
? deserializeAws_json1_1TextDetectionResults(output.TextDetections, context)
|
|
7295
7295
|
: undefined,
|
|
7296
|
-
TextModelVersion:
|
|
7296
|
+
TextModelVersion: smithy_client_1.expectString(output.TextModelVersion),
|
|
7297
7297
|
VideoMetadata: output.VideoMetadata !== undefined && output.VideoMetadata !== null
|
|
7298
7298
|
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
7299
7299
|
: undefined,
|
|
@@ -7315,7 +7315,7 @@ const deserializeAws_json1_1HumanLoopActivationOutput = (output, context) => {
|
|
|
7315
7315
|
HumanLoopActivationReasons: output.HumanLoopActivationReasons !== undefined && output.HumanLoopActivationReasons !== null
|
|
7316
7316
|
? deserializeAws_json1_1HumanLoopActivationReasons(output.HumanLoopActivationReasons, context)
|
|
7317
7317
|
: undefined,
|
|
7318
|
-
HumanLoopArn:
|
|
7318
|
+
HumanLoopArn: smithy_client_1.expectString(output.HumanLoopArn),
|
|
7319
7319
|
};
|
|
7320
7320
|
};
|
|
7321
7321
|
const deserializeAws_json1_1HumanLoopActivationReasons = (output, context) => {
|
|
@@ -7325,46 +7325,46 @@ const deserializeAws_json1_1HumanLoopActivationReasons = (output, context) => {
|
|
|
7325
7325
|
if (entry === null) {
|
|
7326
7326
|
return null;
|
|
7327
7327
|
}
|
|
7328
|
-
return
|
|
7328
|
+
return smithy_client_1.expectString(entry);
|
|
7329
7329
|
});
|
|
7330
7330
|
};
|
|
7331
7331
|
const deserializeAws_json1_1HumanLoopQuotaExceededException = (output, context) => {
|
|
7332
7332
|
return {
|
|
7333
|
-
Code:
|
|
7334
|
-
Logref:
|
|
7335
|
-
Message:
|
|
7336
|
-
QuotaCode:
|
|
7337
|
-
ResourceType:
|
|
7338
|
-
ServiceCode:
|
|
7333
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
7334
|
+
Logref: smithy_client_1.expectString(output.Logref),
|
|
7335
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
7336
|
+
QuotaCode: smithy_client_1.expectString(output.QuotaCode),
|
|
7337
|
+
ResourceType: smithy_client_1.expectString(output.ResourceType),
|
|
7338
|
+
ServiceCode: smithy_client_1.expectString(output.ServiceCode),
|
|
7339
7339
|
};
|
|
7340
7340
|
};
|
|
7341
7341
|
const deserializeAws_json1_1IdempotentParameterMismatchException = (output, context) => {
|
|
7342
7342
|
return {
|
|
7343
|
-
Code:
|
|
7344
|
-
Logref:
|
|
7345
|
-
Message:
|
|
7343
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
7344
|
+
Logref: smithy_client_1.expectString(output.Logref),
|
|
7345
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
7346
7346
|
};
|
|
7347
7347
|
};
|
|
7348
7348
|
const deserializeAws_json1_1ImageQuality = (output, context) => {
|
|
7349
7349
|
return {
|
|
7350
|
-
Brightness:
|
|
7351
|
-
Sharpness:
|
|
7350
|
+
Brightness: smithy_client_1.limitedParseFloat32(output.Brightness),
|
|
7351
|
+
Sharpness: smithy_client_1.limitedParseFloat32(output.Sharpness),
|
|
7352
7352
|
};
|
|
7353
7353
|
};
|
|
7354
7354
|
const deserializeAws_json1_1ImageTooLargeException = (output, context) => {
|
|
7355
7355
|
return {
|
|
7356
|
-
Code:
|
|
7357
|
-
Logref:
|
|
7358
|
-
Message:
|
|
7356
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
7357
|
+
Logref: smithy_client_1.expectString(output.Logref),
|
|
7358
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
7359
7359
|
};
|
|
7360
7360
|
};
|
|
7361
7361
|
const deserializeAws_json1_1IndexFacesResponse = (output, context) => {
|
|
7362
7362
|
return {
|
|
7363
|
-
FaceModelVersion:
|
|
7363
|
+
FaceModelVersion: smithy_client_1.expectString(output.FaceModelVersion),
|
|
7364
7364
|
FaceRecords: output.FaceRecords !== undefined && output.FaceRecords !== null
|
|
7365
7365
|
? deserializeAws_json1_1FaceRecordList(output.FaceRecords, context)
|
|
7366
7366
|
: undefined,
|
|
7367
|
-
OrientationCorrection:
|
|
7367
|
+
OrientationCorrection: smithy_client_1.expectString(output.OrientationCorrection),
|
|
7368
7368
|
UnindexedFaces: output.UnindexedFaces !== undefined && output.UnindexedFaces !== null
|
|
7369
7369
|
? deserializeAws_json1_1UnindexedFaces(output.UnindexedFaces, context)
|
|
7370
7370
|
: undefined,
|
|
@@ -7375,7 +7375,7 @@ const deserializeAws_json1_1Instance = (output, context) => {
|
|
|
7375
7375
|
BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null
|
|
7376
7376
|
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
7377
7377
|
: undefined,
|
|
7378
|
-
Confidence:
|
|
7378
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
7379
7379
|
};
|
|
7380
7380
|
};
|
|
7381
7381
|
const deserializeAws_json1_1Instances = (output, context) => {
|
|
@@ -7390,61 +7390,61 @@ const deserializeAws_json1_1Instances = (output, context) => {
|
|
|
7390
7390
|
};
|
|
7391
7391
|
const deserializeAws_json1_1InternalServerError = (output, context) => {
|
|
7392
7392
|
return {
|
|
7393
|
-
Code:
|
|
7394
|
-
Logref:
|
|
7395
|
-
Message:
|
|
7393
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
7394
|
+
Logref: smithy_client_1.expectString(output.Logref),
|
|
7395
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
7396
7396
|
};
|
|
7397
7397
|
};
|
|
7398
7398
|
const deserializeAws_json1_1InvalidImageFormatException = (output, context) => {
|
|
7399
7399
|
return {
|
|
7400
|
-
Code:
|
|
7401
|
-
Logref:
|
|
7402
|
-
Message:
|
|
7400
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
7401
|
+
Logref: smithy_client_1.expectString(output.Logref),
|
|
7402
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
7403
7403
|
};
|
|
7404
7404
|
};
|
|
7405
7405
|
const deserializeAws_json1_1InvalidPaginationTokenException = (output, context) => {
|
|
7406
7406
|
return {
|
|
7407
|
-
Code:
|
|
7408
|
-
Logref:
|
|
7409
|
-
Message:
|
|
7407
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
7408
|
+
Logref: smithy_client_1.expectString(output.Logref),
|
|
7409
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
7410
7410
|
};
|
|
7411
7411
|
};
|
|
7412
7412
|
const deserializeAws_json1_1InvalidParameterException = (output, context) => {
|
|
7413
7413
|
return {
|
|
7414
|
-
Code:
|
|
7415
|
-
Logref:
|
|
7416
|
-
Message:
|
|
7414
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
7415
|
+
Logref: smithy_client_1.expectString(output.Logref),
|
|
7416
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
7417
7417
|
};
|
|
7418
7418
|
};
|
|
7419
7419
|
const deserializeAws_json1_1InvalidS3ObjectException = (output, context) => {
|
|
7420
7420
|
return {
|
|
7421
|
-
Code:
|
|
7422
|
-
Logref:
|
|
7423
|
-
Message:
|
|
7421
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
7422
|
+
Logref: smithy_client_1.expectString(output.Logref),
|
|
7423
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
7424
7424
|
};
|
|
7425
7425
|
};
|
|
7426
7426
|
const deserializeAws_json1_1KinesisDataStream = (output, context) => {
|
|
7427
7427
|
return {
|
|
7428
|
-
Arn:
|
|
7428
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
7429
7429
|
};
|
|
7430
7430
|
};
|
|
7431
7431
|
const deserializeAws_json1_1KinesisVideoStream = (output, context) => {
|
|
7432
7432
|
return {
|
|
7433
|
-
Arn:
|
|
7433
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
7434
7434
|
};
|
|
7435
7435
|
};
|
|
7436
7436
|
const deserializeAws_json1_1KnownGender = (output, context) => {
|
|
7437
7437
|
return {
|
|
7438
|
-
Type:
|
|
7438
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
7439
7439
|
};
|
|
7440
7440
|
};
|
|
7441
7441
|
const deserializeAws_json1_1Label = (output, context) => {
|
|
7442
7442
|
return {
|
|
7443
|
-
Confidence:
|
|
7443
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
7444
7444
|
Instances: output.Instances !== undefined && output.Instances !== null
|
|
7445
7445
|
? deserializeAws_json1_1Instances(output.Instances, context)
|
|
7446
7446
|
: undefined,
|
|
7447
|
-
Name:
|
|
7447
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
7448
7448
|
Parents: output.Parents !== undefined && output.Parents !== null
|
|
7449
7449
|
? deserializeAws_json1_1Parents(output.Parents, context)
|
|
7450
7450
|
: undefined,
|
|
@@ -7455,7 +7455,7 @@ const deserializeAws_json1_1LabelDetection = (output, context) => {
|
|
|
7455
7455
|
Label: output.Label !== undefined && output.Label !== null
|
|
7456
7456
|
? deserializeAws_json1_1Label(output.Label, context)
|
|
7457
7457
|
: undefined,
|
|
7458
|
-
Timestamp:
|
|
7458
|
+
Timestamp: smithy_client_1.expectLong(output.Timestamp),
|
|
7459
7459
|
};
|
|
7460
7460
|
};
|
|
7461
7461
|
const deserializeAws_json1_1LabelDetections = (output, context) => {
|
|
@@ -7480,9 +7480,9 @@ const deserializeAws_json1_1Labels = (output, context) => {
|
|
|
7480
7480
|
};
|
|
7481
7481
|
const deserializeAws_json1_1Landmark = (output, context) => {
|
|
7482
7482
|
return {
|
|
7483
|
-
Type:
|
|
7484
|
-
X:
|
|
7485
|
-
Y:
|
|
7483
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
7484
|
+
X: smithy_client_1.limitedParseFloat32(output.X),
|
|
7485
|
+
Y: smithy_client_1.limitedParseFloat32(output.Y),
|
|
7486
7486
|
};
|
|
7487
7487
|
};
|
|
7488
7488
|
const deserializeAws_json1_1Landmarks = (output, context) => {
|
|
@@ -7497,9 +7497,9 @@ const deserializeAws_json1_1Landmarks = (output, context) => {
|
|
|
7497
7497
|
};
|
|
7498
7498
|
const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
7499
7499
|
return {
|
|
7500
|
-
Code:
|
|
7501
|
-
Logref:
|
|
7502
|
-
Message:
|
|
7500
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
7501
|
+
Logref: smithy_client_1.expectString(output.Logref),
|
|
7502
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
7503
7503
|
};
|
|
7504
7504
|
};
|
|
7505
7505
|
const deserializeAws_json1_1ListCollectionsResponse = (output, context) => {
|
|
@@ -7510,21 +7510,21 @@ const deserializeAws_json1_1ListCollectionsResponse = (output, context) => {
|
|
|
7510
7510
|
FaceModelVersions: output.FaceModelVersions !== undefined && output.FaceModelVersions !== null
|
|
7511
7511
|
? deserializeAws_json1_1FaceModelVersionList(output.FaceModelVersions, context)
|
|
7512
7512
|
: undefined,
|
|
7513
|
-
NextToken:
|
|
7513
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
7514
7514
|
};
|
|
7515
7515
|
};
|
|
7516
7516
|
const deserializeAws_json1_1ListFacesResponse = (output, context) => {
|
|
7517
7517
|
return {
|
|
7518
|
-
FaceModelVersion:
|
|
7518
|
+
FaceModelVersion: smithy_client_1.expectString(output.FaceModelVersion),
|
|
7519
7519
|
Faces: output.Faces !== undefined && output.Faces !== null
|
|
7520
7520
|
? deserializeAws_json1_1FaceList(output.Faces, context)
|
|
7521
7521
|
: undefined,
|
|
7522
|
-
NextToken:
|
|
7522
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
7523
7523
|
};
|
|
7524
7524
|
};
|
|
7525
7525
|
const deserializeAws_json1_1ListStreamProcessorsResponse = (output, context) => {
|
|
7526
7526
|
return {
|
|
7527
|
-
NextToken:
|
|
7527
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
7528
7528
|
StreamProcessors: output.StreamProcessors !== undefined && output.StreamProcessors !== null
|
|
7529
7529
|
? deserializeAws_json1_1StreamProcessorList(output.StreamProcessors, context)
|
|
7530
7530
|
: undefined,
|
|
@@ -7539,9 +7539,9 @@ const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
|
7539
7539
|
};
|
|
7540
7540
|
const deserializeAws_json1_1ModerationLabel = (output, context) => {
|
|
7541
7541
|
return {
|
|
7542
|
-
Confidence:
|
|
7543
|
-
Name:
|
|
7544
|
-
ParentName:
|
|
7542
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
7543
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
7544
|
+
ParentName: smithy_client_1.expectString(output.ParentName),
|
|
7545
7545
|
};
|
|
7546
7546
|
};
|
|
7547
7547
|
const deserializeAws_json1_1ModerationLabels = (output, context) => {
|
|
@@ -7556,25 +7556,25 @@ const deserializeAws_json1_1ModerationLabels = (output, context) => {
|
|
|
7556
7556
|
};
|
|
7557
7557
|
const deserializeAws_json1_1MouthOpen = (output, context) => {
|
|
7558
7558
|
return {
|
|
7559
|
-
Confidence:
|
|
7560
|
-
Value:
|
|
7559
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
7560
|
+
Value: smithy_client_1.expectBoolean(output.Value),
|
|
7561
7561
|
};
|
|
7562
7562
|
};
|
|
7563
7563
|
const deserializeAws_json1_1Mustache = (output, context) => {
|
|
7564
7564
|
return {
|
|
7565
|
-
Confidence:
|
|
7566
|
-
Value:
|
|
7565
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
7566
|
+
Value: smithy_client_1.expectBoolean(output.Value),
|
|
7567
7567
|
};
|
|
7568
7568
|
};
|
|
7569
7569
|
const deserializeAws_json1_1OutputConfig = (output, context) => {
|
|
7570
7570
|
return {
|
|
7571
|
-
S3Bucket:
|
|
7572
|
-
S3KeyPrefix:
|
|
7571
|
+
S3Bucket: smithy_client_1.expectString(output.S3Bucket),
|
|
7572
|
+
S3KeyPrefix: smithy_client_1.expectString(output.S3KeyPrefix),
|
|
7573
7573
|
};
|
|
7574
7574
|
};
|
|
7575
7575
|
const deserializeAws_json1_1Parent = (output, context) => {
|
|
7576
7576
|
return {
|
|
7577
|
-
Name:
|
|
7577
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
7578
7578
|
};
|
|
7579
7579
|
};
|
|
7580
7580
|
const deserializeAws_json1_1Parents = (output, context) => {
|
|
@@ -7595,7 +7595,7 @@ const deserializeAws_json1_1PersonDetail = (output, context) => {
|
|
|
7595
7595
|
Face: output.Face !== undefined && output.Face !== null
|
|
7596
7596
|
? deserializeAws_json1_1FaceDetail(output.Face, context)
|
|
7597
7597
|
: undefined,
|
|
7598
|
-
Index:
|
|
7598
|
+
Index: smithy_client_1.expectLong(output.Index),
|
|
7599
7599
|
};
|
|
7600
7600
|
};
|
|
7601
7601
|
const deserializeAws_json1_1PersonDetection = (output, context) => {
|
|
@@ -7603,7 +7603,7 @@ const deserializeAws_json1_1PersonDetection = (output, context) => {
|
|
|
7603
7603
|
Person: output.Person !== undefined && output.Person !== null
|
|
7604
7604
|
? deserializeAws_json1_1PersonDetail(output.Person, context)
|
|
7605
7605
|
: undefined,
|
|
7606
|
-
Timestamp:
|
|
7606
|
+
Timestamp: smithy_client_1.expectLong(output.Timestamp),
|
|
7607
7607
|
};
|
|
7608
7608
|
};
|
|
7609
7609
|
const deserializeAws_json1_1PersonDetections = (output, context) => {
|
|
@@ -7624,7 +7624,7 @@ const deserializeAws_json1_1PersonMatch = (output, context) => {
|
|
|
7624
7624
|
Person: output.Person !== undefined && output.Person !== null
|
|
7625
7625
|
? deserializeAws_json1_1PersonDetail(output.Person, context)
|
|
7626
7626
|
: undefined,
|
|
7627
|
-
Timestamp:
|
|
7627
|
+
Timestamp: smithy_client_1.expectLong(output.Timestamp),
|
|
7628
7628
|
};
|
|
7629
7629
|
};
|
|
7630
7630
|
const deserializeAws_json1_1PersonMatches = (output, context) => {
|
|
@@ -7639,8 +7639,8 @@ const deserializeAws_json1_1PersonMatches = (output, context) => {
|
|
|
7639
7639
|
};
|
|
7640
7640
|
const deserializeAws_json1_1Point = (output, context) => {
|
|
7641
7641
|
return {
|
|
7642
|
-
X:
|
|
7643
|
-
Y:
|
|
7642
|
+
X: smithy_client_1.limitedParseFloat32(output.X),
|
|
7643
|
+
Y: smithy_client_1.limitedParseFloat32(output.Y),
|
|
7644
7644
|
};
|
|
7645
7645
|
};
|
|
7646
7646
|
const deserializeAws_json1_1Polygon = (output, context) => {
|
|
@@ -7655,18 +7655,18 @@ const deserializeAws_json1_1Polygon = (output, context) => {
|
|
|
7655
7655
|
};
|
|
7656
7656
|
const deserializeAws_json1_1Pose = (output, context) => {
|
|
7657
7657
|
return {
|
|
7658
|
-
Pitch:
|
|
7659
|
-
Roll:
|
|
7660
|
-
Yaw:
|
|
7658
|
+
Pitch: smithy_client_1.limitedParseFloat32(output.Pitch),
|
|
7659
|
+
Roll: smithy_client_1.limitedParseFloat32(output.Roll),
|
|
7660
|
+
Yaw: smithy_client_1.limitedParseFloat32(output.Yaw),
|
|
7661
7661
|
};
|
|
7662
7662
|
};
|
|
7663
7663
|
const deserializeAws_json1_1ProjectDescription = (output, context) => {
|
|
7664
7664
|
return {
|
|
7665
7665
|
CreationTimestamp: output.CreationTimestamp !== undefined && output.CreationTimestamp !== null
|
|
7666
|
-
?
|
|
7666
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTimestamp)))
|
|
7667
7667
|
: undefined,
|
|
7668
|
-
ProjectArn:
|
|
7669
|
-
Status:
|
|
7668
|
+
ProjectArn: smithy_client_1.expectString(output.ProjectArn),
|
|
7669
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
7670
7670
|
};
|
|
7671
7671
|
};
|
|
7672
7672
|
const deserializeAws_json1_1ProjectDescriptions = (output, context) => {
|
|
@@ -7681,24 +7681,24 @@ const deserializeAws_json1_1ProjectDescriptions = (output, context) => {
|
|
|
7681
7681
|
};
|
|
7682
7682
|
const deserializeAws_json1_1ProjectVersionDescription = (output, context) => {
|
|
7683
7683
|
return {
|
|
7684
|
-
BillableTrainingTimeInSeconds:
|
|
7684
|
+
BillableTrainingTimeInSeconds: smithy_client_1.expectLong(output.BillableTrainingTimeInSeconds),
|
|
7685
7685
|
CreationTimestamp: output.CreationTimestamp !== undefined && output.CreationTimestamp !== null
|
|
7686
|
-
?
|
|
7686
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTimestamp)))
|
|
7687
7687
|
: undefined,
|
|
7688
7688
|
EvaluationResult: output.EvaluationResult !== undefined && output.EvaluationResult !== null
|
|
7689
7689
|
? deserializeAws_json1_1EvaluationResult(output.EvaluationResult, context)
|
|
7690
7690
|
: undefined,
|
|
7691
|
-
KmsKeyId:
|
|
7691
|
+
KmsKeyId: smithy_client_1.expectString(output.KmsKeyId),
|
|
7692
7692
|
ManifestSummary: output.ManifestSummary !== undefined && output.ManifestSummary !== null
|
|
7693
7693
|
? deserializeAws_json1_1GroundTruthManifest(output.ManifestSummary, context)
|
|
7694
7694
|
: undefined,
|
|
7695
|
-
MinInferenceUnits:
|
|
7695
|
+
MinInferenceUnits: smithy_client_1.expectInt32(output.MinInferenceUnits),
|
|
7696
7696
|
OutputConfig: output.OutputConfig !== undefined && output.OutputConfig !== null
|
|
7697
7697
|
? deserializeAws_json1_1OutputConfig(output.OutputConfig, context)
|
|
7698
7698
|
: undefined,
|
|
7699
|
-
ProjectVersionArn:
|
|
7700
|
-
Status:
|
|
7701
|
-
StatusMessage:
|
|
7699
|
+
ProjectVersionArn: smithy_client_1.expectString(output.ProjectVersionArn),
|
|
7700
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
7701
|
+
StatusMessage: smithy_client_1.expectString(output.StatusMessage),
|
|
7702
7702
|
TestingDataResult: output.TestingDataResult !== undefined && output.TestingDataResult !== null
|
|
7703
7703
|
? deserializeAws_json1_1TestingDataResult(output.TestingDataResult, context)
|
|
7704
7704
|
: undefined,
|
|
@@ -7706,7 +7706,7 @@ const deserializeAws_json1_1ProjectVersionDescription = (output, context) => {
|
|
|
7706
7706
|
? deserializeAws_json1_1TrainingDataResult(output.TrainingDataResult, context)
|
|
7707
7707
|
: undefined,
|
|
7708
7708
|
TrainingEndTimestamp: output.TrainingEndTimestamp !== undefined && output.TrainingEndTimestamp !== null
|
|
7709
|
-
?
|
|
7709
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.TrainingEndTimestamp)))
|
|
7710
7710
|
: undefined,
|
|
7711
7711
|
};
|
|
7712
7712
|
};
|
|
@@ -7722,11 +7722,11 @@ const deserializeAws_json1_1ProjectVersionDescriptions = (output, context) => {
|
|
|
7722
7722
|
};
|
|
7723
7723
|
const deserializeAws_json1_1ProtectiveEquipmentBodyPart = (output, context) => {
|
|
7724
7724
|
return {
|
|
7725
|
-
Confidence:
|
|
7725
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
7726
7726
|
EquipmentDetections: output.EquipmentDetections !== undefined && output.EquipmentDetections !== null
|
|
7727
7727
|
? deserializeAws_json1_1EquipmentDetections(output.EquipmentDetections, context)
|
|
7728
7728
|
: undefined,
|
|
7729
|
-
Name:
|
|
7729
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
7730
7730
|
};
|
|
7731
7731
|
};
|
|
7732
7732
|
const deserializeAws_json1_1ProtectiveEquipmentPerson = (output, context) => {
|
|
@@ -7737,8 +7737,8 @@ const deserializeAws_json1_1ProtectiveEquipmentPerson = (output, context) => {
|
|
|
7737
7737
|
BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null
|
|
7738
7738
|
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
7739
7739
|
: undefined,
|
|
7740
|
-
Confidence:
|
|
7741
|
-
Id:
|
|
7740
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
7741
|
+
Id: smithy_client_1.expectInt32(output.Id),
|
|
7742
7742
|
};
|
|
7743
7743
|
};
|
|
7744
7744
|
const deserializeAws_json1_1ProtectiveEquipmentPersonIds = (output, context) => {
|
|
@@ -7748,7 +7748,7 @@ const deserializeAws_json1_1ProtectiveEquipmentPersonIds = (output, context) =>
|
|
|
7748
7748
|
if (entry === null) {
|
|
7749
7749
|
return null;
|
|
7750
7750
|
}
|
|
7751
|
-
return
|
|
7751
|
+
return smithy_client_1.expectInt32(entry);
|
|
7752
7752
|
});
|
|
7753
7753
|
};
|
|
7754
7754
|
const deserializeAws_json1_1ProtectiveEquipmentPersons = (output, context) => {
|
|
@@ -7776,9 +7776,9 @@ const deserializeAws_json1_1ProtectiveEquipmentSummary = (output, context) => {
|
|
|
7776
7776
|
};
|
|
7777
7777
|
const deserializeAws_json1_1ProvisionedThroughputExceededException = (output, context) => {
|
|
7778
7778
|
return {
|
|
7779
|
-
Code:
|
|
7780
|
-
Logref:
|
|
7781
|
-
Message:
|
|
7779
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
7780
|
+
Logref: smithy_client_1.expectString(output.Logref),
|
|
7781
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
7782
7782
|
};
|
|
7783
7783
|
};
|
|
7784
7784
|
const deserializeAws_json1_1Reasons = (output, context) => {
|
|
@@ -7788,7 +7788,7 @@ const deserializeAws_json1_1Reasons = (output, context) => {
|
|
|
7788
7788
|
if (entry === null) {
|
|
7789
7789
|
return null;
|
|
7790
7790
|
}
|
|
7791
|
-
return
|
|
7791
|
+
return smithy_client_1.expectString(entry);
|
|
7792
7792
|
});
|
|
7793
7793
|
};
|
|
7794
7794
|
const deserializeAws_json1_1RecognizeCelebritiesResponse = (output, context) => {
|
|
@@ -7796,7 +7796,7 @@ const deserializeAws_json1_1RecognizeCelebritiesResponse = (output, context) =>
|
|
|
7796
7796
|
CelebrityFaces: output.CelebrityFaces !== undefined && output.CelebrityFaces !== null
|
|
7797
7797
|
? deserializeAws_json1_1CelebrityList(output.CelebrityFaces, context)
|
|
7798
7798
|
: undefined,
|
|
7799
|
-
OrientationCorrection:
|
|
7799
|
+
OrientationCorrection: smithy_client_1.expectString(output.OrientationCorrection),
|
|
7800
7800
|
UnrecognizedFaces: output.UnrecognizedFaces !== undefined && output.UnrecognizedFaces !== null
|
|
7801
7801
|
? deserializeAws_json1_1ComparedFaceList(output.UnrecognizedFaces, context)
|
|
7802
7802
|
: undefined,
|
|
@@ -7804,37 +7804,37 @@ const deserializeAws_json1_1RecognizeCelebritiesResponse = (output, context) =>
|
|
|
7804
7804
|
};
|
|
7805
7805
|
const deserializeAws_json1_1ResourceAlreadyExistsException = (output, context) => {
|
|
7806
7806
|
return {
|
|
7807
|
-
Code:
|
|
7808
|
-
Logref:
|
|
7809
|
-
Message:
|
|
7807
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
7808
|
+
Logref: smithy_client_1.expectString(output.Logref),
|
|
7809
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
7810
7810
|
};
|
|
7811
7811
|
};
|
|
7812
7812
|
const deserializeAws_json1_1ResourceInUseException = (output, context) => {
|
|
7813
7813
|
return {
|
|
7814
|
-
Code:
|
|
7815
|
-
Logref:
|
|
7816
|
-
Message:
|
|
7814
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
7815
|
+
Logref: smithy_client_1.expectString(output.Logref),
|
|
7816
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
7817
7817
|
};
|
|
7818
7818
|
};
|
|
7819
7819
|
const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
7820
7820
|
return {
|
|
7821
|
-
Code:
|
|
7822
|
-
Logref:
|
|
7823
|
-
Message:
|
|
7821
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
7822
|
+
Logref: smithy_client_1.expectString(output.Logref),
|
|
7823
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
7824
7824
|
};
|
|
7825
7825
|
};
|
|
7826
7826
|
const deserializeAws_json1_1ResourceNotReadyException = (output, context) => {
|
|
7827
7827
|
return {
|
|
7828
|
-
Code:
|
|
7829
|
-
Logref:
|
|
7830
|
-
Message:
|
|
7828
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
7829
|
+
Logref: smithy_client_1.expectString(output.Logref),
|
|
7830
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
7831
7831
|
};
|
|
7832
7832
|
};
|
|
7833
7833
|
const deserializeAws_json1_1S3Object = (output, context) => {
|
|
7834
7834
|
return {
|
|
7835
|
-
Bucket:
|
|
7836
|
-
Name:
|
|
7837
|
-
Version:
|
|
7835
|
+
Bucket: smithy_client_1.expectString(output.Bucket),
|
|
7836
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
7837
|
+
Version: smithy_client_1.expectString(output.Version),
|
|
7838
7838
|
};
|
|
7839
7839
|
};
|
|
7840
7840
|
const deserializeAws_json1_1SearchFacesByImageResponse = (output, context) => {
|
|
@@ -7842,11 +7842,11 @@ const deserializeAws_json1_1SearchFacesByImageResponse = (output, context) => {
|
|
|
7842
7842
|
FaceMatches: output.FaceMatches !== undefined && output.FaceMatches !== null
|
|
7843
7843
|
? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context)
|
|
7844
7844
|
: undefined,
|
|
7845
|
-
FaceModelVersion:
|
|
7845
|
+
FaceModelVersion: smithy_client_1.expectString(output.FaceModelVersion),
|
|
7846
7846
|
SearchedFaceBoundingBox: output.SearchedFaceBoundingBox !== undefined && output.SearchedFaceBoundingBox !== null
|
|
7847
7847
|
? deserializeAws_json1_1BoundingBox(output.SearchedFaceBoundingBox, context)
|
|
7848
7848
|
: undefined,
|
|
7849
|
-
SearchedFaceConfidence:
|
|
7849
|
+
SearchedFaceConfidence: smithy_client_1.limitedParseFloat32(output.SearchedFaceConfidence),
|
|
7850
7850
|
};
|
|
7851
7851
|
};
|
|
7852
7852
|
const deserializeAws_json1_1SearchFacesResponse = (output, context) => {
|
|
@@ -7854,28 +7854,28 @@ const deserializeAws_json1_1SearchFacesResponse = (output, context) => {
|
|
|
7854
7854
|
FaceMatches: output.FaceMatches !== undefined && output.FaceMatches !== null
|
|
7855
7855
|
? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context)
|
|
7856
7856
|
: undefined,
|
|
7857
|
-
FaceModelVersion:
|
|
7858
|
-
SearchedFaceId:
|
|
7857
|
+
FaceModelVersion: smithy_client_1.expectString(output.FaceModelVersion),
|
|
7858
|
+
SearchedFaceId: smithy_client_1.expectString(output.SearchedFaceId),
|
|
7859
7859
|
};
|
|
7860
7860
|
};
|
|
7861
7861
|
const deserializeAws_json1_1SegmentDetection = (output, context) => {
|
|
7862
7862
|
return {
|
|
7863
|
-
DurationFrames:
|
|
7864
|
-
DurationMillis:
|
|
7865
|
-
DurationSMPTE:
|
|
7866
|
-
EndFrameNumber:
|
|
7867
|
-
EndTimecodeSMPTE:
|
|
7868
|
-
EndTimestampMillis:
|
|
7863
|
+
DurationFrames: smithy_client_1.expectLong(output.DurationFrames),
|
|
7864
|
+
DurationMillis: smithy_client_1.expectLong(output.DurationMillis),
|
|
7865
|
+
DurationSMPTE: smithy_client_1.expectString(output.DurationSMPTE),
|
|
7866
|
+
EndFrameNumber: smithy_client_1.expectLong(output.EndFrameNumber),
|
|
7867
|
+
EndTimecodeSMPTE: smithy_client_1.expectString(output.EndTimecodeSMPTE),
|
|
7868
|
+
EndTimestampMillis: smithy_client_1.expectLong(output.EndTimestampMillis),
|
|
7869
7869
|
ShotSegment: output.ShotSegment !== undefined && output.ShotSegment !== null
|
|
7870
7870
|
? deserializeAws_json1_1ShotSegment(output.ShotSegment, context)
|
|
7871
7871
|
: undefined,
|
|
7872
|
-
StartFrameNumber:
|
|
7873
|
-
StartTimecodeSMPTE:
|
|
7874
|
-
StartTimestampMillis:
|
|
7872
|
+
StartFrameNumber: smithy_client_1.expectLong(output.StartFrameNumber),
|
|
7873
|
+
StartTimecodeSMPTE: smithy_client_1.expectString(output.StartTimecodeSMPTE),
|
|
7874
|
+
StartTimestampMillis: smithy_client_1.expectLong(output.StartTimestampMillis),
|
|
7875
7875
|
TechnicalCueSegment: output.TechnicalCueSegment !== undefined && output.TechnicalCueSegment !== null
|
|
7876
7876
|
? deserializeAws_json1_1TechnicalCueSegment(output.TechnicalCueSegment, context)
|
|
7877
7877
|
: undefined,
|
|
7878
|
-
Type:
|
|
7878
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
7879
7879
|
};
|
|
7880
7880
|
};
|
|
7881
7881
|
const deserializeAws_json1_1SegmentDetections = (output, context) => {
|
|
@@ -7890,8 +7890,8 @@ const deserializeAws_json1_1SegmentDetections = (output, context) => {
|
|
|
7890
7890
|
};
|
|
7891
7891
|
const deserializeAws_json1_1SegmentTypeInfo = (output, context) => {
|
|
7892
7892
|
return {
|
|
7893
|
-
ModelVersion:
|
|
7894
|
-
Type:
|
|
7893
|
+
ModelVersion: smithy_client_1.expectString(output.ModelVersion),
|
|
7894
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
7895
7895
|
};
|
|
7896
7896
|
};
|
|
7897
7897
|
const deserializeAws_json1_1SegmentTypesInfo = (output, context) => {
|
|
@@ -7906,61 +7906,61 @@ const deserializeAws_json1_1SegmentTypesInfo = (output, context) => {
|
|
|
7906
7906
|
};
|
|
7907
7907
|
const deserializeAws_json1_1ServiceQuotaExceededException = (output, context) => {
|
|
7908
7908
|
return {
|
|
7909
|
-
Code:
|
|
7910
|
-
Logref:
|
|
7911
|
-
Message:
|
|
7909
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
7910
|
+
Logref: smithy_client_1.expectString(output.Logref),
|
|
7911
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
7912
7912
|
};
|
|
7913
7913
|
};
|
|
7914
7914
|
const deserializeAws_json1_1ShotSegment = (output, context) => {
|
|
7915
7915
|
return {
|
|
7916
|
-
Confidence:
|
|
7917
|
-
Index:
|
|
7916
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
7917
|
+
Index: smithy_client_1.expectLong(output.Index),
|
|
7918
7918
|
};
|
|
7919
7919
|
};
|
|
7920
7920
|
const deserializeAws_json1_1Smile = (output, context) => {
|
|
7921
7921
|
return {
|
|
7922
|
-
Confidence:
|
|
7923
|
-
Value:
|
|
7922
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
7923
|
+
Value: smithy_client_1.expectBoolean(output.Value),
|
|
7924
7924
|
};
|
|
7925
7925
|
};
|
|
7926
7926
|
const deserializeAws_json1_1StartCelebrityRecognitionResponse = (output, context) => {
|
|
7927
7927
|
return {
|
|
7928
|
-
JobId:
|
|
7928
|
+
JobId: smithy_client_1.expectString(output.JobId),
|
|
7929
7929
|
};
|
|
7930
7930
|
};
|
|
7931
7931
|
const deserializeAws_json1_1StartContentModerationResponse = (output, context) => {
|
|
7932
7932
|
return {
|
|
7933
|
-
JobId:
|
|
7933
|
+
JobId: smithy_client_1.expectString(output.JobId),
|
|
7934
7934
|
};
|
|
7935
7935
|
};
|
|
7936
7936
|
const deserializeAws_json1_1StartFaceDetectionResponse = (output, context) => {
|
|
7937
7937
|
return {
|
|
7938
|
-
JobId:
|
|
7938
|
+
JobId: smithy_client_1.expectString(output.JobId),
|
|
7939
7939
|
};
|
|
7940
7940
|
};
|
|
7941
7941
|
const deserializeAws_json1_1StartFaceSearchResponse = (output, context) => {
|
|
7942
7942
|
return {
|
|
7943
|
-
JobId:
|
|
7943
|
+
JobId: smithy_client_1.expectString(output.JobId),
|
|
7944
7944
|
};
|
|
7945
7945
|
};
|
|
7946
7946
|
const deserializeAws_json1_1StartLabelDetectionResponse = (output, context) => {
|
|
7947
7947
|
return {
|
|
7948
|
-
JobId:
|
|
7948
|
+
JobId: smithy_client_1.expectString(output.JobId),
|
|
7949
7949
|
};
|
|
7950
7950
|
};
|
|
7951
7951
|
const deserializeAws_json1_1StartPersonTrackingResponse = (output, context) => {
|
|
7952
7952
|
return {
|
|
7953
|
-
JobId:
|
|
7953
|
+
JobId: smithy_client_1.expectString(output.JobId),
|
|
7954
7954
|
};
|
|
7955
7955
|
};
|
|
7956
7956
|
const deserializeAws_json1_1StartProjectVersionResponse = (output, context) => {
|
|
7957
7957
|
return {
|
|
7958
|
-
Status:
|
|
7958
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
7959
7959
|
};
|
|
7960
7960
|
};
|
|
7961
7961
|
const deserializeAws_json1_1StartSegmentDetectionResponse = (output, context) => {
|
|
7962
7962
|
return {
|
|
7963
|
-
JobId:
|
|
7963
|
+
JobId: smithy_client_1.expectString(output.JobId),
|
|
7964
7964
|
};
|
|
7965
7965
|
};
|
|
7966
7966
|
const deserializeAws_json1_1StartStreamProcessorResponse = (output, context) => {
|
|
@@ -7968,12 +7968,12 @@ const deserializeAws_json1_1StartStreamProcessorResponse = (output, context) =>
|
|
|
7968
7968
|
};
|
|
7969
7969
|
const deserializeAws_json1_1StartTextDetectionResponse = (output, context) => {
|
|
7970
7970
|
return {
|
|
7971
|
-
JobId:
|
|
7971
|
+
JobId: smithy_client_1.expectString(output.JobId),
|
|
7972
7972
|
};
|
|
7973
7973
|
};
|
|
7974
7974
|
const deserializeAws_json1_1StopProjectVersionResponse = (output, context) => {
|
|
7975
7975
|
return {
|
|
7976
|
-
Status:
|
|
7976
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
7977
7977
|
};
|
|
7978
7978
|
};
|
|
7979
7979
|
const deserializeAws_json1_1StopStreamProcessorResponse = (output, context) => {
|
|
@@ -7981,8 +7981,8 @@ const deserializeAws_json1_1StopStreamProcessorResponse = (output, context) => {
|
|
|
7981
7981
|
};
|
|
7982
7982
|
const deserializeAws_json1_1StreamProcessor = (output, context) => {
|
|
7983
7983
|
return {
|
|
7984
|
-
Name:
|
|
7985
|
-
Status:
|
|
7984
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
7985
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
7986
7986
|
};
|
|
7987
7987
|
};
|
|
7988
7988
|
const deserializeAws_json1_1StreamProcessorInput = (output, context) => {
|
|
@@ -8025,8 +8025,8 @@ const deserializeAws_json1_1Summary = (output, context) => {
|
|
|
8025
8025
|
};
|
|
8026
8026
|
const deserializeAws_json1_1Sunglasses = (output, context) => {
|
|
8027
8027
|
return {
|
|
8028
|
-
Confidence:
|
|
8029
|
-
Value:
|
|
8028
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
8029
|
+
Value: smithy_client_1.expectBoolean(output.Value),
|
|
8030
8030
|
};
|
|
8031
8031
|
};
|
|
8032
8032
|
const deserializeAws_json1_1TagMap = (output, context) => {
|
|
@@ -8036,7 +8036,7 @@ const deserializeAws_json1_1TagMap = (output, context) => {
|
|
|
8036
8036
|
}
|
|
8037
8037
|
return {
|
|
8038
8038
|
...acc,
|
|
8039
|
-
[key]:
|
|
8039
|
+
[key]: smithy_client_1.expectString(value),
|
|
8040
8040
|
};
|
|
8041
8041
|
}, {});
|
|
8042
8042
|
};
|
|
@@ -8045,8 +8045,8 @@ const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
|
8045
8045
|
};
|
|
8046
8046
|
const deserializeAws_json1_1TechnicalCueSegment = (output, context) => {
|
|
8047
8047
|
return {
|
|
8048
|
-
Confidence:
|
|
8049
|
-
Type:
|
|
8048
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
8049
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
8050
8050
|
};
|
|
8051
8051
|
};
|
|
8052
8052
|
const deserializeAws_json1_1TestingData = (output, context) => {
|
|
@@ -8054,7 +8054,7 @@ const deserializeAws_json1_1TestingData = (output, context) => {
|
|
|
8054
8054
|
Assets: output.Assets !== undefined && output.Assets !== null
|
|
8055
8055
|
? deserializeAws_json1_1Assets(output.Assets, context)
|
|
8056
8056
|
: undefined,
|
|
8057
|
-
AutoCreate:
|
|
8057
|
+
AutoCreate: smithy_client_1.expectBoolean(output.AutoCreate),
|
|
8058
8058
|
};
|
|
8059
8059
|
};
|
|
8060
8060
|
const deserializeAws_json1_1TestingDataResult = (output, context) => {
|
|
@@ -8072,14 +8072,14 @@ const deserializeAws_json1_1TestingDataResult = (output, context) => {
|
|
|
8072
8072
|
};
|
|
8073
8073
|
const deserializeAws_json1_1TextDetection = (output, context) => {
|
|
8074
8074
|
return {
|
|
8075
|
-
Confidence:
|
|
8076
|
-
DetectedText:
|
|
8075
|
+
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
8076
|
+
DetectedText: smithy_client_1.expectString(output.DetectedText),
|
|
8077
8077
|
Geometry: output.Geometry !== undefined && output.Geometry !== null
|
|
8078
8078
|
? deserializeAws_json1_1Geometry(output.Geometry, context)
|
|
8079
8079
|
: undefined,
|
|
8080
|
-
Id:
|
|
8081
|
-
ParentId:
|
|
8082
|
-
Type:
|
|
8080
|
+
Id: smithy_client_1.expectInt32(output.Id),
|
|
8081
|
+
ParentId: smithy_client_1.expectInt32(output.ParentId),
|
|
8082
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
8083
8083
|
};
|
|
8084
8084
|
};
|
|
8085
8085
|
const deserializeAws_json1_1TextDetectionList = (output, context) => {
|
|
@@ -8097,7 +8097,7 @@ const deserializeAws_json1_1TextDetectionResult = (output, context) => {
|
|
|
8097
8097
|
TextDetection: output.TextDetection !== undefined && output.TextDetection !== null
|
|
8098
8098
|
? deserializeAws_json1_1TextDetection(output.TextDetection, context)
|
|
8099
8099
|
: undefined,
|
|
8100
|
-
Timestamp:
|
|
8100
|
+
Timestamp: smithy_client_1.expectLong(output.Timestamp),
|
|
8101
8101
|
};
|
|
8102
8102
|
};
|
|
8103
8103
|
const deserializeAws_json1_1TextDetectionResults = (output, context) => {
|
|
@@ -8112,9 +8112,9 @@ const deserializeAws_json1_1TextDetectionResults = (output, context) => {
|
|
|
8112
8112
|
};
|
|
8113
8113
|
const deserializeAws_json1_1ThrottlingException = (output, context) => {
|
|
8114
8114
|
return {
|
|
8115
|
-
Code:
|
|
8116
|
-
Logref:
|
|
8117
|
-
Message:
|
|
8115
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
8116
|
+
Logref: smithy_client_1.expectString(output.Logref),
|
|
8117
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
8118
8118
|
};
|
|
8119
8119
|
};
|
|
8120
8120
|
const deserializeAws_json1_1TrainingData = (output, context) => {
|
|
@@ -8167,7 +8167,7 @@ const deserializeAws_json1_1Urls = (output, context) => {
|
|
|
8167
8167
|
if (entry === null) {
|
|
8168
8168
|
return null;
|
|
8169
8169
|
}
|
|
8170
|
-
return
|
|
8170
|
+
return smithy_client_1.expectString(entry);
|
|
8171
8171
|
});
|
|
8172
8172
|
};
|
|
8173
8173
|
const deserializeAws_json1_1ValidationData = (output, context) => {
|
|
@@ -8179,13 +8179,13 @@ const deserializeAws_json1_1ValidationData = (output, context) => {
|
|
|
8179
8179
|
};
|
|
8180
8180
|
const deserializeAws_json1_1VideoMetadata = (output, context) => {
|
|
8181
8181
|
return {
|
|
8182
|
-
Codec:
|
|
8183
|
-
ColorRange:
|
|
8184
|
-
DurationMillis:
|
|
8185
|
-
Format:
|
|
8186
|
-
FrameHeight:
|
|
8187
|
-
FrameRate:
|
|
8188
|
-
FrameWidth:
|
|
8182
|
+
Codec: smithy_client_1.expectString(output.Codec),
|
|
8183
|
+
ColorRange: smithy_client_1.expectString(output.ColorRange),
|
|
8184
|
+
DurationMillis: smithy_client_1.expectLong(output.DurationMillis),
|
|
8185
|
+
Format: smithy_client_1.expectString(output.Format),
|
|
8186
|
+
FrameHeight: smithy_client_1.expectLong(output.FrameHeight),
|
|
8187
|
+
FrameRate: smithy_client_1.limitedParseFloat32(output.FrameRate),
|
|
8188
|
+
FrameWidth: smithy_client_1.expectLong(output.FrameWidth),
|
|
8189
8189
|
};
|
|
8190
8190
|
};
|
|
8191
8191
|
const deserializeAws_json1_1VideoMetadataList = (output, context) => {
|
|
@@ -8200,9 +8200,9 @@ const deserializeAws_json1_1VideoMetadataList = (output, context) => {
|
|
|
8200
8200
|
};
|
|
8201
8201
|
const deserializeAws_json1_1VideoTooLargeException = (output, context) => {
|
|
8202
8202
|
return {
|
|
8203
|
-
Code:
|
|
8204
|
-
Logref:
|
|
8205
|
-
Message:
|
|
8203
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
8204
|
+
Logref: smithy_client_1.expectString(output.Logref),
|
|
8205
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
8206
8206
|
};
|
|
8207
8207
|
};
|
|
8208
8208
|
const deserializeMetadata = (output) => {
|