aws-sdk-textract 1.52.0 → 1.53.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 +612 -7
- 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 +875 -6
- data/lib/aws-sdk-textract.rb +1 -1
- metadata +2 -2
@@ -14,6 +14,25 @@ module Aws::Textract
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
16
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
|
+
Adapter = Shapes::StructureShape.new(name: 'Adapter')
|
18
|
+
AdapterDescription = Shapes::StringShape.new(name: 'AdapterDescription')
|
19
|
+
AdapterId = Shapes::StringShape.new(name: 'AdapterId')
|
20
|
+
AdapterList = Shapes::ListShape.new(name: 'AdapterList')
|
21
|
+
AdapterName = Shapes::StringShape.new(name: 'AdapterName')
|
22
|
+
AdapterOverview = Shapes::StructureShape.new(name: 'AdapterOverview')
|
23
|
+
AdapterPage = Shapes::StringShape.new(name: 'AdapterPage')
|
24
|
+
AdapterPages = Shapes::ListShape.new(name: 'AdapterPages')
|
25
|
+
AdapterVersion = Shapes::StringShape.new(name: 'AdapterVersion')
|
26
|
+
AdapterVersionDatasetConfig = Shapes::StructureShape.new(name: 'AdapterVersionDatasetConfig')
|
27
|
+
AdapterVersionEvaluationMetric = Shapes::StructureShape.new(name: 'AdapterVersionEvaluationMetric')
|
28
|
+
AdapterVersionEvaluationMetrics = Shapes::ListShape.new(name: 'AdapterVersionEvaluationMetrics')
|
29
|
+
AdapterVersionList = Shapes::ListShape.new(name: 'AdapterVersionList')
|
30
|
+
AdapterVersionOverview = Shapes::StructureShape.new(name: 'AdapterVersionOverview')
|
31
|
+
AdapterVersionStatus = Shapes::StringShape.new(name: 'AdapterVersionStatus')
|
32
|
+
AdapterVersionStatusMessage = Shapes::StringShape.new(name: 'AdapterVersionStatusMessage')
|
33
|
+
Adapters = Shapes::ListShape.new(name: 'Adapters')
|
34
|
+
AdaptersConfig = Shapes::StructureShape.new(name: 'AdaptersConfig')
|
35
|
+
AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
|
17
36
|
AnalyzeDocumentRequest = Shapes::StructureShape.new(name: 'AnalyzeDocumentRequest')
|
18
37
|
AnalyzeDocumentResponse = Shapes::StructureShape.new(name: 'AnalyzeDocumentResponse')
|
19
38
|
AnalyzeExpenseRequest = Shapes::StructureShape.new(name: 'AnalyzeExpenseRequest')
|
@@ -21,14 +40,25 @@ module Aws::Textract
|
|
21
40
|
AnalyzeIDDetections = Shapes::StructureShape.new(name: 'AnalyzeIDDetections')
|
22
41
|
AnalyzeIDRequest = Shapes::StructureShape.new(name: 'AnalyzeIDRequest')
|
23
42
|
AnalyzeIDResponse = Shapes::StructureShape.new(name: 'AnalyzeIDResponse')
|
43
|
+
AutoUpdate = Shapes::StringShape.new(name: 'AutoUpdate')
|
24
44
|
BadDocumentException = Shapes::StructureShape.new(name: 'BadDocumentException')
|
25
45
|
Block = Shapes::StructureShape.new(name: 'Block')
|
26
46
|
BlockList = Shapes::ListShape.new(name: 'BlockList')
|
27
47
|
BlockType = Shapes::StringShape.new(name: 'BlockType')
|
28
48
|
BoundingBox = Shapes::StructureShape.new(name: 'BoundingBox')
|
29
49
|
ClientRequestToken = Shapes::StringShape.new(name: 'ClientRequestToken')
|
50
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
30
51
|
ContentClassifier = Shapes::StringShape.new(name: 'ContentClassifier')
|
31
52
|
ContentClassifiers = Shapes::ListShape.new(name: 'ContentClassifiers')
|
53
|
+
CreateAdapterRequest = Shapes::StructureShape.new(name: 'CreateAdapterRequest')
|
54
|
+
CreateAdapterResponse = Shapes::StructureShape.new(name: 'CreateAdapterResponse')
|
55
|
+
CreateAdapterVersionRequest = Shapes::StructureShape.new(name: 'CreateAdapterVersionRequest')
|
56
|
+
CreateAdapterVersionResponse = Shapes::StructureShape.new(name: 'CreateAdapterVersionResponse')
|
57
|
+
DateTime = Shapes::TimestampShape.new(name: 'DateTime')
|
58
|
+
DeleteAdapterRequest = Shapes::StructureShape.new(name: 'DeleteAdapterRequest')
|
59
|
+
DeleteAdapterResponse = Shapes::StructureShape.new(name: 'DeleteAdapterResponse')
|
60
|
+
DeleteAdapterVersionRequest = Shapes::StructureShape.new(name: 'DeleteAdapterVersionRequest')
|
61
|
+
DeleteAdapterVersionResponse = Shapes::StructureShape.new(name: 'DeleteAdapterVersionResponse')
|
32
62
|
DetectDocumentTextRequest = Shapes::StructureShape.new(name: 'DetectDocumentTextRequest')
|
33
63
|
DetectDocumentTextResponse = Shapes::StructureShape.new(name: 'DetectDocumentTextResponse')
|
34
64
|
DetectedSignature = Shapes::StructureShape.new(name: 'DetectedSignature')
|
@@ -43,6 +73,7 @@ module Aws::Textract
|
|
43
73
|
EntityType = Shapes::StringShape.new(name: 'EntityType')
|
44
74
|
EntityTypes = Shapes::ListShape.new(name: 'EntityTypes')
|
45
75
|
ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
|
76
|
+
EvaluationMetric = Shapes::StructureShape.new(name: 'EvaluationMetric')
|
46
77
|
ExpenseCurrency = Shapes::StructureShape.new(name: 'ExpenseCurrency')
|
47
78
|
ExpenseDetection = Shapes::StructureShape.new(name: 'ExpenseDetection')
|
48
79
|
ExpenseDocument = Shapes::StructureShape.new(name: 'ExpenseDocument')
|
@@ -59,6 +90,10 @@ module Aws::Textract
|
|
59
90
|
Float = Shapes::FloatShape.new(name: 'Float')
|
60
91
|
FlowDefinitionArn = Shapes::StringShape.new(name: 'FlowDefinitionArn')
|
61
92
|
Geometry = Shapes::StructureShape.new(name: 'Geometry')
|
93
|
+
GetAdapterRequest = Shapes::StructureShape.new(name: 'GetAdapterRequest')
|
94
|
+
GetAdapterResponse = Shapes::StructureShape.new(name: 'GetAdapterResponse')
|
95
|
+
GetAdapterVersionRequest = Shapes::StructureShape.new(name: 'GetAdapterVersionRequest')
|
96
|
+
GetAdapterVersionResponse = Shapes::StructureShape.new(name: 'GetAdapterVersionResponse')
|
62
97
|
GetDocumentAnalysisRequest = Shapes::StructureShape.new(name: 'GetDocumentAnalysisRequest')
|
63
98
|
GetDocumentAnalysisResponse = Shapes::StructureShape.new(name: 'GetDocumentAnalysisResponse')
|
64
99
|
GetDocumentTextDetectionRequest = Shapes::StructureShape.new(name: 'GetDocumentTextDetectionRequest')
|
@@ -107,6 +142,12 @@ module Aws::Textract
|
|
107
142
|
LineItemGroup = Shapes::StructureShape.new(name: 'LineItemGroup')
|
108
143
|
LineItemGroupList = Shapes::ListShape.new(name: 'LineItemGroupList')
|
109
144
|
LineItemList = Shapes::ListShape.new(name: 'LineItemList')
|
145
|
+
ListAdapterVersionsRequest = Shapes::StructureShape.new(name: 'ListAdapterVersionsRequest')
|
146
|
+
ListAdapterVersionsResponse = Shapes::StructureShape.new(name: 'ListAdapterVersionsResponse')
|
147
|
+
ListAdaptersRequest = Shapes::StructureShape.new(name: 'ListAdaptersRequest')
|
148
|
+
ListAdaptersResponse = Shapes::StructureShape.new(name: 'ListAdaptersResponse')
|
149
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
150
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
110
151
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
111
152
|
NonEmptyString = Shapes::StringShape.new(name: 'NonEmptyString')
|
112
153
|
NormalizedValue = Shapes::StructureShape.new(name: 'NormalizedValue')
|
@@ -131,6 +172,7 @@ module Aws::Textract
|
|
131
172
|
Relationship = Shapes::StructureShape.new(name: 'Relationship')
|
132
173
|
RelationshipList = Shapes::ListShape.new(name: 'RelationshipList')
|
133
174
|
RelationshipType = Shapes::StringShape.new(name: 'RelationshipType')
|
175
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
134
176
|
RoleArn = Shapes::StringShape.new(name: 'RoleArn')
|
135
177
|
S3Bucket = Shapes::StringShape.new(name: 'S3Bucket')
|
136
178
|
S3Object = Shapes::StructureShape.new(name: 'S3Object')
|
@@ -138,6 +180,7 @@ module Aws::Textract
|
|
138
180
|
S3ObjectVersion = Shapes::StringShape.new(name: 'S3ObjectVersion')
|
139
181
|
SNSTopicArn = Shapes::StringShape.new(name: 'SNSTopicArn')
|
140
182
|
SelectionStatus = Shapes::StringShape.new(name: 'SelectionStatus')
|
183
|
+
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
141
184
|
SignatureDetection = Shapes::StructureShape.new(name: 'SignatureDetection')
|
142
185
|
SignatureDetectionList = Shapes::ListShape.new(name: 'SignatureDetectionList')
|
143
186
|
SplitDocument = Shapes::StructureShape.new(name: 'SplitDocument')
|
@@ -153,6 +196,12 @@ module Aws::Textract
|
|
153
196
|
StatusMessage = Shapes::StringShape.new(name: 'StatusMessage')
|
154
197
|
String = Shapes::StringShape.new(name: 'String')
|
155
198
|
StringList = Shapes::ListShape.new(name: 'StringList')
|
199
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
200
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
201
|
+
TagMap = Shapes::MapShape.new(name: 'TagMap')
|
202
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
203
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
204
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
156
205
|
TextType = Shapes::StringShape.new(name: 'TextType')
|
157
206
|
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
158
207
|
UInteger = Shapes::IntegerShape.new(name: 'UInteger')
|
@@ -160,16 +209,62 @@ module Aws::Textract
|
|
160
209
|
UndetectedSignature = Shapes::StructureShape.new(name: 'UndetectedSignature')
|
161
210
|
UndetectedSignatureList = Shapes::ListShape.new(name: 'UndetectedSignatureList')
|
162
211
|
UnsupportedDocumentException = Shapes::StructureShape.new(name: 'UnsupportedDocumentException')
|
212
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
213
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
214
|
+
UpdateAdapterRequest = Shapes::StructureShape.new(name: 'UpdateAdapterRequest')
|
215
|
+
UpdateAdapterResponse = Shapes::StructureShape.new(name: 'UpdateAdapterResponse')
|
216
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
163
217
|
ValueType = Shapes::StringShape.new(name: 'ValueType')
|
164
218
|
Warning = Shapes::StructureShape.new(name: 'Warning')
|
165
219
|
Warnings = Shapes::ListShape.new(name: 'Warnings')
|
166
220
|
|
167
221
|
AccessDeniedException.struct_class = Types::AccessDeniedException
|
168
222
|
|
223
|
+
Adapter.add_member(:adapter_id, Shapes::ShapeRef.new(shape: AdapterId, required: true, location_name: "AdapterId"))
|
224
|
+
Adapter.add_member(:pages, Shapes::ShapeRef.new(shape: AdapterPages, location_name: "Pages"))
|
225
|
+
Adapter.add_member(:version, Shapes::ShapeRef.new(shape: AdapterVersion, required: true, location_name: "Version"))
|
226
|
+
Adapter.struct_class = Types::Adapter
|
227
|
+
|
228
|
+
AdapterList.member = Shapes::ShapeRef.new(shape: AdapterOverview)
|
229
|
+
|
230
|
+
AdapterOverview.add_member(:adapter_id, Shapes::ShapeRef.new(shape: AdapterId, location_name: "AdapterId"))
|
231
|
+
AdapterOverview.add_member(:adapter_name, Shapes::ShapeRef.new(shape: AdapterName, location_name: "AdapterName"))
|
232
|
+
AdapterOverview.add_member(:creation_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTime"))
|
233
|
+
AdapterOverview.add_member(:feature_types, Shapes::ShapeRef.new(shape: FeatureTypes, location_name: "FeatureTypes"))
|
234
|
+
AdapterOverview.struct_class = Types::AdapterOverview
|
235
|
+
|
236
|
+
AdapterPages.member = Shapes::ShapeRef.new(shape: AdapterPage)
|
237
|
+
|
238
|
+
AdapterVersionDatasetConfig.add_member(:manifest_s3_object, Shapes::ShapeRef.new(shape: S3Object, location_name: "ManifestS3Object"))
|
239
|
+
AdapterVersionDatasetConfig.struct_class = Types::AdapterVersionDatasetConfig
|
240
|
+
|
241
|
+
AdapterVersionEvaluationMetric.add_member(:baseline, Shapes::ShapeRef.new(shape: EvaluationMetric, location_name: "Baseline"))
|
242
|
+
AdapterVersionEvaluationMetric.add_member(:adapter_version, Shapes::ShapeRef.new(shape: EvaluationMetric, location_name: "AdapterVersion"))
|
243
|
+
AdapterVersionEvaluationMetric.add_member(:feature_type, Shapes::ShapeRef.new(shape: FeatureType, location_name: "FeatureType"))
|
244
|
+
AdapterVersionEvaluationMetric.struct_class = Types::AdapterVersionEvaluationMetric
|
245
|
+
|
246
|
+
AdapterVersionEvaluationMetrics.member = Shapes::ShapeRef.new(shape: AdapterVersionEvaluationMetric)
|
247
|
+
|
248
|
+
AdapterVersionList.member = Shapes::ShapeRef.new(shape: AdapterVersionOverview)
|
249
|
+
|
250
|
+
AdapterVersionOverview.add_member(:adapter_id, Shapes::ShapeRef.new(shape: AdapterId, location_name: "AdapterId"))
|
251
|
+
AdapterVersionOverview.add_member(:adapter_version, Shapes::ShapeRef.new(shape: AdapterVersion, location_name: "AdapterVersion"))
|
252
|
+
AdapterVersionOverview.add_member(:creation_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTime"))
|
253
|
+
AdapterVersionOverview.add_member(:feature_types, Shapes::ShapeRef.new(shape: FeatureTypes, location_name: "FeatureTypes"))
|
254
|
+
AdapterVersionOverview.add_member(:status, Shapes::ShapeRef.new(shape: AdapterVersionStatus, location_name: "Status"))
|
255
|
+
AdapterVersionOverview.add_member(:status_message, Shapes::ShapeRef.new(shape: AdapterVersionStatusMessage, location_name: "StatusMessage"))
|
256
|
+
AdapterVersionOverview.struct_class = Types::AdapterVersionOverview
|
257
|
+
|
258
|
+
Adapters.member = Shapes::ShapeRef.new(shape: Adapter)
|
259
|
+
|
260
|
+
AdaptersConfig.add_member(:adapters, Shapes::ShapeRef.new(shape: Adapters, required: true, location_name: "Adapters"))
|
261
|
+
AdaptersConfig.struct_class = Types::AdaptersConfig
|
262
|
+
|
169
263
|
AnalyzeDocumentRequest.add_member(:document, Shapes::ShapeRef.new(shape: Document, required: true, location_name: "Document"))
|
170
264
|
AnalyzeDocumentRequest.add_member(:feature_types, Shapes::ShapeRef.new(shape: FeatureTypes, required: true, location_name: "FeatureTypes"))
|
171
265
|
AnalyzeDocumentRequest.add_member(:human_loop_config, Shapes::ShapeRef.new(shape: HumanLoopConfig, location_name: "HumanLoopConfig"))
|
172
266
|
AnalyzeDocumentRequest.add_member(:queries_config, Shapes::ShapeRef.new(shape: QueriesConfig, location_name: "QueriesConfig"))
|
267
|
+
AnalyzeDocumentRequest.add_member(:adapters_config, Shapes::ShapeRef.new(shape: AdaptersConfig, location_name: "AdaptersConfig"))
|
173
268
|
AnalyzeDocumentRequest.struct_class = Types::AnalyzeDocumentRequest
|
174
269
|
|
175
270
|
AnalyzeDocumentResponse.add_member(:document_metadata, Shapes::ShapeRef.new(shape: DocumentMetadata, location_name: "DocumentMetadata"))
|
@@ -225,8 +320,44 @@ module Aws::Textract
|
|
225
320
|
BoundingBox.add_member(:top, Shapes::ShapeRef.new(shape: Float, location_name: "Top"))
|
226
321
|
BoundingBox.struct_class = Types::BoundingBox
|
227
322
|
|
323
|
+
ConflictException.struct_class = Types::ConflictException
|
324
|
+
|
228
325
|
ContentClassifiers.member = Shapes::ShapeRef.new(shape: ContentClassifier)
|
229
326
|
|
327
|
+
CreateAdapterRequest.add_member(:adapter_name, Shapes::ShapeRef.new(shape: AdapterName, required: true, location_name: "AdapterName"))
|
328
|
+
CreateAdapterRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
|
329
|
+
CreateAdapterRequest.add_member(:description, Shapes::ShapeRef.new(shape: AdapterDescription, location_name: "Description"))
|
330
|
+
CreateAdapterRequest.add_member(:feature_types, Shapes::ShapeRef.new(shape: FeatureTypes, required: true, location_name: "FeatureTypes"))
|
331
|
+
CreateAdapterRequest.add_member(:auto_update, Shapes::ShapeRef.new(shape: AutoUpdate, location_name: "AutoUpdate"))
|
332
|
+
CreateAdapterRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
333
|
+
CreateAdapterRequest.struct_class = Types::CreateAdapterRequest
|
334
|
+
|
335
|
+
CreateAdapterResponse.add_member(:adapter_id, Shapes::ShapeRef.new(shape: AdapterId, location_name: "AdapterId"))
|
336
|
+
CreateAdapterResponse.struct_class = Types::CreateAdapterResponse
|
337
|
+
|
338
|
+
CreateAdapterVersionRequest.add_member(:adapter_id, Shapes::ShapeRef.new(shape: AdapterId, required: true, location_name: "AdapterId"))
|
339
|
+
CreateAdapterVersionRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
|
340
|
+
CreateAdapterVersionRequest.add_member(:dataset_config, Shapes::ShapeRef.new(shape: AdapterVersionDatasetConfig, required: true, location_name: "DatasetConfig"))
|
341
|
+
CreateAdapterVersionRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KMSKeyId, location_name: "KMSKeyId"))
|
342
|
+
CreateAdapterVersionRequest.add_member(:output_config, Shapes::ShapeRef.new(shape: OutputConfig, required: true, location_name: "OutputConfig"))
|
343
|
+
CreateAdapterVersionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
344
|
+
CreateAdapterVersionRequest.struct_class = Types::CreateAdapterVersionRequest
|
345
|
+
|
346
|
+
CreateAdapterVersionResponse.add_member(:adapter_id, Shapes::ShapeRef.new(shape: AdapterId, location_name: "AdapterId"))
|
347
|
+
CreateAdapterVersionResponse.add_member(:adapter_version, Shapes::ShapeRef.new(shape: AdapterVersion, location_name: "AdapterVersion"))
|
348
|
+
CreateAdapterVersionResponse.struct_class = Types::CreateAdapterVersionResponse
|
349
|
+
|
350
|
+
DeleteAdapterRequest.add_member(:adapter_id, Shapes::ShapeRef.new(shape: AdapterId, required: true, location_name: "AdapterId"))
|
351
|
+
DeleteAdapterRequest.struct_class = Types::DeleteAdapterRequest
|
352
|
+
|
353
|
+
DeleteAdapterResponse.struct_class = Types::DeleteAdapterResponse
|
354
|
+
|
355
|
+
DeleteAdapterVersionRequest.add_member(:adapter_id, Shapes::ShapeRef.new(shape: AdapterId, required: true, location_name: "AdapterId"))
|
356
|
+
DeleteAdapterVersionRequest.add_member(:adapter_version, Shapes::ShapeRef.new(shape: AdapterVersion, required: true, location_name: "AdapterVersion"))
|
357
|
+
DeleteAdapterVersionRequest.struct_class = Types::DeleteAdapterVersionRequest
|
358
|
+
|
359
|
+
DeleteAdapterVersionResponse.struct_class = Types::DeleteAdapterVersionResponse
|
360
|
+
|
230
361
|
DetectDocumentTextRequest.add_member(:document, Shapes::ShapeRef.new(shape: Document, required: true, location_name: "Document"))
|
231
362
|
DetectDocumentTextRequest.struct_class = Types::DetectDocumentTextRequest
|
232
363
|
|
@@ -264,6 +395,11 @@ module Aws::Textract
|
|
264
395
|
|
265
396
|
EntityTypes.member = Shapes::ShapeRef.new(shape: EntityType)
|
266
397
|
|
398
|
+
EvaluationMetric.add_member(:f1_score, Shapes::ShapeRef.new(shape: Float, location_name: "F1Score"))
|
399
|
+
EvaluationMetric.add_member(:precision, Shapes::ShapeRef.new(shape: Float, location_name: "Precision"))
|
400
|
+
EvaluationMetric.add_member(:recall, Shapes::ShapeRef.new(shape: Float, location_name: "Recall"))
|
401
|
+
EvaluationMetric.struct_class = Types::EvaluationMetric
|
402
|
+
|
267
403
|
ExpenseCurrency.add_member(:code, Shapes::ShapeRef.new(shape: String, location_name: "Code"))
|
268
404
|
ExpenseCurrency.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
269
405
|
ExpenseCurrency.struct_class = Types::ExpenseCurrency
|
@@ -314,6 +450,35 @@ module Aws::Textract
|
|
314
450
|
Geometry.add_member(:polygon, Shapes::ShapeRef.new(shape: Polygon, location_name: "Polygon"))
|
315
451
|
Geometry.struct_class = Types::Geometry
|
316
452
|
|
453
|
+
GetAdapterRequest.add_member(:adapter_id, Shapes::ShapeRef.new(shape: AdapterId, required: true, location_name: "AdapterId"))
|
454
|
+
GetAdapterRequest.struct_class = Types::GetAdapterRequest
|
455
|
+
|
456
|
+
GetAdapterResponse.add_member(:adapter_id, Shapes::ShapeRef.new(shape: AdapterId, location_name: "AdapterId"))
|
457
|
+
GetAdapterResponse.add_member(:adapter_name, Shapes::ShapeRef.new(shape: AdapterName, location_name: "AdapterName"))
|
458
|
+
GetAdapterResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTime"))
|
459
|
+
GetAdapterResponse.add_member(:description, Shapes::ShapeRef.new(shape: AdapterDescription, location_name: "Description"))
|
460
|
+
GetAdapterResponse.add_member(:feature_types, Shapes::ShapeRef.new(shape: FeatureTypes, location_name: "FeatureTypes"))
|
461
|
+
GetAdapterResponse.add_member(:auto_update, Shapes::ShapeRef.new(shape: AutoUpdate, location_name: "AutoUpdate"))
|
462
|
+
GetAdapterResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
463
|
+
GetAdapterResponse.struct_class = Types::GetAdapterResponse
|
464
|
+
|
465
|
+
GetAdapterVersionRequest.add_member(:adapter_id, Shapes::ShapeRef.new(shape: AdapterId, required: true, location_name: "AdapterId"))
|
466
|
+
GetAdapterVersionRequest.add_member(:adapter_version, Shapes::ShapeRef.new(shape: AdapterVersion, required: true, location_name: "AdapterVersion"))
|
467
|
+
GetAdapterVersionRequest.struct_class = Types::GetAdapterVersionRequest
|
468
|
+
|
469
|
+
GetAdapterVersionResponse.add_member(:adapter_id, Shapes::ShapeRef.new(shape: AdapterId, location_name: "AdapterId"))
|
470
|
+
GetAdapterVersionResponse.add_member(:adapter_version, Shapes::ShapeRef.new(shape: AdapterVersion, location_name: "AdapterVersion"))
|
471
|
+
GetAdapterVersionResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTime"))
|
472
|
+
GetAdapterVersionResponse.add_member(:feature_types, Shapes::ShapeRef.new(shape: FeatureTypes, location_name: "FeatureTypes"))
|
473
|
+
GetAdapterVersionResponse.add_member(:status, Shapes::ShapeRef.new(shape: AdapterVersionStatus, location_name: "Status"))
|
474
|
+
GetAdapterVersionResponse.add_member(:status_message, Shapes::ShapeRef.new(shape: AdapterVersionStatusMessage, location_name: "StatusMessage"))
|
475
|
+
GetAdapterVersionResponse.add_member(:dataset_config, Shapes::ShapeRef.new(shape: AdapterVersionDatasetConfig, location_name: "DatasetConfig"))
|
476
|
+
GetAdapterVersionResponse.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KMSKeyId, location_name: "KMSKeyId"))
|
477
|
+
GetAdapterVersionResponse.add_member(:output_config, Shapes::ShapeRef.new(shape: OutputConfig, location_name: "OutputConfig"))
|
478
|
+
GetAdapterVersionResponse.add_member(:evaluation_metrics, Shapes::ShapeRef.new(shape: AdapterVersionEvaluationMetrics, location_name: "EvaluationMetrics"))
|
479
|
+
GetAdapterVersionResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
480
|
+
GetAdapterVersionResponse.struct_class = Types::GetAdapterVersionResponse
|
481
|
+
|
317
482
|
GetDocumentAnalysisRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
|
318
483
|
GetDocumentAnalysisRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
319
484
|
GetDocumentAnalysisRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
@@ -471,6 +636,33 @@ module Aws::Textract
|
|
471
636
|
|
472
637
|
LineItemList.member = Shapes::ShapeRef.new(shape: LineItemFields)
|
473
638
|
|
639
|
+
ListAdapterVersionsRequest.add_member(:adapter_id, Shapes::ShapeRef.new(shape: AdapterId, location_name: "AdapterId"))
|
640
|
+
ListAdapterVersionsRequest.add_member(:after_creation_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "AfterCreationTime"))
|
641
|
+
ListAdapterVersionsRequest.add_member(:before_creation_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "BeforeCreationTime"))
|
642
|
+
ListAdapterVersionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
643
|
+
ListAdapterVersionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
644
|
+
ListAdapterVersionsRequest.struct_class = Types::ListAdapterVersionsRequest
|
645
|
+
|
646
|
+
ListAdapterVersionsResponse.add_member(:adapter_versions, Shapes::ShapeRef.new(shape: AdapterVersionList, location_name: "AdapterVersions"))
|
647
|
+
ListAdapterVersionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
648
|
+
ListAdapterVersionsResponse.struct_class = Types::ListAdapterVersionsResponse
|
649
|
+
|
650
|
+
ListAdaptersRequest.add_member(:after_creation_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "AfterCreationTime"))
|
651
|
+
ListAdaptersRequest.add_member(:before_creation_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "BeforeCreationTime"))
|
652
|
+
ListAdaptersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
653
|
+
ListAdaptersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
654
|
+
ListAdaptersRequest.struct_class = Types::ListAdaptersRequest
|
655
|
+
|
656
|
+
ListAdaptersResponse.add_member(:adapters, Shapes::ShapeRef.new(shape: AdapterList, location_name: "Adapters"))
|
657
|
+
ListAdaptersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
658
|
+
ListAdaptersResponse.struct_class = Types::ListAdaptersResponse
|
659
|
+
|
660
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
661
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
662
|
+
|
663
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
664
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
665
|
+
|
474
666
|
NormalizedValue.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "Value"))
|
475
667
|
NormalizedValue.add_member(:value_type, Shapes::ShapeRef.new(shape: ValueType, location_name: "ValueType"))
|
476
668
|
NormalizedValue.struct_class = Types::NormalizedValue
|
@@ -523,11 +715,15 @@ module Aws::Textract
|
|
523
715
|
|
524
716
|
RelationshipList.member = Shapes::ShapeRef.new(shape: Relationship)
|
525
717
|
|
718
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
719
|
+
|
526
720
|
S3Object.add_member(:bucket, Shapes::ShapeRef.new(shape: S3Bucket, location_name: "Bucket"))
|
527
721
|
S3Object.add_member(:name, Shapes::ShapeRef.new(shape: S3ObjectName, location_name: "Name"))
|
528
722
|
S3Object.add_member(:version, Shapes::ShapeRef.new(shape: S3ObjectVersion, location_name: "Version"))
|
529
723
|
S3Object.struct_class = Types::S3Object
|
530
724
|
|
725
|
+
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
726
|
+
|
531
727
|
SignatureDetection.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
|
532
728
|
SignatureDetection.add_member(:geometry, Shapes::ShapeRef.new(shape: Geometry, location_name: "Geometry"))
|
533
729
|
SignatureDetection.struct_class = Types::SignatureDetection
|
@@ -548,6 +744,7 @@ module Aws::Textract
|
|
548
744
|
StartDocumentAnalysisRequest.add_member(:output_config, Shapes::ShapeRef.new(shape: OutputConfig, location_name: "OutputConfig"))
|
549
745
|
StartDocumentAnalysisRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KMSKeyId, location_name: "KMSKeyId"))
|
550
746
|
StartDocumentAnalysisRequest.add_member(:queries_config, Shapes::ShapeRef.new(shape: QueriesConfig, location_name: "QueriesConfig"))
|
747
|
+
StartDocumentAnalysisRequest.add_member(:adapters_config, Shapes::ShapeRef.new(shape: AdaptersConfig, location_name: "AdaptersConfig"))
|
551
748
|
StartDocumentAnalysisRequest.struct_class = Types::StartDocumentAnalysisRequest
|
552
749
|
|
553
750
|
StartDocumentAnalysisResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
|
@@ -588,6 +785,17 @@ module Aws::Textract
|
|
588
785
|
|
589
786
|
StringList.member = Shapes::ShapeRef.new(shape: String)
|
590
787
|
|
788
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
789
|
+
|
790
|
+
TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
|
791
|
+
TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
|
792
|
+
|
793
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
794
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
|
795
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
796
|
+
|
797
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
798
|
+
|
591
799
|
ThrottlingException.struct_class = Types::ThrottlingException
|
592
800
|
|
593
801
|
UndetectedDocumentTypeList.member = Shapes::ShapeRef.new(shape: NonEmptyString)
|
@@ -599,6 +807,28 @@ module Aws::Textract
|
|
599
807
|
|
600
808
|
UnsupportedDocumentException.struct_class = Types::UnsupportedDocumentException
|
601
809
|
|
810
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
811
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
|
812
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
813
|
+
|
814
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
815
|
+
|
816
|
+
UpdateAdapterRequest.add_member(:adapter_id, Shapes::ShapeRef.new(shape: AdapterId, required: true, location_name: "AdapterId"))
|
817
|
+
UpdateAdapterRequest.add_member(:description, Shapes::ShapeRef.new(shape: AdapterDescription, location_name: "Description"))
|
818
|
+
UpdateAdapterRequest.add_member(:adapter_name, Shapes::ShapeRef.new(shape: AdapterName, location_name: "AdapterName"))
|
819
|
+
UpdateAdapterRequest.add_member(:auto_update, Shapes::ShapeRef.new(shape: AutoUpdate, location_name: "AutoUpdate"))
|
820
|
+
UpdateAdapterRequest.struct_class = Types::UpdateAdapterRequest
|
821
|
+
|
822
|
+
UpdateAdapterResponse.add_member(:adapter_id, Shapes::ShapeRef.new(shape: AdapterId, location_name: "AdapterId"))
|
823
|
+
UpdateAdapterResponse.add_member(:adapter_name, Shapes::ShapeRef.new(shape: AdapterName, location_name: "AdapterName"))
|
824
|
+
UpdateAdapterResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTime"))
|
825
|
+
UpdateAdapterResponse.add_member(:description, Shapes::ShapeRef.new(shape: AdapterDescription, location_name: "Description"))
|
826
|
+
UpdateAdapterResponse.add_member(:feature_types, Shapes::ShapeRef.new(shape: FeatureTypes, location_name: "FeatureTypes"))
|
827
|
+
UpdateAdapterResponse.add_member(:auto_update, Shapes::ShapeRef.new(shape: AutoUpdate, location_name: "AutoUpdate"))
|
828
|
+
UpdateAdapterResponse.struct_class = Types::UpdateAdapterResponse
|
829
|
+
|
830
|
+
ValidationException.struct_class = Types::ValidationException
|
831
|
+
|
602
832
|
Warning.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
|
603
833
|
Warning.add_member(:pages, Shapes::ShapeRef.new(shape: Pages, location_name: "Pages"))
|
604
834
|
Warning.struct_class = Types::Warning
|
@@ -675,6 +905,77 @@ module Aws::Textract
|
|
675
905
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
676
906
|
end)
|
677
907
|
|
908
|
+
api.add_operation(:create_adapter, Seahorse::Model::Operation.new.tap do |o|
|
909
|
+
o.name = "CreateAdapter"
|
910
|
+
o.http_method = "POST"
|
911
|
+
o.http_request_uri = "/"
|
912
|
+
o.input = Shapes::ShapeRef.new(shape: CreateAdapterRequest)
|
913
|
+
o.output = Shapes::ShapeRef.new(shape: CreateAdapterResponse)
|
914
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
915
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
916
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
917
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
918
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
919
|
+
o.errors << Shapes::ShapeRef.new(shape: IdempotentParameterMismatchException)
|
920
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
921
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
922
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
923
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
924
|
+
end)
|
925
|
+
|
926
|
+
api.add_operation(:create_adapter_version, Seahorse::Model::Operation.new.tap do |o|
|
927
|
+
o.name = "CreateAdapterVersion"
|
928
|
+
o.http_method = "POST"
|
929
|
+
o.http_request_uri = "/"
|
930
|
+
o.input = Shapes::ShapeRef.new(shape: CreateAdapterVersionRequest)
|
931
|
+
o.output = Shapes::ShapeRef.new(shape: CreateAdapterVersionResponse)
|
932
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
933
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
|
934
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidKMSKeyException)
|
935
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
936
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
937
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
938
|
+
o.errors << Shapes::ShapeRef.new(shape: IdempotentParameterMismatchException)
|
939
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
940
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
941
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
942
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
943
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
944
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
945
|
+
end)
|
946
|
+
|
947
|
+
api.add_operation(:delete_adapter, Seahorse::Model::Operation.new.tap do |o|
|
948
|
+
o.name = "DeleteAdapter"
|
949
|
+
o.http_method = "POST"
|
950
|
+
o.http_request_uri = "/"
|
951
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteAdapterRequest)
|
952
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteAdapterResponse)
|
953
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
954
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
955
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
956
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
957
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
958
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
959
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
960
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
961
|
+
end)
|
962
|
+
|
963
|
+
api.add_operation(:delete_adapter_version, Seahorse::Model::Operation.new.tap do |o|
|
964
|
+
o.name = "DeleteAdapterVersion"
|
965
|
+
o.http_method = "POST"
|
966
|
+
o.http_request_uri = "/"
|
967
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteAdapterVersionRequest)
|
968
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteAdapterVersionResponse)
|
969
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
970
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
971
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
972
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
973
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
974
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
975
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
976
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
977
|
+
end)
|
978
|
+
|
678
979
|
api.add_operation(:detect_document_text, Seahorse::Model::Operation.new.tap do |o|
|
679
980
|
o.name = "DetectDocumentText"
|
680
981
|
o.http_method = "POST"
|
@@ -692,6 +993,36 @@ module Aws::Textract
|
|
692
993
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
693
994
|
end)
|
694
995
|
|
996
|
+
api.add_operation(:get_adapter, Seahorse::Model::Operation.new.tap do |o|
|
997
|
+
o.name = "GetAdapter"
|
998
|
+
o.http_method = "POST"
|
999
|
+
o.http_request_uri = "/"
|
1000
|
+
o.input = Shapes::ShapeRef.new(shape: GetAdapterRequest)
|
1001
|
+
o.output = Shapes::ShapeRef.new(shape: GetAdapterResponse)
|
1002
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1003
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1004
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
1005
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
1006
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1007
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1008
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1009
|
+
end)
|
1010
|
+
|
1011
|
+
api.add_operation(:get_adapter_version, Seahorse::Model::Operation.new.tap do |o|
|
1012
|
+
o.name = "GetAdapterVersion"
|
1013
|
+
o.http_method = "POST"
|
1014
|
+
o.http_request_uri = "/"
|
1015
|
+
o.input = Shapes::ShapeRef.new(shape: GetAdapterVersionRequest)
|
1016
|
+
o.output = Shapes::ShapeRef.new(shape: GetAdapterVersionResponse)
|
1017
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1018
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1019
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
1020
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
1021
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1022
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1023
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1024
|
+
end)
|
1025
|
+
|
695
1026
|
api.add_operation(:get_document_analysis, Seahorse::Model::Operation.new.tap do |o|
|
696
1027
|
o.name = "GetDocumentAnalysis"
|
697
1028
|
o.http_method = "POST"
|
@@ -772,6 +1103,62 @@ module Aws::Textract
|
|
772
1103
|
o.errors << Shapes::ShapeRef.new(shape: InvalidKMSKeyException)
|
773
1104
|
end)
|
774
1105
|
|
1106
|
+
api.add_operation(:list_adapter_versions, Seahorse::Model::Operation.new.tap do |o|
|
1107
|
+
o.name = "ListAdapterVersions"
|
1108
|
+
o.http_method = "POST"
|
1109
|
+
o.http_request_uri = "/"
|
1110
|
+
o.input = Shapes::ShapeRef.new(shape: ListAdapterVersionsRequest)
|
1111
|
+
o.output = Shapes::ShapeRef.new(shape: ListAdapterVersionsResponse)
|
1112
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1113
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1114
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
1115
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
1116
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1117
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1118
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1119
|
+
o[:pager] = Aws::Pager.new(
|
1120
|
+
limit_key: "max_results",
|
1121
|
+
tokens: {
|
1122
|
+
"next_token" => "next_token"
|
1123
|
+
}
|
1124
|
+
)
|
1125
|
+
end)
|
1126
|
+
|
1127
|
+
api.add_operation(:list_adapters, Seahorse::Model::Operation.new.tap do |o|
|
1128
|
+
o.name = "ListAdapters"
|
1129
|
+
o.http_method = "POST"
|
1130
|
+
o.http_request_uri = "/"
|
1131
|
+
o.input = Shapes::ShapeRef.new(shape: ListAdaptersRequest)
|
1132
|
+
o.output = Shapes::ShapeRef.new(shape: ListAdaptersResponse)
|
1133
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1134
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1135
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
1136
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
1137
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1138
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1139
|
+
o[:pager] = Aws::Pager.new(
|
1140
|
+
limit_key: "max_results",
|
1141
|
+
tokens: {
|
1142
|
+
"next_token" => "next_token"
|
1143
|
+
}
|
1144
|
+
)
|
1145
|
+
end)
|
1146
|
+
|
1147
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
1148
|
+
o.name = "ListTagsForResource"
|
1149
|
+
o.http_method = "POST"
|
1150
|
+
o.http_request_uri = "/"
|
1151
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
1152
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
1153
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1154
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1155
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1156
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
1157
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
1158
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1159
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1160
|
+
end)
|
1161
|
+
|
775
1162
|
api.add_operation(:start_document_analysis, Seahorse::Model::Operation.new.tap do |o|
|
776
1163
|
o.name = "StartDocumentAnalysis"
|
777
1164
|
o.http_method = "POST"
|
@@ -851,6 +1238,53 @@ module Aws::Textract
|
|
851
1238
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
852
1239
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
853
1240
|
end)
|
1241
|
+
|
1242
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
1243
|
+
o.name = "TagResource"
|
1244
|
+
o.http_method = "POST"
|
1245
|
+
o.http_request_uri = "/"
|
1246
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
1247
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
1248
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1249
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1250
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1251
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1252
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
1253
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
1254
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1255
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1256
|
+
end)
|
1257
|
+
|
1258
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
1259
|
+
o.name = "UntagResource"
|
1260
|
+
o.http_method = "POST"
|
1261
|
+
o.http_request_uri = "/"
|
1262
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
1263
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
1264
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1265
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1266
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1267
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
1268
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
1269
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1270
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1271
|
+
end)
|
1272
|
+
|
1273
|
+
api.add_operation(:update_adapter, Seahorse::Model::Operation.new.tap do |o|
|
1274
|
+
o.name = "UpdateAdapter"
|
1275
|
+
o.http_method = "POST"
|
1276
|
+
o.http_request_uri = "/"
|
1277
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateAdapterRequest)
|
1278
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateAdapterResponse)
|
1279
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1280
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1281
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1282
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
|
1283
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
1284
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1285
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1286
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1287
|
+
end)
|
854
1288
|
end
|
855
1289
|
|
856
1290
|
end
|