aws-sdk-textract 1.31.0 → 1.32.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-textract/client.rb +56 -3
- data/lib/aws-sdk-textract/client_api.rb +58 -0
- data/lib/aws-sdk-textract/types.rb +145 -3
- 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: df6666495294f9fc6b74bf03c15386b3a277793bf493429cf654bc6b886cdffb
|
4
|
+
data.tar.gz: fa9f0fc72726ac3ce66b790a1c44bf648457676464f35719d71222e3b1e35b37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67e9dfbb0d26731400082b00878c216ab4e31910a4cbaf1c2304d52c75408a9699441f0ba2a209db9955f1ec803becbf7074d1680de6703f5f23592f745c8f30
|
7
|
+
data.tar.gz: e56227ef0f6aea46e6c419bd7a762cee042baa430668712086e9b6096cf123380ff055604758ed7deb1860dda77448b7da33b79a76fa250ad0747aeda07216d9
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.32.0
|
@@ -476,8 +476,8 @@ module Aws::Textract
|
|
476
476
|
req.send_request(options)
|
477
477
|
end
|
478
478
|
|
479
|
-
#
|
480
|
-
# between text.
|
479
|
+
# `AnalyzeExpense` synchronously analyzes an input document for
|
480
|
+
# financially related relationships between text.
|
481
481
|
#
|
482
482
|
# Information is returned as `ExpenseDocuments` and seperated as
|
483
483
|
# follows.
|
@@ -594,6 +594,59 @@ module Aws::Textract
|
|
594
594
|
req.send_request(options)
|
595
595
|
end
|
596
596
|
|
597
|
+
# Analyzes identity documents for relevant information. This information
|
598
|
+
# is extracted and returned as `IdentityDocumentFields`, which records
|
599
|
+
# both the normalized field and value of the extracted text.
|
600
|
+
#
|
601
|
+
# @option params [required, Array<Types::Document>] :document_pages
|
602
|
+
# The document being passed to AnalyzeID.
|
603
|
+
#
|
604
|
+
# @return [Types::AnalyzeIDResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
605
|
+
#
|
606
|
+
# * {Types::AnalyzeIDResponse#identity_documents #identity_documents} => Array<Types::IdentityDocument>
|
607
|
+
# * {Types::AnalyzeIDResponse#document_metadata #document_metadata} => Types::DocumentMetadata
|
608
|
+
# * {Types::AnalyzeIDResponse#analyze_id_model_version #analyze_id_model_version} => String
|
609
|
+
#
|
610
|
+
# @example Request syntax with placeholder values
|
611
|
+
#
|
612
|
+
# resp = client.analyze_id({
|
613
|
+
# document_pages: [ # required
|
614
|
+
# {
|
615
|
+
# bytes: "data",
|
616
|
+
# s3_object: {
|
617
|
+
# bucket: "S3Bucket",
|
618
|
+
# name: "S3ObjectName",
|
619
|
+
# version: "S3ObjectVersion",
|
620
|
+
# },
|
621
|
+
# },
|
622
|
+
# ],
|
623
|
+
# })
|
624
|
+
#
|
625
|
+
# @example Response structure
|
626
|
+
#
|
627
|
+
# resp.identity_documents #=> Array
|
628
|
+
# resp.identity_documents[0].document_index #=> Integer
|
629
|
+
# resp.identity_documents[0].identity_document_fields #=> Array
|
630
|
+
# resp.identity_documents[0].identity_document_fields[0].type.text #=> String
|
631
|
+
# resp.identity_documents[0].identity_document_fields[0].type.normalized_value.value #=> String
|
632
|
+
# resp.identity_documents[0].identity_document_fields[0].type.normalized_value.value_type #=> String, one of "DATE"
|
633
|
+
# resp.identity_documents[0].identity_document_fields[0].type.confidence #=> Float
|
634
|
+
# resp.identity_documents[0].identity_document_fields[0].value_detection.text #=> String
|
635
|
+
# resp.identity_documents[0].identity_document_fields[0].value_detection.normalized_value.value #=> String
|
636
|
+
# resp.identity_documents[0].identity_document_fields[0].value_detection.normalized_value.value_type #=> String, one of "DATE"
|
637
|
+
# resp.identity_documents[0].identity_document_fields[0].value_detection.confidence #=> Float
|
638
|
+
# resp.document_metadata.pages #=> Integer
|
639
|
+
# resp.analyze_id_model_version #=> String
|
640
|
+
#
|
641
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/AnalyzeID AWS API Documentation
|
642
|
+
#
|
643
|
+
# @overload analyze_id(params = {})
|
644
|
+
# @param [Hash] params ({})
|
645
|
+
def analyze_id(params = {}, options = {})
|
646
|
+
req = build_request(:analyze_id, params)
|
647
|
+
req.send_request(options)
|
648
|
+
end
|
649
|
+
|
597
650
|
# Detects text in the input document. Amazon Textract can detect lines
|
598
651
|
# of text and the words that make up a line of text. The input document
|
599
652
|
# must be an image in JPEG or PNG format. `DetectDocumentText` returns
|
@@ -1392,7 +1445,7 @@ module Aws::Textract
|
|
1392
1445
|
params: params,
|
1393
1446
|
config: config)
|
1394
1447
|
context[:gem_name] = 'aws-sdk-textract'
|
1395
|
-
context[:gem_version] = '1.
|
1448
|
+
context[:gem_version] = '1.32.0'
|
1396
1449
|
Seahorse::Client::Request.new(handlers, context)
|
1397
1450
|
end
|
1398
1451
|
|
@@ -18,6 +18,9 @@ module Aws::Textract
|
|
18
18
|
AnalyzeDocumentResponse = Shapes::StructureShape.new(name: 'AnalyzeDocumentResponse')
|
19
19
|
AnalyzeExpenseRequest = Shapes::StructureShape.new(name: 'AnalyzeExpenseRequest')
|
20
20
|
AnalyzeExpenseResponse = Shapes::StructureShape.new(name: 'AnalyzeExpenseResponse')
|
21
|
+
AnalyzeIDDetections = Shapes::StructureShape.new(name: 'AnalyzeIDDetections')
|
22
|
+
AnalyzeIDRequest = Shapes::StructureShape.new(name: 'AnalyzeIDRequest')
|
23
|
+
AnalyzeIDResponse = Shapes::StructureShape.new(name: 'AnalyzeIDResponse')
|
21
24
|
BadDocumentException = Shapes::StructureShape.new(name: 'BadDocumentException')
|
22
25
|
Block = Shapes::StructureShape.new(name: 'Block')
|
23
26
|
BlockList = Shapes::ListShape.new(name: 'BlockList')
|
@@ -31,6 +34,7 @@ module Aws::Textract
|
|
31
34
|
Document = Shapes::StructureShape.new(name: 'Document')
|
32
35
|
DocumentLocation = Shapes::StructureShape.new(name: 'DocumentLocation')
|
33
36
|
DocumentMetadata = Shapes::StructureShape.new(name: 'DocumentMetadata')
|
37
|
+
DocumentPages = Shapes::ListShape.new(name: 'DocumentPages')
|
34
38
|
DocumentTooLargeException = Shapes::StructureShape.new(name: 'DocumentTooLargeException')
|
35
39
|
EntityType = Shapes::StringShape.new(name: 'EntityType')
|
36
40
|
EntityTypes = Shapes::ListShape.new(name: 'EntityTypes')
|
@@ -63,6 +67,10 @@ module Aws::Textract
|
|
63
67
|
HumanLoopQuotaExceededException = Shapes::StructureShape.new(name: 'HumanLoopQuotaExceededException')
|
64
68
|
IdList = Shapes::ListShape.new(name: 'IdList')
|
65
69
|
IdempotentParameterMismatchException = Shapes::StructureShape.new(name: 'IdempotentParameterMismatchException')
|
70
|
+
IdentityDocument = Shapes::StructureShape.new(name: 'IdentityDocument')
|
71
|
+
IdentityDocumentField = Shapes::StructureShape.new(name: 'IdentityDocumentField')
|
72
|
+
IdentityDocumentFieldList = Shapes::ListShape.new(name: 'IdentityDocumentFieldList')
|
73
|
+
IdentityDocumentList = Shapes::ListShape.new(name: 'IdentityDocumentList')
|
66
74
|
ImageBlob = Shapes::BlobShape.new(name: 'ImageBlob')
|
67
75
|
InternalServerError = Shapes::StructureShape.new(name: 'InternalServerError')
|
68
76
|
InvalidJobIdException = Shapes::StructureShape.new(name: 'InvalidJobIdException')
|
@@ -80,6 +88,7 @@ module Aws::Textract
|
|
80
88
|
LineItemList = Shapes::ListShape.new(name: 'LineItemList')
|
81
89
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
82
90
|
NonEmptyString = Shapes::StringShape.new(name: 'NonEmptyString')
|
91
|
+
NormalizedValue = Shapes::StructureShape.new(name: 'NormalizedValue')
|
83
92
|
NotificationChannel = Shapes::StructureShape.new(name: 'NotificationChannel')
|
84
93
|
OutputConfig = Shapes::StructureShape.new(name: 'OutputConfig')
|
85
94
|
Pages = Shapes::ListShape.new(name: 'Pages')
|
@@ -110,6 +119,7 @@ module Aws::Textract
|
|
110
119
|
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
111
120
|
UInteger = Shapes::IntegerShape.new(name: 'UInteger')
|
112
121
|
UnsupportedDocumentException = Shapes::StructureShape.new(name: 'UnsupportedDocumentException')
|
122
|
+
ValueType = Shapes::StringShape.new(name: 'ValueType')
|
113
123
|
Warning = Shapes::StructureShape.new(name: 'Warning')
|
114
124
|
Warnings = Shapes::ListShape.new(name: 'Warnings')
|
115
125
|
|
@@ -133,6 +143,19 @@ module Aws::Textract
|
|
133
143
|
AnalyzeExpenseResponse.add_member(:expense_documents, Shapes::ShapeRef.new(shape: ExpenseDocumentList, location_name: "ExpenseDocuments"))
|
134
144
|
AnalyzeExpenseResponse.struct_class = Types::AnalyzeExpenseResponse
|
135
145
|
|
146
|
+
AnalyzeIDDetections.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Text"))
|
147
|
+
AnalyzeIDDetections.add_member(:normalized_value, Shapes::ShapeRef.new(shape: NormalizedValue, location_name: "NormalizedValue"))
|
148
|
+
AnalyzeIDDetections.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
149
|
+
AnalyzeIDDetections.struct_class = Types::AnalyzeIDDetections
|
150
|
+
|
151
|
+
AnalyzeIDRequest.add_member(:document_pages, Shapes::ShapeRef.new(shape: DocumentPages, required: true, location_name: "DocumentPages"))
|
152
|
+
AnalyzeIDRequest.struct_class = Types::AnalyzeIDRequest
|
153
|
+
|
154
|
+
AnalyzeIDResponse.add_member(:identity_documents, Shapes::ShapeRef.new(shape: IdentityDocumentList, location_name: "IdentityDocuments"))
|
155
|
+
AnalyzeIDResponse.add_member(:document_metadata, Shapes::ShapeRef.new(shape: DocumentMetadata, location_name: "DocumentMetadata"))
|
156
|
+
AnalyzeIDResponse.add_member(:analyze_id_model_version, Shapes::ShapeRef.new(shape: String, location_name: "AnalyzeIDModelVersion"))
|
157
|
+
AnalyzeIDResponse.struct_class = Types::AnalyzeIDResponse
|
158
|
+
|
136
159
|
BadDocumentException.struct_class = Types::BadDocumentException
|
137
160
|
|
138
161
|
Block.add_member(:block_type, Shapes::ShapeRef.new(shape: BlockType, location_name: "BlockType"))
|
@@ -179,6 +202,8 @@ module Aws::Textract
|
|
179
202
|
DocumentMetadata.add_member(:pages, Shapes::ShapeRef.new(shape: UInteger, location_name: "Pages"))
|
180
203
|
DocumentMetadata.struct_class = Types::DocumentMetadata
|
181
204
|
|
205
|
+
DocumentPages.member = Shapes::ShapeRef.new(shape: Document)
|
206
|
+
|
182
207
|
DocumentTooLargeException.struct_class = Types::DocumentTooLargeException
|
183
208
|
|
184
209
|
EntityTypes.member = Shapes::ShapeRef.new(shape: EntityType)
|
@@ -279,6 +304,18 @@ module Aws::Textract
|
|
279
304
|
|
280
305
|
IdempotentParameterMismatchException.struct_class = Types::IdempotentParameterMismatchException
|
281
306
|
|
307
|
+
IdentityDocument.add_member(:document_index, Shapes::ShapeRef.new(shape: UInteger, location_name: "DocumentIndex"))
|
308
|
+
IdentityDocument.add_member(:identity_document_fields, Shapes::ShapeRef.new(shape: IdentityDocumentFieldList, location_name: "IdentityDocumentFields"))
|
309
|
+
IdentityDocument.struct_class = Types::IdentityDocument
|
310
|
+
|
311
|
+
IdentityDocumentField.add_member(:type, Shapes::ShapeRef.new(shape: AnalyzeIDDetections, location_name: "Type"))
|
312
|
+
IdentityDocumentField.add_member(:value_detection, Shapes::ShapeRef.new(shape: AnalyzeIDDetections, location_name: "ValueDetection"))
|
313
|
+
IdentityDocumentField.struct_class = Types::IdentityDocumentField
|
314
|
+
|
315
|
+
IdentityDocumentFieldList.member = Shapes::ShapeRef.new(shape: IdentityDocumentField)
|
316
|
+
|
317
|
+
IdentityDocumentList.member = Shapes::ShapeRef.new(shape: IdentityDocument)
|
318
|
+
|
282
319
|
InternalServerError.struct_class = Types::InternalServerError
|
283
320
|
|
284
321
|
InvalidJobIdException.struct_class = Types::InvalidJobIdException
|
@@ -302,6 +339,10 @@ module Aws::Textract
|
|
302
339
|
|
303
340
|
LineItemList.member = Shapes::ShapeRef.new(shape: LineItemFields)
|
304
341
|
|
342
|
+
NormalizedValue.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "Value"))
|
343
|
+
NormalizedValue.add_member(:value_type, Shapes::ShapeRef.new(shape: ValueType, location_name: "ValueType"))
|
344
|
+
NormalizedValue.struct_class = Types::NormalizedValue
|
345
|
+
|
305
346
|
NotificationChannel.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: SNSTopicArn, required: true, location_name: "SNSTopicArn"))
|
306
347
|
NotificationChannel.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "RoleArn"))
|
307
348
|
NotificationChannel.struct_class = Types::NotificationChannel
|
@@ -428,6 +469,23 @@ module Aws::Textract
|
|
428
469
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
429
470
|
end)
|
430
471
|
|
472
|
+
api.add_operation(:analyze_id, Seahorse::Model::Operation.new.tap do |o|
|
473
|
+
o.name = "AnalyzeID"
|
474
|
+
o.http_method = "POST"
|
475
|
+
o.http_request_uri = "/"
|
476
|
+
o.input = Shapes::ShapeRef.new(shape: AnalyzeIDRequest)
|
477
|
+
o.output = Shapes::ShapeRef.new(shape: AnalyzeIDResponse)
|
478
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
479
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
|
480
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedDocumentException)
|
481
|
+
o.errors << Shapes::ShapeRef.new(shape: DocumentTooLargeException)
|
482
|
+
o.errors << Shapes::ShapeRef.new(shape: BadDocumentException)
|
483
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
484
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
485
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
486
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
487
|
+
end)
|
488
|
+
|
431
489
|
api.add_operation(:detect_document_text, Seahorse::Model::Operation.new.tap do |o|
|
432
490
|
o.name = "DetectDocumentText"
|
433
491
|
o.http_method = "POST"
|
@@ -168,6 +168,84 @@ module Aws::Textract
|
|
168
168
|
include Aws::Structure
|
169
169
|
end
|
170
170
|
|
171
|
+
# Used to contain the information detected by an AnalyzeID operation.
|
172
|
+
#
|
173
|
+
# @!attribute [rw] text
|
174
|
+
# Text of either the normalized field or value associated with it.
|
175
|
+
# @return [String]
|
176
|
+
#
|
177
|
+
# @!attribute [rw] normalized_value
|
178
|
+
# Only returned for dates, returns the type of value detected and the
|
179
|
+
# date written in a more machine readable way.
|
180
|
+
# @return [Types::NormalizedValue]
|
181
|
+
#
|
182
|
+
# @!attribute [rw] confidence
|
183
|
+
# The confidence score of the detected text.
|
184
|
+
# @return [Float]
|
185
|
+
#
|
186
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/AnalyzeIDDetections AWS API Documentation
|
187
|
+
#
|
188
|
+
class AnalyzeIDDetections < Struct.new(
|
189
|
+
:text,
|
190
|
+
:normalized_value,
|
191
|
+
:confidence)
|
192
|
+
SENSITIVE = []
|
193
|
+
include Aws::Structure
|
194
|
+
end
|
195
|
+
|
196
|
+
# @note When making an API call, you may pass AnalyzeIDRequest
|
197
|
+
# data as a hash:
|
198
|
+
#
|
199
|
+
# {
|
200
|
+
# document_pages: [ # required
|
201
|
+
# {
|
202
|
+
# bytes: "data",
|
203
|
+
# s3_object: {
|
204
|
+
# bucket: "S3Bucket",
|
205
|
+
# name: "S3ObjectName",
|
206
|
+
# version: "S3ObjectVersion",
|
207
|
+
# },
|
208
|
+
# },
|
209
|
+
# ],
|
210
|
+
# }
|
211
|
+
#
|
212
|
+
# @!attribute [rw] document_pages
|
213
|
+
# The document being passed to AnalyzeID.
|
214
|
+
# @return [Array<Types::Document>]
|
215
|
+
#
|
216
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/AnalyzeIDRequest AWS API Documentation
|
217
|
+
#
|
218
|
+
class AnalyzeIDRequest < Struct.new(
|
219
|
+
:document_pages)
|
220
|
+
SENSITIVE = []
|
221
|
+
include Aws::Structure
|
222
|
+
end
|
223
|
+
|
224
|
+
# @!attribute [rw] identity_documents
|
225
|
+
# The list of documents processed by AnalyzeID. Includes a number
|
226
|
+
# denoting their place in the list and the response structure for the
|
227
|
+
# document.
|
228
|
+
# @return [Array<Types::IdentityDocument>]
|
229
|
+
#
|
230
|
+
# @!attribute [rw] document_metadata
|
231
|
+
# Information about the input document.
|
232
|
+
# @return [Types::DocumentMetadata]
|
233
|
+
#
|
234
|
+
# @!attribute [rw] analyze_id_model_version
|
235
|
+
# The version of the AnalyzeIdentity API being used to process
|
236
|
+
# documents.
|
237
|
+
# @return [String]
|
238
|
+
#
|
239
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/AnalyzeIDResponse AWS API Documentation
|
240
|
+
#
|
241
|
+
class AnalyzeIDResponse < Struct.new(
|
242
|
+
:identity_documents,
|
243
|
+
:document_metadata,
|
244
|
+
:analyze_id_model_version)
|
245
|
+
SENSITIVE = []
|
246
|
+
include Aws::Structure
|
247
|
+
end
|
248
|
+
|
171
249
|
# Amazon Textract isn't able to read the document. For more information
|
172
250
|
# on the document limits in Amazon Textract, see limits.
|
173
251
|
#
|
@@ -619,7 +697,7 @@ module Aws::Textract
|
|
619
697
|
end
|
620
698
|
|
621
699
|
# Breakdown of detected information, seperated into the catagories Type,
|
622
|
-
#
|
700
|
+
# LabelDetection, and ValueDetection
|
623
701
|
#
|
624
702
|
# @!attribute [rw] type
|
625
703
|
# The implied label of a detected element. Present alongside
|
@@ -1073,6 +1151,50 @@ module Aws::Textract
|
|
1073
1151
|
#
|
1074
1152
|
class IdempotentParameterMismatchException < Aws::EmptyStructure; end
|
1075
1153
|
|
1154
|
+
# The structure that lists each document processed in an AnalyzeID
|
1155
|
+
# operation.
|
1156
|
+
#
|
1157
|
+
# @!attribute [rw] document_index
|
1158
|
+
# Denotes the placement of a document in the IdentityDocument list.
|
1159
|
+
# The first document is marked 1, the second 2 and so on.
|
1160
|
+
# @return [Integer]
|
1161
|
+
#
|
1162
|
+
# @!attribute [rw] identity_document_fields
|
1163
|
+
# The structure used to record information extracted from identity
|
1164
|
+
# documents. Contains both normalized field and value of the extracted
|
1165
|
+
# text.
|
1166
|
+
# @return [Array<Types::IdentityDocumentField>]
|
1167
|
+
#
|
1168
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/IdentityDocument AWS API Documentation
|
1169
|
+
#
|
1170
|
+
class IdentityDocument < Struct.new(
|
1171
|
+
:document_index,
|
1172
|
+
:identity_document_fields)
|
1173
|
+
SENSITIVE = []
|
1174
|
+
include Aws::Structure
|
1175
|
+
end
|
1176
|
+
|
1177
|
+
# Structure containing both the normalized type of the extracted
|
1178
|
+
# information and the text associated with it. These are extracted as
|
1179
|
+
# Type and Value respectively.
|
1180
|
+
#
|
1181
|
+
# @!attribute [rw] type
|
1182
|
+
# Used to contain the information detected by an AnalyzeID operation.
|
1183
|
+
# @return [Types::AnalyzeIDDetections]
|
1184
|
+
#
|
1185
|
+
# @!attribute [rw] value_detection
|
1186
|
+
# Used to contain the information detected by an AnalyzeID operation.
|
1187
|
+
# @return [Types::AnalyzeIDDetections]
|
1188
|
+
#
|
1189
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/IdentityDocumentField AWS API Documentation
|
1190
|
+
#
|
1191
|
+
class IdentityDocumentField < Struct.new(
|
1192
|
+
:type,
|
1193
|
+
:value_detection)
|
1194
|
+
SENSITIVE = []
|
1195
|
+
include Aws::Structure
|
1196
|
+
end
|
1197
|
+
|
1076
1198
|
# Amazon Textract experienced a service issue. Try your call again.
|
1077
1199
|
#
|
1078
1200
|
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/InternalServerError AWS API Documentation
|
@@ -1165,6 +1287,26 @@ module Aws::Textract
|
|
1165
1287
|
include Aws::Structure
|
1166
1288
|
end
|
1167
1289
|
|
1290
|
+
# Contains information relating to dates in a document, including the
|
1291
|
+
# type of value, and the value.
|
1292
|
+
#
|
1293
|
+
# @!attribute [rw] value
|
1294
|
+
# The value of the date, written as Year-Month-DayTHour:Minute:Second.
|
1295
|
+
# @return [String]
|
1296
|
+
#
|
1297
|
+
# @!attribute [rw] value_type
|
1298
|
+
# The normalized type of the value detected. In this case, DATE.
|
1299
|
+
# @return [String]
|
1300
|
+
#
|
1301
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/NormalizedValue AWS API Documentation
|
1302
|
+
#
|
1303
|
+
class NormalizedValue < Struct.new(
|
1304
|
+
:value,
|
1305
|
+
:value_type)
|
1306
|
+
SENSITIVE = []
|
1307
|
+
include Aws::Structure
|
1308
|
+
end
|
1309
|
+
|
1168
1310
|
# The Amazon Simple Notification Service (Amazon SNS) topic to which
|
1169
1311
|
# Amazon Textract publishes the completion status of an asynchronous
|
1170
1312
|
# document operation, such as StartDocumentTextDetection.
|
@@ -1662,8 +1804,8 @@ module Aws::Textract
|
|
1662
1804
|
class ThrottlingException < Aws::EmptyStructure; end
|
1663
1805
|
|
1664
1806
|
# The format of the input document isn't supported. Documents for
|
1665
|
-
# synchronous operations can be in PNG or JPEG format. Documents
|
1666
|
-
# asynchronous operations can
|
1807
|
+
# synchronous operations can be in PNG or JPEG format only. Documents
|
1808
|
+
# for asynchronous operations can be in PDF format.
|
1667
1809
|
#
|
1668
1810
|
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/UnsupportedDocumentException AWS API Documentation
|
1669
1811
|
#
|
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.32.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: 2021-11-
|
11
|
+
date: 2021-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|