@aws-sdk/client-comprehend 3.47.1 → 3.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist-cjs/Comprehend.js +60 -0
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +36 -0
- package/dist-cjs/commands/DescribeResourcePolicyCommand.js +36 -0
- package/dist-cjs/commands/ImportModelCommand.js +36 -0
- package/dist-cjs/commands/PutResourcePolicyCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +52 -4
- package/dist-cjs/protocols/Aws_json1_1.js +405 -3
- package/dist-es/Comprehend.js +60 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +39 -0
- package/dist-es/commands/DescribeResourcePolicyCommand.js +39 -0
- package/dist-es/commands/ImportModelCommand.js +39 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +32 -0
- package/dist-es/protocols/Aws_json1_1.js +428 -4
- package/dist-types/Comprehend.d.ts +37 -2
- package/dist-types/ComprehendClient.d.ts +6 -2
- package/dist-types/commands/CreateEndpointCommand.d.ts +1 -2
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +35 -0
- package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +36 -0
- package/dist-types/commands/ImportModelCommand.d.ts +40 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +279 -43
- package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +39 -33
- package/dist-types/ts3.4/Comprehend.d.ts +0 -320
- package/dist-types/ts3.4/ComprehendClient.d.ts +0 -136
- package/dist-types/ts3.4/commands/BatchDetectDominantLanguageCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/BatchDetectEntitiesCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/BatchDetectKeyPhrasesCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/BatchDetectSentimentCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/BatchDetectSyntaxCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ClassifyDocumentCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ContainsPiiEntitiesCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/CreateDocumentClassifierCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/CreateEndpointCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/CreateEntityRecognizerCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DeleteDocumentClassifierCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DeleteEndpointCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DeleteEntityRecognizerCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DescribeDocumentClassificationJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DescribeDocumentClassifierCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DescribeDominantLanguageDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DescribeEndpointCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DescribeEntitiesDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DescribeEntityRecognizerCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DescribeEventsDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DescribeKeyPhrasesDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DescribePiiEntitiesDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DescribeSentimentDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DescribeTopicsDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DetectDominantLanguageCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DetectEntitiesCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DetectKeyPhrasesCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DetectPiiEntitiesCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DetectSentimentCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DetectSyntaxCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListDocumentClassificationJobsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListDocumentClassifierSummariesCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListDocumentClassifiersCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListDominantLanguageDetectionJobsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListEndpointsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListEntitiesDetectionJobsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListEntityRecognizerSummariesCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListEntityRecognizersCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListEventsDetectionJobsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListKeyPhrasesDetectionJobsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListPiiEntitiesDetectionJobsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListSentimentDetectionJobsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListTopicsDetectionJobsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StartDocumentClassificationJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StartDominantLanguageDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StartEntitiesDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StartEventsDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StartKeyPhrasesDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StartPiiEntitiesDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StartSentimentDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StartTopicsDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StopDominantLanguageDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StopEntitiesDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StopEventsDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StopKeyPhrasesDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StopPiiEntitiesDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StopSentimentDetectionJobCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StopTrainingDocumentClassifierCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StopTrainingEntityRecognizerCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/UpdateEndpointCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/index.d.ts +0 -63
- package/dist-types/ts3.4/endpoints.d.ts +0 -2
- package/dist-types/ts3.4/index.d.ts +0 -5
- package/dist-types/ts3.4/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -2640
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +0 -6
- package/dist-types/ts3.4/pagination/ListDocumentClassificationJobsPaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/ListDocumentClassifierSummariesPaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/ListDocumentClassifiersPaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/ListDominantLanguageDetectionJobsPaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/ListEntitiesDetectionJobsPaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/ListEntityRecognizerSummariesPaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/ListEntityRecognizersPaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/ListEventsDetectionJobsPaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/ListKeyPhrasesDetectionJobsPaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/ListSentimentDetectionJobsPaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/ListTopicsDetectionJobsPaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/index.d.ts +0 -12
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -191
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +0 -38
- package/dist-types/ts3.4/runtimeConfig.d.ts +0 -38
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +0 -37
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +0 -11
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_json1_1UpdateEndpointCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopTrainingEntityRecognizerCommand = exports.deserializeAws_json1_1StopTrainingDocumentClassifierCommand = 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_1StartSentimentDetectionJobCommand = exports.deserializeAws_json1_1StartPiiEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand = exports.deserializeAws_json1_1StartEventsDetectionJobCommand = exports.deserializeAws_json1_1StartEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StartDominantLanguageDetectionJobCommand = exports.deserializeAws_json1_1StartDocumentClassificationJobCommand = exports.deserializeAws_json1_1ListTopicsDetectionJobsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListSentimentDetectionJobsCommand = exports.deserializeAws_json1_1ListPiiEntitiesDetectionJobsCommand = exports.deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = exports.deserializeAws_json1_1ListEventsDetectionJobsCommand = exports.deserializeAws_json1_1ListEntityRecognizerSummariesCommand = void 0;
|
|
3
|
+
exports.serializeAws_json1_1StartDominantLanguageDetectionJobCommand = exports.serializeAws_json1_1StartDocumentClassificationJobCommand = exports.serializeAws_json1_1PutResourcePolicyCommand = exports.serializeAws_json1_1ListTopicsDetectionJobsCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListSentimentDetectionJobsCommand = exports.serializeAws_json1_1ListPiiEntitiesDetectionJobsCommand = exports.serializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = exports.serializeAws_json1_1ListEventsDetectionJobsCommand = exports.serializeAws_json1_1ListEntityRecognizerSummariesCommand = 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_1ImportModelCommand = 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_1DescribeSentimentDetectionJobCommand = exports.serializeAws_json1_1DescribeResourcePolicyCommand = exports.serializeAws_json1_1DescribePiiEntitiesDetectionJobCommand = exports.serializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = 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_1DeleteResourcePolicyCommand = exports.serializeAws_json1_1DeleteEntityRecognizerCommand = exports.serializeAws_json1_1DeleteEndpointCommand = exports.serializeAws_json1_1DeleteDocumentClassifierCommand = exports.serializeAws_json1_1CreateEntityRecognizerCommand = exports.serializeAws_json1_1CreateEndpointCommand = exports.serializeAws_json1_1CreateDocumentClassifierCommand = exports.serializeAws_json1_1ContainsPiiEntitiesCommand = exports.serializeAws_json1_1ClassifyDocumentCommand = 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_1ImportModelCommand = 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_1DescribeSentimentDetectionJobCommand = exports.deserializeAws_json1_1DescribeResourcePolicyCommand = exports.deserializeAws_json1_1DescribePiiEntitiesDetectionJobCommand = exports.deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = 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_1DeleteResourcePolicyCommand = exports.deserializeAws_json1_1DeleteEntityRecognizerCommand = exports.deserializeAws_json1_1DeleteEndpointCommand = exports.deserializeAws_json1_1DeleteDocumentClassifierCommand = exports.deserializeAws_json1_1CreateEntityRecognizerCommand = exports.deserializeAws_json1_1CreateEndpointCommand = exports.deserializeAws_json1_1CreateDocumentClassifierCommand = exports.deserializeAws_json1_1ContainsPiiEntitiesCommand = exports.deserializeAws_json1_1ClassifyDocumentCommand = exports.deserializeAws_json1_1BatchDetectSyntaxCommand = exports.deserializeAws_json1_1BatchDetectSentimentCommand = exports.deserializeAws_json1_1BatchDetectKeyPhrasesCommand = exports.deserializeAws_json1_1BatchDetectEntitiesCommand = exports.deserializeAws_json1_1BatchDetectDominantLanguageCommand = exports.serializeAws_json1_1UpdateEndpointCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopTrainingEntityRecognizerCommand = exports.serializeAws_json1_1StopTrainingDocumentClassifierCommand = 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_1StartSentimentDetectionJobCommand = exports.serializeAws_json1_1StartPiiEntitiesDetectionJobCommand = exports.serializeAws_json1_1StartKeyPhrasesDetectionJobCommand = exports.serializeAws_json1_1StartEventsDetectionJobCommand = exports.serializeAws_json1_1StartEntitiesDetectionJobCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1UpdateEndpointCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopTrainingEntityRecognizerCommand = exports.deserializeAws_json1_1StopTrainingDocumentClassifierCommand = 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_1StartSentimentDetectionJobCommand = exports.deserializeAws_json1_1StartPiiEntitiesDetectionJobCommand = exports.deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand = 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_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListSentimentDetectionJobsCommand = exports.deserializeAws_json1_1ListPiiEntitiesDetectionJobsCommand = exports.deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = 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 = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
@@ -136,6 +136,16 @@ const serializeAws_json1_1DeleteEntityRecognizerCommand = async (input, context)
|
|
|
136
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
137
|
};
|
|
138
138
|
exports.serializeAws_json1_1DeleteEntityRecognizerCommand = serializeAws_json1_1DeleteEntityRecognizerCommand;
|
|
139
|
+
const serializeAws_json1_1DeleteResourcePolicyCommand = async (input, context) => {
|
|
140
|
+
const headers = {
|
|
141
|
+
"content-type": "application/x-amz-json-1.1",
|
|
142
|
+
"x-amz-target": "Comprehend_20171127.DeleteResourcePolicy",
|
|
143
|
+
};
|
|
144
|
+
let body;
|
|
145
|
+
body = JSON.stringify(serializeAws_json1_1DeleteResourcePolicyRequest(input, context));
|
|
146
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
|
+
};
|
|
148
|
+
exports.serializeAws_json1_1DeleteResourcePolicyCommand = serializeAws_json1_1DeleteResourcePolicyCommand;
|
|
139
149
|
const serializeAws_json1_1DescribeDocumentClassificationJobCommand = async (input, context) => {
|
|
140
150
|
const headers = {
|
|
141
151
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -226,6 +236,16 @@ const serializeAws_json1_1DescribePiiEntitiesDetectionJobCommand = async (input,
|
|
|
226
236
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
237
|
};
|
|
228
238
|
exports.serializeAws_json1_1DescribePiiEntitiesDetectionJobCommand = serializeAws_json1_1DescribePiiEntitiesDetectionJobCommand;
|
|
239
|
+
const serializeAws_json1_1DescribeResourcePolicyCommand = async (input, context) => {
|
|
240
|
+
const headers = {
|
|
241
|
+
"content-type": "application/x-amz-json-1.1",
|
|
242
|
+
"x-amz-target": "Comprehend_20171127.DescribeResourcePolicy",
|
|
243
|
+
};
|
|
244
|
+
let body;
|
|
245
|
+
body = JSON.stringify(serializeAws_json1_1DescribeResourcePolicyRequest(input, context));
|
|
246
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
|
+
};
|
|
248
|
+
exports.serializeAws_json1_1DescribeResourcePolicyCommand = serializeAws_json1_1DescribeResourcePolicyCommand;
|
|
229
249
|
const serializeAws_json1_1DescribeSentimentDetectionJobCommand = async (input, context) => {
|
|
230
250
|
const headers = {
|
|
231
251
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -306,6 +326,16 @@ const serializeAws_json1_1DetectSyntaxCommand = async (input, context) => {
|
|
|
306
326
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
327
|
};
|
|
308
328
|
exports.serializeAws_json1_1DetectSyntaxCommand = serializeAws_json1_1DetectSyntaxCommand;
|
|
329
|
+
const serializeAws_json1_1ImportModelCommand = async (input, context) => {
|
|
330
|
+
const headers = {
|
|
331
|
+
"content-type": "application/x-amz-json-1.1",
|
|
332
|
+
"x-amz-target": "Comprehend_20171127.ImportModel",
|
|
333
|
+
};
|
|
334
|
+
let body;
|
|
335
|
+
body = JSON.stringify(serializeAws_json1_1ImportModelRequest(input, context));
|
|
336
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
|
+
};
|
|
338
|
+
exports.serializeAws_json1_1ImportModelCommand = serializeAws_json1_1ImportModelCommand;
|
|
309
339
|
const serializeAws_json1_1ListDocumentClassificationJobsCommand = async (input, context) => {
|
|
310
340
|
const headers = {
|
|
311
341
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -446,6 +476,16 @@ const serializeAws_json1_1ListTopicsDetectionJobsCommand = async (input, context
|
|
|
446
476
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
447
477
|
};
|
|
448
478
|
exports.serializeAws_json1_1ListTopicsDetectionJobsCommand = serializeAws_json1_1ListTopicsDetectionJobsCommand;
|
|
479
|
+
const serializeAws_json1_1PutResourcePolicyCommand = async (input, context) => {
|
|
480
|
+
const headers = {
|
|
481
|
+
"content-type": "application/x-amz-json-1.1",
|
|
482
|
+
"x-amz-target": "Comprehend_20171127.PutResourcePolicy",
|
|
483
|
+
};
|
|
484
|
+
let body;
|
|
485
|
+
body = JSON.stringify(serializeAws_json1_1PutResourcePolicyRequest(input, context));
|
|
486
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
487
|
+
};
|
|
488
|
+
exports.serializeAws_json1_1PutResourcePolicyCommand = serializeAws_json1_1PutResourcePolicyCommand;
|
|
449
489
|
const serializeAws_json1_1StartDocumentClassificationJobCommand = async (input, context) => {
|
|
450
490
|
const headers = {
|
|
451
491
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -1727,6 +1767,69 @@ const deserializeAws_json1_1DeleteEntityRecognizerCommandError = async (output,
|
|
|
1727
1767
|
delete response.Message;
|
|
1728
1768
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1729
1769
|
};
|
|
1770
|
+
const deserializeAws_json1_1DeleteResourcePolicyCommand = async (output, context) => {
|
|
1771
|
+
if (output.statusCode >= 300) {
|
|
1772
|
+
return deserializeAws_json1_1DeleteResourcePolicyCommandError(output, context);
|
|
1773
|
+
}
|
|
1774
|
+
const data = await parseBody(output.body, context);
|
|
1775
|
+
let contents = {};
|
|
1776
|
+
contents = deserializeAws_json1_1DeleteResourcePolicyResponse(data, context);
|
|
1777
|
+
const response = {
|
|
1778
|
+
$metadata: deserializeMetadata(output),
|
|
1779
|
+
...contents,
|
|
1780
|
+
};
|
|
1781
|
+
return Promise.resolve(response);
|
|
1782
|
+
};
|
|
1783
|
+
exports.deserializeAws_json1_1DeleteResourcePolicyCommand = deserializeAws_json1_1DeleteResourcePolicyCommand;
|
|
1784
|
+
const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, context) => {
|
|
1785
|
+
const parsedOutput = {
|
|
1786
|
+
...output,
|
|
1787
|
+
body: await parseBody(output.body, context),
|
|
1788
|
+
};
|
|
1789
|
+
let response;
|
|
1790
|
+
let errorCode = "UnknownError";
|
|
1791
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1792
|
+
switch (errorCode) {
|
|
1793
|
+
case "InternalServerException":
|
|
1794
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
1795
|
+
response = {
|
|
1796
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1797
|
+
name: errorCode,
|
|
1798
|
+
$metadata: deserializeMetadata(output),
|
|
1799
|
+
};
|
|
1800
|
+
break;
|
|
1801
|
+
case "InvalidRequestException":
|
|
1802
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1803
|
+
response = {
|
|
1804
|
+
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1805
|
+
name: errorCode,
|
|
1806
|
+
$metadata: deserializeMetadata(output),
|
|
1807
|
+
};
|
|
1808
|
+
break;
|
|
1809
|
+
case "ResourceNotFoundException":
|
|
1810
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
1811
|
+
response = {
|
|
1812
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1813
|
+
name: errorCode,
|
|
1814
|
+
$metadata: deserializeMetadata(output),
|
|
1815
|
+
};
|
|
1816
|
+
break;
|
|
1817
|
+
default:
|
|
1818
|
+
const parsedBody = parsedOutput.body;
|
|
1819
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1820
|
+
response = {
|
|
1821
|
+
...parsedBody,
|
|
1822
|
+
name: `${errorCode}`,
|
|
1823
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1824
|
+
$fault: "client",
|
|
1825
|
+
$metadata: deserializeMetadata(output),
|
|
1826
|
+
};
|
|
1827
|
+
}
|
|
1828
|
+
const message = response.message || response.Message || errorCode;
|
|
1829
|
+
response.message = message;
|
|
1830
|
+
delete response.Message;
|
|
1831
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1832
|
+
};
|
|
1730
1833
|
const deserializeAws_json1_1DescribeDocumentClassificationJobCommand = async (output, context) => {
|
|
1731
1834
|
if (output.statusCode >= 300) {
|
|
1732
1835
|
return deserializeAws_json1_1DescribeDocumentClassificationJobCommandError(output, context);
|
|
@@ -2366,6 +2469,69 @@ const deserializeAws_json1_1DescribePiiEntitiesDetectionJobCommandError = async
|
|
|
2366
2469
|
delete response.Message;
|
|
2367
2470
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2368
2471
|
};
|
|
2472
|
+
const deserializeAws_json1_1DescribeResourcePolicyCommand = async (output, context) => {
|
|
2473
|
+
if (output.statusCode >= 300) {
|
|
2474
|
+
return deserializeAws_json1_1DescribeResourcePolicyCommandError(output, context);
|
|
2475
|
+
}
|
|
2476
|
+
const data = await parseBody(output.body, context);
|
|
2477
|
+
let contents = {};
|
|
2478
|
+
contents = deserializeAws_json1_1DescribeResourcePolicyResponse(data, context);
|
|
2479
|
+
const response = {
|
|
2480
|
+
$metadata: deserializeMetadata(output),
|
|
2481
|
+
...contents,
|
|
2482
|
+
};
|
|
2483
|
+
return Promise.resolve(response);
|
|
2484
|
+
};
|
|
2485
|
+
exports.deserializeAws_json1_1DescribeResourcePolicyCommand = deserializeAws_json1_1DescribeResourcePolicyCommand;
|
|
2486
|
+
const deserializeAws_json1_1DescribeResourcePolicyCommandError = async (output, context) => {
|
|
2487
|
+
const parsedOutput = {
|
|
2488
|
+
...output,
|
|
2489
|
+
body: await parseBody(output.body, context),
|
|
2490
|
+
};
|
|
2491
|
+
let response;
|
|
2492
|
+
let errorCode = "UnknownError";
|
|
2493
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2494
|
+
switch (errorCode) {
|
|
2495
|
+
case "InternalServerException":
|
|
2496
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
2497
|
+
response = {
|
|
2498
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2499
|
+
name: errorCode,
|
|
2500
|
+
$metadata: deserializeMetadata(output),
|
|
2501
|
+
};
|
|
2502
|
+
break;
|
|
2503
|
+
case "InvalidRequestException":
|
|
2504
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2505
|
+
response = {
|
|
2506
|
+
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2507
|
+
name: errorCode,
|
|
2508
|
+
$metadata: deserializeMetadata(output),
|
|
2509
|
+
};
|
|
2510
|
+
break;
|
|
2511
|
+
case "ResourceNotFoundException":
|
|
2512
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2513
|
+
response = {
|
|
2514
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2515
|
+
name: errorCode,
|
|
2516
|
+
$metadata: deserializeMetadata(output),
|
|
2517
|
+
};
|
|
2518
|
+
break;
|
|
2519
|
+
default:
|
|
2520
|
+
const parsedBody = parsedOutput.body;
|
|
2521
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2522
|
+
response = {
|
|
2523
|
+
...parsedBody,
|
|
2524
|
+
name: `${errorCode}`,
|
|
2525
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2526
|
+
$fault: "client",
|
|
2527
|
+
$metadata: deserializeMetadata(output),
|
|
2528
|
+
};
|
|
2529
|
+
}
|
|
2530
|
+
const message = response.message || response.Message || errorCode;
|
|
2531
|
+
response.message = message;
|
|
2532
|
+
delete response.Message;
|
|
2533
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2534
|
+
};
|
|
2369
2535
|
const deserializeAws_json1_1DescribeSentimentDetectionJobCommand = async (output, context) => {
|
|
2370
2536
|
if (output.statusCode >= 300) {
|
|
2371
2537
|
return deserializeAws_json1_1DescribeSentimentDetectionJobCommandError(output, context);
|
|
@@ -2934,6 +3100,117 @@ const deserializeAws_json1_1DetectSyntaxCommandError = async (output, context) =
|
|
|
2934
3100
|
delete response.Message;
|
|
2935
3101
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2936
3102
|
};
|
|
3103
|
+
const deserializeAws_json1_1ImportModelCommand = async (output, context) => {
|
|
3104
|
+
if (output.statusCode >= 300) {
|
|
3105
|
+
return deserializeAws_json1_1ImportModelCommandError(output, context);
|
|
3106
|
+
}
|
|
3107
|
+
const data = await parseBody(output.body, context);
|
|
3108
|
+
let contents = {};
|
|
3109
|
+
contents = deserializeAws_json1_1ImportModelResponse(data, context);
|
|
3110
|
+
const response = {
|
|
3111
|
+
$metadata: deserializeMetadata(output),
|
|
3112
|
+
...contents,
|
|
3113
|
+
};
|
|
3114
|
+
return Promise.resolve(response);
|
|
3115
|
+
};
|
|
3116
|
+
exports.deserializeAws_json1_1ImportModelCommand = deserializeAws_json1_1ImportModelCommand;
|
|
3117
|
+
const deserializeAws_json1_1ImportModelCommandError = async (output, context) => {
|
|
3118
|
+
const parsedOutput = {
|
|
3119
|
+
...output,
|
|
3120
|
+
body: await parseBody(output.body, context),
|
|
3121
|
+
};
|
|
3122
|
+
let response;
|
|
3123
|
+
let errorCode = "UnknownError";
|
|
3124
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3125
|
+
switch (errorCode) {
|
|
3126
|
+
case "InternalServerException":
|
|
3127
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
3128
|
+
response = {
|
|
3129
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3130
|
+
name: errorCode,
|
|
3131
|
+
$metadata: deserializeMetadata(output),
|
|
3132
|
+
};
|
|
3133
|
+
break;
|
|
3134
|
+
case "InvalidRequestException":
|
|
3135
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3136
|
+
response = {
|
|
3137
|
+
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
3138
|
+
name: errorCode,
|
|
3139
|
+
$metadata: deserializeMetadata(output),
|
|
3140
|
+
};
|
|
3141
|
+
break;
|
|
3142
|
+
case "KmsKeyValidationException":
|
|
3143
|
+
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
3144
|
+
response = {
|
|
3145
|
+
...(await deserializeAws_json1_1KmsKeyValidationExceptionResponse(parsedOutput, context)),
|
|
3146
|
+
name: errorCode,
|
|
3147
|
+
$metadata: deserializeMetadata(output),
|
|
3148
|
+
};
|
|
3149
|
+
break;
|
|
3150
|
+
case "ResourceInUseException":
|
|
3151
|
+
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
3152
|
+
response = {
|
|
3153
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
3154
|
+
name: errorCode,
|
|
3155
|
+
$metadata: deserializeMetadata(output),
|
|
3156
|
+
};
|
|
3157
|
+
break;
|
|
3158
|
+
case "ResourceLimitExceededException":
|
|
3159
|
+
case "com.amazonaws.comprehend#ResourceLimitExceededException":
|
|
3160
|
+
response = {
|
|
3161
|
+
...(await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
3162
|
+
name: errorCode,
|
|
3163
|
+
$metadata: deserializeMetadata(output),
|
|
3164
|
+
};
|
|
3165
|
+
break;
|
|
3166
|
+
case "ResourceNotFoundException":
|
|
3167
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
3168
|
+
response = {
|
|
3169
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3170
|
+
name: errorCode,
|
|
3171
|
+
$metadata: deserializeMetadata(output),
|
|
3172
|
+
};
|
|
3173
|
+
break;
|
|
3174
|
+
case "ResourceUnavailableException":
|
|
3175
|
+
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
3176
|
+
response = {
|
|
3177
|
+
...(await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3178
|
+
name: errorCode,
|
|
3179
|
+
$metadata: deserializeMetadata(output),
|
|
3180
|
+
};
|
|
3181
|
+
break;
|
|
3182
|
+
case "TooManyRequestsException":
|
|
3183
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3184
|
+
response = {
|
|
3185
|
+
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
3186
|
+
name: errorCode,
|
|
3187
|
+
$metadata: deserializeMetadata(output),
|
|
3188
|
+
};
|
|
3189
|
+
break;
|
|
3190
|
+
case "TooManyTagsException":
|
|
3191
|
+
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
3192
|
+
response = {
|
|
3193
|
+
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
3194
|
+
name: errorCode,
|
|
3195
|
+
$metadata: deserializeMetadata(output),
|
|
3196
|
+
};
|
|
3197
|
+
break;
|
|
3198
|
+
default:
|
|
3199
|
+
const parsedBody = parsedOutput.body;
|
|
3200
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3201
|
+
response = {
|
|
3202
|
+
...parsedBody,
|
|
3203
|
+
name: `${errorCode}`,
|
|
3204
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3205
|
+
$fault: "client",
|
|
3206
|
+
$metadata: deserializeMetadata(output),
|
|
3207
|
+
};
|
|
3208
|
+
}
|
|
3209
|
+
const message = response.message || response.Message || errorCode;
|
|
3210
|
+
response.message = message;
|
|
3211
|
+
delete response.Message;
|
|
3212
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3213
|
+
};
|
|
2937
3214
|
const deserializeAws_json1_1ListDocumentClassificationJobsCommand = async (output, context) => {
|
|
2938
3215
|
if (output.statusCode >= 300) {
|
|
2939
3216
|
return deserializeAws_json1_1ListDocumentClassificationJobsCommandError(output, context);
|
|
@@ -3896,6 +4173,69 @@ const deserializeAws_json1_1ListTopicsDetectionJobsCommandError = async (output,
|
|
|
3896
4173
|
delete response.Message;
|
|
3897
4174
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3898
4175
|
};
|
|
4176
|
+
const deserializeAws_json1_1PutResourcePolicyCommand = async (output, context) => {
|
|
4177
|
+
if (output.statusCode >= 300) {
|
|
4178
|
+
return deserializeAws_json1_1PutResourcePolicyCommandError(output, context);
|
|
4179
|
+
}
|
|
4180
|
+
const data = await parseBody(output.body, context);
|
|
4181
|
+
let contents = {};
|
|
4182
|
+
contents = deserializeAws_json1_1PutResourcePolicyResponse(data, context);
|
|
4183
|
+
const response = {
|
|
4184
|
+
$metadata: deserializeMetadata(output),
|
|
4185
|
+
...contents,
|
|
4186
|
+
};
|
|
4187
|
+
return Promise.resolve(response);
|
|
4188
|
+
};
|
|
4189
|
+
exports.deserializeAws_json1_1PutResourcePolicyCommand = deserializeAws_json1_1PutResourcePolicyCommand;
|
|
4190
|
+
const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, context) => {
|
|
4191
|
+
const parsedOutput = {
|
|
4192
|
+
...output,
|
|
4193
|
+
body: await parseBody(output.body, context),
|
|
4194
|
+
};
|
|
4195
|
+
let response;
|
|
4196
|
+
let errorCode = "UnknownError";
|
|
4197
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4198
|
+
switch (errorCode) {
|
|
4199
|
+
case "InternalServerException":
|
|
4200
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
4201
|
+
response = {
|
|
4202
|
+
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4203
|
+
name: errorCode,
|
|
4204
|
+
$metadata: deserializeMetadata(output),
|
|
4205
|
+
};
|
|
4206
|
+
break;
|
|
4207
|
+
case "InvalidRequestException":
|
|
4208
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4209
|
+
response = {
|
|
4210
|
+
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
4211
|
+
name: errorCode,
|
|
4212
|
+
$metadata: deserializeMetadata(output),
|
|
4213
|
+
};
|
|
4214
|
+
break;
|
|
4215
|
+
case "ResourceNotFoundException":
|
|
4216
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
4217
|
+
response = {
|
|
4218
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4219
|
+
name: errorCode,
|
|
4220
|
+
$metadata: deserializeMetadata(output),
|
|
4221
|
+
};
|
|
4222
|
+
break;
|
|
4223
|
+
default:
|
|
4224
|
+
const parsedBody = parsedOutput.body;
|
|
4225
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4226
|
+
response = {
|
|
4227
|
+
...parsedBody,
|
|
4228
|
+
name: `${errorCode}`,
|
|
4229
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4230
|
+
$fault: "client",
|
|
4231
|
+
$metadata: deserializeMetadata(output),
|
|
4232
|
+
};
|
|
4233
|
+
}
|
|
4234
|
+
const message = response.message || response.Message || errorCode;
|
|
4235
|
+
response.message = message;
|
|
4236
|
+
delete response.Message;
|
|
4237
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4238
|
+
};
|
|
3899
4239
|
const deserializeAws_json1_1StartDocumentClassificationJobCommand = async (output, context) => {
|
|
3900
4240
|
if (output.statusCode >= 300) {
|
|
3901
4241
|
return deserializeAws_json1_1StartDocumentClassificationJobCommandError(output, context);
|
|
@@ -5595,6 +5935,7 @@ const serializeAws_json1_1CreateDocumentClassifierRequest = (input, context) =>
|
|
|
5595
5935
|
...(input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode }),
|
|
5596
5936
|
...(input.Mode !== undefined && input.Mode !== null && { Mode: input.Mode }),
|
|
5597
5937
|
...(input.ModelKmsKeyId !== undefined && input.ModelKmsKeyId !== null && { ModelKmsKeyId: input.ModelKmsKeyId }),
|
|
5938
|
+
...(input.ModelPolicy !== undefined && input.ModelPolicy !== null && { ModelPolicy: input.ModelPolicy }),
|
|
5598
5939
|
...(input.OutputDataConfig !== undefined &&
|
|
5599
5940
|
input.OutputDataConfig !== null && {
|
|
5600
5941
|
OutputDataConfig: serializeAws_json1_1DocumentClassifierOutputDataConfig(input.OutputDataConfig, context),
|
|
@@ -5632,6 +5973,7 @@ const serializeAws_json1_1CreateEntityRecognizerRequest = (input, context) => {
|
|
|
5632
5973
|
}),
|
|
5633
5974
|
...(input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode }),
|
|
5634
5975
|
...(input.ModelKmsKeyId !== undefined && input.ModelKmsKeyId !== null && { ModelKmsKeyId: input.ModelKmsKeyId }),
|
|
5976
|
+
...(input.ModelPolicy !== undefined && input.ModelPolicy !== null && { ModelPolicy: input.ModelPolicy }),
|
|
5635
5977
|
...(input.RecognizerName !== undefined &&
|
|
5636
5978
|
input.RecognizerName !== null && { RecognizerName: input.RecognizerName }),
|
|
5637
5979
|
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
@@ -5669,6 +6011,13 @@ const serializeAws_json1_1DeleteEntityRecognizerRequest = (input, context) => {
|
|
|
5669
6011
|
input.EntityRecognizerArn !== null && { EntityRecognizerArn: input.EntityRecognizerArn }),
|
|
5670
6012
|
};
|
|
5671
6013
|
};
|
|
6014
|
+
const serializeAws_json1_1DeleteResourcePolicyRequest = (input, context) => {
|
|
6015
|
+
return {
|
|
6016
|
+
...(input.PolicyRevisionId !== undefined &&
|
|
6017
|
+
input.PolicyRevisionId !== null && { PolicyRevisionId: input.PolicyRevisionId }),
|
|
6018
|
+
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
6019
|
+
};
|
|
6020
|
+
};
|
|
5672
6021
|
const serializeAws_json1_1DescribeDocumentClassificationJobRequest = (input, context) => {
|
|
5673
6022
|
return {
|
|
5674
6023
|
...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
|
|
@@ -5716,6 +6065,11 @@ const serializeAws_json1_1DescribePiiEntitiesDetectionJobRequest = (input, conte
|
|
|
5716
6065
|
...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
|
|
5717
6066
|
};
|
|
5718
6067
|
};
|
|
6068
|
+
const serializeAws_json1_1DescribeResourcePolicyRequest = (input, context) => {
|
|
6069
|
+
return {
|
|
6070
|
+
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
6071
|
+
};
|
|
6072
|
+
};
|
|
5719
6073
|
const serializeAws_json1_1DescribeSentimentDetectionJobRequest = (input, context) => {
|
|
5720
6074
|
return {
|
|
5721
6075
|
...(input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }),
|
|
@@ -5943,6 +6297,18 @@ const serializeAws_json1_1EventsDetectionJobFilter = (input, context) => {
|
|
|
5943
6297
|
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
5944
6298
|
};
|
|
5945
6299
|
};
|
|
6300
|
+
const serializeAws_json1_1ImportModelRequest = (input, context) => {
|
|
6301
|
+
return {
|
|
6302
|
+
...(input.DataAccessRoleArn !== undefined &&
|
|
6303
|
+
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
6304
|
+
...(input.ModelKmsKeyId !== undefined && input.ModelKmsKeyId !== null && { ModelKmsKeyId: input.ModelKmsKeyId }),
|
|
6305
|
+
...(input.ModelName !== undefined && input.ModelName !== null && { ModelName: input.ModelName }),
|
|
6306
|
+
...(input.SourceModelArn !== undefined &&
|
|
6307
|
+
input.SourceModelArn !== null && { SourceModelArn: input.SourceModelArn }),
|
|
6308
|
+
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
6309
|
+
...(input.VersionName !== undefined && input.VersionName !== null && { VersionName: input.VersionName }),
|
|
6310
|
+
};
|
|
6311
|
+
};
|
|
5946
6312
|
const serializeAws_json1_1InputDataConfig = (input, context) => {
|
|
5947
6313
|
return {
|
|
5948
6314
|
...(input.DocumentReaderConfig !== undefined &&
|
|
@@ -6106,6 +6472,15 @@ const serializeAws_json1_1PiiEntitiesDetectionJobFilter = (input, context) => {
|
|
|
6106
6472
|
input.SubmitTimeBefore !== null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
6107
6473
|
};
|
|
6108
6474
|
};
|
|
6475
|
+
const serializeAws_json1_1PutResourcePolicyRequest = (input, context) => {
|
|
6476
|
+
return {
|
|
6477
|
+
...(input.PolicyRevisionId !== undefined &&
|
|
6478
|
+
input.PolicyRevisionId !== null && { PolicyRevisionId: input.PolicyRevisionId }),
|
|
6479
|
+
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
6480
|
+
...(input.ResourcePolicy !== undefined &&
|
|
6481
|
+
input.ResourcePolicy !== null && { ResourcePolicy: input.ResourcePolicy }),
|
|
6482
|
+
};
|
|
6483
|
+
};
|
|
6109
6484
|
const serializeAws_json1_1RedactionConfig = (input, context) => {
|
|
6110
6485
|
return {
|
|
6111
6486
|
...(input.MaskCharacter !== undefined && input.MaskCharacter !== null && { MaskCharacter: input.MaskCharacter }),
|
|
@@ -6659,6 +7034,9 @@ const deserializeAws_json1_1DeleteEndpointResponse = (output, context) => {
|
|
|
6659
7034
|
const deserializeAws_json1_1DeleteEntityRecognizerResponse = (output, context) => {
|
|
6660
7035
|
return {};
|
|
6661
7036
|
};
|
|
7037
|
+
const deserializeAws_json1_1DeleteResourcePolicyResponse = (output, context) => {
|
|
7038
|
+
return {};
|
|
7039
|
+
};
|
|
6662
7040
|
const deserializeAws_json1_1DescribeDocumentClassificationJobResponse = (output, context) => {
|
|
6663
7041
|
return {
|
|
6664
7042
|
DocumentClassificationJobProperties: output.DocumentClassificationJobProperties !== undefined && output.DocumentClassificationJobProperties !== null
|
|
@@ -6723,6 +7101,18 @@ const deserializeAws_json1_1DescribePiiEntitiesDetectionJobResponse = (output, c
|
|
|
6723
7101
|
: undefined,
|
|
6724
7102
|
};
|
|
6725
7103
|
};
|
|
7104
|
+
const deserializeAws_json1_1DescribeResourcePolicyResponse = (output, context) => {
|
|
7105
|
+
return {
|
|
7106
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
7107
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
7108
|
+
: undefined,
|
|
7109
|
+
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
7110
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedTime)))
|
|
7111
|
+
: undefined,
|
|
7112
|
+
PolicyRevisionId: smithy_client_1.expectString(output.PolicyRevisionId),
|
|
7113
|
+
ResourcePolicy: smithy_client_1.expectString(output.ResourcePolicy),
|
|
7114
|
+
};
|
|
7115
|
+
};
|
|
6726
7116
|
const deserializeAws_json1_1DescribeSentimentDetectionJobResponse = (output, context) => {
|
|
6727
7117
|
return {
|
|
6728
7118
|
SentimentDetectionJobProperties: output.SentimentDetectionJobProperties !== undefined && output.SentimentDetectionJobProperties !== null
|
|
@@ -6870,6 +7260,7 @@ const deserializeAws_json1_1DocumentClassifierProperties = (output, context) =>
|
|
|
6870
7260
|
OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
|
|
6871
7261
|
? deserializeAws_json1_1DocumentClassifierOutputDataConfig(output.OutputDataConfig, context)
|
|
6872
7262
|
: undefined,
|
|
7263
|
+
SourceModelArn: smithy_client_1.expectString(output.SourceModelArn),
|
|
6873
7264
|
Status: smithy_client_1.expectString(output.Status),
|
|
6874
7265
|
SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
|
|
6875
7266
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubmitTime)))
|
|
@@ -7159,6 +7550,7 @@ const deserializeAws_json1_1EntityRecognizerProperties = (output, context) => {
|
|
|
7159
7550
|
RecognizerMetadata: output.RecognizerMetadata !== undefined && output.RecognizerMetadata !== null
|
|
7160
7551
|
? deserializeAws_json1_1EntityRecognizerMetadata(output.RecognizerMetadata, context)
|
|
7161
7552
|
: undefined,
|
|
7553
|
+
SourceModelArn: smithy_client_1.expectString(output.SourceModelArn),
|
|
7162
7554
|
Status: smithy_client_1.expectString(output.Status),
|
|
7163
7555
|
SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
|
|
7164
7556
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubmitTime)))
|
|
@@ -7265,6 +7657,11 @@ const deserializeAws_json1_1EventsDetectionJobPropertiesList = (output, context)
|
|
|
7265
7657
|
return deserializeAws_json1_1EventsDetectionJobProperties(entry, context);
|
|
7266
7658
|
});
|
|
7267
7659
|
};
|
|
7660
|
+
const deserializeAws_json1_1ImportModelResponse = (output, context) => {
|
|
7661
|
+
return {
|
|
7662
|
+
ModelArn: smithy_client_1.expectString(output.ModelArn),
|
|
7663
|
+
};
|
|
7664
|
+
};
|
|
7268
7665
|
const deserializeAws_json1_1InputDataConfig = (output, context) => {
|
|
7269
7666
|
return {
|
|
7270
7667
|
DocumentReaderConfig: output.DocumentReaderConfig !== undefined && output.DocumentReaderConfig !== null
|
|
@@ -7672,6 +8069,11 @@ const deserializeAws_json1_1PiiOutputDataConfig = (output, context) => {
|
|
|
7672
8069
|
S3Uri: smithy_client_1.expectString(output.S3Uri),
|
|
7673
8070
|
};
|
|
7674
8071
|
};
|
|
8072
|
+
const deserializeAws_json1_1PutResourcePolicyResponse = (output, context) => {
|
|
8073
|
+
return {
|
|
8074
|
+
PolicyRevisionId: smithy_client_1.expectString(output.PolicyRevisionId),
|
|
8075
|
+
};
|
|
8076
|
+
};
|
|
7675
8077
|
const deserializeAws_json1_1RedactionConfig = (output, context) => {
|
|
7676
8078
|
return {
|
|
7677
8079
|
MaskCharacter: smithy_client_1.expectString(output.MaskCharacter),
|