1 | {
|
2 | "version": "2.0",
|
3 | "metadata": {
|
4 | "apiVersion": "2018-06-27",
|
5 | "endpointPrefix": "textract",
|
6 | "jsonVersion": "1.1",
|
7 | "protocol": "json",
|
8 | "serviceFullName": "Amazon Textract",
|
9 | "serviceId": "Textract",
|
10 | "signatureVersion": "v4",
|
11 | "targetPrefix": "Textract",
|
12 | "uid": "textract-2018-06-27"
|
13 | },
|
14 | "operations": {
|
15 | "AnalyzeDocument": {
|
16 | "input": {
|
17 | "type": "structure",
|
18 | "required": [
|
19 | "Document",
|
20 | "FeatureTypes"
|
21 | ],
|
22 | "members": {
|
23 | "Document": {
|
24 | "shape": "S2"
|
25 | },
|
26 | "FeatureTypes": {
|
27 | "shape": "S8"
|
28 | },
|
29 | "HumanLoopConfig": {
|
30 | "type": "structure",
|
31 | "required": [
|
32 | "HumanLoopName",
|
33 | "FlowDefinitionArn"
|
34 | ],
|
35 | "members": {
|
36 | "HumanLoopName": {},
|
37 | "FlowDefinitionArn": {},
|
38 | "DataAttributes": {
|
39 | "type": "structure",
|
40 | "members": {
|
41 | "ContentClassifiers": {
|
42 | "type": "list",
|
43 | "member": {}
|
44 | }
|
45 | }
|
46 | }
|
47 | }
|
48 | }
|
49 | }
|
50 | },
|
51 | "output": {
|
52 | "type": "structure",
|
53 | "members": {
|
54 | "DocumentMetadata": {
|
55 | "shape": "Sh"
|
56 | },
|
57 | "Blocks": {
|
58 | "shape": "Sj"
|
59 | },
|
60 | "HumanLoopActivationOutput": {
|
61 | "type": "structure",
|
62 | "members": {
|
63 | "HumanLoopArn": {},
|
64 | "HumanLoopActivationReasons": {
|
65 | "type": "list",
|
66 | "member": {}
|
67 | },
|
68 | "HumanLoopActivationConditionsEvaluationResults": {
|
69 | "jsonvalue": true
|
70 | }
|
71 | }
|
72 | },
|
73 | "AnalyzeDocumentModelVersion": {}
|
74 | }
|
75 | }
|
76 | },
|
77 | "DetectDocumentText": {
|
78 | "input": {
|
79 | "type": "structure",
|
80 | "required": [
|
81 | "Document"
|
82 | ],
|
83 | "members": {
|
84 | "Document": {
|
85 | "shape": "S2"
|
86 | }
|
87 | }
|
88 | },
|
89 | "output": {
|
90 | "type": "structure",
|
91 | "members": {
|
92 | "DocumentMetadata": {
|
93 | "shape": "Sh"
|
94 | },
|
95 | "Blocks": {
|
96 | "shape": "Sj"
|
97 | },
|
98 | "DetectDocumentTextModelVersion": {}
|
99 | }
|
100 | }
|
101 | },
|
102 | "GetDocumentAnalysis": {
|
103 | "input": {
|
104 | "type": "structure",
|
105 | "required": [
|
106 | "JobId"
|
107 | ],
|
108 | "members": {
|
109 | "JobId": {},
|
110 | "MaxResults": {
|
111 | "type": "integer"
|
112 | },
|
113 | "NextToken": {}
|
114 | }
|
115 | },
|
116 | "output": {
|
117 | "type": "structure",
|
118 | "members": {
|
119 | "DocumentMetadata": {
|
120 | "shape": "Sh"
|
121 | },
|
122 | "JobStatus": {},
|
123 | "NextToken": {},
|
124 | "Blocks": {
|
125 | "shape": "Sj"
|
126 | },
|
127 | "Warnings": {
|
128 | "shape": "S1e"
|
129 | },
|
130 | "StatusMessage": {},
|
131 | "AnalyzeDocumentModelVersion": {}
|
132 | }
|
133 | }
|
134 | },
|
135 | "GetDocumentTextDetection": {
|
136 | "input": {
|
137 | "type": "structure",
|
138 | "required": [
|
139 | "JobId"
|
140 | ],
|
141 | "members": {
|
142 | "JobId": {},
|
143 | "MaxResults": {
|
144 | "type": "integer"
|
145 | },
|
146 | "NextToken": {}
|
147 | }
|
148 | },
|
149 | "output": {
|
150 | "type": "structure",
|
151 | "members": {
|
152 | "DocumentMetadata": {
|
153 | "shape": "Sh"
|
154 | },
|
155 | "JobStatus": {},
|
156 | "NextToken": {},
|
157 | "Blocks": {
|
158 | "shape": "Sj"
|
159 | },
|
160 | "Warnings": {
|
161 | "shape": "S1e"
|
162 | },
|
163 | "StatusMessage": {},
|
164 | "DetectDocumentTextModelVersion": {}
|
165 | }
|
166 | }
|
167 | },
|
168 | "StartDocumentAnalysis": {
|
169 | "input": {
|
170 | "type": "structure",
|
171 | "required": [
|
172 | "DocumentLocation",
|
173 | "FeatureTypes"
|
174 | ],
|
175 | "members": {
|
176 | "DocumentLocation": {
|
177 | "shape": "S1m"
|
178 | },
|
179 | "FeatureTypes": {
|
180 | "shape": "S8"
|
181 | },
|
182 | "ClientRequestToken": {},
|
183 | "JobTag": {},
|
184 | "NotificationChannel": {
|
185 | "shape": "S1p"
|
186 | }
|
187 | }
|
188 | },
|
189 | "output": {
|
190 | "type": "structure",
|
191 | "members": {
|
192 | "JobId": {}
|
193 | }
|
194 | }
|
195 | },
|
196 | "StartDocumentTextDetection": {
|
197 | "input": {
|
198 | "type": "structure",
|
199 | "required": [
|
200 | "DocumentLocation"
|
201 | ],
|
202 | "members": {
|
203 | "DocumentLocation": {
|
204 | "shape": "S1m"
|
205 | },
|
206 | "ClientRequestToken": {},
|
207 | "JobTag": {},
|
208 | "NotificationChannel": {
|
209 | "shape": "S1p"
|
210 | }
|
211 | }
|
212 | },
|
213 | "output": {
|
214 | "type": "structure",
|
215 | "members": {
|
216 | "JobId": {}
|
217 | }
|
218 | }
|
219 | }
|
220 | },
|
221 | "shapes": {
|
222 | "S2": {
|
223 | "type": "structure",
|
224 | "members": {
|
225 | "Bytes": {
|
226 | "type": "blob"
|
227 | },
|
228 | "S3Object": {
|
229 | "shape": "S4"
|
230 | }
|
231 | }
|
232 | },
|
233 | "S4": {
|
234 | "type": "structure",
|
235 | "members": {
|
236 | "Bucket": {},
|
237 | "Name": {},
|
238 | "Version": {}
|
239 | }
|
240 | },
|
241 | "S8": {
|
242 | "type": "list",
|
243 | "member": {}
|
244 | },
|
245 | "Sh": {
|
246 | "type": "structure",
|
247 | "members": {
|
248 | "Pages": {
|
249 | "type": "integer"
|
250 | }
|
251 | }
|
252 | },
|
253 | "Sj": {
|
254 | "type": "list",
|
255 | "member": {
|
256 | "type": "structure",
|
257 | "members": {
|
258 | "BlockType": {},
|
259 | "Confidence": {
|
260 | "type": "float"
|
261 | },
|
262 | "Text": {},
|
263 | "RowIndex": {
|
264 | "type": "integer"
|
265 | },
|
266 | "ColumnIndex": {
|
267 | "type": "integer"
|
268 | },
|
269 | "RowSpan": {
|
270 | "type": "integer"
|
271 | },
|
272 | "ColumnSpan": {
|
273 | "type": "integer"
|
274 | },
|
275 | "Geometry": {
|
276 | "type": "structure",
|
277 | "members": {
|
278 | "BoundingBox": {
|
279 | "type": "structure",
|
280 | "members": {
|
281 | "Width": {
|
282 | "type": "float"
|
283 | },
|
284 | "Height": {
|
285 | "type": "float"
|
286 | },
|
287 | "Left": {
|
288 | "type": "float"
|
289 | },
|
290 | "Top": {
|
291 | "type": "float"
|
292 | }
|
293 | }
|
294 | },
|
295 | "Polygon": {
|
296 | "type": "list",
|
297 | "member": {
|
298 | "type": "structure",
|
299 | "members": {
|
300 | "X": {
|
301 | "type": "float"
|
302 | },
|
303 | "Y": {
|
304 | "type": "float"
|
305 | }
|
306 | }
|
307 | }
|
308 | }
|
309 | }
|
310 | },
|
311 | "Id": {},
|
312 | "Relationships": {
|
313 | "type": "list",
|
314 | "member": {
|
315 | "type": "structure",
|
316 | "members": {
|
317 | "Type": {},
|
318 | "Ids": {
|
319 | "type": "list",
|
320 | "member": {}
|
321 | }
|
322 | }
|
323 | }
|
324 | },
|
325 | "EntityTypes": {
|
326 | "type": "list",
|
327 | "member": {}
|
328 | },
|
329 | "SelectionStatus": {},
|
330 | "Page": {
|
331 | "type": "integer"
|
332 | }
|
333 | }
|
334 | }
|
335 | },
|
336 | "S1e": {
|
337 | "type": "list",
|
338 | "member": {
|
339 | "type": "structure",
|
340 | "members": {
|
341 | "ErrorCode": {},
|
342 | "Pages": {
|
343 | "type": "list",
|
344 | "member": {
|
345 | "type": "integer"
|
346 | }
|
347 | }
|
348 | }
|
349 | }
|
350 | },
|
351 | "S1m": {
|
352 | "type": "structure",
|
353 | "members": {
|
354 | "S3Object": {
|
355 | "shape": "S4"
|
356 | }
|
357 | }
|
358 | },
|
359 | "S1p": {
|
360 | "type": "structure",
|
361 | "required": [
|
362 | "SNSTopicArn",
|
363 | "RoleArn"
|
364 | ],
|
365 | "members": {
|
366 | "SNSTopicArn": {},
|
367 | "RoleArn": {}
|
368 | }
|
369 | }
|
370 | }
|
371 | } |
\ | No newline at end of file |