aws-sdk-textract 1.44.0 → 1.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92de5df3f3155b90c297f558e4776f6fb177bda6086bb7d8f47049c480a5ce83
4
- data.tar.gz: d0ebc6f5b4023820527fbdf4e2f78f3d6b4d0e871f632b0058b94bb007a7a482
3
+ metadata.gz: 777fcf3c9d699596ab3907f91b6bf30f87bae6d872ad92233523ccc69398feb9
4
+ data.tar.gz: 37d29c4f58c1166552dec3f7907e6ea291793a19cd28b0790b22d2e7affca3ad
5
5
  SHA512:
6
- metadata.gz: 000f30a115c02b37cb9107ba9a7a1644eeb087667ca786c3b59c06d4c0c052b98d0eca172d68fa319b72478c603e20a332fabcc310110226f4837d3569f778be
7
- data.tar.gz: 7dc44d28f5fc7a39c9023590edf884328fa43fad33c89d2d32138651ab33b3b8dda75c1345ca898fcfdb60f4c1f30cc6628ae4e48c321c512e5c5e819aeb81cb
6
+ metadata.gz: d4f598997bf2b9541559756631d2cdb10d65bc718691e674560e663b1008ae35f0a18d29fc2f4714415ca2f714255f4ff1f6af3f85a1bdf4183a4a6400fb186c
7
+ data.tar.gz: 9c1631d70858598305ca369566d55fa83c9eff691012a9ad9a5f6340635ec48d922dc321a8a5a884f55e05964d657342d6f18e1aee786afc9f8f0459797d5b4a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.45.0 (2023-03-23)
5
+ ------------------
6
+
7
+ * Feature - The AnalyzeDocument - Tables feature adds support for new elements in the API: table titles, footers, section titles, summary cells/tables, and table type.
8
+
4
9
  1.44.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.44.0
1
+ 1.45.0
@@ -383,7 +383,7 @@ module Aws::Textract
383
383
  # The types of information returned are as follows:
384
384
  #
385
385
  # * Form data (key-value pairs). The related information is returned in
386
- # two Block objects, each of type `KEY_VALUE_SET`\: a KEY `Block`
386
+ # two Block objects, each of type `KEY_VALUE_SET`: a KEY `Block`
387
387
  # object and a VALUE `Block` object. For example, *Name: Ana Silva
388
388
  # Carolina* contains a key and value. *Name:* is the key. *Ana Silva
389
389
  # Carolina* is the value.
@@ -498,7 +498,7 @@ module Aws::Textract
498
498
  #
499
499
  # resp.document_metadata.pages #=> Integer
500
500
  # resp.blocks #=> Array
501
- # resp.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT", "SIGNATURE"
501
+ # resp.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT", "SIGNATURE", "TABLE_TITLE", "TABLE_FOOTER"
502
502
  # resp.blocks[0].confidence #=> Float
503
503
  # resp.blocks[0].text #=> String
504
504
  # resp.blocks[0].text_type #=> String, one of "HANDWRITING", "PRINTED"
@@ -515,11 +515,11 @@ module Aws::Textract
515
515
  # resp.blocks[0].geometry.polygon[0].y #=> Float
516
516
  # resp.blocks[0].id #=> String
517
517
  # resp.blocks[0].relationships #=> Array
518
- # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER"
518
+ # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER", "TABLE", "TABLE_TITLE", "TABLE_FOOTER"
519
519
  # resp.blocks[0].relationships[0].ids #=> Array
520
520
  # resp.blocks[0].relationships[0].ids[0] #=> String
521
521
  # resp.blocks[0].entity_types #=> Array
522
- # resp.blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER"
522
+ # resp.blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER", "TABLE_TITLE", "TABLE_FOOTER", "TABLE_SECTION_TITLE", "TABLE_SUMMARY", "STRUCTURED_TABLE", "SEMI_STRUCTURED_TABLE"
523
523
  # resp.blocks[0].selection_status #=> String, one of "SELECTED", "NOT_SELECTED"
524
524
  # resp.blocks[0].page #=> Integer
525
525
  # resp.blocks[0].query.text #=> String
@@ -662,7 +662,7 @@ module Aws::Textract
662
662
  # resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].group_properties[0].types[0] #=> String
663
663
  # resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].group_properties[0].id #=> String
664
664
  # resp.expense_documents[0].blocks #=> Array
665
- # resp.expense_documents[0].blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT", "SIGNATURE"
665
+ # resp.expense_documents[0].blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT", "SIGNATURE", "TABLE_TITLE", "TABLE_FOOTER"
666
666
  # resp.expense_documents[0].blocks[0].confidence #=> Float
667
667
  # resp.expense_documents[0].blocks[0].text #=> String
668
668
  # resp.expense_documents[0].blocks[0].text_type #=> String, one of "HANDWRITING", "PRINTED"
@@ -679,11 +679,11 @@ module Aws::Textract
679
679
  # resp.expense_documents[0].blocks[0].geometry.polygon[0].y #=> Float
680
680
  # resp.expense_documents[0].blocks[0].id #=> String
681
681
  # resp.expense_documents[0].blocks[0].relationships #=> Array
682
- # resp.expense_documents[0].blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER"
682
+ # resp.expense_documents[0].blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER", "TABLE", "TABLE_TITLE", "TABLE_FOOTER"
683
683
  # resp.expense_documents[0].blocks[0].relationships[0].ids #=> Array
684
684
  # resp.expense_documents[0].blocks[0].relationships[0].ids[0] #=> String
685
685
  # resp.expense_documents[0].blocks[0].entity_types #=> Array
686
- # resp.expense_documents[0].blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER"
686
+ # resp.expense_documents[0].blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER", "TABLE_TITLE", "TABLE_FOOTER", "TABLE_SECTION_TITLE", "TABLE_SUMMARY", "STRUCTURED_TABLE", "SEMI_STRUCTURED_TABLE"
687
687
  # resp.expense_documents[0].blocks[0].selection_status #=> String, one of "SELECTED", "NOT_SELECTED"
688
688
  # resp.expense_documents[0].blocks[0].page #=> Integer
689
689
  # resp.expense_documents[0].blocks[0].query.text #=> String
@@ -702,9 +702,9 @@ module Aws::Textract
702
702
 
703
703
  # Analyzes identity documents for relevant information. This information
704
704
  # is extracted and returned as `IdentityDocumentFields`, which records
705
- # both the normalized field and value of the extracted text.Unlike other
706
- # Amazon Textract operations, `AnalyzeID` doesn't return any Geometry
707
- # data.
705
+ # both the normalized field and value of the extracted text. Unlike
706
+ # other Amazon Textract operations, `AnalyzeID` doesn't return any
707
+ # Geometry data.
708
708
  #
709
709
  # @option params [required, Array<Types::Document>] :document_pages
710
710
  # The document being passed to AnalyzeID.
@@ -744,7 +744,7 @@ module Aws::Textract
744
744
  # resp.identity_documents[0].identity_document_fields[0].value_detection.normalized_value.value_type #=> String, one of "DATE"
745
745
  # resp.identity_documents[0].identity_document_fields[0].value_detection.confidence #=> Float
746
746
  # resp.identity_documents[0].blocks #=> Array
747
- # resp.identity_documents[0].blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT", "SIGNATURE"
747
+ # resp.identity_documents[0].blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT", "SIGNATURE", "TABLE_TITLE", "TABLE_FOOTER"
748
748
  # resp.identity_documents[0].blocks[0].confidence #=> Float
749
749
  # resp.identity_documents[0].blocks[0].text #=> String
750
750
  # resp.identity_documents[0].blocks[0].text_type #=> String, one of "HANDWRITING", "PRINTED"
@@ -761,11 +761,11 @@ module Aws::Textract
761
761
  # resp.identity_documents[0].blocks[0].geometry.polygon[0].y #=> Float
762
762
  # resp.identity_documents[0].blocks[0].id #=> String
763
763
  # resp.identity_documents[0].blocks[0].relationships #=> Array
764
- # resp.identity_documents[0].blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER"
764
+ # resp.identity_documents[0].blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER", "TABLE", "TABLE_TITLE", "TABLE_FOOTER"
765
765
  # resp.identity_documents[0].blocks[0].relationships[0].ids #=> Array
766
766
  # resp.identity_documents[0].blocks[0].relationships[0].ids[0] #=> String
767
767
  # resp.identity_documents[0].blocks[0].entity_types #=> Array
768
- # resp.identity_documents[0].blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER"
768
+ # resp.identity_documents[0].blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER", "TABLE_TITLE", "TABLE_FOOTER", "TABLE_SECTION_TITLE", "TABLE_SUMMARY", "STRUCTURED_TABLE", "SEMI_STRUCTURED_TABLE"
769
769
  # resp.identity_documents[0].blocks[0].selection_status #=> String, one of "SELECTED", "NOT_SELECTED"
770
770
  # resp.identity_documents[0].blocks[0].page #=> Integer
771
771
  # resp.identity_documents[0].blocks[0].query.text #=> String
@@ -837,7 +837,7 @@ module Aws::Textract
837
837
  #
838
838
  # resp.document_metadata.pages #=> Integer
839
839
  # resp.blocks #=> Array
840
- # resp.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT", "SIGNATURE"
840
+ # resp.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT", "SIGNATURE", "TABLE_TITLE", "TABLE_FOOTER"
841
841
  # resp.blocks[0].confidence #=> Float
842
842
  # resp.blocks[0].text #=> String
843
843
  # resp.blocks[0].text_type #=> String, one of "HANDWRITING", "PRINTED"
@@ -854,11 +854,11 @@ module Aws::Textract
854
854
  # resp.blocks[0].geometry.polygon[0].y #=> Float
855
855
  # resp.blocks[0].id #=> String
856
856
  # resp.blocks[0].relationships #=> Array
857
- # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER"
857
+ # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER", "TABLE", "TABLE_TITLE", "TABLE_FOOTER"
858
858
  # resp.blocks[0].relationships[0].ids #=> Array
859
859
  # resp.blocks[0].relationships[0].ids[0] #=> String
860
860
  # resp.blocks[0].entity_types #=> Array
861
- # resp.blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER"
861
+ # resp.blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER", "TABLE_TITLE", "TABLE_FOOTER", "TABLE_SECTION_TITLE", "TABLE_SUMMARY", "STRUCTURED_TABLE", "SEMI_STRUCTURED_TABLE"
862
862
  # resp.blocks[0].selection_status #=> String, one of "SELECTED", "NOT_SELECTED"
863
863
  # resp.blocks[0].page #=> Integer
864
864
  # resp.blocks[0].query.text #=> String
@@ -893,7 +893,7 @@ module Aws::Textract
893
893
  # types of information are returned:
894
894
  #
895
895
  # * Form data (key-value pairs). The related information is returned in
896
- # two Block objects, each of type `KEY_VALUE_SET`\: a KEY `Block`
896
+ # two Block objects, each of type `KEY_VALUE_SET`: a KEY `Block`
897
897
  # object and a VALUE `Block` object. For example, *Name: Ana Silva
898
898
  # Carolina* contains a key and value. *Name:* is the key. *Ana Silva
899
899
  # Carolina* is the value.
@@ -982,7 +982,7 @@ module Aws::Textract
982
982
  # resp.job_status #=> String, one of "IN_PROGRESS", "SUCCEEDED", "FAILED", "PARTIAL_SUCCESS"
983
983
  # resp.next_token #=> String
984
984
  # resp.blocks #=> Array
985
- # resp.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT", "SIGNATURE"
985
+ # resp.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT", "SIGNATURE", "TABLE_TITLE", "TABLE_FOOTER"
986
986
  # resp.blocks[0].confidence #=> Float
987
987
  # resp.blocks[0].text #=> String
988
988
  # resp.blocks[0].text_type #=> String, one of "HANDWRITING", "PRINTED"
@@ -999,11 +999,11 @@ module Aws::Textract
999
999
  # resp.blocks[0].geometry.polygon[0].y #=> Float
1000
1000
  # resp.blocks[0].id #=> String
1001
1001
  # resp.blocks[0].relationships #=> Array
1002
- # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER"
1002
+ # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER", "TABLE", "TABLE_TITLE", "TABLE_FOOTER"
1003
1003
  # resp.blocks[0].relationships[0].ids #=> Array
1004
1004
  # resp.blocks[0].relationships[0].ids[0] #=> String
1005
1005
  # resp.blocks[0].entity_types #=> Array
1006
- # resp.blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER"
1006
+ # resp.blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER", "TABLE_TITLE", "TABLE_FOOTER", "TABLE_SECTION_TITLE", "TABLE_SUMMARY", "STRUCTURED_TABLE", "SEMI_STRUCTURED_TABLE"
1007
1007
  # resp.blocks[0].selection_status #=> String, one of "SELECTED", "NOT_SELECTED"
1008
1008
  # resp.blocks[0].page #=> Integer
1009
1009
  # resp.blocks[0].query.text #=> String
@@ -1104,7 +1104,7 @@ module Aws::Textract
1104
1104
  # resp.job_status #=> String, one of "IN_PROGRESS", "SUCCEEDED", "FAILED", "PARTIAL_SUCCESS"
1105
1105
  # resp.next_token #=> String
1106
1106
  # resp.blocks #=> Array
1107
- # resp.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT", "SIGNATURE"
1107
+ # resp.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT", "SIGNATURE", "TABLE_TITLE", "TABLE_FOOTER"
1108
1108
  # resp.blocks[0].confidence #=> Float
1109
1109
  # resp.blocks[0].text #=> String
1110
1110
  # resp.blocks[0].text_type #=> String, one of "HANDWRITING", "PRINTED"
@@ -1121,11 +1121,11 @@ module Aws::Textract
1121
1121
  # resp.blocks[0].geometry.polygon[0].y #=> Float
1122
1122
  # resp.blocks[0].id #=> String
1123
1123
  # resp.blocks[0].relationships #=> Array
1124
- # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER"
1124
+ # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER", "TABLE", "TABLE_TITLE", "TABLE_FOOTER"
1125
1125
  # resp.blocks[0].relationships[0].ids #=> Array
1126
1126
  # resp.blocks[0].relationships[0].ids[0] #=> String
1127
1127
  # resp.blocks[0].entity_types #=> Array
1128
- # resp.blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER"
1128
+ # resp.blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER", "TABLE_TITLE", "TABLE_FOOTER", "TABLE_SECTION_TITLE", "TABLE_SUMMARY", "STRUCTURED_TABLE", "SEMI_STRUCTURED_TABLE"
1129
1129
  # resp.blocks[0].selection_status #=> String, one of "SELECTED", "NOT_SELECTED"
1130
1130
  # resp.blocks[0].page #=> Integer
1131
1131
  # resp.blocks[0].query.text #=> String
@@ -1279,7 +1279,7 @@ module Aws::Textract
1279
1279
  # resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].group_properties[0].types[0] #=> String
1280
1280
  # resp.expense_documents[0].line_item_groups[0].line_items[0].line_item_expense_fields[0].group_properties[0].id #=> String
1281
1281
  # resp.expense_documents[0].blocks #=> Array
1282
- # resp.expense_documents[0].blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT", "SIGNATURE"
1282
+ # resp.expense_documents[0].blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT", "SIGNATURE", "TABLE_TITLE", "TABLE_FOOTER"
1283
1283
  # resp.expense_documents[0].blocks[0].confidence #=> Float
1284
1284
  # resp.expense_documents[0].blocks[0].text #=> String
1285
1285
  # resp.expense_documents[0].blocks[0].text_type #=> String, one of "HANDWRITING", "PRINTED"
@@ -1296,11 +1296,11 @@ module Aws::Textract
1296
1296
  # resp.expense_documents[0].blocks[0].geometry.polygon[0].y #=> Float
1297
1297
  # resp.expense_documents[0].blocks[0].id #=> String
1298
1298
  # resp.expense_documents[0].blocks[0].relationships #=> Array
1299
- # resp.expense_documents[0].blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER"
1299
+ # resp.expense_documents[0].blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER", "TABLE", "TABLE_TITLE", "TABLE_FOOTER"
1300
1300
  # resp.expense_documents[0].blocks[0].relationships[0].ids #=> Array
1301
1301
  # resp.expense_documents[0].blocks[0].relationships[0].ids[0] #=> String
1302
1302
  # resp.expense_documents[0].blocks[0].entity_types #=> Array
1303
- # resp.expense_documents[0].blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER"
1303
+ # resp.expense_documents[0].blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER", "TABLE_TITLE", "TABLE_FOOTER", "TABLE_SECTION_TITLE", "TABLE_SUMMARY", "STRUCTURED_TABLE", "SEMI_STRUCTURED_TABLE"
1304
1304
  # resp.expense_documents[0].blocks[0].selection_status #=> String, one of "SELECTED", "NOT_SELECTED"
1305
1305
  # resp.expense_documents[0].blocks[0].page #=> Integer
1306
1306
  # resp.expense_documents[0].blocks[0].query.text #=> String
@@ -1479,7 +1479,7 @@ module Aws::Textract
1479
1479
  # resp.results[0].extractions[0].expense_document.line_item_groups[0].line_items[0].line_item_expense_fields[0].group_properties[0].types[0] #=> String
1480
1480
  # resp.results[0].extractions[0].expense_document.line_item_groups[0].line_items[0].line_item_expense_fields[0].group_properties[0].id #=> String
1481
1481
  # resp.results[0].extractions[0].expense_document.blocks #=> Array
1482
- # resp.results[0].extractions[0].expense_document.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT", "SIGNATURE"
1482
+ # resp.results[0].extractions[0].expense_document.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT", "SIGNATURE", "TABLE_TITLE", "TABLE_FOOTER"
1483
1483
  # resp.results[0].extractions[0].expense_document.blocks[0].confidence #=> Float
1484
1484
  # resp.results[0].extractions[0].expense_document.blocks[0].text #=> String
1485
1485
  # resp.results[0].extractions[0].expense_document.blocks[0].text_type #=> String, one of "HANDWRITING", "PRINTED"
@@ -1496,11 +1496,11 @@ module Aws::Textract
1496
1496
  # resp.results[0].extractions[0].expense_document.blocks[0].geometry.polygon[0].y #=> Float
1497
1497
  # resp.results[0].extractions[0].expense_document.blocks[0].id #=> String
1498
1498
  # resp.results[0].extractions[0].expense_document.blocks[0].relationships #=> Array
1499
- # resp.results[0].extractions[0].expense_document.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER"
1499
+ # resp.results[0].extractions[0].expense_document.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER", "TABLE", "TABLE_TITLE", "TABLE_FOOTER"
1500
1500
  # resp.results[0].extractions[0].expense_document.blocks[0].relationships[0].ids #=> Array
1501
1501
  # resp.results[0].extractions[0].expense_document.blocks[0].relationships[0].ids[0] #=> String
1502
1502
  # resp.results[0].extractions[0].expense_document.blocks[0].entity_types #=> Array
1503
- # resp.results[0].extractions[0].expense_document.blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER"
1503
+ # resp.results[0].extractions[0].expense_document.blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER", "TABLE_TITLE", "TABLE_FOOTER", "TABLE_SECTION_TITLE", "TABLE_SUMMARY", "STRUCTURED_TABLE", "SEMI_STRUCTURED_TABLE"
1504
1504
  # resp.results[0].extractions[0].expense_document.blocks[0].selection_status #=> String, one of "SELECTED", "NOT_SELECTED"
1505
1505
  # resp.results[0].extractions[0].expense_document.blocks[0].page #=> Integer
1506
1506
  # resp.results[0].extractions[0].expense_document.blocks[0].query.text #=> String
@@ -1518,7 +1518,7 @@ module Aws::Textract
1518
1518
  # resp.results[0].extractions[0].identity_document.identity_document_fields[0].value_detection.normalized_value.value_type #=> String, one of "DATE"
1519
1519
  # resp.results[0].extractions[0].identity_document.identity_document_fields[0].value_detection.confidence #=> Float
1520
1520
  # resp.results[0].extractions[0].identity_document.blocks #=> Array
1521
- # resp.results[0].extractions[0].identity_document.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT", "SIGNATURE"
1521
+ # resp.results[0].extractions[0].identity_document.blocks[0].block_type #=> String, one of "KEY_VALUE_SET", "PAGE", "LINE", "WORD", "TABLE", "CELL", "SELECTION_ELEMENT", "MERGED_CELL", "TITLE", "QUERY", "QUERY_RESULT", "SIGNATURE", "TABLE_TITLE", "TABLE_FOOTER"
1522
1522
  # resp.results[0].extractions[0].identity_document.blocks[0].confidence #=> Float
1523
1523
  # resp.results[0].extractions[0].identity_document.blocks[0].text #=> String
1524
1524
  # resp.results[0].extractions[0].identity_document.blocks[0].text_type #=> String, one of "HANDWRITING", "PRINTED"
@@ -1535,11 +1535,11 @@ module Aws::Textract
1535
1535
  # resp.results[0].extractions[0].identity_document.blocks[0].geometry.polygon[0].y #=> Float
1536
1536
  # resp.results[0].extractions[0].identity_document.blocks[0].id #=> String
1537
1537
  # resp.results[0].extractions[0].identity_document.blocks[0].relationships #=> Array
1538
- # resp.results[0].extractions[0].identity_document.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER"
1538
+ # resp.results[0].extractions[0].identity_document.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES", "MERGED_CELL", "TITLE", "ANSWER", "TABLE", "TABLE_TITLE", "TABLE_FOOTER"
1539
1539
  # resp.results[0].extractions[0].identity_document.blocks[0].relationships[0].ids #=> Array
1540
1540
  # resp.results[0].extractions[0].identity_document.blocks[0].relationships[0].ids[0] #=> String
1541
1541
  # resp.results[0].extractions[0].identity_document.blocks[0].entity_types #=> Array
1542
- # resp.results[0].extractions[0].identity_document.blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER"
1542
+ # resp.results[0].extractions[0].identity_document.blocks[0].entity_types[0] #=> String, one of "KEY", "VALUE", "COLUMN_HEADER", "TABLE_TITLE", "TABLE_FOOTER", "TABLE_SECTION_TITLE", "TABLE_SUMMARY", "STRUCTURED_TABLE", "SEMI_STRUCTURED_TABLE"
1543
1543
  # resp.results[0].extractions[0].identity_document.blocks[0].selection_status #=> String, one of "SELECTED", "NOT_SELECTED"
1544
1544
  # resp.results[0].extractions[0].identity_document.blocks[0].page #=> Integer
1545
1545
  # resp.results[0].extractions[0].identity_document.blocks[0].query.text #=> String
@@ -2105,7 +2105,7 @@ module Aws::Textract
2105
2105
  params: params,
2106
2106
  config: config)
2107
2107
  context[:gem_name] = 'aws-sdk-textract'
2108
- context[:gem_version] = '1.44.0'
2108
+ context[:gem_version] = '1.45.0'
2109
2109
  Seahorse::Client::Request.new(handlers, context)
2110
2110
  end
2111
2111
 
@@ -50,9 +50,6 @@ module Aws::Textract
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -14,36 +14,39 @@ module Aws::Textract
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
- end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://textract-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
- end
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
33
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://textract-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
- end
37
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
38
20
  end
39
21
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://textract.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://textract-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://textract-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://textract.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
42
45
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://textract.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://textract.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
48
  end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
50
  raise ArgumentError, 'No endpoint could be resolved'
48
51
 
49
52
  end
@@ -264,9 +264,21 @@ module Aws::Textract
264
264
  # grid-based information with two or more rows or columns, with a
265
265
  # cell span of one row and one column each.
266
266
  #
267
+ # * *TABLE\_TITLE* - The title of a table. A title is typically a line
268
+ # of text above or below a table, or embedded as the first row of a
269
+ # table.
270
+ #
271
+ # * *TABLE\_FOOTER* - The footer associated with a table. A footer is
272
+ # typically a line or lines of text below a table or embedded as the
273
+ # last row of a table.
274
+ #
267
275
  # * *CELL* - A cell within a detected table. The cell is the parent of
268
276
  # the block that contains the text in the cell.
269
277
  #
278
+ # * *MERGED\_CELL* - A cell in a table whose content spans more than
279
+ # one row or column. The `Relationships` array for this cell contain
280
+ # data from individual cells.
281
+ #
270
282
  # * *SELECTION\_ELEMENT* - A selection element such as an option
271
283
  # button (radio button) or a check box that's detected on a
272
284
  # document page. Use the value of `SelectionStatus` to determine the
@@ -313,17 +325,13 @@ module Aws::Textract
313
325
  # @return [Integer]
314
326
  #
315
327
  # @!attribute [rw] row_span
316
- # The number of rows that a table cell spans. Currently this value is
317
- # always 1, even if the number of rows spanned is greater than 1.
318
- # `RowSpan` isn't returned by `DetectDocumentText` and
319
- # `GetDocumentTextDetection`.
328
+ # The number of rows that a table cell spans. `RowSpan` isn't
329
+ # returned by `DetectDocumentText` and `GetDocumentTextDetection`.
320
330
  # @return [Integer]
321
331
  #
322
332
  # @!attribute [rw] column_span
323
- # The number of columns that a table cell spans. Currently this value
324
- # is always 1, even if the number of columns spanned is greater than
325
- # 1. `ColumnSpan` isn't returned by `DetectDocumentText` and
326
- # `GetDocumentTextDetection`.
333
+ # The number of columns that a table cell spans. `ColumnSpan` isn't
334
+ # returned by `DetectDocumentText` and `GetDocumentTextDetection`.
327
335
  # @return [Integer]
328
336
  #
329
337
  # @!attribute [rw] geometry
@@ -338,24 +346,45 @@ module Aws::Textract
338
346
  # @return [String]
339
347
  #
340
348
  # @!attribute [rw] relationships
341
- # A list of child blocks of the current block. For example, a LINE
342
- # object has child blocks for each WORD block that's part of the line
343
- # of text. There aren't Relationship objects in the list for
349
+ # A list of relationship objects that describe how blocks are related
350
+ # to each other. For example, a LINE block object contains a CHILD
351
+ # relationship type with the WORD blocks that make up the line of
352
+ # text. There aren't Relationship objects in the list for
344
353
  # relationships that don't exist, such as when the current block has
345
- # no child blocks. The list size can be the following:
346
- #
347
- # * 0 - The block has no child blocks.
348
- #
349
- # * 1 - The block has child blocks.
354
+ # no child blocks.
350
355
  # @return [Array<Types::Relationship>]
351
356
  #
352
357
  # @!attribute [rw] entity_types
353
- # The type of entity. The following can be returned:
358
+ # The type of entity.
359
+ #
360
+ # The following entity types can be returned by FORMS analysis:
354
361
  #
355
362
  # * *KEY* - An identifier for a field on the document.
356
363
  #
357
364
  # * *VALUE* - The field text.
358
365
  #
366
+ # The following entity types can be returned by TABLES analysis:
367
+ #
368
+ # * *COLUMN\_HEADER* - Identifies a cell that is a header of a column.
369
+ #
370
+ # * *TABLE\_TITLE* - Identifies a cell that is a title within the
371
+ # table.
372
+ #
373
+ # * *TABLE\_SECTION\_TITLE* - Identifies a cell that is a title of a
374
+ # section within a table. A section title is a cell that typically
375
+ # spans an entire row above a section.
376
+ #
377
+ # * *TABLE\_FOOTER* - Identifies a cell that is a footer of a table.
378
+ #
379
+ # * *TABLE\_SUMMARY* - Identifies a summary cell of a table. A summary
380
+ # cell can be a row of a table or an additional, smaller table that
381
+ # contains summary information for another table.
382
+ #
383
+ # * <i>STRUCTURED\_TABLE </i> - Identifies a table with column headers
384
+ # where the content of each row corresponds to the headers.
385
+ #
386
+ # * *SEMI\_STRUCTURED\_TABLE* - Identifies a non-structured table.
387
+ #
359
388
  # `EntityTypes` isn't returned by `DetectDocumentText` and
360
389
  # `GetDocumentTextDetection`.
361
390
  # @return [Array<String>]
@@ -372,9 +401,9 @@ module Aws::Textract
372
401
  # format. A scanned image (JPEG/PNG) provided to an asynchronous
373
402
  # operation, even if it contains multiple document pages, is
374
403
  # considered a single-page document. This means that for scanned
375
- # images the value of `Page` is always 1. Synchronous operations
376
- # operations will also return a `Page` value of 1 because every input
377
- # document is considered to be a single-page document.
404
+ # images the value of `Page` is always 1. Synchronous operations will
405
+ # also return a `Page` value of 1 because every input document is
406
+ # considered to be a single-page document.
378
407
  # @return [Integer]
379
408
  #
380
409
  # @!attribute [rw] query
@@ -557,8 +586,13 @@ module Aws::Textract
557
586
  # Summary information about documents grouped by the same document type.
558
587
  #
559
588
  # @!attribute [rw] type
560
- # The type of document that Amazon Textract has detected. See LINK for
561
- # a list of all types returned by Textract.
589
+ # The type of document that Amazon Textract has detected. See [Analyze
590
+ # Lending Response Objects][1] for a list of all types returned by
591
+ # Textract.
592
+ #
593
+ #
594
+ #
595
+ # [1]: https://docs.aws.amazon.com/textract/latest/dg/lending-response-objects.html
562
596
  # @return [String]
563
597
  #
564
598
  # @!attribute [rw] split_documents
@@ -1824,13 +1858,31 @@ module Aws::Textract
1824
1858
  # blocks in the `IDs` array.
1825
1859
  #
1826
1860
  # @!attribute [rw] type
1827
- # The type of relationship that the blocks in the IDs array have with
1828
- # the current block. The relationship can be `VALUE` or `CHILD`. A
1829
- # relationship of type VALUE is a list that contains the ID of the
1830
- # VALUE block that's associated with the KEY of a key-value pair. A
1831
- # relationship of type CHILD is a list of IDs that identify WORD
1832
- # blocks in the case of lines Cell blocks in the case of Tables, and
1833
- # WORD blocks in the case of Selection Elements.
1861
+ # The type of relationship between the blocks in the IDs array and the
1862
+ # current block. The following list describes the relationship types
1863
+ # that can be returned.
1864
+ #
1865
+ # * *VALUE* - A list that contains the ID of the VALUE block that's
1866
+ # associated with the KEY of a key-value pair.
1867
+ #
1868
+ # * *CHILD* - A list of IDs that identify blocks found within the
1869
+ # current block object. For example, WORD blocks have a CHILD
1870
+ # relationship to the LINE block type.
1871
+ #
1872
+ # * *MERGED\_CELL* - A list of IDs that identify each of the
1873
+ # MERGED\_CELL block types in a table.
1874
+ #
1875
+ # * *ANSWER* - A list that contains the ID of the QUERY\_RESULT block
1876
+ # that’s associated with the corresponding QUERY block.
1877
+ #
1878
+ # * *TABLE* - A list of IDs that identify associated TABLE block
1879
+ # types.
1880
+ #
1881
+ # * *TABLE\_TITLE* - A list that contains the ID for the TABLE\_TITLE
1882
+ # block type in a table.
1883
+ #
1884
+ # * *TABLE\_FOOTER* - A list of IDs that identify the TABLE\_FOOTER
1885
+ # block types in a table.
1834
1886
  # @return [String]
1835
1887
  #
1836
1888
  # @!attribute [rw] ids
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-textract/customizations'
52
52
  # @!group service
53
53
  module Aws::Textract
54
54
 
55
- GEM_VERSION = '1.44.0'
55
+ GEM_VERSION = '1.45.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-textract
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.44.0
4
+ version: 1.45.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-18 00:00:00.000000000 Z
11
+ date: 2023-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core