UNPKG

6.88 kBJSONView Raw
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 }
30 },
31 "output": {
32 "type": "structure",
33 "members": {
34 "DocumentMetadata": {
35 "shape": "Sb"
36 },
37 "Blocks": {
38 "shape": "Sd"
39 }
40 }
41 }
42 },
43 "DetectDocumentText": {
44 "input": {
45 "type": "structure",
46 "required": [
47 "Document"
48 ],
49 "members": {
50 "Document": {
51 "shape": "S2"
52 }
53 }
54 },
55 "output": {
56 "type": "structure",
57 "members": {
58 "DocumentMetadata": {
59 "shape": "Sb"
60 },
61 "Blocks": {
62 "shape": "Sd"
63 }
64 }
65 }
66 },
67 "GetDocumentAnalysis": {
68 "input": {
69 "type": "structure",
70 "required": [
71 "JobId"
72 ],
73 "members": {
74 "JobId": {},
75 "MaxResults": {
76 "type": "integer"
77 },
78 "NextToken": {}
79 }
80 },
81 "output": {
82 "type": "structure",
83 "members": {
84 "DocumentMetadata": {
85 "shape": "Sb"
86 },
87 "JobStatus": {},
88 "NextToken": {},
89 "Blocks": {
90 "shape": "Sd"
91 },
92 "Warnings": {
93 "shape": "S12"
94 },
95 "StatusMessage": {}
96 }
97 }
98 },
99 "GetDocumentTextDetection": {
100 "input": {
101 "type": "structure",
102 "required": [
103 "JobId"
104 ],
105 "members": {
106 "JobId": {},
107 "MaxResults": {
108 "type": "integer"
109 },
110 "NextToken": {}
111 }
112 },
113 "output": {
114 "type": "structure",
115 "members": {
116 "DocumentMetadata": {
117 "shape": "Sb"
118 },
119 "JobStatus": {},
120 "NextToken": {},
121 "Blocks": {
122 "shape": "Sd"
123 },
124 "Warnings": {
125 "shape": "S12"
126 },
127 "StatusMessage": {}
128 }
129 }
130 },
131 "StartDocumentAnalysis": {
132 "input": {
133 "type": "structure",
134 "required": [
135 "DocumentLocation",
136 "FeatureTypes"
137 ],
138 "members": {
139 "DocumentLocation": {
140 "shape": "S1a"
141 },
142 "FeatureTypes": {
143 "shape": "S8"
144 },
145 "ClientRequestToken": {},
146 "JobTag": {},
147 "NotificationChannel": {
148 "shape": "S1d"
149 }
150 }
151 },
152 "output": {
153 "type": "structure",
154 "members": {
155 "JobId": {}
156 }
157 }
158 },
159 "StartDocumentTextDetection": {
160 "input": {
161 "type": "structure",
162 "required": [
163 "DocumentLocation"
164 ],
165 "members": {
166 "DocumentLocation": {
167 "shape": "S1a"
168 },
169 "ClientRequestToken": {},
170 "JobTag": {},
171 "NotificationChannel": {
172 "shape": "S1d"
173 }
174 }
175 },
176 "output": {
177 "type": "structure",
178 "members": {
179 "JobId": {}
180 }
181 }
182 }
183 },
184 "shapes": {
185 "S2": {
186 "type": "structure",
187 "members": {
188 "Bytes": {
189 "type": "blob"
190 },
191 "S3Object": {
192 "shape": "S4"
193 }
194 }
195 },
196 "S4": {
197 "type": "structure",
198 "members": {
199 "Bucket": {},
200 "Name": {},
201 "Version": {}
202 }
203 },
204 "S8": {
205 "type": "list",
206 "member": {}
207 },
208 "Sb": {
209 "type": "structure",
210 "members": {
211 "Pages": {
212 "type": "integer"
213 }
214 }
215 },
216 "Sd": {
217 "type": "list",
218 "member": {
219 "type": "structure",
220 "members": {
221 "BlockType": {},
222 "Confidence": {
223 "type": "float"
224 },
225 "Text": {},
226 "RowIndex": {
227 "type": "integer"
228 },
229 "ColumnIndex": {
230 "type": "integer"
231 },
232 "RowSpan": {
233 "type": "integer"
234 },
235 "ColumnSpan": {
236 "type": "integer"
237 },
238 "Geometry": {
239 "type": "structure",
240 "members": {
241 "BoundingBox": {
242 "type": "structure",
243 "members": {
244 "Width": {
245 "type": "float"
246 },
247 "Height": {
248 "type": "float"
249 },
250 "Left": {
251 "type": "float"
252 },
253 "Top": {
254 "type": "float"
255 }
256 }
257 },
258 "Polygon": {
259 "type": "list",
260 "member": {
261 "type": "structure",
262 "members": {
263 "X": {
264 "type": "float"
265 },
266 "Y": {
267 "type": "float"
268 }
269 }
270 }
271 }
272 }
273 },
274 "Id": {},
275 "Relationships": {
276 "type": "list",
277 "member": {
278 "type": "structure",
279 "members": {
280 "Type": {},
281 "Ids": {
282 "type": "list",
283 "member": {}
284 }
285 }
286 }
287 },
288 "EntityTypes": {
289 "type": "list",
290 "member": {}
291 },
292 "Page": {
293 "type": "integer"
294 }
295 }
296 }
297 },
298 "S12": {
299 "type": "list",
300 "member": {
301 "type": "structure",
302 "members": {
303 "ErrorCode": {},
304 "Pages": {
305 "type": "list",
306 "member": {
307 "type": "integer"
308 }
309 }
310 }
311 }
312 },
313 "S1a": {
314 "type": "structure",
315 "members": {
316 "S3Object": {
317 "shape": "S4"
318 }
319 }
320 },
321 "S1d": {
322 "type": "structure",
323 "required": [
324 "SNSTopicArn",
325 "RoleArn"
326 ],
327 "members": {
328 "SNSTopicArn": {},
329 "RoleArn": {}
330 }
331 }
332 }
333}
\No newline at end of file