aws-sdk-textract 1.109.0 → 1.111.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-textract/client.rb +802 -1
- data/lib/aws-sdk-textract/client_api.rb +527 -0
- data/lib/aws-sdk-textract/types.rb +1157 -0
- data/lib/aws-sdk-textract.rb +1 -1
- data/sig/client.rbs +240 -0
- data/sig/params.rbs +43 -0
- data/sig/types.rbs +322 -0
- metadata +3 -3
|
@@ -657,6 +657,87 @@ module Aws::Textract
|
|
|
657
657
|
include Aws::Structure
|
|
658
658
|
end
|
|
659
659
|
|
|
660
|
+
# A filter used to limit results to a specific blueprint, and optionally
|
|
661
|
+
# a specific version.
|
|
662
|
+
#
|
|
663
|
+
# @!attribute [rw] blueprint_arn
|
|
664
|
+
# The Amazon Resource Name (ARN) of the blueprint to filter by.
|
|
665
|
+
# @return [String]
|
|
666
|
+
#
|
|
667
|
+
# @!attribute [rw] blueprint_version
|
|
668
|
+
# The version of the blueprint to filter by.
|
|
669
|
+
# @return [String]
|
|
670
|
+
#
|
|
671
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/BlueprintFilter AWS API Documentation
|
|
672
|
+
#
|
|
673
|
+
class BlueprintFilter < Struct.new(
|
|
674
|
+
:blueprint_arn,
|
|
675
|
+
:blueprint_version)
|
|
676
|
+
SENSITIVE = []
|
|
677
|
+
include Aws::Structure
|
|
678
|
+
end
|
|
679
|
+
|
|
680
|
+
# Associates a blueprint, and optionally a specific blueprint version,
|
|
681
|
+
# with a project for custom output extraction.
|
|
682
|
+
#
|
|
683
|
+
# @!attribute [rw] blueprint_arn
|
|
684
|
+
# The Amazon Resource Name (ARN) of the blueprint.
|
|
685
|
+
# @return [String]
|
|
686
|
+
#
|
|
687
|
+
# @!attribute [rw] blueprint_version
|
|
688
|
+
# The version of the blueprint. If omitted, the latest version is
|
|
689
|
+
# used.
|
|
690
|
+
# @return [String]
|
|
691
|
+
#
|
|
692
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/BlueprintItem AWS API Documentation
|
|
693
|
+
#
|
|
694
|
+
class BlueprintItem < Struct.new(
|
|
695
|
+
:blueprint_arn,
|
|
696
|
+
:blueprint_version)
|
|
697
|
+
SENSITIVE = []
|
|
698
|
+
include Aws::Structure
|
|
699
|
+
end
|
|
700
|
+
|
|
701
|
+
# A summary of a blueprint, returned in the results of `ListBlueprints`.
|
|
702
|
+
#
|
|
703
|
+
# @!attribute [rw] blueprint_arn
|
|
704
|
+
# The Amazon Resource Name (ARN) of the blueprint.
|
|
705
|
+
# @return [String]
|
|
706
|
+
#
|
|
707
|
+
# @!attribute [rw] blueprint_name
|
|
708
|
+
# The name of the blueprint.
|
|
709
|
+
# @return [String]
|
|
710
|
+
#
|
|
711
|
+
# @!attribute [rw] blueprint_version
|
|
712
|
+
# The version of the blueprint.
|
|
713
|
+
# @return [String]
|
|
714
|
+
#
|
|
715
|
+
# @!attribute [rw] resource_owner
|
|
716
|
+
# Whether the blueprint is owned by your account or provided by Amazon
|
|
717
|
+
# Textract.
|
|
718
|
+
# @return [String]
|
|
719
|
+
#
|
|
720
|
+
# @!attribute [rw] creation_time
|
|
721
|
+
# The date and time that the blueprint was created.
|
|
722
|
+
# @return [Time]
|
|
723
|
+
#
|
|
724
|
+
# @!attribute [rw] last_modified_time
|
|
725
|
+
# The date and time that the blueprint was last modified.
|
|
726
|
+
# @return [Time]
|
|
727
|
+
#
|
|
728
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/BlueprintSummary AWS API Documentation
|
|
729
|
+
#
|
|
730
|
+
class BlueprintSummary < Struct.new(
|
|
731
|
+
:blueprint_arn,
|
|
732
|
+
:blueprint_name,
|
|
733
|
+
:blueprint_version,
|
|
734
|
+
:resource_owner,
|
|
735
|
+
:creation_time,
|
|
736
|
+
:last_modified_time)
|
|
737
|
+
SENSITIVE = []
|
|
738
|
+
include Aws::Structure
|
|
739
|
+
end
|
|
740
|
+
|
|
660
741
|
# The bounding box around the detected page, text, key-value pair,
|
|
661
742
|
# table, table cell, or selection element on a document page. The `left`
|
|
662
743
|
# (x-coordinate) and `top` (y-coordinate) are coordinates that represent
|
|
@@ -705,6 +786,22 @@ module Aws::Textract
|
|
|
705
786
|
include Aws::Structure
|
|
706
787
|
end
|
|
707
788
|
|
|
789
|
+
# Controls whether bounding box geometry is returned in the extraction
|
|
790
|
+
# output.
|
|
791
|
+
#
|
|
792
|
+
# @!attribute [rw] state
|
|
793
|
+
# Set to `ENABLED` to return bounding box geometry, or `DISABLED` to
|
|
794
|
+
# omit it.
|
|
795
|
+
# @return [String]
|
|
796
|
+
#
|
|
797
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/BoundingBoxConfiguration AWS API Documentation
|
|
798
|
+
#
|
|
799
|
+
class BoundingBoxConfiguration < Struct.new(
|
|
800
|
+
:state)
|
|
801
|
+
SENSITIVE = []
|
|
802
|
+
include Aws::Structure
|
|
803
|
+
end
|
|
804
|
+
|
|
708
805
|
# Updating or deleting a resource can cause an inconsistent state.
|
|
709
806
|
#
|
|
710
807
|
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ConflictException AWS API Documentation
|
|
@@ -860,6 +957,210 @@ module Aws::Textract
|
|
|
860
957
|
include Aws::Structure
|
|
861
958
|
end
|
|
862
959
|
|
|
960
|
+
# @!attribute [rw] client_request_token
|
|
961
|
+
# A unique, case-sensitive identifier that you provide to ensure that
|
|
962
|
+
# the operation completes no more than one time. If you use the same
|
|
963
|
+
# token for a request that matches a previous request, the service
|
|
964
|
+
# ignores the request, but does not return an error.
|
|
965
|
+
#
|
|
966
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
967
|
+
# not need to pass this option.
|
|
968
|
+
# @return [String]
|
|
969
|
+
#
|
|
970
|
+
# @!attribute [rw] blueprint_name
|
|
971
|
+
# A unique name for the blueprint.
|
|
972
|
+
# @return [String]
|
|
973
|
+
#
|
|
974
|
+
# @!attribute [rw] schema
|
|
975
|
+
# The schema of the blueprint, which defines the fields to extract and
|
|
976
|
+
# their expected structure.
|
|
977
|
+
# @return [String]
|
|
978
|
+
#
|
|
979
|
+
# @!attribute [rw] encryption_configuration
|
|
980
|
+
# The AWS KMS encryption configuration used to encrypt the blueprint
|
|
981
|
+
# at rest.
|
|
982
|
+
# @return [Types::EncryptionConfiguration]
|
|
983
|
+
#
|
|
984
|
+
# @!attribute [rw] tags
|
|
985
|
+
# A set of tags (key-value pairs) to assign to the blueprint.
|
|
986
|
+
# @return [Hash<String,String>]
|
|
987
|
+
#
|
|
988
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/CreateBlueprintRequest AWS API Documentation
|
|
989
|
+
#
|
|
990
|
+
class CreateBlueprintRequest < Struct.new(
|
|
991
|
+
:client_request_token,
|
|
992
|
+
:blueprint_name,
|
|
993
|
+
:schema,
|
|
994
|
+
:encryption_configuration,
|
|
995
|
+
:tags)
|
|
996
|
+
SENSITIVE = []
|
|
997
|
+
include Aws::Structure
|
|
998
|
+
end
|
|
999
|
+
|
|
1000
|
+
# @!attribute [rw] blueprint_arn
|
|
1001
|
+
# The Amazon Resource Name (ARN) of the blueprint that was created.
|
|
1002
|
+
# @return [String]
|
|
1003
|
+
#
|
|
1004
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/CreateBlueprintResponse AWS API Documentation
|
|
1005
|
+
#
|
|
1006
|
+
class CreateBlueprintResponse < Struct.new(
|
|
1007
|
+
:blueprint_arn)
|
|
1008
|
+
SENSITIVE = []
|
|
1009
|
+
include Aws::Structure
|
|
1010
|
+
end
|
|
1011
|
+
|
|
1012
|
+
# @!attribute [rw] blueprint_arn
|
|
1013
|
+
# The Amazon Resource Name (ARN) of the blueprint to create a new
|
|
1014
|
+
# version of.
|
|
1015
|
+
# @return [String]
|
|
1016
|
+
#
|
|
1017
|
+
# @!attribute [rw] client_request_token
|
|
1018
|
+
# A unique, case-sensitive identifier that you provide to ensure that
|
|
1019
|
+
# the operation completes no more than one time. If you use the same
|
|
1020
|
+
# token for a request that matches a previous request, the service
|
|
1021
|
+
# ignores the request, but does not return an error.
|
|
1022
|
+
#
|
|
1023
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
1024
|
+
# not need to pass this option.
|
|
1025
|
+
# @return [String]
|
|
1026
|
+
#
|
|
1027
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/CreateBlueprintVersionRequest AWS API Documentation
|
|
1028
|
+
#
|
|
1029
|
+
class CreateBlueprintVersionRequest < Struct.new(
|
|
1030
|
+
:blueprint_arn,
|
|
1031
|
+
:client_request_token)
|
|
1032
|
+
SENSITIVE = []
|
|
1033
|
+
include Aws::Structure
|
|
1034
|
+
end
|
|
1035
|
+
|
|
1036
|
+
# @!attribute [rw] blueprint_arn
|
|
1037
|
+
# The Amazon Resource Name (ARN) of the blueprint.
|
|
1038
|
+
# @return [String]
|
|
1039
|
+
#
|
|
1040
|
+
# @!attribute [rw] blueprint_version
|
|
1041
|
+
# The version of the blueprint that was created.
|
|
1042
|
+
# @return [String]
|
|
1043
|
+
#
|
|
1044
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/CreateBlueprintVersionResponse AWS API Documentation
|
|
1045
|
+
#
|
|
1046
|
+
class CreateBlueprintVersionResponse < Struct.new(
|
|
1047
|
+
:blueprint_arn,
|
|
1048
|
+
:blueprint_version)
|
|
1049
|
+
SENSITIVE = []
|
|
1050
|
+
include Aws::Structure
|
|
1051
|
+
end
|
|
1052
|
+
|
|
1053
|
+
# @!attribute [rw] client_request_token
|
|
1054
|
+
# A unique, case-sensitive identifier that you provide to ensure that
|
|
1055
|
+
# the operation completes no more than one time. If you use the same
|
|
1056
|
+
# token for a request that matches a previous request, the service
|
|
1057
|
+
# ignores the request, but does not return an error.
|
|
1058
|
+
#
|
|
1059
|
+
# **A suitable default value is auto-generated.** You should normally
|
|
1060
|
+
# not need to pass this option.
|
|
1061
|
+
# @return [String]
|
|
1062
|
+
#
|
|
1063
|
+
# @!attribute [rw] project_name
|
|
1064
|
+
# A unique name for the project.
|
|
1065
|
+
# @return [String]
|
|
1066
|
+
#
|
|
1067
|
+
# @!attribute [rw] project_description
|
|
1068
|
+
# A description of the project.
|
|
1069
|
+
# @return [String]
|
|
1070
|
+
#
|
|
1071
|
+
# @!attribute [rw] extraction_configuration
|
|
1072
|
+
# The configuration that controls how Amazon Textract extracts content
|
|
1073
|
+
# from the document, including bounding boxes, granularity, and output
|
|
1074
|
+
# format.
|
|
1075
|
+
# @return [Types::ExtractionConfiguration]
|
|
1076
|
+
#
|
|
1077
|
+
# @!attribute [rw] generative_configuration
|
|
1078
|
+
# The configuration that controls generative capabilities such as
|
|
1079
|
+
# summarization and figure captioning.
|
|
1080
|
+
# @return [Types::GenerativeConfiguration]
|
|
1081
|
+
#
|
|
1082
|
+
# @!attribute [rw] custom_configuration
|
|
1083
|
+
# The configuration that associates blueprints with the project for
|
|
1084
|
+
# custom output extraction.
|
|
1085
|
+
# @return [Types::CustomConfiguration]
|
|
1086
|
+
#
|
|
1087
|
+
# @!attribute [rw] splitter_configuration
|
|
1088
|
+
# The configuration that controls whether multi-document packets are
|
|
1089
|
+
# split into individual documents.
|
|
1090
|
+
# @return [Types::SplitterConfiguration]
|
|
1091
|
+
#
|
|
1092
|
+
# @!attribute [rw] sensitive_data_configuration
|
|
1093
|
+
# The configuration that controls detection and redaction of sensitive
|
|
1094
|
+
# data, such as personally identifiable information (PII).
|
|
1095
|
+
# @return [Types::SensitiveDataConfiguration]
|
|
1096
|
+
#
|
|
1097
|
+
# @!attribute [rw] encryption_configuration
|
|
1098
|
+
# The AWS KMS encryption configuration used to encrypt the project at
|
|
1099
|
+
# rest. If you don't specify a value, Amazon Textract encrypts the
|
|
1100
|
+
# project using an AWS owned key.
|
|
1101
|
+
# @return [Types::EncryptionConfiguration]
|
|
1102
|
+
#
|
|
1103
|
+
# @!attribute [rw] tags
|
|
1104
|
+
# A set of tags (key-value pairs) to assign to the project.
|
|
1105
|
+
# @return [Hash<String,String>]
|
|
1106
|
+
#
|
|
1107
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/CreateProjectRequest AWS API Documentation
|
|
1108
|
+
#
|
|
1109
|
+
class CreateProjectRequest < Struct.new(
|
|
1110
|
+
:client_request_token,
|
|
1111
|
+
:project_name,
|
|
1112
|
+
:project_description,
|
|
1113
|
+
:extraction_configuration,
|
|
1114
|
+
:generative_configuration,
|
|
1115
|
+
:custom_configuration,
|
|
1116
|
+
:splitter_configuration,
|
|
1117
|
+
:sensitive_data_configuration,
|
|
1118
|
+
:encryption_configuration,
|
|
1119
|
+
:tags)
|
|
1120
|
+
SENSITIVE = []
|
|
1121
|
+
include Aws::Structure
|
|
1122
|
+
end
|
|
1123
|
+
|
|
1124
|
+
# @!attribute [rw] project_arn
|
|
1125
|
+
# The Amazon Resource Name (ARN) of the project that was created.
|
|
1126
|
+
# @return [String]
|
|
1127
|
+
#
|
|
1128
|
+
# @!attribute [rw] status
|
|
1129
|
+
# The status of the project, indicating whether creation completed
|
|
1130
|
+
# successfully or failed.
|
|
1131
|
+
# @return [String]
|
|
1132
|
+
#
|
|
1133
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/CreateProjectResponse AWS API Documentation
|
|
1134
|
+
#
|
|
1135
|
+
class CreateProjectResponse < Struct.new(
|
|
1136
|
+
:project_arn,
|
|
1137
|
+
:status)
|
|
1138
|
+
SENSITIVE = []
|
|
1139
|
+
include Aws::Structure
|
|
1140
|
+
end
|
|
1141
|
+
|
|
1142
|
+
# Associates blueprints with a project to produce custom structured
|
|
1143
|
+
# output. A fallback blueprint can be supplied for documents that do not
|
|
1144
|
+
# match a primary blueprint.
|
|
1145
|
+
#
|
|
1146
|
+
# @!attribute [rw] blueprints
|
|
1147
|
+
# The blueprints used to extract custom structured output.
|
|
1148
|
+
# @return [Array<Types::BlueprintItem>]
|
|
1149
|
+
#
|
|
1150
|
+
# @!attribute [rw] fallback_blueprints
|
|
1151
|
+
# The blueprint used when a document does not match any of the primary
|
|
1152
|
+
# blueprints. Requires at least one blueprint in `Blueprints`.
|
|
1153
|
+
# @return [Array<Types::BlueprintItem>]
|
|
1154
|
+
#
|
|
1155
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/CustomConfiguration AWS API Documentation
|
|
1156
|
+
#
|
|
1157
|
+
class CustomConfiguration < Struct.new(
|
|
1158
|
+
:blueprints,
|
|
1159
|
+
:fallback_blueprints)
|
|
1160
|
+
SENSITIVE = []
|
|
1161
|
+
include Aws::Structure
|
|
1162
|
+
end
|
|
1163
|
+
|
|
863
1164
|
# @!attribute [rw] adapter_id
|
|
864
1165
|
# A string containing a unique ID for the adapter to be deleted.
|
|
865
1166
|
# @return [String]
|
|
@@ -898,6 +1199,44 @@ module Aws::Textract
|
|
|
898
1199
|
#
|
|
899
1200
|
class DeleteAdapterVersionResponse < Aws::EmptyStructure; end
|
|
900
1201
|
|
|
1202
|
+
# @!attribute [rw] blueprint_arn
|
|
1203
|
+
# The Amazon Resource Name (ARN) of the blueprint to delete.
|
|
1204
|
+
# @return [String]
|
|
1205
|
+
#
|
|
1206
|
+
# @!attribute [rw] blueprint_version
|
|
1207
|
+
# The version of the blueprint to delete. If omitted, the entire
|
|
1208
|
+
# blueprint and all of its versions are deleted.
|
|
1209
|
+
# @return [String]
|
|
1210
|
+
#
|
|
1211
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/DeleteBlueprintRequest AWS API Documentation
|
|
1212
|
+
#
|
|
1213
|
+
class DeleteBlueprintRequest < Struct.new(
|
|
1214
|
+
:blueprint_arn,
|
|
1215
|
+
:blueprint_version)
|
|
1216
|
+
SENSITIVE = []
|
|
1217
|
+
include Aws::Structure
|
|
1218
|
+
end
|
|
1219
|
+
|
|
1220
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/DeleteBlueprintResponse AWS API Documentation
|
|
1221
|
+
#
|
|
1222
|
+
class DeleteBlueprintResponse < Aws::EmptyStructure; end
|
|
1223
|
+
|
|
1224
|
+
# @!attribute [rw] project_arn
|
|
1225
|
+
# The Amazon Resource Name (ARN) of the project to delete.
|
|
1226
|
+
# @return [String]
|
|
1227
|
+
#
|
|
1228
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/DeleteProjectRequest AWS API Documentation
|
|
1229
|
+
#
|
|
1230
|
+
class DeleteProjectRequest < Struct.new(
|
|
1231
|
+
:project_arn)
|
|
1232
|
+
SENSITIVE = []
|
|
1233
|
+
include Aws::Structure
|
|
1234
|
+
end
|
|
1235
|
+
|
|
1236
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/DeleteProjectResponse AWS API Documentation
|
|
1237
|
+
#
|
|
1238
|
+
class DeleteProjectResponse < Aws::EmptyStructure; end
|
|
1239
|
+
|
|
901
1240
|
# @!attribute [rw] document
|
|
902
1241
|
# The input document as base64-encoded bytes or an Amazon S3 object.
|
|
903
1242
|
# If you use the AWS CLI to call Amazon Textract operations, you
|
|
@@ -1078,6 +1417,34 @@ module Aws::Textract
|
|
|
1078
1417
|
#
|
|
1079
1418
|
class DocumentTooLargeException < Aws::EmptyStructure; end
|
|
1080
1419
|
|
|
1420
|
+
# Specifies the AWS Key Management Service (AWS KMS) key and encryption
|
|
1421
|
+
# context used to encrypt a resource at rest. When omitted, Amazon
|
|
1422
|
+
# Textract encrypts the resource using an AWS owned key.
|
|
1423
|
+
#
|
|
1424
|
+
# @!attribute [rw] kms_key_id
|
|
1425
|
+
# The identifier of the AWS KMS key to use for encryption. This can be
|
|
1426
|
+
# a key ID, key ARN, alias name, or alias ARN.
|
|
1427
|
+
# @return [String]
|
|
1428
|
+
#
|
|
1429
|
+
# @!attribute [rw] kms_encryption_context
|
|
1430
|
+
# A set of key-value pairs that Amazon Textract includes as the AWS
|
|
1431
|
+
# KMS encryption context when encrypting and decrypting the resource.
|
|
1432
|
+
#
|
|
1433
|
+
# On `UpdateProject` and `UpdateBlueprint`, this member is the one
|
|
1434
|
+
# exception to replacing a supplied configuration whole. If you omit
|
|
1435
|
+
# it, the stored encryption context is kept. To clear a custom
|
|
1436
|
+
# encryption context, specify an empty map (`{}`).
|
|
1437
|
+
# @return [Hash<String,String>]
|
|
1438
|
+
#
|
|
1439
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/EncryptionConfiguration AWS API Documentation
|
|
1440
|
+
#
|
|
1441
|
+
class EncryptionConfiguration < Struct.new(
|
|
1442
|
+
:kms_key_id,
|
|
1443
|
+
:kms_encryption_context)
|
|
1444
|
+
SENSITIVE = []
|
|
1445
|
+
include Aws::Structure
|
|
1446
|
+
end
|
|
1447
|
+
|
|
1081
1448
|
# The evaluation metrics (F1 score, Precision, and Recall) for an
|
|
1082
1449
|
# adapter version.
|
|
1083
1450
|
#
|
|
@@ -1103,6 +1470,21 @@ module Aws::Textract
|
|
|
1103
1470
|
include Aws::Structure
|
|
1104
1471
|
end
|
|
1105
1472
|
|
|
1473
|
+
# Event bus settings for a job.
|
|
1474
|
+
#
|
|
1475
|
+
# @!attribute [rw] state
|
|
1476
|
+
# Set to `ENABLED` to send events to an event bus, or `DISABLED` to
|
|
1477
|
+
# not send them.
|
|
1478
|
+
# @return [String]
|
|
1479
|
+
#
|
|
1480
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/EventBridgeConfiguration AWS API Documentation
|
|
1481
|
+
#
|
|
1482
|
+
class EventBridgeConfiguration < Struct.new(
|
|
1483
|
+
:state)
|
|
1484
|
+
SENSITIVE = []
|
|
1485
|
+
include Aws::Structure
|
|
1486
|
+
end
|
|
1487
|
+
|
|
1106
1488
|
# Returns the kind of currency detected.
|
|
1107
1489
|
#
|
|
1108
1490
|
# @!attribute [rw] code
|
|
@@ -1320,6 +1702,89 @@ module Aws::Textract
|
|
|
1320
1702
|
include Aws::Structure
|
|
1321
1703
|
end
|
|
1322
1704
|
|
|
1705
|
+
# Controls how Amazon Textract extracts content from a document,
|
|
1706
|
+
# including whether bounding boxes are returned, the granularity of
|
|
1707
|
+
# extraction, and the output format.
|
|
1708
|
+
#
|
|
1709
|
+
# @!attribute [rw] bounding_box
|
|
1710
|
+
# Controls whether bounding box geometry is included in the extraction
|
|
1711
|
+
# output.
|
|
1712
|
+
# @return [Types::BoundingBoxConfiguration]
|
|
1713
|
+
#
|
|
1714
|
+
# @!attribute [rw] granularity
|
|
1715
|
+
# Controls the granularity levels at which content is extracted.
|
|
1716
|
+
# @return [Types::ExtractionGranularity]
|
|
1717
|
+
#
|
|
1718
|
+
# @!attribute [rw] output_format
|
|
1719
|
+
# Controls the format of the extraction output.
|
|
1720
|
+
# @return [Types::OutputFormat]
|
|
1721
|
+
#
|
|
1722
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ExtractionConfiguration AWS API Documentation
|
|
1723
|
+
#
|
|
1724
|
+
class ExtractionConfiguration < Struct.new(
|
|
1725
|
+
:bounding_box,
|
|
1726
|
+
:granularity,
|
|
1727
|
+
:output_format)
|
|
1728
|
+
SENSITIVE = []
|
|
1729
|
+
include Aws::Structure
|
|
1730
|
+
end
|
|
1731
|
+
|
|
1732
|
+
# Specifies the granularity levels at which Amazon Textract extracts
|
|
1733
|
+
# content from a document.
|
|
1734
|
+
#
|
|
1735
|
+
# @!attribute [rw] types
|
|
1736
|
+
# The granularity levels at which Amazon Textract extracts content,
|
|
1737
|
+
# from the whole document down to individual lines of text. Each type
|
|
1738
|
+
# can appear only once.
|
|
1739
|
+
# @return [Array<String>]
|
|
1740
|
+
#
|
|
1741
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ExtractionGranularity AWS API Documentation
|
|
1742
|
+
#
|
|
1743
|
+
class ExtractionGranularity < Struct.new(
|
|
1744
|
+
:types)
|
|
1745
|
+
SENSITIVE = []
|
|
1746
|
+
include Aws::Structure
|
|
1747
|
+
end
|
|
1748
|
+
|
|
1749
|
+
# Controls whether generative captions are produced for figures detected
|
|
1750
|
+
# in the document.
|
|
1751
|
+
#
|
|
1752
|
+
# @!attribute [rw] state
|
|
1753
|
+
# Set to `ENABLED` to produce figure captions, or `DISABLED` to omit
|
|
1754
|
+
# them.
|
|
1755
|
+
# @return [String]
|
|
1756
|
+
#
|
|
1757
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/FigureCaptionConfiguration AWS API Documentation
|
|
1758
|
+
#
|
|
1759
|
+
class FigureCaptionConfiguration < Struct.new(
|
|
1760
|
+
:state)
|
|
1761
|
+
SENSITIVE = []
|
|
1762
|
+
include Aws::Structure
|
|
1763
|
+
end
|
|
1764
|
+
|
|
1765
|
+
# Controls the generative capabilities applied during a document
|
|
1766
|
+
# insights job, such as summarization and figure captioning.
|
|
1767
|
+
#
|
|
1768
|
+
# @!attribute [rw] summarization
|
|
1769
|
+
# Controls whether a generative summary of the document is produced.
|
|
1770
|
+
# If you omit it, no summary is produced.
|
|
1771
|
+
# @return [Types::SummarizationConfiguration]
|
|
1772
|
+
#
|
|
1773
|
+
# @!attribute [rw] figure_caption
|
|
1774
|
+
# Controls whether generative captions are produced for figures
|
|
1775
|
+
# detected in the document. If you omit it, no figure captions are
|
|
1776
|
+
# produced.
|
|
1777
|
+
# @return [Types::FigureCaptionConfiguration]
|
|
1778
|
+
#
|
|
1779
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/GenerativeConfiguration AWS API Documentation
|
|
1780
|
+
#
|
|
1781
|
+
class GenerativeConfiguration < Struct.new(
|
|
1782
|
+
:summarization,
|
|
1783
|
+
:figure_caption)
|
|
1784
|
+
SENSITIVE = []
|
|
1785
|
+
include Aws::Structure
|
|
1786
|
+
end
|
|
1787
|
+
|
|
1323
1788
|
# Information about where the following items are located on a document
|
|
1324
1789
|
# page: detected page, text, key-value pairs, tables, table cells, and
|
|
1325
1790
|
# selection elements.
|
|
@@ -1521,6 +1986,72 @@ module Aws::Textract
|
|
|
1521
1986
|
include Aws::Structure
|
|
1522
1987
|
end
|
|
1523
1988
|
|
|
1989
|
+
# @!attribute [rw] blueprint_arn
|
|
1990
|
+
# The Amazon Resource Name (ARN) of the blueprint to retrieve.
|
|
1991
|
+
# @return [String]
|
|
1992
|
+
#
|
|
1993
|
+
# @!attribute [rw] blueprint_version
|
|
1994
|
+
# The version of the blueprint to retrieve. If omitted, the latest
|
|
1995
|
+
# version is returned.
|
|
1996
|
+
# @return [String]
|
|
1997
|
+
#
|
|
1998
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/GetBlueprintRequest AWS API Documentation
|
|
1999
|
+
#
|
|
2000
|
+
class GetBlueprintRequest < Struct.new(
|
|
2001
|
+
:blueprint_arn,
|
|
2002
|
+
:blueprint_version)
|
|
2003
|
+
SENSITIVE = []
|
|
2004
|
+
include Aws::Structure
|
|
2005
|
+
end
|
|
2006
|
+
|
|
2007
|
+
# @!attribute [rw] blueprint_arn
|
|
2008
|
+
# The Amazon Resource Name (ARN) of the blueprint.
|
|
2009
|
+
# @return [String]
|
|
2010
|
+
#
|
|
2011
|
+
# @!attribute [rw] blueprint_name
|
|
2012
|
+
# The name of the blueprint.
|
|
2013
|
+
# @return [String]
|
|
2014
|
+
#
|
|
2015
|
+
# @!attribute [rw] blueprint_version
|
|
2016
|
+
# The version of the blueprint.
|
|
2017
|
+
# @return [String]
|
|
2018
|
+
#
|
|
2019
|
+
# @!attribute [rw] schema
|
|
2020
|
+
# The schema of the blueprint, which defines the fields to extract and
|
|
2021
|
+
# their expected structure.
|
|
2022
|
+
# @return [String]
|
|
2023
|
+
#
|
|
2024
|
+
# @!attribute [rw] kms_key_id
|
|
2025
|
+
# The identifier of the AWS KMS key used to encrypt the blueprint.
|
|
2026
|
+
# @return [String]
|
|
2027
|
+
#
|
|
2028
|
+
# @!attribute [rw] kms_encryption_context
|
|
2029
|
+
# The AWS KMS encryption context used when encrypting the blueprint.
|
|
2030
|
+
# @return [Hash<String,String>]
|
|
2031
|
+
#
|
|
2032
|
+
# @!attribute [rw] creation_time
|
|
2033
|
+
# The date and time that the blueprint was created.
|
|
2034
|
+
# @return [Time]
|
|
2035
|
+
#
|
|
2036
|
+
# @!attribute [rw] last_modified_time
|
|
2037
|
+
# The date and time that the blueprint was last modified.
|
|
2038
|
+
# @return [Time]
|
|
2039
|
+
#
|
|
2040
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/GetBlueprintResponse AWS API Documentation
|
|
2041
|
+
#
|
|
2042
|
+
class GetBlueprintResponse < Struct.new(
|
|
2043
|
+
:blueprint_arn,
|
|
2044
|
+
:blueprint_name,
|
|
2045
|
+
:blueprint_version,
|
|
2046
|
+
:schema,
|
|
2047
|
+
:kms_key_id,
|
|
2048
|
+
:kms_encryption_context,
|
|
2049
|
+
:creation_time,
|
|
2050
|
+
:last_modified_time)
|
|
2051
|
+
SENSITIVE = []
|
|
2052
|
+
include Aws::Structure
|
|
2053
|
+
end
|
|
2054
|
+
|
|
1524
2055
|
# @!attribute [rw] job_id
|
|
1525
2056
|
# A unique identifier for the text-detection job. The `JobId` is
|
|
1526
2057
|
# returned from `StartDocumentAnalysis`. A `JobId` value is only valid
|
|
@@ -1598,6 +2129,50 @@ module Aws::Textract
|
|
|
1598
2129
|
include Aws::Structure
|
|
1599
2130
|
end
|
|
1600
2131
|
|
|
2132
|
+
# @!attribute [rw] job_arn
|
|
2133
|
+
# The Amazon Resource Name (ARN) of the document insights job to
|
|
2134
|
+
# retrieve.
|
|
2135
|
+
# @return [String]
|
|
2136
|
+
#
|
|
2137
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/GetDocumentInsightsRequest AWS API Documentation
|
|
2138
|
+
#
|
|
2139
|
+
class GetDocumentInsightsRequest < Struct.new(
|
|
2140
|
+
:job_arn)
|
|
2141
|
+
SENSITIVE = []
|
|
2142
|
+
include Aws::Structure
|
|
2143
|
+
end
|
|
2144
|
+
|
|
2145
|
+
# @!attribute [rw] status
|
|
2146
|
+
# The current status of the document insights job, indicating whether
|
|
2147
|
+
# it is still running, has completed, or has failed. When the job has
|
|
2148
|
+
# failed, inspect `ErrorType` and `ErrorMessage` for details.
|
|
2149
|
+
# @return [String]
|
|
2150
|
+
#
|
|
2151
|
+
# @!attribute [rw] output_configuration
|
|
2152
|
+
# The Amazon S3 location where the analysis results are written.
|
|
2153
|
+
# @return [Types::OutputConfiguration]
|
|
2154
|
+
#
|
|
2155
|
+
# @!attribute [rw] error_type
|
|
2156
|
+
# The type of error that caused the job to fail. Present only when the
|
|
2157
|
+
# job status is a failure state.
|
|
2158
|
+
# @return [String]
|
|
2159
|
+
#
|
|
2160
|
+
# @!attribute [rw] error_message
|
|
2161
|
+
# A human-readable description of the error that caused the job to
|
|
2162
|
+
# fail. Present only when the job status is a failure state.
|
|
2163
|
+
# @return [String]
|
|
2164
|
+
#
|
|
2165
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/GetDocumentInsightsResponse AWS API Documentation
|
|
2166
|
+
#
|
|
2167
|
+
class GetDocumentInsightsResponse < Struct.new(
|
|
2168
|
+
:status,
|
|
2169
|
+
:output_configuration,
|
|
2170
|
+
:error_type,
|
|
2171
|
+
:error_message)
|
|
2172
|
+
SENSITIVE = []
|
|
2173
|
+
include Aws::Structure
|
|
2174
|
+
end
|
|
2175
|
+
|
|
1601
2176
|
# @!attribute [rw] job_id
|
|
1602
2177
|
# A unique identifier for the text detection job. The `JobId` is
|
|
1603
2178
|
# returned from `StartDocumentTextDetection`. A `JobId` value is only
|
|
@@ -1882,6 +2457,93 @@ module Aws::Textract
|
|
|
1882
2457
|
include Aws::Structure
|
|
1883
2458
|
end
|
|
1884
2459
|
|
|
2460
|
+
# @!attribute [rw] project_arn
|
|
2461
|
+
# The Amazon Resource Name (ARN) of the project to retrieve.
|
|
2462
|
+
# @return [String]
|
|
2463
|
+
#
|
|
2464
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/GetProjectRequest AWS API Documentation
|
|
2465
|
+
#
|
|
2466
|
+
class GetProjectRequest < Struct.new(
|
|
2467
|
+
:project_arn)
|
|
2468
|
+
SENSITIVE = []
|
|
2469
|
+
include Aws::Structure
|
|
2470
|
+
end
|
|
2471
|
+
|
|
2472
|
+
# @!attribute [rw] project_arn
|
|
2473
|
+
# The Amazon Resource Name (ARN) of the project.
|
|
2474
|
+
# @return [String]
|
|
2475
|
+
#
|
|
2476
|
+
# @!attribute [rw] project_name
|
|
2477
|
+
# The name of the project.
|
|
2478
|
+
# @return [String]
|
|
2479
|
+
#
|
|
2480
|
+
# @!attribute [rw] project_description
|
|
2481
|
+
# The description of the project.
|
|
2482
|
+
# @return [String]
|
|
2483
|
+
#
|
|
2484
|
+
# @!attribute [rw] status
|
|
2485
|
+
# The status of the project, indicating whether it was created
|
|
2486
|
+
# successfully or failed.
|
|
2487
|
+
# @return [String]
|
|
2488
|
+
#
|
|
2489
|
+
# @!attribute [rw] extraction_configuration
|
|
2490
|
+
# The configuration that controls how Amazon Textract extracts content
|
|
2491
|
+
# from the document, including bounding boxes, granularity, and output
|
|
2492
|
+
# format.
|
|
2493
|
+
# @return [Types::ExtractionConfiguration]
|
|
2494
|
+
#
|
|
2495
|
+
# @!attribute [rw] generative_configuration
|
|
2496
|
+
# The configuration that controls generative capabilities such as
|
|
2497
|
+
# summarization and figure captioning.
|
|
2498
|
+
# @return [Types::GenerativeConfiguration]
|
|
2499
|
+
#
|
|
2500
|
+
# @!attribute [rw] custom_configuration
|
|
2501
|
+
# The configuration that associates blueprints with the project for
|
|
2502
|
+
# custom output extraction.
|
|
2503
|
+
# @return [Types::CustomConfiguration]
|
|
2504
|
+
#
|
|
2505
|
+
# @!attribute [rw] splitter_configuration
|
|
2506
|
+
# The configuration that controls whether multi-document packets are
|
|
2507
|
+
# split into individual documents.
|
|
2508
|
+
# @return [Types::SplitterConfiguration]
|
|
2509
|
+
#
|
|
2510
|
+
# @!attribute [rw] sensitive_data_configuration
|
|
2511
|
+
# The configuration that controls detection and redaction of sensitive
|
|
2512
|
+
# data, such as personally identifiable information (PII).
|
|
2513
|
+
# @return [Types::SensitiveDataConfiguration]
|
|
2514
|
+
#
|
|
2515
|
+
# @!attribute [rw] encryption_configuration
|
|
2516
|
+
# The AWS KMS encryption configuration used to encrypt the project at
|
|
2517
|
+
# rest.
|
|
2518
|
+
# @return [Types::EncryptionConfiguration]
|
|
2519
|
+
#
|
|
2520
|
+
# @!attribute [rw] creation_time
|
|
2521
|
+
# The date and time that the project was created.
|
|
2522
|
+
# @return [Time]
|
|
2523
|
+
#
|
|
2524
|
+
# @!attribute [rw] last_modified_time
|
|
2525
|
+
# The date and time that the project was last modified.
|
|
2526
|
+
# @return [Time]
|
|
2527
|
+
#
|
|
2528
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/GetProjectResponse AWS API Documentation
|
|
2529
|
+
#
|
|
2530
|
+
class GetProjectResponse < Struct.new(
|
|
2531
|
+
:project_arn,
|
|
2532
|
+
:project_name,
|
|
2533
|
+
:project_description,
|
|
2534
|
+
:status,
|
|
2535
|
+
:extraction_configuration,
|
|
2536
|
+
:generative_configuration,
|
|
2537
|
+
:custom_configuration,
|
|
2538
|
+
:splitter_configuration,
|
|
2539
|
+
:sensitive_data_configuration,
|
|
2540
|
+
:encryption_configuration,
|
|
2541
|
+
:creation_time,
|
|
2542
|
+
:last_modified_time)
|
|
2543
|
+
SENSITIVE = []
|
|
2544
|
+
include Aws::Structure
|
|
2545
|
+
end
|
|
2546
|
+
|
|
1885
2547
|
# Shows the results of the human in the loop evaluation. If there is no
|
|
1886
2548
|
# HumanLoopArn, the input did not trigger human review.
|
|
1887
2549
|
#
|
|
@@ -2048,6 +2710,21 @@ module Aws::Textract
|
|
|
2048
2710
|
include Aws::Structure
|
|
2049
2711
|
end
|
|
2050
2712
|
|
|
2713
|
+
# The Amazon S3 location of the input document for a document insights
|
|
2714
|
+
# job.
|
|
2715
|
+
#
|
|
2716
|
+
# @!attribute [rw] s3_uri
|
|
2717
|
+
# The Amazon S3 URI of the input document.
|
|
2718
|
+
# @return [String]
|
|
2719
|
+
#
|
|
2720
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/InputConfiguration AWS API Documentation
|
|
2721
|
+
#
|
|
2722
|
+
class InputConfiguration < Struct.new(
|
|
2723
|
+
:s3_uri)
|
|
2724
|
+
SENSITIVE = []
|
|
2725
|
+
include Aws::Structure
|
|
2726
|
+
end
|
|
2727
|
+
|
|
2051
2728
|
# Amazon Textract experienced a service issue. Try your call again.
|
|
2052
2729
|
#
|
|
2053
2730
|
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/InternalServerError AWS API Documentation
|
|
@@ -2371,6 +3048,110 @@ module Aws::Textract
|
|
|
2371
3048
|
include Aws::Structure
|
|
2372
3049
|
end
|
|
2373
3050
|
|
|
3051
|
+
# @!attribute [rw] max_results
|
|
3052
|
+
# The maximum number of blueprints to return in each page of results.
|
|
3053
|
+
# If you don't specify a value, the service selects a default page
|
|
3054
|
+
# size. Use the `NextToken` value in the response to retrieve any
|
|
3055
|
+
# remaining results.
|
|
3056
|
+
# @return [Integer]
|
|
3057
|
+
#
|
|
3058
|
+
# @!attribute [rw] next_token
|
|
3059
|
+
# A pagination token returned from a previous call to
|
|
3060
|
+
# `ListBlueprints`. Use it to retrieve the next page of results.
|
|
3061
|
+
# @return [String]
|
|
3062
|
+
#
|
|
3063
|
+
# @!attribute [rw] blueprint_arn
|
|
3064
|
+
# The Amazon Resource Name (ARN) of a blueprint to filter the results
|
|
3065
|
+
# by.
|
|
3066
|
+
# @return [String]
|
|
3067
|
+
#
|
|
3068
|
+
# @!attribute [rw] project_filter
|
|
3069
|
+
# A filter that limits the results to blueprints associated with the
|
|
3070
|
+
# specified project.
|
|
3071
|
+
# @return [Types::ProjectFilter]
|
|
3072
|
+
#
|
|
3073
|
+
# @!attribute [rw] resource_owner
|
|
3074
|
+
# A filter that limits the results to blueprints owned by your account
|
|
3075
|
+
# or to blueprints provided by Amazon Textract.
|
|
3076
|
+
# @return [String]
|
|
3077
|
+
#
|
|
3078
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ListBlueprintsRequest AWS API Documentation
|
|
3079
|
+
#
|
|
3080
|
+
class ListBlueprintsRequest < Struct.new(
|
|
3081
|
+
:max_results,
|
|
3082
|
+
:next_token,
|
|
3083
|
+
:blueprint_arn,
|
|
3084
|
+
:project_filter,
|
|
3085
|
+
:resource_owner)
|
|
3086
|
+
SENSITIVE = []
|
|
3087
|
+
include Aws::Structure
|
|
3088
|
+
end
|
|
3089
|
+
|
|
3090
|
+
# @!attribute [rw] blueprints
|
|
3091
|
+
# A list of blueprint summaries that match the request.
|
|
3092
|
+
# @return [Array<Types::BlueprintSummary>]
|
|
3093
|
+
#
|
|
3094
|
+
# @!attribute [rw] next_token
|
|
3095
|
+
# A pagination token to use in a subsequent call to `ListBlueprints`
|
|
3096
|
+
# to retrieve the next page of results. This value is `null` when
|
|
3097
|
+
# there are no more results to return.
|
|
3098
|
+
# @return [String]
|
|
3099
|
+
#
|
|
3100
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ListBlueprintsResponse AWS API Documentation
|
|
3101
|
+
#
|
|
3102
|
+
class ListBlueprintsResponse < Struct.new(
|
|
3103
|
+
:blueprints,
|
|
3104
|
+
:next_token)
|
|
3105
|
+
SENSITIVE = []
|
|
3106
|
+
include Aws::Structure
|
|
3107
|
+
end
|
|
3108
|
+
|
|
3109
|
+
# @!attribute [rw] max_results
|
|
3110
|
+
# The maximum number of projects to return in each page of results. If
|
|
3111
|
+
# you don't specify a value, the service selects a default page size.
|
|
3112
|
+
# Use the `NextToken` value in the response to retrieve any remaining
|
|
3113
|
+
# results.
|
|
3114
|
+
# @return [Integer]
|
|
3115
|
+
#
|
|
3116
|
+
# @!attribute [rw] next_token
|
|
3117
|
+
# A pagination token returned from a previous call to `ListProjects`.
|
|
3118
|
+
# Use it to retrieve the next page of results.
|
|
3119
|
+
# @return [String]
|
|
3120
|
+
#
|
|
3121
|
+
# @!attribute [rw] blueprint_filter
|
|
3122
|
+
# A filter that limits the results to projects associated with the
|
|
3123
|
+
# specified blueprint.
|
|
3124
|
+
# @return [Types::BlueprintFilter]
|
|
3125
|
+
#
|
|
3126
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ListProjectsRequest AWS API Documentation
|
|
3127
|
+
#
|
|
3128
|
+
class ListProjectsRequest < Struct.new(
|
|
3129
|
+
:max_results,
|
|
3130
|
+
:next_token,
|
|
3131
|
+
:blueprint_filter)
|
|
3132
|
+
SENSITIVE = []
|
|
3133
|
+
include Aws::Structure
|
|
3134
|
+
end
|
|
3135
|
+
|
|
3136
|
+
# @!attribute [rw] projects
|
|
3137
|
+
# A list of project summaries that match the request.
|
|
3138
|
+
# @return [Array<Types::ProjectSummary>]
|
|
3139
|
+
#
|
|
3140
|
+
# @!attribute [rw] next_token
|
|
3141
|
+
# A pagination token to use in a subsequent call to `ListProjects` to
|
|
3142
|
+
# retrieve the next page of results. This value is `null` when there
|
|
3143
|
+
# are no more results to return.
|
|
3144
|
+
# @return [String]
|
|
3145
|
+
#
|
|
3146
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ListProjectsResponse AWS API Documentation
|
|
3147
|
+
#
|
|
3148
|
+
class ListProjectsResponse < Struct.new(
|
|
3149
|
+
:projects,
|
|
3150
|
+
:next_token)
|
|
3151
|
+
SENSITIVE = []
|
|
3152
|
+
include Aws::Structure
|
|
3153
|
+
end
|
|
3154
|
+
|
|
2374
3155
|
# @!attribute [rw] resource_arn
|
|
2375
3156
|
# The Amazon Resource Name (ARN) that specifies the resource to list
|
|
2376
3157
|
# tags for.
|
|
@@ -2440,6 +3221,36 @@ module Aws::Textract
|
|
|
2440
3221
|
include Aws::Structure
|
|
2441
3222
|
end
|
|
2442
3223
|
|
|
3224
|
+
# Notification settings for a job.
|
|
3225
|
+
#
|
|
3226
|
+
# @!attribute [rw] event_bridge_configuration
|
|
3227
|
+
# Event bus settings.
|
|
3228
|
+
# @return [Types::EventBridgeConfiguration]
|
|
3229
|
+
#
|
|
3230
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/NotificationConfiguration AWS API Documentation
|
|
3231
|
+
#
|
|
3232
|
+
class NotificationConfiguration < Struct.new(
|
|
3233
|
+
:event_bridge_configuration)
|
|
3234
|
+
SENSITIVE = []
|
|
3235
|
+
include Aws::Structure
|
|
3236
|
+
end
|
|
3237
|
+
|
|
3238
|
+
# Controls whether an additional file format is produced alongside the
|
|
3239
|
+
# primary extraction output.
|
|
3240
|
+
#
|
|
3241
|
+
# @!attribute [rw] state
|
|
3242
|
+
# Set to `ENABLED` to produce an additional file format, or `DISABLED`
|
|
3243
|
+
# to omit it.
|
|
3244
|
+
# @return [String]
|
|
3245
|
+
#
|
|
3246
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/OutputAdditionalFileFormat AWS API Documentation
|
|
3247
|
+
#
|
|
3248
|
+
class OutputAdditionalFileFormat < Struct.new(
|
|
3249
|
+
:state)
|
|
3250
|
+
SENSITIVE = []
|
|
3251
|
+
include Aws::Structure
|
|
3252
|
+
end
|
|
3253
|
+
|
|
2443
3254
|
# Sets whether or not your output will go to a user created bucket. Used
|
|
2444
3255
|
# to set the name of the bucket, and the prefix on the output file.
|
|
2445
3256
|
#
|
|
@@ -2486,6 +3297,78 @@ module Aws::Textract
|
|
|
2486
3297
|
include Aws::Structure
|
|
2487
3298
|
end
|
|
2488
3299
|
|
|
3300
|
+
# The Amazon S3 location where the results of a document insights job
|
|
3301
|
+
# are written.
|
|
3302
|
+
#
|
|
3303
|
+
# @!attribute [rw] s3_uri
|
|
3304
|
+
# The Amazon S3 URI where the analysis results are written.
|
|
3305
|
+
# @return [String]
|
|
3306
|
+
#
|
|
3307
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/OutputConfiguration AWS API Documentation
|
|
3308
|
+
#
|
|
3309
|
+
class OutputConfiguration < Struct.new(
|
|
3310
|
+
:s3_uri)
|
|
3311
|
+
SENSITIVE = []
|
|
3312
|
+
include Aws::Structure
|
|
3313
|
+
end
|
|
3314
|
+
|
|
3315
|
+
# Controls the format of the extraction output, including the text
|
|
3316
|
+
# format and any additional file formats.
|
|
3317
|
+
#
|
|
3318
|
+
# @!attribute [rw] additional_file_format
|
|
3319
|
+
# Controls whether an additional file format is produced alongside the
|
|
3320
|
+
# primary output.
|
|
3321
|
+
# @return [Types::OutputAdditionalFileFormat]
|
|
3322
|
+
#
|
|
3323
|
+
# @!attribute [rw] text_format
|
|
3324
|
+
# Controls the text formats produced in the extraction output.
|
|
3325
|
+
# @return [Types::OutputTextFormat]
|
|
3326
|
+
#
|
|
3327
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/OutputFormat AWS API Documentation
|
|
3328
|
+
#
|
|
3329
|
+
class OutputFormat < Struct.new(
|
|
3330
|
+
:additional_file_format,
|
|
3331
|
+
:text_format)
|
|
3332
|
+
SENSITIVE = []
|
|
3333
|
+
include Aws::Structure
|
|
3334
|
+
end
|
|
3335
|
+
|
|
3336
|
+
# Specifies the text formats produced in the extraction output.
|
|
3337
|
+
#
|
|
3338
|
+
# @!attribute [rw] types
|
|
3339
|
+
# The text formats produced in the extraction output. Each type can
|
|
3340
|
+
# appear only once, and `CSV` can't be the only type.
|
|
3341
|
+
# @return [Array<String>]
|
|
3342
|
+
#
|
|
3343
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/OutputTextFormat AWS API Documentation
|
|
3344
|
+
#
|
|
3345
|
+
class OutputTextFormat < Struct.new(
|
|
3346
|
+
:types)
|
|
3347
|
+
SENSITIVE = []
|
|
3348
|
+
include Aws::Structure
|
|
3349
|
+
end
|
|
3350
|
+
|
|
3351
|
+
# Specifies which personally identifiable information (PII) entity types
|
|
3352
|
+
# to detect and how to mask them.
|
|
3353
|
+
#
|
|
3354
|
+
# @!attribute [rw] pii_entity_types
|
|
3355
|
+
# The list of PII entity types to detect. Each type can appear only
|
|
3356
|
+
# once.
|
|
3357
|
+
# @return [Array<String>]
|
|
3358
|
+
#
|
|
3359
|
+
# @!attribute [rw] redaction_mask_mode
|
|
3360
|
+
# How detected PII is masked in the redacted output.
|
|
3361
|
+
# @return [String]
|
|
3362
|
+
#
|
|
3363
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/PIIEntitiesConfiguration AWS API Documentation
|
|
3364
|
+
#
|
|
3365
|
+
class PIIEntitiesConfiguration < Struct.new(
|
|
3366
|
+
:pii_entity_types,
|
|
3367
|
+
:redaction_mask_mode)
|
|
3368
|
+
SENSITIVE = []
|
|
3369
|
+
include Aws::Structure
|
|
3370
|
+
end
|
|
3371
|
+
|
|
2489
3372
|
# The class assigned to a Page object detected in an input document.
|
|
2490
3373
|
# Contains information regarding the predicted type/class of a
|
|
2491
3374
|
# document's page and the page number that the Page object was detected
|
|
@@ -2559,6 +3442,49 @@ module Aws::Textract
|
|
|
2559
3442
|
include Aws::Structure
|
|
2560
3443
|
end
|
|
2561
3444
|
|
|
3445
|
+
# A filter used to limit results to a specific project.
|
|
3446
|
+
#
|
|
3447
|
+
# @!attribute [rw] project_arn
|
|
3448
|
+
# The Amazon Resource Name (ARN) of the project to filter by.
|
|
3449
|
+
# @return [String]
|
|
3450
|
+
#
|
|
3451
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ProjectFilter AWS API Documentation
|
|
3452
|
+
#
|
|
3453
|
+
class ProjectFilter < Struct.new(
|
|
3454
|
+
:project_arn)
|
|
3455
|
+
SENSITIVE = []
|
|
3456
|
+
include Aws::Structure
|
|
3457
|
+
end
|
|
3458
|
+
|
|
3459
|
+
# A summary of a project, returned in the results of `ListProjects`.
|
|
3460
|
+
#
|
|
3461
|
+
# @!attribute [rw] project_arn
|
|
3462
|
+
# The Amazon Resource Name (ARN) of the project.
|
|
3463
|
+
# @return [String]
|
|
3464
|
+
#
|
|
3465
|
+
# @!attribute [rw] project_name
|
|
3466
|
+
# The name of the project.
|
|
3467
|
+
# @return [String]
|
|
3468
|
+
#
|
|
3469
|
+
# @!attribute [rw] creation_time
|
|
3470
|
+
# The date and time that the project was created.
|
|
3471
|
+
# @return [Time]
|
|
3472
|
+
#
|
|
3473
|
+
# @!attribute [rw] last_modified_time
|
|
3474
|
+
# The date and time that the project was last modified.
|
|
3475
|
+
# @return [Time]
|
|
3476
|
+
#
|
|
3477
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ProjectSummary AWS API Documentation
|
|
3478
|
+
#
|
|
3479
|
+
class ProjectSummary < Struct.new(
|
|
3480
|
+
:project_arn,
|
|
3481
|
+
:project_name,
|
|
3482
|
+
:creation_time,
|
|
3483
|
+
:last_modified_time)
|
|
3484
|
+
SENSITIVE = []
|
|
3485
|
+
include Aws::Structure
|
|
3486
|
+
end
|
|
3487
|
+
|
|
2562
3488
|
# The number of requests exceeded your throughput limit. If you want to
|
|
2563
3489
|
# increase this limit, contact Amazon Textract.
|
|
2564
3490
|
#
|
|
@@ -2707,6 +3633,35 @@ module Aws::Textract
|
|
|
2707
3633
|
include Aws::Structure
|
|
2708
3634
|
end
|
|
2709
3635
|
|
|
3636
|
+
# Controls detection and redaction of sensitive data, such as personally
|
|
3637
|
+
# identifiable information (PII), in the output.
|
|
3638
|
+
#
|
|
3639
|
+
# @!attribute [rw] detection_mode
|
|
3640
|
+
# The detection mode. Valid values:
|
|
3641
|
+
#
|
|
3642
|
+
# * `DETECTION` - Only detects sensitive data.
|
|
3643
|
+
#
|
|
3644
|
+
# * `DETECTION_AND_REDACTION` - Detects and redacts sensitive data in
|
|
3645
|
+
# the output.
|
|
3646
|
+
#
|
|
3647
|
+
# * `DISABLED` - Does not detect sensitive data.
|
|
3648
|
+
# @return [String]
|
|
3649
|
+
#
|
|
3650
|
+
# @!attribute [rw] pii_entities_configuration
|
|
3651
|
+
# The configuration that specifies which PII entity types to detect
|
|
3652
|
+
# and how to mask them. If you omit it, Amazon Textract detects all
|
|
3653
|
+
# PII entity types (`ALL`) and masks them with `ENTITY_TYPE`.
|
|
3654
|
+
# @return [Types::PIIEntitiesConfiguration]
|
|
3655
|
+
#
|
|
3656
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/SensitiveDataConfiguration AWS API Documentation
|
|
3657
|
+
#
|
|
3658
|
+
class SensitiveDataConfiguration < Struct.new(
|
|
3659
|
+
:detection_mode,
|
|
3660
|
+
:pii_entities_configuration)
|
|
3661
|
+
SENSITIVE = []
|
|
3662
|
+
include Aws::Structure
|
|
3663
|
+
end
|
|
3664
|
+
|
|
2710
3665
|
# Returned when a request cannot be completed as it would exceed a
|
|
2711
3666
|
# maximum service quota.
|
|
2712
3667
|
#
|
|
@@ -2758,6 +3713,22 @@ module Aws::Textract
|
|
|
2758
3713
|
include Aws::Structure
|
|
2759
3714
|
end
|
|
2760
3715
|
|
|
3716
|
+
# Controls whether a multi-document packet is split into individual
|
|
3717
|
+
# documents before analysis.
|
|
3718
|
+
#
|
|
3719
|
+
# @!attribute [rw] state
|
|
3720
|
+
# Set to `ENABLED` to split multi-document packets, or `DISABLED` to
|
|
3721
|
+
# treat the input as a single document.
|
|
3722
|
+
# @return [String]
|
|
3723
|
+
#
|
|
3724
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/SplitterConfiguration AWS API Documentation
|
|
3725
|
+
#
|
|
3726
|
+
class SplitterConfiguration < Struct.new(
|
|
3727
|
+
:state)
|
|
3728
|
+
SENSITIVE = []
|
|
3729
|
+
include Aws::Structure
|
|
3730
|
+
end
|
|
3731
|
+
|
|
2761
3732
|
# @!attribute [rw] document_location
|
|
2762
3733
|
# The location of the document to be processed.
|
|
2763
3734
|
# @return [Types::DocumentLocation]
|
|
@@ -2848,6 +3819,66 @@ module Aws::Textract
|
|
|
2848
3819
|
include Aws::Structure
|
|
2849
3820
|
end
|
|
2850
3821
|
|
|
3822
|
+
# @!attribute [rw] input_configuration
|
|
3823
|
+
# The Amazon S3 location of the input document to analyze.
|
|
3824
|
+
# @return [Types::InputConfiguration]
|
|
3825
|
+
#
|
|
3826
|
+
# @!attribute [rw] output_configuration
|
|
3827
|
+
# The Amazon S3 location where the analysis results are written.
|
|
3828
|
+
# @return [Types::OutputConfiguration]
|
|
3829
|
+
#
|
|
3830
|
+
# @!attribute [rw] project_arn
|
|
3831
|
+
# The Amazon Resource Name (ARN) of the project whose configuration is
|
|
3832
|
+
# used to analyze the document.
|
|
3833
|
+
# @return [String]
|
|
3834
|
+
#
|
|
3835
|
+
# @!attribute [rw] blueprints
|
|
3836
|
+
# The blueprints used to extract custom structured output from the
|
|
3837
|
+
# document.
|
|
3838
|
+
# @return [Array<Types::BlueprintItem>]
|
|
3839
|
+
#
|
|
3840
|
+
# @!attribute [rw] encryption_configuration
|
|
3841
|
+
# The AWS KMS encryption configuration used to encrypt the analysis
|
|
3842
|
+
# output. If you don't specify a value, Amazon Textract encrypts the
|
|
3843
|
+
# output using an AWS owned key.
|
|
3844
|
+
# @return [Types::EncryptionConfiguration]
|
|
3845
|
+
#
|
|
3846
|
+
# @!attribute [rw] notification_configuration
|
|
3847
|
+
# Notification settings for the job.
|
|
3848
|
+
# @return [Types::NotificationConfiguration]
|
|
3849
|
+
#
|
|
3850
|
+
# @!attribute [rw] tags
|
|
3851
|
+
# A set of tags (key-value pairs) to assign to the document insights
|
|
3852
|
+
# job.
|
|
3853
|
+
# @return [Hash<String,String>]
|
|
3854
|
+
#
|
|
3855
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/StartDocumentInsightsRequest AWS API Documentation
|
|
3856
|
+
#
|
|
3857
|
+
class StartDocumentInsightsRequest < Struct.new(
|
|
3858
|
+
:input_configuration,
|
|
3859
|
+
:output_configuration,
|
|
3860
|
+
:project_arn,
|
|
3861
|
+
:blueprints,
|
|
3862
|
+
:encryption_configuration,
|
|
3863
|
+
:notification_configuration,
|
|
3864
|
+
:tags)
|
|
3865
|
+
SENSITIVE = []
|
|
3866
|
+
include Aws::Structure
|
|
3867
|
+
end
|
|
3868
|
+
|
|
3869
|
+
# @!attribute [rw] job_arn
|
|
3870
|
+
# The Amazon Resource Name (ARN) of the document insights job that was
|
|
3871
|
+
# started. Use it with GetDocumentInsights to retrieve the results.
|
|
3872
|
+
# @return [String]
|
|
3873
|
+
#
|
|
3874
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/StartDocumentInsightsResponse AWS API Documentation
|
|
3875
|
+
#
|
|
3876
|
+
class StartDocumentInsightsResponse < Struct.new(
|
|
3877
|
+
:job_arn)
|
|
3878
|
+
SENSITIVE = []
|
|
3879
|
+
include Aws::Structure
|
|
3880
|
+
end
|
|
3881
|
+
|
|
2851
3882
|
# @!attribute [rw] document_location
|
|
2852
3883
|
# The location of the document to be processed.
|
|
2853
3884
|
# @return [Types::DocumentLocation]
|
|
@@ -3089,6 +4120,20 @@ module Aws::Textract
|
|
|
3089
4120
|
include Aws::Structure
|
|
3090
4121
|
end
|
|
3091
4122
|
|
|
4123
|
+
# Controls whether a generative summary of the document is produced.
|
|
4124
|
+
#
|
|
4125
|
+
# @!attribute [rw] state
|
|
4126
|
+
# Set to `ENABLED` to produce a summary, or `DISABLED` to omit it.
|
|
4127
|
+
# @return [String]
|
|
4128
|
+
#
|
|
4129
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/SummarizationConfiguration AWS API Documentation
|
|
4130
|
+
#
|
|
4131
|
+
class SummarizationConfiguration < Struct.new(
|
|
4132
|
+
:state)
|
|
4133
|
+
SENSITIVE = []
|
|
4134
|
+
include Aws::Structure
|
|
4135
|
+
end
|
|
4136
|
+
|
|
3092
4137
|
# @!attribute [rw] resource_arn
|
|
3093
4138
|
# The Amazon Resource Name (ARN) that specifies the resource to be
|
|
3094
4139
|
# tagged.
|
|
@@ -3232,6 +4277,118 @@ module Aws::Textract
|
|
|
3232
4277
|
include Aws::Structure
|
|
3233
4278
|
end
|
|
3234
4279
|
|
|
4280
|
+
# @!attribute [rw] blueprint_arn
|
|
4281
|
+
# The Amazon Resource Name (ARN) of the blueprint to update.
|
|
4282
|
+
# @return [String]
|
|
4283
|
+
#
|
|
4284
|
+
# @!attribute [rw] schema
|
|
4285
|
+
# The updated schema of the blueprint, which defines the fields to
|
|
4286
|
+
# extract and their expected structure.
|
|
4287
|
+
# @return [String]
|
|
4288
|
+
#
|
|
4289
|
+
# @!attribute [rw] encryption_configuration
|
|
4290
|
+
# The AWS KMS encryption configuration used to encrypt the blueprint
|
|
4291
|
+
# at rest.
|
|
4292
|
+
# @return [Types::EncryptionConfiguration]
|
|
4293
|
+
#
|
|
4294
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/UpdateBlueprintRequest AWS API Documentation
|
|
4295
|
+
#
|
|
4296
|
+
class UpdateBlueprintRequest < Struct.new(
|
|
4297
|
+
:blueprint_arn,
|
|
4298
|
+
:schema,
|
|
4299
|
+
:encryption_configuration)
|
|
4300
|
+
SENSITIVE = []
|
|
4301
|
+
include Aws::Structure
|
|
4302
|
+
end
|
|
4303
|
+
|
|
4304
|
+
# @!attribute [rw] blueprint_arn
|
|
4305
|
+
# The Amazon Resource Name (ARN) of the blueprint that was updated.
|
|
4306
|
+
# @return [String]
|
|
4307
|
+
#
|
|
4308
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/UpdateBlueprintResponse AWS API Documentation
|
|
4309
|
+
#
|
|
4310
|
+
class UpdateBlueprintResponse < Struct.new(
|
|
4311
|
+
:blueprint_arn)
|
|
4312
|
+
SENSITIVE = []
|
|
4313
|
+
include Aws::Structure
|
|
4314
|
+
end
|
|
4315
|
+
|
|
4316
|
+
# @!attribute [rw] project_arn
|
|
4317
|
+
# The Amazon Resource Name (ARN) of the project to update.
|
|
4318
|
+
# @return [String]
|
|
4319
|
+
#
|
|
4320
|
+
# @!attribute [rw] project_description
|
|
4321
|
+
# The updated description of the project.
|
|
4322
|
+
# @return [String]
|
|
4323
|
+
#
|
|
4324
|
+
# @!attribute [rw] extraction_configuration
|
|
4325
|
+
# The configuration that controls how Amazon Textract extracts content
|
|
4326
|
+
# from the document, including bounding boxes, granularity, and output
|
|
4327
|
+
# format. Replaces the stored extraction configuration.
|
|
4328
|
+
# @return [Types::ExtractionConfiguration]
|
|
4329
|
+
#
|
|
4330
|
+
# @!attribute [rw] generative_configuration
|
|
4331
|
+
# The configuration that controls generative capabilities such as
|
|
4332
|
+
# summarization and figure captioning. Replaces the stored generative
|
|
4333
|
+
# configuration, so a capability that you omit is turned off.
|
|
4334
|
+
# @return [Types::GenerativeConfiguration]
|
|
4335
|
+
#
|
|
4336
|
+
# @!attribute [rw] custom_configuration
|
|
4337
|
+
# The configuration that associates blueprints with the project for
|
|
4338
|
+
# custom output extraction. Replaces the stored custom configuration.
|
|
4339
|
+
# To disable custom configuration, specify an empty `Blueprints` list.
|
|
4340
|
+
# @return [Types::CustomConfiguration]
|
|
4341
|
+
#
|
|
4342
|
+
# @!attribute [rw] splitter_configuration
|
|
4343
|
+
# The configuration that controls whether multi-document packets are
|
|
4344
|
+
# split into individual documents. Replaces the stored splitter
|
|
4345
|
+
# configuration.
|
|
4346
|
+
# @return [Types::SplitterConfiguration]
|
|
4347
|
+
#
|
|
4348
|
+
# @!attribute [rw] sensitive_data_configuration
|
|
4349
|
+
# The configuration that controls detection and redaction of sensitive
|
|
4350
|
+
# data, such as personally identifiable information (PII). Replaces
|
|
4351
|
+
# the stored sensitive data configuration. To turn off detection, set
|
|
4352
|
+
# `DetectionMode` to `DISABLED`.
|
|
4353
|
+
# @return [Types::SensitiveDataConfiguration]
|
|
4354
|
+
#
|
|
4355
|
+
# @!attribute [rw] encryption_configuration
|
|
4356
|
+
# The AWS KMS encryption configuration used to encrypt the project at
|
|
4357
|
+
# rest.
|
|
4358
|
+
# @return [Types::EncryptionConfiguration]
|
|
4359
|
+
#
|
|
4360
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/UpdateProjectRequest AWS API Documentation
|
|
4361
|
+
#
|
|
4362
|
+
class UpdateProjectRequest < Struct.new(
|
|
4363
|
+
:project_arn,
|
|
4364
|
+
:project_description,
|
|
4365
|
+
:extraction_configuration,
|
|
4366
|
+
:generative_configuration,
|
|
4367
|
+
:custom_configuration,
|
|
4368
|
+
:splitter_configuration,
|
|
4369
|
+
:sensitive_data_configuration,
|
|
4370
|
+
:encryption_configuration)
|
|
4371
|
+
SENSITIVE = []
|
|
4372
|
+
include Aws::Structure
|
|
4373
|
+
end
|
|
4374
|
+
|
|
4375
|
+
# @!attribute [rw] project_arn
|
|
4376
|
+
# The Amazon Resource Name (ARN) of the project that was updated.
|
|
4377
|
+
# @return [String]
|
|
4378
|
+
#
|
|
4379
|
+
# @!attribute [rw] status
|
|
4380
|
+
# The status of the project after the update.
|
|
4381
|
+
# @return [String]
|
|
4382
|
+
#
|
|
4383
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/UpdateProjectResponse AWS API Documentation
|
|
4384
|
+
#
|
|
4385
|
+
class UpdateProjectResponse < Struct.new(
|
|
4386
|
+
:project_arn,
|
|
4387
|
+
:status)
|
|
4388
|
+
SENSITIVE = []
|
|
4389
|
+
include Aws::Structure
|
|
4390
|
+
end
|
|
4391
|
+
|
|
3235
4392
|
# Indicates that a request was not valid. Check request for proper
|
|
3236
4393
|
# formatting.
|
|
3237
4394
|
#
|