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