aws-sdk-textract 1.43.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 +4 -4
- data/CHANGELOG.md +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-textract/client.rb +33 -33
- data/lib/aws-sdk-textract/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-textract/endpoint_provider.rb +38 -95
- data/lib/aws-sdk-textract/types.rb +81 -341
- data/lib/aws-sdk-textract.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 777fcf3c9d699596ab3907f91b6bf30f87bae6d872ad92233523ccc69398feb9
|
|
4
|
+
data.tar.gz: 37d29c4f58c1166552dec3f7907e6ea291793a19cd28b0790b22d2e7affca3ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d4f598997bf2b9541559756631d2cdb10d65bc718691e674560e663b1008ae35f0a18d29fc2f4714415ca2f714255f4ff1f6af3f85a1bdf4183a4a6400fb186c
|
|
7
|
+
data.tar.gz: 9c1631d70858598305ca369566d55fa83c9eff691012a9ad9a5f6340635ec48d922dc321a8a5a884f55e05964d657342d6f18e1aee786afc9f8f0459797d5b4a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
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
|
+
|
|
9
|
+
1.44.0 (2023-01-18)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
13
|
+
|
|
14
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
|
15
|
+
|
|
4
16
|
1.43.0 (2022-11-28)
|
|
5
17
|
------------------
|
|
6
18
|
|
|
@@ -225,4 +237,4 @@ Unreleased Changes
|
|
|
225
237
|
1.0.0 (2019-03-05)
|
|
226
238
|
------------------
|
|
227
239
|
|
|
228
|
-
* Feature - Initial release of `aws-sdk-textract`.
|
|
240
|
+
* Feature - Initial release of `aws-sdk-textract`.
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
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
|
|
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
|
|
706
|
-
# Amazon Textract operations, `AnalyzeID` doesn't return any
|
|
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
|
|
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.
|
|
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?
|
|
@@ -9,103 +9,46 @@
|
|
|
9
9
|
|
|
10
10
|
module Aws::Textract
|
|
11
11
|
class EndpointProvider
|
|
12
|
-
def
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
def resolve_endpoint(parameters)
|
|
13
|
+
region = parameters.region
|
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
|
15
|
+
use_fips = parameters.use_fips
|
|
16
|
+
endpoint = parameters.endpoint
|
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
|
20
|
+
end
|
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
|
23
|
+
end
|
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
|
21
25
|
end
|
|
22
|
-
|
|
23
|
-
|
|
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"
|
|
45
|
+
end
|
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://textract.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
|
50
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
|
24
51
|
|
|
25
|
-
def resolve_endpoint(parameters)
|
|
26
|
-
@provider.resolve_endpoint(parameters)
|
|
27
52
|
end
|
|
28
|
-
|
|
29
|
-
# @api private
|
|
30
|
-
RULES = <<-JSON
|
|
31
|
-
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
|
32
|
-
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
|
|
33
|
-
YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
|
|
34
|
-
ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
|
|
35
|
-
aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayI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IjoidHJlZSIsInJ1bGVzIjpbeyJjb25kaXRpb25zIjpbeyJm
|
|
96
|
-
biI6ImJvb2xlYW5FcXVhbHMiLCJhcmd2IjpbdHJ1ZSx7ImZuIjoiZ2V0QXR0
|
|
97
|
-
ciIsImFyZ3YiOlt7InJlZiI6IlBhcnRpdGlvblJlc3VsdCJ9LCJzdXBwb3J0
|
|
98
|
-
c0R1YWxTdGFjayJdfV19XSwidHlwZSI6InRyZWUiLCJydWxlcyI6W3siY29u
|
|
99
|
-
ZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vdGV4dHJh
|
|
100
|
-
Y3Que1JlZ2lvbn0ue1BhcnRpdGlvblJlc3VsdCNkdWFsU3RhY2tEbnNTdWZm
|
|
101
|
-
aXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVu
|
|
102
|
-
ZHBvaW50In1dfSx7ImNvbmRpdGlvbnMiOltdLCJlcnJvciI6IkR1YWxTdGFj
|
|
103
|
-
ayBpcyBlbmFibGVkIGJ1dCB0aGlzIHBhcnRpdGlvbiBkb2VzIG5vdCBzdXBw
|
|
104
|
-
b3J0IER1YWxTdGFjayIsInR5cGUiOiJlcnJvciJ9XX0seyJjb25kaXRpb25z
|
|
105
|
-
IjpbXSwiZW5kcG9pbnQiOnsidXJsIjoiaHR0cHM6Ly90ZXh0cmFjdC57UmVn
|
|
106
|
-
aW9ufS57UGFydGl0aW9uUmVzdWx0I2Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVz
|
|
107
|
-
Ijp7fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19XX0=
|
|
108
|
-
|
|
109
|
-
JSON
|
|
110
53
|
end
|
|
111
54
|
end
|
|
@@ -17,37 +17,6 @@ module Aws::Textract
|
|
|
17
17
|
#
|
|
18
18
|
class AccessDeniedException < Aws::EmptyStructure; end
|
|
19
19
|
|
|
20
|
-
# @note When making an API call, you may pass AnalyzeDocumentRequest
|
|
21
|
-
# data as a hash:
|
|
22
|
-
#
|
|
23
|
-
# {
|
|
24
|
-
# document: { # required
|
|
25
|
-
# bytes: "data",
|
|
26
|
-
# s3_object: {
|
|
27
|
-
# bucket: "S3Bucket",
|
|
28
|
-
# name: "S3ObjectName",
|
|
29
|
-
# version: "S3ObjectVersion",
|
|
30
|
-
# },
|
|
31
|
-
# },
|
|
32
|
-
# feature_types: ["TABLES"], # required, accepts TABLES, FORMS, QUERIES, SIGNATURES
|
|
33
|
-
# human_loop_config: {
|
|
34
|
-
# human_loop_name: "HumanLoopName", # required
|
|
35
|
-
# flow_definition_arn: "FlowDefinitionArn", # required
|
|
36
|
-
# data_attributes: {
|
|
37
|
-
# content_classifiers: ["FreeOfPersonallyIdentifiableInformation"], # accepts FreeOfPersonallyIdentifiableInformation, FreeOfAdultContent
|
|
38
|
-
# },
|
|
39
|
-
# },
|
|
40
|
-
# queries_config: {
|
|
41
|
-
# queries: [ # required
|
|
42
|
-
# {
|
|
43
|
-
# text: "QueryInput", # required
|
|
44
|
-
# alias: "QueryInput",
|
|
45
|
-
# pages: ["QueryPage"],
|
|
46
|
-
# },
|
|
47
|
-
# ],
|
|
48
|
-
# },
|
|
49
|
-
# }
|
|
50
|
-
#
|
|
51
20
|
# @!attribute [rw] document
|
|
52
21
|
# The input document as base64-encoded bytes or an Amazon S3 object.
|
|
53
22
|
# If you use the AWS CLI to call Amazon Textract operations, you
|
|
@@ -120,20 +89,6 @@ module Aws::Textract
|
|
|
120
89
|
include Aws::Structure
|
|
121
90
|
end
|
|
122
91
|
|
|
123
|
-
# @note When making an API call, you may pass AnalyzeExpenseRequest
|
|
124
|
-
# data as a hash:
|
|
125
|
-
#
|
|
126
|
-
# {
|
|
127
|
-
# document: { # required
|
|
128
|
-
# bytes: "data",
|
|
129
|
-
# s3_object: {
|
|
130
|
-
# bucket: "S3Bucket",
|
|
131
|
-
# name: "S3ObjectName",
|
|
132
|
-
# version: "S3ObjectVersion",
|
|
133
|
-
# },
|
|
134
|
-
# },
|
|
135
|
-
# }
|
|
136
|
-
#
|
|
137
92
|
# @!attribute [rw] document
|
|
138
93
|
# The input document, either as bytes or as an S3 object.
|
|
139
94
|
#
|
|
@@ -210,22 +165,6 @@ module Aws::Textract
|
|
|
210
165
|
include Aws::Structure
|
|
211
166
|
end
|
|
212
167
|
|
|
213
|
-
# @note When making an API call, you may pass AnalyzeIDRequest
|
|
214
|
-
# data as a hash:
|
|
215
|
-
#
|
|
216
|
-
# {
|
|
217
|
-
# document_pages: [ # required
|
|
218
|
-
# {
|
|
219
|
-
# bytes: "data",
|
|
220
|
-
# s3_object: {
|
|
221
|
-
# bucket: "S3Bucket",
|
|
222
|
-
# name: "S3ObjectName",
|
|
223
|
-
# version: "S3ObjectVersion",
|
|
224
|
-
# },
|
|
225
|
-
# },
|
|
226
|
-
# ],
|
|
227
|
-
# }
|
|
228
|
-
#
|
|
229
168
|
# @!attribute [rw] document_pages
|
|
230
169
|
# The document being passed to AnalyzeID.
|
|
231
170
|
# @return [Array<Types::Document>]
|
|
@@ -325,9 +264,21 @@ module Aws::Textract
|
|
|
325
264
|
# grid-based information with two or more rows or columns, with a
|
|
326
265
|
# cell span of one row and one column each.
|
|
327
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
|
+
#
|
|
328
275
|
# * *CELL* - A cell within a detected table. The cell is the parent of
|
|
329
276
|
# the block that contains the text in the cell.
|
|
330
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
|
+
#
|
|
331
282
|
# * *SELECTION\_ELEMENT* - A selection element such as an option
|
|
332
283
|
# button (radio button) or a check box that's detected on a
|
|
333
284
|
# document page. Use the value of `SelectionStatus` to determine the
|
|
@@ -374,17 +325,13 @@ module Aws::Textract
|
|
|
374
325
|
# @return [Integer]
|
|
375
326
|
#
|
|
376
327
|
# @!attribute [rw] row_span
|
|
377
|
-
# The number of rows that a table cell spans.
|
|
378
|
-
#
|
|
379
|
-
# `RowSpan` isn't returned by `DetectDocumentText` and
|
|
380
|
-
# `GetDocumentTextDetection`.
|
|
328
|
+
# The number of rows that a table cell spans. `RowSpan` isn't
|
|
329
|
+
# returned by `DetectDocumentText` and `GetDocumentTextDetection`.
|
|
381
330
|
# @return [Integer]
|
|
382
331
|
#
|
|
383
332
|
# @!attribute [rw] column_span
|
|
384
|
-
# The number of columns that a table cell spans.
|
|
385
|
-
#
|
|
386
|
-
# 1. `ColumnSpan` isn't returned by `DetectDocumentText` and
|
|
387
|
-
# `GetDocumentTextDetection`.
|
|
333
|
+
# The number of columns that a table cell spans. `ColumnSpan` isn't
|
|
334
|
+
# returned by `DetectDocumentText` and `GetDocumentTextDetection`.
|
|
388
335
|
# @return [Integer]
|
|
389
336
|
#
|
|
390
337
|
# @!attribute [rw] geometry
|
|
@@ -399,24 +346,45 @@ module Aws::Textract
|
|
|
399
346
|
# @return [String]
|
|
400
347
|
#
|
|
401
348
|
# @!attribute [rw] relationships
|
|
402
|
-
# A list of
|
|
403
|
-
#
|
|
404
|
-
#
|
|
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
|
|
405
353
|
# relationships that don't exist, such as when the current block has
|
|
406
|
-
# no child blocks.
|
|
407
|
-
#
|
|
408
|
-
# * 0 - The block has no child blocks.
|
|
409
|
-
#
|
|
410
|
-
# * 1 - The block has child blocks.
|
|
354
|
+
# no child blocks.
|
|
411
355
|
# @return [Array<Types::Relationship>]
|
|
412
356
|
#
|
|
413
357
|
# @!attribute [rw] entity_types
|
|
414
|
-
# The type of entity.
|
|
358
|
+
# The type of entity.
|
|
359
|
+
#
|
|
360
|
+
# The following entity types can be returned by FORMS analysis:
|
|
415
361
|
#
|
|
416
362
|
# * *KEY* - An identifier for a field on the document.
|
|
417
363
|
#
|
|
418
364
|
# * *VALUE* - The field text.
|
|
419
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
|
+
#
|
|
420
388
|
# `EntityTypes` isn't returned by `DetectDocumentText` and
|
|
421
389
|
# `GetDocumentTextDetection`.
|
|
422
390
|
# @return [Array<String>]
|
|
@@ -433,9 +401,9 @@ module Aws::Textract
|
|
|
433
401
|
# format. A scanned image (JPEG/PNG) provided to an asynchronous
|
|
434
402
|
# operation, even if it contains multiple document pages, is
|
|
435
403
|
# considered a single-page document. This means that for scanned
|
|
436
|
-
# images the value of `Page` is always 1. Synchronous operations
|
|
437
|
-
#
|
|
438
|
-
#
|
|
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.
|
|
439
407
|
# @return [Integer]
|
|
440
408
|
#
|
|
441
409
|
# @!attribute [rw] query
|
|
@@ -511,20 +479,6 @@ module Aws::Textract
|
|
|
511
479
|
include Aws::Structure
|
|
512
480
|
end
|
|
513
481
|
|
|
514
|
-
# @note When making an API call, you may pass DetectDocumentTextRequest
|
|
515
|
-
# data as a hash:
|
|
516
|
-
#
|
|
517
|
-
# {
|
|
518
|
-
# document: { # required
|
|
519
|
-
# bytes: "data",
|
|
520
|
-
# s3_object: {
|
|
521
|
-
# bucket: "S3Bucket",
|
|
522
|
-
# name: "S3ObjectName",
|
|
523
|
-
# version: "S3ObjectVersion",
|
|
524
|
-
# },
|
|
525
|
-
# },
|
|
526
|
-
# }
|
|
527
|
-
#
|
|
528
482
|
# @!attribute [rw] document
|
|
529
483
|
# The input document as base64-encoded bytes or an Amazon S3 object.
|
|
530
484
|
# If you use the AWS CLI to call Amazon Textract operations, you
|
|
@@ -606,18 +560,6 @@ module Aws::Textract
|
|
|
606
560
|
# For Amazon Textract to process an S3 object, the user must have
|
|
607
561
|
# permission to access the S3 object.
|
|
608
562
|
#
|
|
609
|
-
# @note When making an API call, you may pass Document
|
|
610
|
-
# data as a hash:
|
|
611
|
-
#
|
|
612
|
-
# {
|
|
613
|
-
# bytes: "data",
|
|
614
|
-
# s3_object: {
|
|
615
|
-
# bucket: "S3Bucket",
|
|
616
|
-
# name: "S3ObjectName",
|
|
617
|
-
# version: "S3ObjectVersion",
|
|
618
|
-
# },
|
|
619
|
-
# }
|
|
620
|
-
#
|
|
621
563
|
# @!attribute [rw] bytes
|
|
622
564
|
# A blob of base64-encoded document bytes. The maximum size of a
|
|
623
565
|
# document that's provided in a blob of bytes is 5 MB. The document
|
|
@@ -644,8 +586,13 @@ module Aws::Textract
|
|
|
644
586
|
# Summary information about documents grouped by the same document type.
|
|
645
587
|
#
|
|
646
588
|
# @!attribute [rw] type
|
|
647
|
-
# The type of document that Amazon Textract has detected. See
|
|
648
|
-
# a list of all types returned by
|
|
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
|
|
649
596
|
# @return [String]
|
|
650
597
|
#
|
|
651
598
|
# @!attribute [rw] split_documents
|
|
@@ -678,17 +625,6 @@ module Aws::Textract
|
|
|
678
625
|
# The input document can be an image file in JPEG or PNG format. It can
|
|
679
626
|
# also be a file in PDF format.
|
|
680
627
|
#
|
|
681
|
-
# @note When making an API call, you may pass DocumentLocation
|
|
682
|
-
# data as a hash:
|
|
683
|
-
#
|
|
684
|
-
# {
|
|
685
|
-
# s3_object: {
|
|
686
|
-
# bucket: "S3Bucket",
|
|
687
|
-
# name: "S3ObjectName",
|
|
688
|
-
# version: "S3ObjectVersion",
|
|
689
|
-
# },
|
|
690
|
-
# }
|
|
691
|
-
#
|
|
692
628
|
# @!attribute [rw] s3_object
|
|
693
629
|
# The Amazon S3 bucket that contains the input document.
|
|
694
630
|
# @return [Types::S3Object]
|
|
@@ -963,15 +899,6 @@ module Aws::Textract
|
|
|
963
899
|
include Aws::Structure
|
|
964
900
|
end
|
|
965
901
|
|
|
966
|
-
# @note When making an API call, you may pass GetDocumentAnalysisRequest
|
|
967
|
-
# data as a hash:
|
|
968
|
-
#
|
|
969
|
-
# {
|
|
970
|
-
# job_id: "JobId", # required
|
|
971
|
-
# max_results: 1,
|
|
972
|
-
# next_token: "PaginationToken",
|
|
973
|
-
# }
|
|
974
|
-
#
|
|
975
902
|
# @!attribute [rw] job_id
|
|
976
903
|
# A unique identifier for the text-detection job. The `JobId` is
|
|
977
904
|
# returned from `StartDocumentAnalysis`. A `JobId` value is only valid
|
|
@@ -1049,15 +976,6 @@ module Aws::Textract
|
|
|
1049
976
|
include Aws::Structure
|
|
1050
977
|
end
|
|
1051
978
|
|
|
1052
|
-
# @note When making an API call, you may pass GetDocumentTextDetectionRequest
|
|
1053
|
-
# data as a hash:
|
|
1054
|
-
#
|
|
1055
|
-
# {
|
|
1056
|
-
# job_id: "JobId", # required
|
|
1057
|
-
# max_results: 1,
|
|
1058
|
-
# next_token: "PaginationToken",
|
|
1059
|
-
# }
|
|
1060
|
-
#
|
|
1061
979
|
# @!attribute [rw] job_id
|
|
1062
980
|
# A unique identifier for the text detection job. The `JobId` is
|
|
1063
981
|
# returned from `StartDocumentTextDetection`. A `JobId` value is only
|
|
@@ -1135,15 +1053,6 @@ module Aws::Textract
|
|
|
1135
1053
|
include Aws::Structure
|
|
1136
1054
|
end
|
|
1137
1055
|
|
|
1138
|
-
# @note When making an API call, you may pass GetExpenseAnalysisRequest
|
|
1139
|
-
# data as a hash:
|
|
1140
|
-
#
|
|
1141
|
-
# {
|
|
1142
|
-
# job_id: "JobId", # required
|
|
1143
|
-
# max_results: 1,
|
|
1144
|
-
# next_token: "PaginationToken",
|
|
1145
|
-
# }
|
|
1146
|
-
#
|
|
1147
1056
|
# @!attribute [rw] job_id
|
|
1148
1057
|
# A unique identifier for the text detection job. The `JobId` is
|
|
1149
1058
|
# returned from `StartExpenseAnalysis`. A `JobId` value is only valid
|
|
@@ -1222,15 +1131,6 @@ module Aws::Textract
|
|
|
1222
1131
|
include Aws::Structure
|
|
1223
1132
|
end
|
|
1224
1133
|
|
|
1225
|
-
# @note When making an API call, you may pass GetLendingAnalysisRequest
|
|
1226
|
-
# data as a hash:
|
|
1227
|
-
#
|
|
1228
|
-
# {
|
|
1229
|
-
# job_id: "JobId", # required
|
|
1230
|
-
# max_results: 1,
|
|
1231
|
-
# next_token: "PaginationToken",
|
|
1232
|
-
# }
|
|
1233
|
-
#
|
|
1234
1134
|
# @!attribute [rw] job_id
|
|
1235
1135
|
# A unique identifier for the lending or text-detection job. The
|
|
1236
1136
|
# `JobId` is returned from `StartLendingAnalysis`. A `JobId` value is
|
|
@@ -1307,13 +1207,6 @@ module Aws::Textract
|
|
|
1307
1207
|
include Aws::Structure
|
|
1308
1208
|
end
|
|
1309
1209
|
|
|
1310
|
-
# @note When making an API call, you may pass GetLendingAnalysisSummaryRequest
|
|
1311
|
-
# data as a hash:
|
|
1312
|
-
#
|
|
1313
|
-
# {
|
|
1314
|
-
# job_id: "JobId", # required
|
|
1315
|
-
# }
|
|
1316
|
-
#
|
|
1317
1210
|
# @!attribute [rw] job_id
|
|
1318
1211
|
# A unique identifier for the lending or text-detection job. The
|
|
1319
1212
|
# `JobId` is returned from StartLendingAnalysis. A `JobId` value is
|
|
@@ -1397,17 +1290,6 @@ module Aws::Textract
|
|
|
1397
1290
|
# of the conditions is met. You can also set certain attributes of the
|
|
1398
1291
|
# image before review.
|
|
1399
1292
|
#
|
|
1400
|
-
# @note When making an API call, you may pass HumanLoopConfig
|
|
1401
|
-
# data as a hash:
|
|
1402
|
-
#
|
|
1403
|
-
# {
|
|
1404
|
-
# human_loop_name: "HumanLoopName", # required
|
|
1405
|
-
# flow_definition_arn: "FlowDefinitionArn", # required
|
|
1406
|
-
# data_attributes: {
|
|
1407
|
-
# content_classifiers: ["FreeOfPersonallyIdentifiableInformation"], # accepts FreeOfPersonallyIdentifiableInformation, FreeOfAdultContent
|
|
1408
|
-
# },
|
|
1409
|
-
# }
|
|
1410
|
-
#
|
|
1411
1293
|
# @!attribute [rw] human_loop_name
|
|
1412
1294
|
# The name of the human workflow used for this image. This should be
|
|
1413
1295
|
# kept unique within a region.
|
|
@@ -1435,13 +1317,6 @@ module Aws::Textract
|
|
|
1435
1317
|
# an image as free of personally identifiable information and adult
|
|
1436
1318
|
# content.
|
|
1437
1319
|
#
|
|
1438
|
-
# @note When making an API call, you may pass HumanLoopDataAttributes
|
|
1439
|
-
# data as a hash:
|
|
1440
|
-
#
|
|
1441
|
-
# {
|
|
1442
|
-
# content_classifiers: ["FreeOfPersonallyIdentifiableInformation"], # accepts FreeOfPersonallyIdentifiableInformation, FreeOfAdultContent
|
|
1443
|
-
# }
|
|
1444
|
-
#
|
|
1445
1320
|
# @!attribute [rw] content_classifiers
|
|
1446
1321
|
# Sets whether the input image is free of personally identifiable
|
|
1447
1322
|
# information or adult content.
|
|
@@ -1777,14 +1652,6 @@ module Aws::Textract
|
|
|
1777
1652
|
# Amazon Textract publishes the completion status of an asynchronous
|
|
1778
1653
|
# document operation.
|
|
1779
1654
|
#
|
|
1780
|
-
# @note When making an API call, you may pass NotificationChannel
|
|
1781
|
-
# data as a hash:
|
|
1782
|
-
#
|
|
1783
|
-
# {
|
|
1784
|
-
# sns_topic_arn: "SNSTopicArn", # required
|
|
1785
|
-
# role_arn: "RoleArn", # required
|
|
1786
|
-
# }
|
|
1787
|
-
#
|
|
1788
1655
|
# @!attribute [rw] sns_topic_arn
|
|
1789
1656
|
# The Amazon SNS topic that Amazon Textract posts the completion
|
|
1790
1657
|
# status to.
|
|
@@ -1832,14 +1699,6 @@ module Aws::Textract
|
|
|
1832
1699
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
1833
1700
|
# [2]: https://aws.amazon.com/compliance/data-privacy-faq/
|
|
1834
1701
|
#
|
|
1835
|
-
# @note When making an API call, you may pass OutputConfig
|
|
1836
|
-
# data as a hash:
|
|
1837
|
-
#
|
|
1838
|
-
# {
|
|
1839
|
-
# s3_bucket: "S3Bucket", # required
|
|
1840
|
-
# s3_prefix: "S3ObjectName",
|
|
1841
|
-
# }
|
|
1842
|
-
#
|
|
1843
1702
|
# @!attribute [rw] s3_bucket
|
|
1844
1703
|
# The name of the bucket your output will go to.
|
|
1845
1704
|
# @return [String]
|
|
@@ -1938,19 +1797,6 @@ module Aws::Textract
|
|
|
1938
1797
|
#
|
|
1939
1798
|
class ProvisionedThroughputExceededException < Aws::EmptyStructure; end
|
|
1940
1799
|
|
|
1941
|
-
# @note When making an API call, you may pass QueriesConfig
|
|
1942
|
-
# data as a hash:
|
|
1943
|
-
#
|
|
1944
|
-
# {
|
|
1945
|
-
# queries: [ # required
|
|
1946
|
-
# {
|
|
1947
|
-
# text: "QueryInput", # required
|
|
1948
|
-
# alias: "QueryInput",
|
|
1949
|
-
# pages: ["QueryPage"],
|
|
1950
|
-
# },
|
|
1951
|
-
# ],
|
|
1952
|
-
# }
|
|
1953
|
-
#
|
|
1954
1800
|
# @!attribute [rw] queries
|
|
1955
1801
|
# @return [Array<Types::Query>]
|
|
1956
1802
|
#
|
|
@@ -1965,15 +1811,6 @@ module Aws::Textract
|
|
|
1965
1811
|
# Each query contains the question you want to ask in the Text and the
|
|
1966
1812
|
# alias you want to associate.
|
|
1967
1813
|
#
|
|
1968
|
-
# @note When making an API call, you may pass Query
|
|
1969
|
-
# data as a hash:
|
|
1970
|
-
#
|
|
1971
|
-
# {
|
|
1972
|
-
# text: "QueryInput", # required
|
|
1973
|
-
# alias: "QueryInput",
|
|
1974
|
-
# pages: ["QueryPage"],
|
|
1975
|
-
# }
|
|
1976
|
-
#
|
|
1977
1814
|
# @!attribute [rw] text
|
|
1978
1815
|
# Question that Amazon Textract will apply to the document. An example
|
|
1979
1816
|
# would be "What is the customer's SSN?"
|
|
@@ -2021,13 +1858,31 @@ module Aws::Textract
|
|
|
2021
1858
|
# blocks in the `IDs` array.
|
|
2022
1859
|
#
|
|
2023
1860
|
# @!attribute [rw] type
|
|
2024
|
-
# The type of relationship
|
|
2025
|
-
#
|
|
2026
|
-
#
|
|
2027
|
-
#
|
|
2028
|
-
#
|
|
2029
|
-
#
|
|
2030
|
-
#
|
|
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.
|
|
2031
1886
|
# @return [String]
|
|
2032
1887
|
#
|
|
2033
1888
|
# @!attribute [rw] ids
|
|
@@ -2052,15 +1907,6 @@ module Aws::Textract
|
|
|
2052
1907
|
# For Amazon Textract to process a file in an S3 bucket, the user must
|
|
2053
1908
|
# have permission to access the S3 bucket and file.
|
|
2054
1909
|
#
|
|
2055
|
-
# @note When making an API call, you may pass S3Object
|
|
2056
|
-
# data as a hash:
|
|
2057
|
-
#
|
|
2058
|
-
# {
|
|
2059
|
-
# bucket: "S3Bucket",
|
|
2060
|
-
# name: "S3ObjectName",
|
|
2061
|
-
# version: "S3ObjectVersion",
|
|
2062
|
-
# }
|
|
2063
|
-
#
|
|
2064
1910
|
# @!attribute [rw] bucket
|
|
2065
1911
|
# The name of the S3 bucket. Note that the # character is not valid in
|
|
2066
1912
|
# the file name.
|
|
@@ -2131,40 +1977,6 @@ module Aws::Textract
|
|
|
2131
1977
|
include Aws::Structure
|
|
2132
1978
|
end
|
|
2133
1979
|
|
|
2134
|
-
# @note When making an API call, you may pass StartDocumentAnalysisRequest
|
|
2135
|
-
# data as a hash:
|
|
2136
|
-
#
|
|
2137
|
-
# {
|
|
2138
|
-
# document_location: { # required
|
|
2139
|
-
# s3_object: {
|
|
2140
|
-
# bucket: "S3Bucket",
|
|
2141
|
-
# name: "S3ObjectName",
|
|
2142
|
-
# version: "S3ObjectVersion",
|
|
2143
|
-
# },
|
|
2144
|
-
# },
|
|
2145
|
-
# feature_types: ["TABLES"], # required, accepts TABLES, FORMS, QUERIES, SIGNATURES
|
|
2146
|
-
# client_request_token: "ClientRequestToken",
|
|
2147
|
-
# job_tag: "JobTag",
|
|
2148
|
-
# notification_channel: {
|
|
2149
|
-
# sns_topic_arn: "SNSTopicArn", # required
|
|
2150
|
-
# role_arn: "RoleArn", # required
|
|
2151
|
-
# },
|
|
2152
|
-
# output_config: {
|
|
2153
|
-
# s3_bucket: "S3Bucket", # required
|
|
2154
|
-
# s3_prefix: "S3ObjectName",
|
|
2155
|
-
# },
|
|
2156
|
-
# kms_key_id: "KMSKeyId",
|
|
2157
|
-
# queries_config: {
|
|
2158
|
-
# queries: [ # required
|
|
2159
|
-
# {
|
|
2160
|
-
# text: "QueryInput", # required
|
|
2161
|
-
# alias: "QueryInput",
|
|
2162
|
-
# pages: ["QueryPage"],
|
|
2163
|
-
# },
|
|
2164
|
-
# ],
|
|
2165
|
-
# },
|
|
2166
|
-
# }
|
|
2167
|
-
#
|
|
2168
1980
|
# @!attribute [rw] document_location
|
|
2169
1981
|
# The location of the document to be processed.
|
|
2170
1982
|
# @return [Types::DocumentLocation]
|
|
@@ -2250,30 +2062,6 @@ module Aws::Textract
|
|
|
2250
2062
|
include Aws::Structure
|
|
2251
2063
|
end
|
|
2252
2064
|
|
|
2253
|
-
# @note When making an API call, you may pass StartDocumentTextDetectionRequest
|
|
2254
|
-
# data as a hash:
|
|
2255
|
-
#
|
|
2256
|
-
# {
|
|
2257
|
-
# document_location: { # required
|
|
2258
|
-
# s3_object: {
|
|
2259
|
-
# bucket: "S3Bucket",
|
|
2260
|
-
# name: "S3ObjectName",
|
|
2261
|
-
# version: "S3ObjectVersion",
|
|
2262
|
-
# },
|
|
2263
|
-
# },
|
|
2264
|
-
# client_request_token: "ClientRequestToken",
|
|
2265
|
-
# job_tag: "JobTag",
|
|
2266
|
-
# notification_channel: {
|
|
2267
|
-
# sns_topic_arn: "SNSTopicArn", # required
|
|
2268
|
-
# role_arn: "RoleArn", # required
|
|
2269
|
-
# },
|
|
2270
|
-
# output_config: {
|
|
2271
|
-
# s3_bucket: "S3Bucket", # required
|
|
2272
|
-
# s3_prefix: "S3ObjectName",
|
|
2273
|
-
# },
|
|
2274
|
-
# kms_key_id: "KMSKeyId",
|
|
2275
|
-
# }
|
|
2276
|
-
#
|
|
2277
2065
|
# @!attribute [rw] document_location
|
|
2278
2066
|
# The location of the document to be processed.
|
|
2279
2067
|
# @return [Types::DocumentLocation]
|
|
@@ -2345,30 +2133,6 @@ module Aws::Textract
|
|
|
2345
2133
|
include Aws::Structure
|
|
2346
2134
|
end
|
|
2347
2135
|
|
|
2348
|
-
# @note When making an API call, you may pass StartExpenseAnalysisRequest
|
|
2349
|
-
# data as a hash:
|
|
2350
|
-
#
|
|
2351
|
-
# {
|
|
2352
|
-
# document_location: { # required
|
|
2353
|
-
# s3_object: {
|
|
2354
|
-
# bucket: "S3Bucket",
|
|
2355
|
-
# name: "S3ObjectName",
|
|
2356
|
-
# version: "S3ObjectVersion",
|
|
2357
|
-
# },
|
|
2358
|
-
# },
|
|
2359
|
-
# client_request_token: "ClientRequestToken",
|
|
2360
|
-
# job_tag: "JobTag",
|
|
2361
|
-
# notification_channel: {
|
|
2362
|
-
# sns_topic_arn: "SNSTopicArn", # required
|
|
2363
|
-
# role_arn: "RoleArn", # required
|
|
2364
|
-
# },
|
|
2365
|
-
# output_config: {
|
|
2366
|
-
# s3_bucket: "S3Bucket", # required
|
|
2367
|
-
# s3_prefix: "S3ObjectName",
|
|
2368
|
-
# },
|
|
2369
|
-
# kms_key_id: "KMSKeyId",
|
|
2370
|
-
# }
|
|
2371
|
-
#
|
|
2372
2136
|
# @!attribute [rw] document_location
|
|
2373
2137
|
# The location of the document to be processed.
|
|
2374
2138
|
# @return [Types::DocumentLocation]
|
|
@@ -2439,30 +2203,6 @@ module Aws::Textract
|
|
|
2439
2203
|
include Aws::Structure
|
|
2440
2204
|
end
|
|
2441
2205
|
|
|
2442
|
-
# @note When making an API call, you may pass StartLendingAnalysisRequest
|
|
2443
|
-
# data as a hash:
|
|
2444
|
-
#
|
|
2445
|
-
# {
|
|
2446
|
-
# document_location: { # required
|
|
2447
|
-
# s3_object: {
|
|
2448
|
-
# bucket: "S3Bucket",
|
|
2449
|
-
# name: "S3ObjectName",
|
|
2450
|
-
# version: "S3ObjectVersion",
|
|
2451
|
-
# },
|
|
2452
|
-
# },
|
|
2453
|
-
# client_request_token: "ClientRequestToken",
|
|
2454
|
-
# job_tag: "JobTag",
|
|
2455
|
-
# notification_channel: {
|
|
2456
|
-
# sns_topic_arn: "SNSTopicArn", # required
|
|
2457
|
-
# role_arn: "RoleArn", # required
|
|
2458
|
-
# },
|
|
2459
|
-
# output_config: {
|
|
2460
|
-
# s3_bucket: "S3Bucket", # required
|
|
2461
|
-
# s3_prefix: "S3ObjectName",
|
|
2462
|
-
# },
|
|
2463
|
-
# kms_key_id: "KMSKeyId",
|
|
2464
|
-
# }
|
|
2465
|
-
#
|
|
2466
2206
|
# @!attribute [rw] document_location
|
|
2467
2207
|
# The Amazon S3 bucket that contains the document to be processed.
|
|
2468
2208
|
# It's used by asynchronous operations.
|
data/lib/aws-sdk-textract.rb
CHANGED
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.
|
|
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:
|
|
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
|