aws-sdk-textract 1.51.0 → 1.53.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-textract/client.rb +624 -18
- data/lib/aws-sdk-textract/client_api.rb +434 -0
- data/lib/aws-sdk-textract/endpoints.rb +168 -0
- data/lib/aws-sdk-textract/errors.rb +44 -0
- data/lib/aws-sdk-textract/plugins/endpoints.rb +24 -0
- data/lib/aws-sdk-textract/types.rb +881 -12
- data/lib/aws-sdk-textract.rb +1 -1
- metadata +4 -4
@@ -54,6 +54,62 @@ module Aws::Textract
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
+
class CreateAdapter
|
58
|
+
def self.build(context)
|
59
|
+
unless context.config.regional_endpoint
|
60
|
+
endpoint = context.config.endpoint.to_s
|
61
|
+
end
|
62
|
+
Aws::Textract::EndpointParameters.new(
|
63
|
+
region: context.config.region,
|
64
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
65
|
+
use_fips: context.config.use_fips_endpoint,
|
66
|
+
endpoint: endpoint,
|
67
|
+
)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
class CreateAdapterVersion
|
72
|
+
def self.build(context)
|
73
|
+
unless context.config.regional_endpoint
|
74
|
+
endpoint = context.config.endpoint.to_s
|
75
|
+
end
|
76
|
+
Aws::Textract::EndpointParameters.new(
|
77
|
+
region: context.config.region,
|
78
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
79
|
+
use_fips: context.config.use_fips_endpoint,
|
80
|
+
endpoint: endpoint,
|
81
|
+
)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
class DeleteAdapter
|
86
|
+
def self.build(context)
|
87
|
+
unless context.config.regional_endpoint
|
88
|
+
endpoint = context.config.endpoint.to_s
|
89
|
+
end
|
90
|
+
Aws::Textract::EndpointParameters.new(
|
91
|
+
region: context.config.region,
|
92
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
93
|
+
use_fips: context.config.use_fips_endpoint,
|
94
|
+
endpoint: endpoint,
|
95
|
+
)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
class DeleteAdapterVersion
|
100
|
+
def self.build(context)
|
101
|
+
unless context.config.regional_endpoint
|
102
|
+
endpoint = context.config.endpoint.to_s
|
103
|
+
end
|
104
|
+
Aws::Textract::EndpointParameters.new(
|
105
|
+
region: context.config.region,
|
106
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
107
|
+
use_fips: context.config.use_fips_endpoint,
|
108
|
+
endpoint: endpoint,
|
109
|
+
)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
57
113
|
class DetectDocumentText
|
58
114
|
def self.build(context)
|
59
115
|
unless context.config.regional_endpoint
|
@@ -68,6 +124,34 @@ module Aws::Textract
|
|
68
124
|
end
|
69
125
|
end
|
70
126
|
|
127
|
+
class GetAdapter
|
128
|
+
def self.build(context)
|
129
|
+
unless context.config.regional_endpoint
|
130
|
+
endpoint = context.config.endpoint.to_s
|
131
|
+
end
|
132
|
+
Aws::Textract::EndpointParameters.new(
|
133
|
+
region: context.config.region,
|
134
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
135
|
+
use_fips: context.config.use_fips_endpoint,
|
136
|
+
endpoint: endpoint,
|
137
|
+
)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
class GetAdapterVersion
|
142
|
+
def self.build(context)
|
143
|
+
unless context.config.regional_endpoint
|
144
|
+
endpoint = context.config.endpoint.to_s
|
145
|
+
end
|
146
|
+
Aws::Textract::EndpointParameters.new(
|
147
|
+
region: context.config.region,
|
148
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
149
|
+
use_fips: context.config.use_fips_endpoint,
|
150
|
+
endpoint: endpoint,
|
151
|
+
)
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
71
155
|
class GetDocumentAnalysis
|
72
156
|
def self.build(context)
|
73
157
|
unless context.config.regional_endpoint
|
@@ -138,6 +222,48 @@ module Aws::Textract
|
|
138
222
|
end
|
139
223
|
end
|
140
224
|
|
225
|
+
class ListAdapterVersions
|
226
|
+
def self.build(context)
|
227
|
+
unless context.config.regional_endpoint
|
228
|
+
endpoint = context.config.endpoint.to_s
|
229
|
+
end
|
230
|
+
Aws::Textract::EndpointParameters.new(
|
231
|
+
region: context.config.region,
|
232
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
233
|
+
use_fips: context.config.use_fips_endpoint,
|
234
|
+
endpoint: endpoint,
|
235
|
+
)
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
class ListAdapters
|
240
|
+
def self.build(context)
|
241
|
+
unless context.config.regional_endpoint
|
242
|
+
endpoint = context.config.endpoint.to_s
|
243
|
+
end
|
244
|
+
Aws::Textract::EndpointParameters.new(
|
245
|
+
region: context.config.region,
|
246
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
247
|
+
use_fips: context.config.use_fips_endpoint,
|
248
|
+
endpoint: endpoint,
|
249
|
+
)
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
class ListTagsForResource
|
254
|
+
def self.build(context)
|
255
|
+
unless context.config.regional_endpoint
|
256
|
+
endpoint = context.config.endpoint.to_s
|
257
|
+
end
|
258
|
+
Aws::Textract::EndpointParameters.new(
|
259
|
+
region: context.config.region,
|
260
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
261
|
+
use_fips: context.config.use_fips_endpoint,
|
262
|
+
endpoint: endpoint,
|
263
|
+
)
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
141
267
|
class StartDocumentAnalysis
|
142
268
|
def self.build(context)
|
143
269
|
unless context.config.regional_endpoint
|
@@ -194,5 +320,47 @@ module Aws::Textract
|
|
194
320
|
end
|
195
321
|
end
|
196
322
|
|
323
|
+
class TagResource
|
324
|
+
def self.build(context)
|
325
|
+
unless context.config.regional_endpoint
|
326
|
+
endpoint = context.config.endpoint.to_s
|
327
|
+
end
|
328
|
+
Aws::Textract::EndpointParameters.new(
|
329
|
+
region: context.config.region,
|
330
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
331
|
+
use_fips: context.config.use_fips_endpoint,
|
332
|
+
endpoint: endpoint,
|
333
|
+
)
|
334
|
+
end
|
335
|
+
end
|
336
|
+
|
337
|
+
class UntagResource
|
338
|
+
def self.build(context)
|
339
|
+
unless context.config.regional_endpoint
|
340
|
+
endpoint = context.config.endpoint.to_s
|
341
|
+
end
|
342
|
+
Aws::Textract::EndpointParameters.new(
|
343
|
+
region: context.config.region,
|
344
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
345
|
+
use_fips: context.config.use_fips_endpoint,
|
346
|
+
endpoint: endpoint,
|
347
|
+
)
|
348
|
+
end
|
349
|
+
end
|
350
|
+
|
351
|
+
class UpdateAdapter
|
352
|
+
def self.build(context)
|
353
|
+
unless context.config.regional_endpoint
|
354
|
+
endpoint = context.config.endpoint.to_s
|
355
|
+
end
|
356
|
+
Aws::Textract::EndpointParameters.new(
|
357
|
+
region: context.config.region,
|
358
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
359
|
+
use_fips: context.config.use_fips_endpoint,
|
360
|
+
endpoint: endpoint,
|
361
|
+
)
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
197
365
|
end
|
198
366
|
end
|
@@ -29,6 +29,7 @@ module Aws::Textract
|
|
29
29
|
# ## Error Classes
|
30
30
|
# * {AccessDeniedException}
|
31
31
|
# * {BadDocumentException}
|
32
|
+
# * {ConflictException}
|
32
33
|
# * {DocumentTooLargeException}
|
33
34
|
# * {HumanLoopQuotaExceededException}
|
34
35
|
# * {IdempotentParameterMismatchException}
|
@@ -39,8 +40,11 @@ module Aws::Textract
|
|
39
40
|
# * {InvalidS3ObjectException}
|
40
41
|
# * {LimitExceededException}
|
41
42
|
# * {ProvisionedThroughputExceededException}
|
43
|
+
# * {ResourceNotFoundException}
|
44
|
+
# * {ServiceQuotaExceededException}
|
42
45
|
# * {ThrottlingException}
|
43
46
|
# * {UnsupportedDocumentException}
|
47
|
+
# * {ValidationException}
|
44
48
|
#
|
45
49
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
46
50
|
# if they are not defined above.
|
@@ -68,6 +72,16 @@ module Aws::Textract
|
|
68
72
|
end
|
69
73
|
end
|
70
74
|
|
75
|
+
class ConflictException < ServiceError
|
76
|
+
|
77
|
+
# @param [Seahorse::Client::RequestContext] context
|
78
|
+
# @param [String] message
|
79
|
+
# @param [Aws::Textract::Types::ConflictException] data
|
80
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
81
|
+
super(context, message, data)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
71
85
|
class DocumentTooLargeException < ServiceError
|
72
86
|
|
73
87
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -183,6 +197,26 @@ module Aws::Textract
|
|
183
197
|
end
|
184
198
|
end
|
185
199
|
|
200
|
+
class ResourceNotFoundException < ServiceError
|
201
|
+
|
202
|
+
# @param [Seahorse::Client::RequestContext] context
|
203
|
+
# @param [String] message
|
204
|
+
# @param [Aws::Textract::Types::ResourceNotFoundException] data
|
205
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
206
|
+
super(context, message, data)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
class ServiceQuotaExceededException < ServiceError
|
211
|
+
|
212
|
+
# @param [Seahorse::Client::RequestContext] context
|
213
|
+
# @param [String] message
|
214
|
+
# @param [Aws::Textract::Types::ServiceQuotaExceededException] data
|
215
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
216
|
+
super(context, message, data)
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
186
220
|
class ThrottlingException < ServiceError
|
187
221
|
|
188
222
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -203,5 +237,15 @@ module Aws::Textract
|
|
203
237
|
end
|
204
238
|
end
|
205
239
|
|
240
|
+
class ValidationException < ServiceError
|
241
|
+
|
242
|
+
# @param [Seahorse::Client::RequestContext] context
|
243
|
+
# @param [String] message
|
244
|
+
# @param [Aws::Textract::Types::ValidationException] data
|
245
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
246
|
+
super(context, message, data)
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
206
250
|
end
|
207
251
|
end
|
@@ -62,8 +62,20 @@ module Aws::Textract
|
|
62
62
|
Aws::Textract::Endpoints::AnalyzeExpense.build(context)
|
63
63
|
when :analyze_id
|
64
64
|
Aws::Textract::Endpoints::AnalyzeID.build(context)
|
65
|
+
when :create_adapter
|
66
|
+
Aws::Textract::Endpoints::CreateAdapter.build(context)
|
67
|
+
when :create_adapter_version
|
68
|
+
Aws::Textract::Endpoints::CreateAdapterVersion.build(context)
|
69
|
+
when :delete_adapter
|
70
|
+
Aws::Textract::Endpoints::DeleteAdapter.build(context)
|
71
|
+
when :delete_adapter_version
|
72
|
+
Aws::Textract::Endpoints::DeleteAdapterVersion.build(context)
|
65
73
|
when :detect_document_text
|
66
74
|
Aws::Textract::Endpoints::DetectDocumentText.build(context)
|
75
|
+
when :get_adapter
|
76
|
+
Aws::Textract::Endpoints::GetAdapter.build(context)
|
77
|
+
when :get_adapter_version
|
78
|
+
Aws::Textract::Endpoints::GetAdapterVersion.build(context)
|
67
79
|
when :get_document_analysis
|
68
80
|
Aws::Textract::Endpoints::GetDocumentAnalysis.build(context)
|
69
81
|
when :get_document_text_detection
|
@@ -74,6 +86,12 @@ module Aws::Textract
|
|
74
86
|
Aws::Textract::Endpoints::GetLendingAnalysis.build(context)
|
75
87
|
when :get_lending_analysis_summary
|
76
88
|
Aws::Textract::Endpoints::GetLendingAnalysisSummary.build(context)
|
89
|
+
when :list_adapter_versions
|
90
|
+
Aws::Textract::Endpoints::ListAdapterVersions.build(context)
|
91
|
+
when :list_adapters
|
92
|
+
Aws::Textract::Endpoints::ListAdapters.build(context)
|
93
|
+
when :list_tags_for_resource
|
94
|
+
Aws::Textract::Endpoints::ListTagsForResource.build(context)
|
77
95
|
when :start_document_analysis
|
78
96
|
Aws::Textract::Endpoints::StartDocumentAnalysis.build(context)
|
79
97
|
when :start_document_text_detection
|
@@ -82,6 +100,12 @@ module Aws::Textract
|
|
82
100
|
Aws::Textract::Endpoints::StartExpenseAnalysis.build(context)
|
83
101
|
when :start_lending_analysis
|
84
102
|
Aws::Textract::Endpoints::StartLendingAnalysis.build(context)
|
103
|
+
when :tag_resource
|
104
|
+
Aws::Textract::Endpoints::TagResource.build(context)
|
105
|
+
when :untag_resource
|
106
|
+
Aws::Textract::Endpoints::UntagResource.build(context)
|
107
|
+
when :update_adapter
|
108
|
+
Aws::Textract::Endpoints::UpdateAdapter.build(context)
|
85
109
|
end
|
86
110
|
end
|
87
111
|
end
|