aws-sdk-comprehend 1.51.0 → 1.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a9828628812834dcbad9932c47945231e7ba7f05b3948b59a349d0c7058f09f
4
- data.tar.gz: 5141ec47d75e05488aa0fd4304c573d2e903b4072d7215f45aa30b1a42c33f80
3
+ metadata.gz: 898e5a918006930ceaa12fc25e788b334d8e98be0d636f8716de7aae54c00d31
4
+ data.tar.gz: b2c62a018c670a264105a95c9fb5e872c50aa18345d85a7788a05529de05a153
5
5
  SHA512:
6
- metadata.gz: 1f350f13013eb12272326dc8aea2df7dbf74d5e2ee2810febfcfd2badd7ae7169f1a68cff10b8dde8a8bdce477064169bf61a26f3bbf4e5b57077cf0ddd2fc1b
7
- data.tar.gz: 4d40609712cf892f49e69f14b20e7a4f4c781b4803336e0bc2803eb4839d5ff072e8143c3d31b74ae10a02b6055349a22374ee72b9123b25c2af5cc5ebcf472d
6
+ metadata.gz: c05b640caaa2ae7691e376f64125c0156373d531da1e844b1a813195e9a10fc19cee0b7cb43faf221e82482fdeb1a7f0ff8318a12030606f7408683a5936f29f
7
+ data.tar.gz: ffd392ec11d5a383df1608720d1215b1b257bb234594995661b22f074c032bc48b55d7b3060adde1d88b2fbf06915b6eb699cbd316338b0a752c5b6d0eb16963
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.52.0 (2021-09-21)
5
+ ------------------
6
+
7
+ * Feature - Amazon Comprehend now supports versioning of custom models, improved training with ONE_DOC_PER_FILE text documents for custom entity recognition, ability to provide specific test sets during training, and live migration to new model endpoints.
8
+
4
9
  1.51.0 (2021-09-14)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.51.0
1
+ 1.52.0
@@ -669,6 +669,13 @@ module Aws::Comprehend
669
669
  # @option params [required, String] :document_classifier_name
670
670
  # The name of the document classifier.
671
671
  #
672
+ # @option params [String] :version_name
673
+ # The version name given to the newly created classifier. Version names
674
+ # can have a maximum of 256 characters. Alphanumeric characters, hyphens
675
+ # (-) and underscores (\_) are allowed. The version name must be unique
676
+ # among all models with the same classifier name in the account/AWS
677
+ # Region.
678
+ #
672
679
  # @option params [required, String] :data_access_role_arn
673
680
  # The Amazon Resource Name (ARN) of the AWS Identity and Management
674
681
  # (IAM) role that grants Amazon Comprehend read access to your input
@@ -746,6 +753,7 @@ module Aws::Comprehend
746
753
  #
747
754
  # resp = client.create_document_classifier({
748
755
  # document_classifier_name: "ComprehendArnName", # required
756
+ # version_name: "VersionName",
749
757
  # data_access_role_arn: "IamRoleArn", # required
750
758
  # tags: [
751
759
  # {
@@ -756,10 +764,12 @@ module Aws::Comprehend
756
764
  # input_data_config: { # required
757
765
  # data_format: "COMPREHEND_CSV", # accepts COMPREHEND_CSV, AUGMENTED_MANIFEST
758
766
  # s3_uri: "S3Uri",
767
+ # test_s3_uri: "S3Uri",
759
768
  # label_delimiter: "LabelDelimiter",
760
769
  # augmented_manifests: [
761
770
  # {
762
771
  # s3_uri: "S3Uri", # required
772
+ # split: "TRAIN", # accepts TRAIN, TEST
763
773
  # attribute_names: ["AttributeNamesListItem"], # required
764
774
  # annotation_data_s3_uri: "S3Uri",
765
775
  # source_documents_s3_uri: "S3Uri",
@@ -874,6 +884,13 @@ module Aws::Comprehend
874
884
  # and underscores (\_) are allowed. The name must be unique in the
875
885
  # account/region.
876
886
  #
887
+ # @option params [String] :version_name
888
+ # The version name given to the newly created recognizer. Version names
889
+ # can be a maximum of 256 characters. Alphanumeric characters, hyphens
890
+ # (-) and underscores (\_) are allowed. The version name must be unique
891
+ # among all models with the same recognizer name in the account/ AWS
892
+ # Region.
893
+ #
877
894
  # @option params [required, String] :data_access_role_arn
878
895
  # The Amazon Resource Name (ARN) of the AWS Identity and Management
879
896
  # (IAM) role that grants Amazon Comprehend read access to your input
@@ -941,6 +958,7 @@ module Aws::Comprehend
941
958
  #
942
959
  # resp = client.create_entity_recognizer({
943
960
  # recognizer_name: "ComprehendArnName", # required
961
+ # version_name: "VersionName",
944
962
  # data_access_role_arn: "IamRoleArn", # required
945
963
  # tags: [
946
964
  # {
@@ -957,9 +975,12 @@ module Aws::Comprehend
957
975
  # ],
958
976
  # documents: {
959
977
  # s3_uri: "S3Uri", # required
978
+ # test_s3_uri: "S3Uri",
979
+ # input_format: "ONE_DOC_PER_FILE", # accepts ONE_DOC_PER_FILE, ONE_DOC_PER_LINE
960
980
  # },
961
981
  # annotations: {
962
982
  # s3_uri: "S3Uri", # required
983
+ # test_s3_uri: "S3Uri",
963
984
  # },
964
985
  # entity_list: {
965
986
  # s3_uri: "S3Uri", # required
@@ -967,6 +988,7 @@ module Aws::Comprehend
967
988
  # augmented_manifests: [
968
989
  # {
969
990
  # s3_uri: "S3Uri", # required
991
+ # split: "TRAIN", # accepts TRAIN, TEST
970
992
  # attribute_names: ["AttributeNamesListItem"], # required
971
993
  # annotation_data_s3_uri: "S3Uri",
972
994
  # source_documents_s3_uri: "S3Uri",
@@ -1163,9 +1185,11 @@ module Aws::Comprehend
1163
1185
  # resp.document_classifier_properties.training_end_time #=> Time
1164
1186
  # resp.document_classifier_properties.input_data_config.data_format #=> String, one of "COMPREHEND_CSV", "AUGMENTED_MANIFEST"
1165
1187
  # resp.document_classifier_properties.input_data_config.s3_uri #=> String
1188
+ # resp.document_classifier_properties.input_data_config.test_s3_uri #=> String
1166
1189
  # resp.document_classifier_properties.input_data_config.label_delimiter #=> String
1167
1190
  # resp.document_classifier_properties.input_data_config.augmented_manifests #=> Array
1168
1191
  # resp.document_classifier_properties.input_data_config.augmented_manifests[0].s3_uri #=> String
1192
+ # resp.document_classifier_properties.input_data_config.augmented_manifests[0].split #=> String, one of "TRAIN", "TEST"
1169
1193
  # resp.document_classifier_properties.input_data_config.augmented_manifests[0].attribute_names #=> Array
1170
1194
  # resp.document_classifier_properties.input_data_config.augmented_manifests[0].attribute_names[0] #=> String
1171
1195
  # resp.document_classifier_properties.input_data_config.augmented_manifests[0].annotation_data_s3_uri #=> String
@@ -1192,6 +1216,7 @@ module Aws::Comprehend
1192
1216
  # resp.document_classifier_properties.vpc_config.subnets[0] #=> String
1193
1217
  # resp.document_classifier_properties.mode #=> String, one of "MULTI_CLASS", "MULTI_LABEL"
1194
1218
  # resp.document_classifier_properties.model_kms_key_id #=> String
1219
+ # resp.document_classifier_properties.version_name #=> String
1195
1220
  #
1196
1221
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDocumentClassifier AWS API Documentation
1197
1222
  #
@@ -1274,11 +1299,13 @@ module Aws::Comprehend
1274
1299
  # resp.endpoint_properties.status #=> String, one of "CREATING", "DELETING", "FAILED", "IN_SERVICE", "UPDATING"
1275
1300
  # resp.endpoint_properties.message #=> String
1276
1301
  # resp.endpoint_properties.model_arn #=> String
1302
+ # resp.endpoint_properties.desired_model_arn #=> String
1277
1303
  # resp.endpoint_properties.desired_inference_units #=> Integer
1278
1304
  # resp.endpoint_properties.current_inference_units #=> Integer
1279
1305
  # resp.endpoint_properties.creation_time #=> Time
1280
1306
  # resp.endpoint_properties.last_modified_time #=> Time
1281
1307
  # resp.endpoint_properties.data_access_role_arn #=> String
1308
+ # resp.endpoint_properties.desired_data_access_role_arn #=> String
1282
1309
  #
1283
1310
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEndpoint AWS API Documentation
1284
1311
  #
@@ -1372,10 +1399,14 @@ module Aws::Comprehend
1372
1399
  # resp.entity_recognizer_properties.input_data_config.entity_types #=> Array
1373
1400
  # resp.entity_recognizer_properties.input_data_config.entity_types[0].type #=> String
1374
1401
  # resp.entity_recognizer_properties.input_data_config.documents.s3_uri #=> String
1402
+ # resp.entity_recognizer_properties.input_data_config.documents.test_s3_uri #=> String
1403
+ # resp.entity_recognizer_properties.input_data_config.documents.input_format #=> String, one of "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE"
1375
1404
  # resp.entity_recognizer_properties.input_data_config.annotations.s3_uri #=> String
1405
+ # resp.entity_recognizer_properties.input_data_config.annotations.test_s3_uri #=> String
1376
1406
  # resp.entity_recognizer_properties.input_data_config.entity_list.s3_uri #=> String
1377
1407
  # resp.entity_recognizer_properties.input_data_config.augmented_manifests #=> Array
1378
1408
  # resp.entity_recognizer_properties.input_data_config.augmented_manifests[0].s3_uri #=> String
1409
+ # resp.entity_recognizer_properties.input_data_config.augmented_manifests[0].split #=> String, one of "TRAIN", "TEST"
1379
1410
  # resp.entity_recognizer_properties.input_data_config.augmented_manifests[0].attribute_names #=> Array
1380
1411
  # resp.entity_recognizer_properties.input_data_config.augmented_manifests[0].attribute_names[0] #=> String
1381
1412
  # resp.entity_recognizer_properties.input_data_config.augmented_manifests[0].annotation_data_s3_uri #=> String
@@ -1399,6 +1430,7 @@ module Aws::Comprehend
1399
1430
  # resp.entity_recognizer_properties.vpc_config.subnets #=> Array
1400
1431
  # resp.entity_recognizer_properties.vpc_config.subnets[0] #=> String
1401
1432
  # resp.entity_recognizer_properties.model_kms_key_id #=> String
1433
+ # resp.entity_recognizer_properties.version_name #=> String
1402
1434
  #
1403
1435
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEntityRecognizer AWS API Documentation
1404
1436
  #
@@ -1983,6 +2015,49 @@ module Aws::Comprehend
1983
2015
  req.send_request(options)
1984
2016
  end
1985
2017
 
2018
+ # Gets a list of summaries of the document classifiers that you have
2019
+ # created
2020
+ #
2021
+ # @option params [String] :next_token
2022
+ # Identifies the next page of results to return.
2023
+ #
2024
+ # @option params [Integer] :max_results
2025
+ # The maximum number of results to return on each page. The default is
2026
+ # 100.
2027
+ #
2028
+ # @return [Types::ListDocumentClassifierSummariesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2029
+ #
2030
+ # * {Types::ListDocumentClassifierSummariesResponse#document_classifier_summaries_list #document_classifier_summaries_list} => Array<Types::DocumentClassifierSummary>
2031
+ # * {Types::ListDocumentClassifierSummariesResponse#next_token #next_token} => String
2032
+ #
2033
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2034
+ #
2035
+ # @example Request syntax with placeholder values
2036
+ #
2037
+ # resp = client.list_document_classifier_summaries({
2038
+ # next_token: "String",
2039
+ # max_results: 1,
2040
+ # })
2041
+ #
2042
+ # @example Response structure
2043
+ #
2044
+ # resp.document_classifier_summaries_list #=> Array
2045
+ # resp.document_classifier_summaries_list[0].document_classifier_name #=> String
2046
+ # resp.document_classifier_summaries_list[0].number_of_versions #=> Integer
2047
+ # resp.document_classifier_summaries_list[0].latest_version_created_at #=> Time
2048
+ # resp.document_classifier_summaries_list[0].latest_version_name #=> String
2049
+ # resp.document_classifier_summaries_list[0].latest_version_status #=> String, one of "SUBMITTED", "TRAINING", "DELETING", "STOP_REQUESTED", "STOPPED", "IN_ERROR", "TRAINED"
2050
+ # resp.next_token #=> String
2051
+ #
2052
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDocumentClassifierSummaries AWS API Documentation
2053
+ #
2054
+ # @overload list_document_classifier_summaries(params = {})
2055
+ # @param [Hash] params ({})
2056
+ def list_document_classifier_summaries(params = {}, options = {})
2057
+ req = build_request(:list_document_classifier_summaries, params)
2058
+ req.send_request(options)
2059
+ end
2060
+
1986
2061
  # Gets a list of the document classifiers that you have created.
1987
2062
  #
1988
2063
  # @option params [Types::DocumentClassifierFilter] :filter
@@ -2009,6 +2084,7 @@ module Aws::Comprehend
2009
2084
  # resp = client.list_document_classifiers({
2010
2085
  # filter: {
2011
2086
  # status: "SUBMITTED", # accepts SUBMITTED, TRAINING, DELETING, STOP_REQUESTED, STOPPED, IN_ERROR, TRAINED
2087
+ # document_classifier_name: "ComprehendArnName",
2012
2088
  # submit_time_before: Time.now,
2013
2089
  # submit_time_after: Time.now,
2014
2090
  # },
@@ -2029,9 +2105,11 @@ module Aws::Comprehend
2029
2105
  # resp.document_classifier_properties_list[0].training_end_time #=> Time
2030
2106
  # resp.document_classifier_properties_list[0].input_data_config.data_format #=> String, one of "COMPREHEND_CSV", "AUGMENTED_MANIFEST"
2031
2107
  # resp.document_classifier_properties_list[0].input_data_config.s3_uri #=> String
2108
+ # resp.document_classifier_properties_list[0].input_data_config.test_s3_uri #=> String
2032
2109
  # resp.document_classifier_properties_list[0].input_data_config.label_delimiter #=> String
2033
2110
  # resp.document_classifier_properties_list[0].input_data_config.augmented_manifests #=> Array
2034
2111
  # resp.document_classifier_properties_list[0].input_data_config.augmented_manifests[0].s3_uri #=> String
2112
+ # resp.document_classifier_properties_list[0].input_data_config.augmented_manifests[0].split #=> String, one of "TRAIN", "TEST"
2035
2113
  # resp.document_classifier_properties_list[0].input_data_config.augmented_manifests[0].attribute_names #=> Array
2036
2114
  # resp.document_classifier_properties_list[0].input_data_config.augmented_manifests[0].attribute_names[0] #=> String
2037
2115
  # resp.document_classifier_properties_list[0].input_data_config.augmented_manifests[0].annotation_data_s3_uri #=> String
@@ -2058,6 +2136,7 @@ module Aws::Comprehend
2058
2136
  # resp.document_classifier_properties_list[0].vpc_config.subnets[0] #=> String
2059
2137
  # resp.document_classifier_properties_list[0].mode #=> String, one of "MULTI_CLASS", "MULTI_LABEL"
2060
2138
  # resp.document_classifier_properties_list[0].model_kms_key_id #=> String
2139
+ # resp.document_classifier_properties_list[0].version_name #=> String
2061
2140
  # resp.next_token #=> String
2062
2141
  #
2063
2142
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDocumentClassifiers AWS API Documentation
@@ -2178,11 +2257,13 @@ module Aws::Comprehend
2178
2257
  # resp.endpoint_properties_list[0].status #=> String, one of "CREATING", "DELETING", "FAILED", "IN_SERVICE", "UPDATING"
2179
2258
  # resp.endpoint_properties_list[0].message #=> String
2180
2259
  # resp.endpoint_properties_list[0].model_arn #=> String
2260
+ # resp.endpoint_properties_list[0].desired_model_arn #=> String
2181
2261
  # resp.endpoint_properties_list[0].desired_inference_units #=> Integer
2182
2262
  # resp.endpoint_properties_list[0].current_inference_units #=> Integer
2183
2263
  # resp.endpoint_properties_list[0].creation_time #=> Time
2184
2264
  # resp.endpoint_properties_list[0].last_modified_time #=> Time
2185
2265
  # resp.endpoint_properties_list[0].data_access_role_arn #=> String
2266
+ # resp.endpoint_properties_list[0].desired_data_access_role_arn #=> String
2186
2267
  # resp.next_token #=> String
2187
2268
  #
2188
2269
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEndpoints AWS API Documentation
@@ -2265,6 +2346,49 @@ module Aws::Comprehend
2265
2346
  req.send_request(options)
2266
2347
  end
2267
2348
 
2349
+ # Gets a list of summaries for the entity recognizers that you have
2350
+ # created.
2351
+ #
2352
+ # @option params [String] :next_token
2353
+ # Identifies the next page of results to return.
2354
+ #
2355
+ # @option params [Integer] :max_results
2356
+ # The maximum number of results to return on each page. The default is
2357
+ # 100.
2358
+ #
2359
+ # @return [Types::ListEntityRecognizerSummariesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2360
+ #
2361
+ # * {Types::ListEntityRecognizerSummariesResponse#entity_recognizer_summaries_list #entity_recognizer_summaries_list} => Array<Types::EntityRecognizerSummary>
2362
+ # * {Types::ListEntityRecognizerSummariesResponse#next_token #next_token} => String
2363
+ #
2364
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2365
+ #
2366
+ # @example Request syntax with placeholder values
2367
+ #
2368
+ # resp = client.list_entity_recognizer_summaries({
2369
+ # next_token: "String",
2370
+ # max_results: 1,
2371
+ # })
2372
+ #
2373
+ # @example Response structure
2374
+ #
2375
+ # resp.entity_recognizer_summaries_list #=> Array
2376
+ # resp.entity_recognizer_summaries_list[0].recognizer_name #=> String
2377
+ # resp.entity_recognizer_summaries_list[0].number_of_versions #=> Integer
2378
+ # resp.entity_recognizer_summaries_list[0].latest_version_created_at #=> Time
2379
+ # resp.entity_recognizer_summaries_list[0].latest_version_name #=> String
2380
+ # resp.entity_recognizer_summaries_list[0].latest_version_status #=> String, one of "SUBMITTED", "TRAINING", "DELETING", "STOP_REQUESTED", "STOPPED", "IN_ERROR", "TRAINED"
2381
+ # resp.next_token #=> String
2382
+ #
2383
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntityRecognizerSummaries AWS API Documentation
2384
+ #
2385
+ # @overload list_entity_recognizer_summaries(params = {})
2386
+ # @param [Hash] params ({})
2387
+ def list_entity_recognizer_summaries(params = {}, options = {})
2388
+ req = build_request(:list_entity_recognizer_summaries, params)
2389
+ req.send_request(options)
2390
+ end
2391
+
2268
2392
  # Gets a list of the properties of all entity recognizers that you
2269
2393
  # created, including recognizers currently in training. Allows you to
2270
2394
  # filter the list of recognizers based on criteria such as status and
@@ -2298,6 +2422,7 @@ module Aws::Comprehend
2298
2422
  # resp = client.list_entity_recognizers({
2299
2423
  # filter: {
2300
2424
  # status: "SUBMITTED", # accepts SUBMITTED, TRAINING, DELETING, STOP_REQUESTED, STOPPED, IN_ERROR, TRAINED
2425
+ # recognizer_name: "ComprehendArnName",
2301
2426
  # submit_time_before: Time.now,
2302
2427
  # submit_time_after: Time.now,
2303
2428
  # },
@@ -2320,10 +2445,14 @@ module Aws::Comprehend
2320
2445
  # resp.entity_recognizer_properties_list[0].input_data_config.entity_types #=> Array
2321
2446
  # resp.entity_recognizer_properties_list[0].input_data_config.entity_types[0].type #=> String
2322
2447
  # resp.entity_recognizer_properties_list[0].input_data_config.documents.s3_uri #=> String
2448
+ # resp.entity_recognizer_properties_list[0].input_data_config.documents.test_s3_uri #=> String
2449
+ # resp.entity_recognizer_properties_list[0].input_data_config.documents.input_format #=> String, one of "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE"
2323
2450
  # resp.entity_recognizer_properties_list[0].input_data_config.annotations.s3_uri #=> String
2451
+ # resp.entity_recognizer_properties_list[0].input_data_config.annotations.test_s3_uri #=> String
2324
2452
  # resp.entity_recognizer_properties_list[0].input_data_config.entity_list.s3_uri #=> String
2325
2453
  # resp.entity_recognizer_properties_list[0].input_data_config.augmented_manifests #=> Array
2326
2454
  # resp.entity_recognizer_properties_list[0].input_data_config.augmented_manifests[0].s3_uri #=> String
2455
+ # resp.entity_recognizer_properties_list[0].input_data_config.augmented_manifests[0].split #=> String, one of "TRAIN", "TEST"
2327
2456
  # resp.entity_recognizer_properties_list[0].input_data_config.augmented_manifests[0].attribute_names #=> Array
2328
2457
  # resp.entity_recognizer_properties_list[0].input_data_config.augmented_manifests[0].attribute_names[0] #=> String
2329
2458
  # resp.entity_recognizer_properties_list[0].input_data_config.augmented_manifests[0].annotation_data_s3_uri #=> String
@@ -2347,6 +2476,7 @@ module Aws::Comprehend
2347
2476
  # resp.entity_recognizer_properties_list[0].vpc_config.subnets #=> Array
2348
2477
  # resp.entity_recognizer_properties_list[0].vpc_config.subnets[0] #=> String
2349
2478
  # resp.entity_recognizer_properties_list[0].model_kms_key_id #=> String
2479
+ # resp.entity_recognizer_properties_list[0].version_name #=> String
2350
2480
  # resp.next_token #=> String
2351
2481
  #
2352
2482
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntityRecognizers AWS API Documentation
@@ -3967,18 +4097,27 @@ module Aws::Comprehend
3967
4097
  # @option params [required, String] :endpoint_arn
3968
4098
  # The Amazon Resource Number (ARN) of the endpoint being updated.
3969
4099
  #
3970
- # @option params [required, Integer] :desired_inference_units
4100
+ # @option params [String] :desired_model_arn
4101
+ # The ARN of the new model to use when updating an existing endpoint.
4102
+ #
4103
+ # @option params [Integer] :desired_inference_units
3971
4104
  # The desired number of inference units to be used by the model using
3972
4105
  # this endpoint. Each inference unit represents of a throughput of 100
3973
4106
  # characters per second.
3974
4107
  #
4108
+ # @option params [String] :desired_data_access_role_arn
4109
+ # Data access role ARN to use in case the new model is encrypted with a
4110
+ # customer CMK.
4111
+ #
3975
4112
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3976
4113
  #
3977
4114
  # @example Request syntax with placeholder values
3978
4115
  #
3979
4116
  # resp = client.update_endpoint({
3980
4117
  # endpoint_arn: "ComprehendEndpointArn", # required
3981
- # desired_inference_units: 1, # required
4118
+ # desired_model_arn: "ComprehendModelArn",
4119
+ # desired_inference_units: 1,
4120
+ # desired_data_access_role_arn: "IamRoleArn",
3982
4121
  # })
3983
4122
  #
3984
4123
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/UpdateEndpoint AWS API Documentation
@@ -4003,7 +4142,7 @@ module Aws::Comprehend
4003
4142
  params: params,
4004
4143
  config: config)
4005
4144
  context[:gem_name] = 'aws-sdk-comprehend'
4006
- context[:gem_version] = '1.51.0'
4145
+ context[:gem_version] = '1.52.0'
4007
4146
  Seahorse::Client::Request.new(handlers, context)
4008
4147
  end
4009
4148
 
@@ -111,6 +111,8 @@ module Aws::Comprehend
111
111
  DocumentClassifierOutputDataConfig = Shapes::StructureShape.new(name: 'DocumentClassifierOutputDataConfig')
112
112
  DocumentClassifierProperties = Shapes::StructureShape.new(name: 'DocumentClassifierProperties')
113
113
  DocumentClassifierPropertiesList = Shapes::ListShape.new(name: 'DocumentClassifierPropertiesList')
114
+ DocumentClassifierSummariesList = Shapes::ListShape.new(name: 'DocumentClassifierSummariesList')
115
+ DocumentClassifierSummary = Shapes::StructureShape.new(name: 'DocumentClassifierSummary')
114
116
  DocumentLabel = Shapes::StructureShape.new(name: 'DocumentLabel')
115
117
  DocumentReadAction = Shapes::StringShape.new(name: 'DocumentReadAction')
116
118
  DocumentReadFeatureTypes = Shapes::StringShape.new(name: 'DocumentReadFeatureTypes')
@@ -145,6 +147,8 @@ module Aws::Comprehend
145
147
  EntityRecognizerMetadataEntityTypesListItem = Shapes::StructureShape.new(name: 'EntityRecognizerMetadataEntityTypesListItem')
146
148
  EntityRecognizerProperties = Shapes::StructureShape.new(name: 'EntityRecognizerProperties')
147
149
  EntityRecognizerPropertiesList = Shapes::ListShape.new(name: 'EntityRecognizerPropertiesList')
150
+ EntityRecognizerSummariesList = Shapes::ListShape.new(name: 'EntityRecognizerSummariesList')
151
+ EntityRecognizerSummary = Shapes::StructureShape.new(name: 'EntityRecognizerSummary')
148
152
  EntityType = Shapes::StringShape.new(name: 'EntityType')
149
153
  EntityTypeName = Shapes::StringShape.new(name: 'EntityTypeName')
150
154
  EntityTypesEvaluationMetrics = Shapes::StructureShape.new(name: 'EntityTypesEvaluationMetrics')
@@ -177,6 +181,8 @@ module Aws::Comprehend
177
181
  LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
178
182
  ListDocumentClassificationJobsRequest = Shapes::StructureShape.new(name: 'ListDocumentClassificationJobsRequest')
179
183
  ListDocumentClassificationJobsResponse = Shapes::StructureShape.new(name: 'ListDocumentClassificationJobsResponse')
184
+ ListDocumentClassifierSummariesRequest = Shapes::StructureShape.new(name: 'ListDocumentClassifierSummariesRequest')
185
+ ListDocumentClassifierSummariesResponse = Shapes::StructureShape.new(name: 'ListDocumentClassifierSummariesResponse')
180
186
  ListDocumentClassifiersRequest = Shapes::StructureShape.new(name: 'ListDocumentClassifiersRequest')
181
187
  ListDocumentClassifiersResponse = Shapes::StructureShape.new(name: 'ListDocumentClassifiersResponse')
182
188
  ListDominantLanguageDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListDominantLanguageDetectionJobsRequest')
@@ -185,6 +191,8 @@ module Aws::Comprehend
185
191
  ListEndpointsResponse = Shapes::StructureShape.new(name: 'ListEndpointsResponse')
186
192
  ListEntitiesDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListEntitiesDetectionJobsRequest')
187
193
  ListEntitiesDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListEntitiesDetectionJobsResponse')
194
+ ListEntityRecognizerSummariesRequest = Shapes::StructureShape.new(name: 'ListEntityRecognizerSummariesRequest')
195
+ ListEntityRecognizerSummariesResponse = Shapes::StructureShape.new(name: 'ListEntityRecognizerSummariesResponse')
188
196
  ListEntityRecognizersRequest = Shapes::StructureShape.new(name: 'ListEntityRecognizersRequest')
189
197
  ListEntityRecognizersResponse = Shapes::StructureShape.new(name: 'ListEntityRecognizersResponse')
190
198
  ListEventsDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListEventsDetectionJobsRequest')
@@ -242,6 +250,7 @@ module Aws::Comprehend
242
250
  SentimentDetectionJobPropertiesList = Shapes::ListShape.new(name: 'SentimentDetectionJobPropertiesList')
243
251
  SentimentScore = Shapes::StructureShape.new(name: 'SentimentScore')
244
252
  SentimentType = Shapes::StringShape.new(name: 'SentimentType')
253
+ Split = Shapes::StringShape.new(name: 'Split')
245
254
  StartDocumentClassificationJobRequest = Shapes::StructureShape.new(name: 'StartDocumentClassificationJobRequest')
246
255
  StartDocumentClassificationJobResponse = Shapes::StructureShape.new(name: 'StartDocumentClassificationJobResponse')
247
256
  StartDominantLanguageDetectionJobRequest = Shapes::StructureShape.new(name: 'StartDominantLanguageDetectionJobRequest')
@@ -300,11 +309,13 @@ module Aws::Comprehend
300
309
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
301
310
  UpdateEndpointRequest = Shapes::StructureShape.new(name: 'UpdateEndpointRequest')
302
311
  UpdateEndpointResponse = Shapes::StructureShape.new(name: 'UpdateEndpointResponse')
312
+ VersionName = Shapes::StringShape.new(name: 'VersionName')
303
313
  VpcConfig = Shapes::StructureShape.new(name: 'VpcConfig')
304
314
 
305
315
  AttributeNamesList.member = Shapes::ShapeRef.new(shape: AttributeNamesListItem)
306
316
 
307
317
  AugmentedManifestsListItem.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
318
+ AugmentedManifestsListItem.add_member(:split, Shapes::ShapeRef.new(shape: Split, location_name: "Split"))
308
319
  AugmentedManifestsListItem.add_member(:attribute_names, Shapes::ShapeRef.new(shape: AttributeNamesList, required: true, location_name: "AttributeNames"))
309
320
  AugmentedManifestsListItem.add_member(:annotation_data_s3_uri, Shapes::ShapeRef.new(shape: S3Uri, location_name: "AnnotationDataS3Uri"))
310
321
  AugmentedManifestsListItem.add_member(:source_documents_s3_uri, Shapes::ShapeRef.new(shape: S3Uri, location_name: "SourceDocumentsS3Uri"))
@@ -416,6 +427,7 @@ module Aws::Comprehend
416
427
  ContainsPiiEntitiesResponse.struct_class = Types::ContainsPiiEntitiesResponse
417
428
 
418
429
  CreateDocumentClassifierRequest.add_member(:document_classifier_name, Shapes::ShapeRef.new(shape: ComprehendArnName, required: true, location_name: "DocumentClassifierName"))
430
+ CreateDocumentClassifierRequest.add_member(:version_name, Shapes::ShapeRef.new(shape: VersionName, location_name: "VersionName"))
419
431
  CreateDocumentClassifierRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "DataAccessRoleArn"))
420
432
  CreateDocumentClassifierRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
421
433
  CreateDocumentClassifierRequest.add_member(:input_data_config, Shapes::ShapeRef.new(shape: DocumentClassifierInputDataConfig, required: true, location_name: "InputDataConfig"))
@@ -443,6 +455,7 @@ module Aws::Comprehend
443
455
  CreateEndpointResponse.struct_class = Types::CreateEndpointResponse
444
456
 
445
457
  CreateEntityRecognizerRequest.add_member(:recognizer_name, Shapes::ShapeRef.new(shape: ComprehendArnName, required: true, location_name: "RecognizerName"))
458
+ CreateEntityRecognizerRequest.add_member(:version_name, Shapes::ShapeRef.new(shape: VersionName, location_name: "VersionName"))
446
459
  CreateEntityRecognizerRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "DataAccessRoleArn"))
447
460
  CreateEntityRecognizerRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
448
461
  CreateEntityRecognizerRequest.add_member(:input_data_config, Shapes::ShapeRef.new(shape: EntityRecognizerInputDataConfig, required: true, location_name: "InputDataConfig"))
@@ -612,12 +625,14 @@ module Aws::Comprehend
612
625
  DocumentClassifierAugmentedManifestsList.member = Shapes::ShapeRef.new(shape: AugmentedManifestsListItem)
613
626
 
614
627
  DocumentClassifierFilter.add_member(:status, Shapes::ShapeRef.new(shape: ModelStatus, location_name: "Status"))
628
+ DocumentClassifierFilter.add_member(:document_classifier_name, Shapes::ShapeRef.new(shape: ComprehendArnName, location_name: "DocumentClassifierName"))
615
629
  DocumentClassifierFilter.add_member(:submit_time_before, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeBefore"))
616
630
  DocumentClassifierFilter.add_member(:submit_time_after, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeAfter"))
617
631
  DocumentClassifierFilter.struct_class = Types::DocumentClassifierFilter
618
632
 
619
633
  DocumentClassifierInputDataConfig.add_member(:data_format, Shapes::ShapeRef.new(shape: DocumentClassifierDataFormat, location_name: "DataFormat"))
620
634
  DocumentClassifierInputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, location_name: "S3Uri"))
635
+ DocumentClassifierInputDataConfig.add_member(:test_s3_uri, Shapes::ShapeRef.new(shape: S3Uri, location_name: "TestS3Uri"))
621
636
  DocumentClassifierInputDataConfig.add_member(:label_delimiter, Shapes::ShapeRef.new(shape: LabelDelimiter, location_name: "LabelDelimiter"))
622
637
  DocumentClassifierInputDataConfig.add_member(:augmented_manifests, Shapes::ShapeRef.new(shape: DocumentClassifierAugmentedManifestsList, location_name: "AugmentedManifests"))
623
638
  DocumentClassifierInputDataConfig.struct_class = Types::DocumentClassifierInputDataConfig
@@ -642,10 +657,20 @@ module Aws::Comprehend
642
657
  DocumentClassifierProperties.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "VpcConfig"))
643
658
  DocumentClassifierProperties.add_member(:mode, Shapes::ShapeRef.new(shape: DocumentClassifierMode, location_name: "Mode"))
644
659
  DocumentClassifierProperties.add_member(:model_kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "ModelKmsKeyId"))
660
+ DocumentClassifierProperties.add_member(:version_name, Shapes::ShapeRef.new(shape: VersionName, location_name: "VersionName"))
645
661
  DocumentClassifierProperties.struct_class = Types::DocumentClassifierProperties
646
662
 
647
663
  DocumentClassifierPropertiesList.member = Shapes::ShapeRef.new(shape: DocumentClassifierProperties)
648
664
 
665
+ DocumentClassifierSummariesList.member = Shapes::ShapeRef.new(shape: DocumentClassifierSummary)
666
+
667
+ DocumentClassifierSummary.add_member(:document_classifier_name, Shapes::ShapeRef.new(shape: ComprehendArnName, location_name: "DocumentClassifierName"))
668
+ DocumentClassifierSummary.add_member(:number_of_versions, Shapes::ShapeRef.new(shape: Integer, location_name: "NumberOfVersions"))
669
+ DocumentClassifierSummary.add_member(:latest_version_created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LatestVersionCreatedAt"))
670
+ DocumentClassifierSummary.add_member(:latest_version_name, Shapes::ShapeRef.new(shape: VersionName, location_name: "LatestVersionName"))
671
+ DocumentClassifierSummary.add_member(:latest_version_status, Shapes::ShapeRef.new(shape: ModelStatus, location_name: "LatestVersionStatus"))
672
+ DocumentClassifierSummary.struct_class = Types::DocumentClassifierSummary
673
+
649
674
  DocumentLabel.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
650
675
  DocumentLabel.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
651
676
  DocumentLabel.struct_class = Types::DocumentLabel
@@ -691,11 +716,13 @@ module Aws::Comprehend
691
716
  EndpointProperties.add_member(:status, Shapes::ShapeRef.new(shape: EndpointStatus, location_name: "Status"))
692
717
  EndpointProperties.add_member(:message, Shapes::ShapeRef.new(shape: AnyLengthString, location_name: "Message"))
693
718
  EndpointProperties.add_member(:model_arn, Shapes::ShapeRef.new(shape: ComprehendModelArn, location_name: "ModelArn"))
719
+ EndpointProperties.add_member(:desired_model_arn, Shapes::ShapeRef.new(shape: ComprehendModelArn, location_name: "DesiredModelArn"))
694
720
  EndpointProperties.add_member(:desired_inference_units, Shapes::ShapeRef.new(shape: InferenceUnitsInteger, location_name: "DesiredInferenceUnits"))
695
721
  EndpointProperties.add_member(:current_inference_units, Shapes::ShapeRef.new(shape: InferenceUnitsInteger, location_name: "CurrentInferenceUnits"))
696
722
  EndpointProperties.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTime"))
697
723
  EndpointProperties.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModifiedTime"))
698
724
  EndpointProperties.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "DataAccessRoleArn"))
725
+ EndpointProperties.add_member(:desired_data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "DesiredDataAccessRoleArn"))
699
726
  EndpointProperties.struct_class = Types::EndpointProperties
700
727
 
701
728
  EndpointPropertiesList.member = Shapes::ShapeRef.new(shape: EndpointProperties)
@@ -736,11 +763,14 @@ module Aws::Comprehend
736
763
  EntityLabel.struct_class = Types::EntityLabel
737
764
 
738
765
  EntityRecognizerAnnotations.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
766
+ EntityRecognizerAnnotations.add_member(:test_s3_uri, Shapes::ShapeRef.new(shape: S3Uri, location_name: "TestS3Uri"))
739
767
  EntityRecognizerAnnotations.struct_class = Types::EntityRecognizerAnnotations
740
768
 
741
769
  EntityRecognizerAugmentedManifestsList.member = Shapes::ShapeRef.new(shape: AugmentedManifestsListItem)
742
770
 
743
771
  EntityRecognizerDocuments.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
772
+ EntityRecognizerDocuments.add_member(:test_s3_uri, Shapes::ShapeRef.new(shape: S3Uri, location_name: "TestS3Uri"))
773
+ EntityRecognizerDocuments.add_member(:input_format, Shapes::ShapeRef.new(shape: InputFormat, location_name: "InputFormat"))
744
774
  EntityRecognizerDocuments.struct_class = Types::EntityRecognizerDocuments
745
775
 
746
776
  EntityRecognizerEntityList.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
@@ -752,6 +782,7 @@ module Aws::Comprehend
752
782
  EntityRecognizerEvaluationMetrics.struct_class = Types::EntityRecognizerEvaluationMetrics
753
783
 
754
784
  EntityRecognizerFilter.add_member(:status, Shapes::ShapeRef.new(shape: ModelStatus, location_name: "Status"))
785
+ EntityRecognizerFilter.add_member(:recognizer_name, Shapes::ShapeRef.new(shape: ComprehendArnName, location_name: "RecognizerName"))
755
786
  EntityRecognizerFilter.add_member(:submit_time_before, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeBefore"))
756
787
  EntityRecognizerFilter.add_member(:submit_time_after, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeAfter"))
757
788
  EntityRecognizerFilter.struct_class = Types::EntityRecognizerFilter
@@ -791,10 +822,20 @@ module Aws::Comprehend
791
822
  EntityRecognizerProperties.add_member(:volume_kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "VolumeKmsKeyId"))
792
823
  EntityRecognizerProperties.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "VpcConfig"))
793
824
  EntityRecognizerProperties.add_member(:model_kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "ModelKmsKeyId"))
825
+ EntityRecognizerProperties.add_member(:version_name, Shapes::ShapeRef.new(shape: VersionName, location_name: "VersionName"))
794
826
  EntityRecognizerProperties.struct_class = Types::EntityRecognizerProperties
795
827
 
796
828
  EntityRecognizerPropertiesList.member = Shapes::ShapeRef.new(shape: EntityRecognizerProperties)
797
829
 
830
+ EntityRecognizerSummariesList.member = Shapes::ShapeRef.new(shape: EntityRecognizerSummary)
831
+
832
+ EntityRecognizerSummary.add_member(:recognizer_name, Shapes::ShapeRef.new(shape: ComprehendArnName, location_name: "RecognizerName"))
833
+ EntityRecognizerSummary.add_member(:number_of_versions, Shapes::ShapeRef.new(shape: Integer, location_name: "NumberOfVersions"))
834
+ EntityRecognizerSummary.add_member(:latest_version_created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LatestVersionCreatedAt"))
835
+ EntityRecognizerSummary.add_member(:latest_version_name, Shapes::ShapeRef.new(shape: VersionName, location_name: "LatestVersionName"))
836
+ EntityRecognizerSummary.add_member(:latest_version_status, Shapes::ShapeRef.new(shape: ModelStatus, location_name: "LatestVersionStatus"))
837
+ EntityRecognizerSummary.struct_class = Types::EntityRecognizerSummary
838
+
798
839
  EntityTypesEvaluationMetrics.add_member(:precision, Shapes::ShapeRef.new(shape: Double, location_name: "Precision"))
799
840
  EntityTypesEvaluationMetrics.add_member(:recall, Shapes::ShapeRef.new(shape: Double, location_name: "Recall"))
800
841
  EntityTypesEvaluationMetrics.add_member(:f1_score, Shapes::ShapeRef.new(shape: Double, location_name: "F1Score"))
@@ -885,6 +926,14 @@ module Aws::Comprehend
885
926
  ListDocumentClassificationJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
886
927
  ListDocumentClassificationJobsResponse.struct_class = Types::ListDocumentClassificationJobsResponse
887
928
 
929
+ ListDocumentClassifierSummariesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
930
+ ListDocumentClassifierSummariesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
931
+ ListDocumentClassifierSummariesRequest.struct_class = Types::ListDocumentClassifierSummariesRequest
932
+
933
+ ListDocumentClassifierSummariesResponse.add_member(:document_classifier_summaries_list, Shapes::ShapeRef.new(shape: DocumentClassifierSummariesList, location_name: "DocumentClassifierSummariesList"))
934
+ ListDocumentClassifierSummariesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
935
+ ListDocumentClassifierSummariesResponse.struct_class = Types::ListDocumentClassifierSummariesResponse
936
+
888
937
  ListDocumentClassifiersRequest.add_member(:filter, Shapes::ShapeRef.new(shape: DocumentClassifierFilter, location_name: "Filter"))
889
938
  ListDocumentClassifiersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
890
939
  ListDocumentClassifiersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
@@ -921,6 +970,14 @@ module Aws::Comprehend
921
970
  ListEntitiesDetectionJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
922
971
  ListEntitiesDetectionJobsResponse.struct_class = Types::ListEntitiesDetectionJobsResponse
923
972
 
973
+ ListEntityRecognizerSummariesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
974
+ ListEntityRecognizerSummariesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
975
+ ListEntityRecognizerSummariesRequest.struct_class = Types::ListEntityRecognizerSummariesRequest
976
+
977
+ ListEntityRecognizerSummariesResponse.add_member(:entity_recognizer_summaries_list, Shapes::ShapeRef.new(shape: EntityRecognizerSummariesList, location_name: "EntityRecognizerSummariesList"))
978
+ ListEntityRecognizerSummariesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
979
+ ListEntityRecognizerSummariesResponse.struct_class = Types::ListEntityRecognizerSummariesResponse
980
+
924
981
  ListEntityRecognizersRequest.add_member(:filter, Shapes::ShapeRef.new(shape: EntityRecognizerFilter, location_name: "Filter"))
925
982
  ListEntityRecognizersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
926
983
  ListEntityRecognizersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
@@ -1350,7 +1407,9 @@ module Aws::Comprehend
1350
1407
  UntagResourceResponse.struct_class = Types::UntagResourceResponse
1351
1408
 
1352
1409
  UpdateEndpointRequest.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: ComprehendEndpointArn, required: true, location_name: "EndpointArn"))
1353
- UpdateEndpointRequest.add_member(:desired_inference_units, Shapes::ShapeRef.new(shape: InferenceUnitsInteger, required: true, location_name: "DesiredInferenceUnits"))
1410
+ UpdateEndpointRequest.add_member(:desired_model_arn, Shapes::ShapeRef.new(shape: ComprehendModelArn, location_name: "DesiredModelArn"))
1411
+ UpdateEndpointRequest.add_member(:desired_inference_units, Shapes::ShapeRef.new(shape: InferenceUnitsInteger, location_name: "DesiredInferenceUnits"))
1412
+ UpdateEndpointRequest.add_member(:desired_data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "DesiredDataAccessRoleArn"))
1354
1413
  UpdateEndpointRequest.struct_class = Types::UpdateEndpointRequest
1355
1414
 
1356
1415
  UpdateEndpointResponse.struct_class = Types::UpdateEndpointResponse
@@ -1777,6 +1836,23 @@ module Aws::Comprehend
1777
1836
  )
1778
1837
  end)
1779
1838
 
1839
+ api.add_operation(:list_document_classifier_summaries, Seahorse::Model::Operation.new.tap do |o|
1840
+ o.name = "ListDocumentClassifierSummaries"
1841
+ o.http_method = "POST"
1842
+ o.http_request_uri = "/"
1843
+ o.input = Shapes::ShapeRef.new(shape: ListDocumentClassifierSummariesRequest)
1844
+ o.output = Shapes::ShapeRef.new(shape: ListDocumentClassifierSummariesResponse)
1845
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1846
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1847
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1848
+ o[:pager] = Aws::Pager.new(
1849
+ limit_key: "max_results",
1850
+ tokens: {
1851
+ "next_token" => "next_token"
1852
+ }
1853
+ )
1854
+ end)
1855
+
1780
1856
  api.add_operation(:list_document_classifiers, Seahorse::Model::Operation.new.tap do |o|
1781
1857
  o.name = "ListDocumentClassifiers"
1782
1858
  o.http_method = "POST"
@@ -1842,6 +1918,23 @@ module Aws::Comprehend
1842
1918
  )
1843
1919
  end)
1844
1920
 
1921
+ api.add_operation(:list_entity_recognizer_summaries, Seahorse::Model::Operation.new.tap do |o|
1922
+ o.name = "ListEntityRecognizerSummaries"
1923
+ o.http_method = "POST"
1924
+ o.http_request_uri = "/"
1925
+ o.input = Shapes::ShapeRef.new(shape: ListEntityRecognizerSummariesRequest)
1926
+ o.output = Shapes::ShapeRef.new(shape: ListEntityRecognizerSummariesResponse)
1927
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1928
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1929
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1930
+ o[:pager] = Aws::Pager.new(
1931
+ limit_key: "max_results",
1932
+ tokens: {
1933
+ "next_token" => "next_token"
1934
+ }
1935
+ )
1936
+ end)
1937
+
1845
1938
  api.add_operation(:list_entity_recognizers, Seahorse::Model::Operation.new.tap do |o|
1846
1939
  o.name = "ListEntityRecognizers"
1847
1940
  o.http_method = "POST"
@@ -19,6 +19,7 @@ module Aws::Comprehend
19
19
  #
20
20
  # {
21
21
  # s3_uri: "S3Uri", # required
22
+ # split: "TRAIN", # accepts TRAIN, TEST
22
23
  # attribute_names: ["AttributeNamesListItem"], # required
23
24
  # annotation_data_s3_uri: "S3Uri",
24
25
  # source_documents_s3_uri: "S3Uri",
@@ -29,6 +30,20 @@ module Aws::Comprehend
29
30
  # The Amazon S3 location of the augmented manifest file.
30
31
  # @return [String]
31
32
  #
33
+ # @!attribute [rw] split
34
+ # The purpose of the data you've provided in the augmented manifest.
35
+ # You can either train or test this data. If you don't specify, the
36
+ # default is train.
37
+ #
38
+ # TRAIN - all of the documents in the manifest will be used for
39
+ # training. If no test documents are provided, Amazon Comprehend will
40
+ # automatically reserve a portion of the training documents for
41
+ # testing.
42
+ #
43
+ # TEST - all of the documents in the manifest will be used for
44
+ # testing.
45
+ # @return [String]
46
+ #
32
47
  # @!attribute [rw] attribute_names
33
48
  # The JSON attribute that contains the annotations for your training
34
49
  # documents. The number of attribute names that you specify depends on
@@ -73,6 +88,7 @@ module Aws::Comprehend
73
88
  #
74
89
  class AugmentedManifestsListItem < Struct.new(
75
90
  :s3_uri,
91
+ :split,
76
92
  :attribute_names,
77
93
  :annotation_data_s3_uri,
78
94
  :source_documents_s3_uri,
@@ -707,6 +723,7 @@ module Aws::Comprehend
707
723
  #
708
724
  # {
709
725
  # document_classifier_name: "ComprehendArnName", # required
726
+ # version_name: "VersionName",
710
727
  # data_access_role_arn: "IamRoleArn", # required
711
728
  # tags: [
712
729
  # {
@@ -717,10 +734,12 @@ module Aws::Comprehend
717
734
  # input_data_config: { # required
718
735
  # data_format: "COMPREHEND_CSV", # accepts COMPREHEND_CSV, AUGMENTED_MANIFEST
719
736
  # s3_uri: "S3Uri",
737
+ # test_s3_uri: "S3Uri",
720
738
  # label_delimiter: "LabelDelimiter",
721
739
  # augmented_manifests: [
722
740
  # {
723
741
  # s3_uri: "S3Uri", # required
742
+ # split: "TRAIN", # accepts TRAIN, TEST
724
743
  # attribute_names: ["AttributeNamesListItem"], # required
725
744
  # annotation_data_s3_uri: "S3Uri",
726
745
  # source_documents_s3_uri: "S3Uri",
@@ -747,6 +766,14 @@ module Aws::Comprehend
747
766
  # The name of the document classifier.
748
767
  # @return [String]
749
768
  #
769
+ # @!attribute [rw] version_name
770
+ # The version name given to the newly created classifier. Version
771
+ # names can have a maximum of 256 characters. Alphanumeric characters,
772
+ # hyphens (-) and underscores (\_) are allowed. The version name must
773
+ # be unique among all models with the same classifier name in the
774
+ # account/AWS Region.
775
+ # @return [String]
776
+ #
750
777
  # @!attribute [rw] data_access_role_arn
751
778
  # The Amazon Resource Name (ARN) of the AWS Identity and Management
752
779
  # (IAM) role that grants Amazon Comprehend read access to your input
@@ -832,6 +859,7 @@ module Aws::Comprehend
832
859
  #
833
860
  class CreateDocumentClassifierRequest < Struct.new(
834
861
  :document_classifier_name,
862
+ :version_name,
835
863
  :data_access_role_arn,
836
864
  :tags,
837
865
  :input_data_config,
@@ -945,6 +973,7 @@ module Aws::Comprehend
945
973
  #
946
974
  # {
947
975
  # recognizer_name: "ComprehendArnName", # required
976
+ # version_name: "VersionName",
948
977
  # data_access_role_arn: "IamRoleArn", # required
949
978
  # tags: [
950
979
  # {
@@ -961,9 +990,12 @@ module Aws::Comprehend
961
990
  # ],
962
991
  # documents: {
963
992
  # s3_uri: "S3Uri", # required
993
+ # test_s3_uri: "S3Uri",
994
+ # input_format: "ONE_DOC_PER_FILE", # accepts ONE_DOC_PER_FILE, ONE_DOC_PER_LINE
964
995
  # },
965
996
  # annotations: {
966
997
  # s3_uri: "S3Uri", # required
998
+ # test_s3_uri: "S3Uri",
967
999
  # },
968
1000
  # entity_list: {
969
1001
  # s3_uri: "S3Uri", # required
@@ -971,6 +1003,7 @@ module Aws::Comprehend
971
1003
  # augmented_manifests: [
972
1004
  # {
973
1005
  # s3_uri: "S3Uri", # required
1006
+ # split: "TRAIN", # accepts TRAIN, TEST
974
1007
  # attribute_names: ["AttributeNamesListItem"], # required
975
1008
  # annotation_data_s3_uri: "S3Uri",
976
1009
  # source_documents_s3_uri: "S3Uri",
@@ -995,6 +1028,14 @@ module Aws::Comprehend
995
1028
  # account/region.
996
1029
  # @return [String]
997
1030
  #
1031
+ # @!attribute [rw] version_name
1032
+ # The version name given to the newly created recognizer. Version
1033
+ # names can be a maximum of 256 characters. Alphanumeric characters,
1034
+ # hyphens (-) and underscores (\_) are allowed. The version name must
1035
+ # be unique among all models with the same recognizer name in the
1036
+ # account/ AWS Region.
1037
+ # @return [String]
1038
+ #
998
1039
  # @!attribute [rw] data_access_role_arn
999
1040
  # The Amazon Resource Name (ARN) of the AWS Identity and Management
1000
1041
  # (IAM) role that grants Amazon Comprehend read access to your input
@@ -1067,6 +1108,7 @@ module Aws::Comprehend
1067
1108
  #
1068
1109
  class CreateEntityRecognizerRequest < Struct.new(
1069
1110
  :recognizer_name,
1111
+ :version_name,
1070
1112
  :data_access_role_arn,
1071
1113
  :tags,
1072
1114
  :input_data_config,
@@ -1984,6 +2026,7 @@ module Aws::Comprehend
1984
2026
  #
1985
2027
  # {
1986
2028
  # status: "SUBMITTED", # accepts SUBMITTED, TRAINING, DELETING, STOP_REQUESTED, STOPPED, IN_ERROR, TRAINED
2029
+ # document_classifier_name: "ComprehendArnName",
1987
2030
  # submit_time_before: Time.now,
1988
2031
  # submit_time_after: Time.now,
1989
2032
  # }
@@ -1992,6 +2035,10 @@ module Aws::Comprehend
1992
2035
  # Filters the list of classifiers based on status.
1993
2036
  # @return [String]
1994
2037
  #
2038
+ # @!attribute [rw] document_classifier_name
2039
+ # The name that you assigned to the document classifier
2040
+ # @return [String]
2041
+ #
1995
2042
  # @!attribute [rw] submit_time_before
1996
2043
  # Filters the list of classifiers based on the time that the
1997
2044
  # classifier was submitted for processing. Returns only classifiers
@@ -2010,6 +2057,7 @@ module Aws::Comprehend
2010
2057
  #
2011
2058
  class DocumentClassifierFilter < Struct.new(
2012
2059
  :status,
2060
+ :document_classifier_name,
2013
2061
  :submit_time_before,
2014
2062
  :submit_time_after)
2015
2063
  SENSITIVE = []
@@ -2027,10 +2075,12 @@ module Aws::Comprehend
2027
2075
  # {
2028
2076
  # data_format: "COMPREHEND_CSV", # accepts COMPREHEND_CSV, AUGMENTED_MANIFEST
2029
2077
  # s3_uri: "S3Uri",
2078
+ # test_s3_uri: "S3Uri",
2030
2079
  # label_delimiter: "LabelDelimiter",
2031
2080
  # augmented_manifests: [
2032
2081
  # {
2033
2082
  # s3_uri: "S3Uri", # required
2083
+ # split: "TRAIN", # accepts TRAIN, TEST
2034
2084
  # attribute_names: ["AttributeNamesListItem"], # required
2035
2085
  # annotation_data_s3_uri: "S3Uri",
2036
2086
  # source_documents_s3_uri: "S3Uri",
@@ -2074,6 +2124,13 @@ module Aws::Comprehend
2074
2124
  # `COMPREHEND_CSV`.
2075
2125
  # @return [String]
2076
2126
  #
2127
+ # @!attribute [rw] test_s3_uri
2128
+ # The Amazon S3 URI for the input data. The Amazon S3 bucket must be
2129
+ # in the same AWS Region as the API endpoint that you are calling. The
2130
+ # URI can point to a single input file or it can provide the prefix
2131
+ # for a collection of input files.
2132
+ # @return [String]
2133
+ #
2077
2134
  # @!attribute [rw] label_delimiter
2078
2135
  # Indicates the delimiter used to separate each label for training a
2079
2136
  # multi-label classifier. The default delimiter between labels is a
@@ -2098,6 +2155,7 @@ module Aws::Comprehend
2098
2155
  class DocumentClassifierInputDataConfig < Struct.new(
2099
2156
  :data_format,
2100
2157
  :s3_uri,
2158
+ :test_s3_uri,
2101
2159
  :label_delimiter,
2102
2160
  :augmented_manifests)
2103
2161
  SENSITIVE = []
@@ -2259,6 +2317,10 @@ module Aws::Comprehend
2259
2317
  # `"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"`
2260
2318
  # @return [String]
2261
2319
  #
2320
+ # @!attribute [rw] version_name
2321
+ # The version name that you assigned to the document classifier.
2322
+ # @return [String]
2323
+ #
2262
2324
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DocumentClassifierProperties AWS API Documentation
2263
2325
  #
2264
2326
  class DocumentClassifierProperties < Struct.new(
@@ -2277,11 +2339,48 @@ module Aws::Comprehend
2277
2339
  :volume_kms_key_id,
2278
2340
  :vpc_config,
2279
2341
  :mode,
2280
- :model_kms_key_id)
2342
+ :model_kms_key_id,
2343
+ :version_name)
2281
2344
  SENSITIVE = [:classifier_metadata]
2282
2345
  include Aws::Structure
2283
2346
  end
2284
2347
 
2348
+ # Describes information about a document classifier and its versions.
2349
+ #
2350
+ # @!attribute [rw] document_classifier_name
2351
+ # The name that you assigned the document classifier.
2352
+ # @return [String]
2353
+ #
2354
+ # @!attribute [rw] number_of_versions
2355
+ # The number of versions you created.
2356
+ # @return [Integer]
2357
+ #
2358
+ # @!attribute [rw] latest_version_created_at
2359
+ # The time that the latest document classifier version was submitted
2360
+ # for processing.
2361
+ # @return [Time]
2362
+ #
2363
+ # @!attribute [rw] latest_version_name
2364
+ # The version name you assigned to the latest document classifier
2365
+ # version.
2366
+ # @return [String]
2367
+ #
2368
+ # @!attribute [rw] latest_version_status
2369
+ # Provides the status of the latest document classifier version.
2370
+ # @return [String]
2371
+ #
2372
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DocumentClassifierSummary AWS API Documentation
2373
+ #
2374
+ class DocumentClassifierSummary < Struct.new(
2375
+ :document_classifier_name,
2376
+ :number_of_versions,
2377
+ :latest_version_created_at,
2378
+ :latest_version_name,
2379
+ :latest_version_status)
2380
+ SENSITIVE = []
2381
+ include Aws::Structure
2382
+ end
2383
+
2285
2384
  # Specifies one of the label or labels that categorize the document
2286
2385
  # being analyzed.
2287
2386
  #
@@ -2588,6 +2687,12 @@ module Aws::Comprehend
2588
2687
  # is attached.
2589
2688
  # @return [String]
2590
2689
  #
2690
+ # @!attribute [rw] desired_model_arn
2691
+ # ARN of the new model to use for updating an existing endpoint. This
2692
+ # ARN is going to be different from the model ARN when the update is
2693
+ # in progress
2694
+ # @return [String]
2695
+ #
2591
2696
  # @!attribute [rw] desired_inference_units
2592
2697
  # The desired number of inference units to be used by the model using
2593
2698
  # this endpoint. Each inference unit represents of a throughput of 100
@@ -2614,6 +2719,11 @@ module Aws::Comprehend
2614
2719
  # (ModelKmsKeyId).
2615
2720
  # @return [String]
2616
2721
  #
2722
+ # @!attribute [rw] desired_data_access_role_arn
2723
+ # Data access role ARN to use in case the new model is encrypted with
2724
+ # a customer KMS key.
2725
+ # @return [String]
2726
+ #
2617
2727
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EndpointProperties AWS API Documentation
2618
2728
  #
2619
2729
  class EndpointProperties < Struct.new(
@@ -2621,11 +2731,13 @@ module Aws::Comprehend
2621
2731
  :status,
2622
2732
  :message,
2623
2733
  :model_arn,
2734
+ :desired_model_arn,
2624
2735
  :desired_inference_units,
2625
2736
  :current_inference_units,
2626
2737
  :creation_time,
2627
2738
  :last_modified_time,
2628
- :data_access_role_arn)
2739
+ :data_access_role_arn,
2740
+ :desired_data_access_role_arn)
2629
2741
  SENSITIVE = []
2630
2742
  include Aws::Structure
2631
2743
  end
@@ -2857,6 +2969,7 @@ module Aws::Comprehend
2857
2969
  #
2858
2970
  # {
2859
2971
  # s3_uri: "S3Uri", # required
2972
+ # test_s3_uri: "S3Uri",
2860
2973
  # }
2861
2974
  #
2862
2975
  # @!attribute [rw] s3_uri
@@ -2865,10 +2978,17 @@ module Aws::Comprehend
2865
2978
  # API endpoint that you are calling.
2866
2979
  # @return [String]
2867
2980
  #
2981
+ # @!attribute [rw] test_s3_uri
2982
+ # This specifies the Amazon S3 location where the test annotations for
2983
+ # an entity recognizer are located. The URI must be in the same AWS
2984
+ # Region as the API endpoint that you are calling.
2985
+ # @return [String]
2986
+ #
2868
2987
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityRecognizerAnnotations AWS API Documentation
2869
2988
  #
2870
2989
  class EntityRecognizerAnnotations < Struct.new(
2871
- :s3_uri)
2990
+ :s3_uri,
2991
+ :test_s3_uri)
2872
2992
  SENSITIVE = []
2873
2993
  include Aws::Structure
2874
2994
  end
@@ -2880,6 +3000,8 @@ module Aws::Comprehend
2880
3000
  #
2881
3001
  # {
2882
3002
  # s3_uri: "S3Uri", # required
3003
+ # test_s3_uri: "S3Uri",
3004
+ # input_format: "ONE_DOC_PER_FILE", # accepts ONE_DOC_PER_FILE, ONE_DOC_PER_LINE
2883
3005
  # }
2884
3006
  #
2885
3007
  # @!attribute [rw] s3_uri
@@ -2888,10 +3010,28 @@ module Aws::Comprehend
2888
3010
  # the API endpoint that you are calling.
2889
3011
  # @return [String]
2890
3012
  #
3013
+ # @!attribute [rw] test_s3_uri
3014
+ # Specifies the Amazon S3 location where the test documents for an
3015
+ # entity recognizer are located. The URI must be in the same AWS
3016
+ # Region as the API endpoint that you are calling.
3017
+ # @return [String]
3018
+ #
3019
+ # @!attribute [rw] input_format
3020
+ # Specifies how the text in an input file should be processed. This is
3021
+ # optional, and the default is ONE\_DOC\_PER\_LINE.
3022
+ # ONE\_DOC\_PER\_FILE - Each file is considered a separate document.
3023
+ # Use this option when you are processing large documents, such as
3024
+ # newspaper articles or scientific papers. ONE\_DOC\_PER\_LINE - Each
3025
+ # line in a file is considered a separate document. Use this option
3026
+ # when you are processing many short documents, such as text messages.
3027
+ # @return [String]
3028
+ #
2891
3029
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityRecognizerDocuments AWS API Documentation
2892
3030
  #
2893
3031
  class EntityRecognizerDocuments < Struct.new(
2894
- :s3_uri)
3032
+ :s3_uri,
3033
+ :test_s3_uri,
3034
+ :input_format)
2895
3035
  SENSITIVE = []
2896
3036
  include Aws::Structure
2897
3037
  end
@@ -2959,6 +3099,7 @@ module Aws::Comprehend
2959
3099
  #
2960
3100
  # {
2961
3101
  # status: "SUBMITTED", # accepts SUBMITTED, TRAINING, DELETING, STOP_REQUESTED, STOPPED, IN_ERROR, TRAINED
3102
+ # recognizer_name: "ComprehendArnName",
2962
3103
  # submit_time_before: Time.now,
2963
3104
  # submit_time_after: Time.now,
2964
3105
  # }
@@ -2967,6 +3108,10 @@ module Aws::Comprehend
2967
3108
  # The status of an entity recognizer.
2968
3109
  # @return [String]
2969
3110
  #
3111
+ # @!attribute [rw] recognizer_name
3112
+ # The name that you assigned the entity recognizer.
3113
+ # @return [String]
3114
+ #
2970
3115
  # @!attribute [rw] submit_time_before
2971
3116
  # Filters the list of entities based on the time that the list was
2972
3117
  # submitted for processing. Returns only jobs submitted before the
@@ -2985,6 +3130,7 @@ module Aws::Comprehend
2985
3130
  #
2986
3131
  class EntityRecognizerFilter < Struct.new(
2987
3132
  :status,
3133
+ :recognizer_name,
2988
3134
  :submit_time_before,
2989
3135
  :submit_time_after)
2990
3136
  SENSITIVE = []
@@ -3005,9 +3151,12 @@ module Aws::Comprehend
3005
3151
  # ],
3006
3152
  # documents: {
3007
3153
  # s3_uri: "S3Uri", # required
3154
+ # test_s3_uri: "S3Uri",
3155
+ # input_format: "ONE_DOC_PER_FILE", # accepts ONE_DOC_PER_FILE, ONE_DOC_PER_LINE
3008
3156
  # },
3009
3157
  # annotations: {
3010
3158
  # s3_uri: "S3Uri", # required
3159
+ # test_s3_uri: "S3Uri",
3011
3160
  # },
3012
3161
  # entity_list: {
3013
3162
  # s3_uri: "S3Uri", # required
@@ -3015,6 +3164,7 @@ module Aws::Comprehend
3015
3164
  # augmented_manifests: [
3016
3165
  # {
3017
3166
  # s3_uri: "S3Uri", # required
3167
+ # split: "TRAIN", # accepts TRAIN, TEST
3018
3168
  # attribute_names: ["AttributeNamesListItem"], # required
3019
3169
  # annotation_data_s3_uri: "S3Uri",
3020
3170
  # source_documents_s3_uri: "S3Uri",
@@ -3246,6 +3396,10 @@ module Aws::Comprehend
3246
3396
  # `"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"`
3247
3397
  # @return [String]
3248
3398
  #
3399
+ # @!attribute [rw] version_name
3400
+ # The version name you assigned to the entity recognizer.
3401
+ # @return [String]
3402
+ #
3249
3403
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityRecognizerProperties AWS API Documentation
3250
3404
  #
3251
3405
  class EntityRecognizerProperties < Struct.new(
@@ -3262,11 +3416,48 @@ module Aws::Comprehend
3262
3416
  :data_access_role_arn,
3263
3417
  :volume_kms_key_id,
3264
3418
  :vpc_config,
3265
- :model_kms_key_id)
3419
+ :model_kms_key_id,
3420
+ :version_name)
3266
3421
  SENSITIVE = [:recognizer_metadata]
3267
3422
  include Aws::Structure
3268
3423
  end
3269
3424
 
3425
+ # Describes the information about an entity recognizer and its versions.
3426
+ #
3427
+ # @!attribute [rw] recognizer_name
3428
+ # The name that you assigned the entity recognizer.
3429
+ # @return [String]
3430
+ #
3431
+ # @!attribute [rw] number_of_versions
3432
+ # The number of versions you created.
3433
+ # @return [Integer]
3434
+ #
3435
+ # @!attribute [rw] latest_version_created_at
3436
+ # The time that the latest entity recognizer version was submitted for
3437
+ # processing.
3438
+ # @return [Time]
3439
+ #
3440
+ # @!attribute [rw] latest_version_name
3441
+ # The version name you assigned to the latest entity recognizer
3442
+ # version.
3443
+ # @return [String]
3444
+ #
3445
+ # @!attribute [rw] latest_version_status
3446
+ # Provides the status of the latest entity recognizer version.
3447
+ # @return [String]
3448
+ #
3449
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityRecognizerSummary AWS API Documentation
3450
+ #
3451
+ class EntityRecognizerSummary < Struct.new(
3452
+ :recognizer_name,
3453
+ :number_of_versions,
3454
+ :latest_version_created_at,
3455
+ :latest_version_name,
3456
+ :latest_version_status)
3457
+ SENSITIVE = []
3458
+ include Aws::Structure
3459
+ end
3460
+
3270
3461
  # Detailed information about the accuracy of an entity recognizer for a
3271
3462
  # specific entity type.
3272
3463
  #
@@ -3825,12 +4016,56 @@ module Aws::Comprehend
3825
4016
  include Aws::Structure
3826
4017
  end
3827
4018
 
4019
+ # @note When making an API call, you may pass ListDocumentClassifierSummariesRequest
4020
+ # data as a hash:
4021
+ #
4022
+ # {
4023
+ # next_token: "String",
4024
+ # max_results: 1,
4025
+ # }
4026
+ #
4027
+ # @!attribute [rw] next_token
4028
+ # Identifies the next page of results to return.
4029
+ # @return [String]
4030
+ #
4031
+ # @!attribute [rw] max_results
4032
+ # The maximum number of results to return on each page. The default is
4033
+ # 100.
4034
+ # @return [Integer]
4035
+ #
4036
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDocumentClassifierSummariesRequest AWS API Documentation
4037
+ #
4038
+ class ListDocumentClassifierSummariesRequest < Struct.new(
4039
+ :next_token,
4040
+ :max_results)
4041
+ SENSITIVE = []
4042
+ include Aws::Structure
4043
+ end
4044
+
4045
+ # @!attribute [rw] document_classifier_summaries_list
4046
+ # The list of summaries of document classifiers.
4047
+ # @return [Array<Types::DocumentClassifierSummary>]
4048
+ #
4049
+ # @!attribute [rw] next_token
4050
+ # Identifies the next page of results to return.
4051
+ # @return [String]
4052
+ #
4053
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDocumentClassifierSummariesResponse AWS API Documentation
4054
+ #
4055
+ class ListDocumentClassifierSummariesResponse < Struct.new(
4056
+ :document_classifier_summaries_list,
4057
+ :next_token)
4058
+ SENSITIVE = []
4059
+ include Aws::Structure
4060
+ end
4061
+
3828
4062
  # @note When making an API call, you may pass ListDocumentClassifiersRequest
3829
4063
  # data as a hash:
3830
4064
  #
3831
4065
  # {
3832
4066
  # filter: {
3833
4067
  # status: "SUBMITTED", # accepts SUBMITTED, TRAINING, DELETING, STOP_REQUESTED, STOPPED, IN_ERROR, TRAINED
4068
+ # document_classifier_name: "ComprehendArnName",
3834
4069
  # submit_time_before: Time.now,
3835
4070
  # submit_time_after: Time.now,
3836
4071
  # },
@@ -4049,12 +4284,56 @@ module Aws::Comprehend
4049
4284
  include Aws::Structure
4050
4285
  end
4051
4286
 
4287
+ # @note When making an API call, you may pass ListEntityRecognizerSummariesRequest
4288
+ # data as a hash:
4289
+ #
4290
+ # {
4291
+ # next_token: "String",
4292
+ # max_results: 1,
4293
+ # }
4294
+ #
4295
+ # @!attribute [rw] next_token
4296
+ # Identifies the next page of results to return.
4297
+ # @return [String]
4298
+ #
4299
+ # @!attribute [rw] max_results
4300
+ # The maximum number of results to return on each page. The default is
4301
+ # 100.
4302
+ # @return [Integer]
4303
+ #
4304
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntityRecognizerSummariesRequest AWS API Documentation
4305
+ #
4306
+ class ListEntityRecognizerSummariesRequest < Struct.new(
4307
+ :next_token,
4308
+ :max_results)
4309
+ SENSITIVE = []
4310
+ include Aws::Structure
4311
+ end
4312
+
4313
+ # @!attribute [rw] entity_recognizer_summaries_list
4314
+ # The list entity recognizer summaries.
4315
+ # @return [Array<Types::EntityRecognizerSummary>]
4316
+ #
4317
+ # @!attribute [rw] next_token
4318
+ # The list entity recognizer summaries.
4319
+ # @return [String]
4320
+ #
4321
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntityRecognizerSummariesResponse AWS API Documentation
4322
+ #
4323
+ class ListEntityRecognizerSummariesResponse < Struct.new(
4324
+ :entity_recognizer_summaries_list,
4325
+ :next_token)
4326
+ SENSITIVE = []
4327
+ include Aws::Structure
4328
+ end
4329
+
4052
4330
  # @note When making an API call, you may pass ListEntityRecognizersRequest
4053
4331
  # data as a hash:
4054
4332
  #
4055
4333
  # {
4056
4334
  # filter: {
4057
4335
  # status: "SUBMITTED", # accepts SUBMITTED, TRAINING, DELETING, STOP_REQUESTED, STOPPED, IN_ERROR, TRAINED
4336
+ # recognizer_name: "ComprehendArnName",
4058
4337
  # submit_time_before: Time.now,
4059
4338
  # submit_time_after: Time.now,
4060
4339
  # },
@@ -6829,24 +7108,37 @@ module Aws::Comprehend
6829
7108
  #
6830
7109
  # {
6831
7110
  # endpoint_arn: "ComprehendEndpointArn", # required
6832
- # desired_inference_units: 1, # required
7111
+ # desired_model_arn: "ComprehendModelArn",
7112
+ # desired_inference_units: 1,
7113
+ # desired_data_access_role_arn: "IamRoleArn",
6833
7114
  # }
6834
7115
  #
6835
7116
  # @!attribute [rw] endpoint_arn
6836
7117
  # The Amazon Resource Number (ARN) of the endpoint being updated.
6837
7118
  # @return [String]
6838
7119
  #
7120
+ # @!attribute [rw] desired_model_arn
7121
+ # The ARN of the new model to use when updating an existing endpoint.
7122
+ # @return [String]
7123
+ #
6839
7124
  # @!attribute [rw] desired_inference_units
6840
7125
  # The desired number of inference units to be used by the model using
6841
7126
  # this endpoint. Each inference unit represents of a throughput of 100
6842
7127
  # characters per second.
6843
7128
  # @return [Integer]
6844
7129
  #
7130
+ # @!attribute [rw] desired_data_access_role_arn
7131
+ # Data access role ARN to use in case the new model is encrypted with
7132
+ # a customer CMK.
7133
+ # @return [String]
7134
+ #
6845
7135
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/UpdateEndpointRequest AWS API Documentation
6846
7136
  #
6847
7137
  class UpdateEndpointRequest < Struct.new(
6848
7138
  :endpoint_arn,
6849
- :desired_inference_units)
7139
+ :desired_model_arn,
7140
+ :desired_inference_units,
7141
+ :desired_data_access_role_arn)
6850
7142
  SENSITIVE = []
6851
7143
  include Aws::Structure
6852
7144
  end
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-comprehend/customizations'
48
48
  # @!group service
49
49
  module Aws::Comprehend
50
50
 
51
- GEM_VERSION = '1.51.0'
51
+ GEM_VERSION = '1.52.0'
52
52
 
53
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-comprehend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.51.0
4
+ version: 1.52.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-14 00:00:00.000000000 Z
11
+ date: 2021-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core