@aws-sdk/client-comprehend 3.310.0 → 3.312.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/protocols/Aws_json1_1.js +90 -336
- package/dist-es/protocols/Aws_json1_1.js +90 -336
- package/package.json +2 -2
|
@@ -5,757 +5,505 @@ import { ComprehendServiceException as __BaseException } from "../models/Compreh
|
|
|
5
5
|
import { BatchSizeLimitExceededException, InternalServerException, InvalidFilterException, InvalidRequestException, JobNotFoundException, KmsKeyValidationException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourceUnavailableException, TextSizeLimitExceededException, TooManyRequestsException, TooManyTagsException, UnsupportedLanguageException, } from "../models/models_0";
|
|
6
6
|
import { ConcurrentModificationException, TooManyTagKeysException, } from "../models/models_1";
|
|
7
7
|
export const se_BatchDetectDominantLanguageCommand = async (input, context) => {
|
|
8
|
-
const headers =
|
|
9
|
-
"content-type": "application/x-amz-json-1.1",
|
|
10
|
-
"x-amz-target": "Comprehend_20171127.BatchDetectDominantLanguage",
|
|
11
|
-
};
|
|
8
|
+
const headers = sharedHeaders("BatchDetectDominantLanguage");
|
|
12
9
|
let body;
|
|
13
10
|
body = JSON.stringify(se_BatchDetectDominantLanguageRequest(input, context));
|
|
14
11
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
12
|
};
|
|
16
13
|
export const se_BatchDetectEntitiesCommand = async (input, context) => {
|
|
17
|
-
const headers =
|
|
18
|
-
"content-type": "application/x-amz-json-1.1",
|
|
19
|
-
"x-amz-target": "Comprehend_20171127.BatchDetectEntities",
|
|
20
|
-
};
|
|
14
|
+
const headers = sharedHeaders("BatchDetectEntities");
|
|
21
15
|
let body;
|
|
22
16
|
body = JSON.stringify(se_BatchDetectEntitiesRequest(input, context));
|
|
23
17
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
18
|
};
|
|
25
19
|
export const se_BatchDetectKeyPhrasesCommand = async (input, context) => {
|
|
26
|
-
const headers =
|
|
27
|
-
"content-type": "application/x-amz-json-1.1",
|
|
28
|
-
"x-amz-target": "Comprehend_20171127.BatchDetectKeyPhrases",
|
|
29
|
-
};
|
|
20
|
+
const headers = sharedHeaders("BatchDetectKeyPhrases");
|
|
30
21
|
let body;
|
|
31
22
|
body = JSON.stringify(se_BatchDetectKeyPhrasesRequest(input, context));
|
|
32
23
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
33
24
|
};
|
|
34
25
|
export const se_BatchDetectSentimentCommand = async (input, context) => {
|
|
35
|
-
const headers =
|
|
36
|
-
"content-type": "application/x-amz-json-1.1",
|
|
37
|
-
"x-amz-target": "Comprehend_20171127.BatchDetectSentiment",
|
|
38
|
-
};
|
|
26
|
+
const headers = sharedHeaders("BatchDetectSentiment");
|
|
39
27
|
let body;
|
|
40
28
|
body = JSON.stringify(se_BatchDetectSentimentRequest(input, context));
|
|
41
29
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
30
|
};
|
|
43
31
|
export const se_BatchDetectSyntaxCommand = async (input, context) => {
|
|
44
|
-
const headers =
|
|
45
|
-
"content-type": "application/x-amz-json-1.1",
|
|
46
|
-
"x-amz-target": "Comprehend_20171127.BatchDetectSyntax",
|
|
47
|
-
};
|
|
32
|
+
const headers = sharedHeaders("BatchDetectSyntax");
|
|
48
33
|
let body;
|
|
49
34
|
body = JSON.stringify(se_BatchDetectSyntaxRequest(input, context));
|
|
50
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
51
36
|
};
|
|
52
37
|
export const se_BatchDetectTargetedSentimentCommand = async (input, context) => {
|
|
53
|
-
const headers =
|
|
54
|
-
"content-type": "application/x-amz-json-1.1",
|
|
55
|
-
"x-amz-target": "Comprehend_20171127.BatchDetectTargetedSentiment",
|
|
56
|
-
};
|
|
38
|
+
const headers = sharedHeaders("BatchDetectTargetedSentiment");
|
|
57
39
|
let body;
|
|
58
40
|
body = JSON.stringify(se_BatchDetectTargetedSentimentRequest(input, context));
|
|
59
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
60
42
|
};
|
|
61
43
|
export const se_ClassifyDocumentCommand = async (input, context) => {
|
|
62
|
-
const headers =
|
|
63
|
-
"content-type": "application/x-amz-json-1.1",
|
|
64
|
-
"x-amz-target": "Comprehend_20171127.ClassifyDocument",
|
|
65
|
-
};
|
|
44
|
+
const headers = sharedHeaders("ClassifyDocument");
|
|
66
45
|
let body;
|
|
67
46
|
body = JSON.stringify(se_ClassifyDocumentRequest(input, context));
|
|
68
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
69
48
|
};
|
|
70
49
|
export const se_ContainsPiiEntitiesCommand = async (input, context) => {
|
|
71
|
-
const headers =
|
|
72
|
-
"content-type": "application/x-amz-json-1.1",
|
|
73
|
-
"x-amz-target": "Comprehend_20171127.ContainsPiiEntities",
|
|
74
|
-
};
|
|
50
|
+
const headers = sharedHeaders("ContainsPiiEntities");
|
|
75
51
|
let body;
|
|
76
52
|
body = JSON.stringify(se_ContainsPiiEntitiesRequest(input, context));
|
|
77
53
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
54
|
};
|
|
79
55
|
export const se_CreateDatasetCommand = async (input, context) => {
|
|
80
|
-
const headers =
|
|
81
|
-
"content-type": "application/x-amz-json-1.1",
|
|
82
|
-
"x-amz-target": "Comprehend_20171127.CreateDataset",
|
|
83
|
-
};
|
|
56
|
+
const headers = sharedHeaders("CreateDataset");
|
|
84
57
|
let body;
|
|
85
58
|
body = JSON.stringify(se_CreateDatasetRequest(input, context));
|
|
86
59
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
60
|
};
|
|
88
61
|
export const se_CreateDocumentClassifierCommand = async (input, context) => {
|
|
89
|
-
const headers =
|
|
90
|
-
"content-type": "application/x-amz-json-1.1",
|
|
91
|
-
"x-amz-target": "Comprehend_20171127.CreateDocumentClassifier",
|
|
92
|
-
};
|
|
62
|
+
const headers = sharedHeaders("CreateDocumentClassifier");
|
|
93
63
|
let body;
|
|
94
64
|
body = JSON.stringify(se_CreateDocumentClassifierRequest(input, context));
|
|
95
65
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
66
|
};
|
|
97
67
|
export const se_CreateEndpointCommand = async (input, context) => {
|
|
98
|
-
const headers =
|
|
99
|
-
"content-type": "application/x-amz-json-1.1",
|
|
100
|
-
"x-amz-target": "Comprehend_20171127.CreateEndpoint",
|
|
101
|
-
};
|
|
68
|
+
const headers = sharedHeaders("CreateEndpoint");
|
|
102
69
|
let body;
|
|
103
70
|
body = JSON.stringify(se_CreateEndpointRequest(input, context));
|
|
104
71
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
105
72
|
};
|
|
106
73
|
export const se_CreateEntityRecognizerCommand = async (input, context) => {
|
|
107
|
-
const headers =
|
|
108
|
-
"content-type": "application/x-amz-json-1.1",
|
|
109
|
-
"x-amz-target": "Comprehend_20171127.CreateEntityRecognizer",
|
|
110
|
-
};
|
|
74
|
+
const headers = sharedHeaders("CreateEntityRecognizer");
|
|
111
75
|
let body;
|
|
112
76
|
body = JSON.stringify(se_CreateEntityRecognizerRequest(input, context));
|
|
113
77
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
78
|
};
|
|
115
79
|
export const se_CreateFlywheelCommand = async (input, context) => {
|
|
116
|
-
const headers =
|
|
117
|
-
"content-type": "application/x-amz-json-1.1",
|
|
118
|
-
"x-amz-target": "Comprehend_20171127.CreateFlywheel",
|
|
119
|
-
};
|
|
80
|
+
const headers = sharedHeaders("CreateFlywheel");
|
|
120
81
|
let body;
|
|
121
82
|
body = JSON.stringify(se_CreateFlywheelRequest(input, context));
|
|
122
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
123
84
|
};
|
|
124
85
|
export const se_DeleteDocumentClassifierCommand = async (input, context) => {
|
|
125
|
-
const headers =
|
|
126
|
-
"content-type": "application/x-amz-json-1.1",
|
|
127
|
-
"x-amz-target": "Comprehend_20171127.DeleteDocumentClassifier",
|
|
128
|
-
};
|
|
86
|
+
const headers = sharedHeaders("DeleteDocumentClassifier");
|
|
129
87
|
let body;
|
|
130
88
|
body = JSON.stringify(se_DeleteDocumentClassifierRequest(input, context));
|
|
131
89
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
90
|
};
|
|
133
91
|
export const se_DeleteEndpointCommand = async (input, context) => {
|
|
134
|
-
const headers =
|
|
135
|
-
"content-type": "application/x-amz-json-1.1",
|
|
136
|
-
"x-amz-target": "Comprehend_20171127.DeleteEndpoint",
|
|
137
|
-
};
|
|
92
|
+
const headers = sharedHeaders("DeleteEndpoint");
|
|
138
93
|
let body;
|
|
139
94
|
body = JSON.stringify(se_DeleteEndpointRequest(input, context));
|
|
140
95
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
141
96
|
};
|
|
142
97
|
export const se_DeleteEntityRecognizerCommand = async (input, context) => {
|
|
143
|
-
const headers =
|
|
144
|
-
"content-type": "application/x-amz-json-1.1",
|
|
145
|
-
"x-amz-target": "Comprehend_20171127.DeleteEntityRecognizer",
|
|
146
|
-
};
|
|
98
|
+
const headers = sharedHeaders("DeleteEntityRecognizer");
|
|
147
99
|
let body;
|
|
148
100
|
body = JSON.stringify(se_DeleteEntityRecognizerRequest(input, context));
|
|
149
101
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
150
102
|
};
|
|
151
103
|
export const se_DeleteFlywheelCommand = async (input, context) => {
|
|
152
|
-
const headers =
|
|
153
|
-
"content-type": "application/x-amz-json-1.1",
|
|
154
|
-
"x-amz-target": "Comprehend_20171127.DeleteFlywheel",
|
|
155
|
-
};
|
|
104
|
+
const headers = sharedHeaders("DeleteFlywheel");
|
|
156
105
|
let body;
|
|
157
106
|
body = JSON.stringify(se_DeleteFlywheelRequest(input, context));
|
|
158
107
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
159
108
|
};
|
|
160
109
|
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
161
|
-
const headers =
|
|
162
|
-
"content-type": "application/x-amz-json-1.1",
|
|
163
|
-
"x-amz-target": "Comprehend_20171127.DeleteResourcePolicy",
|
|
164
|
-
};
|
|
110
|
+
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
165
111
|
let body;
|
|
166
112
|
body = JSON.stringify(se_DeleteResourcePolicyRequest(input, context));
|
|
167
113
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
114
|
};
|
|
169
115
|
export const se_DescribeDatasetCommand = async (input, context) => {
|
|
170
|
-
const headers =
|
|
171
|
-
"content-type": "application/x-amz-json-1.1",
|
|
172
|
-
"x-amz-target": "Comprehend_20171127.DescribeDataset",
|
|
173
|
-
};
|
|
116
|
+
const headers = sharedHeaders("DescribeDataset");
|
|
174
117
|
let body;
|
|
175
118
|
body = JSON.stringify(se_DescribeDatasetRequest(input, context));
|
|
176
119
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
120
|
};
|
|
178
121
|
export const se_DescribeDocumentClassificationJobCommand = async (input, context) => {
|
|
179
|
-
const headers =
|
|
180
|
-
"content-type": "application/x-amz-json-1.1",
|
|
181
|
-
"x-amz-target": "Comprehend_20171127.DescribeDocumentClassificationJob",
|
|
182
|
-
};
|
|
122
|
+
const headers = sharedHeaders("DescribeDocumentClassificationJob");
|
|
183
123
|
let body;
|
|
184
124
|
body = JSON.stringify(se_DescribeDocumentClassificationJobRequest(input, context));
|
|
185
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
126
|
};
|
|
187
127
|
export const se_DescribeDocumentClassifierCommand = async (input, context) => {
|
|
188
|
-
const headers =
|
|
189
|
-
"content-type": "application/x-amz-json-1.1",
|
|
190
|
-
"x-amz-target": "Comprehend_20171127.DescribeDocumentClassifier",
|
|
191
|
-
};
|
|
128
|
+
const headers = sharedHeaders("DescribeDocumentClassifier");
|
|
192
129
|
let body;
|
|
193
130
|
body = JSON.stringify(se_DescribeDocumentClassifierRequest(input, context));
|
|
194
131
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
195
132
|
};
|
|
196
133
|
export const se_DescribeDominantLanguageDetectionJobCommand = async (input, context) => {
|
|
197
|
-
const headers =
|
|
198
|
-
"content-type": "application/x-amz-json-1.1",
|
|
199
|
-
"x-amz-target": "Comprehend_20171127.DescribeDominantLanguageDetectionJob",
|
|
200
|
-
};
|
|
134
|
+
const headers = sharedHeaders("DescribeDominantLanguageDetectionJob");
|
|
201
135
|
let body;
|
|
202
136
|
body = JSON.stringify(se_DescribeDominantLanguageDetectionJobRequest(input, context));
|
|
203
137
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
138
|
};
|
|
205
139
|
export const se_DescribeEndpointCommand = async (input, context) => {
|
|
206
|
-
const headers =
|
|
207
|
-
"content-type": "application/x-amz-json-1.1",
|
|
208
|
-
"x-amz-target": "Comprehend_20171127.DescribeEndpoint",
|
|
209
|
-
};
|
|
140
|
+
const headers = sharedHeaders("DescribeEndpoint");
|
|
210
141
|
let body;
|
|
211
142
|
body = JSON.stringify(se_DescribeEndpointRequest(input, context));
|
|
212
143
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
213
144
|
};
|
|
214
145
|
export const se_DescribeEntitiesDetectionJobCommand = async (input, context) => {
|
|
215
|
-
const headers =
|
|
216
|
-
"content-type": "application/x-amz-json-1.1",
|
|
217
|
-
"x-amz-target": "Comprehend_20171127.DescribeEntitiesDetectionJob",
|
|
218
|
-
};
|
|
146
|
+
const headers = sharedHeaders("DescribeEntitiesDetectionJob");
|
|
219
147
|
let body;
|
|
220
148
|
body = JSON.stringify(se_DescribeEntitiesDetectionJobRequest(input, context));
|
|
221
149
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
222
150
|
};
|
|
223
151
|
export const se_DescribeEntityRecognizerCommand = async (input, context) => {
|
|
224
|
-
const headers =
|
|
225
|
-
"content-type": "application/x-amz-json-1.1",
|
|
226
|
-
"x-amz-target": "Comprehend_20171127.DescribeEntityRecognizer",
|
|
227
|
-
};
|
|
152
|
+
const headers = sharedHeaders("DescribeEntityRecognizer");
|
|
228
153
|
let body;
|
|
229
154
|
body = JSON.stringify(se_DescribeEntityRecognizerRequest(input, context));
|
|
230
155
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
231
156
|
};
|
|
232
157
|
export const se_DescribeEventsDetectionJobCommand = async (input, context) => {
|
|
233
|
-
const headers =
|
|
234
|
-
"content-type": "application/x-amz-json-1.1",
|
|
235
|
-
"x-amz-target": "Comprehend_20171127.DescribeEventsDetectionJob",
|
|
236
|
-
};
|
|
158
|
+
const headers = sharedHeaders("DescribeEventsDetectionJob");
|
|
237
159
|
let body;
|
|
238
160
|
body = JSON.stringify(se_DescribeEventsDetectionJobRequest(input, context));
|
|
239
161
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
162
|
};
|
|
241
163
|
export const se_DescribeFlywheelCommand = async (input, context) => {
|
|
242
|
-
const headers =
|
|
243
|
-
"content-type": "application/x-amz-json-1.1",
|
|
244
|
-
"x-amz-target": "Comprehend_20171127.DescribeFlywheel",
|
|
245
|
-
};
|
|
164
|
+
const headers = sharedHeaders("DescribeFlywheel");
|
|
246
165
|
let body;
|
|
247
166
|
body = JSON.stringify(se_DescribeFlywheelRequest(input, context));
|
|
248
167
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
249
168
|
};
|
|
250
169
|
export const se_DescribeFlywheelIterationCommand = async (input, context) => {
|
|
251
|
-
const headers =
|
|
252
|
-
"content-type": "application/x-amz-json-1.1",
|
|
253
|
-
"x-amz-target": "Comprehend_20171127.DescribeFlywheelIteration",
|
|
254
|
-
};
|
|
170
|
+
const headers = sharedHeaders("DescribeFlywheelIteration");
|
|
255
171
|
let body;
|
|
256
172
|
body = JSON.stringify(se_DescribeFlywheelIterationRequest(input, context));
|
|
257
173
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
258
174
|
};
|
|
259
175
|
export const se_DescribeKeyPhrasesDetectionJobCommand = async (input, context) => {
|
|
260
|
-
const headers =
|
|
261
|
-
"content-type": "application/x-amz-json-1.1",
|
|
262
|
-
"x-amz-target": "Comprehend_20171127.DescribeKeyPhrasesDetectionJob",
|
|
263
|
-
};
|
|
176
|
+
const headers = sharedHeaders("DescribeKeyPhrasesDetectionJob");
|
|
264
177
|
let body;
|
|
265
178
|
body = JSON.stringify(se_DescribeKeyPhrasesDetectionJobRequest(input, context));
|
|
266
179
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
180
|
};
|
|
268
181
|
export const se_DescribePiiEntitiesDetectionJobCommand = async (input, context) => {
|
|
269
|
-
const headers =
|
|
270
|
-
"content-type": "application/x-amz-json-1.1",
|
|
271
|
-
"x-amz-target": "Comprehend_20171127.DescribePiiEntitiesDetectionJob",
|
|
272
|
-
};
|
|
182
|
+
const headers = sharedHeaders("DescribePiiEntitiesDetectionJob");
|
|
273
183
|
let body;
|
|
274
184
|
body = JSON.stringify(se_DescribePiiEntitiesDetectionJobRequest(input, context));
|
|
275
185
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
276
186
|
};
|
|
277
187
|
export const se_DescribeResourcePolicyCommand = async (input, context) => {
|
|
278
|
-
const headers =
|
|
279
|
-
"content-type": "application/x-amz-json-1.1",
|
|
280
|
-
"x-amz-target": "Comprehend_20171127.DescribeResourcePolicy",
|
|
281
|
-
};
|
|
188
|
+
const headers = sharedHeaders("DescribeResourcePolicy");
|
|
282
189
|
let body;
|
|
283
190
|
body = JSON.stringify(se_DescribeResourcePolicyRequest(input, context));
|
|
284
191
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
285
192
|
};
|
|
286
193
|
export const se_DescribeSentimentDetectionJobCommand = async (input, context) => {
|
|
287
|
-
const headers =
|
|
288
|
-
"content-type": "application/x-amz-json-1.1",
|
|
289
|
-
"x-amz-target": "Comprehend_20171127.DescribeSentimentDetectionJob",
|
|
290
|
-
};
|
|
194
|
+
const headers = sharedHeaders("DescribeSentimentDetectionJob");
|
|
291
195
|
let body;
|
|
292
196
|
body = JSON.stringify(se_DescribeSentimentDetectionJobRequest(input, context));
|
|
293
197
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
294
198
|
};
|
|
295
199
|
export const se_DescribeTargetedSentimentDetectionJobCommand = async (input, context) => {
|
|
296
|
-
const headers =
|
|
297
|
-
"content-type": "application/x-amz-json-1.1",
|
|
298
|
-
"x-amz-target": "Comprehend_20171127.DescribeTargetedSentimentDetectionJob",
|
|
299
|
-
};
|
|
200
|
+
const headers = sharedHeaders("DescribeTargetedSentimentDetectionJob");
|
|
300
201
|
let body;
|
|
301
202
|
body = JSON.stringify(se_DescribeTargetedSentimentDetectionJobRequest(input, context));
|
|
302
203
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
303
204
|
};
|
|
304
205
|
export const se_DescribeTopicsDetectionJobCommand = async (input, context) => {
|
|
305
|
-
const headers =
|
|
306
|
-
"content-type": "application/x-amz-json-1.1",
|
|
307
|
-
"x-amz-target": "Comprehend_20171127.DescribeTopicsDetectionJob",
|
|
308
|
-
};
|
|
206
|
+
const headers = sharedHeaders("DescribeTopicsDetectionJob");
|
|
309
207
|
let body;
|
|
310
208
|
body = JSON.stringify(se_DescribeTopicsDetectionJobRequest(input, context));
|
|
311
209
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
312
210
|
};
|
|
313
211
|
export const se_DetectDominantLanguageCommand = async (input, context) => {
|
|
314
|
-
const headers =
|
|
315
|
-
"content-type": "application/x-amz-json-1.1",
|
|
316
|
-
"x-amz-target": "Comprehend_20171127.DetectDominantLanguage",
|
|
317
|
-
};
|
|
212
|
+
const headers = sharedHeaders("DetectDominantLanguage");
|
|
318
213
|
let body;
|
|
319
214
|
body = JSON.stringify(se_DetectDominantLanguageRequest(input, context));
|
|
320
215
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
321
216
|
};
|
|
322
217
|
export const se_DetectEntitiesCommand = async (input, context) => {
|
|
323
|
-
const headers =
|
|
324
|
-
"content-type": "application/x-amz-json-1.1",
|
|
325
|
-
"x-amz-target": "Comprehend_20171127.DetectEntities",
|
|
326
|
-
};
|
|
218
|
+
const headers = sharedHeaders("DetectEntities");
|
|
327
219
|
let body;
|
|
328
220
|
body = JSON.stringify(se_DetectEntitiesRequest(input, context));
|
|
329
221
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
330
222
|
};
|
|
331
223
|
export const se_DetectKeyPhrasesCommand = async (input, context) => {
|
|
332
|
-
const headers =
|
|
333
|
-
"content-type": "application/x-amz-json-1.1",
|
|
334
|
-
"x-amz-target": "Comprehend_20171127.DetectKeyPhrases",
|
|
335
|
-
};
|
|
224
|
+
const headers = sharedHeaders("DetectKeyPhrases");
|
|
336
225
|
let body;
|
|
337
226
|
body = JSON.stringify(se_DetectKeyPhrasesRequest(input, context));
|
|
338
227
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
339
228
|
};
|
|
340
229
|
export const se_DetectPiiEntitiesCommand = async (input, context) => {
|
|
341
|
-
const headers =
|
|
342
|
-
"content-type": "application/x-amz-json-1.1",
|
|
343
|
-
"x-amz-target": "Comprehend_20171127.DetectPiiEntities",
|
|
344
|
-
};
|
|
230
|
+
const headers = sharedHeaders("DetectPiiEntities");
|
|
345
231
|
let body;
|
|
346
232
|
body = JSON.stringify(se_DetectPiiEntitiesRequest(input, context));
|
|
347
233
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
348
234
|
};
|
|
349
235
|
export const se_DetectSentimentCommand = async (input, context) => {
|
|
350
|
-
const headers =
|
|
351
|
-
"content-type": "application/x-amz-json-1.1",
|
|
352
|
-
"x-amz-target": "Comprehend_20171127.DetectSentiment",
|
|
353
|
-
};
|
|
236
|
+
const headers = sharedHeaders("DetectSentiment");
|
|
354
237
|
let body;
|
|
355
238
|
body = JSON.stringify(se_DetectSentimentRequest(input, context));
|
|
356
239
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
240
|
};
|
|
358
241
|
export const se_DetectSyntaxCommand = async (input, context) => {
|
|
359
|
-
const headers =
|
|
360
|
-
"content-type": "application/x-amz-json-1.1",
|
|
361
|
-
"x-amz-target": "Comprehend_20171127.DetectSyntax",
|
|
362
|
-
};
|
|
242
|
+
const headers = sharedHeaders("DetectSyntax");
|
|
363
243
|
let body;
|
|
364
244
|
body = JSON.stringify(se_DetectSyntaxRequest(input, context));
|
|
365
245
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
366
246
|
};
|
|
367
247
|
export const se_DetectTargetedSentimentCommand = async (input, context) => {
|
|
368
|
-
const headers =
|
|
369
|
-
"content-type": "application/x-amz-json-1.1",
|
|
370
|
-
"x-amz-target": "Comprehend_20171127.DetectTargetedSentiment",
|
|
371
|
-
};
|
|
248
|
+
const headers = sharedHeaders("DetectTargetedSentiment");
|
|
372
249
|
let body;
|
|
373
250
|
body = JSON.stringify(se_DetectTargetedSentimentRequest(input, context));
|
|
374
251
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
375
252
|
};
|
|
376
253
|
export const se_ImportModelCommand = async (input, context) => {
|
|
377
|
-
const headers =
|
|
378
|
-
"content-type": "application/x-amz-json-1.1",
|
|
379
|
-
"x-amz-target": "Comprehend_20171127.ImportModel",
|
|
380
|
-
};
|
|
254
|
+
const headers = sharedHeaders("ImportModel");
|
|
381
255
|
let body;
|
|
382
256
|
body = JSON.stringify(se_ImportModelRequest(input, context));
|
|
383
257
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
384
258
|
};
|
|
385
259
|
export const se_ListDatasetsCommand = async (input, context) => {
|
|
386
|
-
const headers =
|
|
387
|
-
"content-type": "application/x-amz-json-1.1",
|
|
388
|
-
"x-amz-target": "Comprehend_20171127.ListDatasets",
|
|
389
|
-
};
|
|
260
|
+
const headers = sharedHeaders("ListDatasets");
|
|
390
261
|
let body;
|
|
391
262
|
body = JSON.stringify(se_ListDatasetsRequest(input, context));
|
|
392
263
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
393
264
|
};
|
|
394
265
|
export const se_ListDocumentClassificationJobsCommand = async (input, context) => {
|
|
395
|
-
const headers =
|
|
396
|
-
"content-type": "application/x-amz-json-1.1",
|
|
397
|
-
"x-amz-target": "Comprehend_20171127.ListDocumentClassificationJobs",
|
|
398
|
-
};
|
|
266
|
+
const headers = sharedHeaders("ListDocumentClassificationJobs");
|
|
399
267
|
let body;
|
|
400
268
|
body = JSON.stringify(se_ListDocumentClassificationJobsRequest(input, context));
|
|
401
269
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
402
270
|
};
|
|
403
271
|
export const se_ListDocumentClassifiersCommand = async (input, context) => {
|
|
404
|
-
const headers =
|
|
405
|
-
"content-type": "application/x-amz-json-1.1",
|
|
406
|
-
"x-amz-target": "Comprehend_20171127.ListDocumentClassifiers",
|
|
407
|
-
};
|
|
272
|
+
const headers = sharedHeaders("ListDocumentClassifiers");
|
|
408
273
|
let body;
|
|
409
274
|
body = JSON.stringify(se_ListDocumentClassifiersRequest(input, context));
|
|
410
275
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
411
276
|
};
|
|
412
277
|
export const se_ListDocumentClassifierSummariesCommand = async (input, context) => {
|
|
413
|
-
const headers =
|
|
414
|
-
"content-type": "application/x-amz-json-1.1",
|
|
415
|
-
"x-amz-target": "Comprehend_20171127.ListDocumentClassifierSummaries",
|
|
416
|
-
};
|
|
278
|
+
const headers = sharedHeaders("ListDocumentClassifierSummaries");
|
|
417
279
|
let body;
|
|
418
280
|
body = JSON.stringify(se_ListDocumentClassifierSummariesRequest(input, context));
|
|
419
281
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
420
282
|
};
|
|
421
283
|
export const se_ListDominantLanguageDetectionJobsCommand = async (input, context) => {
|
|
422
|
-
const headers =
|
|
423
|
-
"content-type": "application/x-amz-json-1.1",
|
|
424
|
-
"x-amz-target": "Comprehend_20171127.ListDominantLanguageDetectionJobs",
|
|
425
|
-
};
|
|
284
|
+
const headers = sharedHeaders("ListDominantLanguageDetectionJobs");
|
|
426
285
|
let body;
|
|
427
286
|
body = JSON.stringify(se_ListDominantLanguageDetectionJobsRequest(input, context));
|
|
428
287
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
429
288
|
};
|
|
430
289
|
export const se_ListEndpointsCommand = async (input, context) => {
|
|
431
|
-
const headers =
|
|
432
|
-
"content-type": "application/x-amz-json-1.1",
|
|
433
|
-
"x-amz-target": "Comprehend_20171127.ListEndpoints",
|
|
434
|
-
};
|
|
290
|
+
const headers = sharedHeaders("ListEndpoints");
|
|
435
291
|
let body;
|
|
436
292
|
body = JSON.stringify(se_ListEndpointsRequest(input, context));
|
|
437
293
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
438
294
|
};
|
|
439
295
|
export const se_ListEntitiesDetectionJobsCommand = async (input, context) => {
|
|
440
|
-
const headers =
|
|
441
|
-
"content-type": "application/x-amz-json-1.1",
|
|
442
|
-
"x-amz-target": "Comprehend_20171127.ListEntitiesDetectionJobs",
|
|
443
|
-
};
|
|
296
|
+
const headers = sharedHeaders("ListEntitiesDetectionJobs");
|
|
444
297
|
let body;
|
|
445
298
|
body = JSON.stringify(se_ListEntitiesDetectionJobsRequest(input, context));
|
|
446
299
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
447
300
|
};
|
|
448
301
|
export const se_ListEntityRecognizersCommand = async (input, context) => {
|
|
449
|
-
const headers =
|
|
450
|
-
"content-type": "application/x-amz-json-1.1",
|
|
451
|
-
"x-amz-target": "Comprehend_20171127.ListEntityRecognizers",
|
|
452
|
-
};
|
|
302
|
+
const headers = sharedHeaders("ListEntityRecognizers");
|
|
453
303
|
let body;
|
|
454
304
|
body = JSON.stringify(se_ListEntityRecognizersRequest(input, context));
|
|
455
305
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
456
306
|
};
|
|
457
307
|
export const se_ListEntityRecognizerSummariesCommand = async (input, context) => {
|
|
458
|
-
const headers =
|
|
459
|
-
"content-type": "application/x-amz-json-1.1",
|
|
460
|
-
"x-amz-target": "Comprehend_20171127.ListEntityRecognizerSummaries",
|
|
461
|
-
};
|
|
308
|
+
const headers = sharedHeaders("ListEntityRecognizerSummaries");
|
|
462
309
|
let body;
|
|
463
310
|
body = JSON.stringify(se_ListEntityRecognizerSummariesRequest(input, context));
|
|
464
311
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
465
312
|
};
|
|
466
313
|
export const se_ListEventsDetectionJobsCommand = async (input, context) => {
|
|
467
|
-
const headers =
|
|
468
|
-
"content-type": "application/x-amz-json-1.1",
|
|
469
|
-
"x-amz-target": "Comprehend_20171127.ListEventsDetectionJobs",
|
|
470
|
-
};
|
|
314
|
+
const headers = sharedHeaders("ListEventsDetectionJobs");
|
|
471
315
|
let body;
|
|
472
316
|
body = JSON.stringify(se_ListEventsDetectionJobsRequest(input, context));
|
|
473
317
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
474
318
|
};
|
|
475
319
|
export const se_ListFlywheelIterationHistoryCommand = async (input, context) => {
|
|
476
|
-
const headers =
|
|
477
|
-
"content-type": "application/x-amz-json-1.1",
|
|
478
|
-
"x-amz-target": "Comprehend_20171127.ListFlywheelIterationHistory",
|
|
479
|
-
};
|
|
320
|
+
const headers = sharedHeaders("ListFlywheelIterationHistory");
|
|
480
321
|
let body;
|
|
481
322
|
body = JSON.stringify(se_ListFlywheelIterationHistoryRequest(input, context));
|
|
482
323
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
483
324
|
};
|
|
484
325
|
export const se_ListFlywheelsCommand = async (input, context) => {
|
|
485
|
-
const headers =
|
|
486
|
-
"content-type": "application/x-amz-json-1.1",
|
|
487
|
-
"x-amz-target": "Comprehend_20171127.ListFlywheels",
|
|
488
|
-
};
|
|
326
|
+
const headers = sharedHeaders("ListFlywheels");
|
|
489
327
|
let body;
|
|
490
328
|
body = JSON.stringify(se_ListFlywheelsRequest(input, context));
|
|
491
329
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
492
330
|
};
|
|
493
331
|
export const se_ListKeyPhrasesDetectionJobsCommand = async (input, context) => {
|
|
494
|
-
const headers =
|
|
495
|
-
"content-type": "application/x-amz-json-1.1",
|
|
496
|
-
"x-amz-target": "Comprehend_20171127.ListKeyPhrasesDetectionJobs",
|
|
497
|
-
};
|
|
332
|
+
const headers = sharedHeaders("ListKeyPhrasesDetectionJobs");
|
|
498
333
|
let body;
|
|
499
334
|
body = JSON.stringify(se_ListKeyPhrasesDetectionJobsRequest(input, context));
|
|
500
335
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
501
336
|
};
|
|
502
337
|
export const se_ListPiiEntitiesDetectionJobsCommand = async (input, context) => {
|
|
503
|
-
const headers =
|
|
504
|
-
"content-type": "application/x-amz-json-1.1",
|
|
505
|
-
"x-amz-target": "Comprehend_20171127.ListPiiEntitiesDetectionJobs",
|
|
506
|
-
};
|
|
338
|
+
const headers = sharedHeaders("ListPiiEntitiesDetectionJobs");
|
|
507
339
|
let body;
|
|
508
340
|
body = JSON.stringify(se_ListPiiEntitiesDetectionJobsRequest(input, context));
|
|
509
341
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
510
342
|
};
|
|
511
343
|
export const se_ListSentimentDetectionJobsCommand = async (input, context) => {
|
|
512
|
-
const headers =
|
|
513
|
-
"content-type": "application/x-amz-json-1.1",
|
|
514
|
-
"x-amz-target": "Comprehend_20171127.ListSentimentDetectionJobs",
|
|
515
|
-
};
|
|
344
|
+
const headers = sharedHeaders("ListSentimentDetectionJobs");
|
|
516
345
|
let body;
|
|
517
346
|
body = JSON.stringify(se_ListSentimentDetectionJobsRequest(input, context));
|
|
518
347
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
519
348
|
};
|
|
520
349
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
521
|
-
const headers =
|
|
522
|
-
"content-type": "application/x-amz-json-1.1",
|
|
523
|
-
"x-amz-target": "Comprehend_20171127.ListTagsForResource",
|
|
524
|
-
};
|
|
350
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
525
351
|
let body;
|
|
526
352
|
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
527
353
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
528
354
|
};
|
|
529
355
|
export const se_ListTargetedSentimentDetectionJobsCommand = async (input, context) => {
|
|
530
|
-
const headers =
|
|
531
|
-
"content-type": "application/x-amz-json-1.1",
|
|
532
|
-
"x-amz-target": "Comprehend_20171127.ListTargetedSentimentDetectionJobs",
|
|
533
|
-
};
|
|
356
|
+
const headers = sharedHeaders("ListTargetedSentimentDetectionJobs");
|
|
534
357
|
let body;
|
|
535
358
|
body = JSON.stringify(se_ListTargetedSentimentDetectionJobsRequest(input, context));
|
|
536
359
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
537
360
|
};
|
|
538
361
|
export const se_ListTopicsDetectionJobsCommand = async (input, context) => {
|
|
539
|
-
const headers =
|
|
540
|
-
"content-type": "application/x-amz-json-1.1",
|
|
541
|
-
"x-amz-target": "Comprehend_20171127.ListTopicsDetectionJobs",
|
|
542
|
-
};
|
|
362
|
+
const headers = sharedHeaders("ListTopicsDetectionJobs");
|
|
543
363
|
let body;
|
|
544
364
|
body = JSON.stringify(se_ListTopicsDetectionJobsRequest(input, context));
|
|
545
365
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
546
366
|
};
|
|
547
367
|
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
548
|
-
const headers =
|
|
549
|
-
"content-type": "application/x-amz-json-1.1",
|
|
550
|
-
"x-amz-target": "Comprehend_20171127.PutResourcePolicy",
|
|
551
|
-
};
|
|
368
|
+
const headers = sharedHeaders("PutResourcePolicy");
|
|
552
369
|
let body;
|
|
553
370
|
body = JSON.stringify(se_PutResourcePolicyRequest(input, context));
|
|
554
371
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
555
372
|
};
|
|
556
373
|
export const se_StartDocumentClassificationJobCommand = async (input, context) => {
|
|
557
|
-
const headers =
|
|
558
|
-
"content-type": "application/x-amz-json-1.1",
|
|
559
|
-
"x-amz-target": "Comprehend_20171127.StartDocumentClassificationJob",
|
|
560
|
-
};
|
|
374
|
+
const headers = sharedHeaders("StartDocumentClassificationJob");
|
|
561
375
|
let body;
|
|
562
376
|
body = JSON.stringify(se_StartDocumentClassificationJobRequest(input, context));
|
|
563
377
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
564
378
|
};
|
|
565
379
|
export const se_StartDominantLanguageDetectionJobCommand = async (input, context) => {
|
|
566
|
-
const headers =
|
|
567
|
-
"content-type": "application/x-amz-json-1.1",
|
|
568
|
-
"x-amz-target": "Comprehend_20171127.StartDominantLanguageDetectionJob",
|
|
569
|
-
};
|
|
380
|
+
const headers = sharedHeaders("StartDominantLanguageDetectionJob");
|
|
570
381
|
let body;
|
|
571
382
|
body = JSON.stringify(se_StartDominantLanguageDetectionJobRequest(input, context));
|
|
572
383
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
573
384
|
};
|
|
574
385
|
export const se_StartEntitiesDetectionJobCommand = async (input, context) => {
|
|
575
|
-
const headers =
|
|
576
|
-
"content-type": "application/x-amz-json-1.1",
|
|
577
|
-
"x-amz-target": "Comprehend_20171127.StartEntitiesDetectionJob",
|
|
578
|
-
};
|
|
386
|
+
const headers = sharedHeaders("StartEntitiesDetectionJob");
|
|
579
387
|
let body;
|
|
580
388
|
body = JSON.stringify(se_StartEntitiesDetectionJobRequest(input, context));
|
|
581
389
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
582
390
|
};
|
|
583
391
|
export const se_StartEventsDetectionJobCommand = async (input, context) => {
|
|
584
|
-
const headers =
|
|
585
|
-
"content-type": "application/x-amz-json-1.1",
|
|
586
|
-
"x-amz-target": "Comprehend_20171127.StartEventsDetectionJob",
|
|
587
|
-
};
|
|
392
|
+
const headers = sharedHeaders("StartEventsDetectionJob");
|
|
588
393
|
let body;
|
|
589
394
|
body = JSON.stringify(se_StartEventsDetectionJobRequest(input, context));
|
|
590
395
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
591
396
|
};
|
|
592
397
|
export const se_StartFlywheelIterationCommand = async (input, context) => {
|
|
593
|
-
const headers =
|
|
594
|
-
"content-type": "application/x-amz-json-1.1",
|
|
595
|
-
"x-amz-target": "Comprehend_20171127.StartFlywheelIteration",
|
|
596
|
-
};
|
|
398
|
+
const headers = sharedHeaders("StartFlywheelIteration");
|
|
597
399
|
let body;
|
|
598
400
|
body = JSON.stringify(se_StartFlywheelIterationRequest(input, context));
|
|
599
401
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
600
402
|
};
|
|
601
403
|
export const se_StartKeyPhrasesDetectionJobCommand = async (input, context) => {
|
|
602
|
-
const headers =
|
|
603
|
-
"content-type": "application/x-amz-json-1.1",
|
|
604
|
-
"x-amz-target": "Comprehend_20171127.StartKeyPhrasesDetectionJob",
|
|
605
|
-
};
|
|
404
|
+
const headers = sharedHeaders("StartKeyPhrasesDetectionJob");
|
|
606
405
|
let body;
|
|
607
406
|
body = JSON.stringify(se_StartKeyPhrasesDetectionJobRequest(input, context));
|
|
608
407
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
609
408
|
};
|
|
610
409
|
export const se_StartPiiEntitiesDetectionJobCommand = async (input, context) => {
|
|
611
|
-
const headers =
|
|
612
|
-
"content-type": "application/x-amz-json-1.1",
|
|
613
|
-
"x-amz-target": "Comprehend_20171127.StartPiiEntitiesDetectionJob",
|
|
614
|
-
};
|
|
410
|
+
const headers = sharedHeaders("StartPiiEntitiesDetectionJob");
|
|
615
411
|
let body;
|
|
616
412
|
body = JSON.stringify(se_StartPiiEntitiesDetectionJobRequest(input, context));
|
|
617
413
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
618
414
|
};
|
|
619
415
|
export const se_StartSentimentDetectionJobCommand = async (input, context) => {
|
|
620
|
-
const headers =
|
|
621
|
-
"content-type": "application/x-amz-json-1.1",
|
|
622
|
-
"x-amz-target": "Comprehend_20171127.StartSentimentDetectionJob",
|
|
623
|
-
};
|
|
416
|
+
const headers = sharedHeaders("StartSentimentDetectionJob");
|
|
624
417
|
let body;
|
|
625
418
|
body = JSON.stringify(se_StartSentimentDetectionJobRequest(input, context));
|
|
626
419
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
627
420
|
};
|
|
628
421
|
export const se_StartTargetedSentimentDetectionJobCommand = async (input, context) => {
|
|
629
|
-
const headers =
|
|
630
|
-
"content-type": "application/x-amz-json-1.1",
|
|
631
|
-
"x-amz-target": "Comprehend_20171127.StartTargetedSentimentDetectionJob",
|
|
632
|
-
};
|
|
422
|
+
const headers = sharedHeaders("StartTargetedSentimentDetectionJob");
|
|
633
423
|
let body;
|
|
634
424
|
body = JSON.stringify(se_StartTargetedSentimentDetectionJobRequest(input, context));
|
|
635
425
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
636
426
|
};
|
|
637
427
|
export const se_StartTopicsDetectionJobCommand = async (input, context) => {
|
|
638
|
-
const headers =
|
|
639
|
-
"content-type": "application/x-amz-json-1.1",
|
|
640
|
-
"x-amz-target": "Comprehend_20171127.StartTopicsDetectionJob",
|
|
641
|
-
};
|
|
428
|
+
const headers = sharedHeaders("StartTopicsDetectionJob");
|
|
642
429
|
let body;
|
|
643
430
|
body = JSON.stringify(se_StartTopicsDetectionJobRequest(input, context));
|
|
644
431
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
645
432
|
};
|
|
646
433
|
export const se_StopDominantLanguageDetectionJobCommand = async (input, context) => {
|
|
647
|
-
const headers =
|
|
648
|
-
"content-type": "application/x-amz-json-1.1",
|
|
649
|
-
"x-amz-target": "Comprehend_20171127.StopDominantLanguageDetectionJob",
|
|
650
|
-
};
|
|
434
|
+
const headers = sharedHeaders("StopDominantLanguageDetectionJob");
|
|
651
435
|
let body;
|
|
652
436
|
body = JSON.stringify(se_StopDominantLanguageDetectionJobRequest(input, context));
|
|
653
437
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
654
438
|
};
|
|
655
439
|
export const se_StopEntitiesDetectionJobCommand = async (input, context) => {
|
|
656
|
-
const headers =
|
|
657
|
-
"content-type": "application/x-amz-json-1.1",
|
|
658
|
-
"x-amz-target": "Comprehend_20171127.StopEntitiesDetectionJob",
|
|
659
|
-
};
|
|
440
|
+
const headers = sharedHeaders("StopEntitiesDetectionJob");
|
|
660
441
|
let body;
|
|
661
442
|
body = JSON.stringify(se_StopEntitiesDetectionJobRequest(input, context));
|
|
662
443
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
663
444
|
};
|
|
664
445
|
export const se_StopEventsDetectionJobCommand = async (input, context) => {
|
|
665
|
-
const headers =
|
|
666
|
-
"content-type": "application/x-amz-json-1.1",
|
|
667
|
-
"x-amz-target": "Comprehend_20171127.StopEventsDetectionJob",
|
|
668
|
-
};
|
|
446
|
+
const headers = sharedHeaders("StopEventsDetectionJob");
|
|
669
447
|
let body;
|
|
670
448
|
body = JSON.stringify(se_StopEventsDetectionJobRequest(input, context));
|
|
671
449
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
672
450
|
};
|
|
673
451
|
export const se_StopKeyPhrasesDetectionJobCommand = async (input, context) => {
|
|
674
|
-
const headers =
|
|
675
|
-
"content-type": "application/x-amz-json-1.1",
|
|
676
|
-
"x-amz-target": "Comprehend_20171127.StopKeyPhrasesDetectionJob",
|
|
677
|
-
};
|
|
452
|
+
const headers = sharedHeaders("StopKeyPhrasesDetectionJob");
|
|
678
453
|
let body;
|
|
679
454
|
body = JSON.stringify(se_StopKeyPhrasesDetectionJobRequest(input, context));
|
|
680
455
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
681
456
|
};
|
|
682
457
|
export const se_StopPiiEntitiesDetectionJobCommand = async (input, context) => {
|
|
683
|
-
const headers =
|
|
684
|
-
"content-type": "application/x-amz-json-1.1",
|
|
685
|
-
"x-amz-target": "Comprehend_20171127.StopPiiEntitiesDetectionJob",
|
|
686
|
-
};
|
|
458
|
+
const headers = sharedHeaders("StopPiiEntitiesDetectionJob");
|
|
687
459
|
let body;
|
|
688
460
|
body = JSON.stringify(se_StopPiiEntitiesDetectionJobRequest(input, context));
|
|
689
461
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
690
462
|
};
|
|
691
463
|
export const se_StopSentimentDetectionJobCommand = async (input, context) => {
|
|
692
|
-
const headers =
|
|
693
|
-
"content-type": "application/x-amz-json-1.1",
|
|
694
|
-
"x-amz-target": "Comprehend_20171127.StopSentimentDetectionJob",
|
|
695
|
-
};
|
|
464
|
+
const headers = sharedHeaders("StopSentimentDetectionJob");
|
|
696
465
|
let body;
|
|
697
466
|
body = JSON.stringify(se_StopSentimentDetectionJobRequest(input, context));
|
|
698
467
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
699
468
|
};
|
|
700
469
|
export const se_StopTargetedSentimentDetectionJobCommand = async (input, context) => {
|
|
701
|
-
const headers =
|
|
702
|
-
"content-type": "application/x-amz-json-1.1",
|
|
703
|
-
"x-amz-target": "Comprehend_20171127.StopTargetedSentimentDetectionJob",
|
|
704
|
-
};
|
|
470
|
+
const headers = sharedHeaders("StopTargetedSentimentDetectionJob");
|
|
705
471
|
let body;
|
|
706
472
|
body = JSON.stringify(se_StopTargetedSentimentDetectionJobRequest(input, context));
|
|
707
473
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
708
474
|
};
|
|
709
475
|
export const se_StopTrainingDocumentClassifierCommand = async (input, context) => {
|
|
710
|
-
const headers =
|
|
711
|
-
"content-type": "application/x-amz-json-1.1",
|
|
712
|
-
"x-amz-target": "Comprehend_20171127.StopTrainingDocumentClassifier",
|
|
713
|
-
};
|
|
476
|
+
const headers = sharedHeaders("StopTrainingDocumentClassifier");
|
|
714
477
|
let body;
|
|
715
478
|
body = JSON.stringify(se_StopTrainingDocumentClassifierRequest(input, context));
|
|
716
479
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
717
480
|
};
|
|
718
481
|
export const se_StopTrainingEntityRecognizerCommand = async (input, context) => {
|
|
719
|
-
const headers =
|
|
720
|
-
"content-type": "application/x-amz-json-1.1",
|
|
721
|
-
"x-amz-target": "Comprehend_20171127.StopTrainingEntityRecognizer",
|
|
722
|
-
};
|
|
482
|
+
const headers = sharedHeaders("StopTrainingEntityRecognizer");
|
|
723
483
|
let body;
|
|
724
484
|
body = JSON.stringify(se_StopTrainingEntityRecognizerRequest(input, context));
|
|
725
485
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
726
486
|
};
|
|
727
487
|
export const se_TagResourceCommand = async (input, context) => {
|
|
728
|
-
const headers =
|
|
729
|
-
"content-type": "application/x-amz-json-1.1",
|
|
730
|
-
"x-amz-target": "Comprehend_20171127.TagResource",
|
|
731
|
-
};
|
|
488
|
+
const headers = sharedHeaders("TagResource");
|
|
732
489
|
let body;
|
|
733
490
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
734
491
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
735
492
|
};
|
|
736
493
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
737
|
-
const headers =
|
|
738
|
-
"content-type": "application/x-amz-json-1.1",
|
|
739
|
-
"x-amz-target": "Comprehend_20171127.UntagResource",
|
|
740
|
-
};
|
|
494
|
+
const headers = sharedHeaders("UntagResource");
|
|
741
495
|
let body;
|
|
742
496
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
743
497
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
744
498
|
};
|
|
745
499
|
export const se_UpdateEndpointCommand = async (input, context) => {
|
|
746
|
-
const headers =
|
|
747
|
-
"content-type": "application/x-amz-json-1.1",
|
|
748
|
-
"x-amz-target": "Comprehend_20171127.UpdateEndpoint",
|
|
749
|
-
};
|
|
500
|
+
const headers = sharedHeaders("UpdateEndpoint");
|
|
750
501
|
let body;
|
|
751
502
|
body = JSON.stringify(se_UpdateEndpointRequest(input, context));
|
|
752
503
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
753
504
|
};
|
|
754
505
|
export const se_UpdateFlywheelCommand = async (input, context) => {
|
|
755
|
-
const headers =
|
|
756
|
-
"content-type": "application/x-amz-json-1.1",
|
|
757
|
-
"x-amz-target": "Comprehend_20171127.UpdateFlywheel",
|
|
758
|
-
};
|
|
506
|
+
const headers = sharedHeaders("UpdateFlywheel");
|
|
759
507
|
let body;
|
|
760
508
|
body = JSON.stringify(se_UpdateFlywheelRequest(input, context));
|
|
761
509
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -7625,6 +7373,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
7625
7373
|
}
|
|
7626
7374
|
return new __HttpRequest(contents);
|
|
7627
7375
|
};
|
|
7376
|
+
function sharedHeaders(operation) {
|
|
7377
|
+
return {
|
|
7378
|
+
"content-type": "application/x-amz-json-1.1",
|
|
7379
|
+
"x-amz-target": `Comprehend_20171127.${operation}`,
|
|
7380
|
+
};
|
|
7381
|
+
}
|
|
7628
7382
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
7629
7383
|
if (encoded.length) {
|
|
7630
7384
|
return JSON.parse(encoded);
|