aws-sdk-textract 1.109.0 → 1.110.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.
@@ -54,7 +54,7 @@ module Aws::Textract
54
54
  autoload :EndpointProvider, 'aws-sdk-textract/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-textract/endpoints'
56
56
 
57
- GEM_VERSION = '1.109.0'
57
+ GEM_VERSION = '1.110.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -184,6 +184,66 @@ module Aws
184
184
  ) -> _CreateAdapterVersionResponseSuccess
185
185
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAdapterVersionResponseSuccess
186
186
 
187
+ interface _CreateBlueprintResponseSuccess
188
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateBlueprintResponse]
189
+ def blueprint_arn: () -> ::String
190
+ end
191
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Textract/Client.html#create_blueprint-instance_method
192
+ def create_blueprint: (
193
+ ?client_request_token: ::String,
194
+ blueprint_name: ::String,
195
+ schema: ::String,
196
+ ?encryption_configuration: {
197
+ kms_key_id: ::String,
198
+ kms_encryption_context: Hash[::String, ::String]?
199
+ },
200
+ ?tags: Hash[::String, ::String]
201
+ ) -> _CreateBlueprintResponseSuccess
202
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateBlueprintResponseSuccess
203
+
204
+ interface _CreateBlueprintVersionResponseSuccess
205
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateBlueprintVersionResponse]
206
+ def blueprint_arn: () -> ::String
207
+ def blueprint_version: () -> ::String
208
+ end
209
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Textract/Client.html#create_blueprint_version-instance_method
210
+ def create_blueprint_version: (
211
+ blueprint_arn: ::String,
212
+ ?client_request_token: ::String
213
+ ) -> _CreateBlueprintVersionResponseSuccess
214
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateBlueprintVersionResponseSuccess
215
+
216
+ interface _CreateProjectResponseSuccess
217
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateProjectResponse]
218
+ def project_arn: () -> ::String
219
+ def status: () -> ("COMPLETED" | "FAILED")
220
+ end
221
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Textract/Client.html#create_project-instance_method
222
+ def create_project: (
223
+ ?client_request_token: ::String,
224
+ project_name: ::String,
225
+ ?project_description: ::String,
226
+ extraction_configuration: Params::extraction_configuration,
227
+ ?generative_configuration: Params::generative_configuration,
228
+ ?custom_configuration: Params::custom_configuration,
229
+ ?splitter_configuration: {
230
+ state: ("ENABLED" | "DISABLED")
231
+ },
232
+ ?sensitive_data_configuration: {
233
+ detection_mode: ("DETECTION" | "DETECTION_AND_REDACTION" | "DISABLED"),
234
+ pii_entities_configuration: {
235
+ pii_entity_types: Array[("ALL" | "ADDRESS" | "AGE" | "NAME" | "EMAIL" | "PHONE" | "USERNAME" | "PASSWORD" | "DRIVER_ID" | "LICENSE_PLATE" | "VEHICLE_IDENTIFICATION_NUMBER" | "CREDIT_DEBIT_CARD_CVV" | "CREDIT_DEBIT_CARD_EXPIRY" | "CREDIT_DEBIT_CARD_NUMBER" | "PIN" | "INTERNATIONAL_BANK_ACCOUNT_NUMBER" | "SWIFT_CODE" | "IP_ADDRESS" | "MAC_ADDRESS" | "URL" | "AWS_ACCESS_KEY" | "AWS_SECRET_KEY" | "US_BANK_ACCOUNT_NUMBER" | "US_BANK_ROUTING_NUMBER" | "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" | "US_PASSPORT_NUMBER" | "US_SOCIAL_SECURITY_NUMBER" | "CA_HEALTH_NUMBER" | "CA_SOCIAL_INSURANCE_NUMBER" | "UK_NATIONAL_HEALTH_SERVICE_NUMBER" | "UK_NATIONAL_INSURANCE_NUMBER" | "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER")],
236
+ redaction_mask_mode: ("PII" | "ENTITY_TYPE")
237
+ }?
238
+ },
239
+ ?encryption_configuration: {
240
+ kms_key_id: ::String,
241
+ kms_encryption_context: Hash[::String, ::String]?
242
+ },
243
+ ?tags: Hash[::String, ::String]
244
+ ) -> _CreateProjectResponseSuccess
245
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateProjectResponseSuccess
246
+
187
247
  interface _DeleteAdapterResponseSuccess
188
248
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteAdapterResponse]
189
249
  end
@@ -203,6 +263,25 @@ module Aws
203
263
  ) -> _DeleteAdapterVersionResponseSuccess
204
264
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteAdapterVersionResponseSuccess
205
265
 
266
+ interface _DeleteBlueprintResponseSuccess
267
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteBlueprintResponse]
268
+ end
269
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Textract/Client.html#delete_blueprint-instance_method
270
+ def delete_blueprint: (
271
+ blueprint_arn: ::String,
272
+ ?blueprint_version: ::String
273
+ ) -> _DeleteBlueprintResponseSuccess
274
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteBlueprintResponseSuccess
275
+
276
+ interface _DeleteProjectResponseSuccess
277
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteProjectResponse]
278
+ end
279
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Textract/Client.html#delete_project-instance_method
280
+ def delete_project: (
281
+ project_arn: ::String
282
+ ) -> _DeleteProjectResponseSuccess
283
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteProjectResponseSuccess
284
+
206
285
  interface _DetectDocumentTextResponseSuccess
207
286
  include ::Seahorse::Client::_ResponseSuccess[Types::DetectDocumentTextResponse]
208
287
  def document_metadata: () -> Types::DocumentMetadata
@@ -252,6 +331,24 @@ module Aws
252
331
  ) -> _GetAdapterVersionResponseSuccess
253
332
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAdapterVersionResponseSuccess
254
333
 
334
+ interface _GetBlueprintResponseSuccess
335
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetBlueprintResponse]
336
+ def blueprint_arn: () -> ::String
337
+ def blueprint_name: () -> ::String
338
+ def blueprint_version: () -> ::String
339
+ def schema: () -> ::String
340
+ def kms_key_id: () -> ::String
341
+ def kms_encryption_context: () -> ::Hash[::String, ::String]
342
+ def creation_time: () -> ::Time
343
+ def last_modified_time: () -> ::Time
344
+ end
345
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Textract/Client.html#get_blueprint-instance_method
346
+ def get_blueprint: (
347
+ blueprint_arn: ::String,
348
+ ?blueprint_version: ::String
349
+ ) -> _GetBlueprintResponseSuccess
350
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetBlueprintResponseSuccess
351
+
255
352
  interface _GetDocumentAnalysisResponseSuccess
256
353
  include ::Seahorse::Client::_ResponseSuccess[Types::GetDocumentAnalysisResponse]
257
354
  def document_metadata: () -> Types::DocumentMetadata
@@ -270,6 +367,19 @@ module Aws
270
367
  ) -> _GetDocumentAnalysisResponseSuccess
271
368
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDocumentAnalysisResponseSuccess
272
369
 
370
+ interface _GetDocumentInsightsResponseSuccess
371
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetDocumentInsightsResponse]
372
+ def status: () -> ("IN_PROGRESS" | "SUCCEEDED" | "FAILED" | "PARTIAL_SUCCESS")
373
+ def output_configuration: () -> Types::OutputConfiguration
374
+ def error_type: () -> ::String
375
+ def error_message: () -> ::String
376
+ end
377
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Textract/Client.html#get_document_insights-instance_method
378
+ def get_document_insights: (
379
+ job_arn: ::String
380
+ ) -> _GetDocumentInsightsResponseSuccess
381
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDocumentInsightsResponseSuccess
382
+
273
383
  interface _GetDocumentTextDetectionResponseSuccess
274
384
  include ::Seahorse::Client::_ResponseSuccess[Types::GetDocumentTextDetectionResponse]
275
385
  def document_metadata: () -> Types::DocumentMetadata
@@ -339,6 +449,27 @@ module Aws
339
449
  ) -> _GetLendingAnalysisSummaryResponseSuccess
340
450
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetLendingAnalysisSummaryResponseSuccess
341
451
 
452
+ interface _GetProjectResponseSuccess
453
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetProjectResponse]
454
+ def project_arn: () -> ::String
455
+ def project_name: () -> ::String
456
+ def project_description: () -> ::String
457
+ def status: () -> ("COMPLETED" | "FAILED")
458
+ def extraction_configuration: () -> Types::ExtractionConfiguration
459
+ def generative_configuration: () -> Types::GenerativeConfiguration
460
+ def custom_configuration: () -> Types::CustomConfiguration
461
+ def splitter_configuration: () -> Types::SplitterConfiguration
462
+ def sensitive_data_configuration: () -> Types::SensitiveDataConfiguration
463
+ def encryption_configuration: () -> Types::EncryptionConfiguration
464
+ def creation_time: () -> ::Time
465
+ def last_modified_time: () -> ::Time
466
+ end
467
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Textract/Client.html#get_project-instance_method
468
+ def get_project: (
469
+ project_arn: ::String
470
+ ) -> _GetProjectResponseSuccess
471
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetProjectResponseSuccess
472
+
342
473
  interface _ListAdapterVersionsResponseSuccess
343
474
  include ::Seahorse::Client::_ResponseSuccess[Types::ListAdapterVersionsResponse]
344
475
  def adapter_versions: () -> ::Array[Types::AdapterVersionOverview]
@@ -368,6 +499,39 @@ module Aws
368
499
  ) -> _ListAdaptersResponseSuccess
369
500
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAdaptersResponseSuccess
370
501
 
502
+ interface _ListBlueprintsResponseSuccess
503
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListBlueprintsResponse]
504
+ def blueprints: () -> ::Array[Types::BlueprintSummary]
505
+ def next_token: () -> ::String
506
+ end
507
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Textract/Client.html#list_blueprints-instance_method
508
+ def list_blueprints: (
509
+ ?max_results: ::Integer,
510
+ ?next_token: ::String,
511
+ ?blueprint_arn: ::String,
512
+ ?project_filter: {
513
+ project_arn: ::String
514
+ },
515
+ ?resource_owner: ("ACCOUNT" | "SERVICE")
516
+ ) -> _ListBlueprintsResponseSuccess
517
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListBlueprintsResponseSuccess
518
+
519
+ interface _ListProjectsResponseSuccess
520
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListProjectsResponse]
521
+ def projects: () -> ::Array[Types::ProjectSummary]
522
+ def next_token: () -> ::String
523
+ end
524
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Textract/Client.html#list_projects-instance_method
525
+ def list_projects: (
526
+ ?max_results: ::Integer,
527
+ ?next_token: ::String,
528
+ ?blueprint_filter: {
529
+ blueprint_arn: ::String,
530
+ blueprint_version: ::String?
531
+ }
532
+ ) -> _ListProjectsResponseSuccess
533
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListProjectsResponseSuccess
534
+
371
535
  interface _ListTagsForResourceResponseSuccess
372
536
  include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
373
537
  def tags: () -> ::Hash[::String, ::String]
@@ -424,6 +588,38 @@ module Aws
424
588
  ) -> _StartDocumentAnalysisResponseSuccess
425
589
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartDocumentAnalysisResponseSuccess
426
590
 
591
+ interface _StartDocumentInsightsResponseSuccess
592
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartDocumentInsightsResponse]
593
+ def job_arn: () -> ::String
594
+ end
595
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Textract/Client.html#start_document_insights-instance_method
596
+ def start_document_insights: (
597
+ input_configuration: {
598
+ s3_uri: ::String
599
+ },
600
+ output_configuration: {
601
+ s3_uri: ::String
602
+ },
603
+ ?project_arn: ::String,
604
+ ?blueprints: Array[
605
+ {
606
+ blueprint_arn: ::String,
607
+ blueprint_version: ::String?
608
+ }
609
+ ],
610
+ ?encryption_configuration: {
611
+ kms_key_id: ::String,
612
+ kms_encryption_context: Hash[::String, ::String]?
613
+ },
614
+ ?notification_configuration: {
615
+ event_bridge_configuration: {
616
+ state: ("ENABLED" | "DISABLED")
617
+ }
618
+ },
619
+ ?tags: Hash[::String, ::String]
620
+ ) -> _StartDocumentInsightsResponseSuccess
621
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartDocumentInsightsResponseSuccess
622
+
427
623
  interface _StartDocumentTextDetectionResponseSuccess
428
624
  include ::Seahorse::Client::_ResponseSuccess[Types::StartDocumentTextDetectionResponse]
429
625
  def job_id: () -> ::String
@@ -542,6 +738,50 @@ module Aws
542
738
  ?auto_update: ("ENABLED" | "DISABLED")
543
739
  ) -> _UpdateAdapterResponseSuccess
544
740
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateAdapterResponseSuccess
741
+
742
+ interface _UpdateBlueprintResponseSuccess
743
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateBlueprintResponse]
744
+ def blueprint_arn: () -> ::String
745
+ end
746
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Textract/Client.html#update_blueprint-instance_method
747
+ def update_blueprint: (
748
+ blueprint_arn: ::String,
749
+ ?schema: ::String,
750
+ ?encryption_configuration: {
751
+ kms_key_id: ::String,
752
+ kms_encryption_context: Hash[::String, ::String]?
753
+ }
754
+ ) -> _UpdateBlueprintResponseSuccess
755
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateBlueprintResponseSuccess
756
+
757
+ interface _UpdateProjectResponseSuccess
758
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateProjectResponse]
759
+ def project_arn: () -> ::String
760
+ def status: () -> ("COMPLETED" | "FAILED")
761
+ end
762
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Textract/Client.html#update_project-instance_method
763
+ def update_project: (
764
+ project_arn: ::String,
765
+ ?project_description: ::String,
766
+ ?extraction_configuration: Params::extraction_configuration,
767
+ ?generative_configuration: Params::generative_configuration,
768
+ ?custom_configuration: Params::custom_configuration,
769
+ ?splitter_configuration: {
770
+ state: ("ENABLED" | "DISABLED")
771
+ },
772
+ ?sensitive_data_configuration: {
773
+ detection_mode: ("DETECTION" | "DETECTION_AND_REDACTION" | "DISABLED"),
774
+ pii_entities_configuration: {
775
+ pii_entity_types: Array[("ALL" | "ADDRESS" | "AGE" | "NAME" | "EMAIL" | "PHONE" | "USERNAME" | "PASSWORD" | "DRIVER_ID" | "LICENSE_PLATE" | "VEHICLE_IDENTIFICATION_NUMBER" | "CREDIT_DEBIT_CARD_CVV" | "CREDIT_DEBIT_CARD_EXPIRY" | "CREDIT_DEBIT_CARD_NUMBER" | "PIN" | "INTERNATIONAL_BANK_ACCOUNT_NUMBER" | "SWIFT_CODE" | "IP_ADDRESS" | "MAC_ADDRESS" | "URL" | "AWS_ACCESS_KEY" | "AWS_SECRET_KEY" | "US_BANK_ACCOUNT_NUMBER" | "US_BANK_ROUTING_NUMBER" | "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" | "US_PASSPORT_NUMBER" | "US_SOCIAL_SECURITY_NUMBER" | "CA_HEALTH_NUMBER" | "CA_SOCIAL_INSURANCE_NUMBER" | "UK_NATIONAL_HEALTH_SERVICE_NUMBER" | "UK_NATIONAL_INSURANCE_NUMBER" | "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER")],
776
+ redaction_mask_mode: ("PII" | "ENTITY_TYPE")
777
+ }?
778
+ },
779
+ ?encryption_configuration: {
780
+ kms_key_id: ::String,
781
+ kms_encryption_context: Hash[::String, ::String]?
782
+ }
783
+ ) -> _UpdateProjectResponseSuccess
784
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateProjectResponseSuccess
545
785
  end
546
786
  end
547
787
  end
data/sig/params.rbs CHANGED
@@ -17,6 +17,49 @@ module Aws
17
17
  }?
18
18
  }
19
19
 
20
+ type output_format = {
21
+ additional_file_format: {
22
+ state: ("ENABLED" | "DISABLED")
23
+ },
24
+ text_format: {
25
+ types: Array[("PLAIN_TEXT" | "MARKDOWN" | "HTML" | "CSV")]?
26
+ }
27
+ }
28
+
29
+ type extraction_configuration = {
30
+ bounding_box: {
31
+ state: ("ENABLED" | "DISABLED")
32
+ },
33
+ granularity: {
34
+ types: Array[("DOCUMENT" | "PAGE" | "ELEMENT" | "WORD" | "LINE")]?
35
+ },
36
+ output_format: Params::output_format
37
+ }
38
+
39
+ type generative_configuration = {
40
+ summarization: {
41
+ state: ("ENABLED" | "DISABLED")
42
+ }?,
43
+ figure_caption: {
44
+ state: ("ENABLED" | "DISABLED")
45
+ }?
46
+ }
47
+
48
+ type custom_configuration = {
49
+ blueprints: Array[
50
+ {
51
+ blueprint_arn: ::String,
52
+ blueprint_version: ::String?
53
+ }
54
+ ],
55
+ fallback_blueprints: Array[
56
+ {
57
+ blueprint_arn: ::String,
58
+ blueprint_version: ::String?
59
+ }
60
+ ]?
61
+ }
62
+
20
63
  end
21
64
  end
22
65
  end