1{
2    "smithy": "1.0",
3    "metadata": {
4        "suppressions": [
5            {
6                "id": "HttpMethodSemantics",
7                "namespace": "*"
8            },
9            {
10                "id": "HttpResponseCodeSemantics",
11                "namespace": "*"
12            },
13            {
14                "id": "PaginatedTrait",
15                "namespace": "*"
16            },
17            {
18                "id": "HttpHeaderTrait",
19                "namespace": "*"
20            },
21            {
22                "id": "HttpUriConflict",
23                "namespace": "*"
24            },
25            {
26                "id": "Service",
27                "namespace": "*"
28            }
29        ]
30    },
31    "shapes": {
32        "com.amazonaws.textract#AccessDeniedException": {
33            "type": "structure",
34            "members": {
35                "Message": {
36                    "target": "com.amazonaws.textract#String"
37                },
38                "Code": {
39                    "target": "com.amazonaws.textract#String"
40                }
41            },
42            "traits": {
43                "smithy.api#documentation": "<p>You aren't authorized to perform the action. Use the Amazon Resource Name (ARN) \n            of an authorized user or IAM role to perform the operation.</p>",
44                "smithy.api#error": "client"
45            }
46        },
47        "com.amazonaws.textract#AnalyzeDocument": {
48            "type": "operation",
49            "input": {
50                "target": "com.amazonaws.textract#AnalyzeDocumentRequest"
51            },
52            "output": {
53                "target": "com.amazonaws.textract#AnalyzeDocumentResponse"
54            },
55            "errors": [
56                {
57                    "target": "com.amazonaws.textract#AccessDeniedException"
58                },
59                {
60                    "target": "com.amazonaws.textract#BadDocumentException"
61                },
62                {
63                    "target": "com.amazonaws.textract#DocumentTooLargeException"
64                },
65                {
66                    "target": "com.amazonaws.textract#HumanLoopQuotaExceededException"
67                },
68                {
69                    "target": "com.amazonaws.textract#InternalServerError"
70                },
71                {
72                    "target": "com.amazonaws.textract#InvalidParameterException"
73                },
74                {
75                    "target": "com.amazonaws.textract#InvalidS3ObjectException"
76                },
77                {
78                    "target": "com.amazonaws.textract#ProvisionedThroughputExceededException"
79                },
80                {
81                    "target": "com.amazonaws.textract#ThrottlingException"
82                },
83                {
84                    "target": "com.amazonaws.textract#UnsupportedDocumentException"
85                }
86            ],
87            "traits": {
88                "smithy.api#documentation": "<p>Analyzes an input document for relationships between detected items.  </p>\n         <p>The types of information returned are as follows: </p>\n         <ul>\n            <li>\n               <p>Form data (key-value pairs). The related information is returned in two <a>Block</a> objects, each of type <code>KEY_VALUE_SET</code>: a KEY\n                  <code>Block</code> object and a VALUE <code>Block</code> object. For example,\n                  <i>Name: Ana Silva Carolina</i> contains a key and value.\n                  <i>Name:</i> is the key. <i>Ana Silva Carolina</i> is\n               the value.</p>\n            </li>\n            <li>\n               <p>Table and table cell data. A TABLE <code>Block</code> object contains information about a detected table. A CELL\n               <code>Block</code> object is returned for each cell in a table.</p>\n            </li>\n            <li>\n               <p>Lines and words of text. A LINE <code>Block</code> object contains one or more WORD <code>Block</code> objects.\n        All lines and words that are detected in the document are returned (including text that doesn't have a\n               relationship with the value of <code>FeatureTypes</code>). </p>\n            </li>\n         </ul>\n      \n         <p>Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables.\n         A SELECTION_ELEMENT <code>Block</code> object contains information about a selection element,\n         including the selection status.</p>\n         <p>You can choose which type of analysis to perform by specifying the <code>FeatureTypes</code> list. \n      </p>\n         <p>The output is returned in a list of <code>Block</code> objects.</p>\n         <p>\n            <code>AnalyzeDocument</code> is a synchronous operation. To analyze documents \n      asynchronously, use <a>StartDocumentAnalysis</a>.</p>\n         <p>For more information, see <a href=\"https://docs.aws.amazon.com/textract/latest/dg/how-it-works-analyzing.html\">Document Text Analysis</a>.</p>"
89            }
90        },
91        "com.amazonaws.textract#AnalyzeDocumentRequest": {
92            "type": "structure",
93            "members": {
94                "Document": {
95                    "target": "com.amazonaws.textract#Document",
96                    "traits": {
97                        "smithy.api#documentation": "<p>The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI\n         to call Amazon Textract operations, you can't pass image bytes. The document must be an image \n         in JPEG or PNG format.</p>\n         <p>If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode\n         image bytes that are passed using the <code>Bytes</code> field. </p>",
98                        "smithy.api#required": {}
99                    }
100                },
101                "FeatureTypes": {
102                    "target": "com.amazonaws.textract#FeatureTypes",
103                    "traits": {
104                        "smithy.api#documentation": "<p>A list of the types of analysis to perform. Add TABLES to the list to return information\n         about the tables that are detected in the input document. Add FORMS to return detected form data. \n         To perform both types of analysis, add TABLES and FORMS to\n            <code>FeatureTypes</code>. All lines and words detected in the document are included in\n         the response (including text that isn't related to the value of <code>FeatureTypes</code>). </p>",
105                        "smithy.api#required": {}
106                    }
107                },
108                "HumanLoopConfig": {
109                    "target": "com.amazonaws.textract#HumanLoopConfig",
110                    "traits": {
111                        "smithy.api#documentation": "<p>Sets the configuration for the human in the loop workflow for analyzing documents.</p>"
112                    }
113                }
114            }
115        },
116        "com.amazonaws.textract#AnalyzeDocumentResponse": {
117            "type": "structure",
118            "members": {
119                "DocumentMetadata": {
120                    "target": "com.amazonaws.textract#DocumentMetadata",
121                    "traits": {
122                        "smithy.api#documentation": "<p>Metadata about the analyzed document. An example is the number of pages.</p>"
123                    }
124                },
125                "Blocks": {
126                    "target": "com.amazonaws.textract#BlockList",
127                    "traits": {
128                        "smithy.api#documentation": "<p>The items that are detected and analyzed by <code>AnalyzeDocument</code>.</p>"
129                    }
130                },
131                "HumanLoopActivationOutput": {
132                    "target": "com.amazonaws.textract#HumanLoopActivationOutput",
133                    "traits": {
134                        "smithy.api#documentation": "<p>Shows the results of the human in the loop evaluation.</p>"
135                    }
136                },
137                "AnalyzeDocumentModelVersion": {
138                    "target": "com.amazonaws.textract#String",
139                    "traits": {
140                        "smithy.api#documentation": "<p>The version of the model used to analyze the document.</p>"
141                    }
142                }
143            }
144        },
145        "com.amazonaws.textract#BadDocumentException": {
146            "type": "structure",
147            "members": {
148                "Message": {
149                    "target": "com.amazonaws.textract#String"
150                },
151                "Code": {
152                    "target": "com.amazonaws.textract#String"
153                }
154            },
155            "traits": {
156                "smithy.api#documentation": "<p>Amazon Textract isn't able to read the document. For more information on the document\n         limits in Amazon Textract, see <a>limits</a>.</p>",
157                "smithy.api#error": "client"
158            }
159        },
160        "com.amazonaws.textract#Block": {
161            "type": "structure",
162            "members": {
163                "BlockType": {
164                    "target": "com.amazonaws.textract#BlockType",
165                    "traits": {
166                        "smithy.api#documentation": "<p>The type of text item that's recognized. In operations for text detection, the following\n         types are returned:</p>\n         <ul>\n            <li>\n               <p>\n                  <i>PAGE</i> - Contains a list of the LINE <code>Block</code> objects\n               that are detected on a document page.</p>\n            </li>\n            <li>\n               <p>\n                  <i>WORD</i> - A word detected on a document page. A word is one or\n               more ISO basic Latin script characters that aren't separated by spaces.</p>\n            </li>\n            <li>\n               <p>\n                  <i>LINE</i> - A string of tab-delimited, contiguous words that are\n               detected on a document page.</p>\n            </li>\n         </ul>\n         <p>In text analysis operations, the following types are returned:</p>\n         <ul>\n            <li>\n               <p>\n                  <i>PAGE</i> - Contains a list of child <code>Block</code> objects\n               that are detected on a document page.</p>\n            </li>\n            <li>\n               <p>\n                  <i>KEY_VALUE_SET</i> - Stores the KEY and VALUE <code>Block</code>\n               objects for linked text that's detected on a document page. Use the\n                  <code>EntityType</code> field to determine if a KEY_VALUE_SET object is a KEY\n                  <code>Block</code> object or a VALUE <code>Block</code> object. </p>\n            </li>\n            <li>\n               <p>\n                  <i>WORD</i> - A word that's detected on a document page. A word is\n               one or more ISO basic Latin script characters that aren't separated by spaces.</p>\n            </li>\n            <li>\n               <p>\n                  <i>LINE</i> - A string of tab-delimited, contiguous words that are\n               detected on a document page.</p>\n            </li>\n            <li>\n               <p>\n                  <i>TABLE</i> - A table that's detected on a document page. A table\n               is grid-based information with two or more rows or columns, with a cell span of one\n               row and one column each. </p>\n            </li>\n            <li>\n               <p>\n                  <i>CELL</i> - A cell within a detected table. The cell is the parent\n               of the block that contains the text in the cell.</p>\n            </li>\n            <li>\n               <p>\n                  <i>SELECTION_ELEMENT</i> - A selection element such as an option\n               button (radio button) or a check box that's detected on a document page. Use the\n               value of <code>SelectionStatus</code> to determine the status of the selection\n               element.</p>\n            </li>\n         </ul>"
167                    }
168                },
169                "Confidence": {
170                    "target": "com.amazonaws.textract#Percent",
171                    "traits": {
172                        "smithy.api#documentation": "<p>The confidence score that Amazon Textract has in the accuracy of the recognized text and\n         the accuracy of the geometry points around the recognized text.</p>"
173                    }
174                },
175                "Text": {
176                    "target": "com.amazonaws.textract#String",
177                    "traits": {
178                        "smithy.api#documentation": "<p>The word or line of text that's recognized by Amazon Textract. </p>"
179                    }
180                },
181                "TextType": {
182                    "target": "com.amazonaws.textract#TextType",
183                    "traits": {
184                        "smithy.api#documentation": "<p>The kind of text that Amazon Textract has detected. Can check for handwritten text and printed text.</p>"
185                    }
186                },
187                "RowIndex": {
188                    "target": "com.amazonaws.textract#UInteger",
189                    "traits": {
190                        "smithy.api#documentation": "<p>The row in which a table cell is located. The first row position is 1.\n            <code>RowIndex</code> isn't returned by <code>DetectDocumentText</code> and\n            <code>GetDocumentTextDetection</code>.</p>"
191                    }
192                },
193                "ColumnIndex": {
194                    "target": "com.amazonaws.textract#UInteger",
195                    "traits": {
196                        "smithy.api#documentation": "<p>The column in which a table cell appears. The first column position is 1.\n            <code>ColumnIndex</code> isn't returned by <code>DetectDocumentText</code> and\n            <code>GetDocumentTextDetection</code>.</p>"
197                    }
198                },
199                "RowSpan": {
200                    "target": "com.amazonaws.textract#UInteger",
201                    "traits": {
202                        "smithy.api#documentation": "<p>The number of rows that a table cell spans. Currently this value is always 1, even\n         if the number of rows spanned is greater than 1. <code>RowSpan</code> isn't returned by\n            <code>DetectDocumentText</code> and <code>GetDocumentTextDetection</code>.</p>"
203                    }
204                },
205                "ColumnSpan": {
206                    "target": "com.amazonaws.textract#UInteger",
207                    "traits": {
208                        "smithy.api#documentation": "<p>The number of columns that a table cell spans. Currently this value is always 1, even\n         if the number of columns spanned is greater than 1. <code>ColumnSpan</code> isn't returned by\n            <code>DetectDocumentText</code> and <code>GetDocumentTextDetection</code>. </p>"
209                    }
210                },
211                "Geometry": {
212                    "target": "com.amazonaws.textract#Geometry",
213                    "traits": {
214                        "smithy.api#documentation": "<p>The location of the recognized text on the image. It includes an axis-aligned, coarse\n         bounding box that surrounds the text, and a finer-grain polygon for more accurate spatial\n         information. </p>"
215                    }
216                },
217                "Id": {
218                    "target": "com.amazonaws.textract#NonEmptyString",
219                    "traits": {
220                        "smithy.api#documentation": "<p>The identifier for the recognized text. The identifier is only unique for a single\n         operation. </p>"
221                    }
222                },
223                "Relationships": {
224                    "target": "com.amazonaws.textract#RelationshipList",
225                    "traits": {
226                        "smithy.api#documentation": "<p>A list of child blocks of the current block. For example, a LINE object has child blocks\n         for each WORD block that's part of the line of text. There aren't Relationship objects in\n         the list for relationships that don't exist, such as when the current block has no child\n         blocks. The list size can be the following:</p>\n         <ul>\n            <li>\n               <p>0 - The block has no child blocks.</p>\n            </li>\n            <li>\n               <p>1 - The block has child blocks.</p>\n            </li>\n         </ul>"
227                    }
228                },
229                "EntityTypes": {
230                    "target": "com.amazonaws.textract#EntityTypes",
231                    "traits": {
232                        "smithy.api#documentation": "<p>The type of entity. The following can be returned:</p>\n         <ul>\n            <li>\n               <p>\n                  <i>KEY</i> - An identifier for a field on the document.</p>\n            </li>\n            <li>\n               <p>\n                  <i>VALUE</i> - The field text.</p>\n            </li>\n         </ul>\n         <p>\n            <code>EntityTypes</code> isn't returned by <code>DetectDocumentText</code> and\n            <code>GetDocumentTextDetection</code>.</p>"
233                    }
234                },
235                "SelectionStatus": {
236                    "target": "com.amazonaws.textract#SelectionStatus",
237                    "traits": {
238                        "smithy.api#documentation": "<p>The selection status of a selection element, such as an option button or check box. </p>"
239                    }
240                },
241                "Page": {
242                    "target": "com.amazonaws.textract#UInteger",
243                    "traits": {
244                        "smithy.api#documentation": "<p>The page on which a block was detected. <code>Page</code> is returned by asynchronous\n         operations. Page values greater than 1 are only returned for multipage documents that are\n         in PDF format. A scanned image (JPEG/PNG), even if it contains multiple document pages, is\n         considered to be a single-page document. The value of <code>Page</code> is always 1.\n         Synchronous operations don't return <code>Page</code> because every input document is\n         considered to be a single-page document.</p>"
245                    }
246                }
247            },
248            "traits": {
249                "smithy.api#documentation": "<p>A <code>Block</code> represents items that are recognized in a document within a group\n         of pixels close to each other. The information returned in a <code>Block</code> object\n         depends on the type of operation. In text detection for documents (for example <a>DetectDocumentText</a>), you get information about the detected words and lines\n         of text. In text analysis (for example <a>AnalyzeDocument</a>), you can also get\n         information about the fields, tables, and selection elements that are detected in the\n         document.</p>\n         <p>An array of <code>Block</code> objects is returned by both synchronous and asynchronous\n         operations. In synchronous operations, such as <a>DetectDocumentText</a>, the\n         array of <code>Block</code> objects is the entire set of results. In asynchronous\n         operations, such as <a>GetDocumentAnalysis</a>, the array is returned over one\n         or more responses.</p>\n         <p>For more information, see <a href=\"https://docs.aws.amazon.com/textract/latest/dg/how-it-works.html\">How Amazon Textract Works</a>.</p>"
250            }
251        },
252        "com.amazonaws.textract#BlockList": {
253            "type": "list",
254            "member": {
255                "target": "com.amazonaws.textract#Block"
256            }
257        },
258        "com.amazonaws.textract#BlockType": {
259            "type": "string",
260            "traits": {
261                "smithy.api#enum": [
262                    {
263                        "value": "KEY_VALUE_SET",
264                        "name": "KEY_VALUE_SET"
265                    },
266                    {
267                        "value": "PAGE",
268                        "name": "PAGE"
269                    },
270                    {
271                        "value": "LINE",
272                        "name": "LINE"
273                    },
274                    {
275                        "value": "WORD",
276                        "name": "WORD"
277                    },
278                    {
279                        "value": "TABLE",
280                        "name": "TABLE"
281                    },
282                    {
283                        "value": "CELL",
284                        "name": "CELL"
285                    },
286                    {
287                        "value": "SELECTION_ELEMENT",
288                        "name": "SELECTION_ELEMENT"
289                    }
290                ]
291            }
292        },
293        "com.amazonaws.textract#BoundingBox": {
294            "type": "structure",
295            "members": {
296                "Width": {
297                    "target": "com.amazonaws.textract#Float",
298                    "traits": {
299                        "smithy.api#documentation": "<p>The width of the bounding box as a ratio of the overall document page\n         width.</p>"
300                    }
301                },
302                "Height": {
303                    "target": "com.amazonaws.textract#Float",
304                    "traits": {
305                        "smithy.api#documentation": "<p>The height of the bounding box as a ratio of the overall document page\n         height.</p>"
306                    }
307                },
308                "Left": {
309                    "target": "com.amazonaws.textract#Float",
310                    "traits": {
311                        "smithy.api#documentation": "<p>The left coordinate of the bounding box as a ratio of overall document page\n         width.</p>"
312                    }
313                },
314                "Top": {
315                    "target": "com.amazonaws.textract#Float",
316                    "traits": {
317                        "smithy.api#documentation": "<p>The top coordinate of the bounding box as a ratio of overall document page\n         height.</p>"
318                    }
319                }
320            },
321            "traits": {
322                "smithy.api#documentation": "<p>The bounding box around the detected page, text, key-value pair, table, table cell, or selection element on a\n         document page. The <code>left</code> (x-coordinate) and <code>top</code> (y-coordinate) are\n         coordinates that represent the top and left sides of the bounding box. Note that the\n         upper-left corner of the image is the origin (0,0). </p>\n         <p>The <code>top</code> and <code>left</code> values returned are ratios of the overall\n         document page size. For example, if the input image is 700 x 200 pixels, and the top-left\n         coordinate of the bounding box is 350 x 50 pixels, the API returns a <code>left</code>\n         value of 0.5 (350/700) and a <code>top</code> value of 0.25 (50/200).</p>\n         <p>The <code>width</code> and <code>height</code> values represent the dimensions of the\n         bounding box as a ratio of the overall document page dimension. For example, if the\n         document page size is 700 x 200 pixels, and the bounding box width is 70 pixels, the width\n         returned is 0.1. </p>"
323            }
324        },
325        "com.amazonaws.textract#ClientRequestToken": {
326            "type": "string",
327            "traits": {
328                "smithy.api#length": {
329                    "min": 1,
330                    "max": 64
331                },
332                "smithy.api#pattern": "^[a-zA-Z0-9-_]+$"
333            }
334        },
335        "com.amazonaws.textract#ContentClassifier": {
336            "type": "string",
337            "traits": {
338                "smithy.api#enum": [
339                    {
340                        "value": "FreeOfPersonallyIdentifiableInformation",
341                        "name": "FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION"
342                    },
343                    {
344                        "value": "FreeOfAdultContent",
345                        "name": "FREE_OF_ADULT_CONTENT"
346                    }
347                ]
348            }
349        },
350        "com.amazonaws.textract#ContentClassifiers": {
351            "type": "list",
352            "member": {
353                "target": "com.amazonaws.textract#ContentClassifier"
354            },
355            "traits": {
356                "smithy.api#length": {
357                    "min": 0,
358                    "max": 256
359                }
360            }
361        },
362        "com.amazonaws.textract#DetectDocumentText": {
363            "type": "operation",
364            "input": {
365                "target": "com.amazonaws.textract#DetectDocumentTextRequest"
366            },
367            "output": {
368                "target": "com.amazonaws.textract#DetectDocumentTextResponse"
369            },
370            "errors": [
371                {
372                    "target": "com.amazonaws.textract#AccessDeniedException"
373                },
374                {
375                    "target": "com.amazonaws.textract#BadDocumentException"
376                },
377                {
378                    "target": "com.amazonaws.textract#DocumentTooLargeException"
379                },
380                {
381                    "target": "com.amazonaws.textract#InternalServerError"
382                },
383                {
384                    "target": "com.amazonaws.textract#InvalidParameterException"
385                },
386                {
387                    "target": "com.amazonaws.textract#InvalidS3ObjectException"
388                },
389                {
390                    "target": "com.amazonaws.textract#ProvisionedThroughputExceededException"
391                },
392                {
393                    "target": "com.amazonaws.textract#ThrottlingException"
394                },
395                {
396                    "target": "com.amazonaws.textract#UnsupportedDocumentException"
397                }
398            ],
399            "traits": {
400                "smithy.api#documentation": "<p>Detects text in the input document. Amazon Textract can detect lines of text and the\n         words that make up a line of text. The input document must be an image in JPEG or PNG\n         format. <code>DetectDocumentText</code> returns the detected text in an array of <a>Block</a> objects. </p>\n         <p>Each document page has as an associated <code>Block</code> of type PAGE. Each PAGE <code>Block</code> object\n         is the parent of LINE <code>Block</code> objects that represent the lines of detected text on a page. A LINE <code>Block</code> object is\n         a parent for each word that makes up the line. Words are represented by <code>Block</code> objects of type WORD.</p>\n      \n         <p>\n            <code>DetectDocumentText</code> is a synchronous operation. To analyze documents \n         asynchronously, use <a>StartDocumentTextDetection</a>.</p>\n         <p>For more information, see <a href=\"https://docs.aws.amazon.com/textract/latest/dg/how-it-works-detecting.html\">Document Text Detection</a>.</p>"
401            }
402        },
403        "com.amazonaws.textract#DetectDocumentTextRequest": {
404            "type": "structure",
405            "members": {
406                "Document": {
407                    "target": "com.amazonaws.textract#Document",
408                    "traits": {
409                        "smithy.api#documentation": "<p>The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI\n         to call Amazon Textract operations, you can't pass image bytes. The document must be an image \n      in JPEG or PNG format.</p>\n         <p>If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode\n         image bytes that are passed using the <code>Bytes</code> field. </p>",
410                        "smithy.api#required": {}
411                    }
412                }
413            }
414        },
415        "com.amazonaws.textract#DetectDocumentTextResponse": {
416            "type": "structure",
417            "members": {
418                "DocumentMetadata": {
419                    "target": "com.amazonaws.textract#DocumentMetadata",
420                    "traits": {
421                        "smithy.api#documentation": "<p>Metadata about the document. It contains the number of pages that are detected in the\n         document.</p>"
422                    }
423                },
424                "Blocks": {
425                    "target": "com.amazonaws.textract#BlockList",
426                    "traits": {
427                        "smithy.api#documentation": "<p>An array of <code>Block</code> objects that contain the text that's detected in the\n         document.</p>"
428                    }
429                },
430                "DetectDocumentTextModelVersion": {
431                    "target": "com.amazonaws.textract#String",
432                    "traits": {
433                        "smithy.api#documentation": "<p></p>"
434                    }
435                }
436            }
437        },
438        "com.amazonaws.textract#Document": {
439            "type": "structure",
440            "members": {
441                "Bytes": {
442                    "target": "com.amazonaws.textract#ImageBlob",
443                    "traits": {
444                        "smithy.api#documentation": "<p>A blob of base64-encoded document bytes. The maximum size of a document that's provided\n         in a blob of bytes is 5 MB. The document bytes must be in PNG or JPEG format.</p>\n         <p>If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode\n         image bytes passed using the <code>Bytes</code> field. </p>"
445                    }
446                },
447                "S3Object": {
448                    "target": "com.amazonaws.textract#S3Object",
449                    "traits": {
450                        "smithy.api#documentation": "<p>Identifies an S3 object as the document source. The maximum size of a document that's\n         stored in an S3 bucket is 5 MB.</p>"
451                    }
452                }
453            },
454            "traits": {
455                "smithy.api#documentation": "<p>The input document, either as bytes or as an S3 object.</p>\n         <p>You pass image bytes to an Amazon Textract API operation by using the <code>Bytes</code>\n         property. For example, you would use the <code>Bytes</code> property to pass a document\n         loaded from a local file system. Image bytes passed by using the <code>Bytes</code>\n         property must be base64 encoded. Your code might not need to encode document file bytes if\n         you're using an AWS SDK to call Amazon Textract API operations. </p>\n         <p>You pass images stored in an S3 bucket to an Amazon Textract API operation by using the\n            <code>S3Object</code> property. Documents stored in an S3 bucket don't need to be base64\n         encoded.</p>\n         <p>The AWS Region for the S3 bucket that contains the S3 object must match the AWS\n         Region that you use for Amazon Textract operations.</p>\n         <p>If you use the AWS CLI to call Amazon Textract operations, passing image bytes using\n         the Bytes property isn't supported. You must first upload the document to an Amazon S3\n         bucket, and then call the operation using the S3Object property.</p>\n      \n         <p>For Amazon Textract to process an S3 object, the user must have permission\n         to access the S3 object. </p>"
456            }
457        },
458        "com.amazonaws.textract#DocumentLocation": {
459            "type": "structure",
460            "members": {
461                "S3Object": {
462                    "target": "com.amazonaws.textract#S3Object",
463                    "traits": {
464                        "smithy.api#documentation": "<p>The Amazon S3 bucket that contains the input document.</p>"
465                    }
466                }
467            },
468            "traits": {
469                "smithy.api#documentation": "<p>The Amazon S3 bucket that contains the document to be processed. It's used by asynchronous\n         operations such as <a>StartDocumentTextDetection</a>.</p>\n         <p>The input document can be an image file in JPEG or PNG format. It can also be a file in\n         PDF format.</p>"
470            }
471        },
472        "com.amazonaws.textract#DocumentMetadata": {
473            "type": "structure",
474            "members": {
475                "Pages": {
476                    "target": "com.amazonaws.textract#UInteger",
477                    "traits": {
478                        "smithy.api#documentation": "<p>The number of pages that are detected in the document.</p>"
479                    }
480                }
481            },
482            "traits": {
483                "smithy.api#documentation": "<p>Information about the input document.</p>"
484            }
485        },
486        "com.amazonaws.textract#DocumentTooLargeException": {
487            "type": "structure",
488            "members": {
489                "Message": {
490                    "target": "com.amazonaws.textract#String"
491                },
492                "Code": {
493                    "target": "com.amazonaws.textract#String"
494                }
495            },
496            "traits": {
497                "smithy.api#documentation": "<p>The document can't be processed because it's too large. The maximum document size for\n         synchronous operations 10 MB. The maximum document size for asynchronous operations is 500\n         MB for PDF files.</p>",
498                "smithy.api#error": "client"
499            }
500        },
501        "com.amazonaws.textract#EntityType": {
502            "type": "string",
503            "traits": {
504                "smithy.api#enum": [
505                    {
506                        "value": "KEY",
507                        "name": "KEY"
508                    },
509                    {
510                        "value": "VALUE",
511                        "name": "VALUE"
512                    }
513                ]
514            }
515        },
516        "com.amazonaws.textract#EntityTypes": {
517            "type": "list",
518            "member": {
519                "target": "com.amazonaws.textract#EntityType"
520            }
521        },
522        "com.amazonaws.textract#ErrorCode": {
523            "type": "string"
524        },
525        "com.amazonaws.textract#FeatureType": {
526            "type": "string",
527            "traits": {
528                "smithy.api#enum": [
529                    {
530                        "value": "TABLES",
531                        "name": "TABLES"
532                    },
533                    {
534                        "value": "FORMS",
535                        "name": "FORMS"
536                    }
537                ]
538            }
539        },
540        "com.amazonaws.textract#FeatureTypes": {
541            "type": "list",
542            "member": {
543                "target": "com.amazonaws.textract#FeatureType"
544            }
545        },
546        "com.amazonaws.textract#Float": {
547            "type": "float"
548        },
549        "com.amazonaws.textract#FlowDefinitionArn": {
550            "type": "string",
551            "traits": {
552                "smithy.api#length": {
553                    "min": 0,
554                    "max": 256
555                }
556            }
557        },
558        "com.amazonaws.textract#Geometry": {
559            "type": "structure",
560            "members": {
561                "BoundingBox": {
562                    "target": "com.amazonaws.textract#BoundingBox",
563                    "traits": {
564                        "smithy.api#documentation": "<p>An axis-aligned coarse representation of the location of the recognized item on the\n         document page.</p>"
565                    }
566                },
567                "Polygon": {
568                    "target": "com.amazonaws.textract#Polygon",
569                    "traits": {
570                        "smithy.api#documentation": "<p>Within the bounding box, a fine-grained polygon around the recognized item.</p>"
571                    }
572                }
573            },
574            "traits": {
575                "smithy.api#documentation": "<p>Information about where the following items are located on a document page: detected\n         page, text, key-value pairs, tables, table cells, and selection elements.</p>"
576            }
577        },
578        "com.amazonaws.textract#GetDocumentAnalysis": {
579            "type": "operation",
580            "input": {
581                "target": "com.amazonaws.textract#GetDocumentAnalysisRequest"
582            },
583            "output": {
584                "target": "com.amazonaws.textract#GetDocumentAnalysisResponse"
585            },
586            "errors": [
587                {
588                    "target": "com.amazonaws.textract#AccessDeniedException"
589                },
590                {
591                    "target": "com.amazonaws.textract#InternalServerError"
592                },
593                {
594                    "target": "com.amazonaws.textract#InvalidJobIdException"
595                },
596                {
597                    "target": "com.amazonaws.textract#InvalidParameterException"
598                },
599                {
600                    "target": "com.amazonaws.textract#InvalidS3ObjectException"
601                },
602                {
603                    "target": "com.amazonaws.textract#ProvisionedThroughputExceededException"
604                },
605                {
606                    "target": "com.amazonaws.textract#ThrottlingException"
607                }
608            ],
609            "traits": {
610                "smithy.api#documentation": "<p>Gets the results for an Amazon Textract asynchronous operation that analyzes text in a document.</p>\n         <p>You start asynchronous text analysis by calling <a>StartDocumentAnalysis</a>, which returns a job identifier\n            (<code>JobId</code>). When the text analysis operation finishes, Amazon Textract publishes a\n         completion status to the Amazon Simple Notification Service (Amazon SNS) topic that's registered in the initial call to\n            <code>StartDocumentAnalysis</code>. To get the results of the text-detection operation,\n         first check that the status value published to the Amazon SNS topic is <code>SUCCEEDED</code>.\n         If so, call <code>GetDocumentAnalysis</code>, and pass the job identifier\n            (<code>JobId</code>) from the initial call to <code>StartDocumentAnalysis</code>.</p>\n         <p>\n            <code>GetDocumentAnalysis</code> returns an array of <a>Block</a> objects. The following\n         types of information are returned: </p>\n         <ul>\n            <li>\n               <p>Form data (key-value pairs). The related information is returned in two <a>Block</a> objects, each of type <code>KEY_VALUE_SET</code>: a KEY\n            <code>Block</code> object and a VALUE <code>Block</code> object. For example,\n            <i>Name: Ana Silva Carolina</i> contains a key and value.\n            <i>Name:</i> is the key. <i>Ana Silva Carolina</i> is\n            the value.</p>\n            </li>\n            <li>\n               <p>Table and table cell data. A TABLE <code>Block</code> object contains information about a detected table. A CELL\n            <code>Block</code> object is returned for each cell in a table.</p>\n            </li>\n            <li>\n               <p>Lines and words of text. A LINE <code>Block</code> object contains one or more WORD <code>Block</code> objects.\n            All lines and words that are detected in the document are returned (including text that doesn't have a\n            relationship with the value of the <code>StartDocumentAnalysis</code> \n                  <code>FeatureTypes</code> input parameter). </p>\n            </li>\n         </ul>\n      \n         <p>Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables.\n         A SELECTION_ELEMENT <code>Block</code> object contains information about a selection element,\n         including the selection status.</p>\n      \n      \n      \n         <p>Use the <code>MaxResults</code> parameter to limit the number of blocks that are\n         returned. If there are more results than specified in <code>MaxResults</code>, the value of\n            <code>NextToken</code> in the operation response contains a pagination token for getting\n         the next set of results. To get the next page of results, call\n            <code>GetDocumentAnalysis</code>, and populate the <code>NextToken</code> request\n         parameter with the token value that's returned from the previous call to\n            <code>GetDocumentAnalysis</code>.</p>\n         <p>For more information, see <a href=\"https://docs.aws.amazon.com/textract/latest/dg/how-it-works-analyzing.html\">Document Text Analysis</a>.</p>"
611            }
612        },
613        "com.amazonaws.textract#GetDocumentAnalysisRequest": {
614            "type": "structure",
615            "members": {
616                "JobId": {
617                    "target": "com.amazonaws.textract#JobId",
618                    "traits": {
619                        "smithy.api#documentation": "<p>A unique identifier for the text-detection job. The <code>JobId</code> is returned from\n         <code>StartDocumentAnalysis</code>. A <code>JobId</code> value is only valid for 7 days.</p>",
620                        "smithy.api#required": {}
621                    }
622                },
623                "MaxResults": {
624                    "target": "com.amazonaws.textract#MaxResults",
625                    "traits": {
626                        "smithy.api#documentation": "<p>The maximum number of results to return per paginated call. The largest value that you\n         can specify is 1,000. If you specify a value greater than 1,000, a maximum of 1,000 results\n         is returned. The default value is 1,000.</p>"
627                    }
628                },
629                "NextToken": {
630                    "target": "com.amazonaws.textract#PaginationToken",
631                    "traits": {
632                        "smithy.api#documentation": "<p>If the previous response was incomplete (because there are more blocks to retrieve), Amazon Textract returns a pagination\n         token in the response. You can use this pagination token to retrieve the next set of blocks.</p>"
633                    }
634                }
635            }
636        },
637        "com.amazonaws.textract#GetDocumentAnalysisResponse": {
638            "type": "structure",
639            "members": {
640                "DocumentMetadata": {
641                    "target": "com.amazonaws.textract#DocumentMetadata",
642                    "traits": {
643                        "smithy.api#documentation": "<p>Information about a document that Amazon Textract processed. <code>DocumentMetadata</code> is\n         returned in every page of paginated responses from an Amazon Textract video operation.</p>"
644                    }
645                },
646                "JobStatus": {
647                    "target": "com.amazonaws.textract#JobStatus",
648                    "traits": {
649                        "smithy.api#documentation": "<p>The current status of the text detection job.</p>"
650                    }
651                },
652                "NextToken": {
653                    "target": "com.amazonaws.textract#PaginationToken",
654                    "traits": {
655                        "smithy.api#documentation": "<p>If the response is truncated, Amazon Textract returns this token. You can use this token in\n         the subsequent request to retrieve the next set of text detection results.</p>"
656                    }
657                },
658                "Blocks": {
659                    "target": "com.amazonaws.textract#BlockList",
660                    "traits": {
661                        "smithy.api#documentation": "<p>The results of the text-analysis operation.</p>"
662                    }
663                },
664                "Warnings": {
665                    "target": "com.amazonaws.textract#Warnings",
666                    "traits": {
667                        "smithy.api#documentation": "<p>A list of warnings that occurred during the document-analysis operation.</p>"
668                    }
669                },
670                "StatusMessage": {
671                    "target": "com.amazonaws.textract#StatusMessage",
672                    "traits": {
673                        "smithy.api#documentation": "<p>Returns if the detection job could not be completed. Contains explanation for what error occured.</p>"
674                    }
675                },
676                "AnalyzeDocumentModelVersion": {
677                    "target": "com.amazonaws.textract#String",
678                    "traits": {
679                        "smithy.api#documentation": "<p></p>"
680                    }
681                }
682            }
683        },
684        "com.amazonaws.textract#GetDocumentTextDetection": {
685            "type": "operation",
686            "input": {
687                "target": "com.amazonaws.textract#GetDocumentTextDetectionRequest"
688            },
689            "output": {
690                "target": "com.amazonaws.textract#GetDocumentTextDetectionResponse"
691            },
692            "errors": [
693                {
694                    "target": "com.amazonaws.textract#AccessDeniedException"
695                },
696                {
697                    "target": "com.amazonaws.textract#InternalServerError"
698                },
699                {
700                    "target": "com.amazonaws.textract#InvalidJobIdException"
701                },
702                {
703                    "target": "com.amazonaws.textract#InvalidParameterException"
704                },
705                {
706                    "target": "com.amazonaws.textract#InvalidS3ObjectException"
707                },
708                {
709                    "target": "com.amazonaws.textract#ProvisionedThroughputExceededException"
710                },
711                {
712                    "target": "com.amazonaws.textract#ThrottlingException"
713                }
714            ],
715            "traits": {
716                "smithy.api#documentation": "<p>Gets the results for an Amazon Textract asynchronous operation that detects text in a document. \n     Amazon Textract can detect lines of text and the words that make up a line of text.</p>\n         <p>You start asynchronous text detection by calling <a>StartDocumentTextDetection</a>, which returns a job identifier\n            (<code>JobId</code>). When the text detection operation finishes, Amazon Textract publishes a\n         completion status to the Amazon Simple Notification Service (Amazon SNS) topic that's registered in the initial call to\n            <code>StartDocumentTextDetection</code>. To get the results of the text-detection\n         operation, first check that the status value published to the Amazon SNS topic is\n            <code>SUCCEEDED</code>. If so, call <code>GetDocumentTextDetection</code>, and pass the\n         job identifier (<code>JobId</code>) from the initial call to\n            <code>StartDocumentTextDetection</code>.</p>\n         <p>\n            <code>GetDocumentTextDetection</code> returns an array of <a>Block</a>\n         objects. </p>\n         <p>Each document page has as an associated <code>Block</code> of type PAGE. Each PAGE <code>Block</code> object\n        is the parent of LINE <code>Block</code> objects that represent the lines of detected text on a page. A LINE <code>Block</code> object is\n        a parent for each word that makes up the line. Words are represented by <code>Block</code> objects of type WORD.</p>\n     \n         <p>Use the MaxResults parameter to limit the number of blocks that are returned. If there\n         are more results than specified in <code>MaxResults</code>, the value of\n            <code>NextToken</code> in the operation response contains a pagination token for getting\n         the next set of results. To get the next page of results, call\n            <code>GetDocumentTextDetection</code>, and populate the <code>NextToken</code> request\n         parameter with the token value that's returned from the previous call to\n            <code>GetDocumentTextDetection</code>.</p>\n         <p>For more information, see <a href=\"https://docs.aws.amazon.com/textract/latest/dg/how-it-works-detecting.html\">Document Text Detection</a>.</p>"
717            }
718        },
719        "com.amazonaws.textract#GetDocumentTextDetectionRequest": {
720            "type": "structure",
721            "members": {
722                "JobId": {
723                    "target": "com.amazonaws.textract#JobId",
724                    "traits": {
725                        "smithy.api#documentation": "<p>A unique identifier for the text detection job. The <code>JobId</code> is returned from\n         <code>StartDocumentTextDetection</code>. A <code>JobId</code> value is only valid for 7 days.</p>",
726                        "smithy.api#required": {}
727                    }
728                },
729                "MaxResults": {
730                    "target": "com.amazonaws.textract#MaxResults",
731                    "traits": {
732                        "smithy.api#documentation": "<p>The maximum number of results to return per paginated call. The largest value you can\n         specify is 1,000. If you specify a value greater than 1,000, a maximum of 1,000 results is\n         returned. The default value is 1,000.</p>"
733                    }
734                },
735                "NextToken": {
736                    "target": "com.amazonaws.textract#PaginationToken",
737                    "traits": {
738                        "smithy.api#documentation": "<p>If the previous response was incomplete (because there are more blocks to retrieve), Amazon Textract returns a pagination\n         token in the response. You can use this pagination token to retrieve the next set of blocks.</p>"
739                    }
740                }
741            }
742        },
743        "com.amazonaws.textract#GetDocumentTextDetectionResponse": {
744            "type": "structure",
745            "members": {
746                "DocumentMetadata": {
747                    "target": "com.amazonaws.textract#DocumentMetadata",
748                    "traits": {
749                        "smithy.api#documentation": "<p>Information about a document that Amazon Textract processed. <code>DocumentMetadata</code> is\n         returned in every page of paginated responses from an Amazon Textract video operation.</p>"
750                    }
751                },
752                "JobStatus": {
753                    "target": "com.amazonaws.textract#JobStatus",
754                    "traits": {
755                        "smithy.api#documentation": "<p>The current status of the text detection job.</p>"
756                    }
757                },
758                "NextToken": {
759                    "target": "com.amazonaws.textract#PaginationToken",
760                    "traits": {
761                        "smithy.api#documentation": "<p>If the response is truncated, Amazon Textract returns this token. You can use this token in\n         the subsequent request to retrieve the next set of text-detection results.</p>"
762                    }
763                },
764                "Blocks": {
765                    "target": "com.amazonaws.textract#BlockList",
766                    "traits": {
767                        "smithy.api#documentation": "<p>The results of the text-detection operation.</p>"
768                    }
769                },
770                "Warnings": {
771                    "target": "com.amazonaws.textract#Warnings",
772                    "traits": {
773                        "smithy.api#documentation": "<p>A list of warnings that occurred during the text-detection operation for the\n         document.</p>"
774                    }
775                },
776                "StatusMessage": {
777                    "target": "com.amazonaws.textract#StatusMessage",
778                    "traits": {
779                        "smithy.api#documentation": "<p>Returns if the detection job could not be completed. Contains explanation for what error occured. </p>"
780                    }
781                },
782                "DetectDocumentTextModelVersion": {
783                    "target": "com.amazonaws.textract#String",
784                    "traits": {
785                        "smithy.api#documentation": "<p></p>"
786                    }
787                }
788            }
789        },
790        "com.amazonaws.textract#HumanLoopActivationOutput": {
791            "type": "structure",
792            "members": {
793                "HumanLoopArn": {
794                    "target": "com.amazonaws.textract#HumanLoopArn",
795                    "traits": {
796                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the HumanLoop created.</p>"
797                    }
798                },
799                "HumanLoopActivationReasons": {
800                    "target": "com.amazonaws.textract#HumanLoopActivationReasons",
801                    "traits": {
802                        "smithy.api#documentation": "<p>Shows if and why human review was needed.</p>"
803                    }
804                },
805                "HumanLoopActivationConditionsEvaluationResults": {
806                    "target": "com.amazonaws.textract#SynthesizedJsonHumanLoopActivationConditionsEvaluationResults",
807                    "traits": {
808                        "smithy.api#documentation": "<p>Shows the result of condition evaluations, including those conditions which activated a human review.</p>"
809                    }
810                }
811            },
812            "traits": {
813                "smithy.api#documentation": "<p>Shows the results of the human in the loop evaluation. If there is no HumanLoopArn, the input \n         did not trigger human review.</p>"
814            }
815        },
816        "com.amazonaws.textract#HumanLoopActivationReason": {
817            "type": "string"
818        },
819        "com.amazonaws.textract#HumanLoopActivationReasons": {
820            "type": "list",
821            "member": {
822                "target": "com.amazonaws.textract#HumanLoopActivationReason"
823            },
824            "traits": {
825                "smithy.api#length": {
826                    "min": 1
827                }
828            }
829        },
830        "com.amazonaws.textract#HumanLoopArn": {
831            "type": "string",
832            "traits": {
833                "smithy.api#length": {
834                    "min": 0,
835                    "max": 256
836                }
837            }
838        },
839        "com.amazonaws.textract#HumanLoopConfig": {
840            "type": "structure",
841            "members": {
842                "HumanLoopName": {
843                    "target": "com.amazonaws.textract#HumanLoopName",
844                    "traits": {
845                        "smithy.api#documentation": "<p>The name of the human workflow used for this image. This should be kept unique within a region.</p>",
846                        "smithy.api#required": {}
847                    }
848                },
849                "FlowDefinitionArn": {
850                    "target": "com.amazonaws.textract#FlowDefinitionArn",
851                    "traits": {
852                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the flow definition.</p>",
853                        "smithy.api#required": {}
854                    }
855                },
856                "DataAttributes": {
857                    "target": "com.amazonaws.textract#HumanLoopDataAttributes",
858                    "traits": {
859                        "smithy.api#documentation": "<p>Sets attributes of the input data.</p>"
860                    }
861                }
862            },
863            "traits": {
864                "smithy.api#documentation": "<p>Sets up the human review workflow the document will be sent to if one of the conditions is met. You can also set certain attributes \n         of the image before review. </p>"
865            }
866        },
867        "com.amazonaws.textract#HumanLoopDataAttributes": {
868            "type": "structure",
869            "members": {
870                "ContentClassifiers": {
871                    "target": "com.amazonaws.textract#ContentClassifiers",
872                    "traits": {
873                        "smithy.api#documentation": "<p>Sets whether the input image is free of personally identifiable information or adult content.</p>"
874                    }
875                }
876            },
877            "traits": {
878                "smithy.api#documentation": "<p>Allows you to set attributes of the image. Currently, you can declare an image as free of\n         personally identifiable information and adult content. </p>"
879            }
880        },
881        "com.amazonaws.textract#HumanLoopName": {
882            "type": "string",
883            "traits": {
884                "smithy.api#length": {
885                    "min": 1,
886                    "max": 63
887                },
888                "smithy.api#pattern": "^[a-z0-9](-*[a-z0-9])*"
889            }
890        },
891        "com.amazonaws.textract#HumanLoopQuotaExceededException": {
892            "type": "structure",
893            "members": {
894                "ResourceType": {
895                    "target": "com.amazonaws.textract#String",
896                    "traits": {
897                        "smithy.api#documentation": "<p>The resource type.</p>"
898                    }
899                },
900                "QuotaCode": {
901                    "target": "com.amazonaws.textract#String",
902                    "traits": {
903                        "smithy.api#documentation": "<p>The quota code.</p>"
904                    }
905                },
906                "ServiceCode": {
907                    "target": "com.amazonaws.textract#String",
908                    "traits": {
909                        "smithy.api#documentation": "<p>The service code.</p>"
910                    }
911                },
912                "Message": {
913                    "target": "com.amazonaws.textract#String"
914                },
915                "Code": {
916                    "target": "com.amazonaws.textract#String"
917                }
918            },
919            "traits": {
920                "smithy.api#documentation": "<p>Indicates you have exceeded the maximum number of active human in the loop workflows available</p>",
921                "smithy.api#error": "client",
922                "smithy.api#httpError": 402
923            }
924        },
925        "com.amazonaws.textract#IdList": {
926            "type": "list",
927            "member": {
928                "target": "com.amazonaws.textract#NonEmptyString"
929            }
930        },
931        "com.amazonaws.textract#IdempotentParameterMismatchException": {
932            "type": "structure",
933            "members": {
934                "Message": {
935                    "target": "com.amazonaws.textract#String"
936                },
937                "Code": {
938                    "target": "com.amazonaws.textract#String"
939                }
940            },
941            "traits": {
942                "smithy.api#documentation": "<p>A <code>ClientRequestToken</code> input parameter was reused with an operation, but at\n         least one of the other input parameters is different from the previous call to the\n         operation. </p>",
943                "smithy.api#error": "client"
944            }
945        },
946        "com.amazonaws.textract#ImageBlob": {
947            "type": "blob",
948            "traits": {
949                "smithy.api#length": {
950                    "min": 1,
951                    "max": 10485760
952                }
953            }
954        },
955        "com.amazonaws.textract#InternalServerError": {
956            "type": "structure",
957            "members": {
958                "Message": {
959                    "target": "com.amazonaws.textract#String"
960                },
961                "Code": {
962                    "target": "com.amazonaws.textract#String"
963                }
964            },
965            "traits": {
966                "smithy.api#documentation": "<p>Amazon Textract experienced a service issue. Try your call again.</p>",
967                "smithy.api#error": "server"
968            }
969        },
970        "com.amazonaws.textract#InvalidJobIdException": {
971            "type": "structure",
972            "members": {
973                "Message": {
974                    "target": "com.amazonaws.textract#String"
975                },
976                "Code": {
977                    "target": "com.amazonaws.textract#String"
978                }
979            },
980            "traits": {
981                "smithy.api#documentation": "<p>An invalid job identifier was passed to <a>GetDocumentAnalysis</a> or to\n      <a>GetDocumentAnalysis</a>.</p>",
982                "smithy.api#error": "client"
983            }
984        },
985        "com.amazonaws.textract#InvalidKMSKeyException": {
986            "type": "structure",
987            "members": {
988                "Message": {
989                    "target": "com.amazonaws.textract#String"
990                },
991                "Code": {
992                    "target": "com.amazonaws.textract#String"
993                }
994            },
995            "traits": {
996                "smithy.api#documentation": "<p> Indicates you do not have decrypt permissions with the KMS key entered, or the KMS key\n        was entered incorrectly. </p>",
997                "smithy.api#error": "client"
998            }
999        },
1000        "com.amazonaws.textract#InvalidParameterException": {
1001            "type": "structure",
1002            "members": {
1003                "Message": {
1004                    "target": "com.amazonaws.textract#String"
1005                },
1006                "Code": {
1007                    "target": "com.amazonaws.textract#String"
1008                }
1009            },
1010            "traits": {
1011                "smithy.api#documentation": "<p>An input parameter violated a constraint. For example, in synchronous operations, \n       an <code>InvalidParameterException</code> exception occurs\n      when neither of the <code>S3Object</code> or <code>Bytes</code> values are supplied in the <code>Document</code>\n      request parameter.\n       Validate your parameter before calling the API operation again.</p>",
1012                "smithy.api#error": "client"
1013            }
1014        },
1015        "com.amazonaws.textract#InvalidS3ObjectException": {
1016            "type": "structure",
1017            "members": {
1018                "Message": {
1019                    "target": "com.amazonaws.textract#String"
1020                },
1021                "Code": {
1022                    "target": "com.amazonaws.textract#String"
1023                }
1024            },
1025            "traits": {
1026                "smithy.api#documentation": "<p>Amazon Textract is unable to access the S3 object that's specified in the request.\n         for more information, <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html\">Configure Access to Amazon S3</a>\n         For troubleshooting information, see <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html\">Troubleshooting Amazon S3</a>\n         </p>",
1027                "smithy.api#error": "client"
1028            }
1029        },
1030        "com.amazonaws.textract#JobId": {
1031            "type": "string",
1032            "traits": {
1033                "smithy.api#length": {
1034                    "min": 1,
1035                    "max": 64
1036                },
1037                "smithy.api#pattern": "^[a-zA-Z0-9-_]+$"
1038            }
1039        },
1040        "com.amazonaws.textract#JobStatus": {
1041            "type": "string",
1042            "traits": {
1043                "smithy.api#enum": [
1044                    {
1045                        "value": "IN_PROGRESS",
1046                        "name": "IN_PROGRESS"
1047                    },
1048                    {
1049                        "value": "SUCCEEDED",
1050                        "name": "SUCCEEDED"
1051                    },
1052                    {
1053                        "value": "FAILED",
1054                        "name": "FAILED"
1055                    },
1056                    {
1057                        "value": "PARTIAL_SUCCESS",
1058                        "name": "PARTIAL_SUCCESS"
1059                    }
1060                ]
1061            }
1062        },
1063        "com.amazonaws.textract#JobTag": {
1064            "type": "string",
1065            "traits": {
1066                "smithy.api#length": {
1067                    "min": 1,
1068                    "max": 64
1069                },
1070                "smithy.api#pattern": "[a-zA-Z0-9_.\\-:]+"
1071            }
1072        },
1073        "com.amazonaws.textract#KMSKeyId": {
1074            "type": "string",
1075            "traits": {
1076                "smithy.api#length": {
1077                    "min": 1,
1078                    "max": 2048
1079                },
1080                "smithy.api#pattern": "^[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,2048}$"
1081            }
1082        },
1083        "com.amazonaws.textract#LimitExceededException": {
1084            "type": "structure",
1085            "members": {
1086                "Message": {
1087                    "target": "com.amazonaws.textract#String"
1088                },
1089                "Code": {
1090                    "target": "com.amazonaws.textract#String"
1091                }
1092            },
1093            "traits": {
1094                "smithy.api#documentation": "<p>An Amazon Textract service limit was exceeded. For example, if you start too many\n         asynchronous jobs concurrently, calls to start operations\n            (<code>StartDocumentTextDetection</code>, for example) raise a LimitExceededException\n         exception (HTTP status code: 400) until the number of concurrently running jobs is below\n         the Amazon Textract service limit. </p>",
1095                "smithy.api#error": "client"
1096            }
1097        },
1098        "com.amazonaws.textract#MaxResults": {
1099            "type": "integer",
1100            "traits": {
1101                "smithy.api#box": {},
1102                "smithy.api#range": {
1103                    "min": 1
1104                }
1105            }
1106        },
1107        "com.amazonaws.textract#NonEmptyString": {
1108            "type": "string",
1109            "traits": {
1110                "smithy.api#pattern": ".*\\S.*"
1111            }
1112        },
1113        "com.amazonaws.textract#NotificationChannel": {
1114            "type": "structure",
1115            "members": {
1116                "SNSTopicArn": {
1117                    "target": "com.amazonaws.textract#SNSTopicArn",
1118                    "traits": {
1119                        "smithy.api#documentation": "<p>The Amazon SNS topic that Amazon Textract posts the completion status to.</p>",
1120                        "smithy.api#required": {}
1121                    }
1122                },
1123                "RoleArn": {
1124                    "target": "com.amazonaws.textract#RoleArn",
1125                    "traits": {
1126                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of an IAM role that gives Amazon Textract publishing permissions to the Amazon SNS topic. </p>",
1127                        "smithy.api#required": {}
1128                    }
1129                }
1130            },
1131            "traits": {
1132                "smithy.api#documentation": "<p>The Amazon Simple Notification Service (Amazon SNS) topic to which Amazon Textract publishes the completion status of\n         an asynchronous document operation, such as <a>StartDocumentTextDetection</a>. </p>"
1133            }
1134        },
1135        "com.amazonaws.textract#OutputConfig": {
1136            "type": "structure",
1137            "members": {
1138                "S3Bucket": {
1139                    "target": "com.amazonaws.textract#S3Bucket",
1140                    "traits": {
1141                        "smithy.api#documentation": "<p>The name of the bucket your output will go to.</p>",
1142                        "smithy.api#required": {}
1143                    }
1144                },
1145                "S3Prefix": {
1146                    "target": "com.amazonaws.textract#S3ObjectName",
1147                    "traits": {
1148                        "smithy.api#documentation": "<p>The prefix of the object key that the output will be saved to. When \n         not enabled, the prefix will be “textract_output\".</p>"
1149                    }
1150                }
1151            },
1152            "traits": {
1153                "smithy.api#documentation": "<p>Sets whether or not your output will go to a user created bucket. \n         Used to set the name of the bucket, and the prefix on the output \n         file.</p>"
1154            }
1155        },
1156        "com.amazonaws.textract#Pages": {
1157            "type": "list",
1158            "member": {
1159                "target": "com.amazonaws.textract#UInteger"
1160            }
1161        },
1162        "com.amazonaws.textract#PaginationToken": {
1163            "type": "string",
1164            "traits": {
1165                "smithy.api#length": {
1166                    "min": 1,
1167                    "max": 255
1168                },
1169                "smithy.api#pattern": ".*\\S.*"
1170            }
1171        },
1172        "com.amazonaws.textract#Percent": {
1173            "type": "float",
1174            "traits": {
1175                "smithy.api#box": {},
1176                "smithy.api#range": {
1177                    "min": 0,
1178                    "max": 100
1179                }
1180            }
1181        },
1182        "com.amazonaws.textract#Point": {
1183            "type": "structure",
1184            "members": {
1185                "X": {
1186                    "target": "com.amazonaws.textract#Float",
1187                    "traits": {
1188                        "smithy.api#documentation": "<p>The value of the X coordinate for a point on a <code>Polygon</code>.</p>"
1189                    }
1190                },
1191                "Y": {
1192                    "target": "com.amazonaws.textract#Float",
1193                    "traits": {
1194                        "smithy.api#documentation": "<p>The value of the Y coordinate for a point on a <code>Polygon</code>.</p>"
1195                    }
1196                }
1197            },
1198            "traits": {
1199                "smithy.api#documentation": "<p>The X and Y coordinates of a point on a document page. The X and Y\n         values that are returned are ratios of the overall document page size. For example, if the\n         input document is 700 x 200 and the operation returns X=0.5 and Y=0.25, then the point is\n         at the (350,50) pixel coordinate on the document page.</p>\n      \n         <p>An array of <code>Point</code> objects, <code>Polygon</code>, is returned\n         by <a>DetectDocumentText</a>. <code>Polygon</code> represents a fine-grained\n         polygon around detected text. For more information, see Geometry in the Amazon Textract\n         Developer Guide. </p>"
1200            }
1201        },
1202        "com.amazonaws.textract#Polygon": {
1203            "type": "list",
1204            "member": {
1205                "target": "com.amazonaws.textract#Point"
1206            }
1207        },
1208        "com.amazonaws.textract#ProvisionedThroughputExceededException": {
1209            "type": "structure",
1210            "members": {
1211                "Message": {
1212                    "target": "com.amazonaws.textract#String"
1213                },
1214                "Code": {
1215                    "target": "com.amazonaws.textract#String"
1216                }
1217            },
1218            "traits": {
1219                "smithy.api#documentation": "<p>The number of requests exceeded your throughput limit. If you want to increase this limit, \n         contact Amazon Textract.</p>",
1220                "smithy.api#error": "client"
1221            }
1222        },
1223        "com.amazonaws.textract#Relationship": {
1224            "type": "structure",
1225            "members": {
1226                "Type": {
1227                    "target": "com.amazonaws.textract#RelationshipType",
1228                    "traits": {
1229                        "smithy.api#documentation": "<p>The type of relationship that the blocks in the IDs array have with the current block.\n         The relationship can be <code>VALUE</code> or <code>CHILD</code>. A relationship of type \n         VALUE is a list that contains the ID of the VALUE block that's associated with the KEY of a key-value pair. \n         A relationship of type CHILD is a list of IDs that identify WORD blocks in the case of lines\n         Cell blocks in the case of Tables, and WORD blocks in the case of Selection Elements.</p>"
1230                    }
1231                },
1232                "Ids": {
1233                    "target": "com.amazonaws.textract#IdList",
1234                    "traits": {
1235                        "smithy.api#documentation": "<p>An\n         array of IDs for related blocks. You can get the type of the relationship from the\n            <code>Type</code> element.</p>"
1236                    }
1237                }
1238            },
1239            "traits": {
1240                "smithy.api#documentation": "<p>Information about how blocks are related to each other. A <code>Block</code> object\n         contains 0 or more <code>Relation</code> objects in a list, <code>Relationships</code>. For\n         more information, see <a>Block</a>.</p>\n         <p>The <code>Type</code> element provides the type of the relationship for all blocks in\n         the <code>IDs</code> array. </p>"
1241            }
1242        },
1243        "com.amazonaws.textract#RelationshipList": {
1244            "type": "list",
1245            "member": {
1246                "target": "com.amazonaws.textract#Relationship"
1247            }
1248        },
1249        "com.amazonaws.textract#RelationshipType": {
1250            "type": "string",
1251            "traits": {
1252                "smithy.api#enum": [
1253                    {
1254                        "value": "VALUE",
1255                        "name": "VALUE"
1256                    },
1257                    {
1258                        "value": "CHILD",
1259                        "name": "CHILD"
1260                    },
1261                    {
1262                        "value": "COMPLEX_FEATURES",
1263                        "name": "COMPLEX_FEATURES"
1264                    }
1265                ]
1266            }
1267        },
1268        "com.amazonaws.textract#RoleArn": {
1269            "type": "string",
1270            "traits": {
1271                "smithy.api#length": {
1272                    "min": 20,
1273                    "max": 2048
1274                },
1275                "smithy.api#pattern": "arn:([a-z\\d-]+):iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+"
1276            }
1277        },
1278        "com.amazonaws.textract#S3Bucket": {
1279            "type": "string",
1280            "traits": {
1281                "smithy.api#length": {
1282                    "min": 3,
1283                    "max": 255
1284                },
1285                "smithy.api#pattern": "[0-9A-Za-z\\.\\-_]*"
1286            }
1287        },
1288        "com.amazonaws.textract#S3Object": {
1289            "type": "structure",
1290            "members": {
1291                "Bucket": {
1292                    "target": "com.amazonaws.textract#S3Bucket",
1293                    "traits": {
1294                        "smithy.api#documentation": "<p>The name of the S3 bucket.</p>"
1295                    }
1296                },
1297                "Name": {
1298                    "target": "com.amazonaws.textract#S3ObjectName",
1299                    "traits": {
1300                        "smithy.api#documentation": "<p>The file name of the input document. Synchronous operations can use image files that are\n         in JPEG or PNG format. Asynchronous operations also support PDF format files.</p>"
1301                    }
1302                },
1303                "Version": {
1304                    "target": "com.amazonaws.textract#S3ObjectVersion",
1305                    "traits": {
1306                        "smithy.api#documentation": "<p>If the bucket has versioning enabled, you can specify the object version. </p>"
1307                    }
1308                }
1309            },
1310            "traits": {
1311                "smithy.api#documentation": "<p>The S3 bucket name and file name that identifies the document.</p>\n         <p>The AWS Region for the S3 bucket that contains the document must match the Region that\n         you use for Amazon Textract operations.</p>\n      \n         <p>For Amazon Textract to process a file in an S3 bucket, the user must have\n         permission to access the S3 bucket and file.\n         \n      </p>"
1312            }
1313        },
1314        "com.amazonaws.textract#S3ObjectName": {
1315            "type": "string",
1316            "traits": {
1317                "smithy.api#length": {
1318                    "min": 1,
1319                    "max": 1024
1320                },
1321                "smithy.api#pattern": ".*\\S.*"
1322            }
1323        },
1324        "com.amazonaws.textract#S3ObjectVersion": {
1325            "type": "string",
1326            "traits": {
1327                "smithy.api#length": {
1328                    "min": 1,
1329                    "max": 1024
1330                },
1331                "smithy.api#pattern": ".*\\S.*"
1332            }
1333        },
1334        "com.amazonaws.textract#SNSTopicArn": {
1335            "type": "string",
1336            "traits": {
1337                "smithy.api#length": {
1338                    "min": 20,
1339                    "max": 1024
1340                },
1341                "smithy.api#pattern": "(^arn:([a-z\\d-]+):sns:[a-zA-Z\\d-]{1,20}:\\w{12}:.+$)"
1342            }
1343        },
1344        "com.amazonaws.textract#SelectionStatus": {
1345            "type": "string",
1346            "traits": {
1347                "smithy.api#enum": [
1348                    {
1349                        "value": "SELECTED",
1350                        "name": "SELECTED"
1351                    },
1352                    {
1353                        "value": "NOT_SELECTED",
1354                        "name": "NOT_SELECTED"
1355                    }
1356                ]
1357            }
1358        },
1359        "com.amazonaws.textract#StartDocumentAnalysis": {
1360            "type": "operation",
1361            "input": {
1362                "target": "com.amazonaws.textract#StartDocumentAnalysisRequest"
1363            },
1364            "output": {
1365                "target": "com.amazonaws.textract#StartDocumentAnalysisResponse"
1366            },
1367            "errors": [
1368                {
1369                    "target": "com.amazonaws.textract#AccessDeniedException"
1370                },
1371                {
1372                    "target": "com.amazonaws.textract#BadDocumentException"
1373                },
1374                {
1375                    "target": "com.amazonaws.textract#DocumentTooLargeException"
1376                },
1377                {
1378                    "target": "com.amazonaws.textract#IdempotentParameterMismatchException"
1379                },
1380                {
1381                    "target": "com.amazonaws.textract#InternalServerError"
1382                },
1383                {
1384                    "target": "com.amazonaws.textract#InvalidKMSKeyException"
1385                },
1386                {
1387                    "target": "com.amazonaws.textract#InvalidParameterException"
1388                },
1389                {
1390                    "target": "com.amazonaws.textract#InvalidS3ObjectException"
1391                },
1392                {
1393                    "target": "com.amazonaws.textract#LimitExceededException"
1394                },
1395                {
1396                    "target": "com.amazonaws.textract#ProvisionedThroughputExceededException"
1397                },
1398                {
1399                    "target": "com.amazonaws.textract#ThrottlingException"
1400                },
1401                {
1402                    "target": "com.amazonaws.textract#UnsupportedDocumentException"
1403                }
1404            ],
1405            "traits": {
1406                "smithy.api#documentation": "<p>Starts the asynchronous analysis of an input document for relationships between detected\n         items such as key-value pairs, tables, and selection elements.</p>\n\n         <p>\n            <code>StartDocumentAnalysis</code> can analyze text in documents that are in JPEG, PNG, and PDF format. The\n         documents are stored in an Amazon S3 bucket. Use <a>DocumentLocation</a> to specify the bucket name and file name\n         of the document.\n         </p>\n         <p>\n            <code>StartDocumentAnalysis</code> returns a job identifier\n            (<code>JobId</code>) that you use to get the results of the operation. When text\n         analysis is finished, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS)\n         topic that you specify in <code>NotificationChannel</code>. To get the results of the text\n         analysis operation, first check that the status value published to the Amazon SNS topic is\n            <code>SUCCEEDED</code>. If so, call <a>GetDocumentAnalysis</a>, and pass\n         the job identifier (<code>JobId</code>) from the initial call to\n            <code>StartDocumentAnalysis</code>.</p>\n         <p>For more information, see <a href=\"https://docs.aws.amazon.com/textract/latest/dg/how-it-works-analyzing.html\">Document Text Analysis</a>.</p>"
1407            }
1408        },
1409        "com.amazonaws.textract#StartDocumentAnalysisRequest": {
1410            "type": "structure",
1411            "members": {
1412                "DocumentLocation": {
1413                    "target": "com.amazonaws.textract#DocumentLocation",
1414                    "traits": {
1415                        "smithy.api#documentation": "<p>The location of the document to be processed.</p>",
1416                        "smithy.api#required": {}
1417                    }
1418                },
1419                "FeatureTypes": {
1420                    "target": "com.amazonaws.textract#FeatureTypes",
1421                    "traits": {
1422                        "smithy.api#documentation": "<p>A list of the types of analysis to perform. Add TABLES to the list to return information\n         about the tables that are detected in the input document. Add FORMS to return detected\n         form data. To perform both types of analysis, add TABLES\n         and FORMS to <code>FeatureTypes</code>. All lines and words detected in the document are\n         included in the response (including text that isn't related to the value of\n            <code>FeatureTypes</code>). </p>",
1423                        "smithy.api#required": {}
1424                    }
1425                },
1426                "ClientRequestToken": {
1427                    "target": "com.amazonaws.textract#ClientRequestToken",
1428                    "traits": {
1429                        "smithy.api#documentation": "<p>The idempotent token that you use to identify the start request. If you use the same\n         token with multiple <code>StartDocumentAnalysis</code> requests, the same\n            <code>JobId</code> is returned. Use <code>ClientRequestToken</code> to prevent the same\n         job from being accidentally started more than once. For more information, see\n         <a href=\"https://docs.aws.amazon.com/textract/latest/dg/api-async.html\">Calling Amazon Textract Asynchronous Operations</a>.</p>"
1430                    }
1431                },
1432                "JobTag": {
1433                    "target": "com.amazonaws.textract#JobTag",
1434                    "traits": {
1435                        "smithy.api#documentation": "<p>An identifier that you specify that's included in the completion notification published\n         to the Amazon SNS topic. For example, you can use <code>JobTag</code> to identify the type of\n         document that the completion notification corresponds to (such as a tax form or a\n         receipt).</p>"
1436                    }
1437                },
1438                "NotificationChannel": {
1439                    "target": "com.amazonaws.textract#NotificationChannel",
1440                    "traits": {
1441                        "smithy.api#documentation": "<p>The Amazon SNS topic ARN that you want Amazon Textract to publish the completion status of the\n         operation to. </p>"
1442                    }
1443                },
1444                "OutputConfig": {
1445                    "target": "com.amazonaws.textract#OutputConfig",
1446                    "traits": {
1447                        "smithy.api#documentation": "<p>Sets if the output will go to a customer defined bucket. By default, Amazon Textract will save\n         the results internally to be accessed by the GetDocumentAnalysis operation.</p>"
1448                    }
1449                },
1450                "KMSKeyId": {
1451                    "target": "com.amazonaws.textract#KMSKeyId",
1452                    "traits": {
1453                        "smithy.api#documentation": "<p>The KMS key used to encrypt the inference results. This can be \n         in either Key ID or Key Alias format. When a KMS key is provided, the \n         KMS key will be used for server-side encryption of the objects in the \n         customer bucket. When this parameter is not enabled, the result will \n         be encrypted server side,using SSE-S3.</p>"
1454                    }
1455                }
1456            }
1457        },
1458        "com.amazonaws.textract#StartDocumentAnalysisResponse": {
1459            "type": "structure",
1460            "members": {
1461                "JobId": {
1462                    "target": "com.amazonaws.textract#JobId",
1463                    "traits": {
1464                        "smithy.api#documentation": "<p>The identifier for the document text detection job. Use <code>JobId</code> to identify\n         the job in a subsequent call to <code>GetDocumentAnalysis</code>. A <code>JobId</code> value \n         is only valid for 7 days.</p>"
1465                    }
1466                }
1467            }
1468        },
1469        "com.amazonaws.textract#StartDocumentTextDetection": {
1470            "type": "operation",
1471            "input": {
1472                "target": "com.amazonaws.textract#StartDocumentTextDetectionRequest"
1473            },
1474            "output": {
1475                "target": "com.amazonaws.textract#StartDocumentTextDetectionResponse"
1476            },
1477            "errors": [
1478                {
1479                    "target": "com.amazonaws.textract#AccessDeniedException"
1480                },
1481                {
1482                    "target": "com.amazonaws.textract#BadDocumentException"
1483                },
1484                {
1485                    "target": "com.amazonaws.textract#DocumentTooLargeException"
1486                },
1487                {
1488                    "target": "com.amazonaws.textract#IdempotentParameterMismatchException"
1489                },
1490                {
1491                    "target": "com.amazonaws.textract#InternalServerError"
1492                },
1493                {
1494                    "target": "com.amazonaws.textract#InvalidKMSKeyException"
1495                },
1496                {
1497                    "target": "com.amazonaws.textract#InvalidParameterException"
1498                },
1499                {
1500                    "target": "com.amazonaws.textract#InvalidS3ObjectException"
1501                },
1502                {
1503                    "target": "com.amazonaws.textract#LimitExceededException"
1504                },
1505                {
1506                    "target": "com.amazonaws.textract#ProvisionedThroughputExceededException"
1507                },
1508                {
1509                    "target": "com.amazonaws.textract#ThrottlingException"
1510                },
1511                {
1512                    "target": "com.amazonaws.textract#UnsupportedDocumentException"
1513                }
1514            ],
1515            "traits": {
1516                "smithy.api#documentation": "<p>Starts the asynchronous detection of text in a document. Amazon Textract can detect lines of\n         text and the words that make up a line of text.</p>\n         <p>\n            <code>StartDocumentTextDetection</code> can analyze text in documents that are in JPEG, PNG, and PDF format. The\n        documents are stored in an Amazon S3 bucket. Use <a>DocumentLocation</a> to specify the bucket name and file name\n        of the document.\n     </p>\n         <p>\n            <code>StartTextDetection</code> returns a job identifier\n            (<code>JobId</code>) that you use to get the results of the operation. When text\n         detection is finished, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS)\n         topic that you specify in <code>NotificationChannel</code>. To get the results of the text\n         detection operation, first check that the status value published to the Amazon SNS topic is\n            <code>SUCCEEDED</code>. If so, call <a>GetDocumentTextDetection</a>, and\n         pass the job identifier (<code>JobId</code>) from the initial call to\n            <code>StartDocumentTextDetection</code>.</p>\n         <p>For more information, see <a href=\"https://docs.aws.amazon.com/textract/latest/dg/how-it-works-detecting.html\">Document Text Detection</a>.</p>"
1517            }
1518        },
1519        "com.amazonaws.textract#StartDocumentTextDetectionRequest": {
1520            "type": "structure",
1521            "members": {
1522                "DocumentLocation": {
1523                    "target": "com.amazonaws.textract#DocumentLocation",
1524                    "traits": {
1525                        "smithy.api#documentation": "<p>The location of the document to be processed.</p>",
1526                        "smithy.api#required": {}
1527                    }
1528                },
1529                "ClientRequestToken": {
1530                    "target": "com.amazonaws.textract#ClientRequestToken",
1531                    "traits": {
1532                        "smithy.api#documentation": "<p>The idempotent token that's used to identify the start request. If you use the same\n         token with multiple <code>StartDocumentTextDetection</code> requests, the same\n            <code>JobId</code> is returned. Use <code>ClientRequestToken</code> to prevent the same\n         job from being accidentally started more than once. For more information, see\n         <a href=\"https://docs.aws.amazon.com/textract/latest/dg/api-async.html\">Calling Amazon Textract Asynchronous Operations</a>.</p>"
1533                    }
1534                },
1535                "JobTag": {
1536                    "target": "com.amazonaws.textract#JobTag",
1537                    "traits": {
1538                        "smithy.api#documentation": "<p>An identifier that you specify that's included in the completion notification published\n         to the Amazon SNS topic. For example, you can use <code>JobTag</code> to identify the type of\n         document that the completion notification corresponds to (such as a tax form or a\n         receipt).</p>"
1539                    }
1540                },
1541                "NotificationChannel": {
1542                    "target": "com.amazonaws.textract#NotificationChannel",
1543                    "traits": {
1544                        "smithy.api#documentation": "<p>The Amazon SNS topic ARN that you want Amazon Textract to publish the completion status of the\n         operation to. </p>"
1545                    }
1546                },
1547                "OutputConfig": {
1548                    "target": "com.amazonaws.textract#OutputConfig",
1549                    "traits": {
1550                        "smithy.api#documentation": "<p>Sets if the output will go to a customer defined bucket. By default Amazon Textract will\n         save the results internally to be accessed with the GetDocumentTextDetection operation.</p>"
1551                    }
1552                },
1553                "KMSKeyId": {
1554                    "target": "com.amazonaws.textract#KMSKeyId",
1555                    "traits": {
1556                        "smithy.api#documentation": "<p>The KMS key used to encrypt the inference results. This can be \n         in either Key ID or Key Alias format. When a KMS key is provided, the \n         KMS key will be used for server-side encryption of the objects in the \n         customer bucket. When this parameter is not enabled, the result will \n         be encrypted server side,using SSE-S3.</p>"
1557                    }
1558                }
1559            }
1560        },
1561        "com.amazonaws.textract#StartDocumentTextDetectionResponse": {
1562            "type": "structure",
1563            "members": {
1564                "JobId": {
1565                    "target": "com.amazonaws.textract#JobId",
1566                    "traits": {
1567                        "smithy.api#documentation": "<p>The identifier of the text detection job for the document. Use <code>JobId</code> to\n         identify the job in a subsequent call to <code>GetDocumentTextDetection</code>.\n         A <code>JobId</code> value is only valid for 7 days.</p>"
1568                    }
1569                }
1570            }
1571        },
1572        "com.amazonaws.textract#StatusMessage": {
1573            "type": "string"
1574        },
1575        "com.amazonaws.textract#String": {
1576            "type": "string"
1577        },
1578        "com.amazonaws.textract#SynthesizedJsonHumanLoopActivationConditionsEvaluationResults": {
1579            "type": "string",
1580            "traits": {
1581                "smithy.api#length": {
1582                    "min": 0,
1583                    "max": 10240
1584                },
1585                "smithy.api#mediaType": "application/json"
1586            }
1587        },
1588        "com.amazonaws.textract#TextType": {
1589            "type": "string",
1590            "traits": {
1591                "smithy.api#enum": [
1592                    {
1593                        "value": "HANDWRITING",
1594                        "name": "HANDWRITING"
1595                    },
1596                    {
1597                        "value": "PRINTED",
1598                        "name": "PRINTED"
1599                    }
1600                ]
1601            }
1602        },
1603        "com.amazonaws.textract#Textract": {
1604            "type": "service",
1605            "version": "2018-06-27",
1606            "operations": [
1607                {
1608                    "target": "com.amazonaws.textract#AnalyzeDocument"
1609                },
1610                {
1611                    "target": "com.amazonaws.textract#DetectDocumentText"
1612                },
1613                {
1614                    "target": "com.amazonaws.textract#GetDocumentAnalysis"
1615                },
1616                {
1617                    "target": "com.amazonaws.textract#GetDocumentTextDetection"
1618                },
1619                {
1620                    "target": "com.amazonaws.textract#StartDocumentAnalysis"
1621                },
1622                {
1623                    "target": "com.amazonaws.textract#StartDocumentTextDetection"
1624                }
1625            ],
1626            "traits": {
1627                "aws.api#service": {
1628                    "sdkId": "Textract",
1629                    "arnNamespace": "textract",
1630                    "cloudFormationName": "Textract",
1631                    "cloudTrailEventSource": "textract.amazonaws.com",
1632                    "endpointPrefix": "textract"
1633                },
1634                "aws.auth#sigv4": {
1635                    "name": "textract"
1636                },
1637                "aws.protocols#awsJson1_1": {},
1638                "smithy.api#documentation": "<p>Amazon Textract detects and analyzes text in documents and converts it\n         into machine-readable text. This is the API reference documentation for\n         Amazon Textract.</p>",
1639                "smithy.api#title": "Amazon Textract"
1640            }
1641        },
1642        "com.amazonaws.textract#ThrottlingException": {
1643            "type": "structure",
1644            "members": {
1645                "Message": {
1646                    "target": "com.amazonaws.textract#String"
1647                },
1648                "Code": {
1649                    "target": "com.amazonaws.textract#String"
1650                }
1651            },
1652            "traits": {
1653                "smithy.api#documentation": "<p>Amazon Textract is temporarily unable to process the request. Try your call again.</p>",
1654                "smithy.api#error": "server"
1655            }
1656        },
1657        "com.amazonaws.textract#UInteger": {
1658            "type": "integer",
1659            "traits": {
1660                "smithy.api#box": {},
1661                "smithy.api#range": {
1662                    "min": 0
1663                }
1664            }
1665        },
1666        "com.amazonaws.textract#UnsupportedDocumentException": {
1667            "type": "structure",
1668            "members": {
1669                "Message": {
1670                    "target": "com.amazonaws.textract#String"
1671                },
1672                "Code": {
1673                    "target": "com.amazonaws.textract#String"
1674                }
1675            },
1676            "traits": {
1677                "smithy.api#documentation": "<p>The format of the input document isn't supported. Documents for synchronous operations can be in\n         PNG or JPEG format. Documents for asynchronous operations can also be in PDF format.</p>",
1678                "smithy.api#error": "client"
1679            }
1680        },
1681        "com.amazonaws.textract#Warning": {
1682            "type": "structure",
1683            "members": {
1684                "ErrorCode": {
1685                    "target": "com.amazonaws.textract#ErrorCode",
1686                    "traits": {
1687                        "smithy.api#documentation": "<p>The error code for the warning.</p>"
1688                    }
1689                },
1690                "Pages": {
1691                    "target": "com.amazonaws.textract#Pages",
1692                    "traits": {
1693                        "smithy.api#documentation": "<p>A list of the pages that the warning applies to.</p>"
1694                    }
1695                }
1696            },
1697            "traits": {
1698                "smithy.api#documentation": "<p>A warning about an issue that occurred during asynchronous text analysis (<a>StartDocumentAnalysis</a>) or asynchronous document text detection (<a>StartDocumentTextDetection</a>). </p>"
1699            }
1700        },
1701        "com.amazonaws.textract#Warnings": {
1702            "type": "list",
1703            "member": {
1704                "target": "com.amazonaws.textract#Warning"
1705            }
1706        }
1707    }
1708}
1709