@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,8 +1,9 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { ComprehendServiceException as __BaseException } from "../models/ComprehendServiceException";
|
|
5
|
-
import { BatchSizeLimitExceededException,
|
|
5
|
+
import { BatchSizeLimitExceededException, InternalServerException, InvalidFilterException, InvalidRequestException, JobNotFoundException, KmsKeyValidationException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourceUnavailableException, TextSizeLimitExceededException, TooManyRequestsException, TooManyTagsException, UnsupportedLanguageException, } from "../models/models_0";
|
|
6
|
+
import { ConcurrentModificationException, TooManyTagKeysException, } from "../models/models_1";
|
|
6
7
|
export const serializeAws_json1_1BatchDetectDominantLanguageCommand = async (input, context) => {
|
|
7
8
|
const headers = {
|
|
8
9
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -75,6 +76,15 @@ export const serializeAws_json1_1ContainsPiiEntitiesCommand = async (input, cont
|
|
|
75
76
|
body = JSON.stringify(serializeAws_json1_1ContainsPiiEntitiesRequest(input, context));
|
|
76
77
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
78
|
};
|
|
79
|
+
export const serializeAws_json1_1CreateDatasetCommand = async (input, context) => {
|
|
80
|
+
const headers = {
|
|
81
|
+
"content-type": "application/x-amz-json-1.1",
|
|
82
|
+
"x-amz-target": "Comprehend_20171127.CreateDataset",
|
|
83
|
+
};
|
|
84
|
+
let body;
|
|
85
|
+
body = JSON.stringify(serializeAws_json1_1CreateDatasetRequest(input, context));
|
|
86
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
|
+
};
|
|
78
88
|
export const serializeAws_json1_1CreateDocumentClassifierCommand = async (input, context) => {
|
|
79
89
|
const headers = {
|
|
80
90
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -102,6 +112,15 @@ export const serializeAws_json1_1CreateEntityRecognizerCommand = async (input, c
|
|
|
102
112
|
body = JSON.stringify(serializeAws_json1_1CreateEntityRecognizerRequest(input, context));
|
|
103
113
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
114
|
};
|
|
115
|
+
export const serializeAws_json1_1CreateFlywheelCommand = async (input, context) => {
|
|
116
|
+
const headers = {
|
|
117
|
+
"content-type": "application/x-amz-json-1.1",
|
|
118
|
+
"x-amz-target": "Comprehend_20171127.CreateFlywheel",
|
|
119
|
+
};
|
|
120
|
+
let body;
|
|
121
|
+
body = JSON.stringify(serializeAws_json1_1CreateFlywheelRequest(input, context));
|
|
122
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
123
|
+
};
|
|
105
124
|
export const serializeAws_json1_1DeleteDocumentClassifierCommand = async (input, context) => {
|
|
106
125
|
const headers = {
|
|
107
126
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -129,6 +148,15 @@ export const serializeAws_json1_1DeleteEntityRecognizerCommand = async (input, c
|
|
|
129
148
|
body = JSON.stringify(serializeAws_json1_1DeleteEntityRecognizerRequest(input, context));
|
|
130
149
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
150
|
};
|
|
151
|
+
export const serializeAws_json1_1DeleteFlywheelCommand = async (input, context) => {
|
|
152
|
+
const headers = {
|
|
153
|
+
"content-type": "application/x-amz-json-1.1",
|
|
154
|
+
"x-amz-target": "Comprehend_20171127.DeleteFlywheel",
|
|
155
|
+
};
|
|
156
|
+
let body;
|
|
157
|
+
body = JSON.stringify(serializeAws_json1_1DeleteFlywheelRequest(input, context));
|
|
158
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
159
|
+
};
|
|
132
160
|
export const serializeAws_json1_1DeleteResourcePolicyCommand = async (input, context) => {
|
|
133
161
|
const headers = {
|
|
134
162
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -138,6 +166,15 @@ export const serializeAws_json1_1DeleteResourcePolicyCommand = async (input, con
|
|
|
138
166
|
body = JSON.stringify(serializeAws_json1_1DeleteResourcePolicyRequest(input, context));
|
|
139
167
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
168
|
};
|
|
169
|
+
export const serializeAws_json1_1DescribeDatasetCommand = async (input, context) => {
|
|
170
|
+
const headers = {
|
|
171
|
+
"content-type": "application/x-amz-json-1.1",
|
|
172
|
+
"x-amz-target": "Comprehend_20171127.DescribeDataset",
|
|
173
|
+
};
|
|
174
|
+
let body;
|
|
175
|
+
body = JSON.stringify(serializeAws_json1_1DescribeDatasetRequest(input, context));
|
|
176
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
|
+
};
|
|
141
178
|
export const serializeAws_json1_1DescribeDocumentClassificationJobCommand = async (input, context) => {
|
|
142
179
|
const headers = {
|
|
143
180
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -201,6 +238,24 @@ export const serializeAws_json1_1DescribeEventsDetectionJobCommand = async (inpu
|
|
|
201
238
|
body = JSON.stringify(serializeAws_json1_1DescribeEventsDetectionJobRequest(input, context));
|
|
202
239
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
240
|
};
|
|
241
|
+
export const serializeAws_json1_1DescribeFlywheelCommand = async (input, context) => {
|
|
242
|
+
const headers = {
|
|
243
|
+
"content-type": "application/x-amz-json-1.1",
|
|
244
|
+
"x-amz-target": "Comprehend_20171127.DescribeFlywheel",
|
|
245
|
+
};
|
|
246
|
+
let body;
|
|
247
|
+
body = JSON.stringify(serializeAws_json1_1DescribeFlywheelRequest(input, context));
|
|
248
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
249
|
+
};
|
|
250
|
+
export const serializeAws_json1_1DescribeFlywheelIterationCommand = async (input, context) => {
|
|
251
|
+
const headers = {
|
|
252
|
+
"content-type": "application/x-amz-json-1.1",
|
|
253
|
+
"x-amz-target": "Comprehend_20171127.DescribeFlywheelIteration",
|
|
254
|
+
};
|
|
255
|
+
let body;
|
|
256
|
+
body = JSON.stringify(serializeAws_json1_1DescribeFlywheelIterationRequest(input, context));
|
|
257
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
258
|
+
};
|
|
204
259
|
export const serializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = async (input, context) => {
|
|
205
260
|
const headers = {
|
|
206
261
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -327,6 +382,15 @@ export const serializeAws_json1_1ImportModelCommand = async (input, context) =>
|
|
|
327
382
|
body = JSON.stringify(serializeAws_json1_1ImportModelRequest(input, context));
|
|
328
383
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
329
384
|
};
|
|
385
|
+
export const serializeAws_json1_1ListDatasetsCommand = async (input, context) => {
|
|
386
|
+
const headers = {
|
|
387
|
+
"content-type": "application/x-amz-json-1.1",
|
|
388
|
+
"x-amz-target": "Comprehend_20171127.ListDatasets",
|
|
389
|
+
};
|
|
390
|
+
let body;
|
|
391
|
+
body = JSON.stringify(serializeAws_json1_1ListDatasetsRequest(input, context));
|
|
392
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
393
|
+
};
|
|
330
394
|
export const serializeAws_json1_1ListDocumentClassificationJobsCommand = async (input, context) => {
|
|
331
395
|
const headers = {
|
|
332
396
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -408,6 +472,24 @@ export const serializeAws_json1_1ListEventsDetectionJobsCommand = async (input,
|
|
|
408
472
|
body = JSON.stringify(serializeAws_json1_1ListEventsDetectionJobsRequest(input, context));
|
|
409
473
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
410
474
|
};
|
|
475
|
+
export const serializeAws_json1_1ListFlywheelIterationHistoryCommand = async (input, context) => {
|
|
476
|
+
const headers = {
|
|
477
|
+
"content-type": "application/x-amz-json-1.1",
|
|
478
|
+
"x-amz-target": "Comprehend_20171127.ListFlywheelIterationHistory",
|
|
479
|
+
};
|
|
480
|
+
let body;
|
|
481
|
+
body = JSON.stringify(serializeAws_json1_1ListFlywheelIterationHistoryRequest(input, context));
|
|
482
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
483
|
+
};
|
|
484
|
+
export const serializeAws_json1_1ListFlywheelsCommand = async (input, context) => {
|
|
485
|
+
const headers = {
|
|
486
|
+
"content-type": "application/x-amz-json-1.1",
|
|
487
|
+
"x-amz-target": "Comprehend_20171127.ListFlywheels",
|
|
488
|
+
};
|
|
489
|
+
let body;
|
|
490
|
+
body = JSON.stringify(serializeAws_json1_1ListFlywheelsRequest(input, context));
|
|
491
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
492
|
+
};
|
|
411
493
|
export const serializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = async (input, context) => {
|
|
412
494
|
const headers = {
|
|
413
495
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -507,6 +589,15 @@ export const serializeAws_json1_1StartEventsDetectionJobCommand = async (input,
|
|
|
507
589
|
body = JSON.stringify(serializeAws_json1_1StartEventsDetectionJobRequest(input, context));
|
|
508
590
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
509
591
|
};
|
|
592
|
+
export const serializeAws_json1_1StartFlywheelIterationCommand = async (input, context) => {
|
|
593
|
+
const headers = {
|
|
594
|
+
"content-type": "application/x-amz-json-1.1",
|
|
595
|
+
"x-amz-target": "Comprehend_20171127.StartFlywheelIteration",
|
|
596
|
+
};
|
|
597
|
+
let body;
|
|
598
|
+
body = JSON.stringify(serializeAws_json1_1StartFlywheelIterationRequest(input, context));
|
|
599
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
600
|
+
};
|
|
510
601
|
export const serializeAws_json1_1StartKeyPhrasesDetectionJobCommand = async (input, context) => {
|
|
511
602
|
const headers = {
|
|
512
603
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -660,6 +751,15 @@ export const serializeAws_json1_1UpdateEndpointCommand = async (input, context)
|
|
|
660
751
|
body = JSON.stringify(serializeAws_json1_1UpdateEndpointRequest(input, context));
|
|
661
752
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
662
753
|
};
|
|
754
|
+
export const serializeAws_json1_1UpdateFlywheelCommand = async (input, context) => {
|
|
755
|
+
const headers = {
|
|
756
|
+
"content-type": "application/x-amz-json-1.1",
|
|
757
|
+
"x-amz-target": "Comprehend_20171127.UpdateFlywheel",
|
|
758
|
+
};
|
|
759
|
+
let body;
|
|
760
|
+
body = JSON.stringify(serializeAws_json1_1UpdateFlywheelRequest(input, context));
|
|
761
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
762
|
+
};
|
|
663
763
|
export const deserializeAws_json1_1BatchDetectDominantLanguageCommand = async (output, context) => {
|
|
664
764
|
if (output.statusCode >= 300) {
|
|
665
765
|
return deserializeAws_json1_1BatchDetectDominantLanguageCommandError(output, context);
|
|
@@ -1011,6 +1111,57 @@ const deserializeAws_json1_1ContainsPiiEntitiesCommandError = async (output, con
|
|
|
1011
1111
|
});
|
|
1012
1112
|
}
|
|
1013
1113
|
};
|
|
1114
|
+
export const deserializeAws_json1_1CreateDatasetCommand = async (output, context) => {
|
|
1115
|
+
if (output.statusCode >= 300) {
|
|
1116
|
+
return deserializeAws_json1_1CreateDatasetCommandError(output, context);
|
|
1117
|
+
}
|
|
1118
|
+
const data = await parseBody(output.body, context);
|
|
1119
|
+
let contents = {};
|
|
1120
|
+
contents = deserializeAws_json1_1CreateDatasetResponse(data, context);
|
|
1121
|
+
const response = {
|
|
1122
|
+
$metadata: deserializeMetadata(output),
|
|
1123
|
+
...contents,
|
|
1124
|
+
};
|
|
1125
|
+
return Promise.resolve(response);
|
|
1126
|
+
};
|
|
1127
|
+
const deserializeAws_json1_1CreateDatasetCommandError = async (output, context) => {
|
|
1128
|
+
const parsedOutput = {
|
|
1129
|
+
...output,
|
|
1130
|
+
body: await parseErrorBody(output.body, context),
|
|
1131
|
+
};
|
|
1132
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1133
|
+
switch (errorCode) {
|
|
1134
|
+
case "InternalServerException":
|
|
1135
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
1136
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1137
|
+
case "InvalidRequestException":
|
|
1138
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1139
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1140
|
+
case "ResourceInUseException":
|
|
1141
|
+
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
1142
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1143
|
+
case "ResourceLimitExceededException":
|
|
1144
|
+
case "com.amazonaws.comprehend#ResourceLimitExceededException":
|
|
1145
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1146
|
+
case "ResourceNotFoundException":
|
|
1147
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
1148
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1149
|
+
case "TooManyRequestsException":
|
|
1150
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
1151
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1152
|
+
case "TooManyTagsException":
|
|
1153
|
+
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
1154
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1155
|
+
default:
|
|
1156
|
+
const parsedBody = parsedOutput.body;
|
|
1157
|
+
throwDefaultError({
|
|
1158
|
+
output,
|
|
1159
|
+
parsedBody,
|
|
1160
|
+
exceptionCtor: __BaseException,
|
|
1161
|
+
errorCode,
|
|
1162
|
+
});
|
|
1163
|
+
}
|
|
1164
|
+
};
|
|
1014
1165
|
export const deserializeAws_json1_1CreateDocumentClassifierCommand = async (output, context) => {
|
|
1015
1166
|
if (output.statusCode >= 300) {
|
|
1016
1167
|
return deserializeAws_json1_1CreateDocumentClassifierCommandError(output, context);
|
|
@@ -1173,6 +1324,66 @@ const deserializeAws_json1_1CreateEntityRecognizerCommandError = async (output,
|
|
|
1173
1324
|
});
|
|
1174
1325
|
}
|
|
1175
1326
|
};
|
|
1327
|
+
export const deserializeAws_json1_1CreateFlywheelCommand = async (output, context) => {
|
|
1328
|
+
if (output.statusCode >= 300) {
|
|
1329
|
+
return deserializeAws_json1_1CreateFlywheelCommandError(output, context);
|
|
1330
|
+
}
|
|
1331
|
+
const data = await parseBody(output.body, context);
|
|
1332
|
+
let contents = {};
|
|
1333
|
+
contents = deserializeAws_json1_1CreateFlywheelResponse(data, context);
|
|
1334
|
+
const response = {
|
|
1335
|
+
$metadata: deserializeMetadata(output),
|
|
1336
|
+
...contents,
|
|
1337
|
+
};
|
|
1338
|
+
return Promise.resolve(response);
|
|
1339
|
+
};
|
|
1340
|
+
const deserializeAws_json1_1CreateFlywheelCommandError = async (output, context) => {
|
|
1341
|
+
const parsedOutput = {
|
|
1342
|
+
...output,
|
|
1343
|
+
body: await parseErrorBody(output.body, context),
|
|
1344
|
+
};
|
|
1345
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1346
|
+
switch (errorCode) {
|
|
1347
|
+
case "InternalServerException":
|
|
1348
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
1349
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1350
|
+
case "InvalidRequestException":
|
|
1351
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1352
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1353
|
+
case "KmsKeyValidationException":
|
|
1354
|
+
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
1355
|
+
throw await deserializeAws_json1_1KmsKeyValidationExceptionResponse(parsedOutput, context);
|
|
1356
|
+
case "ResourceInUseException":
|
|
1357
|
+
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
1358
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1359
|
+
case "ResourceLimitExceededException":
|
|
1360
|
+
case "com.amazonaws.comprehend#ResourceLimitExceededException":
|
|
1361
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1362
|
+
case "ResourceNotFoundException":
|
|
1363
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
1364
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1365
|
+
case "ResourceUnavailableException":
|
|
1366
|
+
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
1367
|
+
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
1368
|
+
case "TooManyRequestsException":
|
|
1369
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
1370
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1371
|
+
case "TooManyTagsException":
|
|
1372
|
+
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
1373
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1374
|
+
case "UnsupportedLanguageException":
|
|
1375
|
+
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
1376
|
+
throw await deserializeAws_json1_1UnsupportedLanguageExceptionResponse(parsedOutput, context);
|
|
1377
|
+
default:
|
|
1378
|
+
const parsedBody = parsedOutput.body;
|
|
1379
|
+
throwDefaultError({
|
|
1380
|
+
output,
|
|
1381
|
+
parsedBody,
|
|
1382
|
+
exceptionCtor: __BaseException,
|
|
1383
|
+
errorCode,
|
|
1384
|
+
});
|
|
1385
|
+
}
|
|
1386
|
+
};
|
|
1176
1387
|
export const deserializeAws_json1_1DeleteDocumentClassifierCommand = async (output, context) => {
|
|
1177
1388
|
if (output.statusCode >= 300) {
|
|
1178
1389
|
return deserializeAws_json1_1DeleteDocumentClassifierCommandError(output, context);
|
|
@@ -1314,6 +1525,54 @@ const deserializeAws_json1_1DeleteEntityRecognizerCommandError = async (output,
|
|
|
1314
1525
|
});
|
|
1315
1526
|
}
|
|
1316
1527
|
};
|
|
1528
|
+
export const deserializeAws_json1_1DeleteFlywheelCommand = async (output, context) => {
|
|
1529
|
+
if (output.statusCode >= 300) {
|
|
1530
|
+
return deserializeAws_json1_1DeleteFlywheelCommandError(output, context);
|
|
1531
|
+
}
|
|
1532
|
+
const data = await parseBody(output.body, context);
|
|
1533
|
+
let contents = {};
|
|
1534
|
+
contents = deserializeAws_json1_1DeleteFlywheelResponse(data, context);
|
|
1535
|
+
const response = {
|
|
1536
|
+
$metadata: deserializeMetadata(output),
|
|
1537
|
+
...contents,
|
|
1538
|
+
};
|
|
1539
|
+
return Promise.resolve(response);
|
|
1540
|
+
};
|
|
1541
|
+
const deserializeAws_json1_1DeleteFlywheelCommandError = async (output, context) => {
|
|
1542
|
+
const parsedOutput = {
|
|
1543
|
+
...output,
|
|
1544
|
+
body: await parseErrorBody(output.body, context),
|
|
1545
|
+
};
|
|
1546
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1547
|
+
switch (errorCode) {
|
|
1548
|
+
case "InternalServerException":
|
|
1549
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
1550
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1551
|
+
case "InvalidRequestException":
|
|
1552
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1553
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1554
|
+
case "ResourceInUseException":
|
|
1555
|
+
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
1556
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1557
|
+
case "ResourceNotFoundException":
|
|
1558
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
1559
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1560
|
+
case "ResourceUnavailableException":
|
|
1561
|
+
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
1562
|
+
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
1563
|
+
case "TooManyRequestsException":
|
|
1564
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
1565
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1566
|
+
default:
|
|
1567
|
+
const parsedBody = parsedOutput.body;
|
|
1568
|
+
throwDefaultError({
|
|
1569
|
+
output,
|
|
1570
|
+
parsedBody,
|
|
1571
|
+
exceptionCtor: __BaseException,
|
|
1572
|
+
errorCode,
|
|
1573
|
+
});
|
|
1574
|
+
}
|
|
1575
|
+
};
|
|
1317
1576
|
export const deserializeAws_json1_1DeleteResourcePolicyCommand = async (output, context) => {
|
|
1318
1577
|
if (output.statusCode >= 300) {
|
|
1319
1578
|
return deserializeAws_json1_1DeleteResourcePolicyCommandError(output, context);
|
|
@@ -1353,6 +1612,48 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
1353
1612
|
});
|
|
1354
1613
|
}
|
|
1355
1614
|
};
|
|
1615
|
+
export const deserializeAws_json1_1DescribeDatasetCommand = async (output, context) => {
|
|
1616
|
+
if (output.statusCode >= 300) {
|
|
1617
|
+
return deserializeAws_json1_1DescribeDatasetCommandError(output, context);
|
|
1618
|
+
}
|
|
1619
|
+
const data = await parseBody(output.body, context);
|
|
1620
|
+
let contents = {};
|
|
1621
|
+
contents = deserializeAws_json1_1DescribeDatasetResponse(data, context);
|
|
1622
|
+
const response = {
|
|
1623
|
+
$metadata: deserializeMetadata(output),
|
|
1624
|
+
...contents,
|
|
1625
|
+
};
|
|
1626
|
+
return Promise.resolve(response);
|
|
1627
|
+
};
|
|
1628
|
+
const deserializeAws_json1_1DescribeDatasetCommandError = async (output, context) => {
|
|
1629
|
+
const parsedOutput = {
|
|
1630
|
+
...output,
|
|
1631
|
+
body: await parseErrorBody(output.body, context),
|
|
1632
|
+
};
|
|
1633
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1634
|
+
switch (errorCode) {
|
|
1635
|
+
case "InternalServerException":
|
|
1636
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
1637
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1638
|
+
case "InvalidRequestException":
|
|
1639
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1640
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1641
|
+
case "ResourceNotFoundException":
|
|
1642
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
1643
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1644
|
+
case "TooManyRequestsException":
|
|
1645
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
1646
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1647
|
+
default:
|
|
1648
|
+
const parsedBody = parsedOutput.body;
|
|
1649
|
+
throwDefaultError({
|
|
1650
|
+
output,
|
|
1651
|
+
parsedBody,
|
|
1652
|
+
exceptionCtor: __BaseException,
|
|
1653
|
+
errorCode,
|
|
1654
|
+
});
|
|
1655
|
+
}
|
|
1656
|
+
};
|
|
1356
1657
|
export const deserializeAws_json1_1DescribeDocumentClassificationJobCommand = async (output, context) => {
|
|
1357
1658
|
if (output.statusCode >= 300) {
|
|
1358
1659
|
return deserializeAws_json1_1DescribeDocumentClassificationJobCommandError(output, context);
|
|
@@ -1647,6 +1948,90 @@ const deserializeAws_json1_1DescribeEventsDetectionJobCommandError = async (outp
|
|
|
1647
1948
|
});
|
|
1648
1949
|
}
|
|
1649
1950
|
};
|
|
1951
|
+
export const deserializeAws_json1_1DescribeFlywheelCommand = async (output, context) => {
|
|
1952
|
+
if (output.statusCode >= 300) {
|
|
1953
|
+
return deserializeAws_json1_1DescribeFlywheelCommandError(output, context);
|
|
1954
|
+
}
|
|
1955
|
+
const data = await parseBody(output.body, context);
|
|
1956
|
+
let contents = {};
|
|
1957
|
+
contents = deserializeAws_json1_1DescribeFlywheelResponse(data, context);
|
|
1958
|
+
const response = {
|
|
1959
|
+
$metadata: deserializeMetadata(output),
|
|
1960
|
+
...contents,
|
|
1961
|
+
};
|
|
1962
|
+
return Promise.resolve(response);
|
|
1963
|
+
};
|
|
1964
|
+
const deserializeAws_json1_1DescribeFlywheelCommandError = async (output, context) => {
|
|
1965
|
+
const parsedOutput = {
|
|
1966
|
+
...output,
|
|
1967
|
+
body: await parseErrorBody(output.body, context),
|
|
1968
|
+
};
|
|
1969
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1970
|
+
switch (errorCode) {
|
|
1971
|
+
case "InternalServerException":
|
|
1972
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
1973
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1974
|
+
case "InvalidRequestException":
|
|
1975
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1976
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1977
|
+
case "ResourceNotFoundException":
|
|
1978
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
1979
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1980
|
+
case "TooManyRequestsException":
|
|
1981
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
1982
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1983
|
+
default:
|
|
1984
|
+
const parsedBody = parsedOutput.body;
|
|
1985
|
+
throwDefaultError({
|
|
1986
|
+
output,
|
|
1987
|
+
parsedBody,
|
|
1988
|
+
exceptionCtor: __BaseException,
|
|
1989
|
+
errorCode,
|
|
1990
|
+
});
|
|
1991
|
+
}
|
|
1992
|
+
};
|
|
1993
|
+
export const deserializeAws_json1_1DescribeFlywheelIterationCommand = async (output, context) => {
|
|
1994
|
+
if (output.statusCode >= 300) {
|
|
1995
|
+
return deserializeAws_json1_1DescribeFlywheelIterationCommandError(output, context);
|
|
1996
|
+
}
|
|
1997
|
+
const data = await parseBody(output.body, context);
|
|
1998
|
+
let contents = {};
|
|
1999
|
+
contents = deserializeAws_json1_1DescribeFlywheelIterationResponse(data, context);
|
|
2000
|
+
const response = {
|
|
2001
|
+
$metadata: deserializeMetadata(output),
|
|
2002
|
+
...contents,
|
|
2003
|
+
};
|
|
2004
|
+
return Promise.resolve(response);
|
|
2005
|
+
};
|
|
2006
|
+
const deserializeAws_json1_1DescribeFlywheelIterationCommandError = async (output, context) => {
|
|
2007
|
+
const parsedOutput = {
|
|
2008
|
+
...output,
|
|
2009
|
+
body: await parseErrorBody(output.body, context),
|
|
2010
|
+
};
|
|
2011
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2012
|
+
switch (errorCode) {
|
|
2013
|
+
case "InternalServerException":
|
|
2014
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
2015
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2016
|
+
case "InvalidRequestException":
|
|
2017
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2018
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2019
|
+
case "ResourceNotFoundException":
|
|
2020
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2021
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2022
|
+
case "TooManyRequestsException":
|
|
2023
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2024
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2025
|
+
default:
|
|
2026
|
+
const parsedBody = parsedOutput.body;
|
|
2027
|
+
throwDefaultError({
|
|
2028
|
+
output,
|
|
2029
|
+
parsedBody,
|
|
2030
|
+
exceptionCtor: __BaseException,
|
|
2031
|
+
errorCode,
|
|
2032
|
+
});
|
|
2033
|
+
}
|
|
2034
|
+
};
|
|
1650
2035
|
export const deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = async (output, context) => {
|
|
1651
2036
|
if (output.statusCode >= 300) {
|
|
1652
2037
|
return deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommandError(output, context);
|
|
@@ -2228,15 +2613,60 @@ const deserializeAws_json1_1ImportModelCommandError = async (output, context) =>
|
|
|
2228
2613
|
case "ResourceNotFoundException":
|
|
2229
2614
|
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2230
2615
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2231
|
-
case "ResourceUnavailableException":
|
|
2232
|
-
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
2233
|
-
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
2616
|
+
case "ResourceUnavailableException":
|
|
2617
|
+
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
2618
|
+
throw await deserializeAws_json1_1ResourceUnavailableExceptionResponse(parsedOutput, context);
|
|
2619
|
+
case "TooManyRequestsException":
|
|
2620
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2621
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2622
|
+
case "TooManyTagsException":
|
|
2623
|
+
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
2624
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
2625
|
+
default:
|
|
2626
|
+
const parsedBody = parsedOutput.body;
|
|
2627
|
+
throwDefaultError({
|
|
2628
|
+
output,
|
|
2629
|
+
parsedBody,
|
|
2630
|
+
exceptionCtor: __BaseException,
|
|
2631
|
+
errorCode,
|
|
2632
|
+
});
|
|
2633
|
+
}
|
|
2634
|
+
};
|
|
2635
|
+
export const deserializeAws_json1_1ListDatasetsCommand = async (output, context) => {
|
|
2636
|
+
if (output.statusCode >= 300) {
|
|
2637
|
+
return deserializeAws_json1_1ListDatasetsCommandError(output, context);
|
|
2638
|
+
}
|
|
2639
|
+
const data = await parseBody(output.body, context);
|
|
2640
|
+
let contents = {};
|
|
2641
|
+
contents = deserializeAws_json1_1ListDatasetsResponse(data, context);
|
|
2642
|
+
const response = {
|
|
2643
|
+
$metadata: deserializeMetadata(output),
|
|
2644
|
+
...contents,
|
|
2645
|
+
};
|
|
2646
|
+
return Promise.resolve(response);
|
|
2647
|
+
};
|
|
2648
|
+
const deserializeAws_json1_1ListDatasetsCommandError = async (output, context) => {
|
|
2649
|
+
const parsedOutput = {
|
|
2650
|
+
...output,
|
|
2651
|
+
body: await parseErrorBody(output.body, context),
|
|
2652
|
+
};
|
|
2653
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2654
|
+
switch (errorCode) {
|
|
2655
|
+
case "InternalServerException":
|
|
2656
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
2657
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2658
|
+
case "InvalidFilterException":
|
|
2659
|
+
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
2660
|
+
throw await deserializeAws_json1_1InvalidFilterExceptionResponse(parsedOutput, context);
|
|
2661
|
+
case "InvalidRequestException":
|
|
2662
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2663
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2664
|
+
case "ResourceNotFoundException":
|
|
2665
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2666
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2234
2667
|
case "TooManyRequestsException":
|
|
2235
2668
|
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2236
2669
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2237
|
-
case "TooManyTagsException":
|
|
2238
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
2239
|
-
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
2240
2670
|
default:
|
|
2241
2671
|
const parsedBody = parsedOutput.body;
|
|
2242
2672
|
throwDefaultError({
|
|
@@ -2616,6 +3046,93 @@ const deserializeAws_json1_1ListEventsDetectionJobsCommandError = async (output,
|
|
|
2616
3046
|
});
|
|
2617
3047
|
}
|
|
2618
3048
|
};
|
|
3049
|
+
export const deserializeAws_json1_1ListFlywheelIterationHistoryCommand = async (output, context) => {
|
|
3050
|
+
if (output.statusCode >= 300) {
|
|
3051
|
+
return deserializeAws_json1_1ListFlywheelIterationHistoryCommandError(output, context);
|
|
3052
|
+
}
|
|
3053
|
+
const data = await parseBody(output.body, context);
|
|
3054
|
+
let contents = {};
|
|
3055
|
+
contents = deserializeAws_json1_1ListFlywheelIterationHistoryResponse(data, context);
|
|
3056
|
+
const response = {
|
|
3057
|
+
$metadata: deserializeMetadata(output),
|
|
3058
|
+
...contents,
|
|
3059
|
+
};
|
|
3060
|
+
return Promise.resolve(response);
|
|
3061
|
+
};
|
|
3062
|
+
const deserializeAws_json1_1ListFlywheelIterationHistoryCommandError = async (output, context) => {
|
|
3063
|
+
const parsedOutput = {
|
|
3064
|
+
...output,
|
|
3065
|
+
body: await parseErrorBody(output.body, context),
|
|
3066
|
+
};
|
|
3067
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3068
|
+
switch (errorCode) {
|
|
3069
|
+
case "InternalServerException":
|
|
3070
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
3071
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
3072
|
+
case "InvalidFilterException":
|
|
3073
|
+
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
3074
|
+
throw await deserializeAws_json1_1InvalidFilterExceptionResponse(parsedOutput, context);
|
|
3075
|
+
case "InvalidRequestException":
|
|
3076
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3077
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
3078
|
+
case "ResourceNotFoundException":
|
|
3079
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
3080
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3081
|
+
case "TooManyRequestsException":
|
|
3082
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3083
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3084
|
+
default:
|
|
3085
|
+
const parsedBody = parsedOutput.body;
|
|
3086
|
+
throwDefaultError({
|
|
3087
|
+
output,
|
|
3088
|
+
parsedBody,
|
|
3089
|
+
exceptionCtor: __BaseException,
|
|
3090
|
+
errorCode,
|
|
3091
|
+
});
|
|
3092
|
+
}
|
|
3093
|
+
};
|
|
3094
|
+
export const deserializeAws_json1_1ListFlywheelsCommand = async (output, context) => {
|
|
3095
|
+
if (output.statusCode >= 300) {
|
|
3096
|
+
return deserializeAws_json1_1ListFlywheelsCommandError(output, context);
|
|
3097
|
+
}
|
|
3098
|
+
const data = await parseBody(output.body, context);
|
|
3099
|
+
let contents = {};
|
|
3100
|
+
contents = deserializeAws_json1_1ListFlywheelsResponse(data, context);
|
|
3101
|
+
const response = {
|
|
3102
|
+
$metadata: deserializeMetadata(output),
|
|
3103
|
+
...contents,
|
|
3104
|
+
};
|
|
3105
|
+
return Promise.resolve(response);
|
|
3106
|
+
};
|
|
3107
|
+
const deserializeAws_json1_1ListFlywheelsCommandError = async (output, context) => {
|
|
3108
|
+
const parsedOutput = {
|
|
3109
|
+
...output,
|
|
3110
|
+
body: await parseErrorBody(output.body, context),
|
|
3111
|
+
};
|
|
3112
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3113
|
+
switch (errorCode) {
|
|
3114
|
+
case "InternalServerException":
|
|
3115
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
3116
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
3117
|
+
case "InvalidFilterException":
|
|
3118
|
+
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
3119
|
+
throw await deserializeAws_json1_1InvalidFilterExceptionResponse(parsedOutput, context);
|
|
3120
|
+
case "InvalidRequestException":
|
|
3121
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3122
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
3123
|
+
case "TooManyRequestsException":
|
|
3124
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3125
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3126
|
+
default:
|
|
3127
|
+
const parsedBody = parsedOutput.body;
|
|
3128
|
+
throwDefaultError({
|
|
3129
|
+
output,
|
|
3130
|
+
parsedBody,
|
|
3131
|
+
exceptionCtor: __BaseException,
|
|
3132
|
+
errorCode,
|
|
3133
|
+
});
|
|
3134
|
+
}
|
|
3135
|
+
};
|
|
2619
3136
|
export const deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = async (output, context) => {
|
|
2620
3137
|
if (output.statusCode >= 300) {
|
|
2621
3138
|
return deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommandError(output, context);
|
|
@@ -3096,6 +3613,51 @@ const deserializeAws_json1_1StartEventsDetectionJobCommandError = async (output,
|
|
|
3096
3613
|
});
|
|
3097
3614
|
}
|
|
3098
3615
|
};
|
|
3616
|
+
export const deserializeAws_json1_1StartFlywheelIterationCommand = async (output, context) => {
|
|
3617
|
+
if (output.statusCode >= 300) {
|
|
3618
|
+
return deserializeAws_json1_1StartFlywheelIterationCommandError(output, context);
|
|
3619
|
+
}
|
|
3620
|
+
const data = await parseBody(output.body, context);
|
|
3621
|
+
let contents = {};
|
|
3622
|
+
contents = deserializeAws_json1_1StartFlywheelIterationResponse(data, context);
|
|
3623
|
+
const response = {
|
|
3624
|
+
$metadata: deserializeMetadata(output),
|
|
3625
|
+
...contents,
|
|
3626
|
+
};
|
|
3627
|
+
return Promise.resolve(response);
|
|
3628
|
+
};
|
|
3629
|
+
const deserializeAws_json1_1StartFlywheelIterationCommandError = async (output, context) => {
|
|
3630
|
+
const parsedOutput = {
|
|
3631
|
+
...output,
|
|
3632
|
+
body: await parseErrorBody(output.body, context),
|
|
3633
|
+
};
|
|
3634
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3635
|
+
switch (errorCode) {
|
|
3636
|
+
case "InternalServerException":
|
|
3637
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
3638
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
3639
|
+
case "InvalidRequestException":
|
|
3640
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3641
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
3642
|
+
case "ResourceInUseException":
|
|
3643
|
+
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
3644
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
3645
|
+
case "ResourceNotFoundException":
|
|
3646
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
3647
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3648
|
+
case "TooManyRequestsException":
|
|
3649
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3650
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3651
|
+
default:
|
|
3652
|
+
const parsedBody = parsedOutput.body;
|
|
3653
|
+
throwDefaultError({
|
|
3654
|
+
output,
|
|
3655
|
+
parsedBody,
|
|
3656
|
+
exceptionCtor: __BaseException,
|
|
3657
|
+
errorCode,
|
|
3658
|
+
});
|
|
3659
|
+
}
|
|
3660
|
+
};
|
|
3099
3661
|
export const deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand = async (output, context) => {
|
|
3100
3662
|
if (output.statusCode >= 300) {
|
|
3101
3663
|
return deserializeAws_json1_1StartKeyPhrasesDetectionJobCommandError(output, context);
|
|
@@ -3819,6 +4381,51 @@ const deserializeAws_json1_1UpdateEndpointCommandError = async (output, context)
|
|
|
3819
4381
|
});
|
|
3820
4382
|
}
|
|
3821
4383
|
};
|
|
4384
|
+
export const deserializeAws_json1_1UpdateFlywheelCommand = async (output, context) => {
|
|
4385
|
+
if (output.statusCode >= 300) {
|
|
4386
|
+
return deserializeAws_json1_1UpdateFlywheelCommandError(output, context);
|
|
4387
|
+
}
|
|
4388
|
+
const data = await parseBody(output.body, context);
|
|
4389
|
+
let contents = {};
|
|
4390
|
+
contents = deserializeAws_json1_1UpdateFlywheelResponse(data, context);
|
|
4391
|
+
const response = {
|
|
4392
|
+
$metadata: deserializeMetadata(output),
|
|
4393
|
+
...contents,
|
|
4394
|
+
};
|
|
4395
|
+
return Promise.resolve(response);
|
|
4396
|
+
};
|
|
4397
|
+
const deserializeAws_json1_1UpdateFlywheelCommandError = async (output, context) => {
|
|
4398
|
+
const parsedOutput = {
|
|
4399
|
+
...output,
|
|
4400
|
+
body: await parseErrorBody(output.body, context),
|
|
4401
|
+
};
|
|
4402
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4403
|
+
switch (errorCode) {
|
|
4404
|
+
case "InternalServerException":
|
|
4405
|
+
case "com.amazonaws.comprehend#InternalServerException":
|
|
4406
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
4407
|
+
case "InvalidRequestException":
|
|
4408
|
+
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4409
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
4410
|
+
case "KmsKeyValidationException":
|
|
4411
|
+
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
4412
|
+
throw await deserializeAws_json1_1KmsKeyValidationExceptionResponse(parsedOutput, context);
|
|
4413
|
+
case "ResourceNotFoundException":
|
|
4414
|
+
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
4415
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4416
|
+
case "TooManyRequestsException":
|
|
4417
|
+
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
4418
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4419
|
+
default:
|
|
4420
|
+
const parsedBody = parsedOutput.body;
|
|
4421
|
+
throwDefaultError({
|
|
4422
|
+
output,
|
|
4423
|
+
parsedBody,
|
|
4424
|
+
exceptionCtor: __BaseException,
|
|
4425
|
+
errorCode,
|
|
4426
|
+
});
|
|
4427
|
+
}
|
|
4428
|
+
};
|
|
3822
4429
|
const deserializeAws_json1_1BatchSizeLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3823
4430
|
const body = parsedOutput.body;
|
|
3824
4431
|
const deserialized = deserializeAws_json1_1BatchSizeLimitExceededException(body, context);
|
|
@@ -4033,6 +4640,19 @@ const serializeAws_json1_1ContainsPiiEntitiesRequest = (input, context) => {
|
|
|
4033
4640
|
...(input.Text != null && { Text: input.Text }),
|
|
4034
4641
|
};
|
|
4035
4642
|
};
|
|
4643
|
+
const serializeAws_json1_1CreateDatasetRequest = (input, context) => {
|
|
4644
|
+
return {
|
|
4645
|
+
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
4646
|
+
...(input.DatasetName != null && { DatasetName: input.DatasetName }),
|
|
4647
|
+
...(input.DatasetType != null && { DatasetType: input.DatasetType }),
|
|
4648
|
+
...(input.Description != null && { Description: input.Description }),
|
|
4649
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
4650
|
+
...(input.InputDataConfig != null && {
|
|
4651
|
+
InputDataConfig: serializeAws_json1_1DatasetInputDataConfig(input.InputDataConfig, context),
|
|
4652
|
+
}),
|
|
4653
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4654
|
+
};
|
|
4655
|
+
};
|
|
4036
4656
|
const serializeAws_json1_1CreateDocumentClassifierRequest = (input, context) => {
|
|
4037
4657
|
return {
|
|
4038
4658
|
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
@@ -4060,6 +4680,7 @@ const serializeAws_json1_1CreateEndpointRequest = (input, context) => {
|
|
|
4060
4680
|
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4061
4681
|
...(input.DesiredInferenceUnits != null && { DesiredInferenceUnits: input.DesiredInferenceUnits }),
|
|
4062
4682
|
...(input.EndpointName != null && { EndpointName: input.EndpointName }),
|
|
4683
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
4063
4684
|
...(input.ModelArn != null && { ModelArn: input.ModelArn }),
|
|
4064
4685
|
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4065
4686
|
};
|
|
@@ -4071,22 +4692,122 @@ const serializeAws_json1_1CreateEntityRecognizerRequest = (input, context) => {
|
|
|
4071
4692
|
...(input.InputDataConfig != null && {
|
|
4072
4693
|
InputDataConfig: serializeAws_json1_1EntityRecognizerInputDataConfig(input.InputDataConfig, context),
|
|
4073
4694
|
}),
|
|
4074
|
-
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4075
|
-
...(input.ModelKmsKeyId != null && { ModelKmsKeyId: input.ModelKmsKeyId }),
|
|
4076
|
-
...(input.ModelPolicy != null && { ModelPolicy: input.ModelPolicy }),
|
|
4077
|
-
...(input.RecognizerName != null && { RecognizerName: input.RecognizerName }),
|
|
4078
|
-
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4079
|
-
...(input.VersionName != null && { VersionName: input.VersionName }),
|
|
4080
|
-
...(input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
|
|
4081
|
-
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4695
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
4696
|
+
...(input.ModelKmsKeyId != null && { ModelKmsKeyId: input.ModelKmsKeyId }),
|
|
4697
|
+
...(input.ModelPolicy != null && { ModelPolicy: input.ModelPolicy }),
|
|
4698
|
+
...(input.RecognizerName != null && { RecognizerName: input.RecognizerName }),
|
|
4699
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4700
|
+
...(input.VersionName != null && { VersionName: input.VersionName }),
|
|
4701
|
+
...(input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
|
|
4702
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4703
|
+
};
|
|
4704
|
+
};
|
|
4705
|
+
const serializeAws_json1_1CreateFlywheelRequest = (input, context) => {
|
|
4706
|
+
return {
|
|
4707
|
+
...(input.ActiveModelArn != null && { ActiveModelArn: input.ActiveModelArn }),
|
|
4708
|
+
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
4709
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4710
|
+
...(input.DataLakeS3Uri != null && { DataLakeS3Uri: input.DataLakeS3Uri }),
|
|
4711
|
+
...(input.DataSecurityConfig != null && {
|
|
4712
|
+
DataSecurityConfig: serializeAws_json1_1DataSecurityConfig(input.DataSecurityConfig, context),
|
|
4713
|
+
}),
|
|
4714
|
+
...(input.FlywheelName != null && { FlywheelName: input.FlywheelName }),
|
|
4715
|
+
...(input.ModelType != null && { ModelType: input.ModelType }),
|
|
4716
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4717
|
+
...(input.TaskConfig != null && { TaskConfig: serializeAws_json1_1TaskConfig(input.TaskConfig, context) }),
|
|
4718
|
+
};
|
|
4719
|
+
};
|
|
4720
|
+
const serializeAws_json1_1CustomerInputStringList = (input, context) => {
|
|
4721
|
+
return input
|
|
4722
|
+
.filter((e) => e != null)
|
|
4723
|
+
.map((entry) => {
|
|
4724
|
+
return entry;
|
|
4725
|
+
});
|
|
4726
|
+
};
|
|
4727
|
+
const serializeAws_json1_1DataSecurityConfig = (input, context) => {
|
|
4728
|
+
return {
|
|
4729
|
+
...(input.DataLakeKmsKeyId != null && { DataLakeKmsKeyId: input.DataLakeKmsKeyId }),
|
|
4730
|
+
...(input.ModelKmsKeyId != null && { ModelKmsKeyId: input.ModelKmsKeyId }),
|
|
4731
|
+
...(input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
|
|
4732
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
4733
|
+
};
|
|
4734
|
+
};
|
|
4735
|
+
const serializeAws_json1_1DatasetAugmentedManifestsList = (input, context) => {
|
|
4736
|
+
return input
|
|
4737
|
+
.filter((e) => e != null)
|
|
4738
|
+
.map((entry) => {
|
|
4739
|
+
return serializeAws_json1_1DatasetAugmentedManifestsListItem(entry, context);
|
|
4740
|
+
});
|
|
4741
|
+
};
|
|
4742
|
+
const serializeAws_json1_1DatasetAugmentedManifestsListItem = (input, context) => {
|
|
4743
|
+
return {
|
|
4744
|
+
...(input.AnnotationDataS3Uri != null && { AnnotationDataS3Uri: input.AnnotationDataS3Uri }),
|
|
4745
|
+
...(input.AttributeNames != null && {
|
|
4746
|
+
AttributeNames: serializeAws_json1_1AttributeNamesList(input.AttributeNames, context),
|
|
4747
|
+
}),
|
|
4748
|
+
...(input.DocumentType != null && { DocumentType: input.DocumentType }),
|
|
4749
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4750
|
+
...(input.SourceDocumentsS3Uri != null && { SourceDocumentsS3Uri: input.SourceDocumentsS3Uri }),
|
|
4751
|
+
};
|
|
4752
|
+
};
|
|
4753
|
+
const serializeAws_json1_1DatasetDocumentClassifierInputDataConfig = (input, context) => {
|
|
4754
|
+
return {
|
|
4755
|
+
...(input.LabelDelimiter != null && { LabelDelimiter: input.LabelDelimiter }),
|
|
4756
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4757
|
+
};
|
|
4758
|
+
};
|
|
4759
|
+
const serializeAws_json1_1DatasetEntityRecognizerAnnotations = (input, context) => {
|
|
4760
|
+
return {
|
|
4761
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4762
|
+
};
|
|
4763
|
+
};
|
|
4764
|
+
const serializeAws_json1_1DatasetEntityRecognizerDocuments = (input, context) => {
|
|
4765
|
+
return {
|
|
4766
|
+
...(input.InputFormat != null && { InputFormat: input.InputFormat }),
|
|
4767
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4768
|
+
};
|
|
4769
|
+
};
|
|
4770
|
+
const serializeAws_json1_1DatasetEntityRecognizerEntityList = (input, context) => {
|
|
4771
|
+
return {
|
|
4772
|
+
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4773
|
+
};
|
|
4774
|
+
};
|
|
4775
|
+
const serializeAws_json1_1DatasetEntityRecognizerInputDataConfig = (input, context) => {
|
|
4776
|
+
return {
|
|
4777
|
+
...(input.Annotations != null && {
|
|
4778
|
+
Annotations: serializeAws_json1_1DatasetEntityRecognizerAnnotations(input.Annotations, context),
|
|
4779
|
+
}),
|
|
4780
|
+
...(input.Documents != null && {
|
|
4781
|
+
Documents: serializeAws_json1_1DatasetEntityRecognizerDocuments(input.Documents, context),
|
|
4782
|
+
}),
|
|
4783
|
+
...(input.EntityList != null && {
|
|
4784
|
+
EntityList: serializeAws_json1_1DatasetEntityRecognizerEntityList(input.EntityList, context),
|
|
4785
|
+
}),
|
|
4786
|
+
};
|
|
4787
|
+
};
|
|
4788
|
+
const serializeAws_json1_1DatasetFilter = (input, context) => {
|
|
4789
|
+
return {
|
|
4790
|
+
...(input.CreationTimeAfter != null && { CreationTimeAfter: Math.round(input.CreationTimeAfter.getTime() / 1000) }),
|
|
4791
|
+
...(input.CreationTimeBefore != null && {
|
|
4792
|
+
CreationTimeBefore: Math.round(input.CreationTimeBefore.getTime() / 1000),
|
|
4793
|
+
}),
|
|
4794
|
+
...(input.DatasetType != null && { DatasetType: input.DatasetType }),
|
|
4795
|
+
...(input.Status != null && { Status: input.Status }),
|
|
4082
4796
|
};
|
|
4083
4797
|
};
|
|
4084
|
-
const
|
|
4085
|
-
return
|
|
4086
|
-
.
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4798
|
+
const serializeAws_json1_1DatasetInputDataConfig = (input, context) => {
|
|
4799
|
+
return {
|
|
4800
|
+
...(input.AugmentedManifests != null && {
|
|
4801
|
+
AugmentedManifests: serializeAws_json1_1DatasetAugmentedManifestsList(input.AugmentedManifests, context),
|
|
4802
|
+
}),
|
|
4803
|
+
...(input.DataFormat != null && { DataFormat: input.DataFormat }),
|
|
4804
|
+
...(input.DocumentClassifierInputDataConfig != null && {
|
|
4805
|
+
DocumentClassifierInputDataConfig: serializeAws_json1_1DatasetDocumentClassifierInputDataConfig(input.DocumentClassifierInputDataConfig, context),
|
|
4806
|
+
}),
|
|
4807
|
+
...(input.EntityRecognizerInputDataConfig != null && {
|
|
4808
|
+
EntityRecognizerInputDataConfig: serializeAws_json1_1DatasetEntityRecognizerInputDataConfig(input.EntityRecognizerInputDataConfig, context),
|
|
4809
|
+
}),
|
|
4810
|
+
};
|
|
4090
4811
|
};
|
|
4091
4812
|
const serializeAws_json1_1DeleteDocumentClassifierRequest = (input, context) => {
|
|
4092
4813
|
return {
|
|
@@ -4103,12 +4824,22 @@ const serializeAws_json1_1DeleteEntityRecognizerRequest = (input, context) => {
|
|
|
4103
4824
|
...(input.EntityRecognizerArn != null && { EntityRecognizerArn: input.EntityRecognizerArn }),
|
|
4104
4825
|
};
|
|
4105
4826
|
};
|
|
4827
|
+
const serializeAws_json1_1DeleteFlywheelRequest = (input, context) => {
|
|
4828
|
+
return {
|
|
4829
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
4830
|
+
};
|
|
4831
|
+
};
|
|
4106
4832
|
const serializeAws_json1_1DeleteResourcePolicyRequest = (input, context) => {
|
|
4107
4833
|
return {
|
|
4108
4834
|
...(input.PolicyRevisionId != null && { PolicyRevisionId: input.PolicyRevisionId }),
|
|
4109
4835
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4110
4836
|
};
|
|
4111
4837
|
};
|
|
4838
|
+
const serializeAws_json1_1DescribeDatasetRequest = (input, context) => {
|
|
4839
|
+
return {
|
|
4840
|
+
...(input.DatasetArn != null && { DatasetArn: input.DatasetArn }),
|
|
4841
|
+
};
|
|
4842
|
+
};
|
|
4112
4843
|
const serializeAws_json1_1DescribeDocumentClassificationJobRequest = (input, context) => {
|
|
4113
4844
|
return {
|
|
4114
4845
|
...(input.JobId != null && { JobId: input.JobId }),
|
|
@@ -4144,6 +4875,17 @@ const serializeAws_json1_1DescribeEventsDetectionJobRequest = (input, context) =
|
|
|
4144
4875
|
...(input.JobId != null && { JobId: input.JobId }),
|
|
4145
4876
|
};
|
|
4146
4877
|
};
|
|
4878
|
+
const serializeAws_json1_1DescribeFlywheelIterationRequest = (input, context) => {
|
|
4879
|
+
return {
|
|
4880
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
4881
|
+
...(input.FlywheelIterationId != null && { FlywheelIterationId: input.FlywheelIterationId }),
|
|
4882
|
+
};
|
|
4883
|
+
};
|
|
4884
|
+
const serializeAws_json1_1DescribeFlywheelRequest = (input, context) => {
|
|
4885
|
+
return {
|
|
4886
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
4887
|
+
};
|
|
4888
|
+
};
|
|
4147
4889
|
const serializeAws_json1_1DescribeKeyPhrasesDetectionJobRequest = (input, context) => {
|
|
4148
4890
|
return {
|
|
4149
4891
|
...(input.JobId != null && { JobId: input.JobId }),
|
|
@@ -4220,6 +4962,12 @@ const serializeAws_json1_1DetectTargetedSentimentRequest = (input, context) => {
|
|
|
4220
4962
|
...(input.Text != null && { Text: input.Text }),
|
|
4221
4963
|
};
|
|
4222
4964
|
};
|
|
4965
|
+
const serializeAws_json1_1DocumentClassificationConfig = (input, context) => {
|
|
4966
|
+
return {
|
|
4967
|
+
...(input.Labels != null && { Labels: serializeAws_json1_1LabelsList(input.Labels, context) }),
|
|
4968
|
+
...(input.Mode != null && { Mode: input.Mode }),
|
|
4969
|
+
};
|
|
4970
|
+
};
|
|
4223
4971
|
const serializeAws_json1_1DocumentClassificationJobFilter = (input, context) => {
|
|
4224
4972
|
return {
|
|
4225
4973
|
...(input.JobName != null && { JobName: input.JobName }),
|
|
@@ -4256,6 +5004,7 @@ const serializeAws_json1_1DocumentClassifierInputDataConfig = (input, context) =
|
|
|
4256
5004
|
};
|
|
4257
5005
|
const serializeAws_json1_1DocumentClassifierOutputDataConfig = (input, context) => {
|
|
4258
5006
|
return {
|
|
5007
|
+
...(input.FlywheelStatsS3Prefix != null && { FlywheelStatsS3Prefix: input.FlywheelStatsS3Prefix }),
|
|
4259
5008
|
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
4260
5009
|
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
4261
5010
|
};
|
|
@@ -4295,6 +5044,11 @@ const serializeAws_json1_1EntitiesDetectionJobFilter = (input, context) => {
|
|
|
4295
5044
|
...(input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4296
5045
|
};
|
|
4297
5046
|
};
|
|
5047
|
+
const serializeAws_json1_1EntityRecognitionConfig = (input, context) => {
|
|
5048
|
+
return {
|
|
5049
|
+
...(input.EntityTypes != null && { EntityTypes: serializeAws_json1_1EntityTypesList(input.EntityTypes, context) }),
|
|
5050
|
+
};
|
|
5051
|
+
};
|
|
4298
5052
|
const serializeAws_json1_1EntityRecognizerAnnotations = (input, context) => {
|
|
4299
5053
|
return {
|
|
4300
5054
|
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
@@ -4366,6 +5120,23 @@ const serializeAws_json1_1EventsDetectionJobFilter = (input, context) => {
|
|
|
4366
5120
|
...(input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4367
5121
|
};
|
|
4368
5122
|
};
|
|
5123
|
+
const serializeAws_json1_1FlywheelFilter = (input, context) => {
|
|
5124
|
+
return {
|
|
5125
|
+
...(input.CreationTimeAfter != null && { CreationTimeAfter: Math.round(input.CreationTimeAfter.getTime() / 1000) }),
|
|
5126
|
+
...(input.CreationTimeBefore != null && {
|
|
5127
|
+
CreationTimeBefore: Math.round(input.CreationTimeBefore.getTime() / 1000),
|
|
5128
|
+
}),
|
|
5129
|
+
...(input.Status != null && { Status: input.Status }),
|
|
5130
|
+
};
|
|
5131
|
+
};
|
|
5132
|
+
const serializeAws_json1_1FlywheelIterationFilter = (input, context) => {
|
|
5133
|
+
return {
|
|
5134
|
+
...(input.CreationTimeAfter != null && { CreationTimeAfter: Math.round(input.CreationTimeAfter.getTime() / 1000) }),
|
|
5135
|
+
...(input.CreationTimeBefore != null && {
|
|
5136
|
+
CreationTimeBefore: Math.round(input.CreationTimeBefore.getTime() / 1000),
|
|
5137
|
+
}),
|
|
5138
|
+
};
|
|
5139
|
+
};
|
|
4369
5140
|
const serializeAws_json1_1ImportModelRequest = (input, context) => {
|
|
4370
5141
|
return {
|
|
4371
5142
|
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
@@ -4393,6 +5164,21 @@ const serializeAws_json1_1KeyPhrasesDetectionJobFilter = (input, context) => {
|
|
|
4393
5164
|
...(input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
4394
5165
|
};
|
|
4395
5166
|
};
|
|
5167
|
+
const serializeAws_json1_1LabelsList = (input, context) => {
|
|
5168
|
+
return input
|
|
5169
|
+
.filter((e) => e != null)
|
|
5170
|
+
.map((entry) => {
|
|
5171
|
+
return entry;
|
|
5172
|
+
});
|
|
5173
|
+
};
|
|
5174
|
+
const serializeAws_json1_1ListDatasetsRequest = (input, context) => {
|
|
5175
|
+
return {
|
|
5176
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1DatasetFilter(input.Filter, context) }),
|
|
5177
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
5178
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
5179
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
5180
|
+
};
|
|
5181
|
+
};
|
|
4396
5182
|
const serializeAws_json1_1ListDocumentClassificationJobsRequest = (input, context) => {
|
|
4397
5183
|
return {
|
|
4398
5184
|
...(input.Filter != null && { Filter: serializeAws_json1_1DocumentClassificationJobFilter(input.Filter, context) }),
|
|
@@ -4456,6 +5242,21 @@ const serializeAws_json1_1ListEventsDetectionJobsRequest = (input, context) => {
|
|
|
4456
5242
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4457
5243
|
};
|
|
4458
5244
|
};
|
|
5245
|
+
const serializeAws_json1_1ListFlywheelIterationHistoryRequest = (input, context) => {
|
|
5246
|
+
return {
|
|
5247
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1FlywheelIterationFilter(input.Filter, context) }),
|
|
5248
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
5249
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
5250
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
5251
|
+
};
|
|
5252
|
+
};
|
|
5253
|
+
const serializeAws_json1_1ListFlywheelsRequest = (input, context) => {
|
|
5254
|
+
return {
|
|
5255
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1FlywheelFilter(input.Filter, context) }),
|
|
5256
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
5257
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
5258
|
+
};
|
|
5259
|
+
};
|
|
4459
5260
|
const serializeAws_json1_1ListKeyPhrasesDetectionJobsRequest = (input, context) => {
|
|
4460
5261
|
return {
|
|
4461
5262
|
...(input.Filter != null && { Filter: serializeAws_json1_1KeyPhrasesDetectionJobFilter(input.Filter, context) }),
|
|
@@ -4562,6 +5363,7 @@ const serializeAws_json1_1StartDocumentClassificationJobRequest = (input, contex
|
|
|
4562
5363
|
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
4563
5364
|
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4564
5365
|
...(input.DocumentClassifierArn != null && { DocumentClassifierArn: input.DocumentClassifierArn }),
|
|
5366
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
4565
5367
|
...(input.InputDataConfig != null && {
|
|
4566
5368
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
4567
5369
|
}),
|
|
@@ -4595,6 +5397,7 @@ const serializeAws_json1_1StartEntitiesDetectionJobRequest = (input, context) =>
|
|
|
4595
5397
|
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
4596
5398
|
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
4597
5399
|
...(input.EntityRecognizerArn != null && { EntityRecognizerArn: input.EntityRecognizerArn }),
|
|
5400
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
4598
5401
|
...(input.InputDataConfig != null && {
|
|
4599
5402
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
4600
5403
|
}),
|
|
@@ -4626,6 +5429,12 @@ const serializeAws_json1_1StartEventsDetectionJobRequest = (input, context) => {
|
|
|
4626
5429
|
}),
|
|
4627
5430
|
};
|
|
4628
5431
|
};
|
|
5432
|
+
const serializeAws_json1_1StartFlywheelIterationRequest = (input, context) => {
|
|
5433
|
+
return {
|
|
5434
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
5435
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
5436
|
+
};
|
|
5437
|
+
};
|
|
4629
5438
|
const serializeAws_json1_1StartKeyPhrasesDetectionJobRequest = (input, context) => {
|
|
4630
5439
|
return {
|
|
4631
5440
|
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
@@ -4806,6 +5615,17 @@ const serializeAws_json1_1TargetEventTypes = (input, context) => {
|
|
|
4806
5615
|
return entry;
|
|
4807
5616
|
});
|
|
4808
5617
|
};
|
|
5618
|
+
const serializeAws_json1_1TaskConfig = (input, context) => {
|
|
5619
|
+
return {
|
|
5620
|
+
...(input.DocumentClassificationConfig != null && {
|
|
5621
|
+
DocumentClassificationConfig: serializeAws_json1_1DocumentClassificationConfig(input.DocumentClassificationConfig, context),
|
|
5622
|
+
}),
|
|
5623
|
+
...(input.EntityRecognitionConfig != null && {
|
|
5624
|
+
EntityRecognitionConfig: serializeAws_json1_1EntityRecognitionConfig(input.EntityRecognitionConfig, context),
|
|
5625
|
+
}),
|
|
5626
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
5627
|
+
};
|
|
5628
|
+
};
|
|
4809
5629
|
const serializeAws_json1_1TopicsDetectionJobFilter = (input, context) => {
|
|
4810
5630
|
return {
|
|
4811
5631
|
...(input.JobName != null && { JobName: input.JobName }),
|
|
@@ -4820,12 +5640,30 @@ const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
|
4820
5640
|
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
4821
5641
|
};
|
|
4822
5642
|
};
|
|
5643
|
+
const serializeAws_json1_1UpdateDataSecurityConfig = (input, context) => {
|
|
5644
|
+
return {
|
|
5645
|
+
...(input.ModelKmsKeyId != null && { ModelKmsKeyId: input.ModelKmsKeyId }),
|
|
5646
|
+
...(input.VolumeKmsKeyId != null && { VolumeKmsKeyId: input.VolumeKmsKeyId }),
|
|
5647
|
+
...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
|
|
5648
|
+
};
|
|
5649
|
+
};
|
|
4823
5650
|
const serializeAws_json1_1UpdateEndpointRequest = (input, context) => {
|
|
4824
5651
|
return {
|
|
4825
5652
|
...(input.DesiredDataAccessRoleArn != null && { DesiredDataAccessRoleArn: input.DesiredDataAccessRoleArn }),
|
|
4826
5653
|
...(input.DesiredInferenceUnits != null && { DesiredInferenceUnits: input.DesiredInferenceUnits }),
|
|
4827
5654
|
...(input.DesiredModelArn != null && { DesiredModelArn: input.DesiredModelArn }),
|
|
4828
5655
|
...(input.EndpointArn != null && { EndpointArn: input.EndpointArn }),
|
|
5656
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
5657
|
+
};
|
|
5658
|
+
};
|
|
5659
|
+
const serializeAws_json1_1UpdateFlywheelRequest = (input, context) => {
|
|
5660
|
+
return {
|
|
5661
|
+
...(input.ActiveModelArn != null && { ActiveModelArn: input.ActiveModelArn }),
|
|
5662
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
5663
|
+
...(input.DataSecurityConfig != null && {
|
|
5664
|
+
DataSecurityConfig: serializeAws_json1_1UpdateDataSecurityConfig(input.DataSecurityConfig, context),
|
|
5665
|
+
}),
|
|
5666
|
+
...(input.FlywheelArn != null && { FlywheelArn: input.FlywheelArn }),
|
|
4829
5667
|
};
|
|
4830
5668
|
};
|
|
4831
5669
|
const serializeAws_json1_1VpcConfig = (input, context) => {
|
|
@@ -5047,6 +5885,11 @@ const deserializeAws_json1_1ContainsPiiEntitiesResponse = (output, context) => {
|
|
|
5047
5885
|
Labels: output.Labels != null ? deserializeAws_json1_1ListOfEntityLabels(output.Labels, context) : undefined,
|
|
5048
5886
|
};
|
|
5049
5887
|
};
|
|
5888
|
+
const deserializeAws_json1_1CreateDatasetResponse = (output, context) => {
|
|
5889
|
+
return {
|
|
5890
|
+
DatasetArn: __expectString(output.DatasetArn),
|
|
5891
|
+
};
|
|
5892
|
+
};
|
|
5050
5893
|
const deserializeAws_json1_1CreateDocumentClassifierResponse = (output, context) => {
|
|
5051
5894
|
return {
|
|
5052
5895
|
DocumentClassifierArn: __expectString(output.DocumentClassifierArn),
|
|
@@ -5055,6 +5898,7 @@ const deserializeAws_json1_1CreateDocumentClassifierResponse = (output, context)
|
|
|
5055
5898
|
const deserializeAws_json1_1CreateEndpointResponse = (output, context) => {
|
|
5056
5899
|
return {
|
|
5057
5900
|
EndpointArn: __expectString(output.EndpointArn),
|
|
5901
|
+
ModelArn: __expectString(output.ModelArn),
|
|
5058
5902
|
};
|
|
5059
5903
|
};
|
|
5060
5904
|
const deserializeAws_json1_1CreateEntityRecognizerResponse = (output, context) => {
|
|
@@ -5062,6 +5906,47 @@ const deserializeAws_json1_1CreateEntityRecognizerResponse = (output, context) =
|
|
|
5062
5906
|
EntityRecognizerArn: __expectString(output.EntityRecognizerArn),
|
|
5063
5907
|
};
|
|
5064
5908
|
};
|
|
5909
|
+
const deserializeAws_json1_1CreateFlywheelResponse = (output, context) => {
|
|
5910
|
+
return {
|
|
5911
|
+
ActiveModelArn: __expectString(output.ActiveModelArn),
|
|
5912
|
+
FlywheelArn: __expectString(output.FlywheelArn),
|
|
5913
|
+
};
|
|
5914
|
+
};
|
|
5915
|
+
const deserializeAws_json1_1DataSecurityConfig = (output, context) => {
|
|
5916
|
+
return {
|
|
5917
|
+
DataLakeKmsKeyId: __expectString(output.DataLakeKmsKeyId),
|
|
5918
|
+
ModelKmsKeyId: __expectString(output.ModelKmsKeyId),
|
|
5919
|
+
VolumeKmsKeyId: __expectString(output.VolumeKmsKeyId),
|
|
5920
|
+
VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
|
|
5921
|
+
};
|
|
5922
|
+
};
|
|
5923
|
+
const deserializeAws_json1_1DatasetProperties = (output, context) => {
|
|
5924
|
+
return {
|
|
5925
|
+
CreationTime: output.CreationTime != null
|
|
5926
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
5927
|
+
: undefined,
|
|
5928
|
+
DatasetArn: __expectString(output.DatasetArn),
|
|
5929
|
+
DatasetName: __expectString(output.DatasetName),
|
|
5930
|
+
DatasetS3Uri: __expectString(output.DatasetS3Uri),
|
|
5931
|
+
DatasetType: __expectString(output.DatasetType),
|
|
5932
|
+
Description: __expectString(output.Description),
|
|
5933
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
5934
|
+
Message: __expectString(output.Message),
|
|
5935
|
+
NumberOfDocuments: __expectLong(output.NumberOfDocuments),
|
|
5936
|
+
Status: __expectString(output.Status),
|
|
5937
|
+
};
|
|
5938
|
+
};
|
|
5939
|
+
const deserializeAws_json1_1DatasetPropertiesList = (output, context) => {
|
|
5940
|
+
const retVal = (output || [])
|
|
5941
|
+
.filter((e) => e != null)
|
|
5942
|
+
.map((entry) => {
|
|
5943
|
+
if (entry === null) {
|
|
5944
|
+
return null;
|
|
5945
|
+
}
|
|
5946
|
+
return deserializeAws_json1_1DatasetProperties(entry, context);
|
|
5947
|
+
});
|
|
5948
|
+
return retVal;
|
|
5949
|
+
};
|
|
5065
5950
|
const deserializeAws_json1_1DeleteDocumentClassifierResponse = (output, context) => {
|
|
5066
5951
|
return {};
|
|
5067
5952
|
};
|
|
@@ -5071,9 +5956,19 @@ const deserializeAws_json1_1DeleteEndpointResponse = (output, context) => {
|
|
|
5071
5956
|
const deserializeAws_json1_1DeleteEntityRecognizerResponse = (output, context) => {
|
|
5072
5957
|
return {};
|
|
5073
5958
|
};
|
|
5959
|
+
const deserializeAws_json1_1DeleteFlywheelResponse = (output, context) => {
|
|
5960
|
+
return {};
|
|
5961
|
+
};
|
|
5074
5962
|
const deserializeAws_json1_1DeleteResourcePolicyResponse = (output, context) => {
|
|
5075
5963
|
return {};
|
|
5076
5964
|
};
|
|
5965
|
+
const deserializeAws_json1_1DescribeDatasetResponse = (output, context) => {
|
|
5966
|
+
return {
|
|
5967
|
+
DatasetProperties: output.DatasetProperties != null
|
|
5968
|
+
? deserializeAws_json1_1DatasetProperties(output.DatasetProperties, context)
|
|
5969
|
+
: undefined,
|
|
5970
|
+
};
|
|
5971
|
+
};
|
|
5077
5972
|
const deserializeAws_json1_1DescribeDocumentClassificationJobResponse = (output, context) => {
|
|
5078
5973
|
return {
|
|
5079
5974
|
DocumentClassificationJobProperties: output.DocumentClassificationJobProperties != null
|
|
@@ -5123,6 +6018,20 @@ const deserializeAws_json1_1DescribeEventsDetectionJobResponse = (output, contex
|
|
|
5123
6018
|
: undefined,
|
|
5124
6019
|
};
|
|
5125
6020
|
};
|
|
6021
|
+
const deserializeAws_json1_1DescribeFlywheelIterationResponse = (output, context) => {
|
|
6022
|
+
return {
|
|
6023
|
+
FlywheelIterationProperties: output.FlywheelIterationProperties != null
|
|
6024
|
+
? deserializeAws_json1_1FlywheelIterationProperties(output.FlywheelIterationProperties, context)
|
|
6025
|
+
: undefined,
|
|
6026
|
+
};
|
|
6027
|
+
};
|
|
6028
|
+
const deserializeAws_json1_1DescribeFlywheelResponse = (output, context) => {
|
|
6029
|
+
return {
|
|
6030
|
+
FlywheelProperties: output.FlywheelProperties != null
|
|
6031
|
+
? deserializeAws_json1_1FlywheelProperties(output.FlywheelProperties, context)
|
|
6032
|
+
: undefined,
|
|
6033
|
+
};
|
|
6034
|
+
};
|
|
5126
6035
|
const deserializeAws_json1_1DescribeKeyPhrasesDetectionJobResponse = (output, context) => {
|
|
5127
6036
|
return {
|
|
5128
6037
|
KeyPhrasesDetectionJobProperties: output.KeyPhrasesDetectionJobProperties != null
|
|
@@ -5221,11 +6130,18 @@ const deserializeAws_json1_1DocumentClass = (output, context) => {
|
|
|
5221
6130
|
Score: __limitedParseFloat32(output.Score),
|
|
5222
6131
|
};
|
|
5223
6132
|
};
|
|
6133
|
+
const deserializeAws_json1_1DocumentClassificationConfig = (output, context) => {
|
|
6134
|
+
return {
|
|
6135
|
+
Labels: output.Labels != null ? deserializeAws_json1_1LabelsList(output.Labels, context) : undefined,
|
|
6136
|
+
Mode: __expectString(output.Mode),
|
|
6137
|
+
};
|
|
6138
|
+
};
|
|
5224
6139
|
const deserializeAws_json1_1DocumentClassificationJobProperties = (output, context) => {
|
|
5225
6140
|
return {
|
|
5226
6141
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
5227
6142
|
DocumentClassifierArn: __expectString(output.DocumentClassifierArn),
|
|
5228
6143
|
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
6144
|
+
FlywheelArn: __expectString(output.FlywheelArn),
|
|
5229
6145
|
InputDataConfig: output.InputDataConfig != null
|
|
5230
6146
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
5231
6147
|
: undefined,
|
|
@@ -5277,6 +6193,7 @@ const deserializeAws_json1_1DocumentClassifierInputDataConfig = (output, context
|
|
|
5277
6193
|
};
|
|
5278
6194
|
const deserializeAws_json1_1DocumentClassifierOutputDataConfig = (output, context) => {
|
|
5279
6195
|
return {
|
|
6196
|
+
FlywheelStatsS3Prefix: __expectString(output.FlywheelStatsS3Prefix),
|
|
5280
6197
|
KmsKeyId: __expectString(output.KmsKeyId),
|
|
5281
6198
|
S3Uri: __expectString(output.S3Uri),
|
|
5282
6199
|
};
|
|
@@ -5289,6 +6206,7 @@ const deserializeAws_json1_1DocumentClassifierProperties = (output, context) =>
|
|
|
5289
6206
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
5290
6207
|
DocumentClassifierArn: __expectString(output.DocumentClassifierArn),
|
|
5291
6208
|
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
6209
|
+
FlywheelArn: __expectString(output.FlywheelArn),
|
|
5292
6210
|
InputDataConfig: output.InputDataConfig != null
|
|
5293
6211
|
? deserializeAws_json1_1DocumentClassifierInputDataConfig(output.InputDataConfig, context)
|
|
5294
6212
|
: undefined,
|
|
@@ -5424,6 +6342,7 @@ const deserializeAws_json1_1EndpointProperties = (output, context) => {
|
|
|
5424
6342
|
DesiredInferenceUnits: __expectInt32(output.DesiredInferenceUnits),
|
|
5425
6343
|
DesiredModelArn: __expectString(output.DesiredModelArn),
|
|
5426
6344
|
EndpointArn: __expectString(output.EndpointArn),
|
|
6345
|
+
FlywheelArn: __expectString(output.FlywheelArn),
|
|
5427
6346
|
LastModifiedTime: output.LastModifiedTime != null
|
|
5428
6347
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
5429
6348
|
: undefined,
|
|
@@ -5494,6 +6413,11 @@ const deserializeAws_json1_1EntityLabel = (output, context) => {
|
|
|
5494
6413
|
Score: __limitedParseFloat32(output.Score),
|
|
5495
6414
|
};
|
|
5496
6415
|
};
|
|
6416
|
+
const deserializeAws_json1_1EntityRecognitionConfig = (output, context) => {
|
|
6417
|
+
return {
|
|
6418
|
+
EntityTypes: output.EntityTypes != null ? deserializeAws_json1_1EntityTypesList(output.EntityTypes, context) : undefined,
|
|
6419
|
+
};
|
|
6420
|
+
};
|
|
5497
6421
|
const deserializeAws_json1_1EntityRecognizerAnnotations = (output, context) => {
|
|
5498
6422
|
return {
|
|
5499
6423
|
S3Uri: __expectString(output.S3Uri),
|
|
@@ -5578,17 +6502,26 @@ const deserializeAws_json1_1EntityRecognizerMetadataEntityTypesListItem = (outpu
|
|
|
5578
6502
|
Type: __expectString(output.Type),
|
|
5579
6503
|
};
|
|
5580
6504
|
};
|
|
6505
|
+
const deserializeAws_json1_1EntityRecognizerOutputDataConfig = (output, context) => {
|
|
6506
|
+
return {
|
|
6507
|
+
FlywheelStatsS3Prefix: __expectString(output.FlywheelStatsS3Prefix),
|
|
6508
|
+
};
|
|
6509
|
+
};
|
|
5581
6510
|
const deserializeAws_json1_1EntityRecognizerProperties = (output, context) => {
|
|
5582
6511
|
return {
|
|
5583
6512
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
5584
6513
|
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
5585
6514
|
EntityRecognizerArn: __expectString(output.EntityRecognizerArn),
|
|
6515
|
+
FlywheelArn: __expectString(output.FlywheelArn),
|
|
5586
6516
|
InputDataConfig: output.InputDataConfig != null
|
|
5587
6517
|
? deserializeAws_json1_1EntityRecognizerInputDataConfig(output.InputDataConfig, context)
|
|
5588
6518
|
: undefined,
|
|
5589
6519
|
LanguageCode: __expectString(output.LanguageCode),
|
|
5590
6520
|
Message: __expectString(output.Message),
|
|
5591
6521
|
ModelKmsKeyId: __expectString(output.ModelKmsKeyId),
|
|
6522
|
+
OutputDataConfig: output.OutputDataConfig != null
|
|
6523
|
+
? deserializeAws_json1_1EntityRecognizerOutputDataConfig(output.OutputDataConfig, context)
|
|
6524
|
+
: undefined,
|
|
5592
6525
|
RecognizerMetadata: output.RecognizerMetadata != null
|
|
5593
6526
|
? deserializeAws_json1_1EntityRecognizerMetadata(output.RecognizerMetadata, context)
|
|
5594
6527
|
: undefined,
|
|
@@ -5708,6 +6641,96 @@ const deserializeAws_json1_1ExtractedCharactersListItem = (output, context) => {
|
|
|
5708
6641
|
Page: __expectInt32(output.Page),
|
|
5709
6642
|
};
|
|
5710
6643
|
};
|
|
6644
|
+
const deserializeAws_json1_1FlywheelIterationProperties = (output, context) => {
|
|
6645
|
+
return {
|
|
6646
|
+
CreationTime: output.CreationTime != null
|
|
6647
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
6648
|
+
: undefined,
|
|
6649
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
6650
|
+
EvaluatedModelArn: __expectString(output.EvaluatedModelArn),
|
|
6651
|
+
EvaluatedModelMetrics: output.EvaluatedModelMetrics != null
|
|
6652
|
+
? deserializeAws_json1_1FlywheelModelEvaluationMetrics(output.EvaluatedModelMetrics, context)
|
|
6653
|
+
: undefined,
|
|
6654
|
+
EvaluationManifestS3Prefix: __expectString(output.EvaluationManifestS3Prefix),
|
|
6655
|
+
FlywheelArn: __expectString(output.FlywheelArn),
|
|
6656
|
+
FlywheelIterationId: __expectString(output.FlywheelIterationId),
|
|
6657
|
+
Message: __expectString(output.Message),
|
|
6658
|
+
Status: __expectString(output.Status),
|
|
6659
|
+
TrainedModelArn: __expectString(output.TrainedModelArn),
|
|
6660
|
+
TrainedModelMetrics: output.TrainedModelMetrics != null
|
|
6661
|
+
? deserializeAws_json1_1FlywheelModelEvaluationMetrics(output.TrainedModelMetrics, context)
|
|
6662
|
+
: undefined,
|
|
6663
|
+
};
|
|
6664
|
+
};
|
|
6665
|
+
const deserializeAws_json1_1FlywheelIterationPropertiesList = (output, context) => {
|
|
6666
|
+
const retVal = (output || [])
|
|
6667
|
+
.filter((e) => e != null)
|
|
6668
|
+
.map((entry) => {
|
|
6669
|
+
if (entry === null) {
|
|
6670
|
+
return null;
|
|
6671
|
+
}
|
|
6672
|
+
return deserializeAws_json1_1FlywheelIterationProperties(entry, context);
|
|
6673
|
+
});
|
|
6674
|
+
return retVal;
|
|
6675
|
+
};
|
|
6676
|
+
const deserializeAws_json1_1FlywheelModelEvaluationMetrics = (output, context) => {
|
|
6677
|
+
return {
|
|
6678
|
+
AverageAccuracy: __limitedParseDouble(output.AverageAccuracy),
|
|
6679
|
+
AverageF1Score: __limitedParseDouble(output.AverageF1Score),
|
|
6680
|
+
AveragePrecision: __limitedParseDouble(output.AveragePrecision),
|
|
6681
|
+
AverageRecall: __limitedParseDouble(output.AverageRecall),
|
|
6682
|
+
};
|
|
6683
|
+
};
|
|
6684
|
+
const deserializeAws_json1_1FlywheelProperties = (output, context) => {
|
|
6685
|
+
return {
|
|
6686
|
+
ActiveModelArn: __expectString(output.ActiveModelArn),
|
|
6687
|
+
CreationTime: output.CreationTime != null
|
|
6688
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
6689
|
+
: undefined,
|
|
6690
|
+
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
6691
|
+
DataLakeS3Uri: __expectString(output.DataLakeS3Uri),
|
|
6692
|
+
DataSecurityConfig: output.DataSecurityConfig != null
|
|
6693
|
+
? deserializeAws_json1_1DataSecurityConfig(output.DataSecurityConfig, context)
|
|
6694
|
+
: undefined,
|
|
6695
|
+
FlywheelArn: __expectString(output.FlywheelArn),
|
|
6696
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
6697
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
6698
|
+
: undefined,
|
|
6699
|
+
LatestFlywheelIteration: __expectString(output.LatestFlywheelIteration),
|
|
6700
|
+
Message: __expectString(output.Message),
|
|
6701
|
+
ModelType: __expectString(output.ModelType),
|
|
6702
|
+
Status: __expectString(output.Status),
|
|
6703
|
+
TaskConfig: output.TaskConfig != null ? deserializeAws_json1_1TaskConfig(output.TaskConfig, context) : undefined,
|
|
6704
|
+
};
|
|
6705
|
+
};
|
|
6706
|
+
const deserializeAws_json1_1FlywheelSummary = (output, context) => {
|
|
6707
|
+
return {
|
|
6708
|
+
ActiveModelArn: __expectString(output.ActiveModelArn),
|
|
6709
|
+
CreationTime: output.CreationTime != null
|
|
6710
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
6711
|
+
: undefined,
|
|
6712
|
+
DataLakeS3Uri: __expectString(output.DataLakeS3Uri),
|
|
6713
|
+
FlywheelArn: __expectString(output.FlywheelArn),
|
|
6714
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
6715
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
6716
|
+
: undefined,
|
|
6717
|
+
LatestFlywheelIteration: __expectString(output.LatestFlywheelIteration),
|
|
6718
|
+
Message: __expectString(output.Message),
|
|
6719
|
+
ModelType: __expectString(output.ModelType),
|
|
6720
|
+
Status: __expectString(output.Status),
|
|
6721
|
+
};
|
|
6722
|
+
};
|
|
6723
|
+
const deserializeAws_json1_1FlywheelSummaryList = (output, context) => {
|
|
6724
|
+
const retVal = (output || [])
|
|
6725
|
+
.filter((e) => e != null)
|
|
6726
|
+
.map((entry) => {
|
|
6727
|
+
if (entry === null) {
|
|
6728
|
+
return null;
|
|
6729
|
+
}
|
|
6730
|
+
return deserializeAws_json1_1FlywheelSummary(entry, context);
|
|
6731
|
+
});
|
|
6732
|
+
return retVal;
|
|
6733
|
+
};
|
|
5711
6734
|
const deserializeAws_json1_1Geometry = (output, context) => {
|
|
5712
6735
|
return {
|
|
5713
6736
|
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
@@ -5800,6 +6823,25 @@ const deserializeAws_json1_1KmsKeyValidationException = (output, context) => {
|
|
|
5800
6823
|
Message: __expectString(output.Message),
|
|
5801
6824
|
};
|
|
5802
6825
|
};
|
|
6826
|
+
const deserializeAws_json1_1LabelsList = (output, context) => {
|
|
6827
|
+
const retVal = (output || [])
|
|
6828
|
+
.filter((e) => e != null)
|
|
6829
|
+
.map((entry) => {
|
|
6830
|
+
if (entry === null) {
|
|
6831
|
+
return null;
|
|
6832
|
+
}
|
|
6833
|
+
return __expectString(entry);
|
|
6834
|
+
});
|
|
6835
|
+
return retVal;
|
|
6836
|
+
};
|
|
6837
|
+
const deserializeAws_json1_1ListDatasetsResponse = (output, context) => {
|
|
6838
|
+
return {
|
|
6839
|
+
DatasetPropertiesList: output.DatasetPropertiesList != null
|
|
6840
|
+
? deserializeAws_json1_1DatasetPropertiesList(output.DatasetPropertiesList, context)
|
|
6841
|
+
: undefined,
|
|
6842
|
+
NextToken: __expectString(output.NextToken),
|
|
6843
|
+
};
|
|
6844
|
+
};
|
|
5803
6845
|
const deserializeAws_json1_1ListDocumentClassificationJobsResponse = (output, context) => {
|
|
5804
6846
|
return {
|
|
5805
6847
|
DocumentClassificationJobPropertiesList: output.DocumentClassificationJobPropertiesList != null
|
|
@@ -5872,6 +6914,22 @@ const deserializeAws_json1_1ListEventsDetectionJobsResponse = (output, context)
|
|
|
5872
6914
|
NextToken: __expectString(output.NextToken),
|
|
5873
6915
|
};
|
|
5874
6916
|
};
|
|
6917
|
+
const deserializeAws_json1_1ListFlywheelIterationHistoryResponse = (output, context) => {
|
|
6918
|
+
return {
|
|
6919
|
+
FlywheelIterationPropertiesList: output.FlywheelIterationPropertiesList != null
|
|
6920
|
+
? deserializeAws_json1_1FlywheelIterationPropertiesList(output.FlywheelIterationPropertiesList, context)
|
|
6921
|
+
: undefined,
|
|
6922
|
+
NextToken: __expectString(output.NextToken),
|
|
6923
|
+
};
|
|
6924
|
+
};
|
|
6925
|
+
const deserializeAws_json1_1ListFlywheelsResponse = (output, context) => {
|
|
6926
|
+
return {
|
|
6927
|
+
FlywheelSummaryList: output.FlywheelSummaryList != null
|
|
6928
|
+
? deserializeAws_json1_1FlywheelSummaryList(output.FlywheelSummaryList, context)
|
|
6929
|
+
: undefined,
|
|
6930
|
+
NextToken: __expectString(output.NextToken),
|
|
6931
|
+
};
|
|
6932
|
+
};
|
|
5875
6933
|
const deserializeAws_json1_1ListKeyPhrasesDetectionJobsResponse = (output, context) => {
|
|
5876
6934
|
return {
|
|
5877
6935
|
KeyPhrasesDetectionJobPropertiesList: output.KeyPhrasesDetectionJobPropertiesList != null
|
|
@@ -6380,6 +7438,7 @@ const deserializeAws_json1_1SentimentScore = (output, context) => {
|
|
|
6380
7438
|
};
|
|
6381
7439
|
const deserializeAws_json1_1StartDocumentClassificationJobResponse = (output, context) => {
|
|
6382
7440
|
return {
|
|
7441
|
+
DocumentClassifierArn: __expectString(output.DocumentClassifierArn),
|
|
6383
7442
|
JobArn: __expectString(output.JobArn),
|
|
6384
7443
|
JobId: __expectString(output.JobId),
|
|
6385
7444
|
JobStatus: __expectString(output.JobStatus),
|
|
@@ -6394,6 +7453,7 @@ const deserializeAws_json1_1StartDominantLanguageDetectionJobResponse = (output,
|
|
|
6394
7453
|
};
|
|
6395
7454
|
const deserializeAws_json1_1StartEntitiesDetectionJobResponse = (output, context) => {
|
|
6396
7455
|
return {
|
|
7456
|
+
EntityRecognizerArn: __expectString(output.EntityRecognizerArn),
|
|
6397
7457
|
JobArn: __expectString(output.JobArn),
|
|
6398
7458
|
JobId: __expectString(output.JobId),
|
|
6399
7459
|
JobStatus: __expectString(output.JobStatus),
|
|
@@ -6406,6 +7466,12 @@ const deserializeAws_json1_1StartEventsDetectionJobResponse = (output, context)
|
|
|
6406
7466
|
JobStatus: __expectString(output.JobStatus),
|
|
6407
7467
|
};
|
|
6408
7468
|
};
|
|
7469
|
+
const deserializeAws_json1_1StartFlywheelIterationResponse = (output, context) => {
|
|
7470
|
+
return {
|
|
7471
|
+
FlywheelArn: __expectString(output.FlywheelArn),
|
|
7472
|
+
FlywheelIterationId: __expectString(output.FlywheelIterationId),
|
|
7473
|
+
};
|
|
7474
|
+
};
|
|
6409
7475
|
const deserializeAws_json1_1StartKeyPhrasesDetectionJobResponse = (output, context) => {
|
|
6410
7476
|
return {
|
|
6411
7477
|
JobArn: __expectString(output.JobArn),
|
|
@@ -6604,6 +7670,17 @@ const deserializeAws_json1_1TargetEventTypes = (output, context) => {
|
|
|
6604
7670
|
});
|
|
6605
7671
|
return retVal;
|
|
6606
7672
|
};
|
|
7673
|
+
const deserializeAws_json1_1TaskConfig = (output, context) => {
|
|
7674
|
+
return {
|
|
7675
|
+
DocumentClassificationConfig: output.DocumentClassificationConfig != null
|
|
7676
|
+
? deserializeAws_json1_1DocumentClassificationConfig(output.DocumentClassificationConfig, context)
|
|
7677
|
+
: undefined,
|
|
7678
|
+
EntityRecognitionConfig: output.EntityRecognitionConfig != null
|
|
7679
|
+
? deserializeAws_json1_1EntityRecognitionConfig(output.EntityRecognitionConfig, context)
|
|
7680
|
+
: undefined,
|
|
7681
|
+
LanguageCode: __expectString(output.LanguageCode),
|
|
7682
|
+
};
|
|
7683
|
+
};
|
|
6607
7684
|
const deserializeAws_json1_1TextSizeLimitExceededException = (output, context) => {
|
|
6608
7685
|
return {
|
|
6609
7686
|
Message: __expectString(output.Message),
|
|
@@ -6665,7 +7742,16 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
|
6665
7742
|
return {};
|
|
6666
7743
|
};
|
|
6667
7744
|
const deserializeAws_json1_1UpdateEndpointResponse = (output, context) => {
|
|
6668
|
-
return {
|
|
7745
|
+
return {
|
|
7746
|
+
DesiredModelArn: __expectString(output.DesiredModelArn),
|
|
7747
|
+
};
|
|
7748
|
+
};
|
|
7749
|
+
const deserializeAws_json1_1UpdateFlywheelResponse = (output, context) => {
|
|
7750
|
+
return {
|
|
7751
|
+
FlywheelProperties: output.FlywheelProperties != null
|
|
7752
|
+
? deserializeAws_json1_1FlywheelProperties(output.FlywheelProperties, context)
|
|
7753
|
+
: undefined,
|
|
7754
|
+
};
|
|
6669
7755
|
};
|
|
6670
7756
|
const deserializeAws_json1_1VpcConfig = (output, context) => {
|
|
6671
7757
|
return {
|