@aws-sdk/client-comprehend 3.278.0 → 3.281.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/README.md +675 -0
- package/dist-cjs/Comprehend.js +165 -0
- package/dist-cjs/commands/CreateDatasetCommand.js +46 -0
- package/dist-cjs/commands/CreateFlywheelCommand.js +46 -0
- package/dist-cjs/commands/DeleteFlywheelCommand.js +46 -0
- package/dist-cjs/commands/DescribeDatasetCommand.js +46 -0
- package/dist-cjs/commands/DescribeFlywheelCommand.js +46 -0
- package/dist-cjs/commands/DescribeFlywheelIterationCommand.js +46 -0
- package/dist-cjs/commands/ListDatasetsCommand.js +46 -0
- package/dist-cjs/commands/ListFlywheelIterationHistoryCommand.js +46 -0
- package/dist-cjs/commands/ListFlywheelsCommand.js +46 -0
- package/dist-cjs/commands/StartFlywheelIterationCommand.js +46 -0
- package/dist-cjs/commands/StopTargetedSentimentDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/StopTrainingDocumentClassifierCommand.js +3 -3
- package/dist-cjs/commands/StopTrainingEntityRecognizerCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateEndpointCommand.js +3 -3
- package/dist-cjs/commands/UpdateFlywheelCommand.js +46 -0
- package/dist-cjs/commands/index.js +11 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +242 -120
- package/dist-cjs/models/models_1.js +92 -0
- package/dist-cjs/pagination/ListDatasetsPaginator.js +36 -0
- package/dist-cjs/pagination/ListFlywheelIterationHistoryPaginator.js +36 -0
- package/dist-cjs/pagination/ListFlywheelsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_json1_1.js +1135 -26
- package/dist-es/Comprehend.js +165 -0
- package/dist-es/commands/CreateDatasetCommand.js +42 -0
- package/dist-es/commands/CreateFlywheelCommand.js +42 -0
- package/dist-es/commands/DeleteFlywheelCommand.js +42 -0
- package/dist-es/commands/DescribeDatasetCommand.js +42 -0
- package/dist-es/commands/DescribeFlywheelCommand.js +42 -0
- package/dist-es/commands/DescribeFlywheelIterationCommand.js +42 -0
- package/dist-es/commands/ListDatasetsCommand.js +42 -0
- package/dist-es/commands/ListFlywheelIterationHistoryCommand.js +42 -0
- package/dist-es/commands/ListFlywheelsCommand.js +42 -0
- package/dist-es/commands/StartFlywheelIterationCommand.js +42 -0
- package/dist-es/commands/StopTargetedSentimentDetectionJobCommand.js +1 -1
- package/dist-es/commands/StopTrainingDocumentClassifierCommand.js +1 -1
- package/dist-es/commands/StopTrainingEntityRecognizerCommand.js +1 -1
- package/dist-es/commands/TagResourceCommand.js +1 -1
- package/dist-es/commands/UntagResourceCommand.js +1 -1
- package/dist-es/commands/UpdateEndpointCommand.js +1 -1
- package/dist-es/commands/UpdateFlywheelCommand.js +42 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +191 -95
- package/dist-es/models/models_1.js +72 -0
- package/dist-es/pagination/ListDatasetsPaginator.js +32 -0
- package/dist-es/pagination/ListFlywheelIterationHistoryPaginator.js +32 -0
- package/dist-es/pagination/ListFlywheelsPaginator.js +32 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +1109 -23
- package/dist-types/Comprehend.d.ts +107 -4
- package/dist-types/ComprehendClient.d.ts +13 -2
- package/dist-types/commands/BatchDetectDominantLanguageCommand.d.ts +6 -0
- package/dist-types/commands/BatchDetectEntitiesCommand.d.ts +6 -0
- package/dist-types/commands/BatchDetectKeyPhrasesCommand.d.ts +6 -0
- package/dist-types/commands/BatchDetectSentimentCommand.d.ts +6 -0
- package/dist-types/commands/BatchDetectSyntaxCommand.d.ts +6 -0
- package/dist-types/commands/BatchDetectTargetedSentimentCommand.d.ts +6 -0
- package/dist-types/commands/ClassifyDocumentCommand.d.ts +6 -0
- package/dist-types/commands/ContainsPiiEntitiesCommand.d.ts +6 -0
- package/dist-types/commands/CreateDatasetCommand.d.ts +45 -0
- package/dist-types/commands/CreateDocumentClassifierCommand.d.ts +6 -0
- package/dist-types/commands/CreateEndpointCommand.d.ts +6 -0
- package/dist-types/commands/CreateEntityRecognizerCommand.d.ts +7 -1
- package/dist-types/commands/CreateFlywheelCommand.d.ts +53 -0
- package/dist-types/commands/DeleteDocumentClassifierCommand.d.ts +6 -0
- package/dist-types/commands/DeleteEndpointCommand.d.ts +6 -0
- package/dist-types/commands/DeleteEntityRecognizerCommand.d.ts +6 -0
- package/dist-types/commands/DeleteFlywheelCommand.d.ts +46 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +6 -0
- package/dist-types/commands/DescribeDatasetCommand.d.ts +45 -0
- package/dist-types/commands/DescribeDocumentClassificationJobCommand.d.ts +6 -0
- package/dist-types/commands/DescribeDocumentClassifierCommand.d.ts +6 -0
- package/dist-types/commands/DescribeDominantLanguageDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/DescribeEndpointCommand.d.ts +6 -0
- package/dist-types/commands/DescribeEntitiesDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/DescribeEntityRecognizerCommand.d.ts +6 -0
- package/dist-types/commands/DescribeEventsDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/DescribeFlywheelCommand.d.ts +44 -0
- package/dist-types/commands/DescribeFlywheelIterationCommand.d.ts +45 -0
- package/dist-types/commands/DescribeKeyPhrasesDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/DescribePiiEntitiesDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +6 -0
- package/dist-types/commands/DescribeSentimentDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/DescribeTargetedSentimentDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/DescribeTopicsDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/DetectDominantLanguageCommand.d.ts +6 -0
- package/dist-types/commands/DetectEntitiesCommand.d.ts +6 -0
- package/dist-types/commands/DetectKeyPhrasesCommand.d.ts +6 -0
- package/dist-types/commands/DetectPiiEntitiesCommand.d.ts +6 -0
- package/dist-types/commands/DetectSentimentCommand.d.ts +6 -0
- package/dist-types/commands/DetectSyntaxCommand.d.ts +6 -0
- package/dist-types/commands/DetectTargetedSentimentCommand.d.ts +6 -0
- package/dist-types/commands/ImportModelCommand.d.ts +6 -0
- package/dist-types/commands/ListDatasetsCommand.d.ts +44 -0
- package/dist-types/commands/ListDocumentClassificationJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListDocumentClassifierSummariesCommand.d.ts +6 -0
- package/dist-types/commands/ListDocumentClassifiersCommand.d.ts +6 -0
- package/dist-types/commands/ListDominantLanguageDetectionJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListEndpointsCommand.d.ts +6 -0
- package/dist-types/commands/ListEntitiesDetectionJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListEntityRecognizerSummariesCommand.d.ts +6 -0
- package/dist-types/commands/ListEntityRecognizersCommand.d.ts +6 -0
- package/dist-types/commands/ListEventsDetectionJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListFlywheelIterationHistoryCommand.d.ts +45 -0
- package/dist-types/commands/ListFlywheelsCommand.d.ts +43 -0
- package/dist-types/commands/ListKeyPhrasesDetectionJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListPiiEntitiesDetectionJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListSentimentDetectionJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -0
- package/dist-types/commands/ListTargetedSentimentDetectionJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListTopicsDetectionJobsCommand.d.ts +6 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +6 -0
- package/dist-types/commands/StartDocumentClassificationJobCommand.d.ts +9 -2
- package/dist-types/commands/StartDominantLanguageDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StartEntitiesDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StartEventsDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StartFlywheelIterationCommand.d.ts +45 -0
- package/dist-types/commands/StartKeyPhrasesDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StartPiiEntitiesDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StartSentimentDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StartTargetedSentimentDetectionJobCommand.d.ts +7 -1
- package/dist-types/commands/StartTopicsDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StopDominantLanguageDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StopEntitiesDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StopEventsDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StopKeyPhrasesDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StopPiiEntitiesDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StopSentimentDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StopTargetedSentimentDetectionJobCommand.d.ts +7 -1
- package/dist-types/commands/StopTrainingDocumentClassifierCommand.d.ts +7 -1
- package/dist-types/commands/StopTrainingEntityRecognizerCommand.d.ts +7 -1
- package/dist-types/commands/TagResourceCommand.d.ts +7 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +7 -1
- package/dist-types/commands/UpdateEndpointCommand.d.ts +7 -1
- package/dist-types/commands/UpdateFlywheelCommand.d.ts +43 -0
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1145 -320
- package/dist-types/models/models_1.d.ts +241 -0
- package/dist-types/pagination/ListDatasetsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListFlywheelIterationHistoryPaginator.d.ts +4 -0
- package/dist-types/pagination/ListFlywheelsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +33 -0
- package/dist-types/ts3.4/Comprehend.d.ts +187 -0
- package/dist-types/ts3.4/ComprehendClient.d.ts +68 -2
- package/dist-types/ts3.4/commands/CreateDatasetCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreateFlywheelCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteFlywheelCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeDatasetCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeFlywheelCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeFlywheelIterationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListDatasetsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListFlywheelIterationHistoryCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListFlywheelsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/StartFlywheelIterationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/StopTargetedSentimentDetectionJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StopTrainingDocumentClassifierCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StopTrainingEntityRecognizerCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateEndpointCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateFlywheelCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +424 -138
- package/dist-types/ts3.4/models/models_1.d.ts +116 -0
- package/dist-types/ts3.4/pagination/ListDatasetsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFlywheelIterationHistoryPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFlywheelsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +132 -0
- package/package.json +6 -6
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
3
|
+
exports.serializeAws_json1_1ListEntityRecognizersCommand = exports.serializeAws_json1_1ListEntitiesDetectionJobsCommand = exports.serializeAws_json1_1ListEndpointsCommand = exports.serializeAws_json1_1ListDominantLanguageDetectionJobsCommand = exports.serializeAws_json1_1ListDocumentClassifierSummariesCommand = exports.serializeAws_json1_1ListDocumentClassifiersCommand = exports.serializeAws_json1_1ListDocumentClassificationJobsCommand = exports.serializeAws_json1_1ListDatasetsCommand = exports.serializeAws_json1_1ImportModelCommand = exports.serializeAws_json1_1DetectTargetedSentimentCommand = exports.serializeAws_json1_1DetectSyntaxCommand = exports.serializeAws_json1_1DetectSentimentCommand = exports.serializeAws_json1_1DetectPiiEntitiesCommand = exports.serializeAws_json1_1DetectKeyPhrasesCommand = exports.serializeAws_json1_1DetectEntitiesCommand = exports.serializeAws_json1_1DetectDominantLanguageCommand = exports.serializeAws_json1_1DescribeTopicsDetectionJobCommand = exports.serializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand = exports.serializeAws_json1_1DescribeSentimentDetectionJobCommand = exports.serializeAws_json1_1DescribeResourcePolicyCommand = exports.serializeAws_json1_1DescribePiiEntitiesDetectionJobCommand = exports.serializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = exports.serializeAws_json1_1DescribeFlywheelIterationCommand = exports.serializeAws_json1_1DescribeFlywheelCommand = exports.serializeAws_json1_1DescribeEventsDetectionJobCommand = exports.serializeAws_json1_1DescribeEntityRecognizerCommand = exports.serializeAws_json1_1DescribeEntitiesDetectionJobCommand = exports.serializeAws_json1_1DescribeEndpointCommand = exports.serializeAws_json1_1DescribeDominantLanguageDetectionJobCommand = exports.serializeAws_json1_1DescribeDocumentClassifierCommand = exports.serializeAws_json1_1DescribeDocumentClassificationJobCommand = exports.serializeAws_json1_1DescribeDatasetCommand = exports.serializeAws_json1_1DeleteResourcePolicyCommand = exports.serializeAws_json1_1DeleteFlywheelCommand = exports.serializeAws_json1_1DeleteEntityRecognizerCommand = exports.serializeAws_json1_1DeleteEndpointCommand = exports.serializeAws_json1_1DeleteDocumentClassifierCommand = exports.serializeAws_json1_1CreateFlywheelCommand = exports.serializeAws_json1_1CreateEntityRecognizerCommand = exports.serializeAws_json1_1CreateEndpointCommand = exports.serializeAws_json1_1CreateDocumentClassifierCommand = exports.serializeAws_json1_1CreateDatasetCommand = exports.serializeAws_json1_1ContainsPiiEntitiesCommand = exports.serializeAws_json1_1ClassifyDocumentCommand = exports.serializeAws_json1_1BatchDetectTargetedSentimentCommand = exports.serializeAws_json1_1BatchDetectSyntaxCommand = exports.serializeAws_json1_1BatchDetectSentimentCommand = exports.serializeAws_json1_1BatchDetectKeyPhrasesCommand = exports.serializeAws_json1_1BatchDetectEntitiesCommand = exports.serializeAws_json1_1BatchDetectDominantLanguageCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1DeleteEntityRecognizerCommand = exports.deserializeAws_json1_1DeleteEndpointCommand = exports.deserializeAws_json1_1DeleteDocumentClassifierCommand = exports.deserializeAws_json1_1CreateFlywheelCommand = exports.deserializeAws_json1_1CreateEntityRecognizerCommand = exports.deserializeAws_json1_1CreateEndpointCommand = exports.deserializeAws_json1_1CreateDocumentClassifierCommand = exports.deserializeAws_json1_1CreateDatasetCommand = exports.deserializeAws_json1_1ContainsPiiEntitiesCommand = exports.deserializeAws_json1_1ClassifyDocumentCommand = exports.deserializeAws_json1_1BatchDetectTargetedSentimentCommand = exports.deserializeAws_json1_1BatchDetectSyntaxCommand = exports.deserializeAws_json1_1BatchDetectSentimentCommand = exports.deserializeAws_json1_1BatchDetectKeyPhrasesCommand = exports.deserializeAws_json1_1BatchDetectEntitiesCommand = exports.deserializeAws_json1_1BatchDetectDominantLanguageCommand = exports.serializeAws_json1_1UpdateFlywheelCommand = exports.serializeAws_json1_1UpdateEndpointCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopTrainingEntityRecognizerCommand = exports.serializeAws_json1_1StopTrainingDocumentClassifierCommand = exports.serializeAws_json1_1StopTargetedSentimentDetectionJobCommand = exports.serializeAws_json1_1StopSentimentDetectionJobCommand = exports.serializeAws_json1_1StopPiiEntitiesDetectionJobCommand = exports.serializeAws_json1_1StopKeyPhrasesDetectionJobCommand = exports.serializeAws_json1_1StopEventsDetectionJobCommand = exports.serializeAws_json1_1StopEntitiesDetectionJobCommand = exports.serializeAws_json1_1StopDominantLanguageDetectionJobCommand = exports.serializeAws_json1_1StartTopicsDetectionJobCommand = exports.serializeAws_json1_1StartTargetedSentimentDetectionJobCommand = exports.serializeAws_json1_1StartSentimentDetectionJobCommand = exports.serializeAws_json1_1StartPiiEntitiesDetectionJobCommand = exports.serializeAws_json1_1StartKeyPhrasesDetectionJobCommand = exports.serializeAws_json1_1StartFlywheelIterationCommand = exports.serializeAws_json1_1StartEventsDetectionJobCommand = exports.serializeAws_json1_1StartEntitiesDetectionJobCommand = exports.serializeAws_json1_1StartDominantLanguageDetectionJobCommand = exports.serializeAws_json1_1StartDocumentClassificationJobCommand = exports.serializeAws_json1_1PutResourcePolicyCommand = exports.serializeAws_json1_1ListTopicsDetectionJobsCommand = exports.serializeAws_json1_1ListTargetedSentimentDetectionJobsCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListSentimentDetectionJobsCommand = exports.serializeAws_json1_1ListPiiEntitiesDetectionJobsCommand = exports.serializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = exports.serializeAws_json1_1ListFlywheelsCommand = exports.serializeAws_json1_1ListFlywheelIterationHistoryCommand = exports.serializeAws_json1_1ListEventsDetectionJobsCommand = exports.serializeAws_json1_1ListEntityRecognizerSummariesCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1StartFlywheelIterationCommand = exports.deserializeAws_json1_1StartEventsDetectionJobCommand = exports.deserializeAws_json1_1StartEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StartDominantLanguageDetectionJobCommand = exports.deserializeAws_json1_1StartDocumentClassificationJobCommand = exports.deserializeAws_json1_1PutResourcePolicyCommand = exports.deserializeAws_json1_1ListTopicsDetectionJobsCommand = exports.deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListSentimentDetectionJobsCommand = exports.deserializeAws_json1_1ListPiiEntitiesDetectionJobsCommand = exports.deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = exports.deserializeAws_json1_1ListFlywheelsCommand = exports.deserializeAws_json1_1ListFlywheelIterationHistoryCommand = exports.deserializeAws_json1_1ListEventsDetectionJobsCommand = exports.deserializeAws_json1_1ListEntityRecognizerSummariesCommand = exports.deserializeAws_json1_1ListEntityRecognizersCommand = exports.deserializeAws_json1_1ListEntitiesDetectionJobsCommand = exports.deserializeAws_json1_1ListEndpointsCommand = exports.deserializeAws_json1_1ListDominantLanguageDetectionJobsCommand = exports.deserializeAws_json1_1ListDocumentClassifierSummariesCommand = exports.deserializeAws_json1_1ListDocumentClassifiersCommand = exports.deserializeAws_json1_1ListDocumentClassificationJobsCommand = exports.deserializeAws_json1_1ListDatasetsCommand = exports.deserializeAws_json1_1ImportModelCommand = exports.deserializeAws_json1_1DetectTargetedSentimentCommand = exports.deserializeAws_json1_1DetectSyntaxCommand = exports.deserializeAws_json1_1DetectSentimentCommand = exports.deserializeAws_json1_1DetectPiiEntitiesCommand = exports.deserializeAws_json1_1DetectKeyPhrasesCommand = exports.deserializeAws_json1_1DetectEntitiesCommand = exports.deserializeAws_json1_1DetectDominantLanguageCommand = exports.deserializeAws_json1_1DescribeTopicsDetectionJobCommand = exports.deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand = exports.deserializeAws_json1_1DescribeSentimentDetectionJobCommand = exports.deserializeAws_json1_1DescribeResourcePolicyCommand = exports.deserializeAws_json1_1DescribePiiEntitiesDetectionJobCommand = exports.deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = exports.deserializeAws_json1_1DescribeFlywheelIterationCommand = exports.deserializeAws_json1_1DescribeFlywheelCommand = exports.deserializeAws_json1_1DescribeEventsDetectionJobCommand = exports.deserializeAws_json1_1DescribeEntityRecognizerCommand = exports.deserializeAws_json1_1DescribeEntitiesDetectionJobCommand = exports.deserializeAws_json1_1DescribeEndpointCommand = exports.deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommand = exports.deserializeAws_json1_1DescribeDocumentClassifierCommand = exports.deserializeAws_json1_1DescribeDocumentClassificationJobCommand = exports.deserializeAws_json1_1DescribeDatasetCommand = exports.deserializeAws_json1_1DeleteResourcePolicyCommand = exports.deserializeAws_json1_1DeleteFlywheelCommand = void 0;
|
|
6
|
+
exports.deserializeAws_json1_1UpdateFlywheelCommand = exports.deserializeAws_json1_1UpdateEndpointCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopTrainingEntityRecognizerCommand = exports.deserializeAws_json1_1StopTrainingDocumentClassifierCommand = exports.deserializeAws_json1_1StopTargetedSentimentDetectionJobCommand = exports.deserializeAws_json1_1StopSentimentDetectionJobCommand = exports.deserializeAws_json1_1StopPiiEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StopKeyPhrasesDetectionJobCommand = exports.deserializeAws_json1_1StopEventsDetectionJobCommand = exports.deserializeAws_json1_1StopEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StopDominantLanguageDetectionJobCommand = exports.deserializeAws_json1_1StartTopicsDetectionJobCommand = exports.deserializeAws_json1_1StartTargetedSentimentDetectionJobCommand = exports.deserializeAws_json1_1StartSentimentDetectionJobCommand = exports.deserializeAws_json1_1StartPiiEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand = void 0;
|
|
6
7
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
8
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
9
|
const uuid_1 = require("uuid");
|
|
9
10
|
const ComprehendServiceException_1 = require("../models/ComprehendServiceException");
|
|
10
11
|
const models_0_1 = require("../models/models_0");
|
|
12
|
+
const models_1_1 = require("../models/models_1");
|
|
11
13
|
const serializeAws_json1_1BatchDetectDominantLanguageCommand = async (input, context) => {
|
|
12
14
|
const headers = {
|
|
13
15
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -88,6 +90,16 @@ const serializeAws_json1_1ContainsPiiEntitiesCommand = async (input, context) =>
|
|
|
88
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
91
|
};
|
|
90
92
|
exports.serializeAws_json1_1ContainsPiiEntitiesCommand = serializeAws_json1_1ContainsPiiEntitiesCommand;
|
|
93
|
+
const serializeAws_json1_1CreateDatasetCommand = async (input, context) => {
|
|
94
|
+
const headers = {
|
|
95
|
+
"content-type": "application/x-amz-json-1.1",
|
|
96
|
+
"x-amz-target": "Comprehend_20171127.CreateDataset",
|
|
97
|
+
};
|
|
98
|
+
let body;
|
|
99
|
+
body = JSON.stringify(serializeAws_json1_1CreateDatasetRequest(input, context));
|
|
100
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
+
};
|
|
102
|
+
exports.serializeAws_json1_1CreateDatasetCommand = serializeAws_json1_1CreateDatasetCommand;
|
|
91
103
|
const serializeAws_json1_1CreateDocumentClassifierCommand = async (input, context) => {
|
|
92
104
|
const headers = {
|
|
93
105
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -118,6 +130,16 @@ const serializeAws_json1_1CreateEntityRecognizerCommand = async (input, context)
|
|
|
118
130
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
131
|
};
|
|
120
132
|
exports.serializeAws_json1_1CreateEntityRecognizerCommand = serializeAws_json1_1CreateEntityRecognizerCommand;
|
|
133
|
+
const serializeAws_json1_1CreateFlywheelCommand = async (input, context) => {
|
|
134
|
+
const headers = {
|
|
135
|
+
"content-type": "application/x-amz-json-1.1",
|
|
136
|
+
"x-amz-target": "Comprehend_20171127.CreateFlywheel",
|
|
137
|
+
};
|
|
138
|
+
let body;
|
|
139
|
+
body = JSON.stringify(serializeAws_json1_1CreateFlywheelRequest(input, context));
|
|
140
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
141
|
+
};
|
|
142
|
+
exports.serializeAws_json1_1CreateFlywheelCommand = serializeAws_json1_1CreateFlywheelCommand;
|
|
121
143
|
const serializeAws_json1_1DeleteDocumentClassifierCommand = async (input, context) => {
|
|
122
144
|
const headers = {
|
|
123
145
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -148,6 +170,16 @@ const serializeAws_json1_1DeleteEntityRecognizerCommand = async (input, context)
|
|
|
148
170
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
171
|
};
|
|
150
172
|
exports.serializeAws_json1_1DeleteEntityRecognizerCommand = serializeAws_json1_1DeleteEntityRecognizerCommand;
|
|
173
|
+
const serializeAws_json1_1DeleteFlywheelCommand = async (input, context) => {
|
|
174
|
+
const headers = {
|
|
175
|
+
"content-type": "application/x-amz-json-1.1",
|
|
176
|
+
"x-amz-target": "Comprehend_20171127.DeleteFlywheel",
|
|
177
|
+
};
|
|
178
|
+
let body;
|
|
179
|
+
body = JSON.stringify(serializeAws_json1_1DeleteFlywheelRequest(input, context));
|
|
180
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
181
|
+
};
|
|
182
|
+
exports.serializeAws_json1_1DeleteFlywheelCommand = serializeAws_json1_1DeleteFlywheelCommand;
|
|
151
183
|
const serializeAws_json1_1DeleteResourcePolicyCommand = async (input, context) => {
|
|
152
184
|
const headers = {
|
|
153
185
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -158,6 +190,16 @@ const serializeAws_json1_1DeleteResourcePolicyCommand = async (input, context) =
|
|
|
158
190
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
159
191
|
};
|
|
160
192
|
exports.serializeAws_json1_1DeleteResourcePolicyCommand = serializeAws_json1_1DeleteResourcePolicyCommand;
|
|
193
|
+
const serializeAws_json1_1DescribeDatasetCommand = async (input, context) => {
|
|
194
|
+
const headers = {
|
|
195
|
+
"content-type": "application/x-amz-json-1.1",
|
|
196
|
+
"x-amz-target": "Comprehend_20171127.DescribeDataset",
|
|
197
|
+
};
|
|
198
|
+
let body;
|
|
199
|
+
body = JSON.stringify(serializeAws_json1_1DescribeDatasetRequest(input, context));
|
|
200
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
201
|
+
};
|
|
202
|
+
exports.serializeAws_json1_1DescribeDatasetCommand = serializeAws_json1_1DescribeDatasetCommand;
|
|
161
203
|
const serializeAws_json1_1DescribeDocumentClassificationJobCommand = async (input, context) => {
|
|
162
204
|
const headers = {
|
|
163
205
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -228,6 +270,26 @@ const serializeAws_json1_1DescribeEventsDetectionJobCommand = async (input, cont
|
|
|
228
270
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
271
|
};
|
|
230
272
|
exports.serializeAws_json1_1DescribeEventsDetectionJobCommand = serializeAws_json1_1DescribeEventsDetectionJobCommand;
|
|
273
|
+
const serializeAws_json1_1DescribeFlywheelCommand = async (input, context) => {
|
|
274
|
+
const headers = {
|
|
275
|
+
"content-type": "application/x-amz-json-1.1",
|
|
276
|
+
"x-amz-target": "Comprehend_20171127.DescribeFlywheel",
|
|
277
|
+
};
|
|
278
|
+
let body;
|
|
279
|
+
body = JSON.stringify(serializeAws_json1_1DescribeFlywheelRequest(input, context));
|
|
280
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
281
|
+
};
|
|
282
|
+
exports.serializeAws_json1_1DescribeFlywheelCommand = serializeAws_json1_1DescribeFlywheelCommand;
|
|
283
|
+
const serializeAws_json1_1DescribeFlywheelIterationCommand = async (input, context) => {
|
|
284
|
+
const headers = {
|
|
285
|
+
"content-type": "application/x-amz-json-1.1",
|
|
286
|
+
"x-amz-target": "Comprehend_20171127.DescribeFlywheelIteration",
|
|
287
|
+
};
|
|
288
|
+
let body;
|
|
289
|
+
body = JSON.stringify(serializeAws_json1_1DescribeFlywheelIterationRequest(input, context));
|
|
290
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
291
|
+
};
|
|
292
|
+
exports.serializeAws_json1_1DescribeFlywheelIterationCommand = serializeAws_json1_1DescribeFlywheelIterationCommand;
|
|
231
293
|
const serializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = async (input, context) => {
|
|
232
294
|
const headers = {
|
|
233
295
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -368,6 +430,16 @@ const serializeAws_json1_1ImportModelCommand = async (input, context) => {
|
|
|
368
430
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
369
431
|
};
|
|
370
432
|
exports.serializeAws_json1_1ImportModelCommand = serializeAws_json1_1ImportModelCommand;
|
|
433
|
+
const serializeAws_json1_1ListDatasetsCommand = async (input, context) => {
|
|
434
|
+
const headers = {
|
|
435
|
+
"content-type": "application/x-amz-json-1.1",
|
|
436
|
+
"x-amz-target": "Comprehend_20171127.ListDatasets",
|
|
437
|
+
};
|
|
438
|
+
let body;
|
|
439
|
+
body = JSON.stringify(serializeAws_json1_1ListDatasetsRequest(input, context));
|
|
440
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
441
|
+
};
|
|
442
|
+
exports.serializeAws_json1_1ListDatasetsCommand = serializeAws_json1_1ListDatasetsCommand;
|
|
371
443
|
const serializeAws_json1_1ListDocumentClassificationJobsCommand = async (input, context) => {
|
|
372
444
|
const headers = {
|
|
373
445
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -458,6 +530,26 @@ const serializeAws_json1_1ListEventsDetectionJobsCommand = async (input, context
|
|
|
458
530
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
459
531
|
};
|
|
460
532
|
exports.serializeAws_json1_1ListEventsDetectionJobsCommand = serializeAws_json1_1ListEventsDetectionJobsCommand;
|
|
533
|
+
const serializeAws_json1_1ListFlywheelIterationHistoryCommand = async (input, context) => {
|
|
534
|
+
const headers = {
|
|
535
|
+
"content-type": "application/x-amz-json-1.1",
|
|
536
|
+
"x-amz-target": "Comprehend_20171127.ListFlywheelIterationHistory",
|
|
537
|
+
};
|
|
538
|
+
let body;
|
|
539
|
+
body = JSON.stringify(serializeAws_json1_1ListFlywheelIterationHistoryRequest(input, context));
|
|
540
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
541
|
+
};
|
|
542
|
+
exports.serializeAws_json1_1ListFlywheelIterationHistoryCommand = serializeAws_json1_1ListFlywheelIterationHistoryCommand;
|
|
543
|
+
const serializeAws_json1_1ListFlywheelsCommand = async (input, context) => {
|
|
544
|
+
const headers = {
|
|
545
|
+
"content-type": "application/x-amz-json-1.1",
|
|
546
|
+
"x-amz-target": "Comprehend_20171127.ListFlywheels",
|
|
547
|
+
};
|
|
548
|
+
let body;
|
|
549
|
+
body = JSON.stringify(serializeAws_json1_1ListFlywheelsRequest(input, context));
|
|
550
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
551
|
+
};
|
|
552
|
+
exports.serializeAws_json1_1ListFlywheelsCommand = serializeAws_json1_1ListFlywheelsCommand;
|
|
461
553
|
const serializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = async (input, context) => {
|
|
462
554
|
const headers = {
|
|
463
555
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -568,6 +660,16 @@ const serializeAws_json1_1StartEventsDetectionJobCommand = async (input, context
|
|
|
568
660
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
569
661
|
};
|
|
570
662
|
exports.serializeAws_json1_1StartEventsDetectionJobCommand = serializeAws_json1_1StartEventsDetectionJobCommand;
|
|
663
|
+
const serializeAws_json1_1StartFlywheelIterationCommand = async (input, context) => {
|
|
664
|
+
const headers = {
|
|
665
|
+
"content-type": "application/x-amz-json-1.1",
|
|
666
|
+
"x-amz-target": "Comprehend_20171127.StartFlywheelIteration",
|
|
667
|
+
};
|
|
668
|
+
let body;
|
|
669
|
+
body = JSON.stringify(serializeAws_json1_1StartFlywheelIterationRequest(input, context));
|
|
670
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
671
|
+
};
|
|
672
|
+
exports.serializeAws_json1_1StartFlywheelIterationCommand = serializeAws_json1_1StartFlywheelIterationCommand;
|
|
571
673
|
const serializeAws_json1_1StartKeyPhrasesDetectionJobCommand = async (input, context) => {
|
|
572
674
|
const headers = {
|
|
573
675
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -738,6 +840,16 @@ const serializeAws_json1_1UpdateEndpointCommand = async (input, context) => {
|
|
|
738
840
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
739
841
|
};
|
|
740
842
|
exports.serializeAws_json1_1UpdateEndpointCommand = serializeAws_json1_1UpdateEndpointCommand;
|
|
843
|
+
const serializeAws_json1_1UpdateFlywheelCommand = async (input, context) => {
|
|
844
|
+
const headers = {
|
|
845
|
+
"content-type": "application/x-amz-json-1.1",
|
|
846
|
+
"x-amz-target": "Comprehend_20171127.UpdateFlywheel",
|
|
847
|
+
};
|
|
848
|
+
let body;
|
|
849
|
+
body = JSON.stringify(serializeAws_json1_1UpdateFlywheelRequest(input, context));
|
|
850
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
851
|
+
};
|
|
852
|
+
exports.serializeAws_json1_1UpdateFlywheelCommand = serializeAws_json1_1UpdateFlywheelCommand;
|
|
741
853
|
const deserializeAws_json1_1BatchDetectDominantLanguageCommand = async (output, context) => {
|
|
742
854
|
if (output.statusCode >= 300) {
|
|
743
855
|
return deserializeAws_json1_1BatchDetectDominantLanguageCommandError(output, context);
|
|
@@ -1097,6 +1209,58 @@ const deserializeAws_json1_1ContainsPiiEntitiesCommandError = async (output, con
|
|
|
1097
1209
|
});
|
|
1098
1210
|
}
|
|
1099
1211
|
};
|
|
1212
|
+
const deserializeAws_json1_1CreateDatasetCommand = async (output, context) => {
|
|
1213
|
+
if (output.statusCode >= 300) {
|
|
1214
|
+
return deserializeAws_json1_1CreateDatasetCommandError(output, context);
|
|
1215
|
+
}
|
|
1216
|
+
const data = await parseBody(output.body, context);
|
|
1217
|
+
let contents = {};
|
|
1218
|
+
contents = deserializeAws_json1_1CreateDatasetResponse(data, context);
|
|
1219
|
+
const response = {
|
|
1220
|
+
$metadata: deserializeMetadata(output),
|
|
1221
|
+
...contents,
|
|
1222
|
+
};
|
|
1223
|
+
return Promise.resolve(response);
|
|
1224
|
+
};
|
|
1225
|
+
exports.deserializeAws_json1_1CreateDatasetCommand = deserializeAws_json1_1CreateDatasetCommand;
|
|
1226
|
+
const deserializeAws_json1_1CreateDatasetCommandError = async (output, context) => {
|
|
1227
|
+
const parsedOutput = {
|
|
1228
|
+
...output,
|
|
1229
|
+
body: await parseErrorBody(output.body, context),
|
|
1230
|
+
};
|
|
1231
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1232
|
+
switch (errorCode) {
|
|
1233
|
+
case "InternalServerException":
|
|
1234
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
1235
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1236
|
+
case "InvalidRequestException":
|
|
1237
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1238
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1239
|
+
case "ResourceInUseException":
|
|
1240
|
+
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
1241
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1242
|
+
case "ResourceLimitExceededException":
|
|
1243
|
+
case "com.amazonaws.comprehend#ResourceLimitExceededException":
|
|
1244
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1245
|
+
case "ResourceNotFoundException":
|
|
1246
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
1247
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1248
|
+
case "TooManyRequestsException":
|
|
1249
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
1250
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1251
|
+
case "TooManyTagsException":
|
|
1252
|
+
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
1253
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1254
|
+
default:
|
|
1255
|
+
const parsedBody = parsedOutput.body;
|
|
1256
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1257
|
+
output,
|
|
1258
|
+
parsedBody,
|
|
1259
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1260
|
+
errorCode,
|
|
1261
|
+
});
|
|
1262
|
+
}
|
|
1263
|
+
};
|
|
1100
1264
|
const deserializeAws_json1_1CreateDocumentClassifierCommand = async (output, context) => {
|
|
1101
1265
|
if (output.statusCode >= 300) {
|
|
1102
1266
|
return deserializeAws_json1_1CreateDocumentClassifierCommandError(output, context);
|
|
@@ -1262,6 +1426,67 @@ const deserializeAws_json1_1CreateEntityRecognizerCommandError = async (output,
|
|
|
1262
1426
|
});
|
|
1263
1427
|
}
|
|
1264
1428
|
};
|
|
1429
|
+
const deserializeAws_json1_1CreateFlywheelCommand = async (output, context) => {
|
|
1430
|
+
if (output.statusCode >= 300) {
|
|
1431
|
+
return deserializeAws_json1_1CreateFlywheelCommandError(output, context);
|
|
1432
|
+
}
|
|
1433
|
+
const data = await parseBody(output.body, context);
|
|
1434
|
+
let contents = {};
|
|
1435
|
+
contents = deserializeAws_json1_1CreateFlywheelResponse(data, context);
|
|
1436
|
+
const response = {
|
|
1437
|
+
$metadata: deserializeMetadata(output),
|
|
1438
|
+
...contents,
|
|
1439
|
+
};
|
|
1440
|
+
return Promise.resolve(response);
|
|
1441
|
+
};
|
|
1442
|
+
exports.deserializeAws_json1_1CreateFlywheelCommand = deserializeAws_json1_1CreateFlywheelCommand;
|
|
1443
|
+
const deserializeAws_json1_1CreateFlywheelCommandError = async (output, context) => {
|
|
1444
|
+
const parsedOutput = {
|
|
1445
|
+
...output,
|
|
1446
|
+
body: await parseErrorBody(output.body, context),
|
|
1447
|
+
};
|
|
1448
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1449
|
+
switch (errorCode) {
|
|
1450
|
+
case "InternalServerException":
|
|
1451
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
1452
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1453
|
+
case "InvalidRequestException":
|
|
1454
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1455
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1456
|
+
case "KmsKeyValidationException":
|
|
1457
|
+
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
1458
|
+
throw await deserializeAws_json1_1KmsKeyValidationExceptionResponse(parsedOutput, context);
|
|
1459
|
+
case "ResourceInUseException":
|
|
1460
|
+
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
1461
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1462
|
+
case "ResourceLimitExceededException":
|
|
1463
|
+
case "com.amazonaws.comprehend#ResourceLimitExceededException":
|
|
1464
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1465
|
+
case "ResourceNotFoundException":
|
|
1466
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
1467
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1468
|
+
case "ResourceUnavailableException":
|
|
1469
|
+
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
1470
|
+
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
1471
|
+
case "TooManyRequestsException":
|
|
1472
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
1473
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1474
|
+
case "TooManyTagsException":
|
|
1475
|
+
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
1476
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1477
|
+
case "UnsupportedLanguageException":
|
|
1478
|
+
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
1479
|
+
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
1480
|
+
default:
|
|
1481
|
+
const parsedBody = parsedOutput.body;
|
|
1482
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1483
|
+
output,
|
|
1484
|
+
parsedBody,
|
|
1485
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1486
|
+
errorCode,
|
|
1487
|
+
});
|
|
1488
|
+
}
|
|
1489
|
+
};
|
|
1265
1490
|
const deserializeAws_json1_1DeleteDocumentClassifierCommand = async (output, context) => {
|
|
1266
1491
|
if (output.statusCode >= 300) {
|
|
1267
1492
|
return deserializeAws_json1_1DeleteDocumentClassifierCommandError(output, context);
|
|
@@ -1406,6 +1631,55 @@ const deserializeAws_json1_1DeleteEntityRecognizerCommandError = async (output,
|
|
|
1406
1631
|
});
|
|
1407
1632
|
}
|
|
1408
1633
|
};
|
|
1634
|
+
const deserializeAws_json1_1DeleteFlywheelCommand = async (output, context) => {
|
|
1635
|
+
if (output.statusCode >= 300) {
|
|
1636
|
+
return deserializeAws_json1_1DeleteFlywheelCommandError(output, context);
|
|
1637
|
+
}
|
|
1638
|
+
const data = await parseBody(output.body, context);
|
|
1639
|
+
let contents = {};
|
|
1640
|
+
contents = deserializeAws_json1_1DeleteFlywheelResponse(data, context);
|
|
1641
|
+
const response = {
|
|
1642
|
+
$metadata: deserializeMetadata(output),
|
|
1643
|
+
...contents,
|
|
1644
|
+
};
|
|
1645
|
+
return Promise.resolve(response);
|
|
1646
|
+
};
|
|
1647
|
+
exports.deserializeAws_json1_1DeleteFlywheelCommand = deserializeAws_json1_1DeleteFlywheelCommand;
|
|
1648
|
+
const deserializeAws_json1_1DeleteFlywheelCommandError = async (output, context) => {
|
|
1649
|
+
const parsedOutput = {
|
|
1650
|
+
...output,
|
|
1651
|
+
body: await parseErrorBody(output.body, context),
|
|
1652
|
+
};
|
|
1653
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1654
|
+
switch (errorCode) {
|
|
1655
|
+
case "InternalServerException":
|
|
1656
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
1657
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1658
|
+
case "InvalidRequestException":
|
|
1659
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1660
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1661
|
+
case "ResourceInUseException":
|
|
1662
|
+
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
1663
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1664
|
+
case "ResourceNotFoundException":
|
|
1665
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
1666
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1667
|
+
case "ResourceUnavailableException":
|
|
1668
|
+
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
1669
|
+
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
1670
|
+
case "TooManyRequestsException":
|
|
1671
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
1672
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1673
|
+
default:
|
|
1674
|
+
const parsedBody = parsedOutput.body;
|
|
1675
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1676
|
+
output,
|
|
1677
|
+
parsedBody,
|
|
1678
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1679
|
+
errorCode,
|
|
1680
|
+
});
|
|
1681
|
+
}
|
|
1682
|
+
};
|
|
1409
1683
|
const deserializeAws_json1_1DeleteResourcePolicyCommand = async (output, context) => {
|
|
1410
1684
|
if (output.statusCode >= 300) {
|
|
1411
1685
|
return deserializeAws_json1_1DeleteResourcePolicyCommandError(output, context);
|
|
@@ -1446,6 +1720,49 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
1446
1720
|
});
|
|
1447
1721
|
}
|
|
1448
1722
|
};
|
|
1723
|
+
const deserializeAws_json1_1DescribeDatasetCommand = async (output, context) => {
|
|
1724
|
+
if (output.statusCode >= 300) {
|
|
1725
|
+
return deserializeAws_json1_1DescribeDatasetCommandError(output, context);
|
|
1726
|
+
}
|
|
1727
|
+
const data = await parseBody(output.body, context);
|
|
1728
|
+
let contents = {};
|
|
1729
|
+
contents = deserializeAws_json1_1DescribeDatasetResponse(data, context);
|
|
1730
|
+
const response = {
|
|
1731
|
+
$metadata: deserializeMetadata(output),
|
|
1732
|
+
...contents,
|
|
1733
|
+
};
|
|
1734
|
+
return Promise.resolve(response);
|
|
1735
|
+
};
|
|
1736
|
+
exports.deserializeAws_json1_1DescribeDatasetCommand = deserializeAws_json1_1DescribeDatasetCommand;
|
|
1737
|
+
const deserializeAws_json1_1DescribeDatasetCommandError = async (output, context) => {
|
|
1738
|
+
const parsedOutput = {
|
|
1739
|
+
...output,
|
|
1740
|
+
body: await parseErrorBody(output.body, context),
|
|
1741
|
+
};
|
|
1742
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1743
|
+
switch (errorCode) {
|
|
1744
|
+
case "InternalServerException":
|
|
1745
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
1746
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1747
|
+
case "InvalidRequestException":
|
|
1748
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1749
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1750
|
+
case "ResourceNotFoundException":
|
|
1751
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
1752
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1753
|
+
case "TooManyRequestsException":
|
|
1754
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
1755
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1756
|
+
default:
|
|
1757
|
+
const parsedBody = parsedOutput.body;
|
|
1758
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1759
|
+
output,
|
|
1760
|
+
parsedBody,
|
|
1761
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
1762
|
+
errorCode,
|
|
1763
|
+
});
|
|
1764
|
+
}
|
|
1765
|
+
};
|
|
1449
1766
|
const deserializeAws_json1_1DescribeDocumentClassificationJobCommand = async (output, context) => {
|
|
1450
1767
|
if (output.statusCode >= 300) {
|
|
1451
1768
|
return deserializeAws_json1_1DescribeDocumentClassificationJobCommandError(output, context);
|
|
@@ -1747,6 +2064,92 @@ const deserializeAws_json1_1DescribeEventsDetectionJobCommandError = async (outp
|
|
|
1747
2064
|
});
|
|
1748
2065
|
}
|
|
1749
2066
|
};
|
|
2067
|
+
const deserializeAws_json1_1DescribeFlywheelCommand = async (output, context) => {
|
|
2068
|
+
if (output.statusCode >= 300) {
|
|
2069
|
+
return deserializeAws_json1_1DescribeFlywheelCommandError(output, context);
|
|
2070
|
+
}
|
|
2071
|
+
const data = await parseBody(output.body, context);
|
|
2072
|
+
let contents = {};
|
|
2073
|
+
contents = deserializeAws_json1_1DescribeFlywheelResponse(data, context);
|
|
2074
|
+
const response = {
|
|
2075
|
+
$metadata: deserializeMetadata(output),
|
|
2076
|
+
...contents,
|
|
2077
|
+
};
|
|
2078
|
+
return Promise.resolve(response);
|
|
2079
|
+
};
|
|
2080
|
+
exports.deserializeAws_json1_1DescribeFlywheelCommand = deserializeAws_json1_1DescribeFlywheelCommand;
|
|
2081
|
+
const deserializeAws_json1_1DescribeFlywheelCommandError = async (output, context) => {
|
|
2082
|
+
const parsedOutput = {
|
|
2083
|
+
...output,
|
|
2084
|
+
body: await parseErrorBody(output.body, context),
|
|
2085
|
+
};
|
|
2086
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2087
|
+
switch (errorCode) {
|
|
2088
|
+
case "InternalServerException":
|
|
2089
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
2090
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2091
|
+
case "InvalidRequestException":
|
|
2092
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2093
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2094
|
+
case "ResourceNotFoundException":
|
|
2095
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2096
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2097
|
+
case "TooManyRequestsException":
|
|
2098
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2099
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2100
|
+
default:
|
|
2101
|
+
const parsedBody = parsedOutput.body;
|
|
2102
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2103
|
+
output,
|
|
2104
|
+
parsedBody,
|
|
2105
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2106
|
+
errorCode,
|
|
2107
|
+
});
|
|
2108
|
+
}
|
|
2109
|
+
};
|
|
2110
|
+
const deserializeAws_json1_1DescribeFlywheelIterationCommand = async (output, context) => {
|
|
2111
|
+
if (output.statusCode >= 300) {
|
|
2112
|
+
return deserializeAws_json1_1DescribeFlywheelIterationCommandError(output, context);
|
|
2113
|
+
}
|
|
2114
|
+
const data = await parseBody(output.body, context);
|
|
2115
|
+
let contents = {};
|
|
2116
|
+
contents = deserializeAws_json1_1DescribeFlywheelIterationResponse(data, context);
|
|
2117
|
+
const response = {
|
|
2118
|
+
$metadata: deserializeMetadata(output),
|
|
2119
|
+
...contents,
|
|
2120
|
+
};
|
|
2121
|
+
return Promise.resolve(response);
|
|
2122
|
+
};
|
|
2123
|
+
exports.deserializeAws_json1_1DescribeFlywheelIterationCommand = deserializeAws_json1_1DescribeFlywheelIterationCommand;
|
|
2124
|
+
const deserializeAws_json1_1DescribeFlywheelIterationCommandError = async (output, context) => {
|
|
2125
|
+
const parsedOutput = {
|
|
2126
|
+
...output,
|
|
2127
|
+
body: await parseErrorBody(output.body, context),
|
|
2128
|
+
};
|
|
2129
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2130
|
+
switch (errorCode) {
|
|
2131
|
+
case "InternalServerException":
|
|
2132
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
2133
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2134
|
+
case "InvalidRequestException":
|
|
2135
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2136
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2137
|
+
case "ResourceNotFoundException":
|
|
2138
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2139
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2140
|
+
case "TooManyRequestsException":
|
|
2141
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2142
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2143
|
+
default:
|
|
2144
|
+
const parsedBody = parsedOutput.body;
|
|
2145
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2146
|
+
output,
|
|
2147
|
+
parsedBody,
|
|
2148
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2149
|
+
errorCode,
|
|
2150
|
+
});
|
|
2151
|
+
}
|
|
2152
|
+
};
|
|
1750
2153
|
const deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = async (output, context) => {
|
|
1751
2154
|
if (output.statusCode >= 300) {
|
|
1752
2155
|
return deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommandError(output, context);
|
|
@@ -2342,15 +2745,61 @@ const deserializeAws_json1_1ImportModelCommandError = async (output, context) =>
|
|
|
2342
2745
|
case "ResourceNotFoundException":
|
|
2343
2746
|
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2344
2747
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2345
|
-
case "ResourceUnavailableException":
|
|
2346
|
-
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
2347
|
-
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
2748
|
+
case "ResourceUnavailableException":
|
|
2749
|
+
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
2750
|
+
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
2751
|
+
case "TooManyRequestsException":
|
|
2752
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2753
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2754
|
+
case "TooManyTagsException":
|
|
2755
|
+
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
2756
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
2757
|
+
default:
|
|
2758
|
+
const parsedBody = parsedOutput.body;
|
|
2759
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2760
|
+
output,
|
|
2761
|
+
parsedBody,
|
|
2762
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
2763
|
+
errorCode,
|
|
2764
|
+
});
|
|
2765
|
+
}
|
|
2766
|
+
};
|
|
2767
|
+
const deserializeAws_json1_1ListDatasetsCommand = async (output, context) => {
|
|
2768
|
+
if (output.statusCode >= 300) {
|
|
2769
|
+
return deserializeAws_json1_1ListDatasetsCommandError(output, context);
|
|
2770
|
+
}
|
|
2771
|
+
const data = await parseBody(output.body, context);
|
|
2772
|
+
let contents = {};
|
|
2773
|
+
contents = deserializeAws_json1_1ListDatasetsResponse(data, context);
|
|
2774
|
+
const response = {
|
|
2775
|
+
$metadata: deserializeMetadata(output),
|
|
2776
|
+
...contents,
|
|
2777
|
+
};
|
|
2778
|
+
return Promise.resolve(response);
|
|
2779
|
+
};
|
|
2780
|
+
exports.deserializeAws_json1_1ListDatasetsCommand = deserializeAws_json1_1ListDatasetsCommand;
|
|
2781
|
+
const deserializeAws_json1_1ListDatasetsCommandError = async (output, context) => {
|
|
2782
|
+
const parsedOutput = {
|
|
2783
|
+
...output,
|
|
2784
|
+
body: await parseErrorBody(output.body, context),
|
|
2785
|
+
};
|
|
2786
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2787
|
+
switch (errorCode) {
|
|
2788
|
+
case "InternalServerException":
|
|
2789
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
2790
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2791
|
+
case "InvalidFilterException":
|
|
2792
|
+
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
2793
|
+
throw await deserializeAws_json1_1InvalidFilterExceptionResponse(parsedOutput, context);
|
|
2794
|
+
case "InvalidRequestException":
|
|
2795
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2796
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2797
|
+
case "ResourceNotFoundException":
|
|
2798
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2799
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2348
2800
|
case "TooManyRequestsException":
|
|
2349
2801
|
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2350
2802
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2351
|
-
case "TooManyTagsException":
|
|
2352
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
2353
|
-
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
2354
2803
|
default:
|
|
2355
2804
|
const parsedBody = parsedOutput.body;
|
|
2356
2805
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2739,6 +3188,95 @@ const deserializeAws_json1_1ListEventsDetectionJobsCommandError = async (output,
|
|
|
2739
3188
|
});
|
|
2740
3189
|
}
|
|
2741
3190
|
};
|
|
3191
|
+
const deserializeAws_json1_1ListFlywheelIterationHistoryCommand = async (output, context) => {
|
|
3192
|
+
if (output.statusCode >= 300) {
|
|
3193
|
+
return deserializeAws_json1_1ListFlywheelIterationHistoryCommandError(output, context);
|
|
3194
|
+
}
|
|
3195
|
+
const data = await parseBody(output.body, context);
|
|
3196
|
+
let contents = {};
|
|
3197
|
+
contents = deserializeAws_json1_1ListFlywheelIterationHistoryResponse(data, context);
|
|
3198
|
+
const response = {
|
|
3199
|
+
$metadata: deserializeMetadata(output),
|
|
3200
|
+
...contents,
|
|
3201
|
+
};
|
|
3202
|
+
return Promise.resolve(response);
|
|
3203
|
+
};
|
|
3204
|
+
exports.deserializeAws_json1_1ListFlywheelIterationHistoryCommand = deserializeAws_json1_1ListFlywheelIterationHistoryCommand;
|
|
3205
|
+
const deserializeAws_json1_1ListFlywheelIterationHistoryCommandError = async (output, context) => {
|
|
3206
|
+
const parsedOutput = {
|
|
3207
|
+
...output,
|
|
3208
|
+
body: await parseErrorBody(output.body, context),
|
|
3209
|
+
};
|
|
3210
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3211
|
+
switch (errorCode) {
|
|
3212
|
+
case "InternalServerException":
|
|
3213
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
3214
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
3215
|
+
case "InvalidFilterException":
|
|
3216
|
+
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
3217
|
+
throw await deserializeAws_json1_1InvalidFilterExceptionResponse(parsedOutput, context);
|
|
3218
|
+
case "InvalidRequestException":
|
|
3219
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3220
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
3221
|
+
case "ResourceNotFoundException":
|
|
3222
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
3223
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3224
|
+
case "TooManyRequestsException":
|
|
3225
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3226
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3227
|
+
default:
|
|
3228
|
+
const parsedBody = parsedOutput.body;
|
|
3229
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3230
|
+
output,
|
|
3231
|
+
parsedBody,
|
|
3232
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3233
|
+
errorCode,
|
|
3234
|
+
});
|
|
3235
|
+
}
|
|
3236
|
+
};
|
|
3237
|
+
const deserializeAws_json1_1ListFlywheelsCommand = async (output, context) => {
|
|
3238
|
+
if (output.statusCode >= 300) {
|
|
3239
|
+
return deserializeAws_json1_1ListFlywheelsCommandError(output, context);
|
|
3240
|
+
}
|
|
3241
|
+
const data = await parseBody(output.body, context);
|
|
3242
|
+
let contents = {};
|
|
3243
|
+
contents = deserializeAws_json1_1ListFlywheelsResponse(data, context);
|
|
3244
|
+
const response = {
|
|
3245
|
+
$metadata: deserializeMetadata(output),
|
|
3246
|
+
...contents,
|
|
3247
|
+
};
|
|
3248
|
+
return Promise.resolve(response);
|
|
3249
|
+
};
|
|
3250
|
+
exports.deserializeAws_json1_1ListFlywheelsCommand = deserializeAws_json1_1ListFlywheelsCommand;
|
|
3251
|
+
const deserializeAws_json1_1ListFlywheelsCommandError = async (output, context) => {
|
|
3252
|
+
const parsedOutput = {
|
|
3253
|
+
...output,
|
|
3254
|
+
body: await parseErrorBody(output.body, context),
|
|
3255
|
+
};
|
|
3256
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3257
|
+
switch (errorCode) {
|
|
3258
|
+
case "InternalServerException":
|
|
3259
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
3260
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
3261
|
+
case "InvalidFilterException":
|
|
3262
|
+
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
3263
|
+
throw await deserializeAws_json1_1InvalidFilterExceptionResponse(parsedOutput, context);
|
|
3264
|
+
case "InvalidRequestException":
|
|
3265
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3266
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
3267
|
+
case "TooManyRequestsException":
|
|
3268
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3269
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3270
|
+
default:
|
|
3271
|
+
const parsedBody = parsedOutput.body;
|
|
3272
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3273
|
+
output,
|
|
3274
|
+
parsedBody,
|
|
3275
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3276
|
+
errorCode,
|
|
3277
|
+
});
|
|
3278
|
+
}
|
|
3279
|
+
};
|
|
2742
3280
|
const deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = async (output, context) => {
|
|
2743
3281
|
if (output.statusCode >= 300) {
|
|
2744
3282
|
return deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommandError(output, context);
|
|
@@ -3230,6 +3768,52 @@ const deserializeAws_json1_1StartEventsDetectionJobCommandError = async (output,
|
|
|
3230
3768
|
});
|
|
3231
3769
|
}
|
|
3232
3770
|
};
|
|
3771
|
+
const deserializeAws_json1_1StartFlywheelIterationCommand = async (output, context) => {
|
|
3772
|
+
if (output.statusCode >= 300) {
|
|
3773
|
+
return deserializeAws_json1_1StartFlywheelIterationCommandError(output, context);
|
|
3774
|
+
}
|
|
3775
|
+
const data = await parseBody(output.body, context);
|
|
3776
|
+
let contents = {};
|
|
3777
|
+
contents = deserializeAws_json1_1StartFlywheelIterationResponse(data, context);
|
|
3778
|
+
const response = {
|
|
3779
|
+
$metadata: deserializeMetadata(output),
|
|
3780
|
+
...contents,
|
|
3781
|
+
};
|
|
3782
|
+
return Promise.resolve(response);
|
|
3783
|
+
};
|
|
3784
|
+
exports.deserializeAws_json1_1StartFlywheelIterationCommand = deserializeAws_json1_1StartFlywheelIterationCommand;
|
|
3785
|
+
const deserializeAws_json1_1StartFlywheelIterationCommandError = async (output, context) => {
|
|
3786
|
+
const parsedOutput = {
|
|
3787
|
+
...output,
|
|
3788
|
+
body: await parseErrorBody(output.body, context),
|
|
3789
|
+
};
|
|
3790
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3791
|
+
switch (errorCode) {
|
|
3792
|
+
case "InternalServerException":
|
|
3793
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
3794
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
3795
|
+
case "InvalidRequestException":
|
|
3796
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3797
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
3798
|
+
case "ResourceInUseException":
|
|
3799
|
+
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
3800
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
3801
|
+
case "ResourceNotFoundException":
|
|
3802
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
3803
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3804
|
+
case "TooManyRequestsException":
|
|
3805
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3806
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3807
|
+
default:
|
|
3808
|
+
const parsedBody = parsedOutput.body;
|
|
3809
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3810
|
+
output,
|
|
3811
|
+
parsedBody,
|
|
3812
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
3813
|
+
errorCode,
|
|
3814
|
+
});
|
|
3815
|
+
}
|
|
3816
|
+
};
|
|
3233
3817
|
const deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand = async (output, context) => {
|
|
3234
3818
|
if (output.statusCode >= 300) {
|
|
3235
3819
|
return deserializeAws_json1_1StartKeyPhrasesDetectionJobCommandError(output, context);
|
|
@@ -3970,6 +4554,52 @@ const deserializeAws_json1_1UpdateEndpointCommandError = async (output, context)
|
|
|
3970
4554
|
});
|
|
3971
4555
|
}
|
|
3972
4556
|
};
|
|
4557
|
+
const deserializeAws_json1_1UpdateFlywheelCommand = async (output, context) => {
|
|
4558
|
+
if (output.statusCode >= 300) {
|
|
4559
|
+
return deserializeAws_json1_1UpdateFlywheelCommandError(output, context);
|
|
4560
|
+
}
|
|
4561
|
+
const data = await parseBody(output.body, context);
|
|
4562
|
+
let contents = {};
|
|
4563
|
+
contents = deserializeAws_json1_1UpdateFlywheelResponse(data, context);
|
|
4564
|
+
const response = {
|
|
4565
|
+
$metadata: deserializeMetadata(output),
|
|
4566
|
+
...contents,
|
|
4567
|
+
};
|
|
4568
|
+
return Promise.resolve(response);
|
|
4569
|
+
};
|
|
4570
|
+
exports.deserializeAws_json1_1UpdateFlywheelCommand = deserializeAws_json1_1UpdateFlywheelCommand;
|
|
4571
|
+
const deserializeAws_json1_1UpdateFlywheelCommandError = async (output, context) => {
|
|
4572
|
+
const parsedOutput = {
|
|
4573
|
+
...output,
|
|
4574
|
+
body: await parseErrorBody(output.body, context),
|
|
4575
|
+
};
|
|
4576
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4577
|
+
switch (errorCode) {
|
|
4578
|
+
case "InternalServerException":
|
|
4579
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
4580
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
4581
|
+
case "InvalidRequestException":
|
|
4582
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4583
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
4584
|
+
case "KmsKeyValidationException":
|
|
4585
|
+
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
4586
|
+
throw await deserializeAws_json1_1KmsKeyValidationExceptionResponse(parsedOutput, context);
|
|
4587
|
+
case "ResourceNotFoundException":
|
|
4588
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
4589
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4590
|
+
case "TooManyRequestsException":
|
|
4591
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
4592
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4593
|
+
default:
|
|
4594
|
+
const parsedBody = parsedOutput.body;
|
|
4595
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4596
|
+
output,
|
|
4597
|
+
parsedBody,
|
|
4598
|
+
exceptionCtor: ComprehendServiceException_1.ComprehendServiceException,
|
|
4599
|
+
errorCode,
|
|
4600
|
+
});
|
|
4601
|
+
}
|
|
4602
|
+
};
|
|
3973
4603
|
const deserializeAws_json1_1BatchSizeLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3974
4604
|
const body = parsedOutput.body;
|
|
3975
4605
|
const deserialized = deserializeAws_json1_1BatchSizeLimitExceededException(body, context);
|
|
@@ -3982,7 +4612,7 @@ const deserializeAws_json1_1BatchSizeLimitExceededExceptionResponse = async (par
|
|
|
3982
4612
|
const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
|
|
3983
4613
|
const body = parsedOutput.body;
|
|
3984
4614
|
const deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
3985
|
-
const exception = new
|
|
4615
|
+
const exception = new models_1_1.ConcurrentModificationException({
|
|
3986
4616
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3987
4617
|
...deserialized,
|
|
3988
4618
|
});
|
|
@@ -4090,7 +4720,7 @@ const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (parsedOutp
|
|
|
4090
4720
|
const deserializeAws_json1_1TooManyTagKeysExceptionResponse = async (parsedOutput, context) => {
|
|
4091
4721
|
const body = parsedOutput.body;
|
|
4092
4722
|
const deserialized = deserializeAws_json1_1TooManyTagKeysException(body, context);
|
|
4093
|
-
const exception = new
|
|
4723
|
+
const exception = new models_1_1.TooManyTagKeysException({
|
|
4094
4724
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4095
4725
|
...deserialized,
|
|
4096
4726
|
});
|
|
@@ -4184,6 +4814,19 @@ const serializeAws_json1_1ContainsPiiEntitiesRequest = (input, context) => {
|
|
|
4184
4814
|
...(input.Text != null && { Text: input.Text }),
|
|
4185
4815
|
};
|
|
4186
4816
|
};
|
|
4817
|
+
const serializeAws_json1_1CreateDatasetRequest = (input, context) => {
|
|
4818
|
+
return {
|
|
4819
|
+
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
4820
|
+
...(input.DatasetName != null && { DatasetName: input.DatasetName }),
|
|
4821
|
+
...(input.DatasetType != null && { DatasetType: input.DatasetType }),
|
|
4822
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4823
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
4824
|
+
...(input.InputDataConfig != null && {
|
|
4825
|
+
InputDataConfig: serializeAws_json1_1DatasetInputDataConfig(input.InputDataConfig, context),
|
|
4826
|
+
}),
|
|
4827
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4828
|
+
};
|
|
4829
|
+
};
|
|
4187
4830
|
const serializeAws_json1_1CreateDocumentClassifierRequest = (input, context) => {
|
|
4188
4831
|
return {
|
|
4189
4832
|
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
@@ -4211,6 +4854,7 @@ const serializeAws_json1_1CreateEndpointRequest = (input, context) => {
|
|
|
4211
4854
|
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4212
4855
|
...(input.DesiredInferenceUnits != null && { DesiredInferenceUnits: input.DesiredInferenceUnits }),
|
|
4213
4856
|
...(input.EndpointName != null && { EndpointName: input.EndpointName }),
|
|
4857
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
4214
4858
|
...(input.ModelArn != null && { ModelArn: input.ModelArn }),
|
|
4215
4859
|
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4216
4860
|
};
|
|
@@ -4222,22 +4866,122 @@ const serializeAws_json1_1CreateEntityRecognizerRequest = (input, context) => {
|
|
|
4222
4866
|
...(input.InputDataConfig != null && {
|
|
4223
4867
|
InputDataConfig: serializeAws_json1_1EntityRecognizerInputDataConfig(input.InputDataConfig, context),
|
|
4224
4868
|
}),
|
|
4225
|
-
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4226
|
-
...(input.ModelKmsKeyId != null && { ModelKmsKeyId: input.ModelKmsKeyId }),
|
|
4227
|
-
...(input.ModelPolicy != null && { ModelPolicy: input.ModelPolicy }),
|
|
4228
|
-
...(input.RecognizerName != null && { RecognizerName: input.RecognizerName }),
|
|
4229
|
-
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4230
|
-
...(input.VersionName != null && { VersionName: input.VersionName }),
|
|
4231
|
-
...(input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
|
|
4232
|
-
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4869
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4870
|
+
...(input.ModelKmsKeyId != null && { ModelKmsKeyId: input.ModelKmsKeyId }),
|
|
4871
|
+
...(input.ModelPolicy != null && { ModelPolicy: input.ModelPolicy }),
|
|
4872
|
+
...(input.RecognizerName != null && { RecognizerName: input.RecognizerName }),
|
|
4873
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4874
|
+
...(input.VersionName != null && { VersionName: input.VersionName }),
|
|
4875
|
+
...(input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
|
|
4876
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4877
|
+
};
|
|
4878
|
+
};
|
|
4879
|
+
const serializeAws_json1_1CreateFlywheelRequest = (input, context) => {
|
|
4880
|
+
return {
|
|
4881
|
+
...(input.ActiveModelArn != null && { ActiveModelArn: input.ActiveModelArn }),
|
|
4882
|
+
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
4883
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4884
|
+
...(input.DataLakeS3Uri != null && { DataLakeS3Uri: input.DataLakeS3Uri }),
|
|
4885
|
+
...(input.DataSecurityConfig != null && {
|
|
4886
|
+
DataSecurityConfig: serializeAws_json1_1DataSecurityConfig(input.DataSecurityConfig, context),
|
|
4887
|
+
}),
|
|
4888
|
+
...(input.FlywheelName != null && { FlywheelName: input.FlywheelName }),
|
|
4889
|
+
...(input.ModelType != null && { ModelType: input.ModelType }),
|
|
4890
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4891
|
+
...(input.TaskConfig != null && { TaskConfig: serializeAws_json1_1TaskConfig(input.TaskConfig, context) }),
|
|
4892
|
+
};
|
|
4893
|
+
};
|
|
4894
|
+
const serializeAws_json1_1CustomerInputStringList = (input, context) => {
|
|
4895
|
+
return input
|
|
4896
|
+
.filter((e) => e != null)
|
|
4897
|
+
.map((entry) => {
|
|
4898
|
+
return entry;
|
|
4899
|
+
});
|
|
4900
|
+
};
|
|
4901
|
+
const serializeAws_json1_1DataSecurityConfig = (input, context) => {
|
|
4902
|
+
return {
|
|
4903
|
+
...(input.DataLakeKmsKeyId != null && { DataLakeKmsKeyId: input.DataLakeKmsKeyId }),
|
|
4904
|
+
...(input.ModelKmsKeyId != null && { ModelKmsKeyId: input.ModelKmsKeyId }),
|
|
4905
|
+
...(input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
|
|
4906
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4907
|
+
};
|
|
4908
|
+
};
|
|
4909
|
+
const serializeAws_json1_1DatasetAugmentedManifestsList = (input, context) => {
|
|
4910
|
+
return input
|
|
4911
|
+
.filter((e) => e != null)
|
|
4912
|
+
.map((entry) => {
|
|
4913
|
+
return serializeAws_json1_1DatasetAugmentedManifestsListItem(entry, context);
|
|
4914
|
+
});
|
|
4915
|
+
};
|
|
4916
|
+
const serializeAws_json1_1DatasetAugmentedManifestsListItem = (input, context) => {
|
|
4917
|
+
return {
|
|
4918
|
+
...(input.AnnotationDataS3Uri != null && { AnnotationDataS3Uri: input.AnnotationDataS3Uri }),
|
|
4919
|
+
...(input.AttributeNames != null && {
|
|
4920
|
+
AttributeNames: serializeAws_json1_1AttributeNamesList(input.AttributeNames, context),
|
|
4921
|
+
}),
|
|
4922
|
+
...(input.DocumentType != null && { DocumentType: input.DocumentType }),
|
|
4923
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4924
|
+
...(input.SourceDocumentsS3Uri != null && { SourceDocumentsS3Uri: input.SourceDocumentsS3Uri }),
|
|
4925
|
+
};
|
|
4926
|
+
};
|
|
4927
|
+
const serializeAws_json1_1DatasetDocumentClassifierInputDataConfig = (input, context) => {
|
|
4928
|
+
return {
|
|
4929
|
+
...(input.LabelDelimiter != null && { LabelDelimiter: input.LabelDelimiter }),
|
|
4930
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4931
|
+
};
|
|
4932
|
+
};
|
|
4933
|
+
const serializeAws_json1_1DatasetEntityRecognizerAnnotations = (input, context) => {
|
|
4934
|
+
return {
|
|
4935
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4936
|
+
};
|
|
4937
|
+
};
|
|
4938
|
+
const serializeAws_json1_1DatasetEntityRecognizerDocuments = (input, context) => {
|
|
4939
|
+
return {
|
|
4940
|
+
...(input.InputFormat != null && { InputFormat: input.InputFormat }),
|
|
4941
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4942
|
+
};
|
|
4943
|
+
};
|
|
4944
|
+
const serializeAws_json1_1DatasetEntityRecognizerEntityList = (input, context) => {
|
|
4945
|
+
return {
|
|
4946
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4947
|
+
};
|
|
4948
|
+
};
|
|
4949
|
+
const serializeAws_json1_1DatasetEntityRecognizerInputDataConfig = (input, context) => {
|
|
4950
|
+
return {
|
|
4951
|
+
...(input.Annotations != null && {
|
|
4952
|
+
Annotations: serializeAws_json1_1DatasetEntityRecognizerAnnotations(input.Annotations, context),
|
|
4953
|
+
}),
|
|
4954
|
+
...(input.Documents != null && {
|
|
4955
|
+
Documents: serializeAws_json1_1DatasetEntityRecognizerDocuments(input.Documents, context),
|
|
4956
|
+
}),
|
|
4957
|
+
...(input.EntityList != null && {
|
|
4958
|
+
EntityList: serializeAws_json1_1DatasetEntityRecognizerEntityList(input.EntityList, context),
|
|
4959
|
+
}),
|
|
4960
|
+
};
|
|
4961
|
+
};
|
|
4962
|
+
const serializeAws_json1_1DatasetFilter = (input, context) => {
|
|
4963
|
+
return {
|
|
4964
|
+
...(input.CreationTimeAfter != null && { CreationTimeAfter: Math.round(input.CreationTimeAfter.getTime() / 1000) }),
|
|
4965
|
+
...(input.CreationTimeBefore != null && {
|
|
4966
|
+
CreationTimeBefore: Math.round(input.CreationTimeBefore.getTime() / 1000),
|
|
4967
|
+
}),
|
|
4968
|
+
...(input.DatasetType != null && { DatasetType: input.DatasetType }),
|
|
4969
|
+
...(input.Status != null && { Status: input.Status }),
|
|
4233
4970
|
};
|
|
4234
4971
|
};
|
|
4235
|
-
const
|
|
4236
|
-
return
|
|
4237
|
-
.
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4972
|
+
const serializeAws_json1_1DatasetInputDataConfig = (input, context) => {
|
|
4973
|
+
return {
|
|
4974
|
+
...(input.AugmentedManifests != null && {
|
|
4975
|
+
AugmentedManifests: serializeAws_json1_1DatasetAugmentedManifestsList(input.AugmentedManifests, context),
|
|
4976
|
+
}),
|
|
4977
|
+
...(input.DataFormat != null && { DataFormat: input.DataFormat }),
|
|
4978
|
+
...(input.DocumentClassifierInputDataConfig != null && {
|
|
4979
|
+
DocumentClassifierInputDataConfig: serializeAws_json1_1DatasetDocumentClassifierInputDataConfig(input.DocumentClassifierInputDataConfig, context),
|
|
4980
|
+
}),
|
|
4981
|
+
...(input.EntityRecognizerInputDataConfig != null && {
|
|
4982
|
+
EntityRecognizerInputDataConfig: serializeAws_json1_1DatasetEntityRecognizerInputDataConfig(input.EntityRecognizerInputDataConfig, context),
|
|
4983
|
+
}),
|
|
4984
|
+
};
|
|
4241
4985
|
};
|
|
4242
4986
|
const serializeAws_json1_1DeleteDocumentClassifierRequest = (input, context) => {
|
|
4243
4987
|
return {
|
|
@@ -4254,12 +4998,22 @@ const serializeAws_json1_1DeleteEntityRecognizerRequest = (input, context) => {
|
|
|
4254
4998
|
...(input.EntityRecognizerArn != null && { EntityRecognizerArn: input.EntityRecognizerArn }),
|
|
4255
4999
|
};
|
|
4256
5000
|
};
|
|
5001
|
+
const serializeAws_json1_1DeleteFlywheelRequest = (input, context) => {
|
|
5002
|
+
return {
|
|
5003
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
5004
|
+
};
|
|
5005
|
+
};
|
|
4257
5006
|
const serializeAws_json1_1DeleteResourcePolicyRequest = (input, context) => {
|
|
4258
5007
|
return {
|
|
4259
5008
|
...(input.PolicyRevisionId != null && { PolicyRevisionId: input.PolicyRevisionId }),
|
|
4260
5009
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4261
5010
|
};
|
|
4262
5011
|
};
|
|
5012
|
+
const serializeAws_json1_1DescribeDatasetRequest = (input, context) => {
|
|
5013
|
+
return {
|
|
5014
|
+
...(input.DatasetArn != null && { DatasetArn: input.DatasetArn }),
|
|
5015
|
+
};
|
|
5016
|
+
};
|
|
4263
5017
|
const serializeAws_json1_1DescribeDocumentClassificationJobRequest = (input, context) => {
|
|
4264
5018
|
return {
|
|
4265
5019
|
...(input.JobId != null && { JobId: input.JobId }),
|
|
@@ -4295,6 +5049,17 @@ const serializeAws_json1_1DescribeEventsDetectionJobRequest = (input, context) =
|
|
|
4295
5049
|
...(input.JobId != null && { JobId: input.JobId }),
|
|
4296
5050
|
};
|
|
4297
5051
|
};
|
|
5052
|
+
const serializeAws_json1_1DescribeFlywheelIterationRequest = (input, context) => {
|
|
5053
|
+
return {
|
|
5054
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
5055
|
+
...(input.FlywheelIterationId != null && { FlywheelIterationId: input.FlywheelIterationId }),
|
|
5056
|
+
};
|
|
5057
|
+
};
|
|
5058
|
+
const serializeAws_json1_1DescribeFlywheelRequest = (input, context) => {
|
|
5059
|
+
return {
|
|
5060
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
5061
|
+
};
|
|
5062
|
+
};
|
|
4298
5063
|
const serializeAws_json1_1DescribeKeyPhrasesDetectionJobRequest = (input, context) => {
|
|
4299
5064
|
return {
|
|
4300
5065
|
...(input.JobId != null && { JobId: input.JobId }),
|
|
@@ -4371,6 +5136,12 @@ const serializeAws_json1_1DetectTargetedSentimentRequest = (input, context) => {
|
|
|
4371
5136
|
...(input.Text != null && { Text: input.Text }),
|
|
4372
5137
|
};
|
|
4373
5138
|
};
|
|
5139
|
+
const serializeAws_json1_1DocumentClassificationConfig = (input, context) => {
|
|
5140
|
+
return {
|
|
5141
|
+
...(input.Labels != null && { Labels: serializeAws_json1_1LabelsList(input.Labels, context) }),
|
|
5142
|
+
...(input.Mode != null && { Mode: input.Mode }),
|
|
5143
|
+
};
|
|
5144
|
+
};
|
|
4374
5145
|
const serializeAws_json1_1DocumentClassificationJobFilter = (input, context) => {
|
|
4375
5146
|
return {
|
|
4376
5147
|
...(input.JobName != null && { JobName: input.JobName }),
|
|
@@ -4407,6 +5178,7 @@ const serializeAws_json1_1DocumentClassifierInputDataConfig = (input, context) =
|
|
|
4407
5178
|
};
|
|
4408
5179
|
const serializeAws_json1_1DocumentClassifierOutputDataConfig = (input, context) => {
|
|
4409
5180
|
return {
|
|
5181
|
+
...(input.FlywheelStatsS3Prefix != null && { FlywheelStatsS3Prefix: input.FlywheelStatsS3Prefix }),
|
|
4410
5182
|
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
4411
5183
|
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4412
5184
|
};
|
|
@@ -4446,6 +5218,11 @@ const serializeAws_json1_1EntitiesDetectionJobFilter = (input, context) => {
|
|
|
4446
5218
|
...(input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4447
5219
|
};
|
|
4448
5220
|
};
|
|
5221
|
+
const serializeAws_json1_1EntityRecognitionConfig = (input, context) => {
|
|
5222
|
+
return {
|
|
5223
|
+
...(input.EntityTypes != null && { EntityTypes: serializeAws_json1_1EntityTypesList(input.EntityTypes, context) }),
|
|
5224
|
+
};
|
|
5225
|
+
};
|
|
4449
5226
|
const serializeAws_json1_1EntityRecognizerAnnotations = (input, context) => {
|
|
4450
5227
|
return {
|
|
4451
5228
|
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
@@ -4517,6 +5294,23 @@ const serializeAws_json1_1EventsDetectionJobFilter = (input, context) => {
|
|
|
4517
5294
|
...(input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4518
5295
|
};
|
|
4519
5296
|
};
|
|
5297
|
+
const serializeAws_json1_1FlywheelFilter = (input, context) => {
|
|
5298
|
+
return {
|
|
5299
|
+
...(input.CreationTimeAfter != null && { CreationTimeAfter: Math.round(input.CreationTimeAfter.getTime() / 1000) }),
|
|
5300
|
+
...(input.CreationTimeBefore != null && {
|
|
5301
|
+
CreationTimeBefore: Math.round(input.CreationTimeBefore.getTime() / 1000),
|
|
5302
|
+
}),
|
|
5303
|
+
...(input.Status != null && { Status: input.Status }),
|
|
5304
|
+
};
|
|
5305
|
+
};
|
|
5306
|
+
const serializeAws_json1_1FlywheelIterationFilter = (input, context) => {
|
|
5307
|
+
return {
|
|
5308
|
+
...(input.CreationTimeAfter != null && { CreationTimeAfter: Math.round(input.CreationTimeAfter.getTime() / 1000) }),
|
|
5309
|
+
...(input.CreationTimeBefore != null && {
|
|
5310
|
+
CreationTimeBefore: Math.round(input.CreationTimeBefore.getTime() / 1000),
|
|
5311
|
+
}),
|
|
5312
|
+
};
|
|
5313
|
+
};
|
|
4520
5314
|
const serializeAws_json1_1ImportModelRequest = (input, context) => {
|
|
4521
5315
|
return {
|
|
4522
5316
|
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
@@ -4544,6 +5338,21 @@ const serializeAws_json1_1KeyPhrasesDetectionJobFilter = (input, context) => {
|
|
|
4544
5338
|
...(input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4545
5339
|
};
|
|
4546
5340
|
};
|
|
5341
|
+
const serializeAws_json1_1LabelsList = (input, context) => {
|
|
5342
|
+
return input
|
|
5343
|
+
.filter((e) => e != null)
|
|
5344
|
+
.map((entry) => {
|
|
5345
|
+
return entry;
|
|
5346
|
+
});
|
|
5347
|
+
};
|
|
5348
|
+
const serializeAws_json1_1ListDatasetsRequest = (input, context) => {
|
|
5349
|
+
return {
|
|
5350
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1DatasetFilter(input.Filter, context) }),
|
|
5351
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
5352
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
5353
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
5354
|
+
};
|
|
5355
|
+
};
|
|
4547
5356
|
const serializeAws_json1_1ListDocumentClassificationJobsRequest = (input, context) => {
|
|
4548
5357
|
return {
|
|
4549
5358
|
...(input.Filter != null && { Filter: serializeAws_json1_1DocumentClassificationJobFilter(input.Filter, context) }),
|
|
@@ -4607,6 +5416,21 @@ const serializeAws_json1_1ListEventsDetectionJobsRequest = (input, context) => {
|
|
|
4607
5416
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4608
5417
|
};
|
|
4609
5418
|
};
|
|
5419
|
+
const serializeAws_json1_1ListFlywheelIterationHistoryRequest = (input, context) => {
|
|
5420
|
+
return {
|
|
5421
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1FlywheelIterationFilter(input.Filter, context) }),
|
|
5422
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
5423
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
5424
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
5425
|
+
};
|
|
5426
|
+
};
|
|
5427
|
+
const serializeAws_json1_1ListFlywheelsRequest = (input, context) => {
|
|
5428
|
+
return {
|
|
5429
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1FlywheelFilter(input.Filter, context) }),
|
|
5430
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
5431
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
5432
|
+
};
|
|
5433
|
+
};
|
|
4610
5434
|
const serializeAws_json1_1ListKeyPhrasesDetectionJobsRequest = (input, context) => {
|
|
4611
5435
|
return {
|
|
4612
5436
|
...(input.Filter != null && { Filter: serializeAws_json1_1KeyPhrasesDetectionJobFilter(input.Filter, context) }),
|
|
@@ -4713,6 +5537,7 @@ const serializeAws_json1_1StartDocumentClassificationJobRequest = (input, contex
|
|
|
4713
5537
|
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
4714
5538
|
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4715
5539
|
...(input.DocumentClassifierArn != null && { DocumentClassifierArn: input.DocumentClassifierArn }),
|
|
5540
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
4716
5541
|
...(input.InputDataConfig != null && {
|
|
4717
5542
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
4718
5543
|
}),
|
|
@@ -4746,6 +5571,7 @@ const serializeAws_json1_1StartEntitiesDetectionJobRequest = (input, context) =>
|
|
|
4746
5571
|
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
4747
5572
|
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4748
5573
|
...(input.EntityRecognizerArn != null && { EntityRecognizerArn: input.EntityRecognizerArn }),
|
|
5574
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
4749
5575
|
...(input.InputDataConfig != null && {
|
|
4750
5576
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
4751
5577
|
}),
|
|
@@ -4777,6 +5603,12 @@ const serializeAws_json1_1StartEventsDetectionJobRequest = (input, context) => {
|
|
|
4777
5603
|
}),
|
|
4778
5604
|
};
|
|
4779
5605
|
};
|
|
5606
|
+
const serializeAws_json1_1StartFlywheelIterationRequest = (input, context) => {
|
|
5607
|
+
return {
|
|
5608
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
5609
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
5610
|
+
};
|
|
5611
|
+
};
|
|
4780
5612
|
const serializeAws_json1_1StartKeyPhrasesDetectionJobRequest = (input, context) => {
|
|
4781
5613
|
return {
|
|
4782
5614
|
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
@@ -4957,6 +5789,17 @@ const serializeAws_json1_1TargetEventTypes = (input, context) => {
|
|
|
4957
5789
|
return entry;
|
|
4958
5790
|
});
|
|
4959
5791
|
};
|
|
5792
|
+
const serializeAws_json1_1TaskConfig = (input, context) => {
|
|
5793
|
+
return {
|
|
5794
|
+
...(input.DocumentClassificationConfig != null && {
|
|
5795
|
+
DocumentClassificationConfig: serializeAws_json1_1DocumentClassificationConfig(input.DocumentClassificationConfig, context),
|
|
5796
|
+
}),
|
|
5797
|
+
...(input.EntityRecognitionConfig != null && {
|
|
5798
|
+
EntityRecognitionConfig: serializeAws_json1_1EntityRecognitionConfig(input.EntityRecognitionConfig, context),
|
|
5799
|
+
}),
|
|
5800
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
5801
|
+
};
|
|
5802
|
+
};
|
|
4960
5803
|
const serializeAws_json1_1TopicsDetectionJobFilter = (input, context) => {
|
|
4961
5804
|
return {
|
|
4962
5805
|
...(input.JobName != null && { JobName: input.JobName }),
|
|
@@ -4971,12 +5814,30 @@ const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
|
4971
5814
|
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
4972
5815
|
};
|
|
4973
5816
|
};
|
|
5817
|
+
const serializeAws_json1_1UpdateDataSecurityConfig = (input, context) => {
|
|
5818
|
+
return {
|
|
5819
|
+
...(input.ModelKmsKeyId != null && { ModelKmsKeyId: input.ModelKmsKeyId }),
|
|
5820
|
+
...(input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
|
|
5821
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
5822
|
+
};
|
|
5823
|
+
};
|
|
4974
5824
|
const serializeAws_json1_1UpdateEndpointRequest = (input, context) => {
|
|
4975
5825
|
return {
|
|
4976
5826
|
...(input.DesiredDataAccessRoleArn != null && { DesiredDataAccessRoleArn: input.DesiredDataAccessRoleArn }),
|
|
4977
5827
|
...(input.DesiredInferenceUnits != null && { DesiredInferenceUnits: input.DesiredInferenceUnits }),
|
|
4978
5828
|
...(input.DesiredModelArn != null && { DesiredModelArn: input.DesiredModelArn }),
|
|
4979
5829
|
...(input.EndpointArn != null && { EndpointArn: input.EndpointArn }),
|
|
5830
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
5831
|
+
};
|
|
5832
|
+
};
|
|
5833
|
+
const serializeAws_json1_1UpdateFlywheelRequest = (input, context) => {
|
|
5834
|
+
return {
|
|
5835
|
+
...(input.ActiveModelArn != null && { ActiveModelArn: input.ActiveModelArn }),
|
|
5836
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
5837
|
+
...(input.DataSecurityConfig != null && {
|
|
5838
|
+
DataSecurityConfig: serializeAws_json1_1UpdateDataSecurityConfig(input.DataSecurityConfig, context),
|
|
5839
|
+
}),
|
|
5840
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
4980
5841
|
};
|
|
4981
5842
|
};
|
|
4982
5843
|
const serializeAws_json1_1VpcConfig = (input, context) => {
|
|
@@ -5198,6 +6059,11 @@ const deserializeAws_json1_1ContainsPiiEntitiesResponse = (output, context) => {
|
|
|
5198
6059
|
Labels: output.Labels != null ? deserializeAws_json1_1ListOfEntityLabels(output.Labels, context) : undefined,
|
|
5199
6060
|
};
|
|
5200
6061
|
};
|
|
6062
|
+
const deserializeAws_json1_1CreateDatasetResponse = (output, context) => {
|
|
6063
|
+
return {
|
|
6064
|
+
DatasetArn: (0, smithy_client_1.expectString)(output.DatasetArn),
|
|
6065
|
+
};
|
|
6066
|
+
};
|
|
5201
6067
|
const deserializeAws_json1_1CreateDocumentClassifierResponse = (output, context) => {
|
|
5202
6068
|
return {
|
|
5203
6069
|
DocumentClassifierArn: (0, smithy_client_1.expectString)(output.DocumentClassifierArn),
|
|
@@ -5206,6 +6072,7 @@ const deserializeAws_json1_1CreateDocumentClassifierResponse = (output, context)
|
|
|
5206
6072
|
const deserializeAws_json1_1CreateEndpointResponse = (output, context) => {
|
|
5207
6073
|
return {
|
|
5208
6074
|
EndpointArn: (0, smithy_client_1.expectString)(output.EndpointArn),
|
|
6075
|
+
ModelArn: (0, smithy_client_1.expectString)(output.ModelArn),
|
|
5209
6076
|
};
|
|
5210
6077
|
};
|
|
5211
6078
|
const deserializeAws_json1_1CreateEntityRecognizerResponse = (output, context) => {
|
|
@@ -5213,6 +6080,47 @@ const deserializeAws_json1_1CreateEntityRecognizerResponse = (output, context) =
|
|
|
5213
6080
|
EntityRecognizerArn: (0, smithy_client_1.expectString)(output.EntityRecognizerArn),
|
|
5214
6081
|
};
|
|
5215
6082
|
};
|
|
6083
|
+
const deserializeAws_json1_1CreateFlywheelResponse = (output, context) => {
|
|
6084
|
+
return {
|
|
6085
|
+
ActiveModelArn: (0, smithy_client_1.expectString)(output.ActiveModelArn),
|
|
6086
|
+
FlywheelArn: (0, smithy_client_1.expectString)(output.FlywheelArn),
|
|
6087
|
+
};
|
|
6088
|
+
};
|
|
6089
|
+
const deserializeAws_json1_1DataSecurityConfig = (output, context) => {
|
|
6090
|
+
return {
|
|
6091
|
+
DataLakeKmsKeyId: (0, smithy_client_1.expectString)(output.DataLakeKmsKeyId),
|
|
6092
|
+
ModelKmsKeyId: (0, smithy_client_1.expectString)(output.ModelKmsKeyId),
|
|
6093
|
+
VolumeKmsKeyId: (0, smithy_client_1.expectString)(output.VolumeKmsKeyId),
|
|
6094
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
6095
|
+
};
|
|
6096
|
+
};
|
|
6097
|
+
const deserializeAws_json1_1DatasetProperties = (output, context) => {
|
|
6098
|
+
return {
|
|
6099
|
+
CreationTime: output.CreationTime != null
|
|
6100
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
6101
|
+
: undefined,
|
|
6102
|
+
DatasetArn: (0, smithy_client_1.expectString)(output.DatasetArn),
|
|
6103
|
+
DatasetName: (0, smithy_client_1.expectString)(output.DatasetName),
|
|
6104
|
+
DatasetS3Uri: (0, smithy_client_1.expectString)(output.DatasetS3Uri),
|
|
6105
|
+
DatasetType: (0, smithy_client_1.expectString)(output.DatasetType),
|
|
6106
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
6107
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
6108
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
6109
|
+
NumberOfDocuments: (0, smithy_client_1.expectLong)(output.NumberOfDocuments),
|
|
6110
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
6111
|
+
};
|
|
6112
|
+
};
|
|
6113
|
+
const deserializeAws_json1_1DatasetPropertiesList = (output, context) => {
|
|
6114
|
+
const retVal = (output || [])
|
|
6115
|
+
.filter((e) => e != null)
|
|
6116
|
+
.map((entry) => {
|
|
6117
|
+
if (entry === null) {
|
|
6118
|
+
return null;
|
|
6119
|
+
}
|
|
6120
|
+
return deserializeAws_json1_1DatasetProperties(entry, context);
|
|
6121
|
+
});
|
|
6122
|
+
return retVal;
|
|
6123
|
+
};
|
|
5216
6124
|
const deserializeAws_json1_1DeleteDocumentClassifierResponse = (output, context) => {
|
|
5217
6125
|
return {};
|
|
5218
6126
|
};
|
|
@@ -5222,9 +6130,19 @@ const deserializeAws_json1_1DeleteEndpointResponse = (output, context) => {
|
|
|
5222
6130
|
const deserializeAws_json1_1DeleteEntityRecognizerResponse = (output, context) => {
|
|
5223
6131
|
return {};
|
|
5224
6132
|
};
|
|
6133
|
+
const deserializeAws_json1_1DeleteFlywheelResponse = (output, context) => {
|
|
6134
|
+
return {};
|
|
6135
|
+
};
|
|
5225
6136
|
const deserializeAws_json1_1DeleteResourcePolicyResponse = (output, context) => {
|
|
5226
6137
|
return {};
|
|
5227
6138
|
};
|
|
6139
|
+
const deserializeAws_json1_1DescribeDatasetResponse = (output, context) => {
|
|
6140
|
+
return {
|
|
6141
|
+
DatasetProperties: output.DatasetProperties != null
|
|
6142
|
+
? deserializeAws_json1_1DatasetProperties(output.DatasetProperties, context)
|
|
6143
|
+
: undefined,
|
|
6144
|
+
};
|
|
6145
|
+
};
|
|
5228
6146
|
const deserializeAws_json1_1DescribeDocumentClassificationJobResponse = (output, context) => {
|
|
5229
6147
|
return {
|
|
5230
6148
|
DocumentClassificationJobProperties: output.DocumentClassificationJobProperties != null
|
|
@@ -5274,6 +6192,20 @@ const deserializeAws_json1_1DescribeEventsDetectionJobResponse = (output, contex
|
|
|
5274
6192
|
: undefined,
|
|
5275
6193
|
};
|
|
5276
6194
|
};
|
|
6195
|
+
const deserializeAws_json1_1DescribeFlywheelIterationResponse = (output, context) => {
|
|
6196
|
+
return {
|
|
6197
|
+
FlywheelIterationProperties: output.FlywheelIterationProperties != null
|
|
6198
|
+
? deserializeAws_json1_1FlywheelIterationProperties(output.FlywheelIterationProperties, context)
|
|
6199
|
+
: undefined,
|
|
6200
|
+
};
|
|
6201
|
+
};
|
|
6202
|
+
const deserializeAws_json1_1DescribeFlywheelResponse = (output, context) => {
|
|
6203
|
+
return {
|
|
6204
|
+
FlywheelProperties: output.FlywheelProperties != null
|
|
6205
|
+
? deserializeAws_json1_1FlywheelProperties(output.FlywheelProperties, context)
|
|
6206
|
+
: undefined,
|
|
6207
|
+
};
|
|
6208
|
+
};
|
|
5277
6209
|
const deserializeAws_json1_1DescribeKeyPhrasesDetectionJobResponse = (output, context) => {
|
|
5278
6210
|
return {
|
|
5279
6211
|
KeyPhrasesDetectionJobProperties: output.KeyPhrasesDetectionJobProperties != null
|
|
@@ -5372,11 +6304,18 @@ const deserializeAws_json1_1DocumentClass = (output, context) => {
|
|
|
5372
6304
|
Score: (0, smithy_client_1.limitedParseFloat32)(output.Score),
|
|
5373
6305
|
};
|
|
5374
6306
|
};
|
|
6307
|
+
const deserializeAws_json1_1DocumentClassificationConfig = (output, context) => {
|
|
6308
|
+
return {
|
|
6309
|
+
Labels: output.Labels != null ? deserializeAws_json1_1LabelsList(output.Labels, context) : undefined,
|
|
6310
|
+
Mode: (0, smithy_client_1.expectString)(output.Mode),
|
|
6311
|
+
};
|
|
6312
|
+
};
|
|
5375
6313
|
const deserializeAws_json1_1DocumentClassificationJobProperties = (output, context) => {
|
|
5376
6314
|
return {
|
|
5377
6315
|
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
5378
6316
|
DocumentClassifierArn: (0, smithy_client_1.expectString)(output.DocumentClassifierArn),
|
|
5379
6317
|
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
6318
|
+
FlywheelArn: (0, smithy_client_1.expectString)(output.FlywheelArn),
|
|
5380
6319
|
InputDataConfig: output.InputDataConfig != null
|
|
5381
6320
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
5382
6321
|
: undefined,
|
|
@@ -5428,6 +6367,7 @@ const deserializeAws_json1_1DocumentClassifierInputDataConfig = (output, context
|
|
|
5428
6367
|
};
|
|
5429
6368
|
const deserializeAws_json1_1DocumentClassifierOutputDataConfig = (output, context) => {
|
|
5430
6369
|
return {
|
|
6370
|
+
FlywheelStatsS3Prefix: (0, smithy_client_1.expectString)(output.FlywheelStatsS3Prefix),
|
|
5431
6371
|
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
5432
6372
|
S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
|
|
5433
6373
|
};
|
|
@@ -5440,6 +6380,7 @@ const deserializeAws_json1_1DocumentClassifierProperties = (output, context) =>
|
|
|
5440
6380
|
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
5441
6381
|
DocumentClassifierArn: (0, smithy_client_1.expectString)(output.DocumentClassifierArn),
|
|
5442
6382
|
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
6383
|
+
FlywheelArn: (0, smithy_client_1.expectString)(output.FlywheelArn),
|
|
5443
6384
|
InputDataConfig: output.InputDataConfig != null
|
|
5444
6385
|
? deserializeAws_json1_1DocumentClassifierInputDataConfig(output.InputDataConfig, context)
|
|
5445
6386
|
: undefined,
|
|
@@ -5575,6 +6516,7 @@ const deserializeAws_json1_1EndpointProperties = (output, context) => {
|
|
|
5575
6516
|
DesiredInferenceUnits: (0, smithy_client_1.expectInt32)(output.DesiredInferenceUnits),
|
|
5576
6517
|
DesiredModelArn: (0, smithy_client_1.expectString)(output.DesiredModelArn),
|
|
5577
6518
|
EndpointArn: (0, smithy_client_1.expectString)(output.EndpointArn),
|
|
6519
|
+
FlywheelArn: (0, smithy_client_1.expectString)(output.FlywheelArn),
|
|
5578
6520
|
LastModifiedTime: output.LastModifiedTime != null
|
|
5579
6521
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
5580
6522
|
: undefined,
|
|
@@ -5645,6 +6587,11 @@ const deserializeAws_json1_1EntityLabel = (output, context) => {
|
|
|
5645
6587
|
Score: (0, smithy_client_1.limitedParseFloat32)(output.Score),
|
|
5646
6588
|
};
|
|
5647
6589
|
};
|
|
6590
|
+
const deserializeAws_json1_1EntityRecognitionConfig = (output, context) => {
|
|
6591
|
+
return {
|
|
6592
|
+
EntityTypes: output.EntityTypes != null ? deserializeAws_json1_1EntityTypesList(output.EntityTypes, context) : undefined,
|
|
6593
|
+
};
|
|
6594
|
+
};
|
|
5648
6595
|
const deserializeAws_json1_1EntityRecognizerAnnotations = (output, context) => {
|
|
5649
6596
|
return {
|
|
5650
6597
|
S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
|
|
@@ -5729,17 +6676,26 @@ const deserializeAws_json1_1EntityRecognizerMetadataEntityTypesListItem = (outpu
|
|
|
5729
6676
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
5730
6677
|
};
|
|
5731
6678
|
};
|
|
6679
|
+
const deserializeAws_json1_1EntityRecognizerOutputDataConfig = (output, context) => {
|
|
6680
|
+
return {
|
|
6681
|
+
FlywheelStatsS3Prefix: (0, smithy_client_1.expectString)(output.FlywheelStatsS3Prefix),
|
|
6682
|
+
};
|
|
6683
|
+
};
|
|
5732
6684
|
const deserializeAws_json1_1EntityRecognizerProperties = (output, context) => {
|
|
5733
6685
|
return {
|
|
5734
6686
|
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
5735
6687
|
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
5736
6688
|
EntityRecognizerArn: (0, smithy_client_1.expectString)(output.EntityRecognizerArn),
|
|
6689
|
+
FlywheelArn: (0, smithy_client_1.expectString)(output.FlywheelArn),
|
|
5737
6690
|
InputDataConfig: output.InputDataConfig != null
|
|
5738
6691
|
? deserializeAws_json1_1EntityRecognizerInputDataConfig(output.InputDataConfig, context)
|
|
5739
6692
|
: undefined,
|
|
5740
6693
|
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
5741
6694
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
5742
6695
|
ModelKmsKeyId: (0, smithy_client_1.expectString)(output.ModelKmsKeyId),
|
|
6696
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
6697
|
+
? deserializeAws_json1_1EntityRecognizerOutputDataConfig(output.OutputDataConfig, context)
|
|
6698
|
+
: undefined,
|
|
5743
6699
|
RecognizerMetadata: output.RecognizerMetadata != null
|
|
5744
6700
|
? deserializeAws_json1_1EntityRecognizerMetadata(output.RecognizerMetadata, context)
|
|
5745
6701
|
: undefined,
|
|
@@ -5859,6 +6815,96 @@ const deserializeAws_json1_1ExtractedCharactersListItem = (output, context) => {
|
|
|
5859
6815
|
Page: (0, smithy_client_1.expectInt32)(output.Page),
|
|
5860
6816
|
};
|
|
5861
6817
|
};
|
|
6818
|
+
const deserializeAws_json1_1FlywheelIterationProperties = (output, context) => {
|
|
6819
|
+
return {
|
|
6820
|
+
CreationTime: output.CreationTime != null
|
|
6821
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
6822
|
+
: undefined,
|
|
6823
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
6824
|
+
EvaluatedModelArn: (0, smithy_client_1.expectString)(output.EvaluatedModelArn),
|
|
6825
|
+
EvaluatedModelMetrics: output.EvaluatedModelMetrics != null
|
|
6826
|
+
? deserializeAws_json1_1FlywheelModelEvaluationMetrics(output.EvaluatedModelMetrics, context)
|
|
6827
|
+
: undefined,
|
|
6828
|
+
EvaluationManifestS3Prefix: (0, smithy_client_1.expectString)(output.EvaluationManifestS3Prefix),
|
|
6829
|
+
FlywheelArn: (0, smithy_client_1.expectString)(output.FlywheelArn),
|
|
6830
|
+
FlywheelIterationId: (0, smithy_client_1.expectString)(output.FlywheelIterationId),
|
|
6831
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
6832
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
6833
|
+
TrainedModelArn: (0, smithy_client_1.expectString)(output.TrainedModelArn),
|
|
6834
|
+
TrainedModelMetrics: output.TrainedModelMetrics != null
|
|
6835
|
+
? deserializeAws_json1_1FlywheelModelEvaluationMetrics(output.TrainedModelMetrics, context)
|
|
6836
|
+
: undefined,
|
|
6837
|
+
};
|
|
6838
|
+
};
|
|
6839
|
+
const deserializeAws_json1_1FlywheelIterationPropertiesList = (output, context) => {
|
|
6840
|
+
const retVal = (output || [])
|
|
6841
|
+
.filter((e) => e != null)
|
|
6842
|
+
.map((entry) => {
|
|
6843
|
+
if (entry === null) {
|
|
6844
|
+
return null;
|
|
6845
|
+
}
|
|
6846
|
+
return deserializeAws_json1_1FlywheelIterationProperties(entry, context);
|
|
6847
|
+
});
|
|
6848
|
+
return retVal;
|
|
6849
|
+
};
|
|
6850
|
+
const deserializeAws_json1_1FlywheelModelEvaluationMetrics = (output, context) => {
|
|
6851
|
+
return {
|
|
6852
|
+
AverageAccuracy: (0, smithy_client_1.limitedParseDouble)(output.AverageAccuracy),
|
|
6853
|
+
AverageF1Score: (0, smithy_client_1.limitedParseDouble)(output.AverageF1Score),
|
|
6854
|
+
AveragePrecision: (0, smithy_client_1.limitedParseDouble)(output.AveragePrecision),
|
|
6855
|
+
AverageRecall: (0, smithy_client_1.limitedParseDouble)(output.AverageRecall),
|
|
6856
|
+
};
|
|
6857
|
+
};
|
|
6858
|
+
const deserializeAws_json1_1FlywheelProperties = (output, context) => {
|
|
6859
|
+
return {
|
|
6860
|
+
ActiveModelArn: (0, smithy_client_1.expectString)(output.ActiveModelArn),
|
|
6861
|
+
CreationTime: output.CreationTime != null
|
|
6862
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
6863
|
+
: undefined,
|
|
6864
|
+
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
6865
|
+
DataLakeS3Uri: (0, smithy_client_1.expectString)(output.DataLakeS3Uri),
|
|
6866
|
+
DataSecurityConfig: output.DataSecurityConfig != null
|
|
6867
|
+
? deserializeAws_json1_1DataSecurityConfig(output.DataSecurityConfig, context)
|
|
6868
|
+
: undefined,
|
|
6869
|
+
FlywheelArn: (0, smithy_client_1.expectString)(output.FlywheelArn),
|
|
6870
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
6871
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
6872
|
+
: undefined,
|
|
6873
|
+
LatestFlywheelIteration: (0, smithy_client_1.expectString)(output.LatestFlywheelIteration),
|
|
6874
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
6875
|
+
ModelType: (0, smithy_client_1.expectString)(output.ModelType),
|
|
6876
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
6877
|
+
TaskConfig: output.TaskConfig != null ? deserializeAws_json1_1TaskConfig(output.TaskConfig, context) : undefined,
|
|
6878
|
+
};
|
|
6879
|
+
};
|
|
6880
|
+
const deserializeAws_json1_1FlywheelSummary = (output, context) => {
|
|
6881
|
+
return {
|
|
6882
|
+
ActiveModelArn: (0, smithy_client_1.expectString)(output.ActiveModelArn),
|
|
6883
|
+
CreationTime: output.CreationTime != null
|
|
6884
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
6885
|
+
: undefined,
|
|
6886
|
+
DataLakeS3Uri: (0, smithy_client_1.expectString)(output.DataLakeS3Uri),
|
|
6887
|
+
FlywheelArn: (0, smithy_client_1.expectString)(output.FlywheelArn),
|
|
6888
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
6889
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
6890
|
+
: undefined,
|
|
6891
|
+
LatestFlywheelIteration: (0, smithy_client_1.expectString)(output.LatestFlywheelIteration),
|
|
6892
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
6893
|
+
ModelType: (0, smithy_client_1.expectString)(output.ModelType),
|
|
6894
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
6895
|
+
};
|
|
6896
|
+
};
|
|
6897
|
+
const deserializeAws_json1_1FlywheelSummaryList = (output, context) => {
|
|
6898
|
+
const retVal = (output || [])
|
|
6899
|
+
.filter((e) => e != null)
|
|
6900
|
+
.map((entry) => {
|
|
6901
|
+
if (entry === null) {
|
|
6902
|
+
return null;
|
|
6903
|
+
}
|
|
6904
|
+
return deserializeAws_json1_1FlywheelSummary(entry, context);
|
|
6905
|
+
});
|
|
6906
|
+
return retVal;
|
|
6907
|
+
};
|
|
5862
6908
|
const deserializeAws_json1_1Geometry = (output, context) => {
|
|
5863
6909
|
return {
|
|
5864
6910
|
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
@@ -5951,6 +6997,25 @@ const deserializeAws_json1_1KmsKeyValidationException = (output, context) => {
|
|
|
5951
6997
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
5952
6998
|
};
|
|
5953
6999
|
};
|
|
7000
|
+
const deserializeAws_json1_1LabelsList = (output, context) => {
|
|
7001
|
+
const retVal = (output || [])
|
|
7002
|
+
.filter((e) => e != null)
|
|
7003
|
+
.map((entry) => {
|
|
7004
|
+
if (entry === null) {
|
|
7005
|
+
return null;
|
|
7006
|
+
}
|
|
7007
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
7008
|
+
});
|
|
7009
|
+
return retVal;
|
|
7010
|
+
};
|
|
7011
|
+
const deserializeAws_json1_1ListDatasetsResponse = (output, context) => {
|
|
7012
|
+
return {
|
|
7013
|
+
DatasetPropertiesList: output.DatasetPropertiesList != null
|
|
7014
|
+
? deserializeAws_json1_1DatasetPropertiesList(output.DatasetPropertiesList, context)
|
|
7015
|
+
: undefined,
|
|
7016
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
7017
|
+
};
|
|
7018
|
+
};
|
|
5954
7019
|
const deserializeAws_json1_1ListDocumentClassificationJobsResponse = (output, context) => {
|
|
5955
7020
|
return {
|
|
5956
7021
|
DocumentClassificationJobPropertiesList: output.DocumentClassificationJobPropertiesList != null
|
|
@@ -6023,6 +7088,22 @@ const deserializeAws_json1_1ListEventsDetectionJobsResponse = (output, context)
|
|
|
6023
7088
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
6024
7089
|
};
|
|
6025
7090
|
};
|
|
7091
|
+
const deserializeAws_json1_1ListFlywheelIterationHistoryResponse = (output, context) => {
|
|
7092
|
+
return {
|
|
7093
|
+
FlywheelIterationPropertiesList: output.FlywheelIterationPropertiesList != null
|
|
7094
|
+
? deserializeAws_json1_1FlywheelIterationPropertiesList(output.FlywheelIterationPropertiesList, context)
|
|
7095
|
+
: undefined,
|
|
7096
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
7097
|
+
};
|
|
7098
|
+
};
|
|
7099
|
+
const deserializeAws_json1_1ListFlywheelsResponse = (output, context) => {
|
|
7100
|
+
return {
|
|
7101
|
+
FlywheelSummaryList: output.FlywheelSummaryList != null
|
|
7102
|
+
? deserializeAws_json1_1FlywheelSummaryList(output.FlywheelSummaryList, context)
|
|
7103
|
+
: undefined,
|
|
7104
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
7105
|
+
};
|
|
7106
|
+
};
|
|
6026
7107
|
const deserializeAws_json1_1ListKeyPhrasesDetectionJobsResponse = (output, context) => {
|
|
6027
7108
|
return {
|
|
6028
7109
|
KeyPhrasesDetectionJobPropertiesList: output.KeyPhrasesDetectionJobPropertiesList != null
|
|
@@ -6531,6 +7612,7 @@ const deserializeAws_json1_1SentimentScore = (output, context) => {
|
|
|
6531
7612
|
};
|
|
6532
7613
|
const deserializeAws_json1_1StartDocumentClassificationJobResponse = (output, context) => {
|
|
6533
7614
|
return {
|
|
7615
|
+
DocumentClassifierArn: (0, smithy_client_1.expectString)(output.DocumentClassifierArn),
|
|
6534
7616
|
JobArn: (0, smithy_client_1.expectString)(output.JobArn),
|
|
6535
7617
|
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
6536
7618
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
@@ -6545,6 +7627,7 @@ const deserializeAws_json1_1StartDominantLanguageDetectionJobResponse = (output,
|
|
|
6545
7627
|
};
|
|
6546
7628
|
const deserializeAws_json1_1StartEntitiesDetectionJobResponse = (output, context) => {
|
|
6547
7629
|
return {
|
|
7630
|
+
EntityRecognizerArn: (0, smithy_client_1.expectString)(output.EntityRecognizerArn),
|
|
6548
7631
|
JobArn: (0, smithy_client_1.expectString)(output.JobArn),
|
|
6549
7632
|
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
6550
7633
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
@@ -6557,6 +7640,12 @@ const deserializeAws_json1_1StartEventsDetectionJobResponse = (output, context)
|
|
|
6557
7640
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
6558
7641
|
};
|
|
6559
7642
|
};
|
|
7643
|
+
const deserializeAws_json1_1StartFlywheelIterationResponse = (output, context) => {
|
|
7644
|
+
return {
|
|
7645
|
+
FlywheelArn: (0, smithy_client_1.expectString)(output.FlywheelArn),
|
|
7646
|
+
FlywheelIterationId: (0, smithy_client_1.expectString)(output.FlywheelIterationId),
|
|
7647
|
+
};
|
|
7648
|
+
};
|
|
6560
7649
|
const deserializeAws_json1_1StartKeyPhrasesDetectionJobResponse = (output, context) => {
|
|
6561
7650
|
return {
|
|
6562
7651
|
JobArn: (0, smithy_client_1.expectString)(output.JobArn),
|
|
@@ -6755,6 +7844,17 @@ const deserializeAws_json1_1TargetEventTypes = (output, context) => {
|
|
|
6755
7844
|
});
|
|
6756
7845
|
return retVal;
|
|
6757
7846
|
};
|
|
7847
|
+
const deserializeAws_json1_1TaskConfig = (output, context) => {
|
|
7848
|
+
return {
|
|
7849
|
+
DocumentClassificationConfig: output.DocumentClassificationConfig != null
|
|
7850
|
+
? deserializeAws_json1_1DocumentClassificationConfig(output.DocumentClassificationConfig, context)
|
|
7851
|
+
: undefined,
|
|
7852
|
+
EntityRecognitionConfig: output.EntityRecognitionConfig != null
|
|
7853
|
+
? deserializeAws_json1_1EntityRecognitionConfig(output.EntityRecognitionConfig, context)
|
|
7854
|
+
: undefined,
|
|
7855
|
+
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
7856
|
+
};
|
|
7857
|
+
};
|
|
6758
7858
|
const deserializeAws_json1_1TextSizeLimitExceededException = (output, context) => {
|
|
6759
7859
|
return {
|
|
6760
7860
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -6816,7 +7916,16 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
|
6816
7916
|
return {};
|
|
6817
7917
|
};
|
|
6818
7918
|
const deserializeAws_json1_1UpdateEndpointResponse = (output, context) => {
|
|
6819
|
-
return {
|
|
7919
|
+
return {
|
|
7920
|
+
DesiredModelArn: (0, smithy_client_1.expectString)(output.DesiredModelArn),
|
|
7921
|
+
};
|
|
7922
|
+
};
|
|
7923
|
+
const deserializeAws_json1_1UpdateFlywheelResponse = (output, context) => {
|
|
7924
|
+
return {
|
|
7925
|
+
FlywheelProperties: output.FlywheelProperties != null
|
|
7926
|
+
? deserializeAws_json1_1FlywheelProperties(output.FlywheelProperties, context)
|
|
7927
|
+
: undefined,
|
|
7928
|
+
};
|
|
6820
7929
|
};
|
|
6821
7930
|
const deserializeAws_json1_1VpcConfig = (output, context) => {
|
|
6822
7931
|
return {
|