@aws-sdk/client-comprehend 3.927.0 → 3.929.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/dist-cjs/index.js +3190 -4214
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/ComprehendClient.js +2 -0
- package/dist-es/commands/BatchDetectDominantLanguageCommand.js +3 -10
- package/dist-es/commands/BatchDetectEntitiesCommand.js +3 -10
- package/dist-es/commands/BatchDetectKeyPhrasesCommand.js +3 -10
- package/dist-es/commands/BatchDetectSentimentCommand.js +3 -10
- package/dist-es/commands/BatchDetectSyntaxCommand.js +3 -10
- package/dist-es/commands/BatchDetectTargetedSentimentCommand.js +3 -10
- package/dist-es/commands/ClassifyDocumentCommand.js +3 -10
- package/dist-es/commands/ContainsPiiEntitiesCommand.js +3 -9
- package/dist-es/commands/CreateDatasetCommand.js +3 -9
- package/dist-es/commands/CreateDocumentClassifierCommand.js +3 -9
- package/dist-es/commands/CreateEndpointCommand.js +3 -9
- package/dist-es/commands/CreateEntityRecognizerCommand.js +3 -9
- package/dist-es/commands/CreateFlywheelCommand.js +3 -9
- package/dist-es/commands/DeleteDocumentClassifierCommand.js +3 -9
- package/dist-es/commands/DeleteEndpointCommand.js +3 -9
- package/dist-es/commands/DeleteEntityRecognizerCommand.js +3 -9
- package/dist-es/commands/DeleteFlywheelCommand.js +3 -9
- package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
- package/dist-es/commands/DescribeDatasetCommand.js +3 -9
- package/dist-es/commands/DescribeDocumentClassificationJobCommand.js +3 -9
- package/dist-es/commands/DescribeDocumentClassifierCommand.js +3 -10
- package/dist-es/commands/DescribeDominantLanguageDetectionJobCommand.js +3 -9
- package/dist-es/commands/DescribeEndpointCommand.js +3 -9
- package/dist-es/commands/DescribeEntitiesDetectionJobCommand.js +3 -9
- package/dist-es/commands/DescribeEntityRecognizerCommand.js +3 -10
- package/dist-es/commands/DescribeEventsDetectionJobCommand.js +3 -9
- package/dist-es/commands/DescribeFlywheelCommand.js +3 -9
- package/dist-es/commands/DescribeFlywheelIterationCommand.js +3 -9
- package/dist-es/commands/DescribeKeyPhrasesDetectionJobCommand.js +3 -9
- package/dist-es/commands/DescribePiiEntitiesDetectionJobCommand.js +3 -9
- package/dist-es/commands/DescribeResourcePolicyCommand.js +3 -9
- package/dist-es/commands/DescribeSentimentDetectionJobCommand.js +3 -9
- package/dist-es/commands/DescribeTargetedSentimentDetectionJobCommand.js +3 -9
- package/dist-es/commands/DescribeTopicsDetectionJobCommand.js +3 -9
- package/dist-es/commands/DetectDominantLanguageCommand.js +3 -10
- package/dist-es/commands/DetectEntitiesCommand.js +3 -10
- package/dist-es/commands/DetectKeyPhrasesCommand.js +3 -10
- package/dist-es/commands/DetectPiiEntitiesCommand.js +3 -9
- package/dist-es/commands/DetectSentimentCommand.js +3 -10
- package/dist-es/commands/DetectSyntaxCommand.js +3 -10
- package/dist-es/commands/DetectTargetedSentimentCommand.js +3 -10
- package/dist-es/commands/DetectToxicContentCommand.js +3 -10
- package/dist-es/commands/ImportModelCommand.js +3 -9
- package/dist-es/commands/ListDatasetsCommand.js +3 -9
- package/dist-es/commands/ListDocumentClassificationJobsCommand.js +3 -9
- package/dist-es/commands/ListDocumentClassifierSummariesCommand.js +3 -9
- package/dist-es/commands/ListDocumentClassifiersCommand.js +3 -10
- package/dist-es/commands/ListDominantLanguageDetectionJobsCommand.js +3 -9
- package/dist-es/commands/ListEndpointsCommand.js +3 -9
- package/dist-es/commands/ListEntitiesDetectionJobsCommand.js +3 -9
- package/dist-es/commands/ListEntityRecognizerSummariesCommand.js +3 -9
- package/dist-es/commands/ListEntityRecognizersCommand.js +3 -10
- package/dist-es/commands/ListEventsDetectionJobsCommand.js +3 -9
- package/dist-es/commands/ListFlywheelIterationHistoryCommand.js +3 -9
- package/dist-es/commands/ListFlywheelsCommand.js +3 -9
- package/dist-es/commands/ListKeyPhrasesDetectionJobsCommand.js +3 -9
- package/dist-es/commands/ListPiiEntitiesDetectionJobsCommand.js +3 -9
- package/dist-es/commands/ListSentimentDetectionJobsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListTargetedSentimentDetectionJobsCommand.js +3 -9
- package/dist-es/commands/ListTopicsDetectionJobsCommand.js +3 -9
- package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
- package/dist-es/commands/StartDocumentClassificationJobCommand.js +3 -9
- package/dist-es/commands/StartDominantLanguageDetectionJobCommand.js +3 -9
- package/dist-es/commands/StartEntitiesDetectionJobCommand.js +3 -9
- package/dist-es/commands/StartEventsDetectionJobCommand.js +3 -9
- package/dist-es/commands/StartFlywheelIterationCommand.js +3 -9
- package/dist-es/commands/StartKeyPhrasesDetectionJobCommand.js +3 -9
- package/dist-es/commands/StartPiiEntitiesDetectionJobCommand.js +3 -9
- package/dist-es/commands/StartSentimentDetectionJobCommand.js +3 -9
- package/dist-es/commands/StartTargetedSentimentDetectionJobCommand.js +3 -9
- package/dist-es/commands/StartTopicsDetectionJobCommand.js +3 -9
- package/dist-es/commands/StopDominantLanguageDetectionJobCommand.js +3 -9
- package/dist-es/commands/StopEntitiesDetectionJobCommand.js +3 -9
- package/dist-es/commands/StopEventsDetectionJobCommand.js +3 -9
- package/dist-es/commands/StopKeyPhrasesDetectionJobCommand.js +3 -9
- package/dist-es/commands/StopPiiEntitiesDetectionJobCommand.js +3 -9
- package/dist-es/commands/StopSentimentDetectionJobCommand.js +3 -9
- package/dist-es/commands/StopTargetedSentimentDetectionJobCommand.js +3 -9
- package/dist-es/commands/StopTrainingDocumentClassifierCommand.js +3 -9
- package/dist-es/commands/StopTrainingEntityRecognizerCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateEndpointCommand.js +3 -9
- package/dist-es/commands/UpdateFlywheelCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -138
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +2981 -0
- package/dist-types/ComprehendClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -144
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +443 -0
- package/dist-types/ts3.4/ComprehendClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -106
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +449 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_json1_1.js +0 -3403
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -767
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -1025
|
@@ -1,3403 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, 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, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { ComprehendServiceException as __BaseException } from "../models/ComprehendServiceException";
|
|
6
|
-
import { BatchSizeLimitExceededException, InternalServerException, InvalidFilterException, InvalidRequestException, JobNotFoundException, KmsKeyValidationException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourceUnavailableException, TextSizeLimitExceededException, TooManyRequestsException, TooManyTagsException, UnsupportedLanguageException, } from "../models/models_0";
|
|
7
|
-
import { ConcurrentModificationException, TooManyTagKeysException, } from "../models/models_1";
|
|
8
|
-
export const se_BatchDetectDominantLanguageCommand = async (input, context) => {
|
|
9
|
-
const headers = sharedHeaders("BatchDetectDominantLanguage");
|
|
10
|
-
let body;
|
|
11
|
-
body = JSON.stringify(_json(input));
|
|
12
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
-
};
|
|
14
|
-
export const se_BatchDetectEntitiesCommand = async (input, context) => {
|
|
15
|
-
const headers = sharedHeaders("BatchDetectEntities");
|
|
16
|
-
let body;
|
|
17
|
-
body = JSON.stringify(_json(input));
|
|
18
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
19
|
-
};
|
|
20
|
-
export const se_BatchDetectKeyPhrasesCommand = async (input, context) => {
|
|
21
|
-
const headers = sharedHeaders("BatchDetectKeyPhrases");
|
|
22
|
-
let body;
|
|
23
|
-
body = JSON.stringify(_json(input));
|
|
24
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
25
|
-
};
|
|
26
|
-
export const se_BatchDetectSentimentCommand = async (input, context) => {
|
|
27
|
-
const headers = sharedHeaders("BatchDetectSentiment");
|
|
28
|
-
let body;
|
|
29
|
-
body = JSON.stringify(_json(input));
|
|
30
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
|
-
};
|
|
32
|
-
export const se_BatchDetectSyntaxCommand = async (input, context) => {
|
|
33
|
-
const headers = sharedHeaders("BatchDetectSyntax");
|
|
34
|
-
let body;
|
|
35
|
-
body = JSON.stringify(_json(input));
|
|
36
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
|
-
};
|
|
38
|
-
export const se_BatchDetectTargetedSentimentCommand = async (input, context) => {
|
|
39
|
-
const headers = sharedHeaders("BatchDetectTargetedSentiment");
|
|
40
|
-
let body;
|
|
41
|
-
body = JSON.stringify(_json(input));
|
|
42
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
43
|
-
};
|
|
44
|
-
export const se_ClassifyDocumentCommand = async (input, context) => {
|
|
45
|
-
const headers = sharedHeaders("ClassifyDocument");
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify(se_ClassifyDocumentRequest(input, context));
|
|
48
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
-
};
|
|
50
|
-
export const se_ContainsPiiEntitiesCommand = async (input, context) => {
|
|
51
|
-
const headers = sharedHeaders("ContainsPiiEntities");
|
|
52
|
-
let body;
|
|
53
|
-
body = JSON.stringify(_json(input));
|
|
54
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
|
-
};
|
|
56
|
-
export const se_CreateDatasetCommand = async (input, context) => {
|
|
57
|
-
const headers = sharedHeaders("CreateDataset");
|
|
58
|
-
let body;
|
|
59
|
-
body = JSON.stringify(se_CreateDatasetRequest(input, context));
|
|
60
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
61
|
-
};
|
|
62
|
-
export const se_CreateDocumentClassifierCommand = async (input, context) => {
|
|
63
|
-
const headers = sharedHeaders("CreateDocumentClassifier");
|
|
64
|
-
let body;
|
|
65
|
-
body = JSON.stringify(se_CreateDocumentClassifierRequest(input, context));
|
|
66
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
|
-
};
|
|
68
|
-
export const se_CreateEndpointCommand = async (input, context) => {
|
|
69
|
-
const headers = sharedHeaders("CreateEndpoint");
|
|
70
|
-
let body;
|
|
71
|
-
body = JSON.stringify(se_CreateEndpointRequest(input, context));
|
|
72
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
73
|
-
};
|
|
74
|
-
export const se_CreateEntityRecognizerCommand = async (input, context) => {
|
|
75
|
-
const headers = sharedHeaders("CreateEntityRecognizer");
|
|
76
|
-
let body;
|
|
77
|
-
body = JSON.stringify(se_CreateEntityRecognizerRequest(input, context));
|
|
78
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
79
|
-
};
|
|
80
|
-
export const se_CreateFlywheelCommand = async (input, context) => {
|
|
81
|
-
const headers = sharedHeaders("CreateFlywheel");
|
|
82
|
-
let body;
|
|
83
|
-
body = JSON.stringify(se_CreateFlywheelRequest(input, context));
|
|
84
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
-
};
|
|
86
|
-
export const se_DeleteDocumentClassifierCommand = async (input, context) => {
|
|
87
|
-
const headers = sharedHeaders("DeleteDocumentClassifier");
|
|
88
|
-
let body;
|
|
89
|
-
body = JSON.stringify(_json(input));
|
|
90
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
91
|
-
};
|
|
92
|
-
export const se_DeleteEndpointCommand = async (input, context) => {
|
|
93
|
-
const headers = sharedHeaders("DeleteEndpoint");
|
|
94
|
-
let body;
|
|
95
|
-
body = JSON.stringify(_json(input));
|
|
96
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
|
-
};
|
|
98
|
-
export const se_DeleteEntityRecognizerCommand = async (input, context) => {
|
|
99
|
-
const headers = sharedHeaders("DeleteEntityRecognizer");
|
|
100
|
-
let body;
|
|
101
|
-
body = JSON.stringify(_json(input));
|
|
102
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
|
-
};
|
|
104
|
-
export const se_DeleteFlywheelCommand = async (input, context) => {
|
|
105
|
-
const headers = sharedHeaders("DeleteFlywheel");
|
|
106
|
-
let body;
|
|
107
|
-
body = JSON.stringify(_json(input));
|
|
108
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
109
|
-
};
|
|
110
|
-
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
111
|
-
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
112
|
-
let body;
|
|
113
|
-
body = JSON.stringify(_json(input));
|
|
114
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
115
|
-
};
|
|
116
|
-
export const se_DescribeDatasetCommand = async (input, context) => {
|
|
117
|
-
const headers = sharedHeaders("DescribeDataset");
|
|
118
|
-
let body;
|
|
119
|
-
body = JSON.stringify(_json(input));
|
|
120
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
-
};
|
|
122
|
-
export const se_DescribeDocumentClassificationJobCommand = async (input, context) => {
|
|
123
|
-
const headers = sharedHeaders("DescribeDocumentClassificationJob");
|
|
124
|
-
let body;
|
|
125
|
-
body = JSON.stringify(_json(input));
|
|
126
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
|
-
};
|
|
128
|
-
export const se_DescribeDocumentClassifierCommand = async (input, context) => {
|
|
129
|
-
const headers = sharedHeaders("DescribeDocumentClassifier");
|
|
130
|
-
let body;
|
|
131
|
-
body = JSON.stringify(_json(input));
|
|
132
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
133
|
-
};
|
|
134
|
-
export const se_DescribeDominantLanguageDetectionJobCommand = async (input, context) => {
|
|
135
|
-
const headers = sharedHeaders("DescribeDominantLanguageDetectionJob");
|
|
136
|
-
let body;
|
|
137
|
-
body = JSON.stringify(_json(input));
|
|
138
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
|
-
};
|
|
140
|
-
export const se_DescribeEndpointCommand = async (input, context) => {
|
|
141
|
-
const headers = sharedHeaders("DescribeEndpoint");
|
|
142
|
-
let body;
|
|
143
|
-
body = JSON.stringify(_json(input));
|
|
144
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
145
|
-
};
|
|
146
|
-
export const se_DescribeEntitiesDetectionJobCommand = async (input, context) => {
|
|
147
|
-
const headers = sharedHeaders("DescribeEntitiesDetectionJob");
|
|
148
|
-
let body;
|
|
149
|
-
body = JSON.stringify(_json(input));
|
|
150
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
151
|
-
};
|
|
152
|
-
export const se_DescribeEntityRecognizerCommand = async (input, context) => {
|
|
153
|
-
const headers = sharedHeaders("DescribeEntityRecognizer");
|
|
154
|
-
let body;
|
|
155
|
-
body = JSON.stringify(_json(input));
|
|
156
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
|
-
};
|
|
158
|
-
export const se_DescribeEventsDetectionJobCommand = async (input, context) => {
|
|
159
|
-
const headers = sharedHeaders("DescribeEventsDetectionJob");
|
|
160
|
-
let body;
|
|
161
|
-
body = JSON.stringify(_json(input));
|
|
162
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
163
|
-
};
|
|
164
|
-
export const se_DescribeFlywheelCommand = async (input, context) => {
|
|
165
|
-
const headers = sharedHeaders("DescribeFlywheel");
|
|
166
|
-
let body;
|
|
167
|
-
body = JSON.stringify(_json(input));
|
|
168
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
169
|
-
};
|
|
170
|
-
export const se_DescribeFlywheelIterationCommand = async (input, context) => {
|
|
171
|
-
const headers = sharedHeaders("DescribeFlywheelIteration");
|
|
172
|
-
let body;
|
|
173
|
-
body = JSON.stringify(_json(input));
|
|
174
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
-
};
|
|
176
|
-
export const se_DescribeKeyPhrasesDetectionJobCommand = async (input, context) => {
|
|
177
|
-
const headers = sharedHeaders("DescribeKeyPhrasesDetectionJob");
|
|
178
|
-
let body;
|
|
179
|
-
body = JSON.stringify(_json(input));
|
|
180
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
181
|
-
};
|
|
182
|
-
export const se_DescribePiiEntitiesDetectionJobCommand = async (input, context) => {
|
|
183
|
-
const headers = sharedHeaders("DescribePiiEntitiesDetectionJob");
|
|
184
|
-
let body;
|
|
185
|
-
body = JSON.stringify(_json(input));
|
|
186
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
|
-
};
|
|
188
|
-
export const se_DescribeResourcePolicyCommand = async (input, context) => {
|
|
189
|
-
const headers = sharedHeaders("DescribeResourcePolicy");
|
|
190
|
-
let body;
|
|
191
|
-
body = JSON.stringify(_json(input));
|
|
192
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
|
-
};
|
|
194
|
-
export const se_DescribeSentimentDetectionJobCommand = async (input, context) => {
|
|
195
|
-
const headers = sharedHeaders("DescribeSentimentDetectionJob");
|
|
196
|
-
let body;
|
|
197
|
-
body = JSON.stringify(_json(input));
|
|
198
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
199
|
-
};
|
|
200
|
-
export const se_DescribeTargetedSentimentDetectionJobCommand = async (input, context) => {
|
|
201
|
-
const headers = sharedHeaders("DescribeTargetedSentimentDetectionJob");
|
|
202
|
-
let body;
|
|
203
|
-
body = JSON.stringify(_json(input));
|
|
204
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
205
|
-
};
|
|
206
|
-
export const se_DescribeTopicsDetectionJobCommand = async (input, context) => {
|
|
207
|
-
const headers = sharedHeaders("DescribeTopicsDetectionJob");
|
|
208
|
-
let body;
|
|
209
|
-
body = JSON.stringify(_json(input));
|
|
210
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
|
-
};
|
|
212
|
-
export const se_DetectDominantLanguageCommand = async (input, context) => {
|
|
213
|
-
const headers = sharedHeaders("DetectDominantLanguage");
|
|
214
|
-
let body;
|
|
215
|
-
body = JSON.stringify(_json(input));
|
|
216
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
|
-
};
|
|
218
|
-
export const se_DetectEntitiesCommand = async (input, context) => {
|
|
219
|
-
const headers = sharedHeaders("DetectEntities");
|
|
220
|
-
let body;
|
|
221
|
-
body = JSON.stringify(se_DetectEntitiesRequest(input, context));
|
|
222
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
223
|
-
};
|
|
224
|
-
export const se_DetectKeyPhrasesCommand = async (input, context) => {
|
|
225
|
-
const headers = sharedHeaders("DetectKeyPhrases");
|
|
226
|
-
let body;
|
|
227
|
-
body = JSON.stringify(_json(input));
|
|
228
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
|
-
};
|
|
230
|
-
export const se_DetectPiiEntitiesCommand = async (input, context) => {
|
|
231
|
-
const headers = sharedHeaders("DetectPiiEntities");
|
|
232
|
-
let body;
|
|
233
|
-
body = JSON.stringify(_json(input));
|
|
234
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
235
|
-
};
|
|
236
|
-
export const se_DetectSentimentCommand = async (input, context) => {
|
|
237
|
-
const headers = sharedHeaders("DetectSentiment");
|
|
238
|
-
let body;
|
|
239
|
-
body = JSON.stringify(_json(input));
|
|
240
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
241
|
-
};
|
|
242
|
-
export const se_DetectSyntaxCommand = async (input, context) => {
|
|
243
|
-
const headers = sharedHeaders("DetectSyntax");
|
|
244
|
-
let body;
|
|
245
|
-
body = JSON.stringify(_json(input));
|
|
246
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
|
-
};
|
|
248
|
-
export const se_DetectTargetedSentimentCommand = async (input, context) => {
|
|
249
|
-
const headers = sharedHeaders("DetectTargetedSentiment");
|
|
250
|
-
let body;
|
|
251
|
-
body = JSON.stringify(_json(input));
|
|
252
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
253
|
-
};
|
|
254
|
-
export const se_DetectToxicContentCommand = async (input, context) => {
|
|
255
|
-
const headers = sharedHeaders("DetectToxicContent");
|
|
256
|
-
let body;
|
|
257
|
-
body = JSON.stringify(_json(input));
|
|
258
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
259
|
-
};
|
|
260
|
-
export const se_ImportModelCommand = async (input, context) => {
|
|
261
|
-
const headers = sharedHeaders("ImportModel");
|
|
262
|
-
let body;
|
|
263
|
-
body = JSON.stringify(_json(input));
|
|
264
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
265
|
-
};
|
|
266
|
-
export const se_ListDatasetsCommand = async (input, context) => {
|
|
267
|
-
const headers = sharedHeaders("ListDatasets");
|
|
268
|
-
let body;
|
|
269
|
-
body = JSON.stringify(se_ListDatasetsRequest(input, context));
|
|
270
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
271
|
-
};
|
|
272
|
-
export const se_ListDocumentClassificationJobsCommand = async (input, context) => {
|
|
273
|
-
const headers = sharedHeaders("ListDocumentClassificationJobs");
|
|
274
|
-
let body;
|
|
275
|
-
body = JSON.stringify(se_ListDocumentClassificationJobsRequest(input, context));
|
|
276
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
|
-
};
|
|
278
|
-
export const se_ListDocumentClassifiersCommand = async (input, context) => {
|
|
279
|
-
const headers = sharedHeaders("ListDocumentClassifiers");
|
|
280
|
-
let body;
|
|
281
|
-
body = JSON.stringify(se_ListDocumentClassifiersRequest(input, context));
|
|
282
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
283
|
-
};
|
|
284
|
-
export const se_ListDocumentClassifierSummariesCommand = async (input, context) => {
|
|
285
|
-
const headers = sharedHeaders("ListDocumentClassifierSummaries");
|
|
286
|
-
let body;
|
|
287
|
-
body = JSON.stringify(_json(input));
|
|
288
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
289
|
-
};
|
|
290
|
-
export const se_ListDominantLanguageDetectionJobsCommand = async (input, context) => {
|
|
291
|
-
const headers = sharedHeaders("ListDominantLanguageDetectionJobs");
|
|
292
|
-
let body;
|
|
293
|
-
body = JSON.stringify(se_ListDominantLanguageDetectionJobsRequest(input, context));
|
|
294
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
295
|
-
};
|
|
296
|
-
export const se_ListEndpointsCommand = async (input, context) => {
|
|
297
|
-
const headers = sharedHeaders("ListEndpoints");
|
|
298
|
-
let body;
|
|
299
|
-
body = JSON.stringify(se_ListEndpointsRequest(input, context));
|
|
300
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
|
-
};
|
|
302
|
-
export const se_ListEntitiesDetectionJobsCommand = async (input, context) => {
|
|
303
|
-
const headers = sharedHeaders("ListEntitiesDetectionJobs");
|
|
304
|
-
let body;
|
|
305
|
-
body = JSON.stringify(se_ListEntitiesDetectionJobsRequest(input, context));
|
|
306
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
|
-
};
|
|
308
|
-
export const se_ListEntityRecognizersCommand = async (input, context) => {
|
|
309
|
-
const headers = sharedHeaders("ListEntityRecognizers");
|
|
310
|
-
let body;
|
|
311
|
-
body = JSON.stringify(se_ListEntityRecognizersRequest(input, context));
|
|
312
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
313
|
-
};
|
|
314
|
-
export const se_ListEntityRecognizerSummariesCommand = async (input, context) => {
|
|
315
|
-
const headers = sharedHeaders("ListEntityRecognizerSummaries");
|
|
316
|
-
let body;
|
|
317
|
-
body = JSON.stringify(_json(input));
|
|
318
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
319
|
-
};
|
|
320
|
-
export const se_ListEventsDetectionJobsCommand = async (input, context) => {
|
|
321
|
-
const headers = sharedHeaders("ListEventsDetectionJobs");
|
|
322
|
-
let body;
|
|
323
|
-
body = JSON.stringify(se_ListEventsDetectionJobsRequest(input, context));
|
|
324
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
325
|
-
};
|
|
326
|
-
export const se_ListFlywheelIterationHistoryCommand = async (input, context) => {
|
|
327
|
-
const headers = sharedHeaders("ListFlywheelIterationHistory");
|
|
328
|
-
let body;
|
|
329
|
-
body = JSON.stringify(se_ListFlywheelIterationHistoryRequest(input, context));
|
|
330
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
331
|
-
};
|
|
332
|
-
export const se_ListFlywheelsCommand = async (input, context) => {
|
|
333
|
-
const headers = sharedHeaders("ListFlywheels");
|
|
334
|
-
let body;
|
|
335
|
-
body = JSON.stringify(se_ListFlywheelsRequest(input, context));
|
|
336
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
|
-
};
|
|
338
|
-
export const se_ListKeyPhrasesDetectionJobsCommand = async (input, context) => {
|
|
339
|
-
const headers = sharedHeaders("ListKeyPhrasesDetectionJobs");
|
|
340
|
-
let body;
|
|
341
|
-
body = JSON.stringify(se_ListKeyPhrasesDetectionJobsRequest(input, context));
|
|
342
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
343
|
-
};
|
|
344
|
-
export const se_ListPiiEntitiesDetectionJobsCommand = async (input, context) => {
|
|
345
|
-
const headers = sharedHeaders("ListPiiEntitiesDetectionJobs");
|
|
346
|
-
let body;
|
|
347
|
-
body = JSON.stringify(se_ListPiiEntitiesDetectionJobsRequest(input, context));
|
|
348
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
349
|
-
};
|
|
350
|
-
export const se_ListSentimentDetectionJobsCommand = async (input, context) => {
|
|
351
|
-
const headers = sharedHeaders("ListSentimentDetectionJobs");
|
|
352
|
-
let body;
|
|
353
|
-
body = JSON.stringify(se_ListSentimentDetectionJobsRequest(input, context));
|
|
354
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
355
|
-
};
|
|
356
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
357
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
358
|
-
let body;
|
|
359
|
-
body = JSON.stringify(_json(input));
|
|
360
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
361
|
-
};
|
|
362
|
-
export const se_ListTargetedSentimentDetectionJobsCommand = async (input, context) => {
|
|
363
|
-
const headers = sharedHeaders("ListTargetedSentimentDetectionJobs");
|
|
364
|
-
let body;
|
|
365
|
-
body = JSON.stringify(se_ListTargetedSentimentDetectionJobsRequest(input, context));
|
|
366
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
|
-
};
|
|
368
|
-
export const se_ListTopicsDetectionJobsCommand = async (input, context) => {
|
|
369
|
-
const headers = sharedHeaders("ListTopicsDetectionJobs");
|
|
370
|
-
let body;
|
|
371
|
-
body = JSON.stringify(se_ListTopicsDetectionJobsRequest(input, context));
|
|
372
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
|
-
};
|
|
374
|
-
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
375
|
-
const headers = sharedHeaders("PutResourcePolicy");
|
|
376
|
-
let body;
|
|
377
|
-
body = JSON.stringify(_json(input));
|
|
378
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
379
|
-
};
|
|
380
|
-
export const se_StartDocumentClassificationJobCommand = async (input, context) => {
|
|
381
|
-
const headers = sharedHeaders("StartDocumentClassificationJob");
|
|
382
|
-
let body;
|
|
383
|
-
body = JSON.stringify(se_StartDocumentClassificationJobRequest(input, context));
|
|
384
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
385
|
-
};
|
|
386
|
-
export const se_StartDominantLanguageDetectionJobCommand = async (input, context) => {
|
|
387
|
-
const headers = sharedHeaders("StartDominantLanguageDetectionJob");
|
|
388
|
-
let body;
|
|
389
|
-
body = JSON.stringify(se_StartDominantLanguageDetectionJobRequest(input, context));
|
|
390
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
391
|
-
};
|
|
392
|
-
export const se_StartEntitiesDetectionJobCommand = async (input, context) => {
|
|
393
|
-
const headers = sharedHeaders("StartEntitiesDetectionJob");
|
|
394
|
-
let body;
|
|
395
|
-
body = JSON.stringify(se_StartEntitiesDetectionJobRequest(input, context));
|
|
396
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
397
|
-
};
|
|
398
|
-
export const se_StartEventsDetectionJobCommand = async (input, context) => {
|
|
399
|
-
const headers = sharedHeaders("StartEventsDetectionJob");
|
|
400
|
-
let body;
|
|
401
|
-
body = JSON.stringify(se_StartEventsDetectionJobRequest(input, context));
|
|
402
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
403
|
-
};
|
|
404
|
-
export const se_StartFlywheelIterationCommand = async (input, context) => {
|
|
405
|
-
const headers = sharedHeaders("StartFlywheelIteration");
|
|
406
|
-
let body;
|
|
407
|
-
body = JSON.stringify(_json(input));
|
|
408
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
409
|
-
};
|
|
410
|
-
export const se_StartKeyPhrasesDetectionJobCommand = async (input, context) => {
|
|
411
|
-
const headers = sharedHeaders("StartKeyPhrasesDetectionJob");
|
|
412
|
-
let body;
|
|
413
|
-
body = JSON.stringify(se_StartKeyPhrasesDetectionJobRequest(input, context));
|
|
414
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
415
|
-
};
|
|
416
|
-
export const se_StartPiiEntitiesDetectionJobCommand = async (input, context) => {
|
|
417
|
-
const headers = sharedHeaders("StartPiiEntitiesDetectionJob");
|
|
418
|
-
let body;
|
|
419
|
-
body = JSON.stringify(se_StartPiiEntitiesDetectionJobRequest(input, context));
|
|
420
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
421
|
-
};
|
|
422
|
-
export const se_StartSentimentDetectionJobCommand = async (input, context) => {
|
|
423
|
-
const headers = sharedHeaders("StartSentimentDetectionJob");
|
|
424
|
-
let body;
|
|
425
|
-
body = JSON.stringify(se_StartSentimentDetectionJobRequest(input, context));
|
|
426
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
427
|
-
};
|
|
428
|
-
export const se_StartTargetedSentimentDetectionJobCommand = async (input, context) => {
|
|
429
|
-
const headers = sharedHeaders("StartTargetedSentimentDetectionJob");
|
|
430
|
-
let body;
|
|
431
|
-
body = JSON.stringify(se_StartTargetedSentimentDetectionJobRequest(input, context));
|
|
432
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
433
|
-
};
|
|
434
|
-
export const se_StartTopicsDetectionJobCommand = async (input, context) => {
|
|
435
|
-
const headers = sharedHeaders("StartTopicsDetectionJob");
|
|
436
|
-
let body;
|
|
437
|
-
body = JSON.stringify(se_StartTopicsDetectionJobRequest(input, context));
|
|
438
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
439
|
-
};
|
|
440
|
-
export const se_StopDominantLanguageDetectionJobCommand = async (input, context) => {
|
|
441
|
-
const headers = sharedHeaders("StopDominantLanguageDetectionJob");
|
|
442
|
-
let body;
|
|
443
|
-
body = JSON.stringify(_json(input));
|
|
444
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
445
|
-
};
|
|
446
|
-
export const se_StopEntitiesDetectionJobCommand = async (input, context) => {
|
|
447
|
-
const headers = sharedHeaders("StopEntitiesDetectionJob");
|
|
448
|
-
let body;
|
|
449
|
-
body = JSON.stringify(_json(input));
|
|
450
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
451
|
-
};
|
|
452
|
-
export const se_StopEventsDetectionJobCommand = async (input, context) => {
|
|
453
|
-
const headers = sharedHeaders("StopEventsDetectionJob");
|
|
454
|
-
let body;
|
|
455
|
-
body = JSON.stringify(_json(input));
|
|
456
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
457
|
-
};
|
|
458
|
-
export const se_StopKeyPhrasesDetectionJobCommand = async (input, context) => {
|
|
459
|
-
const headers = sharedHeaders("StopKeyPhrasesDetectionJob");
|
|
460
|
-
let body;
|
|
461
|
-
body = JSON.stringify(_json(input));
|
|
462
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
463
|
-
};
|
|
464
|
-
export const se_StopPiiEntitiesDetectionJobCommand = async (input, context) => {
|
|
465
|
-
const headers = sharedHeaders("StopPiiEntitiesDetectionJob");
|
|
466
|
-
let body;
|
|
467
|
-
body = JSON.stringify(_json(input));
|
|
468
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
469
|
-
};
|
|
470
|
-
export const se_StopSentimentDetectionJobCommand = async (input, context) => {
|
|
471
|
-
const headers = sharedHeaders("StopSentimentDetectionJob");
|
|
472
|
-
let body;
|
|
473
|
-
body = JSON.stringify(_json(input));
|
|
474
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
475
|
-
};
|
|
476
|
-
export const se_StopTargetedSentimentDetectionJobCommand = async (input, context) => {
|
|
477
|
-
const headers = sharedHeaders("StopTargetedSentimentDetectionJob");
|
|
478
|
-
let body;
|
|
479
|
-
body = JSON.stringify(_json(input));
|
|
480
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
481
|
-
};
|
|
482
|
-
export const se_StopTrainingDocumentClassifierCommand = async (input, context) => {
|
|
483
|
-
const headers = sharedHeaders("StopTrainingDocumentClassifier");
|
|
484
|
-
let body;
|
|
485
|
-
body = JSON.stringify(_json(input));
|
|
486
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
487
|
-
};
|
|
488
|
-
export const se_StopTrainingEntityRecognizerCommand = async (input, context) => {
|
|
489
|
-
const headers = sharedHeaders("StopTrainingEntityRecognizer");
|
|
490
|
-
let body;
|
|
491
|
-
body = JSON.stringify(_json(input));
|
|
492
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
493
|
-
};
|
|
494
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
495
|
-
const headers = sharedHeaders("TagResource");
|
|
496
|
-
let body;
|
|
497
|
-
body = JSON.stringify(_json(input));
|
|
498
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
499
|
-
};
|
|
500
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
501
|
-
const headers = sharedHeaders("UntagResource");
|
|
502
|
-
let body;
|
|
503
|
-
body = JSON.stringify(_json(input));
|
|
504
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
505
|
-
};
|
|
506
|
-
export const se_UpdateEndpointCommand = async (input, context) => {
|
|
507
|
-
const headers = sharedHeaders("UpdateEndpoint");
|
|
508
|
-
let body;
|
|
509
|
-
body = JSON.stringify(_json(input));
|
|
510
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
511
|
-
};
|
|
512
|
-
export const se_UpdateFlywheelCommand = async (input, context) => {
|
|
513
|
-
const headers = sharedHeaders("UpdateFlywheel");
|
|
514
|
-
let body;
|
|
515
|
-
body = JSON.stringify(_json(input));
|
|
516
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
517
|
-
};
|
|
518
|
-
export const de_BatchDetectDominantLanguageCommand = async (output, context) => {
|
|
519
|
-
if (output.statusCode >= 300) {
|
|
520
|
-
return de_CommandError(output, context);
|
|
521
|
-
}
|
|
522
|
-
const data = await parseBody(output.body, context);
|
|
523
|
-
let contents = {};
|
|
524
|
-
contents = de_BatchDetectDominantLanguageResponse(data, context);
|
|
525
|
-
const response = {
|
|
526
|
-
$metadata: deserializeMetadata(output),
|
|
527
|
-
...contents,
|
|
528
|
-
};
|
|
529
|
-
return response;
|
|
530
|
-
};
|
|
531
|
-
export const de_BatchDetectEntitiesCommand = async (output, context) => {
|
|
532
|
-
if (output.statusCode >= 300) {
|
|
533
|
-
return de_CommandError(output, context);
|
|
534
|
-
}
|
|
535
|
-
const data = await parseBody(output.body, context);
|
|
536
|
-
let contents = {};
|
|
537
|
-
contents = de_BatchDetectEntitiesResponse(data, context);
|
|
538
|
-
const response = {
|
|
539
|
-
$metadata: deserializeMetadata(output),
|
|
540
|
-
...contents,
|
|
541
|
-
};
|
|
542
|
-
return response;
|
|
543
|
-
};
|
|
544
|
-
export const de_BatchDetectKeyPhrasesCommand = async (output, context) => {
|
|
545
|
-
if (output.statusCode >= 300) {
|
|
546
|
-
return de_CommandError(output, context);
|
|
547
|
-
}
|
|
548
|
-
const data = await parseBody(output.body, context);
|
|
549
|
-
let contents = {};
|
|
550
|
-
contents = de_BatchDetectKeyPhrasesResponse(data, context);
|
|
551
|
-
const response = {
|
|
552
|
-
$metadata: deserializeMetadata(output),
|
|
553
|
-
...contents,
|
|
554
|
-
};
|
|
555
|
-
return response;
|
|
556
|
-
};
|
|
557
|
-
export const de_BatchDetectSentimentCommand = async (output, context) => {
|
|
558
|
-
if (output.statusCode >= 300) {
|
|
559
|
-
return de_CommandError(output, context);
|
|
560
|
-
}
|
|
561
|
-
const data = await parseBody(output.body, context);
|
|
562
|
-
let contents = {};
|
|
563
|
-
contents = de_BatchDetectSentimentResponse(data, context);
|
|
564
|
-
const response = {
|
|
565
|
-
$metadata: deserializeMetadata(output),
|
|
566
|
-
...contents,
|
|
567
|
-
};
|
|
568
|
-
return response;
|
|
569
|
-
};
|
|
570
|
-
export const de_BatchDetectSyntaxCommand = async (output, context) => {
|
|
571
|
-
if (output.statusCode >= 300) {
|
|
572
|
-
return de_CommandError(output, context);
|
|
573
|
-
}
|
|
574
|
-
const data = await parseBody(output.body, context);
|
|
575
|
-
let contents = {};
|
|
576
|
-
contents = de_BatchDetectSyntaxResponse(data, context);
|
|
577
|
-
const response = {
|
|
578
|
-
$metadata: deserializeMetadata(output),
|
|
579
|
-
...contents,
|
|
580
|
-
};
|
|
581
|
-
return response;
|
|
582
|
-
};
|
|
583
|
-
export const de_BatchDetectTargetedSentimentCommand = async (output, context) => {
|
|
584
|
-
if (output.statusCode >= 300) {
|
|
585
|
-
return de_CommandError(output, context);
|
|
586
|
-
}
|
|
587
|
-
const data = await parseBody(output.body, context);
|
|
588
|
-
let contents = {};
|
|
589
|
-
contents = de_BatchDetectTargetedSentimentResponse(data, context);
|
|
590
|
-
const response = {
|
|
591
|
-
$metadata: deserializeMetadata(output),
|
|
592
|
-
...contents,
|
|
593
|
-
};
|
|
594
|
-
return response;
|
|
595
|
-
};
|
|
596
|
-
export const de_ClassifyDocumentCommand = async (output, context) => {
|
|
597
|
-
if (output.statusCode >= 300) {
|
|
598
|
-
return de_CommandError(output, context);
|
|
599
|
-
}
|
|
600
|
-
const data = await parseBody(output.body, context);
|
|
601
|
-
let contents = {};
|
|
602
|
-
contents = de_ClassifyDocumentResponse(data, context);
|
|
603
|
-
const response = {
|
|
604
|
-
$metadata: deserializeMetadata(output),
|
|
605
|
-
...contents,
|
|
606
|
-
};
|
|
607
|
-
return response;
|
|
608
|
-
};
|
|
609
|
-
export const de_ContainsPiiEntitiesCommand = async (output, context) => {
|
|
610
|
-
if (output.statusCode >= 300) {
|
|
611
|
-
return de_CommandError(output, context);
|
|
612
|
-
}
|
|
613
|
-
const data = await parseBody(output.body, context);
|
|
614
|
-
let contents = {};
|
|
615
|
-
contents = de_ContainsPiiEntitiesResponse(data, context);
|
|
616
|
-
const response = {
|
|
617
|
-
$metadata: deserializeMetadata(output),
|
|
618
|
-
...contents,
|
|
619
|
-
};
|
|
620
|
-
return response;
|
|
621
|
-
};
|
|
622
|
-
export const de_CreateDatasetCommand = async (output, context) => {
|
|
623
|
-
if (output.statusCode >= 300) {
|
|
624
|
-
return de_CommandError(output, context);
|
|
625
|
-
}
|
|
626
|
-
const data = await parseBody(output.body, context);
|
|
627
|
-
let contents = {};
|
|
628
|
-
contents = _json(data);
|
|
629
|
-
const response = {
|
|
630
|
-
$metadata: deserializeMetadata(output),
|
|
631
|
-
...contents,
|
|
632
|
-
};
|
|
633
|
-
return response;
|
|
634
|
-
};
|
|
635
|
-
export const de_CreateDocumentClassifierCommand = async (output, context) => {
|
|
636
|
-
if (output.statusCode >= 300) {
|
|
637
|
-
return de_CommandError(output, context);
|
|
638
|
-
}
|
|
639
|
-
const data = await parseBody(output.body, context);
|
|
640
|
-
let contents = {};
|
|
641
|
-
contents = _json(data);
|
|
642
|
-
const response = {
|
|
643
|
-
$metadata: deserializeMetadata(output),
|
|
644
|
-
...contents,
|
|
645
|
-
};
|
|
646
|
-
return response;
|
|
647
|
-
};
|
|
648
|
-
export const de_CreateEndpointCommand = async (output, context) => {
|
|
649
|
-
if (output.statusCode >= 300) {
|
|
650
|
-
return de_CommandError(output, context);
|
|
651
|
-
}
|
|
652
|
-
const data = await parseBody(output.body, context);
|
|
653
|
-
let contents = {};
|
|
654
|
-
contents = _json(data);
|
|
655
|
-
const response = {
|
|
656
|
-
$metadata: deserializeMetadata(output),
|
|
657
|
-
...contents,
|
|
658
|
-
};
|
|
659
|
-
return response;
|
|
660
|
-
};
|
|
661
|
-
export const de_CreateEntityRecognizerCommand = async (output, context) => {
|
|
662
|
-
if (output.statusCode >= 300) {
|
|
663
|
-
return de_CommandError(output, context);
|
|
664
|
-
}
|
|
665
|
-
const data = await parseBody(output.body, context);
|
|
666
|
-
let contents = {};
|
|
667
|
-
contents = _json(data);
|
|
668
|
-
const response = {
|
|
669
|
-
$metadata: deserializeMetadata(output),
|
|
670
|
-
...contents,
|
|
671
|
-
};
|
|
672
|
-
return response;
|
|
673
|
-
};
|
|
674
|
-
export const de_CreateFlywheelCommand = async (output, context) => {
|
|
675
|
-
if (output.statusCode >= 300) {
|
|
676
|
-
return de_CommandError(output, context);
|
|
677
|
-
}
|
|
678
|
-
const data = await parseBody(output.body, context);
|
|
679
|
-
let contents = {};
|
|
680
|
-
contents = _json(data);
|
|
681
|
-
const response = {
|
|
682
|
-
$metadata: deserializeMetadata(output),
|
|
683
|
-
...contents,
|
|
684
|
-
};
|
|
685
|
-
return response;
|
|
686
|
-
};
|
|
687
|
-
export const de_DeleteDocumentClassifierCommand = async (output, context) => {
|
|
688
|
-
if (output.statusCode >= 300) {
|
|
689
|
-
return de_CommandError(output, context);
|
|
690
|
-
}
|
|
691
|
-
const data = await parseBody(output.body, context);
|
|
692
|
-
let contents = {};
|
|
693
|
-
contents = _json(data);
|
|
694
|
-
const response = {
|
|
695
|
-
$metadata: deserializeMetadata(output),
|
|
696
|
-
...contents,
|
|
697
|
-
};
|
|
698
|
-
return response;
|
|
699
|
-
};
|
|
700
|
-
export const de_DeleteEndpointCommand = async (output, context) => {
|
|
701
|
-
if (output.statusCode >= 300) {
|
|
702
|
-
return de_CommandError(output, context);
|
|
703
|
-
}
|
|
704
|
-
const data = await parseBody(output.body, context);
|
|
705
|
-
let contents = {};
|
|
706
|
-
contents = _json(data);
|
|
707
|
-
const response = {
|
|
708
|
-
$metadata: deserializeMetadata(output),
|
|
709
|
-
...contents,
|
|
710
|
-
};
|
|
711
|
-
return response;
|
|
712
|
-
};
|
|
713
|
-
export const de_DeleteEntityRecognizerCommand = async (output, context) => {
|
|
714
|
-
if (output.statusCode >= 300) {
|
|
715
|
-
return de_CommandError(output, context);
|
|
716
|
-
}
|
|
717
|
-
const data = await parseBody(output.body, context);
|
|
718
|
-
let contents = {};
|
|
719
|
-
contents = _json(data);
|
|
720
|
-
const response = {
|
|
721
|
-
$metadata: deserializeMetadata(output),
|
|
722
|
-
...contents,
|
|
723
|
-
};
|
|
724
|
-
return response;
|
|
725
|
-
};
|
|
726
|
-
export const de_DeleteFlywheelCommand = async (output, context) => {
|
|
727
|
-
if (output.statusCode >= 300) {
|
|
728
|
-
return de_CommandError(output, context);
|
|
729
|
-
}
|
|
730
|
-
const data = await parseBody(output.body, context);
|
|
731
|
-
let contents = {};
|
|
732
|
-
contents = _json(data);
|
|
733
|
-
const response = {
|
|
734
|
-
$metadata: deserializeMetadata(output),
|
|
735
|
-
...contents,
|
|
736
|
-
};
|
|
737
|
-
return response;
|
|
738
|
-
};
|
|
739
|
-
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
740
|
-
if (output.statusCode >= 300) {
|
|
741
|
-
return de_CommandError(output, context);
|
|
742
|
-
}
|
|
743
|
-
const data = await parseBody(output.body, context);
|
|
744
|
-
let contents = {};
|
|
745
|
-
contents = _json(data);
|
|
746
|
-
const response = {
|
|
747
|
-
$metadata: deserializeMetadata(output),
|
|
748
|
-
...contents,
|
|
749
|
-
};
|
|
750
|
-
return response;
|
|
751
|
-
};
|
|
752
|
-
export const de_DescribeDatasetCommand = async (output, context) => {
|
|
753
|
-
if (output.statusCode >= 300) {
|
|
754
|
-
return de_CommandError(output, context);
|
|
755
|
-
}
|
|
756
|
-
const data = await parseBody(output.body, context);
|
|
757
|
-
let contents = {};
|
|
758
|
-
contents = de_DescribeDatasetResponse(data, context);
|
|
759
|
-
const response = {
|
|
760
|
-
$metadata: deserializeMetadata(output),
|
|
761
|
-
...contents,
|
|
762
|
-
};
|
|
763
|
-
return response;
|
|
764
|
-
};
|
|
765
|
-
export const de_DescribeDocumentClassificationJobCommand = async (output, context) => {
|
|
766
|
-
if (output.statusCode >= 300) {
|
|
767
|
-
return de_CommandError(output, context);
|
|
768
|
-
}
|
|
769
|
-
const data = await parseBody(output.body, context);
|
|
770
|
-
let contents = {};
|
|
771
|
-
contents = de_DescribeDocumentClassificationJobResponse(data, context);
|
|
772
|
-
const response = {
|
|
773
|
-
$metadata: deserializeMetadata(output),
|
|
774
|
-
...contents,
|
|
775
|
-
};
|
|
776
|
-
return response;
|
|
777
|
-
};
|
|
778
|
-
export const de_DescribeDocumentClassifierCommand = async (output, context) => {
|
|
779
|
-
if (output.statusCode >= 300) {
|
|
780
|
-
return de_CommandError(output, context);
|
|
781
|
-
}
|
|
782
|
-
const data = await parseBody(output.body, context);
|
|
783
|
-
let contents = {};
|
|
784
|
-
contents = de_DescribeDocumentClassifierResponse(data, context);
|
|
785
|
-
const response = {
|
|
786
|
-
$metadata: deserializeMetadata(output),
|
|
787
|
-
...contents,
|
|
788
|
-
};
|
|
789
|
-
return response;
|
|
790
|
-
};
|
|
791
|
-
export const de_DescribeDominantLanguageDetectionJobCommand = async (output, context) => {
|
|
792
|
-
if (output.statusCode >= 300) {
|
|
793
|
-
return de_CommandError(output, context);
|
|
794
|
-
}
|
|
795
|
-
const data = await parseBody(output.body, context);
|
|
796
|
-
let contents = {};
|
|
797
|
-
contents = de_DescribeDominantLanguageDetectionJobResponse(data, context);
|
|
798
|
-
const response = {
|
|
799
|
-
$metadata: deserializeMetadata(output),
|
|
800
|
-
...contents,
|
|
801
|
-
};
|
|
802
|
-
return response;
|
|
803
|
-
};
|
|
804
|
-
export const de_DescribeEndpointCommand = async (output, context) => {
|
|
805
|
-
if (output.statusCode >= 300) {
|
|
806
|
-
return de_CommandError(output, context);
|
|
807
|
-
}
|
|
808
|
-
const data = await parseBody(output.body, context);
|
|
809
|
-
let contents = {};
|
|
810
|
-
contents = de_DescribeEndpointResponse(data, context);
|
|
811
|
-
const response = {
|
|
812
|
-
$metadata: deserializeMetadata(output),
|
|
813
|
-
...contents,
|
|
814
|
-
};
|
|
815
|
-
return response;
|
|
816
|
-
};
|
|
817
|
-
export const de_DescribeEntitiesDetectionJobCommand = async (output, context) => {
|
|
818
|
-
if (output.statusCode >= 300) {
|
|
819
|
-
return de_CommandError(output, context);
|
|
820
|
-
}
|
|
821
|
-
const data = await parseBody(output.body, context);
|
|
822
|
-
let contents = {};
|
|
823
|
-
contents = de_DescribeEntitiesDetectionJobResponse(data, context);
|
|
824
|
-
const response = {
|
|
825
|
-
$metadata: deserializeMetadata(output),
|
|
826
|
-
...contents,
|
|
827
|
-
};
|
|
828
|
-
return response;
|
|
829
|
-
};
|
|
830
|
-
export const de_DescribeEntityRecognizerCommand = async (output, context) => {
|
|
831
|
-
if (output.statusCode >= 300) {
|
|
832
|
-
return de_CommandError(output, context);
|
|
833
|
-
}
|
|
834
|
-
const data = await parseBody(output.body, context);
|
|
835
|
-
let contents = {};
|
|
836
|
-
contents = de_DescribeEntityRecognizerResponse(data, context);
|
|
837
|
-
const response = {
|
|
838
|
-
$metadata: deserializeMetadata(output),
|
|
839
|
-
...contents,
|
|
840
|
-
};
|
|
841
|
-
return response;
|
|
842
|
-
};
|
|
843
|
-
export const de_DescribeEventsDetectionJobCommand = async (output, context) => {
|
|
844
|
-
if (output.statusCode >= 300) {
|
|
845
|
-
return de_CommandError(output, context);
|
|
846
|
-
}
|
|
847
|
-
const data = await parseBody(output.body, context);
|
|
848
|
-
let contents = {};
|
|
849
|
-
contents = de_DescribeEventsDetectionJobResponse(data, context);
|
|
850
|
-
const response = {
|
|
851
|
-
$metadata: deserializeMetadata(output),
|
|
852
|
-
...contents,
|
|
853
|
-
};
|
|
854
|
-
return response;
|
|
855
|
-
};
|
|
856
|
-
export const de_DescribeFlywheelCommand = async (output, context) => {
|
|
857
|
-
if (output.statusCode >= 300) {
|
|
858
|
-
return de_CommandError(output, context);
|
|
859
|
-
}
|
|
860
|
-
const data = await parseBody(output.body, context);
|
|
861
|
-
let contents = {};
|
|
862
|
-
contents = de_DescribeFlywheelResponse(data, context);
|
|
863
|
-
const response = {
|
|
864
|
-
$metadata: deserializeMetadata(output),
|
|
865
|
-
...contents,
|
|
866
|
-
};
|
|
867
|
-
return response;
|
|
868
|
-
};
|
|
869
|
-
export const de_DescribeFlywheelIterationCommand = async (output, context) => {
|
|
870
|
-
if (output.statusCode >= 300) {
|
|
871
|
-
return de_CommandError(output, context);
|
|
872
|
-
}
|
|
873
|
-
const data = await parseBody(output.body, context);
|
|
874
|
-
let contents = {};
|
|
875
|
-
contents = de_DescribeFlywheelIterationResponse(data, context);
|
|
876
|
-
const response = {
|
|
877
|
-
$metadata: deserializeMetadata(output),
|
|
878
|
-
...contents,
|
|
879
|
-
};
|
|
880
|
-
return response;
|
|
881
|
-
};
|
|
882
|
-
export const de_DescribeKeyPhrasesDetectionJobCommand = async (output, context) => {
|
|
883
|
-
if (output.statusCode >= 300) {
|
|
884
|
-
return de_CommandError(output, context);
|
|
885
|
-
}
|
|
886
|
-
const data = await parseBody(output.body, context);
|
|
887
|
-
let contents = {};
|
|
888
|
-
contents = de_DescribeKeyPhrasesDetectionJobResponse(data, context);
|
|
889
|
-
const response = {
|
|
890
|
-
$metadata: deserializeMetadata(output),
|
|
891
|
-
...contents,
|
|
892
|
-
};
|
|
893
|
-
return response;
|
|
894
|
-
};
|
|
895
|
-
export const de_DescribePiiEntitiesDetectionJobCommand = async (output, context) => {
|
|
896
|
-
if (output.statusCode >= 300) {
|
|
897
|
-
return de_CommandError(output, context);
|
|
898
|
-
}
|
|
899
|
-
const data = await parseBody(output.body, context);
|
|
900
|
-
let contents = {};
|
|
901
|
-
contents = de_DescribePiiEntitiesDetectionJobResponse(data, context);
|
|
902
|
-
const response = {
|
|
903
|
-
$metadata: deserializeMetadata(output),
|
|
904
|
-
...contents,
|
|
905
|
-
};
|
|
906
|
-
return response;
|
|
907
|
-
};
|
|
908
|
-
export const de_DescribeResourcePolicyCommand = async (output, context) => {
|
|
909
|
-
if (output.statusCode >= 300) {
|
|
910
|
-
return de_CommandError(output, context);
|
|
911
|
-
}
|
|
912
|
-
const data = await parseBody(output.body, context);
|
|
913
|
-
let contents = {};
|
|
914
|
-
contents = de_DescribeResourcePolicyResponse(data, context);
|
|
915
|
-
const response = {
|
|
916
|
-
$metadata: deserializeMetadata(output),
|
|
917
|
-
...contents,
|
|
918
|
-
};
|
|
919
|
-
return response;
|
|
920
|
-
};
|
|
921
|
-
export const de_DescribeSentimentDetectionJobCommand = async (output, context) => {
|
|
922
|
-
if (output.statusCode >= 300) {
|
|
923
|
-
return de_CommandError(output, context);
|
|
924
|
-
}
|
|
925
|
-
const data = await parseBody(output.body, context);
|
|
926
|
-
let contents = {};
|
|
927
|
-
contents = de_DescribeSentimentDetectionJobResponse(data, context);
|
|
928
|
-
const response = {
|
|
929
|
-
$metadata: deserializeMetadata(output),
|
|
930
|
-
...contents,
|
|
931
|
-
};
|
|
932
|
-
return response;
|
|
933
|
-
};
|
|
934
|
-
export const de_DescribeTargetedSentimentDetectionJobCommand = async (output, context) => {
|
|
935
|
-
if (output.statusCode >= 300) {
|
|
936
|
-
return de_CommandError(output, context);
|
|
937
|
-
}
|
|
938
|
-
const data = await parseBody(output.body, context);
|
|
939
|
-
let contents = {};
|
|
940
|
-
contents = de_DescribeTargetedSentimentDetectionJobResponse(data, context);
|
|
941
|
-
const response = {
|
|
942
|
-
$metadata: deserializeMetadata(output),
|
|
943
|
-
...contents,
|
|
944
|
-
};
|
|
945
|
-
return response;
|
|
946
|
-
};
|
|
947
|
-
export const de_DescribeTopicsDetectionJobCommand = async (output, context) => {
|
|
948
|
-
if (output.statusCode >= 300) {
|
|
949
|
-
return de_CommandError(output, context);
|
|
950
|
-
}
|
|
951
|
-
const data = await parseBody(output.body, context);
|
|
952
|
-
let contents = {};
|
|
953
|
-
contents = de_DescribeTopicsDetectionJobResponse(data, context);
|
|
954
|
-
const response = {
|
|
955
|
-
$metadata: deserializeMetadata(output),
|
|
956
|
-
...contents,
|
|
957
|
-
};
|
|
958
|
-
return response;
|
|
959
|
-
};
|
|
960
|
-
export const de_DetectDominantLanguageCommand = async (output, context) => {
|
|
961
|
-
if (output.statusCode >= 300) {
|
|
962
|
-
return de_CommandError(output, context);
|
|
963
|
-
}
|
|
964
|
-
const data = await parseBody(output.body, context);
|
|
965
|
-
let contents = {};
|
|
966
|
-
contents = de_DetectDominantLanguageResponse(data, context);
|
|
967
|
-
const response = {
|
|
968
|
-
$metadata: deserializeMetadata(output),
|
|
969
|
-
...contents,
|
|
970
|
-
};
|
|
971
|
-
return response;
|
|
972
|
-
};
|
|
973
|
-
export const de_DetectEntitiesCommand = async (output, context) => {
|
|
974
|
-
if (output.statusCode >= 300) {
|
|
975
|
-
return de_CommandError(output, context);
|
|
976
|
-
}
|
|
977
|
-
const data = await parseBody(output.body, context);
|
|
978
|
-
let contents = {};
|
|
979
|
-
contents = de_DetectEntitiesResponse(data, context);
|
|
980
|
-
const response = {
|
|
981
|
-
$metadata: deserializeMetadata(output),
|
|
982
|
-
...contents,
|
|
983
|
-
};
|
|
984
|
-
return response;
|
|
985
|
-
};
|
|
986
|
-
export const de_DetectKeyPhrasesCommand = async (output, context) => {
|
|
987
|
-
if (output.statusCode >= 300) {
|
|
988
|
-
return de_CommandError(output, context);
|
|
989
|
-
}
|
|
990
|
-
const data = await parseBody(output.body, context);
|
|
991
|
-
let contents = {};
|
|
992
|
-
contents = de_DetectKeyPhrasesResponse(data, context);
|
|
993
|
-
const response = {
|
|
994
|
-
$metadata: deserializeMetadata(output),
|
|
995
|
-
...contents,
|
|
996
|
-
};
|
|
997
|
-
return response;
|
|
998
|
-
};
|
|
999
|
-
export const de_DetectPiiEntitiesCommand = async (output, context) => {
|
|
1000
|
-
if (output.statusCode >= 300) {
|
|
1001
|
-
return de_CommandError(output, context);
|
|
1002
|
-
}
|
|
1003
|
-
const data = await parseBody(output.body, context);
|
|
1004
|
-
let contents = {};
|
|
1005
|
-
contents = de_DetectPiiEntitiesResponse(data, context);
|
|
1006
|
-
const response = {
|
|
1007
|
-
$metadata: deserializeMetadata(output),
|
|
1008
|
-
...contents,
|
|
1009
|
-
};
|
|
1010
|
-
return response;
|
|
1011
|
-
};
|
|
1012
|
-
export const de_DetectSentimentCommand = async (output, context) => {
|
|
1013
|
-
if (output.statusCode >= 300) {
|
|
1014
|
-
return de_CommandError(output, context);
|
|
1015
|
-
}
|
|
1016
|
-
const data = await parseBody(output.body, context);
|
|
1017
|
-
let contents = {};
|
|
1018
|
-
contents = de_DetectSentimentResponse(data, context);
|
|
1019
|
-
const response = {
|
|
1020
|
-
$metadata: deserializeMetadata(output),
|
|
1021
|
-
...contents,
|
|
1022
|
-
};
|
|
1023
|
-
return response;
|
|
1024
|
-
};
|
|
1025
|
-
export const de_DetectSyntaxCommand = async (output, context) => {
|
|
1026
|
-
if (output.statusCode >= 300) {
|
|
1027
|
-
return de_CommandError(output, context);
|
|
1028
|
-
}
|
|
1029
|
-
const data = await parseBody(output.body, context);
|
|
1030
|
-
let contents = {};
|
|
1031
|
-
contents = de_DetectSyntaxResponse(data, context);
|
|
1032
|
-
const response = {
|
|
1033
|
-
$metadata: deserializeMetadata(output),
|
|
1034
|
-
...contents,
|
|
1035
|
-
};
|
|
1036
|
-
return response;
|
|
1037
|
-
};
|
|
1038
|
-
export const de_DetectTargetedSentimentCommand = async (output, context) => {
|
|
1039
|
-
if (output.statusCode >= 300) {
|
|
1040
|
-
return de_CommandError(output, context);
|
|
1041
|
-
}
|
|
1042
|
-
const data = await parseBody(output.body, context);
|
|
1043
|
-
let contents = {};
|
|
1044
|
-
contents = de_DetectTargetedSentimentResponse(data, context);
|
|
1045
|
-
const response = {
|
|
1046
|
-
$metadata: deserializeMetadata(output),
|
|
1047
|
-
...contents,
|
|
1048
|
-
};
|
|
1049
|
-
return response;
|
|
1050
|
-
};
|
|
1051
|
-
export const de_DetectToxicContentCommand = async (output, context) => {
|
|
1052
|
-
if (output.statusCode >= 300) {
|
|
1053
|
-
return de_CommandError(output, context);
|
|
1054
|
-
}
|
|
1055
|
-
const data = await parseBody(output.body, context);
|
|
1056
|
-
let contents = {};
|
|
1057
|
-
contents = de_DetectToxicContentResponse(data, context);
|
|
1058
|
-
const response = {
|
|
1059
|
-
$metadata: deserializeMetadata(output),
|
|
1060
|
-
...contents,
|
|
1061
|
-
};
|
|
1062
|
-
return response;
|
|
1063
|
-
};
|
|
1064
|
-
export const de_ImportModelCommand = async (output, context) => {
|
|
1065
|
-
if (output.statusCode >= 300) {
|
|
1066
|
-
return de_CommandError(output, context);
|
|
1067
|
-
}
|
|
1068
|
-
const data = await parseBody(output.body, context);
|
|
1069
|
-
let contents = {};
|
|
1070
|
-
contents = _json(data);
|
|
1071
|
-
const response = {
|
|
1072
|
-
$metadata: deserializeMetadata(output),
|
|
1073
|
-
...contents,
|
|
1074
|
-
};
|
|
1075
|
-
return response;
|
|
1076
|
-
};
|
|
1077
|
-
export const de_ListDatasetsCommand = async (output, context) => {
|
|
1078
|
-
if (output.statusCode >= 300) {
|
|
1079
|
-
return de_CommandError(output, context);
|
|
1080
|
-
}
|
|
1081
|
-
const data = await parseBody(output.body, context);
|
|
1082
|
-
let contents = {};
|
|
1083
|
-
contents = de_ListDatasetsResponse(data, context);
|
|
1084
|
-
const response = {
|
|
1085
|
-
$metadata: deserializeMetadata(output),
|
|
1086
|
-
...contents,
|
|
1087
|
-
};
|
|
1088
|
-
return response;
|
|
1089
|
-
};
|
|
1090
|
-
export const de_ListDocumentClassificationJobsCommand = async (output, context) => {
|
|
1091
|
-
if (output.statusCode >= 300) {
|
|
1092
|
-
return de_CommandError(output, context);
|
|
1093
|
-
}
|
|
1094
|
-
const data = await parseBody(output.body, context);
|
|
1095
|
-
let contents = {};
|
|
1096
|
-
contents = de_ListDocumentClassificationJobsResponse(data, context);
|
|
1097
|
-
const response = {
|
|
1098
|
-
$metadata: deserializeMetadata(output),
|
|
1099
|
-
...contents,
|
|
1100
|
-
};
|
|
1101
|
-
return response;
|
|
1102
|
-
};
|
|
1103
|
-
export const de_ListDocumentClassifiersCommand = async (output, context) => {
|
|
1104
|
-
if (output.statusCode >= 300) {
|
|
1105
|
-
return de_CommandError(output, context);
|
|
1106
|
-
}
|
|
1107
|
-
const data = await parseBody(output.body, context);
|
|
1108
|
-
let contents = {};
|
|
1109
|
-
contents = de_ListDocumentClassifiersResponse(data, context);
|
|
1110
|
-
const response = {
|
|
1111
|
-
$metadata: deserializeMetadata(output),
|
|
1112
|
-
...contents,
|
|
1113
|
-
};
|
|
1114
|
-
return response;
|
|
1115
|
-
};
|
|
1116
|
-
export const de_ListDocumentClassifierSummariesCommand = async (output, context) => {
|
|
1117
|
-
if (output.statusCode >= 300) {
|
|
1118
|
-
return de_CommandError(output, context);
|
|
1119
|
-
}
|
|
1120
|
-
const data = await parseBody(output.body, context);
|
|
1121
|
-
let contents = {};
|
|
1122
|
-
contents = de_ListDocumentClassifierSummariesResponse(data, context);
|
|
1123
|
-
const response = {
|
|
1124
|
-
$metadata: deserializeMetadata(output),
|
|
1125
|
-
...contents,
|
|
1126
|
-
};
|
|
1127
|
-
return response;
|
|
1128
|
-
};
|
|
1129
|
-
export const de_ListDominantLanguageDetectionJobsCommand = async (output, context) => {
|
|
1130
|
-
if (output.statusCode >= 300) {
|
|
1131
|
-
return de_CommandError(output, context);
|
|
1132
|
-
}
|
|
1133
|
-
const data = await parseBody(output.body, context);
|
|
1134
|
-
let contents = {};
|
|
1135
|
-
contents = de_ListDominantLanguageDetectionJobsResponse(data, context);
|
|
1136
|
-
const response = {
|
|
1137
|
-
$metadata: deserializeMetadata(output),
|
|
1138
|
-
...contents,
|
|
1139
|
-
};
|
|
1140
|
-
return response;
|
|
1141
|
-
};
|
|
1142
|
-
export const de_ListEndpointsCommand = async (output, context) => {
|
|
1143
|
-
if (output.statusCode >= 300) {
|
|
1144
|
-
return de_CommandError(output, context);
|
|
1145
|
-
}
|
|
1146
|
-
const data = await parseBody(output.body, context);
|
|
1147
|
-
let contents = {};
|
|
1148
|
-
contents = de_ListEndpointsResponse(data, context);
|
|
1149
|
-
const response = {
|
|
1150
|
-
$metadata: deserializeMetadata(output),
|
|
1151
|
-
...contents,
|
|
1152
|
-
};
|
|
1153
|
-
return response;
|
|
1154
|
-
};
|
|
1155
|
-
export const de_ListEntitiesDetectionJobsCommand = async (output, context) => {
|
|
1156
|
-
if (output.statusCode >= 300) {
|
|
1157
|
-
return de_CommandError(output, context);
|
|
1158
|
-
}
|
|
1159
|
-
const data = await parseBody(output.body, context);
|
|
1160
|
-
let contents = {};
|
|
1161
|
-
contents = de_ListEntitiesDetectionJobsResponse(data, context);
|
|
1162
|
-
const response = {
|
|
1163
|
-
$metadata: deserializeMetadata(output),
|
|
1164
|
-
...contents,
|
|
1165
|
-
};
|
|
1166
|
-
return response;
|
|
1167
|
-
};
|
|
1168
|
-
export const de_ListEntityRecognizersCommand = async (output, context) => {
|
|
1169
|
-
if (output.statusCode >= 300) {
|
|
1170
|
-
return de_CommandError(output, context);
|
|
1171
|
-
}
|
|
1172
|
-
const data = await parseBody(output.body, context);
|
|
1173
|
-
let contents = {};
|
|
1174
|
-
contents = de_ListEntityRecognizersResponse(data, context);
|
|
1175
|
-
const response = {
|
|
1176
|
-
$metadata: deserializeMetadata(output),
|
|
1177
|
-
...contents,
|
|
1178
|
-
};
|
|
1179
|
-
return response;
|
|
1180
|
-
};
|
|
1181
|
-
export const de_ListEntityRecognizerSummariesCommand = async (output, context) => {
|
|
1182
|
-
if (output.statusCode >= 300) {
|
|
1183
|
-
return de_CommandError(output, context);
|
|
1184
|
-
}
|
|
1185
|
-
const data = await parseBody(output.body, context);
|
|
1186
|
-
let contents = {};
|
|
1187
|
-
contents = de_ListEntityRecognizerSummariesResponse(data, context);
|
|
1188
|
-
const response = {
|
|
1189
|
-
$metadata: deserializeMetadata(output),
|
|
1190
|
-
...contents,
|
|
1191
|
-
};
|
|
1192
|
-
return response;
|
|
1193
|
-
};
|
|
1194
|
-
export const de_ListEventsDetectionJobsCommand = async (output, context) => {
|
|
1195
|
-
if (output.statusCode >= 300) {
|
|
1196
|
-
return de_CommandError(output, context);
|
|
1197
|
-
}
|
|
1198
|
-
const data = await parseBody(output.body, context);
|
|
1199
|
-
let contents = {};
|
|
1200
|
-
contents = de_ListEventsDetectionJobsResponse(data, context);
|
|
1201
|
-
const response = {
|
|
1202
|
-
$metadata: deserializeMetadata(output),
|
|
1203
|
-
...contents,
|
|
1204
|
-
};
|
|
1205
|
-
return response;
|
|
1206
|
-
};
|
|
1207
|
-
export const de_ListFlywheelIterationHistoryCommand = async (output, context) => {
|
|
1208
|
-
if (output.statusCode >= 300) {
|
|
1209
|
-
return de_CommandError(output, context);
|
|
1210
|
-
}
|
|
1211
|
-
const data = await parseBody(output.body, context);
|
|
1212
|
-
let contents = {};
|
|
1213
|
-
contents = de_ListFlywheelIterationHistoryResponse(data, context);
|
|
1214
|
-
const response = {
|
|
1215
|
-
$metadata: deserializeMetadata(output),
|
|
1216
|
-
...contents,
|
|
1217
|
-
};
|
|
1218
|
-
return response;
|
|
1219
|
-
};
|
|
1220
|
-
export const de_ListFlywheelsCommand = async (output, context) => {
|
|
1221
|
-
if (output.statusCode >= 300) {
|
|
1222
|
-
return de_CommandError(output, context);
|
|
1223
|
-
}
|
|
1224
|
-
const data = await parseBody(output.body, context);
|
|
1225
|
-
let contents = {};
|
|
1226
|
-
contents = de_ListFlywheelsResponse(data, context);
|
|
1227
|
-
const response = {
|
|
1228
|
-
$metadata: deserializeMetadata(output),
|
|
1229
|
-
...contents,
|
|
1230
|
-
};
|
|
1231
|
-
return response;
|
|
1232
|
-
};
|
|
1233
|
-
export const de_ListKeyPhrasesDetectionJobsCommand = async (output, context) => {
|
|
1234
|
-
if (output.statusCode >= 300) {
|
|
1235
|
-
return de_CommandError(output, context);
|
|
1236
|
-
}
|
|
1237
|
-
const data = await parseBody(output.body, context);
|
|
1238
|
-
let contents = {};
|
|
1239
|
-
contents = de_ListKeyPhrasesDetectionJobsResponse(data, context);
|
|
1240
|
-
const response = {
|
|
1241
|
-
$metadata: deserializeMetadata(output),
|
|
1242
|
-
...contents,
|
|
1243
|
-
};
|
|
1244
|
-
return response;
|
|
1245
|
-
};
|
|
1246
|
-
export const de_ListPiiEntitiesDetectionJobsCommand = async (output, context) => {
|
|
1247
|
-
if (output.statusCode >= 300) {
|
|
1248
|
-
return de_CommandError(output, context);
|
|
1249
|
-
}
|
|
1250
|
-
const data = await parseBody(output.body, context);
|
|
1251
|
-
let contents = {};
|
|
1252
|
-
contents = de_ListPiiEntitiesDetectionJobsResponse(data, context);
|
|
1253
|
-
const response = {
|
|
1254
|
-
$metadata: deserializeMetadata(output),
|
|
1255
|
-
...contents,
|
|
1256
|
-
};
|
|
1257
|
-
return response;
|
|
1258
|
-
};
|
|
1259
|
-
export const de_ListSentimentDetectionJobsCommand = async (output, context) => {
|
|
1260
|
-
if (output.statusCode >= 300) {
|
|
1261
|
-
return de_CommandError(output, context);
|
|
1262
|
-
}
|
|
1263
|
-
const data = await parseBody(output.body, context);
|
|
1264
|
-
let contents = {};
|
|
1265
|
-
contents = de_ListSentimentDetectionJobsResponse(data, context);
|
|
1266
|
-
const response = {
|
|
1267
|
-
$metadata: deserializeMetadata(output),
|
|
1268
|
-
...contents,
|
|
1269
|
-
};
|
|
1270
|
-
return response;
|
|
1271
|
-
};
|
|
1272
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1273
|
-
if (output.statusCode >= 300) {
|
|
1274
|
-
return de_CommandError(output, context);
|
|
1275
|
-
}
|
|
1276
|
-
const data = await parseBody(output.body, context);
|
|
1277
|
-
let contents = {};
|
|
1278
|
-
contents = _json(data);
|
|
1279
|
-
const response = {
|
|
1280
|
-
$metadata: deserializeMetadata(output),
|
|
1281
|
-
...contents,
|
|
1282
|
-
};
|
|
1283
|
-
return response;
|
|
1284
|
-
};
|
|
1285
|
-
export const de_ListTargetedSentimentDetectionJobsCommand = async (output, context) => {
|
|
1286
|
-
if (output.statusCode >= 300) {
|
|
1287
|
-
return de_CommandError(output, context);
|
|
1288
|
-
}
|
|
1289
|
-
const data = await parseBody(output.body, context);
|
|
1290
|
-
let contents = {};
|
|
1291
|
-
contents = de_ListTargetedSentimentDetectionJobsResponse(data, context);
|
|
1292
|
-
const response = {
|
|
1293
|
-
$metadata: deserializeMetadata(output),
|
|
1294
|
-
...contents,
|
|
1295
|
-
};
|
|
1296
|
-
return response;
|
|
1297
|
-
};
|
|
1298
|
-
export const de_ListTopicsDetectionJobsCommand = async (output, context) => {
|
|
1299
|
-
if (output.statusCode >= 300) {
|
|
1300
|
-
return de_CommandError(output, context);
|
|
1301
|
-
}
|
|
1302
|
-
const data = await parseBody(output.body, context);
|
|
1303
|
-
let contents = {};
|
|
1304
|
-
contents = de_ListTopicsDetectionJobsResponse(data, context);
|
|
1305
|
-
const response = {
|
|
1306
|
-
$metadata: deserializeMetadata(output),
|
|
1307
|
-
...contents,
|
|
1308
|
-
};
|
|
1309
|
-
return response;
|
|
1310
|
-
};
|
|
1311
|
-
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
1312
|
-
if (output.statusCode >= 300) {
|
|
1313
|
-
return de_CommandError(output, context);
|
|
1314
|
-
}
|
|
1315
|
-
const data = await parseBody(output.body, context);
|
|
1316
|
-
let contents = {};
|
|
1317
|
-
contents = _json(data);
|
|
1318
|
-
const response = {
|
|
1319
|
-
$metadata: deserializeMetadata(output),
|
|
1320
|
-
...contents,
|
|
1321
|
-
};
|
|
1322
|
-
return response;
|
|
1323
|
-
};
|
|
1324
|
-
export const de_StartDocumentClassificationJobCommand = async (output, context) => {
|
|
1325
|
-
if (output.statusCode >= 300) {
|
|
1326
|
-
return de_CommandError(output, context);
|
|
1327
|
-
}
|
|
1328
|
-
const data = await parseBody(output.body, context);
|
|
1329
|
-
let contents = {};
|
|
1330
|
-
contents = _json(data);
|
|
1331
|
-
const response = {
|
|
1332
|
-
$metadata: deserializeMetadata(output),
|
|
1333
|
-
...contents,
|
|
1334
|
-
};
|
|
1335
|
-
return response;
|
|
1336
|
-
};
|
|
1337
|
-
export const de_StartDominantLanguageDetectionJobCommand = async (output, context) => {
|
|
1338
|
-
if (output.statusCode >= 300) {
|
|
1339
|
-
return de_CommandError(output, context);
|
|
1340
|
-
}
|
|
1341
|
-
const data = await parseBody(output.body, context);
|
|
1342
|
-
let contents = {};
|
|
1343
|
-
contents = _json(data);
|
|
1344
|
-
const response = {
|
|
1345
|
-
$metadata: deserializeMetadata(output),
|
|
1346
|
-
...contents,
|
|
1347
|
-
};
|
|
1348
|
-
return response;
|
|
1349
|
-
};
|
|
1350
|
-
export const de_StartEntitiesDetectionJobCommand = async (output, context) => {
|
|
1351
|
-
if (output.statusCode >= 300) {
|
|
1352
|
-
return de_CommandError(output, context);
|
|
1353
|
-
}
|
|
1354
|
-
const data = await parseBody(output.body, context);
|
|
1355
|
-
let contents = {};
|
|
1356
|
-
contents = _json(data);
|
|
1357
|
-
const response = {
|
|
1358
|
-
$metadata: deserializeMetadata(output),
|
|
1359
|
-
...contents,
|
|
1360
|
-
};
|
|
1361
|
-
return response;
|
|
1362
|
-
};
|
|
1363
|
-
export const de_StartEventsDetectionJobCommand = async (output, context) => {
|
|
1364
|
-
if (output.statusCode >= 300) {
|
|
1365
|
-
return de_CommandError(output, context);
|
|
1366
|
-
}
|
|
1367
|
-
const data = await parseBody(output.body, context);
|
|
1368
|
-
let contents = {};
|
|
1369
|
-
contents = _json(data);
|
|
1370
|
-
const response = {
|
|
1371
|
-
$metadata: deserializeMetadata(output),
|
|
1372
|
-
...contents,
|
|
1373
|
-
};
|
|
1374
|
-
return response;
|
|
1375
|
-
};
|
|
1376
|
-
export const de_StartFlywheelIterationCommand = async (output, context) => {
|
|
1377
|
-
if (output.statusCode >= 300) {
|
|
1378
|
-
return de_CommandError(output, context);
|
|
1379
|
-
}
|
|
1380
|
-
const data = await parseBody(output.body, context);
|
|
1381
|
-
let contents = {};
|
|
1382
|
-
contents = _json(data);
|
|
1383
|
-
const response = {
|
|
1384
|
-
$metadata: deserializeMetadata(output),
|
|
1385
|
-
...contents,
|
|
1386
|
-
};
|
|
1387
|
-
return response;
|
|
1388
|
-
};
|
|
1389
|
-
export const de_StartKeyPhrasesDetectionJobCommand = async (output, context) => {
|
|
1390
|
-
if (output.statusCode >= 300) {
|
|
1391
|
-
return de_CommandError(output, context);
|
|
1392
|
-
}
|
|
1393
|
-
const data = await parseBody(output.body, context);
|
|
1394
|
-
let contents = {};
|
|
1395
|
-
contents = _json(data);
|
|
1396
|
-
const response = {
|
|
1397
|
-
$metadata: deserializeMetadata(output),
|
|
1398
|
-
...contents,
|
|
1399
|
-
};
|
|
1400
|
-
return response;
|
|
1401
|
-
};
|
|
1402
|
-
export const de_StartPiiEntitiesDetectionJobCommand = async (output, context) => {
|
|
1403
|
-
if (output.statusCode >= 300) {
|
|
1404
|
-
return de_CommandError(output, context);
|
|
1405
|
-
}
|
|
1406
|
-
const data = await parseBody(output.body, context);
|
|
1407
|
-
let contents = {};
|
|
1408
|
-
contents = _json(data);
|
|
1409
|
-
const response = {
|
|
1410
|
-
$metadata: deserializeMetadata(output),
|
|
1411
|
-
...contents,
|
|
1412
|
-
};
|
|
1413
|
-
return response;
|
|
1414
|
-
};
|
|
1415
|
-
export const de_StartSentimentDetectionJobCommand = async (output, context) => {
|
|
1416
|
-
if (output.statusCode >= 300) {
|
|
1417
|
-
return de_CommandError(output, context);
|
|
1418
|
-
}
|
|
1419
|
-
const data = await parseBody(output.body, context);
|
|
1420
|
-
let contents = {};
|
|
1421
|
-
contents = _json(data);
|
|
1422
|
-
const response = {
|
|
1423
|
-
$metadata: deserializeMetadata(output),
|
|
1424
|
-
...contents,
|
|
1425
|
-
};
|
|
1426
|
-
return response;
|
|
1427
|
-
};
|
|
1428
|
-
export const de_StartTargetedSentimentDetectionJobCommand = async (output, context) => {
|
|
1429
|
-
if (output.statusCode >= 300) {
|
|
1430
|
-
return de_CommandError(output, context);
|
|
1431
|
-
}
|
|
1432
|
-
const data = await parseBody(output.body, context);
|
|
1433
|
-
let contents = {};
|
|
1434
|
-
contents = _json(data);
|
|
1435
|
-
const response = {
|
|
1436
|
-
$metadata: deserializeMetadata(output),
|
|
1437
|
-
...contents,
|
|
1438
|
-
};
|
|
1439
|
-
return response;
|
|
1440
|
-
};
|
|
1441
|
-
export const de_StartTopicsDetectionJobCommand = async (output, context) => {
|
|
1442
|
-
if (output.statusCode >= 300) {
|
|
1443
|
-
return de_CommandError(output, context);
|
|
1444
|
-
}
|
|
1445
|
-
const data = await parseBody(output.body, context);
|
|
1446
|
-
let contents = {};
|
|
1447
|
-
contents = _json(data);
|
|
1448
|
-
const response = {
|
|
1449
|
-
$metadata: deserializeMetadata(output),
|
|
1450
|
-
...contents,
|
|
1451
|
-
};
|
|
1452
|
-
return response;
|
|
1453
|
-
};
|
|
1454
|
-
export const de_StopDominantLanguageDetectionJobCommand = async (output, context) => {
|
|
1455
|
-
if (output.statusCode >= 300) {
|
|
1456
|
-
return de_CommandError(output, context);
|
|
1457
|
-
}
|
|
1458
|
-
const data = await parseBody(output.body, context);
|
|
1459
|
-
let contents = {};
|
|
1460
|
-
contents = _json(data);
|
|
1461
|
-
const response = {
|
|
1462
|
-
$metadata: deserializeMetadata(output),
|
|
1463
|
-
...contents,
|
|
1464
|
-
};
|
|
1465
|
-
return response;
|
|
1466
|
-
};
|
|
1467
|
-
export const de_StopEntitiesDetectionJobCommand = async (output, context) => {
|
|
1468
|
-
if (output.statusCode >= 300) {
|
|
1469
|
-
return de_CommandError(output, context);
|
|
1470
|
-
}
|
|
1471
|
-
const data = await parseBody(output.body, context);
|
|
1472
|
-
let contents = {};
|
|
1473
|
-
contents = _json(data);
|
|
1474
|
-
const response = {
|
|
1475
|
-
$metadata: deserializeMetadata(output),
|
|
1476
|
-
...contents,
|
|
1477
|
-
};
|
|
1478
|
-
return response;
|
|
1479
|
-
};
|
|
1480
|
-
export const de_StopEventsDetectionJobCommand = async (output, context) => {
|
|
1481
|
-
if (output.statusCode >= 300) {
|
|
1482
|
-
return de_CommandError(output, context);
|
|
1483
|
-
}
|
|
1484
|
-
const data = await parseBody(output.body, context);
|
|
1485
|
-
let contents = {};
|
|
1486
|
-
contents = _json(data);
|
|
1487
|
-
const response = {
|
|
1488
|
-
$metadata: deserializeMetadata(output),
|
|
1489
|
-
...contents,
|
|
1490
|
-
};
|
|
1491
|
-
return response;
|
|
1492
|
-
};
|
|
1493
|
-
export const de_StopKeyPhrasesDetectionJobCommand = async (output, context) => {
|
|
1494
|
-
if (output.statusCode >= 300) {
|
|
1495
|
-
return de_CommandError(output, context);
|
|
1496
|
-
}
|
|
1497
|
-
const data = await parseBody(output.body, context);
|
|
1498
|
-
let contents = {};
|
|
1499
|
-
contents = _json(data);
|
|
1500
|
-
const response = {
|
|
1501
|
-
$metadata: deserializeMetadata(output),
|
|
1502
|
-
...contents,
|
|
1503
|
-
};
|
|
1504
|
-
return response;
|
|
1505
|
-
};
|
|
1506
|
-
export const de_StopPiiEntitiesDetectionJobCommand = async (output, context) => {
|
|
1507
|
-
if (output.statusCode >= 300) {
|
|
1508
|
-
return de_CommandError(output, context);
|
|
1509
|
-
}
|
|
1510
|
-
const data = await parseBody(output.body, context);
|
|
1511
|
-
let contents = {};
|
|
1512
|
-
contents = _json(data);
|
|
1513
|
-
const response = {
|
|
1514
|
-
$metadata: deserializeMetadata(output),
|
|
1515
|
-
...contents,
|
|
1516
|
-
};
|
|
1517
|
-
return response;
|
|
1518
|
-
};
|
|
1519
|
-
export const de_StopSentimentDetectionJobCommand = async (output, context) => {
|
|
1520
|
-
if (output.statusCode >= 300) {
|
|
1521
|
-
return de_CommandError(output, context);
|
|
1522
|
-
}
|
|
1523
|
-
const data = await parseBody(output.body, context);
|
|
1524
|
-
let contents = {};
|
|
1525
|
-
contents = _json(data);
|
|
1526
|
-
const response = {
|
|
1527
|
-
$metadata: deserializeMetadata(output),
|
|
1528
|
-
...contents,
|
|
1529
|
-
};
|
|
1530
|
-
return response;
|
|
1531
|
-
};
|
|
1532
|
-
export const de_StopTargetedSentimentDetectionJobCommand = async (output, context) => {
|
|
1533
|
-
if (output.statusCode >= 300) {
|
|
1534
|
-
return de_CommandError(output, context);
|
|
1535
|
-
}
|
|
1536
|
-
const data = await parseBody(output.body, context);
|
|
1537
|
-
let contents = {};
|
|
1538
|
-
contents = _json(data);
|
|
1539
|
-
const response = {
|
|
1540
|
-
$metadata: deserializeMetadata(output),
|
|
1541
|
-
...contents,
|
|
1542
|
-
};
|
|
1543
|
-
return response;
|
|
1544
|
-
};
|
|
1545
|
-
export const de_StopTrainingDocumentClassifierCommand = async (output, context) => {
|
|
1546
|
-
if (output.statusCode >= 300) {
|
|
1547
|
-
return de_CommandError(output, context);
|
|
1548
|
-
}
|
|
1549
|
-
const data = await parseBody(output.body, context);
|
|
1550
|
-
let contents = {};
|
|
1551
|
-
contents = _json(data);
|
|
1552
|
-
const response = {
|
|
1553
|
-
$metadata: deserializeMetadata(output),
|
|
1554
|
-
...contents,
|
|
1555
|
-
};
|
|
1556
|
-
return response;
|
|
1557
|
-
};
|
|
1558
|
-
export const de_StopTrainingEntityRecognizerCommand = async (output, context) => {
|
|
1559
|
-
if (output.statusCode >= 300) {
|
|
1560
|
-
return de_CommandError(output, context);
|
|
1561
|
-
}
|
|
1562
|
-
const data = await parseBody(output.body, context);
|
|
1563
|
-
let contents = {};
|
|
1564
|
-
contents = _json(data);
|
|
1565
|
-
const response = {
|
|
1566
|
-
$metadata: deserializeMetadata(output),
|
|
1567
|
-
...contents,
|
|
1568
|
-
};
|
|
1569
|
-
return response;
|
|
1570
|
-
};
|
|
1571
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
1572
|
-
if (output.statusCode >= 300) {
|
|
1573
|
-
return de_CommandError(output, context);
|
|
1574
|
-
}
|
|
1575
|
-
const data = await parseBody(output.body, context);
|
|
1576
|
-
let contents = {};
|
|
1577
|
-
contents = _json(data);
|
|
1578
|
-
const response = {
|
|
1579
|
-
$metadata: deserializeMetadata(output),
|
|
1580
|
-
...contents,
|
|
1581
|
-
};
|
|
1582
|
-
return response;
|
|
1583
|
-
};
|
|
1584
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
1585
|
-
if (output.statusCode >= 300) {
|
|
1586
|
-
return de_CommandError(output, context);
|
|
1587
|
-
}
|
|
1588
|
-
const data = await parseBody(output.body, context);
|
|
1589
|
-
let contents = {};
|
|
1590
|
-
contents = _json(data);
|
|
1591
|
-
const response = {
|
|
1592
|
-
$metadata: deserializeMetadata(output),
|
|
1593
|
-
...contents,
|
|
1594
|
-
};
|
|
1595
|
-
return response;
|
|
1596
|
-
};
|
|
1597
|
-
export const de_UpdateEndpointCommand = async (output, context) => {
|
|
1598
|
-
if (output.statusCode >= 300) {
|
|
1599
|
-
return de_CommandError(output, context);
|
|
1600
|
-
}
|
|
1601
|
-
const data = await parseBody(output.body, context);
|
|
1602
|
-
let contents = {};
|
|
1603
|
-
contents = _json(data);
|
|
1604
|
-
const response = {
|
|
1605
|
-
$metadata: deserializeMetadata(output),
|
|
1606
|
-
...contents,
|
|
1607
|
-
};
|
|
1608
|
-
return response;
|
|
1609
|
-
};
|
|
1610
|
-
export const de_UpdateFlywheelCommand = async (output, context) => {
|
|
1611
|
-
if (output.statusCode >= 300) {
|
|
1612
|
-
return de_CommandError(output, context);
|
|
1613
|
-
}
|
|
1614
|
-
const data = await parseBody(output.body, context);
|
|
1615
|
-
let contents = {};
|
|
1616
|
-
contents = de_UpdateFlywheelResponse(data, context);
|
|
1617
|
-
const response = {
|
|
1618
|
-
$metadata: deserializeMetadata(output),
|
|
1619
|
-
...contents,
|
|
1620
|
-
};
|
|
1621
|
-
return response;
|
|
1622
|
-
};
|
|
1623
|
-
const de_CommandError = async (output, context) => {
|
|
1624
|
-
const parsedOutput = {
|
|
1625
|
-
...output,
|
|
1626
|
-
body: await parseErrorBody(output.body, context),
|
|
1627
|
-
};
|
|
1628
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1629
|
-
switch (errorCode) {
|
|
1630
|
-
case "BatchSizeLimitExceededException":
|
|
1631
|
-
case "com.amazonaws.comprehend#BatchSizeLimitExceededException":
|
|
1632
|
-
throw await de_BatchSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1633
|
-
case "InternalServerException":
|
|
1634
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
1635
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1636
|
-
case "InvalidRequestException":
|
|
1637
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1638
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "TextSizeLimitExceededException":
|
|
1640
|
-
case "com.amazonaws.comprehend#TextSizeLimitExceededException":
|
|
1641
|
-
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1642
|
-
case "UnsupportedLanguageException":
|
|
1643
|
-
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
1644
|
-
throw await de_UnsupportedLanguageExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "ResourceUnavailableException":
|
|
1646
|
-
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
1647
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
1648
|
-
case "ResourceInUseException":
|
|
1649
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
1650
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1651
|
-
case "ResourceLimitExceededException":
|
|
1652
|
-
case "com.amazonaws.comprehend#ResourceLimitExceededException":
|
|
1653
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1654
|
-
case "ResourceNotFoundException":
|
|
1655
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
1656
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1657
|
-
case "TooManyRequestsException":
|
|
1658
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
1659
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1660
|
-
case "TooManyTagsException":
|
|
1661
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
1662
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "KmsKeyValidationException":
|
|
1664
|
-
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
1665
|
-
throw await de_KmsKeyValidationExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "JobNotFoundException":
|
|
1667
|
-
case "com.amazonaws.comprehend#JobNotFoundException":
|
|
1668
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
1669
|
-
case "InvalidFilterException":
|
|
1670
|
-
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
1671
|
-
throw await de_InvalidFilterExceptionRes(parsedOutput, context);
|
|
1672
|
-
case "ConcurrentModificationException":
|
|
1673
|
-
case "com.amazonaws.comprehend#ConcurrentModificationException":
|
|
1674
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1675
|
-
case "TooManyTagKeysException":
|
|
1676
|
-
case "com.amazonaws.comprehend#TooManyTagKeysException":
|
|
1677
|
-
throw await de_TooManyTagKeysExceptionRes(parsedOutput, context);
|
|
1678
|
-
default:
|
|
1679
|
-
const parsedBody = parsedOutput.body;
|
|
1680
|
-
return throwDefaultError({
|
|
1681
|
-
output,
|
|
1682
|
-
parsedBody,
|
|
1683
|
-
errorCode,
|
|
1684
|
-
});
|
|
1685
|
-
}
|
|
1686
|
-
};
|
|
1687
|
-
const de_BatchSizeLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1688
|
-
const body = parsedOutput.body;
|
|
1689
|
-
const deserialized = _json(body);
|
|
1690
|
-
const exception = new BatchSizeLimitExceededException({
|
|
1691
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1692
|
-
...deserialized,
|
|
1693
|
-
});
|
|
1694
|
-
return __decorateServiceException(exception, body);
|
|
1695
|
-
};
|
|
1696
|
-
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
1697
|
-
const body = parsedOutput.body;
|
|
1698
|
-
const deserialized = _json(body);
|
|
1699
|
-
const exception = new ConcurrentModificationException({
|
|
1700
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1701
|
-
...deserialized,
|
|
1702
|
-
});
|
|
1703
|
-
return __decorateServiceException(exception, body);
|
|
1704
|
-
};
|
|
1705
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1706
|
-
const body = parsedOutput.body;
|
|
1707
|
-
const deserialized = _json(body);
|
|
1708
|
-
const exception = new InternalServerException({
|
|
1709
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1710
|
-
...deserialized,
|
|
1711
|
-
});
|
|
1712
|
-
return __decorateServiceException(exception, body);
|
|
1713
|
-
};
|
|
1714
|
-
const de_InvalidFilterExceptionRes = async (parsedOutput, context) => {
|
|
1715
|
-
const body = parsedOutput.body;
|
|
1716
|
-
const deserialized = _json(body);
|
|
1717
|
-
const exception = new InvalidFilterException({
|
|
1718
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1719
|
-
...deserialized,
|
|
1720
|
-
});
|
|
1721
|
-
return __decorateServiceException(exception, body);
|
|
1722
|
-
};
|
|
1723
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1724
|
-
const body = parsedOutput.body;
|
|
1725
|
-
const deserialized = _json(body);
|
|
1726
|
-
const exception = new InvalidRequestException({
|
|
1727
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1728
|
-
...deserialized,
|
|
1729
|
-
});
|
|
1730
|
-
return __decorateServiceException(exception, body);
|
|
1731
|
-
};
|
|
1732
|
-
const de_JobNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1733
|
-
const body = parsedOutput.body;
|
|
1734
|
-
const deserialized = _json(body);
|
|
1735
|
-
const exception = new JobNotFoundException({
|
|
1736
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1737
|
-
...deserialized,
|
|
1738
|
-
});
|
|
1739
|
-
return __decorateServiceException(exception, body);
|
|
1740
|
-
};
|
|
1741
|
-
const de_KmsKeyValidationExceptionRes = async (parsedOutput, context) => {
|
|
1742
|
-
const body = parsedOutput.body;
|
|
1743
|
-
const deserialized = _json(body);
|
|
1744
|
-
const exception = new KmsKeyValidationException({
|
|
1745
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1746
|
-
...deserialized,
|
|
1747
|
-
});
|
|
1748
|
-
return __decorateServiceException(exception, body);
|
|
1749
|
-
};
|
|
1750
|
-
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
1751
|
-
const body = parsedOutput.body;
|
|
1752
|
-
const deserialized = _json(body);
|
|
1753
|
-
const exception = new ResourceInUseException({
|
|
1754
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1755
|
-
...deserialized,
|
|
1756
|
-
});
|
|
1757
|
-
return __decorateServiceException(exception, body);
|
|
1758
|
-
};
|
|
1759
|
-
const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1760
|
-
const body = parsedOutput.body;
|
|
1761
|
-
const deserialized = _json(body);
|
|
1762
|
-
const exception = new ResourceLimitExceededException({
|
|
1763
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1764
|
-
...deserialized,
|
|
1765
|
-
});
|
|
1766
|
-
return __decorateServiceException(exception, body);
|
|
1767
|
-
};
|
|
1768
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1769
|
-
const body = parsedOutput.body;
|
|
1770
|
-
const deserialized = _json(body);
|
|
1771
|
-
const exception = new ResourceNotFoundException({
|
|
1772
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1773
|
-
...deserialized,
|
|
1774
|
-
});
|
|
1775
|
-
return __decorateServiceException(exception, body);
|
|
1776
|
-
};
|
|
1777
|
-
const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1778
|
-
const body = parsedOutput.body;
|
|
1779
|
-
const deserialized = _json(body);
|
|
1780
|
-
const exception = new ResourceUnavailableException({
|
|
1781
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1782
|
-
...deserialized,
|
|
1783
|
-
});
|
|
1784
|
-
return __decorateServiceException(exception, body);
|
|
1785
|
-
};
|
|
1786
|
-
const de_TextSizeLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1787
|
-
const body = parsedOutput.body;
|
|
1788
|
-
const deserialized = _json(body);
|
|
1789
|
-
const exception = new TextSizeLimitExceededException({
|
|
1790
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1791
|
-
...deserialized,
|
|
1792
|
-
});
|
|
1793
|
-
return __decorateServiceException(exception, body);
|
|
1794
|
-
};
|
|
1795
|
-
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1796
|
-
const body = parsedOutput.body;
|
|
1797
|
-
const deserialized = _json(body);
|
|
1798
|
-
const exception = new TooManyRequestsException({
|
|
1799
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1800
|
-
...deserialized,
|
|
1801
|
-
});
|
|
1802
|
-
return __decorateServiceException(exception, body);
|
|
1803
|
-
};
|
|
1804
|
-
const de_TooManyTagKeysExceptionRes = async (parsedOutput, context) => {
|
|
1805
|
-
const body = parsedOutput.body;
|
|
1806
|
-
const deserialized = _json(body);
|
|
1807
|
-
const exception = new TooManyTagKeysException({
|
|
1808
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1809
|
-
...deserialized,
|
|
1810
|
-
});
|
|
1811
|
-
return __decorateServiceException(exception, body);
|
|
1812
|
-
};
|
|
1813
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1814
|
-
const body = parsedOutput.body;
|
|
1815
|
-
const deserialized = _json(body);
|
|
1816
|
-
const exception = new TooManyTagsException({
|
|
1817
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1818
|
-
...deserialized,
|
|
1819
|
-
});
|
|
1820
|
-
return __decorateServiceException(exception, body);
|
|
1821
|
-
};
|
|
1822
|
-
const de_UnsupportedLanguageExceptionRes = async (parsedOutput, context) => {
|
|
1823
|
-
const body = parsedOutput.body;
|
|
1824
|
-
const deserialized = _json(body);
|
|
1825
|
-
const exception = new UnsupportedLanguageException({
|
|
1826
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1827
|
-
...deserialized,
|
|
1828
|
-
});
|
|
1829
|
-
return __decorateServiceException(exception, body);
|
|
1830
|
-
};
|
|
1831
|
-
const se_ClassifyDocumentRequest = (input, context) => {
|
|
1832
|
-
return take(input, {
|
|
1833
|
-
Bytes: context.base64Encoder,
|
|
1834
|
-
DocumentReaderConfig: _json,
|
|
1835
|
-
EndpointArn: [],
|
|
1836
|
-
Text: [],
|
|
1837
|
-
});
|
|
1838
|
-
};
|
|
1839
|
-
const se_CreateDatasetRequest = (input, context) => {
|
|
1840
|
-
return take(input, {
|
|
1841
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1842
|
-
DatasetName: [],
|
|
1843
|
-
DatasetType: [],
|
|
1844
|
-
Description: [],
|
|
1845
|
-
FlywheelArn: [],
|
|
1846
|
-
InputDataConfig: _json,
|
|
1847
|
-
Tags: _json,
|
|
1848
|
-
});
|
|
1849
|
-
};
|
|
1850
|
-
const se_CreateDocumentClassifierRequest = (input, context) => {
|
|
1851
|
-
return take(input, {
|
|
1852
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1853
|
-
DataAccessRoleArn: [],
|
|
1854
|
-
DocumentClassifierName: [],
|
|
1855
|
-
InputDataConfig: _json,
|
|
1856
|
-
LanguageCode: [],
|
|
1857
|
-
Mode: [],
|
|
1858
|
-
ModelKmsKeyId: [],
|
|
1859
|
-
ModelPolicy: [],
|
|
1860
|
-
OutputDataConfig: _json,
|
|
1861
|
-
Tags: _json,
|
|
1862
|
-
VersionName: [],
|
|
1863
|
-
VolumeKmsKeyId: [],
|
|
1864
|
-
VpcConfig: _json,
|
|
1865
|
-
});
|
|
1866
|
-
};
|
|
1867
|
-
const se_CreateEndpointRequest = (input, context) => {
|
|
1868
|
-
return take(input, {
|
|
1869
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1870
|
-
DataAccessRoleArn: [],
|
|
1871
|
-
DesiredInferenceUnits: [],
|
|
1872
|
-
EndpointName: [],
|
|
1873
|
-
FlywheelArn: [],
|
|
1874
|
-
ModelArn: [],
|
|
1875
|
-
Tags: _json,
|
|
1876
|
-
});
|
|
1877
|
-
};
|
|
1878
|
-
const se_CreateEntityRecognizerRequest = (input, context) => {
|
|
1879
|
-
return take(input, {
|
|
1880
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1881
|
-
DataAccessRoleArn: [],
|
|
1882
|
-
InputDataConfig: _json,
|
|
1883
|
-
LanguageCode: [],
|
|
1884
|
-
ModelKmsKeyId: [],
|
|
1885
|
-
ModelPolicy: [],
|
|
1886
|
-
RecognizerName: [],
|
|
1887
|
-
Tags: _json,
|
|
1888
|
-
VersionName: [],
|
|
1889
|
-
VolumeKmsKeyId: [],
|
|
1890
|
-
VpcConfig: _json,
|
|
1891
|
-
});
|
|
1892
|
-
};
|
|
1893
|
-
const se_CreateFlywheelRequest = (input, context) => {
|
|
1894
|
-
return take(input, {
|
|
1895
|
-
ActiveModelArn: [],
|
|
1896
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1897
|
-
DataAccessRoleArn: [],
|
|
1898
|
-
DataLakeS3Uri: [],
|
|
1899
|
-
DataSecurityConfig: _json,
|
|
1900
|
-
FlywheelName: [],
|
|
1901
|
-
ModelType: [],
|
|
1902
|
-
Tags: _json,
|
|
1903
|
-
TaskConfig: _json,
|
|
1904
|
-
});
|
|
1905
|
-
};
|
|
1906
|
-
const se_DatasetFilter = (input, context) => {
|
|
1907
|
-
return take(input, {
|
|
1908
|
-
CreationTimeAfter: (_) => _.getTime() / 1_000,
|
|
1909
|
-
CreationTimeBefore: (_) => _.getTime() / 1_000,
|
|
1910
|
-
DatasetType: [],
|
|
1911
|
-
Status: [],
|
|
1912
|
-
});
|
|
1913
|
-
};
|
|
1914
|
-
const se_DetectEntitiesRequest = (input, context) => {
|
|
1915
|
-
return take(input, {
|
|
1916
|
-
Bytes: context.base64Encoder,
|
|
1917
|
-
DocumentReaderConfig: _json,
|
|
1918
|
-
EndpointArn: [],
|
|
1919
|
-
LanguageCode: [],
|
|
1920
|
-
Text: [],
|
|
1921
|
-
});
|
|
1922
|
-
};
|
|
1923
|
-
const se_DocumentClassificationJobFilter = (input, context) => {
|
|
1924
|
-
return take(input, {
|
|
1925
|
-
JobName: [],
|
|
1926
|
-
JobStatus: [],
|
|
1927
|
-
SubmitTimeAfter: (_) => _.getTime() / 1_000,
|
|
1928
|
-
SubmitTimeBefore: (_) => _.getTime() / 1_000,
|
|
1929
|
-
});
|
|
1930
|
-
};
|
|
1931
|
-
const se_DocumentClassifierFilter = (input, context) => {
|
|
1932
|
-
return take(input, {
|
|
1933
|
-
DocumentClassifierName: [],
|
|
1934
|
-
Status: [],
|
|
1935
|
-
SubmitTimeAfter: (_) => _.getTime() / 1_000,
|
|
1936
|
-
SubmitTimeBefore: (_) => _.getTime() / 1_000,
|
|
1937
|
-
});
|
|
1938
|
-
};
|
|
1939
|
-
const se_DominantLanguageDetectionJobFilter = (input, context) => {
|
|
1940
|
-
return take(input, {
|
|
1941
|
-
JobName: [],
|
|
1942
|
-
JobStatus: [],
|
|
1943
|
-
SubmitTimeAfter: (_) => _.getTime() / 1_000,
|
|
1944
|
-
SubmitTimeBefore: (_) => _.getTime() / 1_000,
|
|
1945
|
-
});
|
|
1946
|
-
};
|
|
1947
|
-
const se_EndpointFilter = (input, context) => {
|
|
1948
|
-
return take(input, {
|
|
1949
|
-
CreationTimeAfter: (_) => _.getTime() / 1_000,
|
|
1950
|
-
CreationTimeBefore: (_) => _.getTime() / 1_000,
|
|
1951
|
-
ModelArn: [],
|
|
1952
|
-
Status: [],
|
|
1953
|
-
});
|
|
1954
|
-
};
|
|
1955
|
-
const se_EntitiesDetectionJobFilter = (input, context) => {
|
|
1956
|
-
return take(input, {
|
|
1957
|
-
JobName: [],
|
|
1958
|
-
JobStatus: [],
|
|
1959
|
-
SubmitTimeAfter: (_) => _.getTime() / 1_000,
|
|
1960
|
-
SubmitTimeBefore: (_) => _.getTime() / 1_000,
|
|
1961
|
-
});
|
|
1962
|
-
};
|
|
1963
|
-
const se_EntityRecognizerFilter = (input, context) => {
|
|
1964
|
-
return take(input, {
|
|
1965
|
-
RecognizerName: [],
|
|
1966
|
-
Status: [],
|
|
1967
|
-
SubmitTimeAfter: (_) => _.getTime() / 1_000,
|
|
1968
|
-
SubmitTimeBefore: (_) => _.getTime() / 1_000,
|
|
1969
|
-
});
|
|
1970
|
-
};
|
|
1971
|
-
const se_EventsDetectionJobFilter = (input, context) => {
|
|
1972
|
-
return take(input, {
|
|
1973
|
-
JobName: [],
|
|
1974
|
-
JobStatus: [],
|
|
1975
|
-
SubmitTimeAfter: (_) => _.getTime() / 1_000,
|
|
1976
|
-
SubmitTimeBefore: (_) => _.getTime() / 1_000,
|
|
1977
|
-
});
|
|
1978
|
-
};
|
|
1979
|
-
const se_FlywheelFilter = (input, context) => {
|
|
1980
|
-
return take(input, {
|
|
1981
|
-
CreationTimeAfter: (_) => _.getTime() / 1_000,
|
|
1982
|
-
CreationTimeBefore: (_) => _.getTime() / 1_000,
|
|
1983
|
-
Status: [],
|
|
1984
|
-
});
|
|
1985
|
-
};
|
|
1986
|
-
const se_FlywheelIterationFilter = (input, context) => {
|
|
1987
|
-
return take(input, {
|
|
1988
|
-
CreationTimeAfter: (_) => _.getTime() / 1_000,
|
|
1989
|
-
CreationTimeBefore: (_) => _.getTime() / 1_000,
|
|
1990
|
-
});
|
|
1991
|
-
};
|
|
1992
|
-
const se_KeyPhrasesDetectionJobFilter = (input, context) => {
|
|
1993
|
-
return take(input, {
|
|
1994
|
-
JobName: [],
|
|
1995
|
-
JobStatus: [],
|
|
1996
|
-
SubmitTimeAfter: (_) => _.getTime() / 1_000,
|
|
1997
|
-
SubmitTimeBefore: (_) => _.getTime() / 1_000,
|
|
1998
|
-
});
|
|
1999
|
-
};
|
|
2000
|
-
const se_ListDatasetsRequest = (input, context) => {
|
|
2001
|
-
return take(input, {
|
|
2002
|
-
Filter: (_) => se_DatasetFilter(_, context),
|
|
2003
|
-
FlywheelArn: [],
|
|
2004
|
-
MaxResults: [],
|
|
2005
|
-
NextToken: [],
|
|
2006
|
-
});
|
|
2007
|
-
};
|
|
2008
|
-
const se_ListDocumentClassificationJobsRequest = (input, context) => {
|
|
2009
|
-
return take(input, {
|
|
2010
|
-
Filter: (_) => se_DocumentClassificationJobFilter(_, context),
|
|
2011
|
-
MaxResults: [],
|
|
2012
|
-
NextToken: [],
|
|
2013
|
-
});
|
|
2014
|
-
};
|
|
2015
|
-
const se_ListDocumentClassifiersRequest = (input, context) => {
|
|
2016
|
-
return take(input, {
|
|
2017
|
-
Filter: (_) => se_DocumentClassifierFilter(_, context),
|
|
2018
|
-
MaxResults: [],
|
|
2019
|
-
NextToken: [],
|
|
2020
|
-
});
|
|
2021
|
-
};
|
|
2022
|
-
const se_ListDominantLanguageDetectionJobsRequest = (input, context) => {
|
|
2023
|
-
return take(input, {
|
|
2024
|
-
Filter: (_) => se_DominantLanguageDetectionJobFilter(_, context),
|
|
2025
|
-
MaxResults: [],
|
|
2026
|
-
NextToken: [],
|
|
2027
|
-
});
|
|
2028
|
-
};
|
|
2029
|
-
const se_ListEndpointsRequest = (input, context) => {
|
|
2030
|
-
return take(input, {
|
|
2031
|
-
Filter: (_) => se_EndpointFilter(_, context),
|
|
2032
|
-
MaxResults: [],
|
|
2033
|
-
NextToken: [],
|
|
2034
|
-
});
|
|
2035
|
-
};
|
|
2036
|
-
const se_ListEntitiesDetectionJobsRequest = (input, context) => {
|
|
2037
|
-
return take(input, {
|
|
2038
|
-
Filter: (_) => se_EntitiesDetectionJobFilter(_, context),
|
|
2039
|
-
MaxResults: [],
|
|
2040
|
-
NextToken: [],
|
|
2041
|
-
});
|
|
2042
|
-
};
|
|
2043
|
-
const se_ListEntityRecognizersRequest = (input, context) => {
|
|
2044
|
-
return take(input, {
|
|
2045
|
-
Filter: (_) => se_EntityRecognizerFilter(_, context),
|
|
2046
|
-
MaxResults: [],
|
|
2047
|
-
NextToken: [],
|
|
2048
|
-
});
|
|
2049
|
-
};
|
|
2050
|
-
const se_ListEventsDetectionJobsRequest = (input, context) => {
|
|
2051
|
-
return take(input, {
|
|
2052
|
-
Filter: (_) => se_EventsDetectionJobFilter(_, context),
|
|
2053
|
-
MaxResults: [],
|
|
2054
|
-
NextToken: [],
|
|
2055
|
-
});
|
|
2056
|
-
};
|
|
2057
|
-
const se_ListFlywheelIterationHistoryRequest = (input, context) => {
|
|
2058
|
-
return take(input, {
|
|
2059
|
-
Filter: (_) => se_FlywheelIterationFilter(_, context),
|
|
2060
|
-
FlywheelArn: [],
|
|
2061
|
-
MaxResults: [],
|
|
2062
|
-
NextToken: [],
|
|
2063
|
-
});
|
|
2064
|
-
};
|
|
2065
|
-
const se_ListFlywheelsRequest = (input, context) => {
|
|
2066
|
-
return take(input, {
|
|
2067
|
-
Filter: (_) => se_FlywheelFilter(_, context),
|
|
2068
|
-
MaxResults: [],
|
|
2069
|
-
NextToken: [],
|
|
2070
|
-
});
|
|
2071
|
-
};
|
|
2072
|
-
const se_ListKeyPhrasesDetectionJobsRequest = (input, context) => {
|
|
2073
|
-
return take(input, {
|
|
2074
|
-
Filter: (_) => se_KeyPhrasesDetectionJobFilter(_, context),
|
|
2075
|
-
MaxResults: [],
|
|
2076
|
-
NextToken: [],
|
|
2077
|
-
});
|
|
2078
|
-
};
|
|
2079
|
-
const se_ListPiiEntitiesDetectionJobsRequest = (input, context) => {
|
|
2080
|
-
return take(input, {
|
|
2081
|
-
Filter: (_) => se_PiiEntitiesDetectionJobFilter(_, context),
|
|
2082
|
-
MaxResults: [],
|
|
2083
|
-
NextToken: [],
|
|
2084
|
-
});
|
|
2085
|
-
};
|
|
2086
|
-
const se_ListSentimentDetectionJobsRequest = (input, context) => {
|
|
2087
|
-
return take(input, {
|
|
2088
|
-
Filter: (_) => se_SentimentDetectionJobFilter(_, context),
|
|
2089
|
-
MaxResults: [],
|
|
2090
|
-
NextToken: [],
|
|
2091
|
-
});
|
|
2092
|
-
};
|
|
2093
|
-
const se_ListTargetedSentimentDetectionJobsRequest = (input, context) => {
|
|
2094
|
-
return take(input, {
|
|
2095
|
-
Filter: (_) => se_TargetedSentimentDetectionJobFilter(_, context),
|
|
2096
|
-
MaxResults: [],
|
|
2097
|
-
NextToken: [],
|
|
2098
|
-
});
|
|
2099
|
-
};
|
|
2100
|
-
const se_ListTopicsDetectionJobsRequest = (input, context) => {
|
|
2101
|
-
return take(input, {
|
|
2102
|
-
Filter: (_) => se_TopicsDetectionJobFilter(_, context),
|
|
2103
|
-
MaxResults: [],
|
|
2104
|
-
NextToken: [],
|
|
2105
|
-
});
|
|
2106
|
-
};
|
|
2107
|
-
const se_PiiEntitiesDetectionJobFilter = (input, context) => {
|
|
2108
|
-
return take(input, {
|
|
2109
|
-
JobName: [],
|
|
2110
|
-
JobStatus: [],
|
|
2111
|
-
SubmitTimeAfter: (_) => _.getTime() / 1_000,
|
|
2112
|
-
SubmitTimeBefore: (_) => _.getTime() / 1_000,
|
|
2113
|
-
});
|
|
2114
|
-
};
|
|
2115
|
-
const se_SentimentDetectionJobFilter = (input, context) => {
|
|
2116
|
-
return take(input, {
|
|
2117
|
-
JobName: [],
|
|
2118
|
-
JobStatus: [],
|
|
2119
|
-
SubmitTimeAfter: (_) => _.getTime() / 1_000,
|
|
2120
|
-
SubmitTimeBefore: (_) => _.getTime() / 1_000,
|
|
2121
|
-
});
|
|
2122
|
-
};
|
|
2123
|
-
const se_StartDocumentClassificationJobRequest = (input, context) => {
|
|
2124
|
-
return take(input, {
|
|
2125
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2126
|
-
DataAccessRoleArn: [],
|
|
2127
|
-
DocumentClassifierArn: [],
|
|
2128
|
-
FlywheelArn: [],
|
|
2129
|
-
InputDataConfig: _json,
|
|
2130
|
-
JobName: [],
|
|
2131
|
-
OutputDataConfig: _json,
|
|
2132
|
-
Tags: _json,
|
|
2133
|
-
VolumeKmsKeyId: [],
|
|
2134
|
-
VpcConfig: _json,
|
|
2135
|
-
});
|
|
2136
|
-
};
|
|
2137
|
-
const se_StartDominantLanguageDetectionJobRequest = (input, context) => {
|
|
2138
|
-
return take(input, {
|
|
2139
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2140
|
-
DataAccessRoleArn: [],
|
|
2141
|
-
InputDataConfig: _json,
|
|
2142
|
-
JobName: [],
|
|
2143
|
-
OutputDataConfig: _json,
|
|
2144
|
-
Tags: _json,
|
|
2145
|
-
VolumeKmsKeyId: [],
|
|
2146
|
-
VpcConfig: _json,
|
|
2147
|
-
});
|
|
2148
|
-
};
|
|
2149
|
-
const se_StartEntitiesDetectionJobRequest = (input, context) => {
|
|
2150
|
-
return take(input, {
|
|
2151
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2152
|
-
DataAccessRoleArn: [],
|
|
2153
|
-
EntityRecognizerArn: [],
|
|
2154
|
-
FlywheelArn: [],
|
|
2155
|
-
InputDataConfig: _json,
|
|
2156
|
-
JobName: [],
|
|
2157
|
-
LanguageCode: [],
|
|
2158
|
-
OutputDataConfig: _json,
|
|
2159
|
-
Tags: _json,
|
|
2160
|
-
VolumeKmsKeyId: [],
|
|
2161
|
-
VpcConfig: _json,
|
|
2162
|
-
});
|
|
2163
|
-
};
|
|
2164
|
-
const se_StartEventsDetectionJobRequest = (input, context) => {
|
|
2165
|
-
return take(input, {
|
|
2166
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2167
|
-
DataAccessRoleArn: [],
|
|
2168
|
-
InputDataConfig: _json,
|
|
2169
|
-
JobName: [],
|
|
2170
|
-
LanguageCode: [],
|
|
2171
|
-
OutputDataConfig: _json,
|
|
2172
|
-
Tags: _json,
|
|
2173
|
-
TargetEventTypes: _json,
|
|
2174
|
-
});
|
|
2175
|
-
};
|
|
2176
|
-
const se_StartKeyPhrasesDetectionJobRequest = (input, context) => {
|
|
2177
|
-
return take(input, {
|
|
2178
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2179
|
-
DataAccessRoleArn: [],
|
|
2180
|
-
InputDataConfig: _json,
|
|
2181
|
-
JobName: [],
|
|
2182
|
-
LanguageCode: [],
|
|
2183
|
-
OutputDataConfig: _json,
|
|
2184
|
-
Tags: _json,
|
|
2185
|
-
VolumeKmsKeyId: [],
|
|
2186
|
-
VpcConfig: _json,
|
|
2187
|
-
});
|
|
2188
|
-
};
|
|
2189
|
-
const se_StartPiiEntitiesDetectionJobRequest = (input, context) => {
|
|
2190
|
-
return take(input, {
|
|
2191
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2192
|
-
DataAccessRoleArn: [],
|
|
2193
|
-
InputDataConfig: _json,
|
|
2194
|
-
JobName: [],
|
|
2195
|
-
LanguageCode: [],
|
|
2196
|
-
Mode: [],
|
|
2197
|
-
OutputDataConfig: _json,
|
|
2198
|
-
RedactionConfig: _json,
|
|
2199
|
-
Tags: _json,
|
|
2200
|
-
});
|
|
2201
|
-
};
|
|
2202
|
-
const se_StartSentimentDetectionJobRequest = (input, context) => {
|
|
2203
|
-
return take(input, {
|
|
2204
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2205
|
-
DataAccessRoleArn: [],
|
|
2206
|
-
InputDataConfig: _json,
|
|
2207
|
-
JobName: [],
|
|
2208
|
-
LanguageCode: [],
|
|
2209
|
-
OutputDataConfig: _json,
|
|
2210
|
-
Tags: _json,
|
|
2211
|
-
VolumeKmsKeyId: [],
|
|
2212
|
-
VpcConfig: _json,
|
|
2213
|
-
});
|
|
2214
|
-
};
|
|
2215
|
-
const se_StartTargetedSentimentDetectionJobRequest = (input, context) => {
|
|
2216
|
-
return take(input, {
|
|
2217
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2218
|
-
DataAccessRoleArn: [],
|
|
2219
|
-
InputDataConfig: _json,
|
|
2220
|
-
JobName: [],
|
|
2221
|
-
LanguageCode: [],
|
|
2222
|
-
OutputDataConfig: _json,
|
|
2223
|
-
Tags: _json,
|
|
2224
|
-
VolumeKmsKeyId: [],
|
|
2225
|
-
VpcConfig: _json,
|
|
2226
|
-
});
|
|
2227
|
-
};
|
|
2228
|
-
const se_StartTopicsDetectionJobRequest = (input, context) => {
|
|
2229
|
-
return take(input, {
|
|
2230
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2231
|
-
DataAccessRoleArn: [],
|
|
2232
|
-
InputDataConfig: _json,
|
|
2233
|
-
JobName: [],
|
|
2234
|
-
NumberOfTopics: [],
|
|
2235
|
-
OutputDataConfig: _json,
|
|
2236
|
-
Tags: _json,
|
|
2237
|
-
VolumeKmsKeyId: [],
|
|
2238
|
-
VpcConfig: _json,
|
|
2239
|
-
});
|
|
2240
|
-
};
|
|
2241
|
-
const se_TargetedSentimentDetectionJobFilter = (input, context) => {
|
|
2242
|
-
return take(input, {
|
|
2243
|
-
JobName: [],
|
|
2244
|
-
JobStatus: [],
|
|
2245
|
-
SubmitTimeAfter: (_) => _.getTime() / 1_000,
|
|
2246
|
-
SubmitTimeBefore: (_) => _.getTime() / 1_000,
|
|
2247
|
-
});
|
|
2248
|
-
};
|
|
2249
|
-
const se_TopicsDetectionJobFilter = (input, context) => {
|
|
2250
|
-
return take(input, {
|
|
2251
|
-
JobName: [],
|
|
2252
|
-
JobStatus: [],
|
|
2253
|
-
SubmitTimeAfter: (_) => _.getTime() / 1_000,
|
|
2254
|
-
SubmitTimeBefore: (_) => _.getTime() / 1_000,
|
|
2255
|
-
});
|
|
2256
|
-
};
|
|
2257
|
-
const de_BatchDetectDominantLanguageItemResult = (output, context) => {
|
|
2258
|
-
return take(output, {
|
|
2259
|
-
Index: __expectInt32,
|
|
2260
|
-
Languages: (_) => de_ListOfDominantLanguages(_, context),
|
|
2261
|
-
});
|
|
2262
|
-
};
|
|
2263
|
-
const de_BatchDetectDominantLanguageResponse = (output, context) => {
|
|
2264
|
-
return take(output, {
|
|
2265
|
-
ErrorList: _json,
|
|
2266
|
-
ResultList: (_) => de_ListOfDetectDominantLanguageResult(_, context),
|
|
2267
|
-
});
|
|
2268
|
-
};
|
|
2269
|
-
const de_BatchDetectEntitiesItemResult = (output, context) => {
|
|
2270
|
-
return take(output, {
|
|
2271
|
-
Entities: (_) => de_ListOfEntities(_, context),
|
|
2272
|
-
Index: __expectInt32,
|
|
2273
|
-
});
|
|
2274
|
-
};
|
|
2275
|
-
const de_BatchDetectEntitiesResponse = (output, context) => {
|
|
2276
|
-
return take(output, {
|
|
2277
|
-
ErrorList: _json,
|
|
2278
|
-
ResultList: (_) => de_ListOfDetectEntitiesResult(_, context),
|
|
2279
|
-
});
|
|
2280
|
-
};
|
|
2281
|
-
const de_BatchDetectKeyPhrasesItemResult = (output, context) => {
|
|
2282
|
-
return take(output, {
|
|
2283
|
-
Index: __expectInt32,
|
|
2284
|
-
KeyPhrases: (_) => de_ListOfKeyPhrases(_, context),
|
|
2285
|
-
});
|
|
2286
|
-
};
|
|
2287
|
-
const de_BatchDetectKeyPhrasesResponse = (output, context) => {
|
|
2288
|
-
return take(output, {
|
|
2289
|
-
ErrorList: _json,
|
|
2290
|
-
ResultList: (_) => de_ListOfDetectKeyPhrasesResult(_, context),
|
|
2291
|
-
});
|
|
2292
|
-
};
|
|
2293
|
-
const de_BatchDetectSentimentItemResult = (output, context) => {
|
|
2294
|
-
return take(output, {
|
|
2295
|
-
Index: __expectInt32,
|
|
2296
|
-
Sentiment: __expectString,
|
|
2297
|
-
SentimentScore: (_) => de_SentimentScore(_, context),
|
|
2298
|
-
});
|
|
2299
|
-
};
|
|
2300
|
-
const de_BatchDetectSentimentResponse = (output, context) => {
|
|
2301
|
-
return take(output, {
|
|
2302
|
-
ErrorList: _json,
|
|
2303
|
-
ResultList: (_) => de_ListOfDetectSentimentResult(_, context),
|
|
2304
|
-
});
|
|
2305
|
-
};
|
|
2306
|
-
const de_BatchDetectSyntaxItemResult = (output, context) => {
|
|
2307
|
-
return take(output, {
|
|
2308
|
-
Index: __expectInt32,
|
|
2309
|
-
SyntaxTokens: (_) => de_ListOfSyntaxTokens(_, context),
|
|
2310
|
-
});
|
|
2311
|
-
};
|
|
2312
|
-
const de_BatchDetectSyntaxResponse = (output, context) => {
|
|
2313
|
-
return take(output, {
|
|
2314
|
-
ErrorList: _json,
|
|
2315
|
-
ResultList: (_) => de_ListOfDetectSyntaxResult(_, context),
|
|
2316
|
-
});
|
|
2317
|
-
};
|
|
2318
|
-
const de_BatchDetectTargetedSentimentItemResult = (output, context) => {
|
|
2319
|
-
return take(output, {
|
|
2320
|
-
Entities: (_) => de_ListOfTargetedSentimentEntities(_, context),
|
|
2321
|
-
Index: __expectInt32,
|
|
2322
|
-
});
|
|
2323
|
-
};
|
|
2324
|
-
const de_BatchDetectTargetedSentimentResponse = (output, context) => {
|
|
2325
|
-
return take(output, {
|
|
2326
|
-
ErrorList: _json,
|
|
2327
|
-
ResultList: (_) => de_ListOfDetectTargetedSentimentResult(_, context),
|
|
2328
|
-
});
|
|
2329
|
-
};
|
|
2330
|
-
const de_Block = (output, context) => {
|
|
2331
|
-
return take(output, {
|
|
2332
|
-
BlockType: __expectString,
|
|
2333
|
-
Geometry: (_) => de_Geometry(_, context),
|
|
2334
|
-
Id: __expectString,
|
|
2335
|
-
Page: __expectInt32,
|
|
2336
|
-
Relationships: _json,
|
|
2337
|
-
Text: __expectString,
|
|
2338
|
-
});
|
|
2339
|
-
};
|
|
2340
|
-
const de_BoundingBox = (output, context) => {
|
|
2341
|
-
return take(output, {
|
|
2342
|
-
Height: __limitedParseFloat32,
|
|
2343
|
-
Left: __limitedParseFloat32,
|
|
2344
|
-
Top: __limitedParseFloat32,
|
|
2345
|
-
Width: __limitedParseFloat32,
|
|
2346
|
-
});
|
|
2347
|
-
};
|
|
2348
|
-
const de_ClassifierEvaluationMetrics = (output, context) => {
|
|
2349
|
-
return take(output, {
|
|
2350
|
-
Accuracy: __limitedParseDouble,
|
|
2351
|
-
F1Score: __limitedParseDouble,
|
|
2352
|
-
HammingLoss: __limitedParseDouble,
|
|
2353
|
-
MicroF1Score: __limitedParseDouble,
|
|
2354
|
-
MicroPrecision: __limitedParseDouble,
|
|
2355
|
-
MicroRecall: __limitedParseDouble,
|
|
2356
|
-
Precision: __limitedParseDouble,
|
|
2357
|
-
Recall: __limitedParseDouble,
|
|
2358
|
-
});
|
|
2359
|
-
};
|
|
2360
|
-
const de_ClassifierMetadata = (output, context) => {
|
|
2361
|
-
return take(output, {
|
|
2362
|
-
EvaluationMetrics: (_) => de_ClassifierEvaluationMetrics(_, context),
|
|
2363
|
-
NumberOfLabels: __expectInt32,
|
|
2364
|
-
NumberOfTestDocuments: __expectInt32,
|
|
2365
|
-
NumberOfTrainedDocuments: __expectInt32,
|
|
2366
|
-
});
|
|
2367
|
-
};
|
|
2368
|
-
const de_ClassifyDocumentResponse = (output, context) => {
|
|
2369
|
-
return take(output, {
|
|
2370
|
-
Classes: (_) => de_ListOfClasses(_, context),
|
|
2371
|
-
DocumentMetadata: _json,
|
|
2372
|
-
DocumentType: _json,
|
|
2373
|
-
Errors: _json,
|
|
2374
|
-
Labels: (_) => de_ListOfLabels(_, context),
|
|
2375
|
-
Warnings: _json,
|
|
2376
|
-
});
|
|
2377
|
-
};
|
|
2378
|
-
const de_ContainsPiiEntitiesResponse = (output, context) => {
|
|
2379
|
-
return take(output, {
|
|
2380
|
-
Labels: (_) => de_ListOfEntityLabels(_, context),
|
|
2381
|
-
});
|
|
2382
|
-
};
|
|
2383
|
-
const de_DatasetProperties = (output, context) => {
|
|
2384
|
-
return take(output, {
|
|
2385
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2386
|
-
DatasetArn: __expectString,
|
|
2387
|
-
DatasetName: __expectString,
|
|
2388
|
-
DatasetS3Uri: __expectString,
|
|
2389
|
-
DatasetType: __expectString,
|
|
2390
|
-
Description: __expectString,
|
|
2391
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2392
|
-
Message: __expectString,
|
|
2393
|
-
NumberOfDocuments: __expectLong,
|
|
2394
|
-
Status: __expectString,
|
|
2395
|
-
});
|
|
2396
|
-
};
|
|
2397
|
-
const de_DatasetPropertiesList = (output, context) => {
|
|
2398
|
-
const retVal = (output || [])
|
|
2399
|
-
.filter((e) => e != null)
|
|
2400
|
-
.map((entry) => {
|
|
2401
|
-
return de_DatasetProperties(entry, context);
|
|
2402
|
-
});
|
|
2403
|
-
return retVal;
|
|
2404
|
-
};
|
|
2405
|
-
const de_DescribeDatasetResponse = (output, context) => {
|
|
2406
|
-
return take(output, {
|
|
2407
|
-
DatasetProperties: (_) => de_DatasetProperties(_, context),
|
|
2408
|
-
});
|
|
2409
|
-
};
|
|
2410
|
-
const de_DescribeDocumentClassificationJobResponse = (output, context) => {
|
|
2411
|
-
return take(output, {
|
|
2412
|
-
DocumentClassificationJobProperties: (_) => de_DocumentClassificationJobProperties(_, context),
|
|
2413
|
-
});
|
|
2414
|
-
};
|
|
2415
|
-
const de_DescribeDocumentClassifierResponse = (output, context) => {
|
|
2416
|
-
return take(output, {
|
|
2417
|
-
DocumentClassifierProperties: (_) => de_DocumentClassifierProperties(_, context),
|
|
2418
|
-
});
|
|
2419
|
-
};
|
|
2420
|
-
const de_DescribeDominantLanguageDetectionJobResponse = (output, context) => {
|
|
2421
|
-
return take(output, {
|
|
2422
|
-
DominantLanguageDetectionJobProperties: (_) => de_DominantLanguageDetectionJobProperties(_, context),
|
|
2423
|
-
});
|
|
2424
|
-
};
|
|
2425
|
-
const de_DescribeEndpointResponse = (output, context) => {
|
|
2426
|
-
return take(output, {
|
|
2427
|
-
EndpointProperties: (_) => de_EndpointProperties(_, context),
|
|
2428
|
-
});
|
|
2429
|
-
};
|
|
2430
|
-
const de_DescribeEntitiesDetectionJobResponse = (output, context) => {
|
|
2431
|
-
return take(output, {
|
|
2432
|
-
EntitiesDetectionJobProperties: (_) => de_EntitiesDetectionJobProperties(_, context),
|
|
2433
|
-
});
|
|
2434
|
-
};
|
|
2435
|
-
const de_DescribeEntityRecognizerResponse = (output, context) => {
|
|
2436
|
-
return take(output, {
|
|
2437
|
-
EntityRecognizerProperties: (_) => de_EntityRecognizerProperties(_, context),
|
|
2438
|
-
});
|
|
2439
|
-
};
|
|
2440
|
-
const de_DescribeEventsDetectionJobResponse = (output, context) => {
|
|
2441
|
-
return take(output, {
|
|
2442
|
-
EventsDetectionJobProperties: (_) => de_EventsDetectionJobProperties(_, context),
|
|
2443
|
-
});
|
|
2444
|
-
};
|
|
2445
|
-
const de_DescribeFlywheelIterationResponse = (output, context) => {
|
|
2446
|
-
return take(output, {
|
|
2447
|
-
FlywheelIterationProperties: (_) => de_FlywheelIterationProperties(_, context),
|
|
2448
|
-
});
|
|
2449
|
-
};
|
|
2450
|
-
const de_DescribeFlywheelResponse = (output, context) => {
|
|
2451
|
-
return take(output, {
|
|
2452
|
-
FlywheelProperties: (_) => de_FlywheelProperties(_, context),
|
|
2453
|
-
});
|
|
2454
|
-
};
|
|
2455
|
-
const de_DescribeKeyPhrasesDetectionJobResponse = (output, context) => {
|
|
2456
|
-
return take(output, {
|
|
2457
|
-
KeyPhrasesDetectionJobProperties: (_) => de_KeyPhrasesDetectionJobProperties(_, context),
|
|
2458
|
-
});
|
|
2459
|
-
};
|
|
2460
|
-
const de_DescribePiiEntitiesDetectionJobResponse = (output, context) => {
|
|
2461
|
-
return take(output, {
|
|
2462
|
-
PiiEntitiesDetectionJobProperties: (_) => de_PiiEntitiesDetectionJobProperties(_, context),
|
|
2463
|
-
});
|
|
2464
|
-
};
|
|
2465
|
-
const de_DescribeResourcePolicyResponse = (output, context) => {
|
|
2466
|
-
return take(output, {
|
|
2467
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2468
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2469
|
-
PolicyRevisionId: __expectString,
|
|
2470
|
-
ResourcePolicy: __expectString,
|
|
2471
|
-
});
|
|
2472
|
-
};
|
|
2473
|
-
const de_DescribeSentimentDetectionJobResponse = (output, context) => {
|
|
2474
|
-
return take(output, {
|
|
2475
|
-
SentimentDetectionJobProperties: (_) => de_SentimentDetectionJobProperties(_, context),
|
|
2476
|
-
});
|
|
2477
|
-
};
|
|
2478
|
-
const de_DescribeTargetedSentimentDetectionJobResponse = (output, context) => {
|
|
2479
|
-
return take(output, {
|
|
2480
|
-
TargetedSentimentDetectionJobProperties: (_) => de_TargetedSentimentDetectionJobProperties(_, context),
|
|
2481
|
-
});
|
|
2482
|
-
};
|
|
2483
|
-
const de_DescribeTopicsDetectionJobResponse = (output, context) => {
|
|
2484
|
-
return take(output, {
|
|
2485
|
-
TopicsDetectionJobProperties: (_) => de_TopicsDetectionJobProperties(_, context),
|
|
2486
|
-
});
|
|
2487
|
-
};
|
|
2488
|
-
const de_DetectDominantLanguageResponse = (output, context) => {
|
|
2489
|
-
return take(output, {
|
|
2490
|
-
Languages: (_) => de_ListOfDominantLanguages(_, context),
|
|
2491
|
-
});
|
|
2492
|
-
};
|
|
2493
|
-
const de_DetectEntitiesResponse = (output, context) => {
|
|
2494
|
-
return take(output, {
|
|
2495
|
-
Blocks: (_) => de_ListOfBlocks(_, context),
|
|
2496
|
-
DocumentMetadata: _json,
|
|
2497
|
-
DocumentType: _json,
|
|
2498
|
-
Entities: (_) => de_ListOfEntities(_, context),
|
|
2499
|
-
Errors: _json,
|
|
2500
|
-
});
|
|
2501
|
-
};
|
|
2502
|
-
const de_DetectKeyPhrasesResponse = (output, context) => {
|
|
2503
|
-
return take(output, {
|
|
2504
|
-
KeyPhrases: (_) => de_ListOfKeyPhrases(_, context),
|
|
2505
|
-
});
|
|
2506
|
-
};
|
|
2507
|
-
const de_DetectPiiEntitiesResponse = (output, context) => {
|
|
2508
|
-
return take(output, {
|
|
2509
|
-
Entities: (_) => de_ListOfPiiEntities(_, context),
|
|
2510
|
-
});
|
|
2511
|
-
};
|
|
2512
|
-
const de_DetectSentimentResponse = (output, context) => {
|
|
2513
|
-
return take(output, {
|
|
2514
|
-
Sentiment: __expectString,
|
|
2515
|
-
SentimentScore: (_) => de_SentimentScore(_, context),
|
|
2516
|
-
});
|
|
2517
|
-
};
|
|
2518
|
-
const de_DetectSyntaxResponse = (output, context) => {
|
|
2519
|
-
return take(output, {
|
|
2520
|
-
SyntaxTokens: (_) => de_ListOfSyntaxTokens(_, context),
|
|
2521
|
-
});
|
|
2522
|
-
};
|
|
2523
|
-
const de_DetectTargetedSentimentResponse = (output, context) => {
|
|
2524
|
-
return take(output, {
|
|
2525
|
-
Entities: (_) => de_ListOfTargetedSentimentEntities(_, context),
|
|
2526
|
-
});
|
|
2527
|
-
};
|
|
2528
|
-
const de_DetectToxicContentResponse = (output, context) => {
|
|
2529
|
-
return take(output, {
|
|
2530
|
-
ResultList: (_) => de_ListOfToxicLabels(_, context),
|
|
2531
|
-
});
|
|
2532
|
-
};
|
|
2533
|
-
const de_DocumentClass = (output, context) => {
|
|
2534
|
-
return take(output, {
|
|
2535
|
-
Name: __expectString,
|
|
2536
|
-
Page: __expectInt32,
|
|
2537
|
-
Score: __limitedParseFloat32,
|
|
2538
|
-
});
|
|
2539
|
-
};
|
|
2540
|
-
const de_DocumentClassificationJobProperties = (output, context) => {
|
|
2541
|
-
return take(output, {
|
|
2542
|
-
DataAccessRoleArn: __expectString,
|
|
2543
|
-
DocumentClassifierArn: __expectString,
|
|
2544
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2545
|
-
FlywheelArn: __expectString,
|
|
2546
|
-
InputDataConfig: _json,
|
|
2547
|
-
JobArn: __expectString,
|
|
2548
|
-
JobId: __expectString,
|
|
2549
|
-
JobName: __expectString,
|
|
2550
|
-
JobStatus: __expectString,
|
|
2551
|
-
Message: __expectString,
|
|
2552
|
-
OutputDataConfig: _json,
|
|
2553
|
-
SubmitTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2554
|
-
VolumeKmsKeyId: __expectString,
|
|
2555
|
-
VpcConfig: _json,
|
|
2556
|
-
});
|
|
2557
|
-
};
|
|
2558
|
-
const de_DocumentClassificationJobPropertiesList = (output, context) => {
|
|
2559
|
-
const retVal = (output || [])
|
|
2560
|
-
.filter((e) => e != null)
|
|
2561
|
-
.map((entry) => {
|
|
2562
|
-
return de_DocumentClassificationJobProperties(entry, context);
|
|
2563
|
-
});
|
|
2564
|
-
return retVal;
|
|
2565
|
-
};
|
|
2566
|
-
const de_DocumentClassifierProperties = (output, context) => {
|
|
2567
|
-
return take(output, {
|
|
2568
|
-
ClassifierMetadata: (_) => de_ClassifierMetadata(_, context),
|
|
2569
|
-
DataAccessRoleArn: __expectString,
|
|
2570
|
-
DocumentClassifierArn: __expectString,
|
|
2571
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2572
|
-
FlywheelArn: __expectString,
|
|
2573
|
-
InputDataConfig: _json,
|
|
2574
|
-
LanguageCode: __expectString,
|
|
2575
|
-
Message: __expectString,
|
|
2576
|
-
Mode: __expectString,
|
|
2577
|
-
ModelKmsKeyId: __expectString,
|
|
2578
|
-
OutputDataConfig: _json,
|
|
2579
|
-
SourceModelArn: __expectString,
|
|
2580
|
-
Status: __expectString,
|
|
2581
|
-
SubmitTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2582
|
-
TrainingEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2583
|
-
TrainingStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2584
|
-
VersionName: __expectString,
|
|
2585
|
-
VolumeKmsKeyId: __expectString,
|
|
2586
|
-
VpcConfig: _json,
|
|
2587
|
-
});
|
|
2588
|
-
};
|
|
2589
|
-
const de_DocumentClassifierPropertiesList = (output, context) => {
|
|
2590
|
-
const retVal = (output || [])
|
|
2591
|
-
.filter((e) => e != null)
|
|
2592
|
-
.map((entry) => {
|
|
2593
|
-
return de_DocumentClassifierProperties(entry, context);
|
|
2594
|
-
});
|
|
2595
|
-
return retVal;
|
|
2596
|
-
};
|
|
2597
|
-
const de_DocumentClassifierSummariesList = (output, context) => {
|
|
2598
|
-
const retVal = (output || [])
|
|
2599
|
-
.filter((e) => e != null)
|
|
2600
|
-
.map((entry) => {
|
|
2601
|
-
return de_DocumentClassifierSummary(entry, context);
|
|
2602
|
-
});
|
|
2603
|
-
return retVal;
|
|
2604
|
-
};
|
|
2605
|
-
const de_DocumentClassifierSummary = (output, context) => {
|
|
2606
|
-
return take(output, {
|
|
2607
|
-
DocumentClassifierName: __expectString,
|
|
2608
|
-
LatestVersionCreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2609
|
-
LatestVersionName: __expectString,
|
|
2610
|
-
LatestVersionStatus: __expectString,
|
|
2611
|
-
NumberOfVersions: __expectInt32,
|
|
2612
|
-
});
|
|
2613
|
-
};
|
|
2614
|
-
const de_DocumentLabel = (output, context) => {
|
|
2615
|
-
return take(output, {
|
|
2616
|
-
Name: __expectString,
|
|
2617
|
-
Page: __expectInt32,
|
|
2618
|
-
Score: __limitedParseFloat32,
|
|
2619
|
-
});
|
|
2620
|
-
};
|
|
2621
|
-
const de_DominantLanguage = (output, context) => {
|
|
2622
|
-
return take(output, {
|
|
2623
|
-
LanguageCode: __expectString,
|
|
2624
|
-
Score: __limitedParseFloat32,
|
|
2625
|
-
});
|
|
2626
|
-
};
|
|
2627
|
-
const de_DominantLanguageDetectionJobProperties = (output, context) => {
|
|
2628
|
-
return take(output, {
|
|
2629
|
-
DataAccessRoleArn: __expectString,
|
|
2630
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2631
|
-
InputDataConfig: _json,
|
|
2632
|
-
JobArn: __expectString,
|
|
2633
|
-
JobId: __expectString,
|
|
2634
|
-
JobName: __expectString,
|
|
2635
|
-
JobStatus: __expectString,
|
|
2636
|
-
Message: __expectString,
|
|
2637
|
-
OutputDataConfig: _json,
|
|
2638
|
-
SubmitTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2639
|
-
VolumeKmsKeyId: __expectString,
|
|
2640
|
-
VpcConfig: _json,
|
|
2641
|
-
});
|
|
2642
|
-
};
|
|
2643
|
-
const de_DominantLanguageDetectionJobPropertiesList = (output, context) => {
|
|
2644
|
-
const retVal = (output || [])
|
|
2645
|
-
.filter((e) => e != null)
|
|
2646
|
-
.map((entry) => {
|
|
2647
|
-
return de_DominantLanguageDetectionJobProperties(entry, context);
|
|
2648
|
-
});
|
|
2649
|
-
return retVal;
|
|
2650
|
-
};
|
|
2651
|
-
const de_EndpointProperties = (output, context) => {
|
|
2652
|
-
return take(output, {
|
|
2653
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2654
|
-
CurrentInferenceUnits: __expectInt32,
|
|
2655
|
-
DataAccessRoleArn: __expectString,
|
|
2656
|
-
DesiredDataAccessRoleArn: __expectString,
|
|
2657
|
-
DesiredInferenceUnits: __expectInt32,
|
|
2658
|
-
DesiredModelArn: __expectString,
|
|
2659
|
-
EndpointArn: __expectString,
|
|
2660
|
-
FlywheelArn: __expectString,
|
|
2661
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2662
|
-
Message: __expectString,
|
|
2663
|
-
ModelArn: __expectString,
|
|
2664
|
-
Status: __expectString,
|
|
2665
|
-
});
|
|
2666
|
-
};
|
|
2667
|
-
const de_EndpointPropertiesList = (output, context) => {
|
|
2668
|
-
const retVal = (output || [])
|
|
2669
|
-
.filter((e) => e != null)
|
|
2670
|
-
.map((entry) => {
|
|
2671
|
-
return de_EndpointProperties(entry, context);
|
|
2672
|
-
});
|
|
2673
|
-
return retVal;
|
|
2674
|
-
};
|
|
2675
|
-
const de_EntitiesDetectionJobProperties = (output, context) => {
|
|
2676
|
-
return take(output, {
|
|
2677
|
-
DataAccessRoleArn: __expectString,
|
|
2678
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2679
|
-
EntityRecognizerArn: __expectString,
|
|
2680
|
-
FlywheelArn: __expectString,
|
|
2681
|
-
InputDataConfig: _json,
|
|
2682
|
-
JobArn: __expectString,
|
|
2683
|
-
JobId: __expectString,
|
|
2684
|
-
JobName: __expectString,
|
|
2685
|
-
JobStatus: __expectString,
|
|
2686
|
-
LanguageCode: __expectString,
|
|
2687
|
-
Message: __expectString,
|
|
2688
|
-
OutputDataConfig: _json,
|
|
2689
|
-
SubmitTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2690
|
-
VolumeKmsKeyId: __expectString,
|
|
2691
|
-
VpcConfig: _json,
|
|
2692
|
-
});
|
|
2693
|
-
};
|
|
2694
|
-
const de_EntitiesDetectionJobPropertiesList = (output, context) => {
|
|
2695
|
-
const retVal = (output || [])
|
|
2696
|
-
.filter((e) => e != null)
|
|
2697
|
-
.map((entry) => {
|
|
2698
|
-
return de_EntitiesDetectionJobProperties(entry, context);
|
|
2699
|
-
});
|
|
2700
|
-
return retVal;
|
|
2701
|
-
};
|
|
2702
|
-
const de_Entity = (output, context) => {
|
|
2703
|
-
return take(output, {
|
|
2704
|
-
BeginOffset: __expectInt32,
|
|
2705
|
-
BlockReferences: _json,
|
|
2706
|
-
EndOffset: __expectInt32,
|
|
2707
|
-
Score: __limitedParseFloat32,
|
|
2708
|
-
Text: __expectString,
|
|
2709
|
-
Type: __expectString,
|
|
2710
|
-
});
|
|
2711
|
-
};
|
|
2712
|
-
const de_EntityLabel = (output, context) => {
|
|
2713
|
-
return take(output, {
|
|
2714
|
-
Name: __expectString,
|
|
2715
|
-
Score: __limitedParseFloat32,
|
|
2716
|
-
});
|
|
2717
|
-
};
|
|
2718
|
-
const de_EntityRecognizerEvaluationMetrics = (output, context) => {
|
|
2719
|
-
return take(output, {
|
|
2720
|
-
F1Score: __limitedParseDouble,
|
|
2721
|
-
Precision: __limitedParseDouble,
|
|
2722
|
-
Recall: __limitedParseDouble,
|
|
2723
|
-
});
|
|
2724
|
-
};
|
|
2725
|
-
const de_EntityRecognizerMetadata = (output, context) => {
|
|
2726
|
-
return take(output, {
|
|
2727
|
-
EntityTypes: (_) => de_EntityRecognizerMetadataEntityTypesList(_, context),
|
|
2728
|
-
EvaluationMetrics: (_) => de_EntityRecognizerEvaluationMetrics(_, context),
|
|
2729
|
-
NumberOfTestDocuments: __expectInt32,
|
|
2730
|
-
NumberOfTrainedDocuments: __expectInt32,
|
|
2731
|
-
});
|
|
2732
|
-
};
|
|
2733
|
-
const de_EntityRecognizerMetadataEntityTypesList = (output, context) => {
|
|
2734
|
-
const retVal = (output || [])
|
|
2735
|
-
.filter((e) => e != null)
|
|
2736
|
-
.map((entry) => {
|
|
2737
|
-
return de_EntityRecognizerMetadataEntityTypesListItem(entry, context);
|
|
2738
|
-
});
|
|
2739
|
-
return retVal;
|
|
2740
|
-
};
|
|
2741
|
-
const de_EntityRecognizerMetadataEntityTypesListItem = (output, context) => {
|
|
2742
|
-
return take(output, {
|
|
2743
|
-
EvaluationMetrics: (_) => de_EntityTypesEvaluationMetrics(_, context),
|
|
2744
|
-
NumberOfTrainMentions: __expectInt32,
|
|
2745
|
-
Type: __expectString,
|
|
2746
|
-
});
|
|
2747
|
-
};
|
|
2748
|
-
const de_EntityRecognizerProperties = (output, context) => {
|
|
2749
|
-
return take(output, {
|
|
2750
|
-
DataAccessRoleArn: __expectString,
|
|
2751
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2752
|
-
EntityRecognizerArn: __expectString,
|
|
2753
|
-
FlywheelArn: __expectString,
|
|
2754
|
-
InputDataConfig: _json,
|
|
2755
|
-
LanguageCode: __expectString,
|
|
2756
|
-
Message: __expectString,
|
|
2757
|
-
ModelKmsKeyId: __expectString,
|
|
2758
|
-
OutputDataConfig: _json,
|
|
2759
|
-
RecognizerMetadata: (_) => de_EntityRecognizerMetadata(_, context),
|
|
2760
|
-
SourceModelArn: __expectString,
|
|
2761
|
-
Status: __expectString,
|
|
2762
|
-
SubmitTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2763
|
-
TrainingEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2764
|
-
TrainingStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2765
|
-
VersionName: __expectString,
|
|
2766
|
-
VolumeKmsKeyId: __expectString,
|
|
2767
|
-
VpcConfig: _json,
|
|
2768
|
-
});
|
|
2769
|
-
};
|
|
2770
|
-
const de_EntityRecognizerPropertiesList = (output, context) => {
|
|
2771
|
-
const retVal = (output || [])
|
|
2772
|
-
.filter((e) => e != null)
|
|
2773
|
-
.map((entry) => {
|
|
2774
|
-
return de_EntityRecognizerProperties(entry, context);
|
|
2775
|
-
});
|
|
2776
|
-
return retVal;
|
|
2777
|
-
};
|
|
2778
|
-
const de_EntityRecognizerSummariesList = (output, context) => {
|
|
2779
|
-
const retVal = (output || [])
|
|
2780
|
-
.filter((e) => e != null)
|
|
2781
|
-
.map((entry) => {
|
|
2782
|
-
return de_EntityRecognizerSummary(entry, context);
|
|
2783
|
-
});
|
|
2784
|
-
return retVal;
|
|
2785
|
-
};
|
|
2786
|
-
const de_EntityRecognizerSummary = (output, context) => {
|
|
2787
|
-
return take(output, {
|
|
2788
|
-
LatestVersionCreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2789
|
-
LatestVersionName: __expectString,
|
|
2790
|
-
LatestVersionStatus: __expectString,
|
|
2791
|
-
NumberOfVersions: __expectInt32,
|
|
2792
|
-
RecognizerName: __expectString,
|
|
2793
|
-
});
|
|
2794
|
-
};
|
|
2795
|
-
const de_EntityTypesEvaluationMetrics = (output, context) => {
|
|
2796
|
-
return take(output, {
|
|
2797
|
-
F1Score: __limitedParseDouble,
|
|
2798
|
-
Precision: __limitedParseDouble,
|
|
2799
|
-
Recall: __limitedParseDouble,
|
|
2800
|
-
});
|
|
2801
|
-
};
|
|
2802
|
-
const de_EventsDetectionJobProperties = (output, context) => {
|
|
2803
|
-
return take(output, {
|
|
2804
|
-
DataAccessRoleArn: __expectString,
|
|
2805
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2806
|
-
InputDataConfig: _json,
|
|
2807
|
-
JobArn: __expectString,
|
|
2808
|
-
JobId: __expectString,
|
|
2809
|
-
JobName: __expectString,
|
|
2810
|
-
JobStatus: __expectString,
|
|
2811
|
-
LanguageCode: __expectString,
|
|
2812
|
-
Message: __expectString,
|
|
2813
|
-
OutputDataConfig: _json,
|
|
2814
|
-
SubmitTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2815
|
-
TargetEventTypes: _json,
|
|
2816
|
-
});
|
|
2817
|
-
};
|
|
2818
|
-
const de_EventsDetectionJobPropertiesList = (output, context) => {
|
|
2819
|
-
const retVal = (output || [])
|
|
2820
|
-
.filter((e) => e != null)
|
|
2821
|
-
.map((entry) => {
|
|
2822
|
-
return de_EventsDetectionJobProperties(entry, context);
|
|
2823
|
-
});
|
|
2824
|
-
return retVal;
|
|
2825
|
-
};
|
|
2826
|
-
const de_FlywheelIterationProperties = (output, context) => {
|
|
2827
|
-
return take(output, {
|
|
2828
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2829
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2830
|
-
EvaluatedModelArn: __expectString,
|
|
2831
|
-
EvaluatedModelMetrics: (_) => de_FlywheelModelEvaluationMetrics(_, context),
|
|
2832
|
-
EvaluationManifestS3Prefix: __expectString,
|
|
2833
|
-
FlywheelArn: __expectString,
|
|
2834
|
-
FlywheelIterationId: __expectString,
|
|
2835
|
-
Message: __expectString,
|
|
2836
|
-
Status: __expectString,
|
|
2837
|
-
TrainedModelArn: __expectString,
|
|
2838
|
-
TrainedModelMetrics: (_) => de_FlywheelModelEvaluationMetrics(_, context),
|
|
2839
|
-
});
|
|
2840
|
-
};
|
|
2841
|
-
const de_FlywheelIterationPropertiesList = (output, context) => {
|
|
2842
|
-
const retVal = (output || [])
|
|
2843
|
-
.filter((e) => e != null)
|
|
2844
|
-
.map((entry) => {
|
|
2845
|
-
return de_FlywheelIterationProperties(entry, context);
|
|
2846
|
-
});
|
|
2847
|
-
return retVal;
|
|
2848
|
-
};
|
|
2849
|
-
const de_FlywheelModelEvaluationMetrics = (output, context) => {
|
|
2850
|
-
return take(output, {
|
|
2851
|
-
AverageAccuracy: __limitedParseDouble,
|
|
2852
|
-
AverageF1Score: __limitedParseDouble,
|
|
2853
|
-
AveragePrecision: __limitedParseDouble,
|
|
2854
|
-
AverageRecall: __limitedParseDouble,
|
|
2855
|
-
});
|
|
2856
|
-
};
|
|
2857
|
-
const de_FlywheelProperties = (output, context) => {
|
|
2858
|
-
return take(output, {
|
|
2859
|
-
ActiveModelArn: __expectString,
|
|
2860
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2861
|
-
DataAccessRoleArn: __expectString,
|
|
2862
|
-
DataLakeS3Uri: __expectString,
|
|
2863
|
-
DataSecurityConfig: _json,
|
|
2864
|
-
FlywheelArn: __expectString,
|
|
2865
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2866
|
-
LatestFlywheelIteration: __expectString,
|
|
2867
|
-
Message: __expectString,
|
|
2868
|
-
ModelType: __expectString,
|
|
2869
|
-
Status: __expectString,
|
|
2870
|
-
TaskConfig: _json,
|
|
2871
|
-
});
|
|
2872
|
-
};
|
|
2873
|
-
const de_FlywheelSummary = (output, context) => {
|
|
2874
|
-
return take(output, {
|
|
2875
|
-
ActiveModelArn: __expectString,
|
|
2876
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2877
|
-
DataLakeS3Uri: __expectString,
|
|
2878
|
-
FlywheelArn: __expectString,
|
|
2879
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2880
|
-
LatestFlywheelIteration: __expectString,
|
|
2881
|
-
Message: __expectString,
|
|
2882
|
-
ModelType: __expectString,
|
|
2883
|
-
Status: __expectString,
|
|
2884
|
-
});
|
|
2885
|
-
};
|
|
2886
|
-
const de_FlywheelSummaryList = (output, context) => {
|
|
2887
|
-
const retVal = (output || [])
|
|
2888
|
-
.filter((e) => e != null)
|
|
2889
|
-
.map((entry) => {
|
|
2890
|
-
return de_FlywheelSummary(entry, context);
|
|
2891
|
-
});
|
|
2892
|
-
return retVal;
|
|
2893
|
-
};
|
|
2894
|
-
const de_Geometry = (output, context) => {
|
|
2895
|
-
return take(output, {
|
|
2896
|
-
BoundingBox: (_) => de_BoundingBox(_, context),
|
|
2897
|
-
Polygon: (_) => de_Polygon(_, context),
|
|
2898
|
-
});
|
|
2899
|
-
};
|
|
2900
|
-
const de_KeyPhrase = (output, context) => {
|
|
2901
|
-
return take(output, {
|
|
2902
|
-
BeginOffset: __expectInt32,
|
|
2903
|
-
EndOffset: __expectInt32,
|
|
2904
|
-
Score: __limitedParseFloat32,
|
|
2905
|
-
Text: __expectString,
|
|
2906
|
-
});
|
|
2907
|
-
};
|
|
2908
|
-
const de_KeyPhrasesDetectionJobProperties = (output, context) => {
|
|
2909
|
-
return take(output, {
|
|
2910
|
-
DataAccessRoleArn: __expectString,
|
|
2911
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2912
|
-
InputDataConfig: _json,
|
|
2913
|
-
JobArn: __expectString,
|
|
2914
|
-
JobId: __expectString,
|
|
2915
|
-
JobName: __expectString,
|
|
2916
|
-
JobStatus: __expectString,
|
|
2917
|
-
LanguageCode: __expectString,
|
|
2918
|
-
Message: __expectString,
|
|
2919
|
-
OutputDataConfig: _json,
|
|
2920
|
-
SubmitTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2921
|
-
VolumeKmsKeyId: __expectString,
|
|
2922
|
-
VpcConfig: _json,
|
|
2923
|
-
});
|
|
2924
|
-
};
|
|
2925
|
-
const de_KeyPhrasesDetectionJobPropertiesList = (output, context) => {
|
|
2926
|
-
const retVal = (output || [])
|
|
2927
|
-
.filter((e) => e != null)
|
|
2928
|
-
.map((entry) => {
|
|
2929
|
-
return de_KeyPhrasesDetectionJobProperties(entry, context);
|
|
2930
|
-
});
|
|
2931
|
-
return retVal;
|
|
2932
|
-
};
|
|
2933
|
-
const de_ListDatasetsResponse = (output, context) => {
|
|
2934
|
-
return take(output, {
|
|
2935
|
-
DatasetPropertiesList: (_) => de_DatasetPropertiesList(_, context),
|
|
2936
|
-
NextToken: __expectString,
|
|
2937
|
-
});
|
|
2938
|
-
};
|
|
2939
|
-
const de_ListDocumentClassificationJobsResponse = (output, context) => {
|
|
2940
|
-
return take(output, {
|
|
2941
|
-
DocumentClassificationJobPropertiesList: (_) => de_DocumentClassificationJobPropertiesList(_, context),
|
|
2942
|
-
NextToken: __expectString,
|
|
2943
|
-
});
|
|
2944
|
-
};
|
|
2945
|
-
const de_ListDocumentClassifiersResponse = (output, context) => {
|
|
2946
|
-
return take(output, {
|
|
2947
|
-
DocumentClassifierPropertiesList: (_) => de_DocumentClassifierPropertiesList(_, context),
|
|
2948
|
-
NextToken: __expectString,
|
|
2949
|
-
});
|
|
2950
|
-
};
|
|
2951
|
-
const de_ListDocumentClassifierSummariesResponse = (output, context) => {
|
|
2952
|
-
return take(output, {
|
|
2953
|
-
DocumentClassifierSummariesList: (_) => de_DocumentClassifierSummariesList(_, context),
|
|
2954
|
-
NextToken: __expectString,
|
|
2955
|
-
});
|
|
2956
|
-
};
|
|
2957
|
-
const de_ListDominantLanguageDetectionJobsResponse = (output, context) => {
|
|
2958
|
-
return take(output, {
|
|
2959
|
-
DominantLanguageDetectionJobPropertiesList: (_) => de_DominantLanguageDetectionJobPropertiesList(_, context),
|
|
2960
|
-
NextToken: __expectString,
|
|
2961
|
-
});
|
|
2962
|
-
};
|
|
2963
|
-
const de_ListEndpointsResponse = (output, context) => {
|
|
2964
|
-
return take(output, {
|
|
2965
|
-
EndpointPropertiesList: (_) => de_EndpointPropertiesList(_, context),
|
|
2966
|
-
NextToken: __expectString,
|
|
2967
|
-
});
|
|
2968
|
-
};
|
|
2969
|
-
const de_ListEntitiesDetectionJobsResponse = (output, context) => {
|
|
2970
|
-
return take(output, {
|
|
2971
|
-
EntitiesDetectionJobPropertiesList: (_) => de_EntitiesDetectionJobPropertiesList(_, context),
|
|
2972
|
-
NextToken: __expectString,
|
|
2973
|
-
});
|
|
2974
|
-
};
|
|
2975
|
-
const de_ListEntityRecognizersResponse = (output, context) => {
|
|
2976
|
-
return take(output, {
|
|
2977
|
-
EntityRecognizerPropertiesList: (_) => de_EntityRecognizerPropertiesList(_, context),
|
|
2978
|
-
NextToken: __expectString,
|
|
2979
|
-
});
|
|
2980
|
-
};
|
|
2981
|
-
const de_ListEntityRecognizerSummariesResponse = (output, context) => {
|
|
2982
|
-
return take(output, {
|
|
2983
|
-
EntityRecognizerSummariesList: (_) => de_EntityRecognizerSummariesList(_, context),
|
|
2984
|
-
NextToken: __expectString,
|
|
2985
|
-
});
|
|
2986
|
-
};
|
|
2987
|
-
const de_ListEventsDetectionJobsResponse = (output, context) => {
|
|
2988
|
-
return take(output, {
|
|
2989
|
-
EventsDetectionJobPropertiesList: (_) => de_EventsDetectionJobPropertiesList(_, context),
|
|
2990
|
-
NextToken: __expectString,
|
|
2991
|
-
});
|
|
2992
|
-
};
|
|
2993
|
-
const de_ListFlywheelIterationHistoryResponse = (output, context) => {
|
|
2994
|
-
return take(output, {
|
|
2995
|
-
FlywheelIterationPropertiesList: (_) => de_FlywheelIterationPropertiesList(_, context),
|
|
2996
|
-
NextToken: __expectString,
|
|
2997
|
-
});
|
|
2998
|
-
};
|
|
2999
|
-
const de_ListFlywheelsResponse = (output, context) => {
|
|
3000
|
-
return take(output, {
|
|
3001
|
-
FlywheelSummaryList: (_) => de_FlywheelSummaryList(_, context),
|
|
3002
|
-
NextToken: __expectString,
|
|
3003
|
-
});
|
|
3004
|
-
};
|
|
3005
|
-
const de_ListKeyPhrasesDetectionJobsResponse = (output, context) => {
|
|
3006
|
-
return take(output, {
|
|
3007
|
-
KeyPhrasesDetectionJobPropertiesList: (_) => de_KeyPhrasesDetectionJobPropertiesList(_, context),
|
|
3008
|
-
NextToken: __expectString,
|
|
3009
|
-
});
|
|
3010
|
-
};
|
|
3011
|
-
const de_ListOfBlocks = (output, context) => {
|
|
3012
|
-
const retVal = (output || [])
|
|
3013
|
-
.filter((e) => e != null)
|
|
3014
|
-
.map((entry) => {
|
|
3015
|
-
return de_Block(entry, context);
|
|
3016
|
-
});
|
|
3017
|
-
return retVal;
|
|
3018
|
-
};
|
|
3019
|
-
const de_ListOfClasses = (output, context) => {
|
|
3020
|
-
const retVal = (output || [])
|
|
3021
|
-
.filter((e) => e != null)
|
|
3022
|
-
.map((entry) => {
|
|
3023
|
-
return de_DocumentClass(entry, context);
|
|
3024
|
-
});
|
|
3025
|
-
return retVal;
|
|
3026
|
-
};
|
|
3027
|
-
const de_ListOfDetectDominantLanguageResult = (output, context) => {
|
|
3028
|
-
const retVal = (output || [])
|
|
3029
|
-
.filter((e) => e != null)
|
|
3030
|
-
.map((entry) => {
|
|
3031
|
-
return de_BatchDetectDominantLanguageItemResult(entry, context);
|
|
3032
|
-
});
|
|
3033
|
-
return retVal;
|
|
3034
|
-
};
|
|
3035
|
-
const de_ListOfDetectEntitiesResult = (output, context) => {
|
|
3036
|
-
const retVal = (output || [])
|
|
3037
|
-
.filter((e) => e != null)
|
|
3038
|
-
.map((entry) => {
|
|
3039
|
-
return de_BatchDetectEntitiesItemResult(entry, context);
|
|
3040
|
-
});
|
|
3041
|
-
return retVal;
|
|
3042
|
-
};
|
|
3043
|
-
const de_ListOfDetectKeyPhrasesResult = (output, context) => {
|
|
3044
|
-
const retVal = (output || [])
|
|
3045
|
-
.filter((e) => e != null)
|
|
3046
|
-
.map((entry) => {
|
|
3047
|
-
return de_BatchDetectKeyPhrasesItemResult(entry, context);
|
|
3048
|
-
});
|
|
3049
|
-
return retVal;
|
|
3050
|
-
};
|
|
3051
|
-
const de_ListOfDetectSentimentResult = (output, context) => {
|
|
3052
|
-
const retVal = (output || [])
|
|
3053
|
-
.filter((e) => e != null)
|
|
3054
|
-
.map((entry) => {
|
|
3055
|
-
return de_BatchDetectSentimentItemResult(entry, context);
|
|
3056
|
-
});
|
|
3057
|
-
return retVal;
|
|
3058
|
-
};
|
|
3059
|
-
const de_ListOfDetectSyntaxResult = (output, context) => {
|
|
3060
|
-
const retVal = (output || [])
|
|
3061
|
-
.filter((e) => e != null)
|
|
3062
|
-
.map((entry) => {
|
|
3063
|
-
return de_BatchDetectSyntaxItemResult(entry, context);
|
|
3064
|
-
});
|
|
3065
|
-
return retVal;
|
|
3066
|
-
};
|
|
3067
|
-
const de_ListOfDetectTargetedSentimentResult = (output, context) => {
|
|
3068
|
-
const retVal = (output || [])
|
|
3069
|
-
.filter((e) => e != null)
|
|
3070
|
-
.map((entry) => {
|
|
3071
|
-
return de_BatchDetectTargetedSentimentItemResult(entry, context);
|
|
3072
|
-
});
|
|
3073
|
-
return retVal;
|
|
3074
|
-
};
|
|
3075
|
-
const de_ListOfDominantLanguages = (output, context) => {
|
|
3076
|
-
const retVal = (output || [])
|
|
3077
|
-
.filter((e) => e != null)
|
|
3078
|
-
.map((entry) => {
|
|
3079
|
-
return de_DominantLanguage(entry, context);
|
|
3080
|
-
});
|
|
3081
|
-
return retVal;
|
|
3082
|
-
};
|
|
3083
|
-
const de_ListOfEntities = (output, context) => {
|
|
3084
|
-
const retVal = (output || [])
|
|
3085
|
-
.filter((e) => e != null)
|
|
3086
|
-
.map((entry) => {
|
|
3087
|
-
return de_Entity(entry, context);
|
|
3088
|
-
});
|
|
3089
|
-
return retVal;
|
|
3090
|
-
};
|
|
3091
|
-
const de_ListOfEntityLabels = (output, context) => {
|
|
3092
|
-
const retVal = (output || [])
|
|
3093
|
-
.filter((e) => e != null)
|
|
3094
|
-
.map((entry) => {
|
|
3095
|
-
return de_EntityLabel(entry, context);
|
|
3096
|
-
});
|
|
3097
|
-
return retVal;
|
|
3098
|
-
};
|
|
3099
|
-
const de_ListOfKeyPhrases = (output, context) => {
|
|
3100
|
-
const retVal = (output || [])
|
|
3101
|
-
.filter((e) => e != null)
|
|
3102
|
-
.map((entry) => {
|
|
3103
|
-
return de_KeyPhrase(entry, context);
|
|
3104
|
-
});
|
|
3105
|
-
return retVal;
|
|
3106
|
-
};
|
|
3107
|
-
const de_ListOfLabels = (output, context) => {
|
|
3108
|
-
const retVal = (output || [])
|
|
3109
|
-
.filter((e) => e != null)
|
|
3110
|
-
.map((entry) => {
|
|
3111
|
-
return de_DocumentLabel(entry, context);
|
|
3112
|
-
});
|
|
3113
|
-
return retVal;
|
|
3114
|
-
};
|
|
3115
|
-
const de_ListOfMentions = (output, context) => {
|
|
3116
|
-
const retVal = (output || [])
|
|
3117
|
-
.filter((e) => e != null)
|
|
3118
|
-
.map((entry) => {
|
|
3119
|
-
return de_TargetedSentimentMention(entry, context);
|
|
3120
|
-
});
|
|
3121
|
-
return retVal;
|
|
3122
|
-
};
|
|
3123
|
-
const de_ListOfPiiEntities = (output, context) => {
|
|
3124
|
-
const retVal = (output || [])
|
|
3125
|
-
.filter((e) => e != null)
|
|
3126
|
-
.map((entry) => {
|
|
3127
|
-
return de_PiiEntity(entry, context);
|
|
3128
|
-
});
|
|
3129
|
-
return retVal;
|
|
3130
|
-
};
|
|
3131
|
-
const de_ListOfSyntaxTokens = (output, context) => {
|
|
3132
|
-
const retVal = (output || [])
|
|
3133
|
-
.filter((e) => e != null)
|
|
3134
|
-
.map((entry) => {
|
|
3135
|
-
return de_SyntaxToken(entry, context);
|
|
3136
|
-
});
|
|
3137
|
-
return retVal;
|
|
3138
|
-
};
|
|
3139
|
-
const de_ListOfTargetedSentimentEntities = (output, context) => {
|
|
3140
|
-
const retVal = (output || [])
|
|
3141
|
-
.filter((e) => e != null)
|
|
3142
|
-
.map((entry) => {
|
|
3143
|
-
return de_TargetedSentimentEntity(entry, context);
|
|
3144
|
-
});
|
|
3145
|
-
return retVal;
|
|
3146
|
-
};
|
|
3147
|
-
const de_ListOfToxicContent = (output, context) => {
|
|
3148
|
-
const retVal = (output || [])
|
|
3149
|
-
.filter((e) => e != null)
|
|
3150
|
-
.map((entry) => {
|
|
3151
|
-
return de_ToxicContent(entry, context);
|
|
3152
|
-
});
|
|
3153
|
-
return retVal;
|
|
3154
|
-
};
|
|
3155
|
-
const de_ListOfToxicLabels = (output, context) => {
|
|
3156
|
-
const retVal = (output || [])
|
|
3157
|
-
.filter((e) => e != null)
|
|
3158
|
-
.map((entry) => {
|
|
3159
|
-
return de_ToxicLabels(entry, context);
|
|
3160
|
-
});
|
|
3161
|
-
return retVal;
|
|
3162
|
-
};
|
|
3163
|
-
const de_ListPiiEntitiesDetectionJobsResponse = (output, context) => {
|
|
3164
|
-
return take(output, {
|
|
3165
|
-
NextToken: __expectString,
|
|
3166
|
-
PiiEntitiesDetectionJobPropertiesList: (_) => de_PiiEntitiesDetectionJobPropertiesList(_, context),
|
|
3167
|
-
});
|
|
3168
|
-
};
|
|
3169
|
-
const de_ListSentimentDetectionJobsResponse = (output, context) => {
|
|
3170
|
-
return take(output, {
|
|
3171
|
-
NextToken: __expectString,
|
|
3172
|
-
SentimentDetectionJobPropertiesList: (_) => de_SentimentDetectionJobPropertiesList(_, context),
|
|
3173
|
-
});
|
|
3174
|
-
};
|
|
3175
|
-
const de_ListTargetedSentimentDetectionJobsResponse = (output, context) => {
|
|
3176
|
-
return take(output, {
|
|
3177
|
-
NextToken: __expectString,
|
|
3178
|
-
TargetedSentimentDetectionJobPropertiesList: (_) => de_TargetedSentimentDetectionJobPropertiesList(_, context),
|
|
3179
|
-
});
|
|
3180
|
-
};
|
|
3181
|
-
const de_ListTopicsDetectionJobsResponse = (output, context) => {
|
|
3182
|
-
return take(output, {
|
|
3183
|
-
NextToken: __expectString,
|
|
3184
|
-
TopicsDetectionJobPropertiesList: (_) => de_TopicsDetectionJobPropertiesList(_, context),
|
|
3185
|
-
});
|
|
3186
|
-
};
|
|
3187
|
-
const de_MentionSentiment = (output, context) => {
|
|
3188
|
-
return take(output, {
|
|
3189
|
-
Sentiment: __expectString,
|
|
3190
|
-
SentimentScore: (_) => de_SentimentScore(_, context),
|
|
3191
|
-
});
|
|
3192
|
-
};
|
|
3193
|
-
const de_PartOfSpeechTag = (output, context) => {
|
|
3194
|
-
return take(output, {
|
|
3195
|
-
Score: __limitedParseFloat32,
|
|
3196
|
-
Tag: __expectString,
|
|
3197
|
-
});
|
|
3198
|
-
};
|
|
3199
|
-
const de_PiiEntitiesDetectionJobProperties = (output, context) => {
|
|
3200
|
-
return take(output, {
|
|
3201
|
-
DataAccessRoleArn: __expectString,
|
|
3202
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3203
|
-
InputDataConfig: _json,
|
|
3204
|
-
JobArn: __expectString,
|
|
3205
|
-
JobId: __expectString,
|
|
3206
|
-
JobName: __expectString,
|
|
3207
|
-
JobStatus: __expectString,
|
|
3208
|
-
LanguageCode: __expectString,
|
|
3209
|
-
Message: __expectString,
|
|
3210
|
-
Mode: __expectString,
|
|
3211
|
-
OutputDataConfig: _json,
|
|
3212
|
-
RedactionConfig: _json,
|
|
3213
|
-
SubmitTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3214
|
-
});
|
|
3215
|
-
};
|
|
3216
|
-
const de_PiiEntitiesDetectionJobPropertiesList = (output, context) => {
|
|
3217
|
-
const retVal = (output || [])
|
|
3218
|
-
.filter((e) => e != null)
|
|
3219
|
-
.map((entry) => {
|
|
3220
|
-
return de_PiiEntitiesDetectionJobProperties(entry, context);
|
|
3221
|
-
});
|
|
3222
|
-
return retVal;
|
|
3223
|
-
};
|
|
3224
|
-
const de_PiiEntity = (output, context) => {
|
|
3225
|
-
return take(output, {
|
|
3226
|
-
BeginOffset: __expectInt32,
|
|
3227
|
-
EndOffset: __expectInt32,
|
|
3228
|
-
Score: __limitedParseFloat32,
|
|
3229
|
-
Type: __expectString,
|
|
3230
|
-
});
|
|
3231
|
-
};
|
|
3232
|
-
const de_Point = (output, context) => {
|
|
3233
|
-
return take(output, {
|
|
3234
|
-
X: __limitedParseFloat32,
|
|
3235
|
-
Y: __limitedParseFloat32,
|
|
3236
|
-
});
|
|
3237
|
-
};
|
|
3238
|
-
const de_Polygon = (output, context) => {
|
|
3239
|
-
const retVal = (output || [])
|
|
3240
|
-
.filter((e) => e != null)
|
|
3241
|
-
.map((entry) => {
|
|
3242
|
-
return de_Point(entry, context);
|
|
3243
|
-
});
|
|
3244
|
-
return retVal;
|
|
3245
|
-
};
|
|
3246
|
-
const de_SentimentDetectionJobProperties = (output, context) => {
|
|
3247
|
-
return take(output, {
|
|
3248
|
-
DataAccessRoleArn: __expectString,
|
|
3249
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3250
|
-
InputDataConfig: _json,
|
|
3251
|
-
JobArn: __expectString,
|
|
3252
|
-
JobId: __expectString,
|
|
3253
|
-
JobName: __expectString,
|
|
3254
|
-
JobStatus: __expectString,
|
|
3255
|
-
LanguageCode: __expectString,
|
|
3256
|
-
Message: __expectString,
|
|
3257
|
-
OutputDataConfig: _json,
|
|
3258
|
-
SubmitTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3259
|
-
VolumeKmsKeyId: __expectString,
|
|
3260
|
-
VpcConfig: _json,
|
|
3261
|
-
});
|
|
3262
|
-
};
|
|
3263
|
-
const de_SentimentDetectionJobPropertiesList = (output, context) => {
|
|
3264
|
-
const retVal = (output || [])
|
|
3265
|
-
.filter((e) => e != null)
|
|
3266
|
-
.map((entry) => {
|
|
3267
|
-
return de_SentimentDetectionJobProperties(entry, context);
|
|
3268
|
-
});
|
|
3269
|
-
return retVal;
|
|
3270
|
-
};
|
|
3271
|
-
const de_SentimentScore = (output, context) => {
|
|
3272
|
-
return take(output, {
|
|
3273
|
-
Mixed: __limitedParseFloat32,
|
|
3274
|
-
Negative: __limitedParseFloat32,
|
|
3275
|
-
Neutral: __limitedParseFloat32,
|
|
3276
|
-
Positive: __limitedParseFloat32,
|
|
3277
|
-
});
|
|
3278
|
-
};
|
|
3279
|
-
const de_SyntaxToken = (output, context) => {
|
|
3280
|
-
return take(output, {
|
|
3281
|
-
BeginOffset: __expectInt32,
|
|
3282
|
-
EndOffset: __expectInt32,
|
|
3283
|
-
PartOfSpeech: (_) => de_PartOfSpeechTag(_, context),
|
|
3284
|
-
Text: __expectString,
|
|
3285
|
-
TokenId: __expectInt32,
|
|
3286
|
-
});
|
|
3287
|
-
};
|
|
3288
|
-
const de_TargetedSentimentDetectionJobProperties = (output, context) => {
|
|
3289
|
-
return take(output, {
|
|
3290
|
-
DataAccessRoleArn: __expectString,
|
|
3291
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3292
|
-
InputDataConfig: _json,
|
|
3293
|
-
JobArn: __expectString,
|
|
3294
|
-
JobId: __expectString,
|
|
3295
|
-
JobName: __expectString,
|
|
3296
|
-
JobStatus: __expectString,
|
|
3297
|
-
LanguageCode: __expectString,
|
|
3298
|
-
Message: __expectString,
|
|
3299
|
-
OutputDataConfig: _json,
|
|
3300
|
-
SubmitTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3301
|
-
VolumeKmsKeyId: __expectString,
|
|
3302
|
-
VpcConfig: _json,
|
|
3303
|
-
});
|
|
3304
|
-
};
|
|
3305
|
-
const de_TargetedSentimentDetectionJobPropertiesList = (output, context) => {
|
|
3306
|
-
const retVal = (output || [])
|
|
3307
|
-
.filter((e) => e != null)
|
|
3308
|
-
.map((entry) => {
|
|
3309
|
-
return de_TargetedSentimentDetectionJobProperties(entry, context);
|
|
3310
|
-
});
|
|
3311
|
-
return retVal;
|
|
3312
|
-
};
|
|
3313
|
-
const de_TargetedSentimentEntity = (output, context) => {
|
|
3314
|
-
return take(output, {
|
|
3315
|
-
DescriptiveMentionIndex: _json,
|
|
3316
|
-
Mentions: (_) => de_ListOfMentions(_, context),
|
|
3317
|
-
});
|
|
3318
|
-
};
|
|
3319
|
-
const de_TargetedSentimentMention = (output, context) => {
|
|
3320
|
-
return take(output, {
|
|
3321
|
-
BeginOffset: __expectInt32,
|
|
3322
|
-
EndOffset: __expectInt32,
|
|
3323
|
-
GroupScore: __limitedParseFloat32,
|
|
3324
|
-
MentionSentiment: (_) => de_MentionSentiment(_, context),
|
|
3325
|
-
Score: __limitedParseFloat32,
|
|
3326
|
-
Text: __expectString,
|
|
3327
|
-
Type: __expectString,
|
|
3328
|
-
});
|
|
3329
|
-
};
|
|
3330
|
-
const de_TopicsDetectionJobProperties = (output, context) => {
|
|
3331
|
-
return take(output, {
|
|
3332
|
-
DataAccessRoleArn: __expectString,
|
|
3333
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3334
|
-
InputDataConfig: _json,
|
|
3335
|
-
JobArn: __expectString,
|
|
3336
|
-
JobId: __expectString,
|
|
3337
|
-
JobName: __expectString,
|
|
3338
|
-
JobStatus: __expectString,
|
|
3339
|
-
Message: __expectString,
|
|
3340
|
-
NumberOfTopics: __expectInt32,
|
|
3341
|
-
OutputDataConfig: _json,
|
|
3342
|
-
SubmitTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3343
|
-
VolumeKmsKeyId: __expectString,
|
|
3344
|
-
VpcConfig: _json,
|
|
3345
|
-
});
|
|
3346
|
-
};
|
|
3347
|
-
const de_TopicsDetectionJobPropertiesList = (output, context) => {
|
|
3348
|
-
const retVal = (output || [])
|
|
3349
|
-
.filter((e) => e != null)
|
|
3350
|
-
.map((entry) => {
|
|
3351
|
-
return de_TopicsDetectionJobProperties(entry, context);
|
|
3352
|
-
});
|
|
3353
|
-
return retVal;
|
|
3354
|
-
};
|
|
3355
|
-
const de_ToxicContent = (output, context) => {
|
|
3356
|
-
return take(output, {
|
|
3357
|
-
Name: __expectString,
|
|
3358
|
-
Score: __limitedParseFloat32,
|
|
3359
|
-
});
|
|
3360
|
-
};
|
|
3361
|
-
const de_ToxicLabels = (output, context) => {
|
|
3362
|
-
return take(output, {
|
|
3363
|
-
Labels: (_) => de_ListOfToxicContent(_, context),
|
|
3364
|
-
Toxicity: __limitedParseFloat32,
|
|
3365
|
-
});
|
|
3366
|
-
};
|
|
3367
|
-
const de_UpdateFlywheelResponse = (output, context) => {
|
|
3368
|
-
return take(output, {
|
|
3369
|
-
FlywheelProperties: (_) => de_FlywheelProperties(_, context),
|
|
3370
|
-
});
|
|
3371
|
-
};
|
|
3372
|
-
const deserializeMetadata = (output) => ({
|
|
3373
|
-
httpStatusCode: output.statusCode,
|
|
3374
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3375
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3376
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3377
|
-
});
|
|
3378
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3379
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
3380
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3381
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3382
|
-
const contents = {
|
|
3383
|
-
protocol,
|
|
3384
|
-
hostname,
|
|
3385
|
-
port,
|
|
3386
|
-
method: "POST",
|
|
3387
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3388
|
-
headers,
|
|
3389
|
-
};
|
|
3390
|
-
if (resolvedHostname !== undefined) {
|
|
3391
|
-
contents.hostname = resolvedHostname;
|
|
3392
|
-
}
|
|
3393
|
-
if (body !== undefined) {
|
|
3394
|
-
contents.body = body;
|
|
3395
|
-
}
|
|
3396
|
-
return new __HttpRequest(contents);
|
|
3397
|
-
};
|
|
3398
|
-
function sharedHeaders(operation) {
|
|
3399
|
-
return {
|
|
3400
|
-
"content-type": "application/x-amz-json-1.1",
|
|
3401
|
-
"x-amz-target": `Comprehend_20171127.${operation}`,
|
|
3402
|
-
};
|
|
3403
|
-
}
|