aws-sdk-textract 1.12.0 → 1.13.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
- SHA1:
3
- metadata.gz: 7a71006801113001e73f63228fe2b5d656ca109c
4
- data.tar.gz: e30581e97885a5a4dce46db639aa58f73291766d
2
+ SHA256:
3
+ metadata.gz: ace85fccc127be82a0016d8791c4cb2b87d2bb93ec725bfd9fd5a08abbb3057f
4
+ data.tar.gz: ec518db114c41a7c87f6229d60f8cd083b24b46c3973d8d4fa01898adaf72e3b
5
5
  SHA512:
6
- metadata.gz: da014f69acfee4fa46bb6e23ee4c0988d8e7cbfc3529dfbee53a992d1baeaf90d1f18bd01a9afa31c75bbc592e0e3112bf673cd99c287a400de984c2ebabc871
7
- data.tar.gz: 4e87f85c57a41e611c818f4afc5b36c73422c1d5617153ab3175742e2f2be4811500d6702b24522d3988c077488f5902653be37ca7b9bf02cb4c1aed06482088
6
+ metadata.gz: 48651efc22f42e4772ff63f4f1ba26f42ef114131ea89f694a886e27df1b5b7d861a8c8df2d04dd9fd6af948aa701377e82ce5bfc869314d7136b0f44ab29306
7
+ data.tar.gz: f9df6196933792508d6d47da4e957d4616b31b274dcac3d8797ed46d55e16853e03e8e2a81bdfc2e0e1955be34f86028468f32eeb0874562b807b689dfc06267
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-textract/customizations'
24
24
  # methods each accept a hash of request parameters and return a response
25
25
  # structure.
26
26
  #
27
+ # textract = Aws::Textract::Client.new
28
+ # resp = textract.analyze_document(params)
29
+ #
27
30
  # See {Client} for more information.
28
31
  #
29
32
  # # Errors
30
33
  #
31
- # Errors returned from Amazon Textract all
32
- # extend {Errors::ServiceError}.
34
+ # Errors returned from Amazon Textract are defined in the
35
+ # {Errors} module and all extend {Errors::ServiceError}.
33
36
  #
34
37
  # begin
35
38
  # # do stuff
36
39
  # rescue Aws::Textract::Errors::ServiceError
37
- # # rescues all service API errors
40
+ # # rescues all Amazon Textract API errors
38
41
  # end
39
42
  #
40
43
  # See {Errors} for more information.
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-textract/customizations'
42
45
  # @service
43
46
  module Aws::Textract
44
47
 
45
- GEM_VERSION = '1.12.0'
48
+ GEM_VERSION = '1.13.0'
46
49
 
47
50
  end
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
30
30
  Aws::Plugins::GlobalConfiguration.add_identifier(:textract)
31
31
 
32
32
  module Aws::Textract
33
+ # An API client for Textract. To construct a client, you need to configure a `:region` and `:credentials`.
34
+ #
35
+ # client = Aws::Textract::Client.new(
36
+ # region: region_name,
37
+ # credentials: credentials,
38
+ # # ...
39
+ # )
40
+ #
41
+ # For details on configuring region and credentials see
42
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
43
+ #
44
+ # See {#initialize} for a full list of supported configuration options.
33
45
  class Client < Seahorse::Client::Base
34
46
 
35
47
  include Aws::ClientStubs
@@ -108,6 +120,12 @@ module Aws::Textract
108
120
  # When set to `true`, a thread polling for endpoints will be running in
109
121
  # the background every 60 secs (default). Defaults to `false`.
110
122
  #
123
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
124
+ # Used only in `adaptive` retry mode. When true, the request will sleep
125
+ # until there is sufficent client side capacity to retry the request.
126
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
127
+ # not retry instead of sleeping.
128
+ #
111
129
  # @option options [Boolean] :client_side_monitoring (false)
112
130
  # When `true`, client-side metrics will be collected for all API requests from
113
131
  # this client.
@@ -132,6 +150,10 @@ module Aws::Textract
132
150
  # When `true`, an attempt is made to coerce request parameters into
133
151
  # the required types.
134
152
  #
153
+ # @option options [Boolean] :correct_clock_skew (true)
154
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
155
+ # a clock skew correction and retry requests with skewed client clocks.
156
+ #
135
157
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
158
  # Set to true to disable SDK automatically adding host prefix
137
159
  # to default service endpoint when available.
@@ -166,15 +188,29 @@ module Aws::Textract
166
188
  # The Logger instance to send log messages to. If this option
167
189
  # is not set, logging will be disabled.
168
190
  #
191
+ # @option options [Integer] :max_attempts (3)
192
+ # An integer representing the maximum number attempts that will be made for
193
+ # a single request, including the initial attempt. For example,
194
+ # setting this value to 5 will result in a request being retried up to
195
+ # 4 times. Used in `standard` and `adaptive` retry modes.
196
+ #
169
197
  # @option options [String] :profile ("default")
170
198
  # Used when loading credentials from the shared credentials file
171
199
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
200
  #
201
+ # @option options [Proc] :retry_backoff
202
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
203
+ # This option is only used in the `legacy` retry mode.
204
+ #
173
205
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
206
+ # The base delay in seconds used by the default backoff function. This option
207
+ # is only used in the `legacy` retry mode.
175
208
  #
176
209
  # @option options [Symbol] :retry_jitter (:none)
177
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
210
+ # A delay randomiser function used by the default backoff function.
211
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
212
+ # otherwise a Proc that takes and returns a number. This option is only used
213
+ # in the `legacy` retry mode.
178
214
  #
179
215
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
216
  #
@@ -182,11 +218,30 @@ module Aws::Textract
182
218
  # The maximum number of times to retry failed requests. Only
183
219
  # ~ 500 level server errors and certain ~ 400 level client errors
184
220
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
221
+ # checksum errors, networking errors, timeout errors, auth errors,
222
+ # endpoint discovery, and errors from expired credentials.
223
+ # This option is only used in the `legacy` retry mode.
187
224
  #
188
225
  # @option options [Integer] :retry_max_delay (0)
189
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
226
+ # The maximum number of seconds to delay between retries (0 for no limit)
227
+ # used by the default backoff function. This option is only used in the
228
+ # `legacy` retry mode.
229
+ #
230
+ # @option options [String] :retry_mode ("legacy")
231
+ # Specifies which retry algorithm to use. Values are:
232
+ #
233
+ # * `legacy` - The pre-existing retry behavior. This is default value if
234
+ # no retry mode is provided.
235
+ #
236
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
237
+ # This includes support for retry quotas, which limit the number of
238
+ # unsuccessful retries a client can make.
239
+ #
240
+ # * `adaptive` - An experimental retry mode that includes all the
241
+ # functionality of `standard` mode along with automatic client side
242
+ # throttling. This is a provisional mode that may change behavior
243
+ # in the future.
244
+ #
190
245
  #
191
246
  # @option options [String] :secret_access_key
192
247
  #
@@ -219,16 +274,16 @@ module Aws::Textract
219
274
  # requests through. Formatted like 'http://proxy.com:123'.
220
275
  #
221
276
  # @option options [Float] :http_open_timeout (15) The number of
222
- # seconds to wait when opening a HTTP session before rasing a
277
+ # seconds to wait when opening a HTTP session before raising a
223
278
  # `Timeout::Error`.
224
279
  #
225
280
  # @option options [Integer] :http_read_timeout (60) The default
226
281
  # number of seconds to wait for response data. This value can
227
282
  # safely be set
228
- # per-request on the session yeidled by {#session_for}.
283
+ # per-request on the session yielded by {#session_for}.
229
284
  #
230
285
  # @option options [Float] :http_idle_timeout (5) The number of
231
- # seconds a connection is allowed to sit idble before it is
286
+ # seconds a connection is allowed to sit idle before it is
232
287
  # considered stale. Stale connections are closed and removed
233
288
  # from the pool before making a request.
234
289
  #
@@ -237,7 +292,7 @@ module Aws::Textract
237
292
  # request body. This option has no effect unless the request has
238
293
  # "Expect" header set to "100-continue". Defaults to `nil` which
239
294
  # disables this behaviour. This value can safely be set per
240
- # request on the session yeidled by {#session_for}.
295
+ # request on the session yielded by {#session_for}.
241
296
  #
242
297
  # @option options [Boolean] :http_wire_trace (false) When `true`,
243
298
  # HTTP debug output will be sent to the `:logger`.
@@ -918,7 +973,7 @@ module Aws::Textract
918
973
  params: params,
919
974
  config: config)
920
975
  context[:gem_name] = 'aws-sdk-textract'
921
- context[:gem_version] = '1.12.0'
976
+ context[:gem_version] = '1.13.0'
922
977
  Seahorse::Client::Request.new(handlers, context)
923
978
  end
924
979
 
@@ -91,6 +91,8 @@ module Aws::Textract
91
91
  Warning = Shapes::StructureShape.new(name: 'Warning')
92
92
  Warnings = Shapes::ListShape.new(name: 'Warnings')
93
93
 
94
+ AccessDeniedException.struct_class = Types::AccessDeniedException
95
+
94
96
  AnalyzeDocumentRequest.add_member(:document, Shapes::ShapeRef.new(shape: Document, required: true, location_name: "Document"))
95
97
  AnalyzeDocumentRequest.add_member(:feature_types, Shapes::ShapeRef.new(shape: FeatureTypes, required: true, location_name: "FeatureTypes"))
96
98
  AnalyzeDocumentRequest.add_member(:human_loop_config, Shapes::ShapeRef.new(shape: HumanLoopConfig, location_name: "HumanLoopConfig"))
@@ -102,6 +104,8 @@ module Aws::Textract
102
104
  AnalyzeDocumentResponse.add_member(:analyze_document_model_version, Shapes::ShapeRef.new(shape: String, location_name: "AnalyzeDocumentModelVersion"))
103
105
  AnalyzeDocumentResponse.struct_class = Types::AnalyzeDocumentResponse
104
106
 
107
+ BadDocumentException.struct_class = Types::BadDocumentException
108
+
105
109
  Block.add_member(:block_type, Shapes::ShapeRef.new(shape: BlockType, location_name: "BlockType"))
106
110
  Block.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
107
111
  Block.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "Text"))
@@ -145,6 +149,8 @@ module Aws::Textract
145
149
  DocumentMetadata.add_member(:pages, Shapes::ShapeRef.new(shape: UInteger, location_name: "Pages"))
146
150
  DocumentMetadata.struct_class = Types::DocumentMetadata
147
151
 
152
+ DocumentTooLargeException.struct_class = Types::DocumentTooLargeException
153
+
148
154
  EntityTypes.member = Shapes::ShapeRef.new(shape: EntityType)
149
155
 
150
156
  FeatureTypes.member = Shapes::ShapeRef.new(shape: FeatureType)
@@ -203,6 +209,18 @@ module Aws::Textract
203
209
 
204
210
  IdList.member = Shapes::ShapeRef.new(shape: NonEmptyString)
205
211
 
212
+ IdempotentParameterMismatchException.struct_class = Types::IdempotentParameterMismatchException
213
+
214
+ InternalServerError.struct_class = Types::InternalServerError
215
+
216
+ InvalidJobIdException.struct_class = Types::InvalidJobIdException
217
+
218
+ InvalidParameterException.struct_class = Types::InvalidParameterException
219
+
220
+ InvalidS3ObjectException.struct_class = Types::InvalidS3ObjectException
221
+
222
+ LimitExceededException.struct_class = Types::LimitExceededException
223
+
206
224
  NotificationChannel.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: SNSTopicArn, required: true, location_name: "SNSTopicArn"))
207
225
  NotificationChannel.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "RoleArn"))
208
226
  NotificationChannel.struct_class = Types::NotificationChannel
@@ -215,6 +233,8 @@ module Aws::Textract
215
233
 
216
234
  Polygon.member = Shapes::ShapeRef.new(shape: Point)
217
235
 
236
+ ProvisionedThroughputExceededException.struct_class = Types::ProvisionedThroughputExceededException
237
+
218
238
  Relationship.add_member(:type, Shapes::ShapeRef.new(shape: RelationshipType, location_name: "Type"))
219
239
  Relationship.add_member(:ids, Shapes::ShapeRef.new(shape: IdList, location_name: "Ids"))
220
240
  Relationship.struct_class = Types::Relationship
@@ -245,6 +265,10 @@ module Aws::Textract
245
265
  StartDocumentTextDetectionResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
246
266
  StartDocumentTextDetectionResponse.struct_class = Types::StartDocumentTextDetectionResponse
247
267
 
268
+ ThrottlingException.struct_class = Types::ThrottlingException
269
+
270
+ UnsupportedDocumentException.struct_class = Types::UnsupportedDocumentException
271
+
248
272
  Warning.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
249
273
  Warning.add_member(:pages, Shapes::ShapeRef.new(shape: Pages, location_name: "Pages"))
250
274
  Warning.struct_class = Types::Warning
@@ -6,10 +6,75 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Textract
9
+
10
+ # When Textract returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::Textract::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all Textract errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::Textract::Errors::ServiceError
18
+ # # rescues all Textract API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {AccessDeniedException}
29
+ # * {BadDocumentException}
30
+ # * {DocumentTooLargeException}
31
+ # * {HumanLoopQuotaExceededException}
32
+ # * {IdempotentParameterMismatchException}
33
+ # * {InternalServerError}
34
+ # * {InvalidJobIdException}
35
+ # * {InvalidParameterException}
36
+ # * {InvalidS3ObjectException}
37
+ # * {LimitExceededException}
38
+ # * {ProvisionedThroughputExceededException}
39
+ # * {ThrottlingException}
40
+ # * {UnsupportedDocumentException}
41
+ #
42
+ # Additionally, error classes are dynamically generated for service errors based on the error code
43
+ # if they are not defined above.
9
44
  module Errors
10
45
 
11
46
  extend Aws::Errors::DynamicErrors
12
47
 
48
+ class AccessDeniedException < ServiceError
49
+
50
+ # @param [Seahorse::Client::RequestContext] context
51
+ # @param [String] message
52
+ # @param [Aws::Textract::Types::AccessDeniedException] data
53
+ def initialize(context, message, data = Aws::EmptyStructure.new)
54
+ super(context, message, data)
55
+ end
56
+ end
57
+
58
+ class BadDocumentException < ServiceError
59
+
60
+ # @param [Seahorse::Client::RequestContext] context
61
+ # @param [String] message
62
+ # @param [Aws::Textract::Types::BadDocumentException] data
63
+ def initialize(context, message, data = Aws::EmptyStructure.new)
64
+ super(context, message, data)
65
+ end
66
+ end
67
+
68
+ class DocumentTooLargeException < ServiceError
69
+
70
+ # @param [Seahorse::Client::RequestContext] context
71
+ # @param [String] message
72
+ # @param [Aws::Textract::Types::DocumentTooLargeException] data
73
+ def initialize(context, message, data = Aws::EmptyStructure.new)
74
+ super(context, message, data)
75
+ end
76
+ end
77
+
13
78
  class HumanLoopQuotaExceededException < ServiceError
14
79
 
15
80
  # @param [Seahorse::Client::RequestContext] context
@@ -33,7 +98,96 @@ module Aws::Textract
33
98
  def service_code
34
99
  @data[:service_code]
35
100
  end
101
+ end
102
+
103
+ class IdempotentParameterMismatchException < ServiceError
104
+
105
+ # @param [Seahorse::Client::RequestContext] context
106
+ # @param [String] message
107
+ # @param [Aws::Textract::Types::IdempotentParameterMismatchException] data
108
+ def initialize(context, message, data = Aws::EmptyStructure.new)
109
+ super(context, message, data)
110
+ end
111
+ end
112
+
113
+ class InternalServerError < ServiceError
114
+
115
+ # @param [Seahorse::Client::RequestContext] context
116
+ # @param [String] message
117
+ # @param [Aws::Textract::Types::InternalServerError] data
118
+ def initialize(context, message, data = Aws::EmptyStructure.new)
119
+ super(context, message, data)
120
+ end
121
+ end
122
+
123
+ class InvalidJobIdException < ServiceError
124
+
125
+ # @param [Seahorse::Client::RequestContext] context
126
+ # @param [String] message
127
+ # @param [Aws::Textract::Types::InvalidJobIdException] data
128
+ def initialize(context, message, data = Aws::EmptyStructure.new)
129
+ super(context, message, data)
130
+ end
131
+ end
132
+
133
+ class InvalidParameterException < ServiceError
134
+
135
+ # @param [Seahorse::Client::RequestContext] context
136
+ # @param [String] message
137
+ # @param [Aws::Textract::Types::InvalidParameterException] data
138
+ def initialize(context, message, data = Aws::EmptyStructure.new)
139
+ super(context, message, data)
140
+ end
141
+ end
142
+
143
+ class InvalidS3ObjectException < ServiceError
144
+
145
+ # @param [Seahorse::Client::RequestContext] context
146
+ # @param [String] message
147
+ # @param [Aws::Textract::Types::InvalidS3ObjectException] data
148
+ def initialize(context, message, data = Aws::EmptyStructure.new)
149
+ super(context, message, data)
150
+ end
151
+ end
152
+
153
+ class LimitExceededException < ServiceError
154
+
155
+ # @param [Seahorse::Client::RequestContext] context
156
+ # @param [String] message
157
+ # @param [Aws::Textract::Types::LimitExceededException] data
158
+ def initialize(context, message, data = Aws::EmptyStructure.new)
159
+ super(context, message, data)
160
+ end
161
+ end
162
+
163
+ class ProvisionedThroughputExceededException < ServiceError
164
+
165
+ # @param [Seahorse::Client::RequestContext] context
166
+ # @param [String] message
167
+ # @param [Aws::Textract::Types::ProvisionedThroughputExceededException] data
168
+ def initialize(context, message, data = Aws::EmptyStructure.new)
169
+ super(context, message, data)
170
+ end
171
+ end
172
+
173
+ class ThrottlingException < ServiceError
174
+
175
+ # @param [Seahorse::Client::RequestContext] context
176
+ # @param [String] message
177
+ # @param [Aws::Textract::Types::ThrottlingException] data
178
+ def initialize(context, message, data = Aws::EmptyStructure.new)
179
+ super(context, message, data)
180
+ end
181
+ end
36
182
 
183
+ class UnsupportedDocumentException < ServiceError
184
+
185
+ # @param [Seahorse::Client::RequestContext] context
186
+ # @param [String] message
187
+ # @param [Aws::Textract::Types::UnsupportedDocumentException] data
188
+ def initialize(context, message, data = Aws::EmptyStructure.new)
189
+ super(context, message, data)
190
+ end
37
191
  end
38
192
 
39
193
  end
@@ -6,6 +6,13 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Textract
9
+ # This class provides a resource oriented interface for Textract.
10
+ # To create a resource object:
11
+ # resource = Aws::Textract::Resource.new(region: 'us-west-2')
12
+ # You can supply a client object with custom configuration that will be used for all resource operations.
13
+ # If you do not pass +:client+, a default client will be constructed.
14
+ # client = Aws::Textract::Client.new(region: 'us-west-2')
15
+ # resource = Aws::Textract::Resource.new(client: client)
9
16
  class Resource
10
17
 
11
18
  # @param options ({})
@@ -8,6 +8,12 @@
8
8
  module Aws::Textract
9
9
  module Types
10
10
 
11
+ # You aren't authorized to perform the action.
12
+ #
13
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/AccessDeniedException AWS API Documentation
14
+ #
15
+ class AccessDeniedException < Aws::EmptyStructure; end
16
+
11
17
  # @note When making an API call, you may pass AnalyzeDocumentRequest
12
18
  # data as a hash:
13
19
  #
@@ -92,6 +98,12 @@ module Aws::Textract
92
98
  include Aws::Structure
93
99
  end
94
100
 
101
+ # Amazon Textract isn't able to read the document.
102
+ #
103
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/BadDocumentException AWS API Documentation
104
+ #
105
+ class BadDocumentException < Aws::EmptyStructure; end
106
+
95
107
  # A `Block` represents items that are recognized in a document within a
96
108
  # group of pixels close to each other. The information returned in a
97
109
  # `Block` object depends on the type of operation. In text detection for
@@ -460,6 +472,14 @@ module Aws::Textract
460
472
  include Aws::Structure
461
473
  end
462
474
 
475
+ # The document can't be processed because it's too large. The maximum
476
+ # document size for synchronous operations 5 MB. The maximum document
477
+ # size for asynchronous operations is 500 MB for PDF files.
478
+ #
479
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/DocumentTooLargeException AWS API Documentation
480
+ #
481
+ class DocumentTooLargeException < Aws::EmptyStructure; end
482
+
463
483
  # Information about where the following items are located on a document
464
484
  # page: detected page, text, key-value pairs, tables, table cells, and
465
485
  # selection elements.
@@ -755,6 +775,55 @@ module Aws::Textract
755
775
  include Aws::Structure
756
776
  end
757
777
 
778
+ # A `ClientRequestToken` input parameter was reused with an operation,
779
+ # but at least one of the other input parameters is different from the
780
+ # previous call to the operation.
781
+ #
782
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/IdempotentParameterMismatchException AWS API Documentation
783
+ #
784
+ class IdempotentParameterMismatchException < Aws::EmptyStructure; end
785
+
786
+ # Amazon Textract experienced a service issue. Try your call again.
787
+ #
788
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/InternalServerError AWS API Documentation
789
+ #
790
+ class InternalServerError < Aws::EmptyStructure; end
791
+
792
+ # An invalid job identifier was passed to GetDocumentAnalysis or to
793
+ # GetDocumentAnalysis.
794
+ #
795
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/InvalidJobIdException AWS API Documentation
796
+ #
797
+ class InvalidJobIdException < Aws::EmptyStructure; end
798
+
799
+ # An input parameter violated a constraint. For example, in synchronous
800
+ # operations, an `InvalidParameterException` exception occurs when
801
+ # neither of the `S3Object` or `Bytes` values are supplied in the
802
+ # `Document` request parameter. Validate your parameter before calling
803
+ # the API operation again.
804
+ #
805
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/InvalidParameterException AWS API Documentation
806
+ #
807
+ class InvalidParameterException < Aws::EmptyStructure; end
808
+
809
+ # Amazon Textract is unable to access the S3 object that's specified in
810
+ # the request.
811
+ #
812
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/InvalidS3ObjectException AWS API Documentation
813
+ #
814
+ class InvalidS3ObjectException < Aws::EmptyStructure; end
815
+
816
+ # An Amazon Textract service limit was exceeded. For example, if you
817
+ # start too many asynchronous jobs concurrently, calls to start
818
+ # operations (`StartDocumentTextDetection`, for example) raise a
819
+ # LimitExceededException exception (HTTP status code: 400) until the
820
+ # number of concurrently running jobs is below the Amazon Textract
821
+ # service limit.
822
+ #
823
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/LimitExceededException AWS API Documentation
824
+ #
825
+ class LimitExceededException < Aws::EmptyStructure; end
826
+
758
827
  # The Amazon Simple Notification Service (Amazon SNS) topic to which
759
828
  # Amazon Textract publishes the completion status of an asynchronous
760
829
  # document operation, such as StartDocumentTextDetection.
@@ -812,6 +881,13 @@ module Aws::Textract
812
881
  include Aws::Structure
813
882
  end
814
883
 
884
+ # The number of requests exceeded your throughput limit. If you want to
885
+ # increase this limit, contact Amazon Textract.
886
+ #
887
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ProvisionedThroughputExceededException AWS API Documentation
888
+ #
889
+ class ProvisionedThroughputExceededException < Aws::EmptyStructure; end
890
+
815
891
  # Information about how blocks are related to each other. A `Block`
816
892
  # object contains 0 or more `Relation` objects in a list,
817
893
  # `Relationships`. For more information, see Block.
@@ -1037,6 +1113,21 @@ module Aws::Textract
1037
1113
  include Aws::Structure
1038
1114
  end
1039
1115
 
1116
+ # Amazon Textract is temporarily unable to process the request. Try your
1117
+ # call again.
1118
+ #
1119
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ThrottlingException AWS API Documentation
1120
+ #
1121
+ class ThrottlingException < Aws::EmptyStructure; end
1122
+
1123
+ # The format of the input document isn't supported. Documents for
1124
+ # synchronous operations can be in PNG or JPEG format. Documents for
1125
+ # asynchronous operations can also be in PDF format.
1126
+ #
1127
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/UnsupportedDocumentException AWS API Documentation
1128
+ #
1129
+ class UnsupportedDocumentException < Aws::EmptyStructure; end
1130
+
1040
1131
  # A warning about an issue that occurred during asynchronous text
1041
1132
  # analysis (StartDocumentAnalysis) or asynchronous document text
1042
1133
  # detection (StartDocumentTextDetection).
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.12.0
4
+ version: 1.13.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: 2019-12-03 00:00:00.000000000 Z
11
+ date: 2020-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -80,8 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
- rubyforge_project:
84
- rubygems_version: 2.5.2.3
83
+ rubygems_version: 3.0.3
85
84
  signing_key:
86
85
  specification_version: 4
87
86
  summary: AWS SDK for Ruby - Amazon Textract