aws-sdk-comprehend 1.27.0 → 1.28.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8af6730466ffa724762d57c8da0bfffa77d80ead
4
- data.tar.gz: c799744b9ea369f2c288d9907181f608179f22b1
3
+ metadata.gz: 5d084d8fabae1a4a9046c7cec3b23459e5382c4a
4
+ data.tar.gz: 9ea0f0dba9567e33c04057fdd75420627debc0ea
5
5
  SHA512:
6
- metadata.gz: 9b4b04cdcc1f2d8733688afd98b159eb1d3d263aca3c8adefe93f5dae1a5c0b87c8479e498928b1cdd1ebd2a13a47716c2954b62b85115250ba1ac0d39b6fd3c
7
- data.tar.gz: 3e565534e4d90f0a33f599f758404f3264a84c74216a98d536eccb1c9db2db5c4040d993521ea439988d448da52c6788cd4c30161c1395e696204f0d920d808d
6
+ metadata.gz: 82fbc4000e712e7e5e499932359734ab69f4e52631d2f4f04f1cdfa8a3f1284726b650b41eb8ab0bd9e5f3e2df8bf3367276427c4a7e07f9384e3176ad592e0b
7
+ data.tar.gz: a3910c3c1d178ace0f6353ff1f3aff51713888c547e4e17f18ebad97e4b81019afb20de8e120ba7c85092922edcc812f7d1a4efcd31af15d93691e9a79e589cb
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-comprehend/customizations'
42
42
  # @service
43
43
  module Aws::Comprehend
44
44
 
45
- GEM_VERSION = '1.27.0'
45
+ GEM_VERSION = '1.28.0'
46
46
 
47
47
  end
@@ -321,9 +321,8 @@ module Aws::Comprehend
321
321
  #
322
322
  # @option params [required, String] :language_code
323
323
  # The language of the input documents. You can specify any of the
324
- # primary languages supported by Amazon Comprehend: German ("de"),
325
- # English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
326
- # or Portuguese ("pt"). All documents must be in the same language.
324
+ # primary languages supported by Amazon Comprehend. All documents must
325
+ # be in the same language.
327
326
  #
328
327
  # @return [Types::BatchDetectEntitiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
329
328
  #
@@ -370,9 +369,8 @@ module Aws::Comprehend
370
369
  #
371
370
  # @option params [required, String] :language_code
372
371
  # The language of the input documents. You can specify any of the
373
- # primary languages supported by Amazon Comprehend: German ("de"),
374
- # English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
375
- # or Portuguese ("pt"). All documents must be in the same language.
372
+ # primary languages supported by Amazon Comprehend. All documents must
373
+ # be in the same language.
376
374
  #
377
375
  # @return [Types::BatchDetectKeyPhrasesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
378
376
  #
@@ -420,9 +418,8 @@ module Aws::Comprehend
420
418
  #
421
419
  # @option params [required, String] :language_code
422
420
  # The language of the input documents. You can specify any of the
423
- # primary languages supported by Amazon Comprehend: German ("de"),
424
- # English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
425
- # or Portuguese ("pt"). All documents must be in the same language.
421
+ # primary languages supported by Amazon Comprehend. All documents must
422
+ # be in the same language.
426
423
  #
427
424
  # @return [Types::BatchDetectSentimentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
428
425
  #
@@ -470,7 +467,7 @@ module Aws::Comprehend
470
467
  #
471
468
  # @option params [required, String] :language_code
472
469
  # The language of the input documents. You can specify any of the
473
- # primary languages supported by Amazon Comprehend: German ("de"),
470
+ # following languages supported by Amazon Comprehend: German ("de"),
474
471
  # English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
475
472
  # or Portuguese ("pt"). All documents must be in the same language.
476
473
  #
@@ -511,6 +508,42 @@ module Aws::Comprehend
511
508
  req.send_request(options)
512
509
  end
513
510
 
511
+ # Creates a new document classification request to analyze a single
512
+ # document in real-time, using a previously created and trained custom
513
+ # model and an endpoint.
514
+ #
515
+ # @option params [required, String] :text
516
+ # The document text to be analyzed.
517
+ #
518
+ # @option params [required, String] :endpoint_arn
519
+ # The Amazon Resource Number (ARN) of the endpoint.
520
+ #
521
+ # @return [Types::ClassifyDocumentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
522
+ #
523
+ # * {Types::ClassifyDocumentResponse#classes #classes} => Array<Types::DocumentClass>
524
+ #
525
+ # @example Request syntax with placeholder values
526
+ #
527
+ # resp = client.classify_document({
528
+ # text: "String", # required
529
+ # endpoint_arn: "DocumentClassifierEndpointArn", # required
530
+ # })
531
+ #
532
+ # @example Response structure
533
+ #
534
+ # resp.classes #=> Array
535
+ # resp.classes[0].name #=> String
536
+ # resp.classes[0].score #=> Float
537
+ #
538
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ClassifyDocument AWS API Documentation
539
+ #
540
+ # @overload classify_document(params = {})
541
+ # @param [Hash] params ({})
542
+ def classify_document(params = {}, options = {})
543
+ req = build_request(:classify_document, params)
544
+ req.send_request(options)
545
+ end
546
+
514
547
  # Creates a new document classifier that you can use to categorize
515
548
  # documents. To create a classifier you provide a set of training
516
549
  # documents that labeled with the categories that you want to use. After
@@ -548,7 +581,7 @@ module Aws::Comprehend
548
581
  #
549
582
  # @option params [required, String] :language_code
550
583
  # The language of the input documents. You can specify any of the
551
- # primary languages supported by Amazon Comprehend: German ("de"),
584
+ # following languages supported by Amazon Comprehend: German ("de"),
552
585
  # English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
553
586
  # or Portuguese ("pt"). All documents must be in the same language.
554
587
  #
@@ -616,6 +649,68 @@ module Aws::Comprehend
616
649
  req.send_request(options)
617
650
  end
618
651
 
652
+ # Creates a model-specific endpoint for synchronous inference for a
653
+ # previously trained custom model
654
+ #
655
+ # @option params [required, String] :endpoint_name
656
+ # This is the descriptive suffix that becomes part of the `EndpointArn`
657
+ # used for all subsequent requests to this resource.
658
+ #
659
+ # @option params [required, String] :model_arn
660
+ # The Amazon Resource Number (ARN) of the model to which the endpoint
661
+ # will be attached.
662
+ #
663
+ # @option params [required, Integer] :desired_inference_units
664
+ # The desired number of inference units to be used by the model using
665
+ # this endpoint. Each inference unit represents of a throughput of 100
666
+ # characters per second.
667
+ #
668
+ # @option params [String] :client_request_token
669
+ # An idempotency token provided by the customer. If this token matches a
670
+ # previous endpoint creation request, Amazon Comprehend will not return
671
+ # a `ResourceInUseException`.
672
+ #
673
+ # **A suitable default value is auto-generated.** You should normally
674
+ # not need to pass this option.**
675
+ #
676
+ # @option params [Array<Types::Tag>] :tags
677
+ # Tags associated with the endpoint being created. A tag is a key-value
678
+ # pair that adds metadata to the endpoint. For example, a tag with
679
+ # "Sales" as the key might be added to an endpoint to indicate its use
680
+ # by the sales department.
681
+ #
682
+ # @return [Types::CreateEndpointResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
683
+ #
684
+ # * {Types::CreateEndpointResponse#endpoint_arn #endpoint_arn} => String
685
+ #
686
+ # @example Request syntax with placeholder values
687
+ #
688
+ # resp = client.create_endpoint({
689
+ # endpoint_name: "ComprehendEndpointName", # required
690
+ # model_arn: "ComprehendModelArn", # required
691
+ # desired_inference_units: 1, # required
692
+ # client_request_token: "ClientRequestTokenString",
693
+ # tags: [
694
+ # {
695
+ # key: "TagKey", # required
696
+ # value: "TagValue",
697
+ # },
698
+ # ],
699
+ # })
700
+ #
701
+ # @example Response structure
702
+ #
703
+ # resp.endpoint_arn #=> String
704
+ #
705
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/CreateEndpoint AWS API Documentation
706
+ #
707
+ # @overload create_endpoint(params = {})
708
+ # @param [Hash] params ({})
709
+ def create_endpoint(params = {}, options = {})
710
+ req = build_request(:create_endpoint, params)
711
+ req.send_request(options)
712
+ end
713
+
619
714
  # Creates an entity recognizer using submitted files. After your
620
715
  # `CreateEntityRecognizer` request is submitted, you can check job
621
716
  # status using the API.
@@ -758,6 +853,30 @@ module Aws::Comprehend
758
853
  req.send_request(options)
759
854
  end
760
855
 
856
+ # Deletes a model-specific endpoint for a previously-trained custom
857
+ # model. All endpoints must be deleted in order for the model to be
858
+ # deleted.
859
+ #
860
+ # @option params [required, String] :endpoint_arn
861
+ # The Amazon Resource Number (ARN) of the endpoint being deleted.
862
+ #
863
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
864
+ #
865
+ # @example Request syntax with placeholder values
866
+ #
867
+ # resp = client.delete_endpoint({
868
+ # endpoint_arn: "ComprehendEndpointArn", # required
869
+ # })
870
+ #
871
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DeleteEndpoint AWS API Documentation
872
+ #
873
+ # @overload delete_endpoint(params = {})
874
+ # @param [Hash] params ({})
875
+ def delete_endpoint(params = {}, options = {})
876
+ req = build_request(:delete_endpoint, params)
877
+ req.send_request(options)
878
+ end
879
+
761
880
  # Deletes an entity recognizer.
762
881
  #
763
882
  # Only those recognizers that are in terminated states (IN\_ERROR,
@@ -932,6 +1051,42 @@ module Aws::Comprehend
932
1051
  req.send_request(options)
933
1052
  end
934
1053
 
1054
+ # Gets the properties associated with a specific endpoint. Use this
1055
+ # operation to get the status of an endpoint.
1056
+ #
1057
+ # @option params [required, String] :endpoint_arn
1058
+ # The Amazon Resource Number (ARN) of the endpoint being described.
1059
+ #
1060
+ # @return [Types::DescribeEndpointResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1061
+ #
1062
+ # * {Types::DescribeEndpointResponse#endpoint_properties #endpoint_properties} => Types::EndpointProperties
1063
+ #
1064
+ # @example Request syntax with placeholder values
1065
+ #
1066
+ # resp = client.describe_endpoint({
1067
+ # endpoint_arn: "ComprehendEndpointArn", # required
1068
+ # })
1069
+ #
1070
+ # @example Response structure
1071
+ #
1072
+ # resp.endpoint_properties.endpoint_arn #=> String
1073
+ # resp.endpoint_properties.status #=> String, one of "CREATING", "DELETING", "FAILED", "IN_SERVICE", "UPDATING"
1074
+ # resp.endpoint_properties.message #=> String
1075
+ # resp.endpoint_properties.model_arn #=> String
1076
+ # resp.endpoint_properties.desired_inference_units #=> Integer
1077
+ # resp.endpoint_properties.current_inference_units #=> Integer
1078
+ # resp.endpoint_properties.creation_time #=> Time
1079
+ # resp.endpoint_properties.last_modified_time #=> Time
1080
+ #
1081
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEndpoint AWS API Documentation
1082
+ #
1083
+ # @overload describe_endpoint(params = {})
1084
+ # @param [Hash] params ({})
1085
+ def describe_endpoint(params = {}, options = {})
1086
+ req = build_request(:describe_endpoint, params)
1087
+ req.send_request(options)
1088
+ end
1089
+
935
1090
  # Gets the properties associated with an entities detection job. Use
936
1091
  # this operation to get the status of a detection job.
937
1092
  #
@@ -1221,9 +1376,8 @@ module Aws::Comprehend
1221
1376
  #
1222
1377
  # @option params [required, String] :language_code
1223
1378
  # The language of the input documents. You can specify any of the
1224
- # primary languages supported by Amazon Comprehend: German ("de"),
1225
- # English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
1226
- # or Portuguese ("pt"). All documents must be in the same language.
1379
+ # primary languages supported by Amazon Comprehend. All documents must
1380
+ # be in the same language.
1227
1381
  #
1228
1382
  # @return [Types::DetectEntitiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1229
1383
  #
@@ -1262,9 +1416,8 @@ module Aws::Comprehend
1262
1416
  #
1263
1417
  # @option params [required, String] :language_code
1264
1418
  # The language of the input documents. You can specify any of the
1265
- # primary languages supported by Amazon Comprehend: German ("de"),
1266
- # English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
1267
- # or Portuguese ("pt"). All documents must be in the same language.
1419
+ # primary languages supported by Amazon Comprehend. All documents must
1420
+ # be in the same language.
1268
1421
  #
1269
1422
  # @return [Types::DetectKeyPhrasesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1270
1423
  #
@@ -1303,9 +1456,8 @@ module Aws::Comprehend
1303
1456
  #
1304
1457
  # @option params [required, String] :language_code
1305
1458
  # The language of the input documents. You can specify any of the
1306
- # primary languages supported by Amazon Comprehend: German ("de"),
1307
- # English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
1308
- # or Portuguese ("pt"). All documents must be in the same language.
1459
+ # primary languages supported by Amazon Comprehend. All documents must
1460
+ # be in the same language.
1309
1461
  #
1310
1462
  # @return [Types::DetectSentimentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1311
1463
  #
@@ -1345,7 +1497,7 @@ module Aws::Comprehend
1345
1497
  #
1346
1498
  # @option params [required, String] :language_code
1347
1499
  # The language code of the input documents. You can specify any of the
1348
- # primary languages supported by Amazon Comprehend: German ("de"),
1500
+ # following languages supported by Amazon Comprehend: German ("de"),
1349
1501
  # English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
1350
1502
  # or Portuguese ("pt").
1351
1503
  #
@@ -1575,6 +1727,60 @@ module Aws::Comprehend
1575
1727
  req.send_request(options)
1576
1728
  end
1577
1729
 
1730
+ # Gets a list of all existing endpoints that you've created.
1731
+ #
1732
+ # @option params [Types::EndpointFilter] :filter
1733
+ # Filters the endpoints that are returned. You can filter endpoints on
1734
+ # their name, model, status, or the date and time that they were
1735
+ # created. You can only set one filter at a time.
1736
+ #
1737
+ # @option params [String] :next_token
1738
+ # Identifies the next page of results to return.
1739
+ #
1740
+ # @option params [Integer] :max_results
1741
+ # The maximum number of results to return in each page. The default is
1742
+ # 100.
1743
+ #
1744
+ # @return [Types::ListEndpointsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1745
+ #
1746
+ # * {Types::ListEndpointsResponse#endpoint_properties_list #endpoint_properties_list} => Array&lt;Types::EndpointProperties&gt;
1747
+ # * {Types::ListEndpointsResponse#next_token #next_token} => String
1748
+ #
1749
+ # @example Request syntax with placeholder values
1750
+ #
1751
+ # resp = client.list_endpoints({
1752
+ # filter: {
1753
+ # model_arn: "ComprehendModelArn",
1754
+ # status: "CREATING", # accepts CREATING, DELETING, FAILED, IN_SERVICE, UPDATING
1755
+ # creation_time_before: Time.now,
1756
+ # creation_time_after: Time.now,
1757
+ # },
1758
+ # next_token: "String",
1759
+ # max_results: 1,
1760
+ # })
1761
+ #
1762
+ # @example Response structure
1763
+ #
1764
+ # resp.endpoint_properties_list #=> Array
1765
+ # resp.endpoint_properties_list[0].endpoint_arn #=> String
1766
+ # resp.endpoint_properties_list[0].status #=> String, one of "CREATING", "DELETING", "FAILED", "IN_SERVICE", "UPDATING"
1767
+ # resp.endpoint_properties_list[0].message #=> String
1768
+ # resp.endpoint_properties_list[0].model_arn #=> String
1769
+ # resp.endpoint_properties_list[0].desired_inference_units #=> Integer
1770
+ # resp.endpoint_properties_list[0].current_inference_units #=> Integer
1771
+ # resp.endpoint_properties_list[0].creation_time #=> Time
1772
+ # resp.endpoint_properties_list[0].last_modified_time #=> Time
1773
+ # resp.next_token #=> String
1774
+ #
1775
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEndpoints AWS API Documentation
1776
+ #
1777
+ # @overload list_endpoints(params = {})
1778
+ # @param [Hash] params ({})
1779
+ def list_endpoints(params = {}, options = {})
1780
+ req = build_request(:list_endpoints, params)
1781
+ req.send_request(options)
1782
+ end
1783
+
1578
1784
  # Gets a list of the entity detection jobs that you have submitted.
1579
1785
  #
1580
1786
  # @option params [Types::EntitiesDetectionJobFilter] :filter
@@ -2157,10 +2363,8 @@ module Aws::Comprehend
2157
2363
  # @option params [required, String] :language_code
2158
2364
  # The language of the input documents. All documents must be in the same
2159
2365
  # language. You can specify any of the languages supported by Amazon
2160
- # Comprehend: English ("en"), Spanish ("es"), French ("fr"),
2161
- # German ("de"), Italian ("it"), or Portuguese ("pt"). If custom
2162
- # entities recognition is used, this parameter is ignored and the
2163
- # language used for training the model is used instead.
2366
+ # Comprehend. If custom entities recognition is used, this parameter is
2367
+ # ignored and the language used for training the model is used instead.
2164
2368
  #
2165
2369
  # @option params [String] :client_request_token
2166
2370
  # A unique identifier for the request. If you don't set the client
@@ -2255,9 +2459,8 @@ module Aws::Comprehend
2255
2459
  #
2256
2460
  # @option params [required, String] :language_code
2257
2461
  # The language of the input documents. You can specify any of the
2258
- # primary languages supported by Amazon Comprehend: German ("de"),
2259
- # English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
2260
- # or Portuguese ("pt"). All documents must be in the same language.
2462
+ # primary languages supported by Amazon Comprehend. All documents must
2463
+ # be in the same language.
2261
2464
  #
2262
2465
  # @option params [String] :client_request_token
2263
2466
  # A unique identifier for the request. If you don't set the client
@@ -2351,9 +2554,8 @@ module Aws::Comprehend
2351
2554
  #
2352
2555
  # @option params [required, String] :language_code
2353
2556
  # The language of the input documents. You can specify any of the
2354
- # primary languages supported by Amazon Comprehend: German ("de"),
2355
- # English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
2356
- # or Portuguese ("pt"). All documents must be in the same language.
2557
+ # primary languages supported by Amazon Comprehend. All documents must
2558
+ # be in the same language.
2357
2559
  #
2358
2560
  # @option params [String] :client_request_token
2359
2561
  # A unique identifier for the request. If you don't set the client
@@ -2815,6 +3017,34 @@ module Aws::Comprehend
2815
3017
  req.send_request(options)
2816
3018
  end
2817
3019
 
3020
+ # Updates information about the specified endpoint.
3021
+ #
3022
+ # @option params [required, String] :endpoint_arn
3023
+ # The Amazon Resource Number (ARN) of the endpoint being updated.
3024
+ #
3025
+ # @option params [required, Integer] :desired_inference_units
3026
+ # The desired number of inference units to be used by the model using
3027
+ # this endpoint. Each inference unit represents of a throughput of 100
3028
+ # characters per second.
3029
+ #
3030
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3031
+ #
3032
+ # @example Request syntax with placeholder values
3033
+ #
3034
+ # resp = client.update_endpoint({
3035
+ # endpoint_arn: "ComprehendEndpointArn", # required
3036
+ # desired_inference_units: 1, # required
3037
+ # })
3038
+ #
3039
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/UpdateEndpoint AWS API Documentation
3040
+ #
3041
+ # @overload update_endpoint(params = {})
3042
+ # @param [Hash] params ({})
3043
+ def update_endpoint(params = {}, options = {})
3044
+ req = build_request(:update_endpoint, params)
3045
+ req.send_request(options)
3046
+ end
3047
+
2818
3048
  # @!endgroup
2819
3049
 
2820
3050
  # @param params ({})
@@ -2828,7 +3058,7 @@ module Aws::Comprehend
2828
3058
  params: params,
2829
3059
  config: config)
2830
3060
  context[:gem_name] = 'aws-sdk-comprehend'
2831
- context[:gem_version] = '1.27.0'
3061
+ context[:gem_version] = '1.28.0'
2832
3062
  Seahorse::Client::Request.new(handlers, context)
2833
3063
  end
2834
3064
 
@@ -32,16 +32,25 @@ module Aws::Comprehend
32
32
  BatchSizeLimitExceededException = Shapes::StructureShape.new(name: 'BatchSizeLimitExceededException')
33
33
  ClassifierEvaluationMetrics = Shapes::StructureShape.new(name: 'ClassifierEvaluationMetrics')
34
34
  ClassifierMetadata = Shapes::StructureShape.new(name: 'ClassifierMetadata')
35
+ ClassifyDocumentRequest = Shapes::StructureShape.new(name: 'ClassifyDocumentRequest')
36
+ ClassifyDocumentResponse = Shapes::StructureShape.new(name: 'ClassifyDocumentResponse')
35
37
  ClientRequestTokenString = Shapes::StringShape.new(name: 'ClientRequestTokenString')
36
38
  ComprehendArn = Shapes::StringShape.new(name: 'ComprehendArn')
37
39
  ComprehendArnName = Shapes::StringShape.new(name: 'ComprehendArnName')
40
+ ComprehendEndpointArn = Shapes::StringShape.new(name: 'ComprehendEndpointArn')
41
+ ComprehendEndpointName = Shapes::StringShape.new(name: 'ComprehendEndpointName')
42
+ ComprehendModelArn = Shapes::StringShape.new(name: 'ComprehendModelArn')
38
43
  ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
39
44
  CreateDocumentClassifierRequest = Shapes::StructureShape.new(name: 'CreateDocumentClassifierRequest')
40
45
  CreateDocumentClassifierResponse = Shapes::StructureShape.new(name: 'CreateDocumentClassifierResponse')
46
+ CreateEndpointRequest = Shapes::StructureShape.new(name: 'CreateEndpointRequest')
47
+ CreateEndpointResponse = Shapes::StructureShape.new(name: 'CreateEndpointResponse')
41
48
  CreateEntityRecognizerRequest = Shapes::StructureShape.new(name: 'CreateEntityRecognizerRequest')
42
49
  CreateEntityRecognizerResponse = Shapes::StructureShape.new(name: 'CreateEntityRecognizerResponse')
43
50
  DeleteDocumentClassifierRequest = Shapes::StructureShape.new(name: 'DeleteDocumentClassifierRequest')
44
51
  DeleteDocumentClassifierResponse = Shapes::StructureShape.new(name: 'DeleteDocumentClassifierResponse')
52
+ DeleteEndpointRequest = Shapes::StructureShape.new(name: 'DeleteEndpointRequest')
53
+ DeleteEndpointResponse = Shapes::StructureShape.new(name: 'DeleteEndpointResponse')
45
54
  DeleteEntityRecognizerRequest = Shapes::StructureShape.new(name: 'DeleteEntityRecognizerRequest')
46
55
  DeleteEntityRecognizerResponse = Shapes::StructureShape.new(name: 'DeleteEntityRecognizerResponse')
47
56
  DescribeDocumentClassificationJobRequest = Shapes::StructureShape.new(name: 'DescribeDocumentClassificationJobRequest')
@@ -50,6 +59,8 @@ module Aws::Comprehend
50
59
  DescribeDocumentClassifierResponse = Shapes::StructureShape.new(name: 'DescribeDocumentClassifierResponse')
51
60
  DescribeDominantLanguageDetectionJobRequest = Shapes::StructureShape.new(name: 'DescribeDominantLanguageDetectionJobRequest')
52
61
  DescribeDominantLanguageDetectionJobResponse = Shapes::StructureShape.new(name: 'DescribeDominantLanguageDetectionJobResponse')
62
+ DescribeEndpointRequest = Shapes::StructureShape.new(name: 'DescribeEndpointRequest')
63
+ DescribeEndpointResponse = Shapes::StructureShape.new(name: 'DescribeEndpointResponse')
53
64
  DescribeEntitiesDetectionJobRequest = Shapes::StructureShape.new(name: 'DescribeEntitiesDetectionJobRequest')
54
65
  DescribeEntitiesDetectionJobResponse = Shapes::StructureShape.new(name: 'DescribeEntitiesDetectionJobResponse')
55
66
  DescribeEntityRecognizerRequest = Shapes::StructureShape.new(name: 'DescribeEntityRecognizerRequest')
@@ -70,10 +81,12 @@ module Aws::Comprehend
70
81
  DetectSentimentResponse = Shapes::StructureShape.new(name: 'DetectSentimentResponse')
71
82
  DetectSyntaxRequest = Shapes::StructureShape.new(name: 'DetectSyntaxRequest')
72
83
  DetectSyntaxResponse = Shapes::StructureShape.new(name: 'DetectSyntaxResponse')
84
+ DocumentClass = Shapes::StructureShape.new(name: 'DocumentClass')
73
85
  DocumentClassificationJobFilter = Shapes::StructureShape.new(name: 'DocumentClassificationJobFilter')
74
86
  DocumentClassificationJobProperties = Shapes::StructureShape.new(name: 'DocumentClassificationJobProperties')
75
87
  DocumentClassificationJobPropertiesList = Shapes::ListShape.new(name: 'DocumentClassificationJobPropertiesList')
76
88
  DocumentClassifierArn = Shapes::StringShape.new(name: 'DocumentClassifierArn')
89
+ DocumentClassifierEndpointArn = Shapes::StringShape.new(name: 'DocumentClassifierEndpointArn')
77
90
  DocumentClassifierFilter = Shapes::StructureShape.new(name: 'DocumentClassifierFilter')
78
91
  DocumentClassifierInputDataConfig = Shapes::StructureShape.new(name: 'DocumentClassifierInputDataConfig')
79
92
  DocumentClassifierOutputDataConfig = Shapes::StructureShape.new(name: 'DocumentClassifierOutputDataConfig')
@@ -84,6 +97,10 @@ module Aws::Comprehend
84
97
  DominantLanguageDetectionJobProperties = Shapes::StructureShape.new(name: 'DominantLanguageDetectionJobProperties')
85
98
  DominantLanguageDetectionJobPropertiesList = Shapes::ListShape.new(name: 'DominantLanguageDetectionJobPropertiesList')
86
99
  Double = Shapes::FloatShape.new(name: 'Double')
100
+ EndpointFilter = Shapes::StructureShape.new(name: 'EndpointFilter')
101
+ EndpointProperties = Shapes::StructureShape.new(name: 'EndpointProperties')
102
+ EndpointPropertiesList = Shapes::ListShape.new(name: 'EndpointPropertiesList')
103
+ EndpointStatus = Shapes::StringShape.new(name: 'EndpointStatus')
87
104
  EntitiesDetectionJobFilter = Shapes::StructureShape.new(name: 'EntitiesDetectionJobFilter')
88
105
  EntitiesDetectionJobProperties = Shapes::StructureShape.new(name: 'EntitiesDetectionJobProperties')
89
106
  EntitiesDetectionJobPropertiesList = Shapes::ListShape.new(name: 'EntitiesDetectionJobPropertiesList')
@@ -107,6 +124,7 @@ module Aws::Comprehend
107
124
  EntityTypesListItem = Shapes::StructureShape.new(name: 'EntityTypesListItem')
108
125
  Float = Shapes::FloatShape.new(name: 'Float')
109
126
  IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
127
+ InferenceUnitsInteger = Shapes::IntegerShape.new(name: 'InferenceUnitsInteger')
110
128
  InputDataConfig = Shapes::StructureShape.new(name: 'InputDataConfig')
111
129
  InputFormat = Shapes::StringShape.new(name: 'InputFormat')
112
130
  Integer = Shapes::IntegerShape.new(name: 'Integer')
@@ -130,12 +148,15 @@ module Aws::Comprehend
130
148
  ListDocumentClassifiersResponse = Shapes::StructureShape.new(name: 'ListDocumentClassifiersResponse')
131
149
  ListDominantLanguageDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListDominantLanguageDetectionJobsRequest')
132
150
  ListDominantLanguageDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListDominantLanguageDetectionJobsResponse')
151
+ ListEndpointsRequest = Shapes::StructureShape.new(name: 'ListEndpointsRequest')
152
+ ListEndpointsResponse = Shapes::StructureShape.new(name: 'ListEndpointsResponse')
133
153
  ListEntitiesDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListEntitiesDetectionJobsRequest')
134
154
  ListEntitiesDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListEntitiesDetectionJobsResponse')
135
155
  ListEntityRecognizersRequest = Shapes::StructureShape.new(name: 'ListEntityRecognizersRequest')
136
156
  ListEntityRecognizersResponse = Shapes::StructureShape.new(name: 'ListEntityRecognizersResponse')
137
157
  ListKeyPhrasesDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListKeyPhrasesDetectionJobsRequest')
138
158
  ListKeyPhrasesDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListKeyPhrasesDetectionJobsResponse')
159
+ ListOfClasses = Shapes::ListShape.new(name: 'ListOfClasses')
139
160
  ListOfDetectDominantLanguageResult = Shapes::ListShape.new(name: 'ListOfDetectDominantLanguageResult')
140
161
  ListOfDetectEntitiesResult = Shapes::ListShape.new(name: 'ListOfDetectEntitiesResult')
141
162
  ListOfDetectKeyPhrasesResult = Shapes::ListShape.new(name: 'ListOfDetectKeyPhrasesResult')
@@ -217,6 +238,8 @@ module Aws::Comprehend
217
238
  UnsupportedLanguageException = Shapes::StructureShape.new(name: 'UnsupportedLanguageException')
218
239
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
219
240
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
241
+ UpdateEndpointRequest = Shapes::StructureShape.new(name: 'UpdateEndpointRequest')
242
+ UpdateEndpointResponse = Shapes::StructureShape.new(name: 'UpdateEndpointResponse')
220
243
  VpcConfig = Shapes::StructureShape.new(name: 'VpcConfig')
221
244
 
222
245
  BatchDetectDominantLanguageItemResult.add_member(:index, Shapes::ShapeRef.new(shape: Integer, location_name: "Index"))
@@ -301,6 +324,13 @@ module Aws::Comprehend
301
324
  ClassifierMetadata.add_member(:evaluation_metrics, Shapes::ShapeRef.new(shape: ClassifierEvaluationMetrics, location_name: "EvaluationMetrics"))
302
325
  ClassifierMetadata.struct_class = Types::ClassifierMetadata
303
326
 
327
+ ClassifyDocumentRequest.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Text"))
328
+ ClassifyDocumentRequest.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: DocumentClassifierEndpointArn, required: true, location_name: "EndpointArn"))
329
+ ClassifyDocumentRequest.struct_class = Types::ClassifyDocumentRequest
330
+
331
+ ClassifyDocumentResponse.add_member(:classes, Shapes::ShapeRef.new(shape: ListOfClasses, location_name: "Classes"))
332
+ ClassifyDocumentResponse.struct_class = Types::ClassifyDocumentResponse
333
+
304
334
  ConcurrentModificationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
305
335
  ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
306
336
 
@@ -318,6 +348,16 @@ module Aws::Comprehend
318
348
  CreateDocumentClassifierResponse.add_member(:document_classifier_arn, Shapes::ShapeRef.new(shape: DocumentClassifierArn, location_name: "DocumentClassifierArn"))
319
349
  CreateDocumentClassifierResponse.struct_class = Types::CreateDocumentClassifierResponse
320
350
 
351
+ CreateEndpointRequest.add_member(:endpoint_name, Shapes::ShapeRef.new(shape: ComprehendEndpointName, required: true, location_name: "EndpointName"))
352
+ CreateEndpointRequest.add_member(:model_arn, Shapes::ShapeRef.new(shape: ComprehendModelArn, required: true, location_name: "ModelArn"))
353
+ CreateEndpointRequest.add_member(:desired_inference_units, Shapes::ShapeRef.new(shape: InferenceUnitsInteger, required: true, location_name: "DesiredInferenceUnits"))
354
+ CreateEndpointRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenString, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
355
+ CreateEndpointRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
356
+ CreateEndpointRequest.struct_class = Types::CreateEndpointRequest
357
+
358
+ CreateEndpointResponse.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: ComprehendEndpointArn, location_name: "EndpointArn"))
359
+ CreateEndpointResponse.struct_class = Types::CreateEndpointResponse
360
+
321
361
  CreateEntityRecognizerRequest.add_member(:recognizer_name, Shapes::ShapeRef.new(shape: ComprehendArnName, required: true, location_name: "RecognizerName"))
322
362
  CreateEntityRecognizerRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "DataAccessRoleArn"))
323
363
  CreateEntityRecognizerRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
@@ -336,6 +376,11 @@ module Aws::Comprehend
336
376
 
337
377
  DeleteDocumentClassifierResponse.struct_class = Types::DeleteDocumentClassifierResponse
338
378
 
379
+ DeleteEndpointRequest.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: ComprehendEndpointArn, required: true, location_name: "EndpointArn"))
380
+ DeleteEndpointRequest.struct_class = Types::DeleteEndpointRequest
381
+
382
+ DeleteEndpointResponse.struct_class = Types::DeleteEndpointResponse
383
+
339
384
  DeleteEntityRecognizerRequest.add_member(:entity_recognizer_arn, Shapes::ShapeRef.new(shape: EntityRecognizerArn, required: true, location_name: "EntityRecognizerArn"))
340
385
  DeleteEntityRecognizerRequest.struct_class = Types::DeleteEntityRecognizerRequest
341
386
 
@@ -359,6 +404,12 @@ module Aws::Comprehend
359
404
  DescribeDominantLanguageDetectionJobResponse.add_member(:dominant_language_detection_job_properties, Shapes::ShapeRef.new(shape: DominantLanguageDetectionJobProperties, location_name: "DominantLanguageDetectionJobProperties"))
360
405
  DescribeDominantLanguageDetectionJobResponse.struct_class = Types::DescribeDominantLanguageDetectionJobResponse
361
406
 
407
+ DescribeEndpointRequest.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: ComprehendEndpointArn, required: true, location_name: "EndpointArn"))
408
+ DescribeEndpointRequest.struct_class = Types::DescribeEndpointRequest
409
+
410
+ DescribeEndpointResponse.add_member(:endpoint_properties, Shapes::ShapeRef.new(shape: EndpointProperties, location_name: "EndpointProperties"))
411
+ DescribeEndpointResponse.struct_class = Types::DescribeEndpointResponse
412
+
362
413
  DescribeEntitiesDetectionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
363
414
  DescribeEntitiesDetectionJobRequest.struct_class = Types::DescribeEntitiesDetectionJobRequest
364
415
 
@@ -424,6 +475,10 @@ module Aws::Comprehend
424
475
  DetectSyntaxResponse.add_member(:syntax_tokens, Shapes::ShapeRef.new(shape: ListOfSyntaxTokens, location_name: "SyntaxTokens"))
425
476
  DetectSyntaxResponse.struct_class = Types::DetectSyntaxResponse
426
477
 
478
+ DocumentClass.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
479
+ DocumentClass.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
480
+ DocumentClass.struct_class = Types::DocumentClass
481
+
427
482
  DocumentClassificationJobFilter.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
428
483
  DocumentClassificationJobFilter.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
429
484
  DocumentClassificationJobFilter.add_member(:submit_time_before, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeBefore"))
@@ -501,6 +556,24 @@ module Aws::Comprehend
501
556
 
502
557
  DominantLanguageDetectionJobPropertiesList.member = Shapes::ShapeRef.new(shape: DominantLanguageDetectionJobProperties)
503
558
 
559
+ EndpointFilter.add_member(:model_arn, Shapes::ShapeRef.new(shape: ComprehendModelArn, location_name: "ModelArn"))
560
+ EndpointFilter.add_member(:status, Shapes::ShapeRef.new(shape: EndpointStatus, location_name: "Status"))
561
+ EndpointFilter.add_member(:creation_time_before, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTimeBefore"))
562
+ EndpointFilter.add_member(:creation_time_after, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTimeAfter"))
563
+ EndpointFilter.struct_class = Types::EndpointFilter
564
+
565
+ EndpointProperties.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: ComprehendEndpointArn, location_name: "EndpointArn"))
566
+ EndpointProperties.add_member(:status, Shapes::ShapeRef.new(shape: EndpointStatus, location_name: "Status"))
567
+ EndpointProperties.add_member(:message, Shapes::ShapeRef.new(shape: AnyLengthString, location_name: "Message"))
568
+ EndpointProperties.add_member(:model_arn, Shapes::ShapeRef.new(shape: ComprehendModelArn, location_name: "ModelArn"))
569
+ EndpointProperties.add_member(:desired_inference_units, Shapes::ShapeRef.new(shape: InferenceUnitsInteger, location_name: "DesiredInferenceUnits"))
570
+ EndpointProperties.add_member(:current_inference_units, Shapes::ShapeRef.new(shape: InferenceUnitsInteger, location_name: "CurrentInferenceUnits"))
571
+ EndpointProperties.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTime"))
572
+ EndpointProperties.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModifiedTime"))
573
+ EndpointProperties.struct_class = Types::EndpointProperties
574
+
575
+ EndpointPropertiesList.member = Shapes::ShapeRef.new(shape: EndpointProperties)
576
+
504
577
  EntitiesDetectionJobFilter.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
505
578
  EntitiesDetectionJobFilter.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
506
579
  EntitiesDetectionJobFilter.add_member(:submit_time_before, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeBefore"))
@@ -670,6 +743,15 @@ module Aws::Comprehend
670
743
  ListDominantLanguageDetectionJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
671
744
  ListDominantLanguageDetectionJobsResponse.struct_class = Types::ListDominantLanguageDetectionJobsResponse
672
745
 
746
+ ListEndpointsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: EndpointFilter, location_name: "Filter"))
747
+ ListEndpointsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
748
+ ListEndpointsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
749
+ ListEndpointsRequest.struct_class = Types::ListEndpointsRequest
750
+
751
+ ListEndpointsResponse.add_member(:endpoint_properties_list, Shapes::ShapeRef.new(shape: EndpointPropertiesList, location_name: "EndpointPropertiesList"))
752
+ ListEndpointsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
753
+ ListEndpointsResponse.struct_class = Types::ListEndpointsResponse
754
+
673
755
  ListEntitiesDetectionJobsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: EntitiesDetectionJobFilter, location_name: "Filter"))
674
756
  ListEntitiesDetectionJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
675
757
  ListEntitiesDetectionJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
@@ -697,6 +779,8 @@ module Aws::Comprehend
697
779
  ListKeyPhrasesDetectionJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
698
780
  ListKeyPhrasesDetectionJobsResponse.struct_class = Types::ListKeyPhrasesDetectionJobsResponse
699
781
 
782
+ ListOfClasses.member = Shapes::ShapeRef.new(shape: DocumentClass)
783
+
700
784
  ListOfDetectDominantLanguageResult.member = Shapes::ShapeRef.new(shape: BatchDetectDominantLanguageItemResult)
701
785
 
702
786
  ListOfDetectEntitiesResult.member = Shapes::ShapeRef.new(shape: BatchDetectEntitiesItemResult)
@@ -980,6 +1064,12 @@ module Aws::Comprehend
980
1064
 
981
1065
  UntagResourceResponse.struct_class = Types::UntagResourceResponse
982
1066
 
1067
+ UpdateEndpointRequest.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: ComprehendEndpointArn, required: true, location_name: "EndpointArn"))
1068
+ UpdateEndpointRequest.add_member(:desired_inference_units, Shapes::ShapeRef.new(shape: InferenceUnitsInteger, required: true, location_name: "DesiredInferenceUnits"))
1069
+ UpdateEndpointRequest.struct_class = Types::UpdateEndpointRequest
1070
+
1071
+ UpdateEndpointResponse.struct_class = Types::UpdateEndpointResponse
1072
+
983
1073
  VpcConfig.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIds, required: true, location_name: "SecurityGroupIds"))
984
1074
  VpcConfig.add_member(:subnets, Shapes::ShapeRef.new(shape: Subnets, required: true, location_name: "Subnets"))
985
1075
  VpcConfig.struct_class = Types::VpcConfig
@@ -1067,6 +1157,18 @@ module Aws::Comprehend
1067
1157
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1068
1158
  end)
1069
1159
 
1160
+ api.add_operation(:classify_document, Seahorse::Model::Operation.new.tap do |o|
1161
+ o.name = "ClassifyDocument"
1162
+ o.http_method = "POST"
1163
+ o.http_request_uri = "/"
1164
+ o.input = Shapes::ShapeRef.new(shape: ClassifyDocumentRequest)
1165
+ o.output = Shapes::ShapeRef.new(shape: ClassifyDocumentResponse)
1166
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1167
+ o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
1168
+ o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
1169
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1170
+ end)
1171
+
1070
1172
  api.add_operation(:create_document_classifier, Seahorse::Model::Operation.new.tap do |o|
1071
1173
  o.name = "CreateDocumentClassifier"
1072
1174
  o.http_method = "POST"
@@ -1083,6 +1185,22 @@ module Aws::Comprehend
1083
1185
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1084
1186
  end)
1085
1187
 
1188
+ api.add_operation(:create_endpoint, Seahorse::Model::Operation.new.tap do |o|
1189
+ o.name = "CreateEndpoint"
1190
+ o.http_method = "POST"
1191
+ o.http_request_uri = "/"
1192
+ o.input = Shapes::ShapeRef.new(shape: CreateEndpointRequest)
1193
+ o.output = Shapes::ShapeRef.new(shape: CreateEndpointResponse)
1194
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1195
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1196
+ o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceededException)
1197
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1198
+ o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
1199
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1200
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
1201
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1202
+ end)
1203
+
1086
1204
  api.add_operation(:create_entity_recognizer, Seahorse::Model::Operation.new.tap do |o|
1087
1205
  o.name = "CreateEntityRecognizer"
1088
1206
  o.http_method = "POST"
@@ -1113,6 +1231,19 @@ module Aws::Comprehend
1113
1231
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1114
1232
  end)
1115
1233
 
1234
+ api.add_operation(:delete_endpoint, Seahorse::Model::Operation.new.tap do |o|
1235
+ o.name = "DeleteEndpoint"
1236
+ o.http_method = "POST"
1237
+ o.http_request_uri = "/"
1238
+ o.input = Shapes::ShapeRef.new(shape: DeleteEndpointRequest)
1239
+ o.output = Shapes::ShapeRef.new(shape: DeleteEndpointResponse)
1240
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1241
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1242
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1243
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1244
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1245
+ end)
1246
+
1116
1247
  api.add_operation(:delete_entity_recognizer, Seahorse::Model::Operation.new.tap do |o|
1117
1248
  o.name = "DeleteEntityRecognizer"
1118
1249
  o.http_method = "POST"
@@ -1163,6 +1294,18 @@ module Aws::Comprehend
1163
1294
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1164
1295
  end)
1165
1296
 
1297
+ api.add_operation(:describe_endpoint, Seahorse::Model::Operation.new.tap do |o|
1298
+ o.name = "DescribeEndpoint"
1299
+ o.http_method = "POST"
1300
+ o.http_request_uri = "/"
1301
+ o.input = Shapes::ShapeRef.new(shape: DescribeEndpointRequest)
1302
+ o.output = Shapes::ShapeRef.new(shape: DescribeEndpointResponse)
1303
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1304
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1305
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1306
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1307
+ end)
1308
+
1166
1309
  api.add_operation(:describe_entities_detection_job, Seahorse::Model::Operation.new.tap do |o|
1167
1310
  o.name = "DescribeEntitiesDetectionJob"
1168
1311
  o.http_method = "POST"
@@ -1336,6 +1479,17 @@ module Aws::Comprehend
1336
1479
  )
1337
1480
  end)
1338
1481
 
1482
+ api.add_operation(:list_endpoints, Seahorse::Model::Operation.new.tap do |o|
1483
+ o.name = "ListEndpoints"
1484
+ o.http_method = "POST"
1485
+ o.http_request_uri = "/"
1486
+ o.input = Shapes::ShapeRef.new(shape: ListEndpointsRequest)
1487
+ o.output = Shapes::ShapeRef.new(shape: ListEndpointsResponse)
1488
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1489
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1490
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1491
+ end)
1492
+
1339
1493
  api.add_operation(:list_entities_detection_jobs, Seahorse::Model::Operation.new.tap do |o|
1340
1494
  o.name = "ListEntitiesDetectionJobs"
1341
1495
  o.http_method = "POST"
@@ -1606,6 +1760,21 @@ module Aws::Comprehend
1606
1760
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1607
1761
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1608
1762
  end)
1763
+
1764
+ api.add_operation(:update_endpoint, Seahorse::Model::Operation.new.tap do |o|
1765
+ o.name = "UpdateEndpoint"
1766
+ o.http_method = "POST"
1767
+ o.http_request_uri = "/"
1768
+ o.input = Shapes::ShapeRef.new(shape: UpdateEndpointRequest)
1769
+ o.output = Shapes::ShapeRef.new(shape: UpdateEndpointResponse)
1770
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1771
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1772
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1773
+ o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceededException)
1774
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1775
+ o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
1776
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1777
+ end)
1609
1778
  end
1610
1779
 
1611
1780
  end