aws-sdk-comprehend 1.39.0 → 1.44.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +238 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-comprehend.rb +2 -2
- data/lib/aws-sdk-comprehend/client.rb +237 -4
- data/lib/aws-sdk-comprehend/client_api.rb +148 -3
- data/lib/aws-sdk-comprehend/errors.rb +1 -1
- data/lib/aws-sdk-comprehend/resource.rb +1 -1
- data/lib/aws-sdk-comprehend/types.rb +504 -23
- metadata +8 -5
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.44.0
|
data/lib/aws-sdk-comprehend.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -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
|
+
GEM_VERSION = '1.44.0'
|
52
52
|
|
53
53
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -706,8 +706,15 @@ module Aws::Comprehend
|
|
706
706
|
# },
|
707
707
|
# ],
|
708
708
|
# input_data_config: { # required
|
709
|
-
#
|
709
|
+
# data_format: "COMPREHEND_CSV", # accepts COMPREHEND_CSV, AUGMENTED_MANIFEST
|
710
|
+
# s3_uri: "S3Uri",
|
710
711
|
# label_delimiter: "LabelDelimiter",
|
712
|
+
# augmented_manifests: [
|
713
|
+
# {
|
714
|
+
# s3_uri: "S3Uri", # required
|
715
|
+
# attribute_names: ["AttributeNamesListItem"], # required
|
716
|
+
# },
|
717
|
+
# ],
|
711
718
|
# },
|
712
719
|
# output_data_config: {
|
713
720
|
# s3_uri: "S3Uri",
|
@@ -873,12 +880,13 @@ module Aws::Comprehend
|
|
873
880
|
# },
|
874
881
|
# ],
|
875
882
|
# input_data_config: { # required
|
883
|
+
# data_format: "COMPREHEND_CSV", # accepts COMPREHEND_CSV, AUGMENTED_MANIFEST
|
876
884
|
# entity_types: [ # required
|
877
885
|
# {
|
878
886
|
# type: "EntityTypeName", # required
|
879
887
|
# },
|
880
888
|
# ],
|
881
|
-
# documents: {
|
889
|
+
# documents: {
|
882
890
|
# s3_uri: "S3Uri", # required
|
883
891
|
# },
|
884
892
|
# annotations: {
|
@@ -887,6 +895,12 @@ module Aws::Comprehend
|
|
887
895
|
# entity_list: {
|
888
896
|
# s3_uri: "S3Uri", # required
|
889
897
|
# },
|
898
|
+
# augmented_manifests: [
|
899
|
+
# {
|
900
|
+
# s3_uri: "S3Uri", # required
|
901
|
+
# attribute_names: ["AttributeNamesListItem"], # required
|
902
|
+
# },
|
903
|
+
# ],
|
890
904
|
# },
|
891
905
|
# client_request_token: "ClientRequestTokenString",
|
892
906
|
# language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
|
@@ -1069,8 +1083,13 @@ module Aws::Comprehend
|
|
1069
1083
|
# resp.document_classifier_properties.end_time #=> Time
|
1070
1084
|
# resp.document_classifier_properties.training_start_time #=> Time
|
1071
1085
|
# resp.document_classifier_properties.training_end_time #=> Time
|
1086
|
+
# resp.document_classifier_properties.input_data_config.data_format #=> String, one of "COMPREHEND_CSV", "AUGMENTED_MANIFEST"
|
1072
1087
|
# resp.document_classifier_properties.input_data_config.s3_uri #=> String
|
1073
1088
|
# resp.document_classifier_properties.input_data_config.label_delimiter #=> String
|
1089
|
+
# resp.document_classifier_properties.input_data_config.augmented_manifests #=> Array
|
1090
|
+
# resp.document_classifier_properties.input_data_config.augmented_manifests[0].s3_uri #=> String
|
1091
|
+
# resp.document_classifier_properties.input_data_config.augmented_manifests[0].attribute_names #=> Array
|
1092
|
+
# resp.document_classifier_properties.input_data_config.augmented_manifests[0].attribute_names[0] #=> String
|
1074
1093
|
# resp.document_classifier_properties.output_data_config.s3_uri #=> String
|
1075
1094
|
# resp.document_classifier_properties.output_data_config.kms_key_id #=> String
|
1076
1095
|
# resp.document_classifier_properties.classifier_metadata.number_of_labels #=> Integer
|
@@ -1256,11 +1275,16 @@ module Aws::Comprehend
|
|
1256
1275
|
# resp.entity_recognizer_properties.end_time #=> Time
|
1257
1276
|
# resp.entity_recognizer_properties.training_start_time #=> Time
|
1258
1277
|
# resp.entity_recognizer_properties.training_end_time #=> Time
|
1278
|
+
# resp.entity_recognizer_properties.input_data_config.data_format #=> String, one of "COMPREHEND_CSV", "AUGMENTED_MANIFEST"
|
1259
1279
|
# resp.entity_recognizer_properties.input_data_config.entity_types #=> Array
|
1260
1280
|
# resp.entity_recognizer_properties.input_data_config.entity_types[0].type #=> String
|
1261
1281
|
# resp.entity_recognizer_properties.input_data_config.documents.s3_uri #=> String
|
1262
1282
|
# resp.entity_recognizer_properties.input_data_config.annotations.s3_uri #=> String
|
1263
1283
|
# resp.entity_recognizer_properties.input_data_config.entity_list.s3_uri #=> String
|
1284
|
+
# resp.entity_recognizer_properties.input_data_config.augmented_manifests #=> Array
|
1285
|
+
# resp.entity_recognizer_properties.input_data_config.augmented_manifests[0].s3_uri #=> String
|
1286
|
+
# resp.entity_recognizer_properties.input_data_config.augmented_manifests[0].attribute_names #=> Array
|
1287
|
+
# resp.entity_recognizer_properties.input_data_config.augmented_manifests[0].attribute_names[0] #=> String
|
1264
1288
|
# resp.entity_recognizer_properties.recognizer_metadata.number_of_trained_documents #=> Integer
|
1265
1289
|
# resp.entity_recognizer_properties.recognizer_metadata.number_of_test_documents #=> Integer
|
1266
1290
|
# resp.entity_recognizer_properties.recognizer_metadata.evaluation_metrics.precision #=> Float
|
@@ -1288,6 +1312,47 @@ module Aws::Comprehend
|
|
1288
1312
|
req.send_request(options)
|
1289
1313
|
end
|
1290
1314
|
|
1315
|
+
# Gets the status and details of an events detection job.
|
1316
|
+
#
|
1317
|
+
# @option params [required, String] :job_id
|
1318
|
+
# The identifier of the events detection job.
|
1319
|
+
#
|
1320
|
+
# @return [Types::DescribeEventsDetectionJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1321
|
+
#
|
1322
|
+
# * {Types::DescribeEventsDetectionJobResponse#events_detection_job_properties #events_detection_job_properties} => Types::EventsDetectionJobProperties
|
1323
|
+
#
|
1324
|
+
# @example Request syntax with placeholder values
|
1325
|
+
#
|
1326
|
+
# resp = client.describe_events_detection_job({
|
1327
|
+
# job_id: "JobId", # required
|
1328
|
+
# })
|
1329
|
+
#
|
1330
|
+
# @example Response structure
|
1331
|
+
#
|
1332
|
+
# resp.events_detection_job_properties.job_id #=> String
|
1333
|
+
# resp.events_detection_job_properties.job_name #=> String
|
1334
|
+
# resp.events_detection_job_properties.job_status #=> String, one of "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED"
|
1335
|
+
# resp.events_detection_job_properties.message #=> String
|
1336
|
+
# resp.events_detection_job_properties.submit_time #=> Time
|
1337
|
+
# resp.events_detection_job_properties.end_time #=> Time
|
1338
|
+
# resp.events_detection_job_properties.input_data_config.s3_uri #=> String
|
1339
|
+
# resp.events_detection_job_properties.input_data_config.input_format #=> String, one of "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE"
|
1340
|
+
# resp.events_detection_job_properties.output_data_config.s3_uri #=> String
|
1341
|
+
# resp.events_detection_job_properties.output_data_config.kms_key_id #=> String
|
1342
|
+
# resp.events_detection_job_properties.language_code #=> String, one of "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW"
|
1343
|
+
# resp.events_detection_job_properties.data_access_role_arn #=> String
|
1344
|
+
# resp.events_detection_job_properties.target_event_types #=> Array
|
1345
|
+
# resp.events_detection_job_properties.target_event_types[0] #=> String
|
1346
|
+
#
|
1347
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEventsDetectionJob AWS API Documentation
|
1348
|
+
#
|
1349
|
+
# @overload describe_events_detection_job(params = {})
|
1350
|
+
# @param [Hash] params ({})
|
1351
|
+
def describe_events_detection_job(params = {}, options = {})
|
1352
|
+
req = build_request(:describe_events_detection_job, params)
|
1353
|
+
req.send_request(options)
|
1354
|
+
end
|
1355
|
+
|
1291
1356
|
# Gets the properties associated with a key phrases detection job. Use
|
1292
1357
|
# this operation to get the status of a detection job.
|
1293
1358
|
#
|
@@ -1835,8 +1900,13 @@ module Aws::Comprehend
|
|
1835
1900
|
# resp.document_classifier_properties_list[0].end_time #=> Time
|
1836
1901
|
# resp.document_classifier_properties_list[0].training_start_time #=> Time
|
1837
1902
|
# resp.document_classifier_properties_list[0].training_end_time #=> Time
|
1903
|
+
# resp.document_classifier_properties_list[0].input_data_config.data_format #=> String, one of "COMPREHEND_CSV", "AUGMENTED_MANIFEST"
|
1838
1904
|
# resp.document_classifier_properties_list[0].input_data_config.s3_uri #=> String
|
1839
1905
|
# resp.document_classifier_properties_list[0].input_data_config.label_delimiter #=> String
|
1906
|
+
# resp.document_classifier_properties_list[0].input_data_config.augmented_manifests #=> Array
|
1907
|
+
# resp.document_classifier_properties_list[0].input_data_config.augmented_manifests[0].s3_uri #=> String
|
1908
|
+
# resp.document_classifier_properties_list[0].input_data_config.augmented_manifests[0].attribute_names #=> Array
|
1909
|
+
# resp.document_classifier_properties_list[0].input_data_config.augmented_manifests[0].attribute_names[0] #=> String
|
1840
1910
|
# resp.document_classifier_properties_list[0].output_data_config.s3_uri #=> String
|
1841
1911
|
# resp.document_classifier_properties_list[0].output_data_config.kms_key_id #=> String
|
1842
1912
|
# resp.document_classifier_properties_list[0].classifier_metadata.number_of_labels #=> Integer
|
@@ -2104,11 +2174,16 @@ module Aws::Comprehend
|
|
2104
2174
|
# resp.entity_recognizer_properties_list[0].end_time #=> Time
|
2105
2175
|
# resp.entity_recognizer_properties_list[0].training_start_time #=> Time
|
2106
2176
|
# resp.entity_recognizer_properties_list[0].training_end_time #=> Time
|
2177
|
+
# resp.entity_recognizer_properties_list[0].input_data_config.data_format #=> String, one of "COMPREHEND_CSV", "AUGMENTED_MANIFEST"
|
2107
2178
|
# resp.entity_recognizer_properties_list[0].input_data_config.entity_types #=> Array
|
2108
2179
|
# resp.entity_recognizer_properties_list[0].input_data_config.entity_types[0].type #=> String
|
2109
2180
|
# resp.entity_recognizer_properties_list[0].input_data_config.documents.s3_uri #=> String
|
2110
2181
|
# resp.entity_recognizer_properties_list[0].input_data_config.annotations.s3_uri #=> String
|
2111
2182
|
# resp.entity_recognizer_properties_list[0].input_data_config.entity_list.s3_uri #=> String
|
2183
|
+
# resp.entity_recognizer_properties_list[0].input_data_config.augmented_manifests #=> Array
|
2184
|
+
# resp.entity_recognizer_properties_list[0].input_data_config.augmented_manifests[0].s3_uri #=> String
|
2185
|
+
# resp.entity_recognizer_properties_list[0].input_data_config.augmented_manifests[0].attribute_names #=> Array
|
2186
|
+
# resp.entity_recognizer_properties_list[0].input_data_config.augmented_manifests[0].attribute_names[0] #=> String
|
2112
2187
|
# resp.entity_recognizer_properties_list[0].recognizer_metadata.number_of_trained_documents #=> Integer
|
2113
2188
|
# resp.entity_recognizer_properties_list[0].recognizer_metadata.number_of_test_documents #=> Integer
|
2114
2189
|
# resp.entity_recognizer_properties_list[0].recognizer_metadata.evaluation_metrics.precision #=> Float
|
@@ -2137,6 +2212,67 @@ module Aws::Comprehend
|
|
2137
2212
|
req.send_request(options)
|
2138
2213
|
end
|
2139
2214
|
|
2215
|
+
# Gets a list of the events detection jobs that you have submitted.
|
2216
|
+
#
|
2217
|
+
# @option params [Types::EventsDetectionJobFilter] :filter
|
2218
|
+
# Filters the jobs that are returned. You can filter jobs on their name,
|
2219
|
+
# status, or the date and time that they were submitted. You can only
|
2220
|
+
# set one filter at a time.
|
2221
|
+
#
|
2222
|
+
# @option params [String] :next_token
|
2223
|
+
# Identifies the next page of results to return.
|
2224
|
+
#
|
2225
|
+
# @option params [Integer] :max_results
|
2226
|
+
# The maximum number of results to return in each page.
|
2227
|
+
#
|
2228
|
+
# @return [Types::ListEventsDetectionJobsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2229
|
+
#
|
2230
|
+
# * {Types::ListEventsDetectionJobsResponse#events_detection_job_properties_list #events_detection_job_properties_list} => Array<Types::EventsDetectionJobProperties>
|
2231
|
+
# * {Types::ListEventsDetectionJobsResponse#next_token #next_token} => String
|
2232
|
+
#
|
2233
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2234
|
+
#
|
2235
|
+
# @example Request syntax with placeholder values
|
2236
|
+
#
|
2237
|
+
# resp = client.list_events_detection_jobs({
|
2238
|
+
# filter: {
|
2239
|
+
# job_name: "JobName",
|
2240
|
+
# job_status: "SUBMITTED", # accepts SUBMITTED, IN_PROGRESS, COMPLETED, FAILED, STOP_REQUESTED, STOPPED
|
2241
|
+
# submit_time_before: Time.now,
|
2242
|
+
# submit_time_after: Time.now,
|
2243
|
+
# },
|
2244
|
+
# next_token: "String",
|
2245
|
+
# max_results: 1,
|
2246
|
+
# })
|
2247
|
+
#
|
2248
|
+
# @example Response structure
|
2249
|
+
#
|
2250
|
+
# resp.events_detection_job_properties_list #=> Array
|
2251
|
+
# resp.events_detection_job_properties_list[0].job_id #=> String
|
2252
|
+
# resp.events_detection_job_properties_list[0].job_name #=> String
|
2253
|
+
# resp.events_detection_job_properties_list[0].job_status #=> String, one of "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED"
|
2254
|
+
# resp.events_detection_job_properties_list[0].message #=> String
|
2255
|
+
# resp.events_detection_job_properties_list[0].submit_time #=> Time
|
2256
|
+
# resp.events_detection_job_properties_list[0].end_time #=> Time
|
2257
|
+
# resp.events_detection_job_properties_list[0].input_data_config.s3_uri #=> String
|
2258
|
+
# resp.events_detection_job_properties_list[0].input_data_config.input_format #=> String, one of "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE"
|
2259
|
+
# resp.events_detection_job_properties_list[0].output_data_config.s3_uri #=> String
|
2260
|
+
# resp.events_detection_job_properties_list[0].output_data_config.kms_key_id #=> String
|
2261
|
+
# resp.events_detection_job_properties_list[0].language_code #=> String, one of "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW"
|
2262
|
+
# resp.events_detection_job_properties_list[0].data_access_role_arn #=> String
|
2263
|
+
# resp.events_detection_job_properties_list[0].target_event_types #=> Array
|
2264
|
+
# resp.events_detection_job_properties_list[0].target_event_types[0] #=> String
|
2265
|
+
# resp.next_token #=> String
|
2266
|
+
#
|
2267
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEventsDetectionJobs AWS API Documentation
|
2268
|
+
#
|
2269
|
+
# @overload list_events_detection_jobs(params = {})
|
2270
|
+
# @param [Hash] params ({})
|
2271
|
+
def list_events_detection_jobs(params = {}, options = {})
|
2272
|
+
req = build_request(:list_events_detection_jobs, params)
|
2273
|
+
req.send_request(options)
|
2274
|
+
end
|
2275
|
+
|
2140
2276
|
# Get a list of key phrase detection jobs that you have submitted.
|
2141
2277
|
#
|
2142
2278
|
# @option params [Types::KeyPhrasesDetectionJobFilter] :filter
|
@@ -2713,6 +2849,73 @@ module Aws::Comprehend
|
|
2713
2849
|
req.send_request(options)
|
2714
2850
|
end
|
2715
2851
|
|
2852
|
+
# Starts an asynchronous event detection job for a collection of
|
2853
|
+
# documents.
|
2854
|
+
#
|
2855
|
+
# @option params [required, Types::InputDataConfig] :input_data_config
|
2856
|
+
# Specifies the format and location of the input data for the job.
|
2857
|
+
#
|
2858
|
+
# @option params [required, Types::OutputDataConfig] :output_data_config
|
2859
|
+
# Specifies where to send the output files.
|
2860
|
+
#
|
2861
|
+
# @option params [required, String] :data_access_role_arn
|
2862
|
+
# The Amazon Resource Name (ARN) of the AWS Identity and Access
|
2863
|
+
# Management (IAM) role that grants Amazon Comprehend read access to
|
2864
|
+
# your input data.
|
2865
|
+
#
|
2866
|
+
# @option params [String] :job_name
|
2867
|
+
# The identifier of the events detection job.
|
2868
|
+
#
|
2869
|
+
# @option params [required, String] :language_code
|
2870
|
+
# The language code of the input documents.
|
2871
|
+
#
|
2872
|
+
# @option params [String] :client_request_token
|
2873
|
+
# An unique identifier for the request. If you don't set the client
|
2874
|
+
# request token, Amazon Comprehend generates one.
|
2875
|
+
#
|
2876
|
+
# **A suitable default value is auto-generated.** You should normally
|
2877
|
+
# not need to pass this option.**
|
2878
|
+
#
|
2879
|
+
# @option params [required, Array<String>] :target_event_types
|
2880
|
+
# The types of events to detect in the input documents.
|
2881
|
+
#
|
2882
|
+
# @return [Types::StartEventsDetectionJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2883
|
+
#
|
2884
|
+
# * {Types::StartEventsDetectionJobResponse#job_id #job_id} => String
|
2885
|
+
# * {Types::StartEventsDetectionJobResponse#job_status #job_status} => String
|
2886
|
+
#
|
2887
|
+
# @example Request syntax with placeholder values
|
2888
|
+
#
|
2889
|
+
# resp = client.start_events_detection_job({
|
2890
|
+
# input_data_config: { # required
|
2891
|
+
# s3_uri: "S3Uri", # required
|
2892
|
+
# input_format: "ONE_DOC_PER_FILE", # accepts ONE_DOC_PER_FILE, ONE_DOC_PER_LINE
|
2893
|
+
# },
|
2894
|
+
# output_data_config: { # required
|
2895
|
+
# s3_uri: "S3Uri", # required
|
2896
|
+
# kms_key_id: "KmsKeyId",
|
2897
|
+
# },
|
2898
|
+
# data_access_role_arn: "IamRoleArn", # required
|
2899
|
+
# job_name: "JobName",
|
2900
|
+
# language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
|
2901
|
+
# client_request_token: "ClientRequestTokenString",
|
2902
|
+
# target_event_types: ["EventTypeString"], # required
|
2903
|
+
# })
|
2904
|
+
#
|
2905
|
+
# @example Response structure
|
2906
|
+
#
|
2907
|
+
# resp.job_id #=> String
|
2908
|
+
# resp.job_status #=> String, one of "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED"
|
2909
|
+
#
|
2910
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartEventsDetectionJob AWS API Documentation
|
2911
|
+
#
|
2912
|
+
# @overload start_events_detection_job(params = {})
|
2913
|
+
# @param [Hash] params ({})
|
2914
|
+
def start_events_detection_job(params = {}, options = {})
|
2915
|
+
req = build_request(:start_events_detection_job, params)
|
2916
|
+
req.send_request(options)
|
2917
|
+
end
|
2918
|
+
|
2716
2919
|
# Starts an asynchronous key phrase detection job for a collection of
|
2717
2920
|
# documents. Use the operation to track the status of a job.
|
2718
2921
|
#
|
@@ -3164,6 +3367,36 @@ module Aws::Comprehend
|
|
3164
3367
|
req.send_request(options)
|
3165
3368
|
end
|
3166
3369
|
|
3370
|
+
# Stops an events detection job in progress.
|
3371
|
+
#
|
3372
|
+
# @option params [required, String] :job_id
|
3373
|
+
# The identifier of the events detection job to stop.
|
3374
|
+
#
|
3375
|
+
# @return [Types::StopEventsDetectionJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3376
|
+
#
|
3377
|
+
# * {Types::StopEventsDetectionJobResponse#job_id #job_id} => String
|
3378
|
+
# * {Types::StopEventsDetectionJobResponse#job_status #job_status} => String
|
3379
|
+
#
|
3380
|
+
# @example Request syntax with placeholder values
|
3381
|
+
#
|
3382
|
+
# resp = client.stop_events_detection_job({
|
3383
|
+
# job_id: "JobId", # required
|
3384
|
+
# })
|
3385
|
+
#
|
3386
|
+
# @example Response structure
|
3387
|
+
#
|
3388
|
+
# resp.job_id #=> String
|
3389
|
+
# resp.job_status #=> String, one of "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED"
|
3390
|
+
#
|
3391
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopEventsDetectionJob AWS API Documentation
|
3392
|
+
#
|
3393
|
+
# @overload stop_events_detection_job(params = {})
|
3394
|
+
# @param [Hash] params ({})
|
3395
|
+
def stop_events_detection_job(params = {}, options = {})
|
3396
|
+
req = build_request(:stop_events_detection_job, params)
|
3397
|
+
req.send_request(options)
|
3398
|
+
end
|
3399
|
+
|
3167
3400
|
# Stops a key phrases detection job in progress.
|
3168
3401
|
#
|
3169
3402
|
# If the job state is `IN_PROGRESS` the job is marked for termination
|
@@ -3447,7 +3680,7 @@ module Aws::Comprehend
|
|
3447
3680
|
params: params,
|
3448
3681
|
config: config)
|
3449
3682
|
context[:gem_name] = 'aws-sdk-comprehend'
|
3450
|
-
context[:gem_version] = '1.
|
3683
|
+
context[:gem_version] = '1.44.0'
|
3451
3684
|
Seahorse::Client::Request.new(handlers, context)
|
3452
3685
|
end
|
3453
3686
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -14,6 +14,9 @@ module Aws::Comprehend
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
16
|
AnyLengthString = Shapes::StringShape.new(name: 'AnyLengthString')
|
17
|
+
AttributeNamesList = Shapes::ListShape.new(name: 'AttributeNamesList')
|
18
|
+
AttributeNamesListItem = Shapes::StringShape.new(name: 'AttributeNamesListItem')
|
19
|
+
AugmentedManifestsListItem = Shapes::StructureShape.new(name: 'AugmentedManifestsListItem')
|
17
20
|
BatchDetectDominantLanguageItemResult = Shapes::StructureShape.new(name: 'BatchDetectDominantLanguageItemResult')
|
18
21
|
BatchDetectDominantLanguageRequest = Shapes::StructureShape.new(name: 'BatchDetectDominantLanguageRequest')
|
19
22
|
BatchDetectDominantLanguageResponse = Shapes::StructureShape.new(name: 'BatchDetectDominantLanguageResponse')
|
@@ -69,6 +72,8 @@ module Aws::Comprehend
|
|
69
72
|
DescribeEntitiesDetectionJobResponse = Shapes::StructureShape.new(name: 'DescribeEntitiesDetectionJobResponse')
|
70
73
|
DescribeEntityRecognizerRequest = Shapes::StructureShape.new(name: 'DescribeEntityRecognizerRequest')
|
71
74
|
DescribeEntityRecognizerResponse = Shapes::StructureShape.new(name: 'DescribeEntityRecognizerResponse')
|
75
|
+
DescribeEventsDetectionJobRequest = Shapes::StructureShape.new(name: 'DescribeEventsDetectionJobRequest')
|
76
|
+
DescribeEventsDetectionJobResponse = Shapes::StructureShape.new(name: 'DescribeEventsDetectionJobResponse')
|
72
77
|
DescribeKeyPhrasesDetectionJobRequest = Shapes::StructureShape.new(name: 'DescribeKeyPhrasesDetectionJobRequest')
|
73
78
|
DescribeKeyPhrasesDetectionJobResponse = Shapes::StructureShape.new(name: 'DescribeKeyPhrasesDetectionJobResponse')
|
74
79
|
DescribePiiEntitiesDetectionJobRequest = Shapes::StructureShape.new(name: 'DescribePiiEntitiesDetectionJobRequest')
|
@@ -94,6 +99,8 @@ module Aws::Comprehend
|
|
94
99
|
DocumentClassificationJobProperties = Shapes::StructureShape.new(name: 'DocumentClassificationJobProperties')
|
95
100
|
DocumentClassificationJobPropertiesList = Shapes::ListShape.new(name: 'DocumentClassificationJobPropertiesList')
|
96
101
|
DocumentClassifierArn = Shapes::StringShape.new(name: 'DocumentClassifierArn')
|
102
|
+
DocumentClassifierAugmentedManifestsList = Shapes::ListShape.new(name: 'DocumentClassifierAugmentedManifestsList')
|
103
|
+
DocumentClassifierDataFormat = Shapes::StringShape.new(name: 'DocumentClassifierDataFormat')
|
97
104
|
DocumentClassifierEndpointArn = Shapes::StringShape.new(name: 'DocumentClassifierEndpointArn')
|
98
105
|
DocumentClassifierFilter = Shapes::StructureShape.new(name: 'DocumentClassifierFilter')
|
99
106
|
DocumentClassifierInputDataConfig = Shapes::StructureShape.new(name: 'DocumentClassifierInputDataConfig')
|
@@ -117,6 +124,8 @@ module Aws::Comprehend
|
|
117
124
|
Entity = Shapes::StructureShape.new(name: 'Entity')
|
118
125
|
EntityRecognizerAnnotations = Shapes::StructureShape.new(name: 'EntityRecognizerAnnotations')
|
119
126
|
EntityRecognizerArn = Shapes::StringShape.new(name: 'EntityRecognizerArn')
|
127
|
+
EntityRecognizerAugmentedManifestsList = Shapes::ListShape.new(name: 'EntityRecognizerAugmentedManifestsList')
|
128
|
+
EntityRecognizerDataFormat = Shapes::StringShape.new(name: 'EntityRecognizerDataFormat')
|
120
129
|
EntityRecognizerDocuments = Shapes::StructureShape.new(name: 'EntityRecognizerDocuments')
|
121
130
|
EntityRecognizerEndpointArn = Shapes::StringShape.new(name: 'EntityRecognizerEndpointArn')
|
122
131
|
EntityRecognizerEntityList = Shapes::StructureShape.new(name: 'EntityRecognizerEntityList')
|
@@ -133,6 +142,10 @@ module Aws::Comprehend
|
|
133
142
|
EntityTypesEvaluationMetrics = Shapes::StructureShape.new(name: 'EntityTypesEvaluationMetrics')
|
134
143
|
EntityTypesList = Shapes::ListShape.new(name: 'EntityTypesList')
|
135
144
|
EntityTypesListItem = Shapes::StructureShape.new(name: 'EntityTypesListItem')
|
145
|
+
EventTypeString = Shapes::StringShape.new(name: 'EventTypeString')
|
146
|
+
EventsDetectionJobFilter = Shapes::StructureShape.new(name: 'EventsDetectionJobFilter')
|
147
|
+
EventsDetectionJobProperties = Shapes::StructureShape.new(name: 'EventsDetectionJobProperties')
|
148
|
+
EventsDetectionJobPropertiesList = Shapes::ListShape.new(name: 'EventsDetectionJobPropertiesList')
|
136
149
|
Float = Shapes::FloatShape.new(name: 'Float')
|
137
150
|
IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
|
138
151
|
InferenceUnitsInteger = Shapes::IntegerShape.new(name: 'InferenceUnitsInteger')
|
@@ -166,6 +179,8 @@ module Aws::Comprehend
|
|
166
179
|
ListEntitiesDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListEntitiesDetectionJobsResponse')
|
167
180
|
ListEntityRecognizersRequest = Shapes::StructureShape.new(name: 'ListEntityRecognizersRequest')
|
168
181
|
ListEntityRecognizersResponse = Shapes::StructureShape.new(name: 'ListEntityRecognizersResponse')
|
182
|
+
ListEventsDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListEventsDetectionJobsRequest')
|
183
|
+
ListEventsDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListEventsDetectionJobsResponse')
|
169
184
|
ListKeyPhrasesDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListKeyPhrasesDetectionJobsRequest')
|
170
185
|
ListKeyPhrasesDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListKeyPhrasesDetectionJobsResponse')
|
171
186
|
ListOfClasses = Shapes::ListShape.new(name: 'ListOfClasses')
|
@@ -223,6 +238,8 @@ module Aws::Comprehend
|
|
223
238
|
StartDominantLanguageDetectionJobResponse = Shapes::StructureShape.new(name: 'StartDominantLanguageDetectionJobResponse')
|
224
239
|
StartEntitiesDetectionJobRequest = Shapes::StructureShape.new(name: 'StartEntitiesDetectionJobRequest')
|
225
240
|
StartEntitiesDetectionJobResponse = Shapes::StructureShape.new(name: 'StartEntitiesDetectionJobResponse')
|
241
|
+
StartEventsDetectionJobRequest = Shapes::StructureShape.new(name: 'StartEventsDetectionJobRequest')
|
242
|
+
StartEventsDetectionJobResponse = Shapes::StructureShape.new(name: 'StartEventsDetectionJobResponse')
|
226
243
|
StartKeyPhrasesDetectionJobRequest = Shapes::StructureShape.new(name: 'StartKeyPhrasesDetectionJobRequest')
|
227
244
|
StartKeyPhrasesDetectionJobResponse = Shapes::StructureShape.new(name: 'StartKeyPhrasesDetectionJobResponse')
|
228
245
|
StartPiiEntitiesDetectionJobRequest = Shapes::StructureShape.new(name: 'StartPiiEntitiesDetectionJobRequest')
|
@@ -235,6 +252,8 @@ module Aws::Comprehend
|
|
235
252
|
StopDominantLanguageDetectionJobResponse = Shapes::StructureShape.new(name: 'StopDominantLanguageDetectionJobResponse')
|
236
253
|
StopEntitiesDetectionJobRequest = Shapes::StructureShape.new(name: 'StopEntitiesDetectionJobRequest')
|
237
254
|
StopEntitiesDetectionJobResponse = Shapes::StructureShape.new(name: 'StopEntitiesDetectionJobResponse')
|
255
|
+
StopEventsDetectionJobRequest = Shapes::StructureShape.new(name: 'StopEventsDetectionJobRequest')
|
256
|
+
StopEventsDetectionJobResponse = Shapes::StructureShape.new(name: 'StopEventsDetectionJobResponse')
|
238
257
|
StopKeyPhrasesDetectionJobRequest = Shapes::StructureShape.new(name: 'StopKeyPhrasesDetectionJobRequest')
|
239
258
|
StopKeyPhrasesDetectionJobResponse = Shapes::StructureShape.new(name: 'StopKeyPhrasesDetectionJobResponse')
|
240
259
|
StopPiiEntitiesDetectionJobRequest = Shapes::StructureShape.new(name: 'StopPiiEntitiesDetectionJobRequest')
|
@@ -257,6 +276,7 @@ module Aws::Comprehend
|
|
257
276
|
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
258
277
|
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
259
278
|
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
279
|
+
TargetEventTypes = Shapes::ListShape.new(name: 'TargetEventTypes')
|
260
280
|
TextSizeLimitExceededException = Shapes::StructureShape.new(name: 'TextSizeLimitExceededException')
|
261
281
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
262
282
|
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
@@ -272,6 +292,12 @@ module Aws::Comprehend
|
|
272
292
|
UpdateEndpointResponse = Shapes::StructureShape.new(name: 'UpdateEndpointResponse')
|
273
293
|
VpcConfig = Shapes::StructureShape.new(name: 'VpcConfig')
|
274
294
|
|
295
|
+
AttributeNamesList.member = Shapes::ShapeRef.new(shape: AttributeNamesListItem)
|
296
|
+
|
297
|
+
AugmentedManifestsListItem.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
|
298
|
+
AugmentedManifestsListItem.add_member(:attribute_names, Shapes::ShapeRef.new(shape: AttributeNamesList, required: true, location_name: "AttributeNames"))
|
299
|
+
AugmentedManifestsListItem.struct_class = Types::AugmentedManifestsListItem
|
300
|
+
|
275
301
|
BatchDetectDominantLanguageItemResult.add_member(:index, Shapes::ShapeRef.new(shape: Integer, location_name: "Index"))
|
276
302
|
BatchDetectDominantLanguageItemResult.add_member(:languages, Shapes::ShapeRef.new(shape: ListOfDominantLanguages, location_name: "Languages"))
|
277
303
|
BatchDetectDominantLanguageItemResult.struct_class = Types::BatchDetectDominantLanguageItemResult
|
@@ -460,6 +486,12 @@ module Aws::Comprehend
|
|
460
486
|
DescribeEntityRecognizerResponse.add_member(:entity_recognizer_properties, Shapes::ShapeRef.new(shape: EntityRecognizerProperties, location_name: "EntityRecognizerProperties"))
|
461
487
|
DescribeEntityRecognizerResponse.struct_class = Types::DescribeEntityRecognizerResponse
|
462
488
|
|
489
|
+
DescribeEventsDetectionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
|
490
|
+
DescribeEventsDetectionJobRequest.struct_class = Types::DescribeEventsDetectionJobRequest
|
491
|
+
|
492
|
+
DescribeEventsDetectionJobResponse.add_member(:events_detection_job_properties, Shapes::ShapeRef.new(shape: EventsDetectionJobProperties, location_name: "EventsDetectionJobProperties"))
|
493
|
+
DescribeEventsDetectionJobResponse.struct_class = Types::DescribeEventsDetectionJobResponse
|
494
|
+
|
463
495
|
DescribeKeyPhrasesDetectionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
|
464
496
|
DescribeKeyPhrasesDetectionJobRequest.struct_class = Types::DescribeKeyPhrasesDetectionJobRequest
|
465
497
|
|
@@ -553,13 +585,17 @@ module Aws::Comprehend
|
|
553
585
|
|
554
586
|
DocumentClassificationJobPropertiesList.member = Shapes::ShapeRef.new(shape: DocumentClassificationJobProperties)
|
555
587
|
|
588
|
+
DocumentClassifierAugmentedManifestsList.member = Shapes::ShapeRef.new(shape: AugmentedManifestsListItem)
|
589
|
+
|
556
590
|
DocumentClassifierFilter.add_member(:status, Shapes::ShapeRef.new(shape: ModelStatus, location_name: "Status"))
|
557
591
|
DocumentClassifierFilter.add_member(:submit_time_before, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeBefore"))
|
558
592
|
DocumentClassifierFilter.add_member(:submit_time_after, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeAfter"))
|
559
593
|
DocumentClassifierFilter.struct_class = Types::DocumentClassifierFilter
|
560
594
|
|
561
|
-
DocumentClassifierInputDataConfig.add_member(:
|
595
|
+
DocumentClassifierInputDataConfig.add_member(:data_format, Shapes::ShapeRef.new(shape: DocumentClassifierDataFormat, location_name: "DataFormat"))
|
596
|
+
DocumentClassifierInputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, location_name: "S3Uri"))
|
562
597
|
DocumentClassifierInputDataConfig.add_member(:label_delimiter, Shapes::ShapeRef.new(shape: LabelDelimiter, location_name: "LabelDelimiter"))
|
598
|
+
DocumentClassifierInputDataConfig.add_member(:augmented_manifests, Shapes::ShapeRef.new(shape: DocumentClassifierAugmentedManifestsList, location_name: "AugmentedManifests"))
|
563
599
|
DocumentClassifierInputDataConfig.struct_class = Types::DocumentClassifierInputDataConfig
|
564
600
|
|
565
601
|
DocumentClassifierOutputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, location_name: "S3Uri"))
|
@@ -665,6 +701,8 @@ module Aws::Comprehend
|
|
665
701
|
EntityRecognizerAnnotations.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
|
666
702
|
EntityRecognizerAnnotations.struct_class = Types::EntityRecognizerAnnotations
|
667
703
|
|
704
|
+
EntityRecognizerAugmentedManifestsList.member = Shapes::ShapeRef.new(shape: AugmentedManifestsListItem)
|
705
|
+
|
668
706
|
EntityRecognizerDocuments.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
|
669
707
|
EntityRecognizerDocuments.struct_class = Types::EntityRecognizerDocuments
|
670
708
|
|
@@ -681,10 +719,12 @@ module Aws::Comprehend
|
|
681
719
|
EntityRecognizerFilter.add_member(:submit_time_after, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeAfter"))
|
682
720
|
EntityRecognizerFilter.struct_class = Types::EntityRecognizerFilter
|
683
721
|
|
722
|
+
EntityRecognizerInputDataConfig.add_member(:data_format, Shapes::ShapeRef.new(shape: EntityRecognizerDataFormat, location_name: "DataFormat"))
|
684
723
|
EntityRecognizerInputDataConfig.add_member(:entity_types, Shapes::ShapeRef.new(shape: EntityTypesList, required: true, location_name: "EntityTypes"))
|
685
|
-
EntityRecognizerInputDataConfig.add_member(:documents, Shapes::ShapeRef.new(shape: EntityRecognizerDocuments,
|
724
|
+
EntityRecognizerInputDataConfig.add_member(:documents, Shapes::ShapeRef.new(shape: EntityRecognizerDocuments, location_name: "Documents"))
|
686
725
|
EntityRecognizerInputDataConfig.add_member(:annotations, Shapes::ShapeRef.new(shape: EntityRecognizerAnnotations, location_name: "Annotations"))
|
687
726
|
EntityRecognizerInputDataConfig.add_member(:entity_list, Shapes::ShapeRef.new(shape: EntityRecognizerEntityList, location_name: "EntityList"))
|
727
|
+
EntityRecognizerInputDataConfig.add_member(:augmented_manifests, Shapes::ShapeRef.new(shape: EntityRecognizerAugmentedManifestsList, location_name: "AugmentedManifests"))
|
688
728
|
EntityRecognizerInputDataConfig.struct_class = Types::EntityRecognizerInputDataConfig
|
689
729
|
|
690
730
|
EntityRecognizerMetadata.add_member(:number_of_trained_documents, Shapes::ShapeRef.new(shape: Integer, location_name: "NumberOfTrainedDocuments"))
|
@@ -727,6 +767,27 @@ module Aws::Comprehend
|
|
727
767
|
EntityTypesListItem.add_member(:type, Shapes::ShapeRef.new(shape: EntityTypeName, required: true, location_name: "Type"))
|
728
768
|
EntityTypesListItem.struct_class = Types::EntityTypesListItem
|
729
769
|
|
770
|
+
EventsDetectionJobFilter.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
|
771
|
+
EventsDetectionJobFilter.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
|
772
|
+
EventsDetectionJobFilter.add_member(:submit_time_before, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeBefore"))
|
773
|
+
EventsDetectionJobFilter.add_member(:submit_time_after, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeAfter"))
|
774
|
+
EventsDetectionJobFilter.struct_class = Types::EventsDetectionJobFilter
|
775
|
+
|
776
|
+
EventsDetectionJobProperties.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
|
777
|
+
EventsDetectionJobProperties.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
|
778
|
+
EventsDetectionJobProperties.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
|
779
|
+
EventsDetectionJobProperties.add_member(:message, Shapes::ShapeRef.new(shape: AnyLengthString, location_name: "Message"))
|
780
|
+
EventsDetectionJobProperties.add_member(:submit_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTime"))
|
781
|
+
EventsDetectionJobProperties.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndTime"))
|
782
|
+
EventsDetectionJobProperties.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, location_name: "InputDataConfig"))
|
783
|
+
EventsDetectionJobProperties.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, location_name: "OutputDataConfig"))
|
784
|
+
EventsDetectionJobProperties.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
|
785
|
+
EventsDetectionJobProperties.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "DataAccessRoleArn"))
|
786
|
+
EventsDetectionJobProperties.add_member(:target_event_types, Shapes::ShapeRef.new(shape: TargetEventTypes, location_name: "TargetEventTypes"))
|
787
|
+
EventsDetectionJobProperties.struct_class = Types::EventsDetectionJobProperties
|
788
|
+
|
789
|
+
EventsDetectionJobPropertiesList.member = Shapes::ShapeRef.new(shape: EventsDetectionJobProperties)
|
790
|
+
|
730
791
|
InputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
|
731
792
|
InputDataConfig.add_member(:input_format, Shapes::ShapeRef.new(shape: InputFormat, location_name: "InputFormat"))
|
732
793
|
InputDataConfig.struct_class = Types::InputDataConfig
|
@@ -828,6 +889,15 @@ module Aws::Comprehend
|
|
828
889
|
ListEntityRecognizersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
829
890
|
ListEntityRecognizersResponse.struct_class = Types::ListEntityRecognizersResponse
|
830
891
|
|
892
|
+
ListEventsDetectionJobsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: EventsDetectionJobFilter, location_name: "Filter"))
|
893
|
+
ListEventsDetectionJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
894
|
+
ListEventsDetectionJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
|
895
|
+
ListEventsDetectionJobsRequest.struct_class = Types::ListEventsDetectionJobsRequest
|
896
|
+
|
897
|
+
ListEventsDetectionJobsResponse.add_member(:events_detection_job_properties_list, Shapes::ShapeRef.new(shape: EventsDetectionJobPropertiesList, location_name: "EventsDetectionJobPropertiesList"))
|
898
|
+
ListEventsDetectionJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
899
|
+
ListEventsDetectionJobsResponse.struct_class = Types::ListEventsDetectionJobsResponse
|
900
|
+
|
831
901
|
ListKeyPhrasesDetectionJobsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: KeyPhrasesDetectionJobFilter, location_name: "Filter"))
|
832
902
|
ListKeyPhrasesDetectionJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
833
903
|
ListKeyPhrasesDetectionJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
|
@@ -1026,6 +1096,19 @@ module Aws::Comprehend
|
|
1026
1096
|
StartEntitiesDetectionJobResponse.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
|
1027
1097
|
StartEntitiesDetectionJobResponse.struct_class = Types::StartEntitiesDetectionJobResponse
|
1028
1098
|
|
1099
|
+
StartEventsDetectionJobRequest.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, required: true, location_name: "InputDataConfig"))
|
1100
|
+
StartEventsDetectionJobRequest.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, required: true, location_name: "OutputDataConfig"))
|
1101
|
+
StartEventsDetectionJobRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "DataAccessRoleArn"))
|
1102
|
+
StartEventsDetectionJobRequest.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
|
1103
|
+
StartEventsDetectionJobRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
|
1104
|
+
StartEventsDetectionJobRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenString, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
|
1105
|
+
StartEventsDetectionJobRequest.add_member(:target_event_types, Shapes::ShapeRef.new(shape: TargetEventTypes, required: true, location_name: "TargetEventTypes"))
|
1106
|
+
StartEventsDetectionJobRequest.struct_class = Types::StartEventsDetectionJobRequest
|
1107
|
+
|
1108
|
+
StartEventsDetectionJobResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
|
1109
|
+
StartEventsDetectionJobResponse.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
|
1110
|
+
StartEventsDetectionJobResponse.struct_class = Types::StartEventsDetectionJobResponse
|
1111
|
+
|
1029
1112
|
StartKeyPhrasesDetectionJobRequest.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, required: true, location_name: "InputDataConfig"))
|
1030
1113
|
StartKeyPhrasesDetectionJobRequest.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, required: true, location_name: "OutputDataConfig"))
|
1031
1114
|
StartKeyPhrasesDetectionJobRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "DataAccessRoleArn"))
|
@@ -1096,6 +1179,13 @@ module Aws::Comprehend
|
|
1096
1179
|
StopEntitiesDetectionJobResponse.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
|
1097
1180
|
StopEntitiesDetectionJobResponse.struct_class = Types::StopEntitiesDetectionJobResponse
|
1098
1181
|
|
1182
|
+
StopEventsDetectionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
|
1183
|
+
StopEventsDetectionJobRequest.struct_class = Types::StopEventsDetectionJobRequest
|
1184
|
+
|
1185
|
+
StopEventsDetectionJobResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
|
1186
|
+
StopEventsDetectionJobResponse.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
|
1187
|
+
StopEventsDetectionJobResponse.struct_class = Types::StopEventsDetectionJobResponse
|
1188
|
+
|
1099
1189
|
StopKeyPhrasesDetectionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
|
1100
1190
|
StopKeyPhrasesDetectionJobRequest.struct_class = Types::StopKeyPhrasesDetectionJobRequest
|
1101
1191
|
|
@@ -1150,6 +1240,8 @@ module Aws::Comprehend
|
|
1150
1240
|
|
1151
1241
|
TagResourceResponse.struct_class = Types::TagResourceResponse
|
1152
1242
|
|
1243
|
+
TargetEventTypes.member = Shapes::ShapeRef.new(shape: EventTypeString)
|
1244
|
+
|
1153
1245
|
TextSizeLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
1154
1246
|
TextSizeLimitExceededException.struct_class = Types::TextSizeLimitExceededException
|
1155
1247
|
|
@@ -1459,6 +1551,18 @@ module Aws::Comprehend
|
|
1459
1551
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1460
1552
|
end)
|
1461
1553
|
|
1554
|
+
api.add_operation(:describe_events_detection_job, Seahorse::Model::Operation.new.tap do |o|
|
1555
|
+
o.name = "DescribeEventsDetectionJob"
|
1556
|
+
o.http_method = "POST"
|
1557
|
+
o.http_request_uri = "/"
|
1558
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeEventsDetectionJobRequest)
|
1559
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeEventsDetectionJobResponse)
|
1560
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
1561
|
+
o.errors << Shapes::ShapeRef.new(shape: JobNotFoundException)
|
1562
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1563
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1564
|
+
end)
|
1565
|
+
|
1462
1566
|
api.add_operation(:describe_key_phrases_detection_job, Seahorse::Model::Operation.new.tap do |o|
|
1463
1567
|
o.name = "DescribeKeyPhrasesDetectionJob"
|
1464
1568
|
o.http_method = "POST"
|
@@ -1680,6 +1784,24 @@ module Aws::Comprehend
|
|
1680
1784
|
)
|
1681
1785
|
end)
|
1682
1786
|
|
1787
|
+
api.add_operation(:list_events_detection_jobs, Seahorse::Model::Operation.new.tap do |o|
|
1788
|
+
o.name = "ListEventsDetectionJobs"
|
1789
|
+
o.http_method = "POST"
|
1790
|
+
o.http_request_uri = "/"
|
1791
|
+
o.input = Shapes::ShapeRef.new(shape: ListEventsDetectionJobsRequest)
|
1792
|
+
o.output = Shapes::ShapeRef.new(shape: ListEventsDetectionJobsResponse)
|
1793
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
1794
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1795
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidFilterException)
|
1796
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1797
|
+
o[:pager] = Aws::Pager.new(
|
1798
|
+
limit_key: "max_results",
|
1799
|
+
tokens: {
|
1800
|
+
"next_token" => "next_token"
|
1801
|
+
}
|
1802
|
+
)
|
1803
|
+
end)
|
1804
|
+
|
1683
1805
|
api.add_operation(:list_key_phrases_detection_jobs, Seahorse::Model::Operation.new.tap do |o|
|
1684
1806
|
o.name = "ListKeyPhrasesDetectionJobs"
|
1685
1807
|
o.http_method = "POST"
|
@@ -1797,6 +1919,18 @@ module Aws::Comprehend
|
|
1797
1919
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1798
1920
|
end)
|
1799
1921
|
|
1922
|
+
api.add_operation(:start_events_detection_job, Seahorse::Model::Operation.new.tap do |o|
|
1923
|
+
o.name = "StartEventsDetectionJob"
|
1924
|
+
o.http_method = "POST"
|
1925
|
+
o.http_request_uri = "/"
|
1926
|
+
o.input = Shapes::ShapeRef.new(shape: StartEventsDetectionJobRequest)
|
1927
|
+
o.output = Shapes::ShapeRef.new(shape: StartEventsDetectionJobResponse)
|
1928
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
1929
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1930
|
+
o.errors << Shapes::ShapeRef.new(shape: KmsKeyValidationException)
|
1931
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1932
|
+
end)
|
1933
|
+
|
1800
1934
|
api.add_operation(:start_key_phrases_detection_job, Seahorse::Model::Operation.new.tap do |o|
|
1801
1935
|
o.name = "StartKeyPhrasesDetectionJob"
|
1802
1936
|
o.http_method = "POST"
|
@@ -1867,6 +2001,17 @@ module Aws::Comprehend
|
|
1867
2001
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1868
2002
|
end)
|
1869
2003
|
|
2004
|
+
api.add_operation(:stop_events_detection_job, Seahorse::Model::Operation.new.tap do |o|
|
2005
|
+
o.name = "StopEventsDetectionJob"
|
2006
|
+
o.http_method = "POST"
|
2007
|
+
o.http_request_uri = "/"
|
2008
|
+
o.input = Shapes::ShapeRef.new(shape: StopEventsDetectionJobRequest)
|
2009
|
+
o.output = Shapes::ShapeRef.new(shape: StopEventsDetectionJobResponse)
|
2010
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
2011
|
+
o.errors << Shapes::ShapeRef.new(shape: JobNotFoundException)
|
2012
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
2013
|
+
end)
|
2014
|
+
|
1870
2015
|
api.add_operation(:stop_key_phrases_detection_job, Seahorse::Model::Operation.new.tap do |o|
|
1871
2016
|
o.name = "StopKeyPhrasesDetectionJob"
|
1872
2017
|
o.http_method = "POST"
|