aws-sdk-textract 1.108.0 → 1.110.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1089,6 +1089,241 @@ module Aws::Textract
1089
1089
  req.send_request(options)
1090
1090
  end
1091
1091
 
1092
+ # Creates a blueprint that defines the schema Amazon Textract uses to
1093
+ # extract structured data from a document during a document insights
1094
+ # job. A blueprint describes the fields to extract and how to normalize
1095
+ # them.
1096
+ #
1097
+ # @option params [String] :client_request_token
1098
+ # A unique, case-sensitive identifier that you provide to ensure that
1099
+ # the operation completes no more than one time. If you use the same
1100
+ # token for a request that matches a previous request, the service
1101
+ # ignores the request, but does not return an error.
1102
+ #
1103
+ # **A suitable default value is auto-generated.** You should normally
1104
+ # not need to pass this option.**
1105
+ #
1106
+ # @option params [required, String] :blueprint_name
1107
+ # A unique name for the blueprint.
1108
+ #
1109
+ # @option params [required, String] :schema
1110
+ # The schema of the blueprint, which defines the fields to extract and
1111
+ # their expected structure.
1112
+ #
1113
+ # @option params [Types::EncryptionConfiguration] :encryption_configuration
1114
+ # The AWS KMS encryption configuration used to encrypt the blueprint at
1115
+ # rest.
1116
+ #
1117
+ # @option params [Hash<String,String>] :tags
1118
+ # A set of tags (key-value pairs) to assign to the blueprint.
1119
+ #
1120
+ # @return [Types::CreateBlueprintResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1121
+ #
1122
+ # * {Types::CreateBlueprintResponse#blueprint_arn #blueprint_arn} => String
1123
+ #
1124
+ # @example Request syntax with placeholder values
1125
+ #
1126
+ # resp = client.create_blueprint({
1127
+ # client_request_token: "ClientRequestToken",
1128
+ # blueprint_name: "BlueprintName", # required
1129
+ # schema: "BlueprintSchema", # required
1130
+ # encryption_configuration: {
1131
+ # kms_key_id: "EncryptionKmsKeyId", # required
1132
+ # kms_encryption_context: {
1133
+ # "EncryptionContextKey" => "EncryptionContextValue",
1134
+ # },
1135
+ # },
1136
+ # tags: {
1137
+ # "TagKey" => "TagValue",
1138
+ # },
1139
+ # })
1140
+ #
1141
+ # @example Response structure
1142
+ #
1143
+ # resp.blueprint_arn #=> String
1144
+ #
1145
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/CreateBlueprint AWS API Documentation
1146
+ #
1147
+ # @overload create_blueprint(params = {})
1148
+ # @param [Hash] params ({})
1149
+ def create_blueprint(params = {}, options = {})
1150
+ req = build_request(:create_blueprint, params)
1151
+ req.send_request(options)
1152
+ end
1153
+
1154
+ # Creates a new, immutable version of an existing blueprint so that
1155
+ # projects can pin to a specific version.
1156
+ #
1157
+ # @option params [required, String] :blueprint_arn
1158
+ # The Amazon Resource Name (ARN) of the blueprint to create a new
1159
+ # version of.
1160
+ #
1161
+ # @option params [String] :client_request_token
1162
+ # A unique, case-sensitive identifier that you provide to ensure that
1163
+ # the operation completes no more than one time. If you use the same
1164
+ # token for a request that matches a previous request, the service
1165
+ # ignores the request, but does not return an error.
1166
+ #
1167
+ # **A suitable default value is auto-generated.** You should normally
1168
+ # not need to pass this option.**
1169
+ #
1170
+ # @return [Types::CreateBlueprintVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1171
+ #
1172
+ # * {Types::CreateBlueprintVersionResponse#blueprint_arn #blueprint_arn} => String
1173
+ # * {Types::CreateBlueprintVersionResponse#blueprint_version #blueprint_version} => String
1174
+ #
1175
+ # @example Request syntax with placeholder values
1176
+ #
1177
+ # resp = client.create_blueprint_version({
1178
+ # blueprint_arn: "BlueprintArn", # required
1179
+ # client_request_token: "ClientRequestToken",
1180
+ # })
1181
+ #
1182
+ # @example Response structure
1183
+ #
1184
+ # resp.blueprint_arn #=> String
1185
+ # resp.blueprint_version #=> String
1186
+ #
1187
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/CreateBlueprintVersion AWS API Documentation
1188
+ #
1189
+ # @overload create_blueprint_version(params = {})
1190
+ # @param [Hash] params ({})
1191
+ def create_blueprint_version(params = {}, options = {})
1192
+ req = build_request(:create_blueprint_version, params)
1193
+ req.send_request(options)
1194
+ end
1195
+
1196
+ # Creates a project that groups the configuration used to run document
1197
+ # insights jobs.
1198
+ #
1199
+ # @option params [String] :client_request_token
1200
+ # A unique, case-sensitive identifier that you provide to ensure that
1201
+ # the operation completes no more than one time. If you use the same
1202
+ # token for a request that matches a previous request, the service
1203
+ # ignores the request, but does not return an error.
1204
+ #
1205
+ # **A suitable default value is auto-generated.** You should normally
1206
+ # not need to pass this option.**
1207
+ #
1208
+ # @option params [required, String] :project_name
1209
+ # A unique name for the project.
1210
+ #
1211
+ # @option params [String] :project_description
1212
+ # A description of the project.
1213
+ #
1214
+ # @option params [required, Types::ExtractionConfiguration] :extraction_configuration
1215
+ # The configuration that controls how Amazon Textract extracts content
1216
+ # from the document, including bounding boxes, granularity, and output
1217
+ # format.
1218
+ #
1219
+ # @option params [Types::GenerativeConfiguration] :generative_configuration
1220
+ # The configuration that controls generative capabilities such as
1221
+ # summarization and figure captioning.
1222
+ #
1223
+ # @option params [Types::CustomConfiguration] :custom_configuration
1224
+ # The configuration that associates blueprints with the project for
1225
+ # custom output extraction.
1226
+ #
1227
+ # @option params [Types::SplitterConfiguration] :splitter_configuration
1228
+ # The configuration that controls whether multi-document packets are
1229
+ # split into individual documents.
1230
+ #
1231
+ # @option params [Types::SensitiveDataConfiguration] :sensitive_data_configuration
1232
+ # The configuration that controls detection and redaction of sensitive
1233
+ # data, such as personally identifiable information (PII).
1234
+ #
1235
+ # @option params [Types::EncryptionConfiguration] :encryption_configuration
1236
+ # The AWS KMS encryption configuration used to encrypt the project at
1237
+ # rest. If you don't specify a value, Amazon Textract encrypts the
1238
+ # project using an AWS owned key.
1239
+ #
1240
+ # @option params [Hash<String,String>] :tags
1241
+ # A set of tags (key-value pairs) to assign to the project.
1242
+ #
1243
+ # @return [Types::CreateProjectResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1244
+ #
1245
+ # * {Types::CreateProjectResponse#project_arn #project_arn} => String
1246
+ # * {Types::CreateProjectResponse#status #status} => String
1247
+ #
1248
+ # @example Request syntax with placeholder values
1249
+ #
1250
+ # resp = client.create_project({
1251
+ # client_request_token: "ClientRequestToken",
1252
+ # project_name: "ProjectName", # required
1253
+ # project_description: "ProjectDescription",
1254
+ # extraction_configuration: { # required
1255
+ # bounding_box: { # required
1256
+ # state: "ENABLED", # required, accepts ENABLED, DISABLED
1257
+ # },
1258
+ # granularity: { # required
1259
+ # types: ["DOCUMENT"], # accepts DOCUMENT, PAGE, ELEMENT, WORD, LINE
1260
+ # },
1261
+ # output_format: { # required
1262
+ # additional_file_format: { # required
1263
+ # state: "ENABLED", # required, accepts ENABLED, DISABLED
1264
+ # },
1265
+ # text_format: { # required
1266
+ # types: ["PLAIN_TEXT"], # accepts PLAIN_TEXT, MARKDOWN, HTML, CSV
1267
+ # },
1268
+ # },
1269
+ # },
1270
+ # generative_configuration: {
1271
+ # summarization: {
1272
+ # state: "ENABLED", # required, accepts ENABLED, DISABLED
1273
+ # },
1274
+ # figure_caption: {
1275
+ # state: "ENABLED", # required, accepts ENABLED, DISABLED
1276
+ # },
1277
+ # },
1278
+ # custom_configuration: {
1279
+ # blueprints: [ # required
1280
+ # {
1281
+ # blueprint_arn: "BlueprintArn", # required
1282
+ # blueprint_version: "BlueprintVersion",
1283
+ # },
1284
+ # ],
1285
+ # fallback_blueprints: [
1286
+ # {
1287
+ # blueprint_arn: "BlueprintArn", # required
1288
+ # blueprint_version: "BlueprintVersion",
1289
+ # },
1290
+ # ],
1291
+ # },
1292
+ # splitter_configuration: {
1293
+ # state: "ENABLED", # required, accepts ENABLED, DISABLED
1294
+ # },
1295
+ # sensitive_data_configuration: {
1296
+ # detection_mode: "DETECTION", # required, accepts DETECTION, DETECTION_AND_REDACTION, DISABLED
1297
+ # pii_entities_configuration: {
1298
+ # pii_entity_types: ["ALL"], # required, accepts ALL, ADDRESS, AGE, NAME, EMAIL, PHONE, USERNAME, PASSWORD, DRIVER_ID, LICENSE_PLATE, VEHICLE_IDENTIFICATION_NUMBER, CREDIT_DEBIT_CARD_CVV, CREDIT_DEBIT_CARD_EXPIRY, CREDIT_DEBIT_CARD_NUMBER, PIN, INTERNATIONAL_BANK_ACCOUNT_NUMBER, SWIFT_CODE, IP_ADDRESS, MAC_ADDRESS, URL, AWS_ACCESS_KEY, AWS_SECRET_KEY, US_BANK_ACCOUNT_NUMBER, US_BANK_ROUTING_NUMBER, US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER, US_PASSPORT_NUMBER, US_SOCIAL_SECURITY_NUMBER, CA_HEALTH_NUMBER, CA_SOCIAL_INSURANCE_NUMBER, UK_NATIONAL_HEALTH_SERVICE_NUMBER, UK_NATIONAL_INSURANCE_NUMBER, UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER
1299
+ # redaction_mask_mode: "PII", # required, accepts PII, ENTITY_TYPE
1300
+ # },
1301
+ # },
1302
+ # encryption_configuration: {
1303
+ # kms_key_id: "EncryptionKmsKeyId", # required
1304
+ # kms_encryption_context: {
1305
+ # "EncryptionContextKey" => "EncryptionContextValue",
1306
+ # },
1307
+ # },
1308
+ # tags: {
1309
+ # "TagKey" => "TagValue",
1310
+ # },
1311
+ # })
1312
+ #
1313
+ # @example Response structure
1314
+ #
1315
+ # resp.project_arn #=> String
1316
+ # resp.status #=> String, one of "COMPLETED", "FAILED"
1317
+ #
1318
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/CreateProject AWS API Documentation
1319
+ #
1320
+ # @overload create_project(params = {})
1321
+ # @param [Hash] params ({})
1322
+ def create_project(params = {}, options = {})
1323
+ req = build_request(:create_project, params)
1324
+ req.send_request(options)
1325
+ end
1326
+
1092
1327
  # Deletes an Amazon Textract adapter. Takes an AdapterId and deletes the
1093
1328
  # adapter specified by the ID.
1094
1329
  #
@@ -1141,6 +1376,55 @@ module Aws::Textract
1141
1376
  req.send_request(options)
1142
1377
  end
1143
1378
 
1379
+ # Deletes a blueprint, or a specific version of a blueprint.
1380
+ #
1381
+ # @option params [required, String] :blueprint_arn
1382
+ # The Amazon Resource Name (ARN) of the blueprint to delete.
1383
+ #
1384
+ # @option params [String] :blueprint_version
1385
+ # The version of the blueprint to delete. If omitted, the entire
1386
+ # blueprint and all of its versions are deleted.
1387
+ #
1388
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1389
+ #
1390
+ # @example Request syntax with placeholder values
1391
+ #
1392
+ # resp = client.delete_blueprint({
1393
+ # blueprint_arn: "BlueprintArn", # required
1394
+ # blueprint_version: "BlueprintVersion",
1395
+ # })
1396
+ #
1397
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/DeleteBlueprint AWS API Documentation
1398
+ #
1399
+ # @overload delete_blueprint(params = {})
1400
+ # @param [Hash] params ({})
1401
+ def delete_blueprint(params = {}, options = {})
1402
+ req = build_request(:delete_blueprint, params)
1403
+ req.send_request(options)
1404
+ end
1405
+
1406
+ # Deletes a project.
1407
+ #
1408
+ # @option params [required, String] :project_arn
1409
+ # The Amazon Resource Name (ARN) of the project to delete.
1410
+ #
1411
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1412
+ #
1413
+ # @example Request syntax with placeholder values
1414
+ #
1415
+ # resp = client.delete_project({
1416
+ # project_arn: "ProjectArn", # required
1417
+ # })
1418
+ #
1419
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/DeleteProject AWS API Documentation
1420
+ #
1421
+ # @overload delete_project(params = {})
1422
+ # @param [Hash] params ({})
1423
+ def delete_project(params = {}, options = {})
1424
+ req = build_request(:delete_project, params)
1425
+ req.send_request(options)
1426
+ end
1427
+
1144
1428
  # Detects text in the input document. Amazon Textract can detect lines
1145
1429
  # of text and the words that make up a line of text. The input document
1146
1430
  # must be in one of the following image formats: JPEG, PNG, PDF, or
@@ -1347,6 +1631,55 @@ module Aws::Textract
1347
1631
  req.send_request(options)
1348
1632
  end
1349
1633
 
1634
+ # Gets the details of a blueprint, including its schema, encryption
1635
+ # settings, and timestamps.
1636
+ #
1637
+ # @option params [required, String] :blueprint_arn
1638
+ # The Amazon Resource Name (ARN) of the blueprint to retrieve.
1639
+ #
1640
+ # @option params [String] :blueprint_version
1641
+ # The version of the blueprint to retrieve. If omitted, the latest
1642
+ # version is returned.
1643
+ #
1644
+ # @return [Types::GetBlueprintResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1645
+ #
1646
+ # * {Types::GetBlueprintResponse#blueprint_arn #blueprint_arn} => String
1647
+ # * {Types::GetBlueprintResponse#blueprint_name #blueprint_name} => String
1648
+ # * {Types::GetBlueprintResponse#blueprint_version #blueprint_version} => String
1649
+ # * {Types::GetBlueprintResponse#schema #schema} => String
1650
+ # * {Types::GetBlueprintResponse#kms_key_id #kms_key_id} => String
1651
+ # * {Types::GetBlueprintResponse#kms_encryption_context #kms_encryption_context} => Hash&lt;String,String&gt;
1652
+ # * {Types::GetBlueprintResponse#creation_time #creation_time} => Time
1653
+ # * {Types::GetBlueprintResponse#last_modified_time #last_modified_time} => Time
1654
+ #
1655
+ # @example Request syntax with placeholder values
1656
+ #
1657
+ # resp = client.get_blueprint({
1658
+ # blueprint_arn: "BlueprintArn", # required
1659
+ # blueprint_version: "BlueprintVersion",
1660
+ # })
1661
+ #
1662
+ # @example Response structure
1663
+ #
1664
+ # resp.blueprint_arn #=> String
1665
+ # resp.blueprint_name #=> String
1666
+ # resp.blueprint_version #=> String
1667
+ # resp.schema #=> String
1668
+ # resp.kms_key_id #=> String
1669
+ # resp.kms_encryption_context #=> Hash
1670
+ # resp.kms_encryption_context["EncryptionContextKey"] #=> String
1671
+ # resp.creation_time #=> Time
1672
+ # resp.last_modified_time #=> Time
1673
+ #
1674
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/GetBlueprint AWS API Documentation
1675
+ #
1676
+ # @overload get_blueprint(params = {})
1677
+ # @param [Hash] params ({})
1678
+ def get_blueprint(params = {}, options = {})
1679
+ req = build_request(:get_blueprint, params)
1680
+ req.send_request(options)
1681
+ end
1682
+
1350
1683
  # Gets the results for an Amazon Textract asynchronous operation that
1351
1684
  # analyzes text in a document.
1352
1685
  #
@@ -1498,6 +1831,42 @@ module Aws::Textract
1498
1831
  req.send_request(options)
1499
1832
  end
1500
1833
 
1834
+ # Gets the status and results of a document insights job that was
1835
+ # started by StartDocumentInsights.
1836
+ #
1837
+ # @option params [required, String] :job_arn
1838
+ # The Amazon Resource Name (ARN) of the document insights job to
1839
+ # retrieve.
1840
+ #
1841
+ # @return [Types::GetDocumentInsightsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1842
+ #
1843
+ # * {Types::GetDocumentInsightsResponse#status #status} => String
1844
+ # * {Types::GetDocumentInsightsResponse#output_configuration #output_configuration} => Types::OutputConfiguration
1845
+ # * {Types::GetDocumentInsightsResponse#error_type #error_type} => String
1846
+ # * {Types::GetDocumentInsightsResponse#error_message #error_message} => String
1847
+ #
1848
+ # @example Request syntax with placeholder values
1849
+ #
1850
+ # resp = client.get_document_insights({
1851
+ # job_arn: "JobArn", # required
1852
+ # })
1853
+ #
1854
+ # @example Response structure
1855
+ #
1856
+ # resp.status #=> String, one of "IN_PROGRESS", "SUCCEEDED", "FAILED", "PARTIAL_SUCCESS"
1857
+ # resp.output_configuration.s3_uri #=> String
1858
+ # resp.error_type #=> String
1859
+ # resp.error_message #=> String
1860
+ #
1861
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/GetDocumentInsights AWS API Documentation
1862
+ #
1863
+ # @overload get_document_insights(params = {})
1864
+ # @param [Hash] params ({})
1865
+ def get_document_insights(params = {}, options = {})
1866
+ req = build_request(:get_document_insights, params)
1867
+ req.send_request(options)
1868
+ end
1869
+
1501
1870
  # Gets the results for an Amazon Textract asynchronous operation that
1502
1871
  # detects text in a document. Amazon Textract can detect lines of text
1503
1872
  # and the words that make up a line of text.
@@ -2120,6 +2489,73 @@ module Aws::Textract
2120
2489
  req.send_request(options)
2121
2490
  end
2122
2491
 
2492
+ # Gets the details of a project, including its configuration, status,
2493
+ # and timestamps.
2494
+ #
2495
+ # @option params [required, String] :project_arn
2496
+ # The Amazon Resource Name (ARN) of the project to retrieve.
2497
+ #
2498
+ # @return [Types::GetProjectResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2499
+ #
2500
+ # * {Types::GetProjectResponse#project_arn #project_arn} => String
2501
+ # * {Types::GetProjectResponse#project_name #project_name} => String
2502
+ # * {Types::GetProjectResponse#project_description #project_description} => String
2503
+ # * {Types::GetProjectResponse#status #status} => String
2504
+ # * {Types::GetProjectResponse#extraction_configuration #extraction_configuration} => Types::ExtractionConfiguration
2505
+ # * {Types::GetProjectResponse#generative_configuration #generative_configuration} => Types::GenerativeConfiguration
2506
+ # * {Types::GetProjectResponse#custom_configuration #custom_configuration} => Types::CustomConfiguration
2507
+ # * {Types::GetProjectResponse#splitter_configuration #splitter_configuration} => Types::SplitterConfiguration
2508
+ # * {Types::GetProjectResponse#sensitive_data_configuration #sensitive_data_configuration} => Types::SensitiveDataConfiguration
2509
+ # * {Types::GetProjectResponse#encryption_configuration #encryption_configuration} => Types::EncryptionConfiguration
2510
+ # * {Types::GetProjectResponse#creation_time #creation_time} => Time
2511
+ # * {Types::GetProjectResponse#last_modified_time #last_modified_time} => Time
2512
+ #
2513
+ # @example Request syntax with placeholder values
2514
+ #
2515
+ # resp = client.get_project({
2516
+ # project_arn: "ProjectArn", # required
2517
+ # })
2518
+ #
2519
+ # @example Response structure
2520
+ #
2521
+ # resp.project_arn #=> String
2522
+ # resp.project_name #=> String
2523
+ # resp.project_description #=> String
2524
+ # resp.status #=> String, one of "COMPLETED", "FAILED"
2525
+ # resp.extraction_configuration.bounding_box.state #=> String, one of "ENABLED", "DISABLED"
2526
+ # resp.extraction_configuration.granularity.types #=> Array
2527
+ # resp.extraction_configuration.granularity.types[0] #=> String, one of "DOCUMENT", "PAGE", "ELEMENT", "WORD", "LINE"
2528
+ # resp.extraction_configuration.output_format.additional_file_format.state #=> String, one of "ENABLED", "DISABLED"
2529
+ # resp.extraction_configuration.output_format.text_format.types #=> Array
2530
+ # resp.extraction_configuration.output_format.text_format.types[0] #=> String, one of "PLAIN_TEXT", "MARKDOWN", "HTML", "CSV"
2531
+ # resp.generative_configuration.summarization.state #=> String, one of "ENABLED", "DISABLED"
2532
+ # resp.generative_configuration.figure_caption.state #=> String, one of "ENABLED", "DISABLED"
2533
+ # resp.custom_configuration.blueprints #=> Array
2534
+ # resp.custom_configuration.blueprints[0].blueprint_arn #=> String
2535
+ # resp.custom_configuration.blueprints[0].blueprint_version #=> String
2536
+ # resp.custom_configuration.fallback_blueprints #=> Array
2537
+ # resp.custom_configuration.fallback_blueprints[0].blueprint_arn #=> String
2538
+ # resp.custom_configuration.fallback_blueprints[0].blueprint_version #=> String
2539
+ # resp.splitter_configuration.state #=> String, one of "ENABLED", "DISABLED"
2540
+ # resp.sensitive_data_configuration.detection_mode #=> String, one of "DETECTION", "DETECTION_AND_REDACTION", "DISABLED"
2541
+ # resp.sensitive_data_configuration.pii_entities_configuration.pii_entity_types #=> Array
2542
+ # resp.sensitive_data_configuration.pii_entities_configuration.pii_entity_types[0] #=> String, one of "ALL", "ADDRESS", "AGE", "NAME", "EMAIL", "PHONE", "USERNAME", "PASSWORD", "DRIVER_ID", "LICENSE_PLATE", "VEHICLE_IDENTIFICATION_NUMBER", "CREDIT_DEBIT_CARD_CVV", "CREDIT_DEBIT_CARD_EXPIRY", "CREDIT_DEBIT_CARD_NUMBER", "PIN", "INTERNATIONAL_BANK_ACCOUNT_NUMBER", "SWIFT_CODE", "IP_ADDRESS", "MAC_ADDRESS", "URL", "AWS_ACCESS_KEY", "AWS_SECRET_KEY", "US_BANK_ACCOUNT_NUMBER", "US_BANK_ROUTING_NUMBER", "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER", "US_PASSPORT_NUMBER", "US_SOCIAL_SECURITY_NUMBER", "CA_HEALTH_NUMBER", "CA_SOCIAL_INSURANCE_NUMBER", "UK_NATIONAL_HEALTH_SERVICE_NUMBER", "UK_NATIONAL_INSURANCE_NUMBER", "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER"
2543
+ # resp.sensitive_data_configuration.pii_entities_configuration.redaction_mask_mode #=> String, one of "PII", "ENTITY_TYPE"
2544
+ # resp.encryption_configuration.kms_key_id #=> String
2545
+ # resp.encryption_configuration.kms_encryption_context #=> Hash
2546
+ # resp.encryption_configuration.kms_encryption_context["EncryptionContextKey"] #=> String
2547
+ # resp.creation_time #=> Time
2548
+ # resp.last_modified_time #=> Time
2549
+ #
2550
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/GetProject AWS API Documentation
2551
+ #
2552
+ # @overload get_project(params = {})
2553
+ # @param [Hash] params ({})
2554
+ def get_project(params = {}, options = {})
2555
+ req = build_request(:get_project, params)
2556
+ req.send_request(options)
2557
+ end
2558
+
2123
2559
  # List all version of an adapter that meet the specified filtration
2124
2560
  # criteria.
2125
2561
  #
@@ -2235,6 +2671,127 @@ module Aws::Textract
2235
2671
  req.send_request(options)
2236
2672
  end
2237
2673
 
2674
+ # Lists the blueprints that are available to the caller, with optional
2675
+ # filtering by project and resource owner. The results are paginated. If
2676
+ # the response includes a `NextToken` value, pass it in a subsequent
2677
+ # call to retrieve the next page of results.
2678
+ #
2679
+ # @option params [Integer] :max_results
2680
+ # The maximum number of blueprints to return in each page of results. If
2681
+ # you don't specify a value, the service selects a default page size.
2682
+ # Use the `NextToken` value in the response to retrieve any remaining
2683
+ # results.
2684
+ #
2685
+ # @option params [String] :next_token
2686
+ # A pagination token returned from a previous call to `ListBlueprints`.
2687
+ # Use it to retrieve the next page of results.
2688
+ #
2689
+ # @option params [String] :blueprint_arn
2690
+ # The Amazon Resource Name (ARN) of a blueprint to filter the results
2691
+ # by.
2692
+ #
2693
+ # @option params [Types::ProjectFilter] :project_filter
2694
+ # A filter that limits the results to blueprints associated with the
2695
+ # specified project.
2696
+ #
2697
+ # @option params [String] :resource_owner
2698
+ # A filter that limits the results to blueprints owned by your account
2699
+ # or to blueprints provided by Amazon Textract.
2700
+ #
2701
+ # @return [Types::ListBlueprintsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2702
+ #
2703
+ # * {Types::ListBlueprintsResponse#blueprints #blueprints} => Array&lt;Types::BlueprintSummary&gt;
2704
+ # * {Types::ListBlueprintsResponse#next_token #next_token} => String
2705
+ #
2706
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2707
+ #
2708
+ # @example Request syntax with placeholder values
2709
+ #
2710
+ # resp = client.list_blueprints({
2711
+ # max_results: 1,
2712
+ # next_token: "IntelligencePaginationToken",
2713
+ # blueprint_arn: "BlueprintArn",
2714
+ # project_filter: {
2715
+ # project_arn: "ProjectArn", # required
2716
+ # },
2717
+ # resource_owner: "ACCOUNT", # accepts ACCOUNT, SERVICE
2718
+ # })
2719
+ #
2720
+ # @example Response structure
2721
+ #
2722
+ # resp.blueprints #=> Array
2723
+ # resp.blueprints[0].blueprint_arn #=> String
2724
+ # resp.blueprints[0].blueprint_name #=> String
2725
+ # resp.blueprints[0].blueprint_version #=> String
2726
+ # resp.blueprints[0].resource_owner #=> String, one of "ACCOUNT", "SERVICE"
2727
+ # resp.blueprints[0].creation_time #=> Time
2728
+ # resp.blueprints[0].last_modified_time #=> Time
2729
+ # resp.next_token #=> String
2730
+ #
2731
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ListBlueprints AWS API Documentation
2732
+ #
2733
+ # @overload list_blueprints(params = {})
2734
+ # @param [Hash] params ({})
2735
+ def list_blueprints(params = {}, options = {})
2736
+ req = build_request(:list_blueprints, params)
2737
+ req.send_request(options)
2738
+ end
2739
+
2740
+ # Lists the projects that are available to the caller, with optional
2741
+ # filtering by blueprint. The results are paginated. If the response
2742
+ # includes a `NextToken` value, pass it in a subsequent call to retrieve
2743
+ # the next page of results.
2744
+ #
2745
+ # @option params [Integer] :max_results
2746
+ # The maximum number of projects to return in each page of results. If
2747
+ # you don't specify a value, the service selects a default page size.
2748
+ # Use the `NextToken` value in the response to retrieve any remaining
2749
+ # results.
2750
+ #
2751
+ # @option params [String] :next_token
2752
+ # A pagination token returned from a previous call to `ListProjects`.
2753
+ # Use it to retrieve the next page of results.
2754
+ #
2755
+ # @option params [Types::BlueprintFilter] :blueprint_filter
2756
+ # A filter that limits the results to projects associated with the
2757
+ # specified blueprint.
2758
+ #
2759
+ # @return [Types::ListProjectsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2760
+ #
2761
+ # * {Types::ListProjectsResponse#projects #projects} => Array&lt;Types::ProjectSummary&gt;
2762
+ # * {Types::ListProjectsResponse#next_token #next_token} => String
2763
+ #
2764
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2765
+ #
2766
+ # @example Request syntax with placeholder values
2767
+ #
2768
+ # resp = client.list_projects({
2769
+ # max_results: 1,
2770
+ # next_token: "IntelligencePaginationToken",
2771
+ # blueprint_filter: {
2772
+ # blueprint_arn: "BlueprintArn", # required
2773
+ # blueprint_version: "BlueprintVersion",
2774
+ # },
2775
+ # })
2776
+ #
2777
+ # @example Response structure
2778
+ #
2779
+ # resp.projects #=> Array
2780
+ # resp.projects[0].project_arn #=> String
2781
+ # resp.projects[0].project_name #=> String
2782
+ # resp.projects[0].creation_time #=> Time
2783
+ # resp.projects[0].last_modified_time #=> Time
2784
+ # resp.next_token #=> String
2785
+ #
2786
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/ListProjects AWS API Documentation
2787
+ #
2788
+ # @overload list_projects(params = {})
2789
+ # @param [Hash] params ({})
2790
+ def list_projects(params = {}, options = {})
2791
+ req = build_request(:list_projects, params)
2792
+ req.send_request(options)
2793
+ end
2794
+
2238
2795
  # Lists all tags for an Amazon Textract resource.
2239
2796
  #
2240
2797
  # @option params [required, String] :resource_arn
@@ -2398,6 +2955,85 @@ module Aws::Textract
2398
2955
  req.send_request(options)
2399
2956
  end
2400
2957
 
2958
+ # Starts an asynchronous job that analyzes a document using the
2959
+ # configuration defined by a project or a set of blueprints. Use
2960
+ # GetDocumentInsights to retrieve the results of the job.
2961
+ #
2962
+ # @option params [required, Types::InputConfiguration] :input_configuration
2963
+ # The Amazon S3 location of the input document to analyze.
2964
+ #
2965
+ # @option params [required, Types::OutputConfiguration] :output_configuration
2966
+ # The Amazon S3 location where the analysis results are written.
2967
+ #
2968
+ # @option params [String] :project_arn
2969
+ # The Amazon Resource Name (ARN) of the project whose configuration is
2970
+ # used to analyze the document.
2971
+ #
2972
+ # @option params [Array<Types::BlueprintItem>] :blueprints
2973
+ # The blueprints used to extract custom structured output from the
2974
+ # document.
2975
+ #
2976
+ # @option params [Types::EncryptionConfiguration] :encryption_configuration
2977
+ # The AWS KMS encryption configuration used to encrypt the analysis
2978
+ # output. If you don't specify a value, Amazon Textract encrypts the
2979
+ # output using an AWS owned key.
2980
+ #
2981
+ # @option params [Types::NotificationConfiguration] :notification_configuration
2982
+ # Notification settings for the job.
2983
+ #
2984
+ # @option params [Hash<String,String>] :tags
2985
+ # A set of tags (key-value pairs) to assign to the document insights
2986
+ # job.
2987
+ #
2988
+ # @return [Types::StartDocumentInsightsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2989
+ #
2990
+ # * {Types::StartDocumentInsightsResponse#job_arn #job_arn} => String
2991
+ #
2992
+ # @example Request syntax with placeholder values
2993
+ #
2994
+ # resp = client.start_document_insights({
2995
+ # input_configuration: { # required
2996
+ # s3_uri: "S3Uri", # required
2997
+ # },
2998
+ # output_configuration: { # required
2999
+ # s3_uri: "S3Uri", # required
3000
+ # },
3001
+ # project_arn: "ProjectArn",
3002
+ # blueprints: [
3003
+ # {
3004
+ # blueprint_arn: "BlueprintArn", # required
3005
+ # blueprint_version: "BlueprintVersion",
3006
+ # },
3007
+ # ],
3008
+ # encryption_configuration: {
3009
+ # kms_key_id: "EncryptionKmsKeyId", # required
3010
+ # kms_encryption_context: {
3011
+ # "EncryptionContextKey" => "EncryptionContextValue",
3012
+ # },
3013
+ # },
3014
+ # notification_configuration: {
3015
+ # event_bridge_configuration: { # required
3016
+ # state: "ENABLED", # required, accepts ENABLED, DISABLED
3017
+ # },
3018
+ # },
3019
+ # tags: {
3020
+ # "TagKey" => "TagValue",
3021
+ # },
3022
+ # })
3023
+ #
3024
+ # @example Response structure
3025
+ #
3026
+ # resp.job_arn #=> String
3027
+ #
3028
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/StartDocumentInsights AWS API Documentation
3029
+ #
3030
+ # @overload start_document_insights(params = {})
3031
+ # @param [Hash] params ({})
3032
+ def start_document_insights(params = {}, options = {})
3033
+ req = build_request(:start_document_insights, params)
3034
+ req.send_request(options)
3035
+ end
3036
+
2401
3037
  # Starts the asynchronous detection of text in a document. Amazon
2402
3038
  # Textract can detect lines of text and the words that make up a line of
2403
3039
  # text.
@@ -2847,6 +3483,171 @@ module Aws::Textract
2847
3483
  req.send_request(options)
2848
3484
  end
2849
3485
 
3486
+ # Updates an existing blueprint, replacing its schema and, optionally,
3487
+ # its encryption configuration.
3488
+ #
3489
+ # @option params [required, String] :blueprint_arn
3490
+ # The Amazon Resource Name (ARN) of the blueprint to update.
3491
+ #
3492
+ # @option params [String] :schema
3493
+ # The updated schema of the blueprint, which defines the fields to
3494
+ # extract and their expected structure.
3495
+ #
3496
+ # @option params [Types::EncryptionConfiguration] :encryption_configuration
3497
+ # The AWS KMS encryption configuration used to encrypt the blueprint at
3498
+ # rest.
3499
+ #
3500
+ # @return [Types::UpdateBlueprintResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3501
+ #
3502
+ # * {Types::UpdateBlueprintResponse#blueprint_arn #blueprint_arn} => String
3503
+ #
3504
+ # @example Request syntax with placeholder values
3505
+ #
3506
+ # resp = client.update_blueprint({
3507
+ # blueprint_arn: "BlueprintArn", # required
3508
+ # schema: "BlueprintSchema",
3509
+ # encryption_configuration: {
3510
+ # kms_key_id: "EncryptionKmsKeyId", # required
3511
+ # kms_encryption_context: {
3512
+ # "EncryptionContextKey" => "EncryptionContextValue",
3513
+ # },
3514
+ # },
3515
+ # })
3516
+ #
3517
+ # @example Response structure
3518
+ #
3519
+ # resp.blueprint_arn #=> String
3520
+ #
3521
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/UpdateBlueprint AWS API Documentation
3522
+ #
3523
+ # @overload update_blueprint(params = {})
3524
+ # @param [Hash] params ({})
3525
+ def update_blueprint(params = {}, options = {})
3526
+ req = build_request(:update_blueprint, params)
3527
+ req.send_request(options)
3528
+ end
3529
+
3530
+ # Updates the configuration of an existing project. If you omit a
3531
+ # configuration, UpdateProject leaves it unchanged. A configuration that
3532
+ # you supply replaces the stored one, so include every setting that you
3533
+ # want to keep.
3534
+ #
3535
+ # @option params [required, String] :project_arn
3536
+ # The Amazon Resource Name (ARN) of the project to update.
3537
+ #
3538
+ # @option params [String] :project_description
3539
+ # The updated description of the project.
3540
+ #
3541
+ # @option params [Types::ExtractionConfiguration] :extraction_configuration
3542
+ # The configuration that controls how Amazon Textract extracts content
3543
+ # from the document, including bounding boxes, granularity, and output
3544
+ # format. Replaces the stored extraction configuration.
3545
+ #
3546
+ # @option params [Types::GenerativeConfiguration] :generative_configuration
3547
+ # The configuration that controls generative capabilities such as
3548
+ # summarization and figure captioning. Replaces the stored generative
3549
+ # configuration, so a capability that you omit is turned off.
3550
+ #
3551
+ # @option params [Types::CustomConfiguration] :custom_configuration
3552
+ # The configuration that associates blueprints with the project for
3553
+ # custom output extraction. Replaces the stored custom configuration. To
3554
+ # disable custom configuration, specify an empty `Blueprints` list.
3555
+ #
3556
+ # @option params [Types::SplitterConfiguration] :splitter_configuration
3557
+ # The configuration that controls whether multi-document packets are
3558
+ # split into individual documents. Replaces the stored splitter
3559
+ # configuration.
3560
+ #
3561
+ # @option params [Types::SensitiveDataConfiguration] :sensitive_data_configuration
3562
+ # The configuration that controls detection and redaction of sensitive
3563
+ # data, such as personally identifiable information (PII). Replaces the
3564
+ # stored sensitive data configuration. To turn off detection, set
3565
+ # `DetectionMode` to `DISABLED`.
3566
+ #
3567
+ # @option params [Types::EncryptionConfiguration] :encryption_configuration
3568
+ # The AWS KMS encryption configuration used to encrypt the project at
3569
+ # rest.
3570
+ #
3571
+ # @return [Types::UpdateProjectResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3572
+ #
3573
+ # * {Types::UpdateProjectResponse#project_arn #project_arn} => String
3574
+ # * {Types::UpdateProjectResponse#status #status} => String
3575
+ #
3576
+ # @example Request syntax with placeholder values
3577
+ #
3578
+ # resp = client.update_project({
3579
+ # project_arn: "ProjectArn", # required
3580
+ # project_description: "ProjectDescription",
3581
+ # extraction_configuration: {
3582
+ # bounding_box: { # required
3583
+ # state: "ENABLED", # required, accepts ENABLED, DISABLED
3584
+ # },
3585
+ # granularity: { # required
3586
+ # types: ["DOCUMENT"], # accepts DOCUMENT, PAGE, ELEMENT, WORD, LINE
3587
+ # },
3588
+ # output_format: { # required
3589
+ # additional_file_format: { # required
3590
+ # state: "ENABLED", # required, accepts ENABLED, DISABLED
3591
+ # },
3592
+ # text_format: { # required
3593
+ # types: ["PLAIN_TEXT"], # accepts PLAIN_TEXT, MARKDOWN, HTML, CSV
3594
+ # },
3595
+ # },
3596
+ # },
3597
+ # generative_configuration: {
3598
+ # summarization: {
3599
+ # state: "ENABLED", # required, accepts ENABLED, DISABLED
3600
+ # },
3601
+ # figure_caption: {
3602
+ # state: "ENABLED", # required, accepts ENABLED, DISABLED
3603
+ # },
3604
+ # },
3605
+ # custom_configuration: {
3606
+ # blueprints: [ # required
3607
+ # {
3608
+ # blueprint_arn: "BlueprintArn", # required
3609
+ # blueprint_version: "BlueprintVersion",
3610
+ # },
3611
+ # ],
3612
+ # fallback_blueprints: [
3613
+ # {
3614
+ # blueprint_arn: "BlueprintArn", # required
3615
+ # blueprint_version: "BlueprintVersion",
3616
+ # },
3617
+ # ],
3618
+ # },
3619
+ # splitter_configuration: {
3620
+ # state: "ENABLED", # required, accepts ENABLED, DISABLED
3621
+ # },
3622
+ # sensitive_data_configuration: {
3623
+ # detection_mode: "DETECTION", # required, accepts DETECTION, DETECTION_AND_REDACTION, DISABLED
3624
+ # pii_entities_configuration: {
3625
+ # pii_entity_types: ["ALL"], # required, accepts ALL, ADDRESS, AGE, NAME, EMAIL, PHONE, USERNAME, PASSWORD, DRIVER_ID, LICENSE_PLATE, VEHICLE_IDENTIFICATION_NUMBER, CREDIT_DEBIT_CARD_CVV, CREDIT_DEBIT_CARD_EXPIRY, CREDIT_DEBIT_CARD_NUMBER, PIN, INTERNATIONAL_BANK_ACCOUNT_NUMBER, SWIFT_CODE, IP_ADDRESS, MAC_ADDRESS, URL, AWS_ACCESS_KEY, AWS_SECRET_KEY, US_BANK_ACCOUNT_NUMBER, US_BANK_ROUTING_NUMBER, US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER, US_PASSPORT_NUMBER, US_SOCIAL_SECURITY_NUMBER, CA_HEALTH_NUMBER, CA_SOCIAL_INSURANCE_NUMBER, UK_NATIONAL_HEALTH_SERVICE_NUMBER, UK_NATIONAL_INSURANCE_NUMBER, UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER
3626
+ # redaction_mask_mode: "PII", # required, accepts PII, ENTITY_TYPE
3627
+ # },
3628
+ # },
3629
+ # encryption_configuration: {
3630
+ # kms_key_id: "EncryptionKmsKeyId", # required
3631
+ # kms_encryption_context: {
3632
+ # "EncryptionContextKey" => "EncryptionContextValue",
3633
+ # },
3634
+ # },
3635
+ # })
3636
+ #
3637
+ # @example Response structure
3638
+ #
3639
+ # resp.project_arn #=> String
3640
+ # resp.status #=> String, one of "COMPLETED", "FAILED"
3641
+ #
3642
+ # @see http://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/UpdateProject AWS API Documentation
3643
+ #
3644
+ # @overload update_project(params = {})
3645
+ # @param [Hash] params ({})
3646
+ def update_project(params = {}, options = {})
3647
+ req = build_request(:update_project, params)
3648
+ req.send_request(options)
3649
+ end
3650
+
2850
3651
  # @!endgroup
2851
3652
 
2852
3653
  # @param params ({})
@@ -2865,7 +3666,7 @@ module Aws::Textract
2865
3666
  tracer: tracer
2866
3667
  )
2867
3668
  context[:gem_name] = 'aws-sdk-textract'
2868
- context[:gem_version] = '1.108.0'
3669
+ context[:gem_version] = '1.110.0'
2869
3670
  Seahorse::Client::Request.new(handlers, context)
2870
3671
  end
2871
3672