aws-sdk-textract 1.15.0 → 1.20.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 537a7b71040220ade1bbf5f72acf3fc390e1d46fa6b1d55f8d87dd9fd0f735c0
4
- data.tar.gz: e051eab2549faf7ac255dd7510ee8d26802899c346c78cb2818cf124fd53b3b4
3
+ metadata.gz: 4289bd12d1f34c6d4f650ef58e399a212c79e5c8d17c0fa1abe3af34cb89de0d
4
+ data.tar.gz: cec3926f93dc07aa2695437c7a4b4dc1d1286aa29913b3026e9398c94b5a2e2e
5
5
  SHA512:
6
- metadata.gz: b7be45341515fea42830bae014054b3ace3c5bbfa8d9529b2d4c21cf6d1ca676e2e2d1bee7eacb3570e2bdac3dcfeb317a0660440552b3715cf1abdea478110d
7
- data.tar.gz: 8e7b013f8f1bb864312f7cdd48709fc9ff34c45350e6e112a10936b428a67ca38a2f94189aea2400f4451453c84a015f68936fd9757be72275e099ca89d6bffe
6
+ metadata.gz: 8eb9caa12f5fc731cb54a83ac2a4479ad58d912fc2f0058bc10b901a6469770f4584f1d525b4c95b82b4a2892292a7b93385a5fe683bf56bab20d0f35b6789f9
7
+ data.tar.gz: 00e51b875b400172b383b35a4cc7e442e5c4bc522203b5310692eaffe01b9165cac74531f09483019cf7a01864381e3c5118ce7d3d9cb2f2ec5f160fe32008c8
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -5,6 +7,7 @@
5
7
  #
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
10
+
8
11
  require 'aws-sdk-core'
9
12
  require 'aws-sigv4'
10
13
 
@@ -42,9 +45,9 @@ require_relative 'aws-sdk-textract/customizations'
42
45
  #
43
46
  # See {Errors} for more information.
44
47
  #
45
- # @service
48
+ # @!group service
46
49
  module Aws::Textract
47
50
 
48
- GEM_VERSION = '1.15.0'
51
+ GEM_VERSION = '1.20.0'
49
52
 
50
53
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
29
32
 
@@ -69,6 +72,7 @@ module Aws::Textract
69
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
72
76
  add_plugin(Aws::Plugins::SignatureV4)
73
77
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
74
78
 
@@ -81,13 +85,28 @@ module Aws::Textract
81
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
82
86
  # credentials.
83
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
84
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
85
103
  # from an EC2 IMDS on an EC2 instance.
86
104
  #
87
- # * `Aws::SharedCredentials` - Used for loading credentials from a
88
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
89
107
  #
90
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
91
110
  #
92
111
  # When `:credentials` are not configured directly, the following
93
112
  # locations will be searched for credentials:
@@ -97,10 +116,10 @@ module Aws::Textract
97
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
98
117
  # * `~/.aws/credentials`
99
118
  # * `~/.aws/config`
100
- # * EC2 IMDS instance profile - When used by default, the timeouts are
101
- # very aggressive. Construct and pass an instance of
102
- # `Aws::InstanceProfileCredentails` to enable retries and extended
103
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
104
123
  #
105
124
  # @option options [required, String] :region
106
125
  # The AWS region to connect to. The configured `:region` is
@@ -161,7 +180,7 @@ module Aws::Textract
161
180
  # @option options [String] :endpoint
162
181
  # The client endpoint is normally constructed from the `:region`
163
182
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be a valid HTTP(S) URI.
183
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
184
  #
166
185
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
186
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -425,7 +444,7 @@ module Aws::Textract
425
444
  # resp.blocks[0].geometry.polygon[0].y #=> Float
426
445
  # resp.blocks[0].id #=> String
427
446
  # resp.blocks[0].relationships #=> Array
428
- # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD"
447
+ # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES"
429
448
  # resp.blocks[0].relationships[0].ids #=> Array
430
449
  # resp.blocks[0].relationships[0].ids[0] #=> String
431
450
  # resp.blocks[0].entity_types #=> Array
@@ -515,7 +534,7 @@ module Aws::Textract
515
534
  # resp.blocks[0].geometry.polygon[0].y #=> Float
516
535
  # resp.blocks[0].id #=> String
517
536
  # resp.blocks[0].relationships #=> Array
518
- # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD"
537
+ # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES"
519
538
  # resp.blocks[0].relationships[0].ids #=> Array
520
539
  # resp.blocks[0].relationships[0].ids[0] #=> String
521
540
  # resp.blocks[0].entity_types #=> Array
@@ -641,7 +660,7 @@ module Aws::Textract
641
660
  # resp.blocks[0].geometry.polygon[0].y #=> Float
642
661
  # resp.blocks[0].id #=> String
643
662
  # resp.blocks[0].relationships #=> Array
644
- # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD"
663
+ # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES"
645
664
  # resp.blocks[0].relationships[0].ids #=> Array
646
665
  # resp.blocks[0].relationships[0].ids[0] #=> String
647
666
  # resp.blocks[0].entity_types #=> Array
@@ -758,7 +777,7 @@ module Aws::Textract
758
777
  # resp.blocks[0].geometry.polygon[0].y #=> Float
759
778
  # resp.blocks[0].id #=> String
760
779
  # resp.blocks[0].relationships #=> Array
761
- # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD"
780
+ # resp.blocks[0].relationships[0].type #=> String, one of "VALUE", "CHILD", "COMPLEX_FEATURES"
762
781
  # resp.blocks[0].relationships[0].ids #=> Array
763
782
  # resp.blocks[0].relationships[0].ids[0] #=> String
764
783
  # resp.blocks[0].entity_types #=> Array
@@ -838,6 +857,11 @@ module Aws::Textract
838
857
  # The Amazon SNS topic ARN that you want Amazon Textract to publish the
839
858
  # completion status of the operation to.
840
859
  #
860
+ # @option params [Types::OutputConfig] :output_config
861
+ # Sets if the output will go to a customer defined bucket. By default,
862
+ # Amazon Textract will save the results internally to be accessed by the
863
+ # GetDocumentAnalysis operation.
864
+ #
841
865
  # @return [Types::StartDocumentAnalysisResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
842
866
  #
843
867
  # * {Types::StartDocumentAnalysisResponse#job_id #job_id} => String
@@ -859,6 +883,10 @@ module Aws::Textract
859
883
  # sns_topic_arn: "SNSTopicArn", # required
860
884
  # role_arn: "RoleArn", # required
861
885
  # },
886
+ # output_config: {
887
+ # s3_bucket: "S3Bucket", # required
888
+ # s3_prefix: "S3ObjectName",
889
+ # },
862
890
  # })
863
891
  #
864
892
  # @example Response structure
@@ -924,6 +952,11 @@ module Aws::Textract
924
952
  # The Amazon SNS topic ARN that you want Amazon Textract to publish the
925
953
  # completion status of the operation to.
926
954
  #
955
+ # @option params [Types::OutputConfig] :output_config
956
+ # Sets if the output will go to a customer defined bucket. By default
957
+ # Amazon Textract will save the results internally to be accessed with
958
+ # the GetDocumentTextDetection operation.
959
+ #
927
960
  # @return [Types::StartDocumentTextDetectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
928
961
  #
929
962
  # * {Types::StartDocumentTextDetectionResponse#job_id #job_id} => String
@@ -944,6 +977,10 @@ module Aws::Textract
944
977
  # sns_topic_arn: "SNSTopicArn", # required
945
978
  # role_arn: "RoleArn", # required
946
979
  # },
980
+ # output_config: {
981
+ # s3_bucket: "S3Bucket", # required
982
+ # s3_prefix: "S3ObjectName",
983
+ # },
947
984
  # })
948
985
  #
949
986
  # @example Response structure
@@ -972,7 +1009,7 @@ module Aws::Textract
972
1009
  params: params,
973
1010
  config: config)
974
1011
  context[:gem_name] = 'aws-sdk-textract'
975
- context[:gem_version] = '1.15.0'
1012
+ context[:gem_version] = '1.20.0'
976
1013
  Seahorse::Client::Request.new(handlers, context)
977
1014
  end
978
1015
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -63,6 +65,7 @@ module Aws::Textract
63
65
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
64
66
  NonEmptyString = Shapes::StringShape.new(name: 'NonEmptyString')
65
67
  NotificationChannel = Shapes::StructureShape.new(name: 'NotificationChannel')
68
+ OutputConfig = Shapes::StructureShape.new(name: 'OutputConfig')
66
69
  Pages = Shapes::ListShape.new(name: 'Pages')
67
70
  PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
68
71
  Percent = Shapes::FloatShape.new(name: 'Percent')
@@ -225,6 +228,10 @@ module Aws::Textract
225
228
  NotificationChannel.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "RoleArn"))
226
229
  NotificationChannel.struct_class = Types::NotificationChannel
227
230
 
231
+ OutputConfig.add_member(:s3_bucket, Shapes::ShapeRef.new(shape: S3Bucket, required: true, location_name: "S3Bucket"))
232
+ OutputConfig.add_member(:s3_prefix, Shapes::ShapeRef.new(shape: S3ObjectName, location_name: "S3Prefix"))
233
+ OutputConfig.struct_class = Types::OutputConfig
234
+
228
235
  Pages.member = Shapes::ShapeRef.new(shape: UInteger)
229
236
 
230
237
  Point.add_member(:x, Shapes::ShapeRef.new(shape: Float, location_name: "X"))
@@ -251,6 +258,7 @@ module Aws::Textract
251
258
  StartDocumentAnalysisRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken"))
252
259
  StartDocumentAnalysisRequest.add_member(:job_tag, Shapes::ShapeRef.new(shape: JobTag, location_name: "JobTag"))
253
260
  StartDocumentAnalysisRequest.add_member(:notification_channel, Shapes::ShapeRef.new(shape: NotificationChannel, location_name: "NotificationChannel"))
261
+ StartDocumentAnalysisRequest.add_member(:output_config, Shapes::ShapeRef.new(shape: OutputConfig, location_name: "OutputConfig"))
254
262
  StartDocumentAnalysisRequest.struct_class = Types::StartDocumentAnalysisRequest
255
263
 
256
264
  StartDocumentAnalysisResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
@@ -260,6 +268,7 @@ module Aws::Textract
260
268
  StartDocumentTextDetectionRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken"))
261
269
  StartDocumentTextDetectionRequest.add_member(:job_tag, Shapes::ShapeRef.new(shape: JobTag, location_name: "JobTag"))
262
270
  StartDocumentTextDetectionRequest.add_member(:notification_channel, Shapes::ShapeRef.new(shape: NotificationChannel, location_name: "NotificationChannel"))
271
+ StartDocumentTextDetectionRequest.add_member(:output_config, Shapes::ShapeRef.new(shape: OutputConfig, location_name: "OutputConfig"))
263
272
  StartDocumentTextDetectionRequest.struct_class = Types::StartDocumentTextDetectionRequest
264
273
 
265
274
  StartDocumentTextDetectionResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
@@ -340,6 +349,7 @@ module Aws::Textract
340
349
  o.errors << Shapes::ShapeRef.new(shape: InvalidJobIdException)
341
350
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
342
351
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
352
+ o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
343
353
  end)
344
354
 
345
355
  api.add_operation(:get_document_text_detection, Seahorse::Model::Operation.new.tap do |o|
@@ -354,6 +364,7 @@ module Aws::Textract
354
364
  o.errors << Shapes::ShapeRef.new(shape: InvalidJobIdException)
355
365
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
356
366
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
367
+ o.errors << Shapes::ShapeRef.new(shape: InvalidS3ObjectException)
357
368
  end)
358
369
 
359
370
  api.add_operation(:start_document_analysis, Seahorse::Model::Operation.new.tap do |o|
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -8,7 +10,8 @@
8
10
  module Aws::Textract
9
11
  module Types
10
12
 
11
- # You aren't authorized to perform the action.
13
+ # You aren't authorized to perform the action. Use the Amazon Resource
14
+ # Name (ARN) of an authorized user or IAM role to perform the operation.
12
15
  #
13
16
  # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/AccessDeniedException AWS API Documentation
14
17
  #
@@ -68,6 +71,7 @@ module Aws::Textract
68
71
  :document,
69
72
  :feature_types,
70
73
  :human_loop_config)
74
+ SENSITIVE = []
71
75
  include Aws::Structure
72
76
  end
73
77
 
@@ -95,10 +99,12 @@ module Aws::Textract
95
99
  :blocks,
96
100
  :human_loop_activation_output,
97
101
  :analyze_document_model_version)
102
+ SENSITIVE = []
98
103
  include Aws::Structure
99
104
  end
100
105
 
101
- # Amazon Textract isn't able to read the document.
106
+ # Amazon Textract isn't able to read the document. For more information
107
+ # on the document limits in Amazon Textract, see limits.
102
108
  #
103
109
  # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/BadDocumentException AWS API Documentation
104
110
  #
@@ -269,6 +275,7 @@ module Aws::Textract
269
275
  :entity_types,
270
276
  :selection_status,
271
277
  :page)
278
+ SENSITIVE = []
272
279
  include Aws::Structure
273
280
  end
274
281
 
@@ -316,6 +323,7 @@ module Aws::Textract
316
323
  :height,
317
324
  :left,
318
325
  :top)
326
+ SENSITIVE = []
319
327
  include Aws::Structure
320
328
  end
321
329
 
@@ -348,6 +356,7 @@ module Aws::Textract
348
356
  #
349
357
  class DetectDocumentTextRequest < Struct.new(
350
358
  :document)
359
+ SENSITIVE = []
351
360
  include Aws::Structure
352
361
  end
353
362
 
@@ -370,6 +379,7 @@ module Aws::Textract
370
379
  :document_metadata,
371
380
  :blocks,
372
381
  :detect_document_text_model_version)
382
+ SENSITIVE = []
373
383
  include Aws::Structure
374
384
  end
375
385
 
@@ -428,6 +438,7 @@ module Aws::Textract
428
438
  class Document < Struct.new(
429
439
  :bytes,
430
440
  :s3_object)
441
+ SENSITIVE = []
431
442
  include Aws::Structure
432
443
  end
433
444
 
@@ -456,6 +467,7 @@ module Aws::Textract
456
467
  #
457
468
  class DocumentLocation < Struct.new(
458
469
  :s3_object)
470
+ SENSITIVE = []
459
471
  include Aws::Structure
460
472
  end
461
473
 
@@ -469,6 +481,7 @@ module Aws::Textract
469
481
  #
470
482
  class DocumentMetadata < Struct.new(
471
483
  :pages)
484
+ SENSITIVE = []
472
485
  include Aws::Structure
473
486
  end
474
487
 
@@ -499,6 +512,7 @@ module Aws::Textract
499
512
  class Geometry < Struct.new(
500
513
  :bounding_box,
501
514
  :polygon)
515
+ SENSITIVE = []
502
516
  include Aws::Structure
503
517
  end
504
518
 
@@ -537,6 +551,7 @@ module Aws::Textract
537
551
  :job_id,
538
552
  :max_results,
539
553
  :next_token)
554
+ SENSITIVE = []
540
555
  include Aws::Structure
541
556
  end
542
557
 
@@ -566,7 +581,8 @@ module Aws::Textract
566
581
  # @return [Array<Types::Warning>]
567
582
  #
568
583
  # @!attribute [rw] status_message
569
- # The current status of an asynchronous document-analysis operation.
584
+ # Returns if the detection job could not be completed. Contains
585
+ # explanation for what error occured.
570
586
  # @return [String]
571
587
  #
572
588
  # @!attribute [rw] analyze_document_model_version
@@ -582,6 +598,7 @@ module Aws::Textract
582
598
  :warnings,
583
599
  :status_message,
584
600
  :analyze_document_model_version)
601
+ SENSITIVE = []
585
602
  include Aws::Structure
586
603
  end
587
604
 
@@ -620,6 +637,7 @@ module Aws::Textract
620
637
  :job_id,
621
638
  :max_results,
622
639
  :next_token)
640
+ SENSITIVE = []
623
641
  include Aws::Structure
624
642
  end
625
643
 
@@ -649,8 +667,8 @@ module Aws::Textract
649
667
  # @return [Array<Types::Warning>]
650
668
  #
651
669
  # @!attribute [rw] status_message
652
- # The current status of an asynchronous text-detection operation for
653
- # the document.
670
+ # Returns if the detection job could not be completed. Contains
671
+ # explanation for what error occured.
654
672
  # @return [String]
655
673
  #
656
674
  # @!attribute [rw] detect_document_text_model_version
@@ -666,6 +684,7 @@ module Aws::Textract
666
684
  :warnings,
667
685
  :status_message,
668
686
  :detect_document_text_model_version)
687
+ SENSITIVE = []
669
688
  include Aws::Structure
670
689
  end
671
690
 
@@ -691,6 +710,7 @@ module Aws::Textract
691
710
  :human_loop_arn,
692
711
  :human_loop_activation_reasons,
693
712
  :human_loop_activation_conditions_evaluation_results)
713
+ SENSITIVE = []
694
714
  include Aws::Structure
695
715
  end
696
716
 
@@ -728,6 +748,7 @@ module Aws::Textract
728
748
  :human_loop_name,
729
749
  :flow_definition_arn,
730
750
  :data_attributes)
751
+ SENSITIVE = []
731
752
  include Aws::Structure
732
753
  end
733
754
 
@@ -751,6 +772,7 @@ module Aws::Textract
751
772
  #
752
773
  class HumanLoopDataAttributes < Struct.new(
753
774
  :content_classifiers)
775
+ SENSITIVE = []
754
776
  include Aws::Structure
755
777
  end
756
778
 
@@ -758,12 +780,15 @@ module Aws::Textract
758
780
  # loop workflows available
759
781
  #
760
782
  # @!attribute [rw] resource_type
783
+ # The resource type.
761
784
  # @return [String]
762
785
  #
763
786
  # @!attribute [rw] quota_code
787
+ # The quota code.
764
788
  # @return [String]
765
789
  #
766
790
  # @!attribute [rw] service_code
791
+ # The service code.
767
792
  # @return [String]
768
793
  #
769
794
  # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/HumanLoopQuotaExceededException AWS API Documentation
@@ -772,6 +797,7 @@ module Aws::Textract
772
797
  :resource_type,
773
798
  :quota_code,
774
799
  :service_code)
800
+ SENSITIVE = []
775
801
  include Aws::Structure
776
802
  end
777
803
 
@@ -807,7 +833,13 @@ module Aws::Textract
807
833
  class InvalidParameterException < Aws::EmptyStructure; end
808
834
 
809
835
  # Amazon Textract is unable to access the S3 object that's specified in
810
- # the request.
836
+ # the request. for more information, [Configure Access to Amazon S3][1]
837
+ # For troubleshooting information, see [Troubleshooting Amazon S3][2]
838
+ #
839
+ #
840
+ #
841
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html
842
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html
811
843
  #
812
844
  # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/InvalidS3ObjectException AWS API Documentation
813
845
  #
@@ -851,6 +883,36 @@ module Aws::Textract
851
883
  class NotificationChannel < Struct.new(
852
884
  :sns_topic_arn,
853
885
  :role_arn)
886
+ SENSITIVE = []
887
+ include Aws::Structure
888
+ end
889
+
890
+ # Sets whether or not your output will go to a user created bucket. Used
891
+ # to set the name of the bucket, and the prefix on the output file.
892
+ #
893
+ # @note When making an API call, you may pass OutputConfig
894
+ # data as a hash:
895
+ #
896
+ # {
897
+ # s3_bucket: "S3Bucket", # required
898
+ # s3_prefix: "S3ObjectName",
899
+ # }
900
+ #
901
+ # @!attribute [rw] s3_bucket
902
+ # The name of the bucket your output will go to.
903
+ # @return [String]
904
+ #
905
+ # @!attribute [rw] s3_prefix
906
+ # The prefix of the object key that the output will be saved to. When
907
+ # not enabled, the prefix will be “textract\_output".
908
+ # @return [String]
909
+ #
910
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/OutputConfig AWS API Documentation
911
+ #
912
+ class OutputConfig < Struct.new(
913
+ :s3_bucket,
914
+ :s3_prefix)
915
+ SENSITIVE = []
854
916
  include Aws::Structure
855
917
  end
856
918
 
@@ -878,6 +940,7 @@ module Aws::Textract
878
940
  class Point < Struct.new(
879
941
  :x,
880
942
  :y)
943
+ SENSITIVE = []
881
944
  include Aws::Structure
882
945
  end
883
946
 
@@ -901,7 +964,8 @@ module Aws::Textract
901
964
  # relationship of type VALUE is a list that contains the ID of the
902
965
  # VALUE block that's associated with the KEY of a key-value pair. A
903
966
  # relationship of type CHILD is a list of IDs that identify WORD
904
- # blocks.
967
+ # blocks in the case of lines Cell blocks in the case of Tables, and
968
+ # WORD blocks in the case of Selection Elements.
905
969
  # @return [String]
906
970
  #
907
971
  # @!attribute [rw] ids
@@ -914,6 +978,7 @@ module Aws::Textract
914
978
  class Relationship < Struct.new(
915
979
  :type,
916
980
  :ids)
981
+ SENSITIVE = []
917
982
  include Aws::Structure
918
983
  end
919
984
 
@@ -955,6 +1020,7 @@ module Aws::Textract
955
1020
  :bucket,
956
1021
  :name,
957
1022
  :version)
1023
+ SENSITIVE = []
958
1024
  include Aws::Structure
959
1025
  end
960
1026
 
@@ -976,6 +1042,10 @@ module Aws::Textract
976
1042
  # sns_topic_arn: "SNSTopicArn", # required
977
1043
  # role_arn: "RoleArn", # required
978
1044
  # },
1045
+ # output_config: {
1046
+ # s3_bucket: "S3Bucket", # required
1047
+ # s3_prefix: "S3ObjectName",
1048
+ # },
979
1049
  # }
980
1050
  #
981
1051
  # @!attribute [rw] document_location
@@ -1017,6 +1087,12 @@ module Aws::Textract
1017
1087
  # the completion status of the operation to.
1018
1088
  # @return [Types::NotificationChannel]
1019
1089
  #
1090
+ # @!attribute [rw] output_config
1091
+ # Sets if the output will go to a customer defined bucket. By default,
1092
+ # Amazon Textract will save the results internally to be accessed by
1093
+ # the GetDocumentAnalysis operation.
1094
+ # @return [Types::OutputConfig]
1095
+ #
1020
1096
  # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/StartDocumentAnalysisRequest AWS API Documentation
1021
1097
  #
1022
1098
  class StartDocumentAnalysisRequest < Struct.new(
@@ -1024,7 +1100,9 @@ module Aws::Textract
1024
1100
  :feature_types,
1025
1101
  :client_request_token,
1026
1102
  :job_tag,
1027
- :notification_channel)
1103
+ :notification_channel,
1104
+ :output_config)
1105
+ SENSITIVE = []
1028
1106
  include Aws::Structure
1029
1107
  end
1030
1108
 
@@ -1038,6 +1116,7 @@ module Aws::Textract
1038
1116
  #
1039
1117
  class StartDocumentAnalysisResponse < Struct.new(
1040
1118
  :job_id)
1119
+ SENSITIVE = []
1041
1120
  include Aws::Structure
1042
1121
  end
1043
1122
 
@@ -1058,6 +1137,10 @@ module Aws::Textract
1058
1137
  # sns_topic_arn: "SNSTopicArn", # required
1059
1138
  # role_arn: "RoleArn", # required
1060
1139
  # },
1140
+ # output_config: {
1141
+ # s3_bucket: "S3Bucket", # required
1142
+ # s3_prefix: "S3ObjectName",
1143
+ # },
1061
1144
  # }
1062
1145
  #
1063
1146
  # @!attribute [rw] document_location
@@ -1089,13 +1172,21 @@ module Aws::Textract
1089
1172
  # the completion status of the operation to.
1090
1173
  # @return [Types::NotificationChannel]
1091
1174
  #
1175
+ # @!attribute [rw] output_config
1176
+ # Sets if the output will go to a customer defined bucket. By default
1177
+ # Amazon Textract will save the results internally to be accessed with
1178
+ # the GetDocumentTextDetection operation.
1179
+ # @return [Types::OutputConfig]
1180
+ #
1092
1181
  # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/StartDocumentTextDetectionRequest AWS API Documentation
1093
1182
  #
1094
1183
  class StartDocumentTextDetectionRequest < Struct.new(
1095
1184
  :document_location,
1096
1185
  :client_request_token,
1097
1186
  :job_tag,
1098
- :notification_channel)
1187
+ :notification_channel,
1188
+ :output_config)
1189
+ SENSITIVE = []
1099
1190
  include Aws::Structure
1100
1191
  end
1101
1192
 
@@ -1110,6 +1201,7 @@ module Aws::Textract
1110
1201
  #
1111
1202
  class StartDocumentTextDetectionResponse < Struct.new(
1112
1203
  :job_id)
1204
+ SENSITIVE = []
1113
1205
  include Aws::Structure
1114
1206
  end
1115
1207
 
@@ -1145,6 +1237,7 @@ module Aws::Textract
1145
1237
  class Warning < Struct.new(
1146
1238
  :error_code,
1147
1239
  :pages)
1240
+ SENSITIVE = []
1148
1241
  include Aws::Structure
1149
1242
  end
1150
1243
 
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.15.0
4
+ version: 1.20.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: 2020-05-28 00:00:00.000000000 Z
11
+ date: 2020-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.71.0
22
+ version: 3.99.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.71.0
32
+ version: 3.99.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement