aws-sdk-textract 1.31.0 → 1.35.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 146350b4bc9ecb2c715e74c84a0d9490a722b86435165d1b14fc56f470b60203
4
- data.tar.gz: 3093e0a174b32d9bd8a1760dab6168a9e3ea2248bde39300af77efc62c530feb
3
+ metadata.gz: 24432cebe05346d884c58712785cef9255b8b1414f4a07ff4d0c68a08dac6e04
4
+ data.tar.gz: e7d0fdd1c90233417e0f8b6539a6016c6626111e74b499fd33f0830b92d7bbb6
5
5
  SHA512:
6
- metadata.gz: 6117a6cb2d44f1102304221e6eb1a7401f8bd7191b45dc6a39fcfb3a54e84f04392bdf8fd95cfdcb387d36914ced0f432480cf09d541d1df567ff4a253056f6e
7
- data.tar.gz: a81d1716f67ea9babf365c24f36cdac5fe2ec8e3ea0761f3721489181ac9874541f3d0aa238b96a2f71481e8fb870cd9425c109cfd40e3685e455c263c184521
6
+ metadata.gz: 9d6693120d4733587e0e1a6a0c9526c9c7acee081ee48d0de5e8f7b893ab474d537a631ca0ceb2a06bb8e09236b5640d77072bc24ae1a19e6c0899cb1d0c8972
7
+ data.tar.gz: 01e20f5ebb5a8d6d17f71613b59135a0afc5e2e38ebcc28e354d4b54ae0ac168d96424e56548685377916842f1bcdd6a4d30d6b43caddfd7a847c8fed15b7031
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.35.0 (2022-02-03)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.34.0 (2021-12-21)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.33.0 (2021-11-30)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.32.0 (2021-11-29)
20
+ ------------------
21
+
22
+ * Feature - This release adds support for synchronously analyzing identity documents through a new API: AnalyzeID
23
+
4
24
  1.31.0 (2021-11-04)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.31.0
1
+ 1.35.0
@@ -27,6 +27,8 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/defaults_mode.rb'
31
+ require 'aws-sdk-core/plugins/recursion_detection.rb'
30
32
  require 'aws-sdk-core/plugins/signature_v4.rb'
31
33
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
32
34
 
@@ -73,6 +75,8 @@ module Aws::Textract
73
75
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
76
  add_plugin(Aws::Plugins::TransferEncoding)
75
77
  add_plugin(Aws::Plugins::HttpChecksum)
78
+ add_plugin(Aws::Plugins::DefaultsMode)
79
+ add_plugin(Aws::Plugins::RecursionDetection)
76
80
  add_plugin(Aws::Plugins::SignatureV4)
77
81
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
78
82
 
@@ -119,7 +123,9 @@ module Aws::Textract
119
123
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
124
  # are very aggressive. Construct and pass an instance of
121
125
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
126
+ # enable retries and extended timeouts. Instance profile credential
127
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
128
+ # to true.
123
129
  #
124
130
  # @option options [required, String] :region
125
131
  # The AWS region to connect to. The configured `:region` is
@@ -173,6 +179,10 @@ module Aws::Textract
173
179
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
174
180
  # a clock skew correction and retry requests with skewed client clocks.
175
181
  #
182
+ # @option options [String] :defaults_mode ("legacy")
183
+ # See {Aws::DefaultsModeConfiguration} for a list of the
184
+ # accepted modes and the configuration defaults that are included.
185
+ #
176
186
  # @option options [Boolean] :disable_host_prefix_injection (false)
177
187
  # Set to true to disable SDK automatically adding host prefix
178
188
  # to default service endpoint when available.
@@ -305,7 +315,7 @@ module Aws::Textract
305
315
  # seconds to wait when opening a HTTP session before raising a
306
316
  # `Timeout::Error`.
307
317
  #
308
- # @option options [Integer] :http_read_timeout (60) The default
318
+ # @option options [Float] :http_read_timeout (60) The default
309
319
  # number of seconds to wait for response data. This value can
310
320
  # safely be set per-request on the session.
311
321
  #
@@ -321,6 +331,9 @@ module Aws::Textract
321
331
  # disables this behaviour. This value can safely be set per
322
332
  # request on the session.
323
333
  #
334
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
335
+ # in seconds.
336
+ #
324
337
  # @option options [Boolean] :http_wire_trace (false) When `true`,
325
338
  # HTTP debug output will be sent to the `:logger`.
326
339
  #
@@ -476,8 +489,8 @@ module Aws::Textract
476
489
  req.send_request(options)
477
490
  end
478
491
 
479
- # Analyzes an input document for financially related relationships
480
- # between text.
492
+ # `AnalyzeExpense` synchronously analyzes an input document for
493
+ # financially related relationships between text.
481
494
  #
482
495
  # Information is returned as `ExpenseDocuments` and seperated as
483
496
  # follows.
@@ -594,6 +607,59 @@ module Aws::Textract
594
607
  req.send_request(options)
595
608
  end
596
609
 
610
+ # Analyzes identity documents for relevant information. This information
611
+ # is extracted and returned as `IdentityDocumentFields`, which records
612
+ # both the normalized field and value of the extracted text.
613
+ #
614
+ # @option params [required, Array<Types::Document>] :document_pages
615
+ # The document being passed to AnalyzeID.
616
+ #
617
+ # @return [Types::AnalyzeIDResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
618
+ #
619
+ # * {Types::AnalyzeIDResponse#identity_documents #identity_documents} => Array&lt;Types::IdentityDocument&gt;
620
+ # * {Types::AnalyzeIDResponse#document_metadata #document_metadata} => Types::DocumentMetadata
621
+ # * {Types::AnalyzeIDResponse#analyze_id_model_version #analyze_id_model_version} => String
622
+ #
623
+ # @example Request syntax with placeholder values
624
+ #
625
+ # resp = client.analyze_id({
626
+ # document_pages: [ # required
627
+ # {
628
+ # bytes: "data",
629
+ # s3_object: {
630
+ # bucket: "S3Bucket",
631
+ # name: "S3ObjectName",
632
+ # version: "S3ObjectVersion",
633
+ # },
634
+ # },
635
+ # ],
636
+ # })
637
+ #
638
+ # @example Response structure
639
+ #
640
+ # resp.identity_documents #=> Array
641
+ # resp.identity_documents[0].document_index #=> Integer
642
+ # resp.identity_documents[0].identity_document_fields #=> Array
643
+ # resp.identity_documents[0].identity_document_fields[0].type.text #=> String
644
+ # resp.identity_documents[0].identity_document_fields[0].type.normalized_value.value #=> String
645
+ # resp.identity_documents[0].identity_document_fields[0].type.normalized_value.value_type #=> String, one of "DATE"
646
+ # resp.identity_documents[0].identity_document_fields[0].type.confidence #=> Float
647
+ # resp.identity_documents[0].identity_document_fields[0].value_detection.text #=> String
648
+ # resp.identity_documents[0].identity_document_fields[0].value_detection.normalized_value.value #=> String
649
+ # resp.identity_documents[0].identity_document_fields[0].value_detection.normalized_value.value_type #=> String, one of "DATE"
650
+ # resp.identity_documents[0].identity_document_fields[0].value_detection.confidence #=> Float
651
+ # resp.document_metadata.pages #=> Integer
652
+ # resp.analyze_id_model_version #=> String
653
+ #
654
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/AnalyzeID AWS API Documentation
655
+ #
656
+ # @overload analyze_id(params = {})
657
+ # @param [Hash] params ({})
658
+ def analyze_id(params = {}, options = {})
659
+ req = build_request(:analyze_id, params)
660
+ req.send_request(options)
661
+ end
662
+
597
663
  # Detects text in the input document. Amazon Textract can detect lines
598
664
  # of text and the words that make up a line of text. The input document
599
665
  # must be an image in JPEG or PNG format. `DetectDocumentText` returns
@@ -1392,7 +1458,7 @@ module Aws::Textract
1392
1458
  params: params,
1393
1459
  config: config)
1394
1460
  context[:gem_name] = 'aws-sdk-textract'
1395
- context[:gem_version] = '1.31.0'
1461
+ context[:gem_version] = '1.35.0'
1396
1462
  Seahorse::Client::Request.new(handlers, context)
1397
1463
  end
1398
1464
 
@@ -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
- # LableDetection, and ValueDetection
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 for
1666
- # asynchronous operations can also be in PDF format.
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
  #
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-textract/customizations'
48
48
  # @!group service
49
49
  module Aws::Textract
50
50
 
51
- GEM_VERSION = '1.31.0'
51
+ GEM_VERSION = '1.35.0'
52
52
 
53
53
  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.31.0
4
+ version: 1.35.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-04 00:00:00.000000000 Z
11
+ date: 2022-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.122.0
22
+ version: 3.126.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.122.0
32
+ version: 3.126.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement