aws-sdk-comprehend 1.11.0 → 1.12.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
  SHA1:
3
- metadata.gz: 97c1518c041119d0fa4e310d9fb4e97f43776674
4
- data.tar.gz: 308a1ccedf8b2889f19b95a0eef04be11b48fd7d
3
+ metadata.gz: '0698d44ad3f2f5f6f875932cd27c90ad0f616ee3'
4
+ data.tar.gz: 3f1b4152e819201b97dab7f9b74ba1cb4b2b0779
5
5
  SHA512:
6
- metadata.gz: 8a047da29d9b060adf2a559a673f66f5a51aa16f631bf92d2c86a25098b37469d9dac3ae471b0fc9cc7cd198a6f9dd9932595486b2c45706f7357911c8a68b3f
7
- data.tar.gz: d79ef69df60ce0820817397e6c4a407ea6862f79b57eb1fb50a4220567b41757208aa3cdfd5746e11f5e2a02a22087edfbe7c9d1e9a3d70c16557c515310acf5
6
+ metadata.gz: 713cef1fe57743bd49e221902c04cb1f55a5358e4aa9c259e9280feb811b8f16537d1cfa1bc2be8f27cc58572f98b1d6251dc74315a6df150d88b36a7e61676d
7
+ data.tar.gz: '0955f834bab8148b5140050b2167bceb03ba96cbb0909468018a1a0bf94853c8907f9a9bf616469224c35517e42ff98b090e943a585ad9c12369ac6eafc8e433'
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-comprehend/customizations'
42
42
  # @service
43
43
  module Aws::Comprehend
44
44
 
45
- GEM_VERSION = '1.11.0'
45
+ GEM_VERSION = '1.12.0'
46
46
 
47
47
  end
@@ -458,7 +458,8 @@ module Aws::Comprehend
458
458
  # documents. To create a classifier you provide a set of training
459
459
  # documents that labeled with the categories that you want to use. After
460
460
  # the classifier is trained you can use it to categorize a set of
461
- # labeled documents into the categories.
461
+ # labeled documents into the categories. For more information, see
462
+ # how-document-classification.
462
463
  #
463
464
  # @option params [required, String] :document_classifier_name
464
465
  # The name of the document classifier.
@@ -707,7 +708,7 @@ module Aws::Comprehend
707
708
  #
708
709
  # resp.document_classifier_properties.document_classifier_arn #=> String
709
710
  # resp.document_classifier_properties.language_code #=> String, one of "en", "es", "fr", "de", "it", "pt"
710
- # resp.document_classifier_properties.status #=> String, one of "SUBMITTED", "TRAINING", "DELETING", "IN_ERROR", "TRAINED"
711
+ # resp.document_classifier_properties.status #=> String, one of "SUBMITTED", "TRAINING", "DELETING", "STOP_REQUESTED", "STOPPED", "IN_ERROR", "TRAINED"
711
712
  # resp.document_classifier_properties.message #=> String
712
713
  # resp.document_classifier_properties.submit_time #=> Time
713
714
  # resp.document_classifier_properties.end_time #=> Time
@@ -833,7 +834,7 @@ module Aws::Comprehend
833
834
  #
834
835
  # resp.entity_recognizer_properties.entity_recognizer_arn #=> String
835
836
  # resp.entity_recognizer_properties.language_code #=> String, one of "en", "es", "fr", "de", "it", "pt"
836
- # resp.entity_recognizer_properties.status #=> String, one of "SUBMITTED", "TRAINING", "DELETING", "IN_ERROR", "TRAINED"
837
+ # resp.entity_recognizer_properties.status #=> String, one of "SUBMITTED", "TRAINING", "DELETING", "STOP_REQUESTED", "STOPPED", "IN_ERROR", "TRAINED"
837
838
  # resp.entity_recognizer_properties.message #=> String
838
839
  # resp.entity_recognizer_properties.submit_time #=> Time
839
840
  # resp.entity_recognizer_properties.end_time #=> Time
@@ -1257,7 +1258,7 @@ module Aws::Comprehend
1257
1258
  #
1258
1259
  # resp = client.list_document_classifiers({
1259
1260
  # filter: {
1260
- # status: "SUBMITTED", # accepts SUBMITTED, TRAINING, DELETING, IN_ERROR, TRAINED
1261
+ # status: "SUBMITTED", # accepts SUBMITTED, TRAINING, DELETING, STOP_REQUESTED, STOPPED, IN_ERROR, TRAINED
1261
1262
  # submit_time_before: Time.now,
1262
1263
  # submit_time_after: Time.now,
1263
1264
  # },
@@ -1270,7 +1271,7 @@ module Aws::Comprehend
1270
1271
  # resp.document_classifier_properties_list #=> Array
1271
1272
  # resp.document_classifier_properties_list[0].document_classifier_arn #=> String
1272
1273
  # resp.document_classifier_properties_list[0].language_code #=> String, one of "en", "es", "fr", "de", "it", "pt"
1273
- # resp.document_classifier_properties_list[0].status #=> String, one of "SUBMITTED", "TRAINING", "DELETING", "IN_ERROR", "TRAINED"
1274
+ # resp.document_classifier_properties_list[0].status #=> String, one of "SUBMITTED", "TRAINING", "DELETING", "STOP_REQUESTED", "STOPPED", "IN_ERROR", "TRAINED"
1274
1275
  # resp.document_classifier_properties_list[0].message #=> String
1275
1276
  # resp.document_classifier_properties_list[0].submit_time #=> Time
1276
1277
  # resp.document_classifier_properties_list[0].end_time #=> Time
@@ -1441,7 +1442,7 @@ module Aws::Comprehend
1441
1442
  #
1442
1443
  # resp = client.list_entity_recognizers({
1443
1444
  # filter: {
1444
- # status: "SUBMITTED", # accepts SUBMITTED, TRAINING, DELETING, IN_ERROR, TRAINED
1445
+ # status: "SUBMITTED", # accepts SUBMITTED, TRAINING, DELETING, STOP_REQUESTED, STOPPED, IN_ERROR, TRAINED
1445
1446
  # submit_time_before: Time.now,
1446
1447
  # submit_time_after: Time.now,
1447
1448
  # },
@@ -1454,7 +1455,7 @@ module Aws::Comprehend
1454
1455
  # resp.entity_recognizer_properties_list #=> Array
1455
1456
  # resp.entity_recognizer_properties_list[0].entity_recognizer_arn #=> String
1456
1457
  # resp.entity_recognizer_properties_list[0].language_code #=> String, one of "en", "es", "fr", "de", "it", "pt"
1457
- # resp.entity_recognizer_properties_list[0].status #=> String, one of "SUBMITTED", "TRAINING", "DELETING", "IN_ERROR", "TRAINED"
1458
+ # resp.entity_recognizer_properties_list[0].status #=> String, one of "SUBMITTED", "TRAINING", "DELETING", "STOP_REQUESTED", "STOPPED", "IN_ERROR", "TRAINED"
1458
1459
  # resp.entity_recognizer_properties_list[0].message #=> String
1459
1460
  # resp.entity_recognizer_properties_list[0].submit_time #=> Time
1460
1461
  # resp.entity_recognizer_properties_list[0].end_time #=> Time
@@ -2238,6 +2239,66 @@ module Aws::Comprehend
2238
2239
  req.send_request(options)
2239
2240
  end
2240
2241
 
2242
+ # Stops a document classifier training job while in progress.
2243
+ #
2244
+ # If the training job state is `TRAINING`, the job is marked for
2245
+ # termination and put into the `STOP_REQUESTED` state. If the training
2246
+ # job completes before it can be stopped, it is put into the `TRAINED`;
2247
+ # otherwise the training job is stopped and put into the `STOPPED` state
2248
+ # and the service sends back an HTTP 200 response with an empty HTTP
2249
+ # body.
2250
+ #
2251
+ # @option params [required, String] :document_classifier_arn
2252
+ # The Amazon Resource Name (ARN) that identifies the document classifier
2253
+ # currently being trained.
2254
+ #
2255
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2256
+ #
2257
+ # @example Request syntax with placeholder values
2258
+ #
2259
+ # resp = client.stop_training_document_classifier({
2260
+ # document_classifier_arn: "DocumentClassifierArn", # required
2261
+ # })
2262
+ #
2263
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopTrainingDocumentClassifier AWS API Documentation
2264
+ #
2265
+ # @overload stop_training_document_classifier(params = {})
2266
+ # @param [Hash] params ({})
2267
+ def stop_training_document_classifier(params = {}, options = {})
2268
+ req = build_request(:stop_training_document_classifier, params)
2269
+ req.send_request(options)
2270
+ end
2271
+
2272
+ # Stops an entity recognizer training job while in progress.
2273
+ #
2274
+ # If the training job state is `TRAINING`, the job is marked for
2275
+ # termination and put into the `STOP_REQUESTED` state. If the training
2276
+ # job completes before it can be stopped, it is put into the `TRAINED`;
2277
+ # otherwise the training job is stopped and putted into the `STOPPED`
2278
+ # state and the service sends back an HTTP 200 response with an empty
2279
+ # HTTP body.
2280
+ #
2281
+ # @option params [required, String] :entity_recognizer_arn
2282
+ # The Amazon Resource Name (ARN) that identifies the entity recognizer
2283
+ # currently being trained.
2284
+ #
2285
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2286
+ #
2287
+ # @example Request syntax with placeholder values
2288
+ #
2289
+ # resp = client.stop_training_entity_recognizer({
2290
+ # entity_recognizer_arn: "EntityRecognizerArn", # required
2291
+ # })
2292
+ #
2293
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopTrainingEntityRecognizer AWS API Documentation
2294
+ #
2295
+ # @overload stop_training_entity_recognizer(params = {})
2296
+ # @param [Hash] params ({})
2297
+ def stop_training_entity_recognizer(params = {}, options = {})
2298
+ req = build_request(:stop_training_entity_recognizer, params)
2299
+ req.send_request(options)
2300
+ end
2301
+
2241
2302
  # @!endgroup
2242
2303
 
2243
2304
  # @param params ({})
@@ -2251,7 +2312,7 @@ module Aws::Comprehend
2251
2312
  params: params,
2252
2313
  config: config)
2253
2314
  context[:gem_name] = 'aws-sdk-comprehend'
2254
- context[:gem_version] = '1.11.0'
2315
+ context[:gem_version] = '1.12.0'
2255
2316
  Seahorse::Client::Request.new(handlers, context)
2256
2317
  end
2257
2318
 
@@ -179,6 +179,10 @@ module Aws::Comprehend
179
179
  StopKeyPhrasesDetectionJobResponse = Shapes::StructureShape.new(name: 'StopKeyPhrasesDetectionJobResponse')
180
180
  StopSentimentDetectionJobRequest = Shapes::StructureShape.new(name: 'StopSentimentDetectionJobRequest')
181
181
  StopSentimentDetectionJobResponse = Shapes::StructureShape.new(name: 'StopSentimentDetectionJobResponse')
182
+ StopTrainingDocumentClassifierRequest = Shapes::StructureShape.new(name: 'StopTrainingDocumentClassifierRequest')
183
+ StopTrainingDocumentClassifierResponse = Shapes::StructureShape.new(name: 'StopTrainingDocumentClassifierResponse')
184
+ StopTrainingEntityRecognizerRequest = Shapes::StructureShape.new(name: 'StopTrainingEntityRecognizerRequest')
185
+ StopTrainingEntityRecognizerResponse = Shapes::StructureShape.new(name: 'StopTrainingEntityRecognizerResponse')
182
186
  String = Shapes::StringShape.new(name: 'String')
183
187
  StringList = Shapes::ListShape.new(name: 'StringList')
184
188
  SyntaxLanguageCode = Shapes::StringShape.new(name: 'SyntaxLanguageCode')
@@ -786,6 +790,16 @@ module Aws::Comprehend
786
790
  StopSentimentDetectionJobResponse.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
787
791
  StopSentimentDetectionJobResponse.struct_class = Types::StopSentimentDetectionJobResponse
788
792
 
793
+ StopTrainingDocumentClassifierRequest.add_member(:document_classifier_arn, Shapes::ShapeRef.new(shape: DocumentClassifierArn, required: true, location_name: "DocumentClassifierArn"))
794
+ StopTrainingDocumentClassifierRequest.struct_class = Types::StopTrainingDocumentClassifierRequest
795
+
796
+ StopTrainingDocumentClassifierResponse.struct_class = Types::StopTrainingDocumentClassifierResponse
797
+
798
+ StopTrainingEntityRecognizerRequest.add_member(:entity_recognizer_arn, Shapes::ShapeRef.new(shape: EntityRecognizerArn, required: true, location_name: "EntityRecognizerArn"))
799
+ StopTrainingEntityRecognizerRequest.struct_class = Types::StopTrainingEntityRecognizerRequest
800
+
801
+ StopTrainingEntityRecognizerResponse.struct_class = Types::StopTrainingEntityRecognizerResponse
802
+
789
803
  StringList.member = Shapes::ShapeRef.new(shape: String)
790
804
 
791
805
  SyntaxToken.add_member(:token_id, Shapes::ShapeRef.new(shape: Integer, location_name: "TokenId"))
@@ -1347,6 +1361,30 @@ module Aws::Comprehend
1347
1361
  o.errors << Shapes::ShapeRef.new(shape: JobNotFoundException)
1348
1362
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1349
1363
  end)
1364
+
1365
+ api.add_operation(:stop_training_document_classifier, Seahorse::Model::Operation.new.tap do |o|
1366
+ o.name = "StopTrainingDocumentClassifier"
1367
+ o.http_method = "POST"
1368
+ o.http_request_uri = "/"
1369
+ o.input = Shapes::ShapeRef.new(shape: StopTrainingDocumentClassifierRequest)
1370
+ o.output = Shapes::ShapeRef.new(shape: StopTrainingDocumentClassifierResponse)
1371
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1372
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1373
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1374
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1375
+ end)
1376
+
1377
+ api.add_operation(:stop_training_entity_recognizer, Seahorse::Model::Operation.new.tap do |o|
1378
+ o.name = "StopTrainingEntityRecognizer"
1379
+ o.http_method = "POST"
1380
+ o.http_request_uri = "/"
1381
+ o.input = Shapes::ShapeRef.new(shape: StopTrainingEntityRecognizerRequest)
1382
+ o.output = Shapes::ShapeRef.new(shape: StopTrainingEntityRecognizerResponse)
1383
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1384
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1385
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1386
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1387
+ end)
1350
1388
  end
1351
1389
 
1352
1390
  end
@@ -1218,7 +1218,7 @@ module Aws::Comprehend
1218
1218
  # data as a hash:
1219
1219
  #
1220
1220
  # {
1221
- # status: "SUBMITTED", # accepts SUBMITTED, TRAINING, DELETING, IN_ERROR, TRAINED
1221
+ # status: "SUBMITTED", # accepts SUBMITTED, TRAINING, DELETING, STOP_REQUESTED, STOPPED, IN_ERROR, TRAINED
1222
1222
  # submit_time_before: Time.now,
1223
1223
  # submit_time_after: Time.now,
1224
1224
  # }
@@ -1294,7 +1294,7 @@ module Aws::Comprehend
1294
1294
  # @return [String]
1295
1295
  #
1296
1296
  # @!attribute [rw] status
1297
- # The status of the document classifier. The the status is `TRAINED`
1297
+ # The status of the document classifier. If the status is `TRAINED`
1298
1298
  # the classifier is ready to use. If the status is `FAILED` you can
1299
1299
  # see additional information about why the classifier wasn't trained
1300
1300
  # in the `Message` field.
@@ -1753,7 +1753,7 @@ module Aws::Comprehend
1753
1753
  # data as a hash:
1754
1754
  #
1755
1755
  # {
1756
- # status: "SUBMITTED", # accepts SUBMITTED, TRAINING, DELETING, IN_ERROR, TRAINED
1756
+ # status: "SUBMITTED", # accepts SUBMITTED, TRAINING, DELETING, STOP_REQUESTED, STOPPED, IN_ERROR, TRAINED
1757
1757
  # submit_time_before: Time.now,
1758
1758
  # submit_time_after: Time.now,
1759
1759
  # }
@@ -2215,7 +2215,7 @@ module Aws::Comprehend
2215
2215
  #
2216
2216
  # {
2217
2217
  # filter: {
2218
- # status: "SUBMITTED", # accepts SUBMITTED, TRAINING, DELETING, IN_ERROR, TRAINED
2218
+ # status: "SUBMITTED", # accepts SUBMITTED, TRAINING, DELETING, STOP_REQUESTED, STOPPED, IN_ERROR, TRAINED
2219
2219
  # submit_time_before: Time.now,
2220
2220
  # submit_time_after: Time.now,
2221
2221
  # },
@@ -2376,7 +2376,7 @@ module Aws::Comprehend
2376
2376
  #
2377
2377
  # {
2378
2378
  # filter: {
2379
- # status: "SUBMITTED", # accepts SUBMITTED, TRAINING, DELETING, IN_ERROR, TRAINED
2379
+ # status: "SUBMITTED", # accepts SUBMITTED, TRAINING, DELETING, STOP_REQUESTED, STOPPED, IN_ERROR, TRAINED
2380
2380
  # submit_time_before: Time.now,
2381
2381
  # submit_time_after: Time.now,
2382
2382
  # },
@@ -3494,6 +3494,52 @@ module Aws::Comprehend
3494
3494
  include Aws::Structure
3495
3495
  end
3496
3496
 
3497
+ # @note When making an API call, you may pass StopTrainingDocumentClassifierRequest
3498
+ # data as a hash:
3499
+ #
3500
+ # {
3501
+ # document_classifier_arn: "DocumentClassifierArn", # required
3502
+ # }
3503
+ #
3504
+ # @!attribute [rw] document_classifier_arn
3505
+ # The Amazon Resource Name (ARN) that identifies the document
3506
+ # classifier currently being trained.
3507
+ # @return [String]
3508
+ #
3509
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopTrainingDocumentClassifierRequest AWS API Documentation
3510
+ #
3511
+ class StopTrainingDocumentClassifierRequest < Struct.new(
3512
+ :document_classifier_arn)
3513
+ include Aws::Structure
3514
+ end
3515
+
3516
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopTrainingDocumentClassifierResponse AWS API Documentation
3517
+ #
3518
+ class StopTrainingDocumentClassifierResponse < Aws::EmptyStructure; end
3519
+
3520
+ # @note When making an API call, you may pass StopTrainingEntityRecognizerRequest
3521
+ # data as a hash:
3522
+ #
3523
+ # {
3524
+ # entity_recognizer_arn: "EntityRecognizerArn", # required
3525
+ # }
3526
+ #
3527
+ # @!attribute [rw] entity_recognizer_arn
3528
+ # The Amazon Resource Name (ARN) that identifies the entity recognizer
3529
+ # currently being trained.
3530
+ # @return [String]
3531
+ #
3532
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopTrainingEntityRecognizerRequest AWS API Documentation
3533
+ #
3534
+ class StopTrainingEntityRecognizerRequest < Struct.new(
3535
+ :entity_recognizer_arn)
3536
+ include Aws::Structure
3537
+ end
3538
+
3539
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopTrainingEntityRecognizerResponse AWS API Documentation
3540
+ #
3541
+ class StopTrainingEntityRecognizerResponse < Aws::EmptyStructure; end
3542
+
3497
3543
  # Represents a work in the input text that was recognized and assigned a
3498
3544
  # part of speech. There is one syntax token record for each word in the
3499
3545
  # source text.
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.11.0
4
+ version: 1.12.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: 2018-11-20 00:00:00.000000000 Z
11
+ date: 2018-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core