aws-sdk-textract 1.16.1 → 1.21.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cdfa2b5cc2d97eafde10b5415facb69d41216071f301544f7f4f012862aaf20e
4
- data.tar.gz: a29f892ed90962cdebb8d67789173d94db952a782a6ea78174328a02ca86f789
3
+ metadata.gz: 30db8d571a77aa39b03d2624eb9076ebe56e758ceff12f37c9c76014a0a7639d
4
+ data.tar.gz: ca5f4c2110b8f16b2b000373189bff994b9d4e4bbfb31443feee5fb32f212f47
5
5
  SHA512:
6
- metadata.gz: 79e17d70bdfed96a06e0367209bce4ce86cc4f5babf56c73644c510714949668d8fa0390cf23d0e52defca0f648ce3a259fb714fba24aa7a5d31530e979790e7
7
- data.tar.gz: 9f5a3e1ee13b53acf38a57f278f69dc0d6206f97e0544e2568938c8a3541062bf6b6c4862fbdebaf088ddfb668eadcf78d2ecfcc825cc13f6f9dfc9dbe0dd7eb
6
+ metadata.gz: b7afe5b16d51a6aa49b43a3a575610c0e760e1fcff61248694e9f6b77e0a3c579ec72f66cb084dcdba7465d54e83b91c6f38d5a9e1ec0116ad4498beed1f999b
7
+ data.tar.gz: 904de0f4f26928e34374de0ca82f6859e6af3c92d2ad526be8886ea2a610ff550d59d51802c4f2e5aeb968fefbafd176b64ce5318c98ac19c392a982b4a9d7fb
@@ -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.16.1'
51
+ GEM_VERSION = '1.21.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:
@@ -83,13 +85,28 @@ module Aws::Textract
83
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
84
86
  # credentials.
85
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
+ #
86
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
87
103
  # from an EC2 IMDS on an EC2 instance.
88
104
  #
89
- # * `Aws::SharedCredentials` - Used for loading credentials from a
90
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
91
107
  #
92
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
93
110
  #
94
111
  # When `:credentials` are not configured directly, the following
95
112
  # locations will be searched for credentials:
@@ -99,10 +116,10 @@ module Aws::Textract
99
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
100
117
  # * `~/.aws/credentials`
101
118
  # * `~/.aws/config`
102
- # * EC2 IMDS instance profile - When used by default, the timeouts are
103
- # very aggressive. Construct and pass an instance of
104
- # `Aws::InstanceProfileCredentails` to enable retries and extended
105
- # 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.
106
123
  #
107
124
  # @option options [required, String] :region
108
125
  # The AWS region to connect to. The configured `:region` is
@@ -427,7 +444,7 @@ module Aws::Textract
427
444
  # resp.blocks[0].geometry.polygon[0].y #=> Float
428
445
  # resp.blocks[0].id #=> String
429
446
  # resp.blocks[0].relationships #=> Array
430
- # 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"
431
448
  # resp.blocks[0].relationships[0].ids #=> Array
432
449
  # resp.blocks[0].relationships[0].ids[0] #=> String
433
450
  # resp.blocks[0].entity_types #=> Array
@@ -517,7 +534,7 @@ module Aws::Textract
517
534
  # resp.blocks[0].geometry.polygon[0].y #=> Float
518
535
  # resp.blocks[0].id #=> String
519
536
  # resp.blocks[0].relationships #=> Array
520
- # 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"
521
538
  # resp.blocks[0].relationships[0].ids #=> Array
522
539
  # resp.blocks[0].relationships[0].ids[0] #=> String
523
540
  # resp.blocks[0].entity_types #=> Array
@@ -643,7 +660,7 @@ module Aws::Textract
643
660
  # resp.blocks[0].geometry.polygon[0].y #=> Float
644
661
  # resp.blocks[0].id #=> String
645
662
  # resp.blocks[0].relationships #=> Array
646
- # 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"
647
664
  # resp.blocks[0].relationships[0].ids #=> Array
648
665
  # resp.blocks[0].relationships[0].ids[0] #=> String
649
666
  # resp.blocks[0].entity_types #=> Array
@@ -760,7 +777,7 @@ module Aws::Textract
760
777
  # resp.blocks[0].geometry.polygon[0].y #=> Float
761
778
  # resp.blocks[0].id #=> String
762
779
  # resp.blocks[0].relationships #=> Array
763
- # 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"
764
781
  # resp.blocks[0].relationships[0].ids #=> Array
765
782
  # resp.blocks[0].relationships[0].ids[0] #=> String
766
783
  # resp.blocks[0].entity_types #=> Array
@@ -840,6 +857,11 @@ module Aws::Textract
840
857
  # The Amazon SNS topic ARN that you want Amazon Textract to publish the
841
858
  # completion status of the operation to.
842
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
+ #
843
865
  # @return [Types::StartDocumentAnalysisResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
844
866
  #
845
867
  # * {Types::StartDocumentAnalysisResponse#job_id #job_id} => String
@@ -861,6 +883,10 @@ module Aws::Textract
861
883
  # sns_topic_arn: "SNSTopicArn", # required
862
884
  # role_arn: "RoleArn", # required
863
885
  # },
886
+ # output_config: {
887
+ # s3_bucket: "S3Bucket", # required
888
+ # s3_prefix: "S3ObjectName",
889
+ # },
864
890
  # })
865
891
  #
866
892
  # @example Response structure
@@ -926,6 +952,11 @@ module Aws::Textract
926
952
  # The Amazon SNS topic ARN that you want Amazon Textract to publish the
927
953
  # completion status of the operation to.
928
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
+ #
929
960
  # @return [Types::StartDocumentTextDetectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
930
961
  #
931
962
  # * {Types::StartDocumentTextDetectionResponse#job_id #job_id} => String
@@ -946,6 +977,10 @@ module Aws::Textract
946
977
  # sns_topic_arn: "SNSTopicArn", # required
947
978
  # role_arn: "RoleArn", # required
948
979
  # },
980
+ # output_config: {
981
+ # s3_bucket: "S3Bucket", # required
982
+ # s3_prefix: "S3ObjectName",
983
+ # },
949
984
  # })
950
985
  #
951
986
  # @example Response structure
@@ -974,7 +1009,7 @@ module Aws::Textract
974
1009
  params: params,
975
1010
  config: config)
976
1011
  context[:gem_name] = 'aws-sdk-textract'
977
- context[:gem_version] = '1.16.1'
1012
+ context[:gem_version] = '1.21.0'
978
1013
  Seahorse::Client::Request.new(handlers, context)
979
1014
  end
980
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.16.1
4
+ version: 1.21.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-06-11 00:00:00.000000000 Z
11
+ date: 2020-09-30 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.99.0
22
+ version: 3.109.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.99.0
32
+ version: 3.109.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement