aws-sdk-comprehend 1.40.0 → 1.45.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.45.0
@@ -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/master/CONTRIBUTING.md
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.40.0'
51
+ GEM_VERSION = '1.45.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/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -621,6 +621,44 @@ module Aws::Comprehend
621
621
  req.send_request(options)
622
622
  end
623
623
 
624
+ # Analyzes input text for the presence of personally identifiable
625
+ # information (PII) and returns the labels of identified PII entity
626
+ # types such as name, address, bank account number, or phone number.
627
+ #
628
+ # @option params [required, String] :text
629
+ # Creates a new document classification request to analyze a single
630
+ # document in real-time, returning personally identifiable information
631
+ # (PII) entity labels.
632
+ #
633
+ # @option params [required, String] :language_code
634
+ # The language of the input documents.
635
+ #
636
+ # @return [Types::ContainsPiiEntitiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
637
+ #
638
+ # * {Types::ContainsPiiEntitiesResponse#labels #labels} => Array<Types::EntityLabel>
639
+ #
640
+ # @example Request syntax with placeholder values
641
+ #
642
+ # resp = client.contains_pii_entities({
643
+ # text: "String", # required
644
+ # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
645
+ # })
646
+ #
647
+ # @example Response structure
648
+ #
649
+ # resp.labels #=> Array
650
+ # resp.labels[0].name #=> String, one of "BANK_ACCOUNT_NUMBER", "BANK_ROUTING", "CREDIT_DEBIT_NUMBER", "CREDIT_DEBIT_CVV", "CREDIT_DEBIT_EXPIRY", "PIN", "EMAIL", "ADDRESS", "NAME", "PHONE", "SSN", "DATE_TIME", "PASSPORT_NUMBER", "DRIVER_ID", "URL", "AGE", "USERNAME", "PASSWORD", "AWS_ACCESS_KEY", "AWS_SECRET_KEY", "IP_ADDRESS", "MAC_ADDRESS", "ALL"
651
+ # resp.labels[0].score #=> Float
652
+ #
653
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ContainsPiiEntities AWS API Documentation
654
+ #
655
+ # @overload contains_pii_entities(params = {})
656
+ # @param [Hash] params ({})
657
+ def contains_pii_entities(params = {}, options = {})
658
+ req = build_request(:contains_pii_entities, params)
659
+ req.send_request(options)
660
+ end
661
+
624
662
  # Creates a new document classifier that you can use to categorize
625
663
  # documents. To create a classifier, you provide a set of training
626
664
  # documents that labeled with the categories that you want to use. After
@@ -1312,6 +1350,47 @@ module Aws::Comprehend
1312
1350
  req.send_request(options)
1313
1351
  end
1314
1352
 
1353
+ # Gets the status and details of an events detection job.
1354
+ #
1355
+ # @option params [required, String] :job_id
1356
+ # The identifier of the events detection job.
1357
+ #
1358
+ # @return [Types::DescribeEventsDetectionJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1359
+ #
1360
+ # * {Types::DescribeEventsDetectionJobResponse#events_detection_job_properties #events_detection_job_properties} => Types::EventsDetectionJobProperties
1361
+ #
1362
+ # @example Request syntax with placeholder values
1363
+ #
1364
+ # resp = client.describe_events_detection_job({
1365
+ # job_id: "JobId", # required
1366
+ # })
1367
+ #
1368
+ # @example Response structure
1369
+ #
1370
+ # resp.events_detection_job_properties.job_id #=> String
1371
+ # resp.events_detection_job_properties.job_name #=> String
1372
+ # resp.events_detection_job_properties.job_status #=> String, one of "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED"
1373
+ # resp.events_detection_job_properties.message #=> String
1374
+ # resp.events_detection_job_properties.submit_time #=> Time
1375
+ # resp.events_detection_job_properties.end_time #=> Time
1376
+ # resp.events_detection_job_properties.input_data_config.s3_uri #=> String
1377
+ # resp.events_detection_job_properties.input_data_config.input_format #=> String, one of "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE"
1378
+ # resp.events_detection_job_properties.output_data_config.s3_uri #=> String
1379
+ # resp.events_detection_job_properties.output_data_config.kms_key_id #=> String
1380
+ # resp.events_detection_job_properties.language_code #=> String, one of "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW"
1381
+ # resp.events_detection_job_properties.data_access_role_arn #=> String
1382
+ # resp.events_detection_job_properties.target_event_types #=> Array
1383
+ # resp.events_detection_job_properties.target_event_types[0] #=> String
1384
+ #
1385
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEventsDetectionJob AWS API Documentation
1386
+ #
1387
+ # @overload describe_events_detection_job(params = {})
1388
+ # @param [Hash] params ({})
1389
+ def describe_events_detection_job(params = {}, options = {})
1390
+ req = build_request(:describe_events_detection_job, params)
1391
+ req.send_request(options)
1392
+ end
1393
+
1315
1394
  # Gets the properties associated with a key phrases detection job. Use
1316
1395
  # this operation to get the status of a detection job.
1317
1396
  #
@@ -2171,6 +2250,67 @@ module Aws::Comprehend
2171
2250
  req.send_request(options)
2172
2251
  end
2173
2252
 
2253
+ # Gets a list of the events detection jobs that you have submitted.
2254
+ #
2255
+ # @option params [Types::EventsDetectionJobFilter] :filter
2256
+ # Filters the jobs that are returned. You can filter jobs on their name,
2257
+ # status, or the date and time that they were submitted. You can only
2258
+ # set one filter at a time.
2259
+ #
2260
+ # @option params [String] :next_token
2261
+ # Identifies the next page of results to return.
2262
+ #
2263
+ # @option params [Integer] :max_results
2264
+ # The maximum number of results to return in each page.
2265
+ #
2266
+ # @return [Types::ListEventsDetectionJobsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2267
+ #
2268
+ # * {Types::ListEventsDetectionJobsResponse#events_detection_job_properties_list #events_detection_job_properties_list} => Array<Types::EventsDetectionJobProperties>
2269
+ # * {Types::ListEventsDetectionJobsResponse#next_token #next_token} => String
2270
+ #
2271
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2272
+ #
2273
+ # @example Request syntax with placeholder values
2274
+ #
2275
+ # resp = client.list_events_detection_jobs({
2276
+ # filter: {
2277
+ # job_name: "JobName",
2278
+ # job_status: "SUBMITTED", # accepts SUBMITTED, IN_PROGRESS, COMPLETED, FAILED, STOP_REQUESTED, STOPPED
2279
+ # submit_time_before: Time.now,
2280
+ # submit_time_after: Time.now,
2281
+ # },
2282
+ # next_token: "String",
2283
+ # max_results: 1,
2284
+ # })
2285
+ #
2286
+ # @example Response structure
2287
+ #
2288
+ # resp.events_detection_job_properties_list #=> Array
2289
+ # resp.events_detection_job_properties_list[0].job_id #=> String
2290
+ # resp.events_detection_job_properties_list[0].job_name #=> String
2291
+ # resp.events_detection_job_properties_list[0].job_status #=> String, one of "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED"
2292
+ # resp.events_detection_job_properties_list[0].message #=> String
2293
+ # resp.events_detection_job_properties_list[0].submit_time #=> Time
2294
+ # resp.events_detection_job_properties_list[0].end_time #=> Time
2295
+ # resp.events_detection_job_properties_list[0].input_data_config.s3_uri #=> String
2296
+ # resp.events_detection_job_properties_list[0].input_data_config.input_format #=> String, one of "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE"
2297
+ # resp.events_detection_job_properties_list[0].output_data_config.s3_uri #=> String
2298
+ # resp.events_detection_job_properties_list[0].output_data_config.kms_key_id #=> String
2299
+ # 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"
2300
+ # resp.events_detection_job_properties_list[0].data_access_role_arn #=> String
2301
+ # resp.events_detection_job_properties_list[0].target_event_types #=> Array
2302
+ # resp.events_detection_job_properties_list[0].target_event_types[0] #=> String
2303
+ # resp.next_token #=> String
2304
+ #
2305
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEventsDetectionJobs AWS API Documentation
2306
+ #
2307
+ # @overload list_events_detection_jobs(params = {})
2308
+ # @param [Hash] params ({})
2309
+ def list_events_detection_jobs(params = {}, options = {})
2310
+ req = build_request(:list_events_detection_jobs, params)
2311
+ req.send_request(options)
2312
+ end
2313
+
2174
2314
  # Get a list of key phrase detection jobs that you have submitted.
2175
2315
  #
2176
2316
  # @option params [Types::KeyPhrasesDetectionJobFilter] :filter
@@ -2747,6 +2887,73 @@ module Aws::Comprehend
2747
2887
  req.send_request(options)
2748
2888
  end
2749
2889
 
2890
+ # Starts an asynchronous event detection job for a collection of
2891
+ # documents.
2892
+ #
2893
+ # @option params [required, Types::InputDataConfig] :input_data_config
2894
+ # Specifies the format and location of the input data for the job.
2895
+ #
2896
+ # @option params [required, Types::OutputDataConfig] :output_data_config
2897
+ # Specifies where to send the output files.
2898
+ #
2899
+ # @option params [required, String] :data_access_role_arn
2900
+ # The Amazon Resource Name (ARN) of the AWS Identity and Access
2901
+ # Management (IAM) role that grants Amazon Comprehend read access to
2902
+ # your input data.
2903
+ #
2904
+ # @option params [String] :job_name
2905
+ # The identifier of the events detection job.
2906
+ #
2907
+ # @option params [required, String] :language_code
2908
+ # The language code of the input documents.
2909
+ #
2910
+ # @option params [String] :client_request_token
2911
+ # An unique identifier for the request. If you don't set the client
2912
+ # request token, Amazon Comprehend generates one.
2913
+ #
2914
+ # **A suitable default value is auto-generated.** You should normally
2915
+ # not need to pass this option.**
2916
+ #
2917
+ # @option params [required, Array<String>] :target_event_types
2918
+ # The types of events to detect in the input documents.
2919
+ #
2920
+ # @return [Types::StartEventsDetectionJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2921
+ #
2922
+ # * {Types::StartEventsDetectionJobResponse#job_id #job_id} => String
2923
+ # * {Types::StartEventsDetectionJobResponse#job_status #job_status} => String
2924
+ #
2925
+ # @example Request syntax with placeholder values
2926
+ #
2927
+ # resp = client.start_events_detection_job({
2928
+ # input_data_config: { # required
2929
+ # s3_uri: "S3Uri", # required
2930
+ # input_format: "ONE_DOC_PER_FILE", # accepts ONE_DOC_PER_FILE, ONE_DOC_PER_LINE
2931
+ # },
2932
+ # output_data_config: { # required
2933
+ # s3_uri: "S3Uri", # required
2934
+ # kms_key_id: "KmsKeyId",
2935
+ # },
2936
+ # data_access_role_arn: "IamRoleArn", # required
2937
+ # job_name: "JobName",
2938
+ # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
2939
+ # client_request_token: "ClientRequestTokenString",
2940
+ # target_event_types: ["EventTypeString"], # required
2941
+ # })
2942
+ #
2943
+ # @example Response structure
2944
+ #
2945
+ # resp.job_id #=> String
2946
+ # resp.job_status #=> String, one of "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED"
2947
+ #
2948
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartEventsDetectionJob AWS API Documentation
2949
+ #
2950
+ # @overload start_events_detection_job(params = {})
2951
+ # @param [Hash] params ({})
2952
+ def start_events_detection_job(params = {}, options = {})
2953
+ req = build_request(:start_events_detection_job, params)
2954
+ req.send_request(options)
2955
+ end
2956
+
2750
2957
  # Starts an asynchronous key phrase detection job for a collection of
2751
2958
  # documents. Use the operation to track the status of a job.
2752
2959
  #
@@ -3198,6 +3405,36 @@ module Aws::Comprehend
3198
3405
  req.send_request(options)
3199
3406
  end
3200
3407
 
3408
+ # Stops an events detection job in progress.
3409
+ #
3410
+ # @option params [required, String] :job_id
3411
+ # The identifier of the events detection job to stop.
3412
+ #
3413
+ # @return [Types::StopEventsDetectionJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3414
+ #
3415
+ # * {Types::StopEventsDetectionJobResponse#job_id #job_id} => String
3416
+ # * {Types::StopEventsDetectionJobResponse#job_status #job_status} => String
3417
+ #
3418
+ # @example Request syntax with placeholder values
3419
+ #
3420
+ # resp = client.stop_events_detection_job({
3421
+ # job_id: "JobId", # required
3422
+ # })
3423
+ #
3424
+ # @example Response structure
3425
+ #
3426
+ # resp.job_id #=> String
3427
+ # resp.job_status #=> String, one of "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED"
3428
+ #
3429
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopEventsDetectionJob AWS API Documentation
3430
+ #
3431
+ # @overload stop_events_detection_job(params = {})
3432
+ # @param [Hash] params ({})
3433
+ def stop_events_detection_job(params = {}, options = {})
3434
+ req = build_request(:stop_events_detection_job, params)
3435
+ req.send_request(options)
3436
+ end
3437
+
3201
3438
  # Stops a key phrases detection job in progress.
3202
3439
  #
3203
3440
  # If the job state is `IN_PROGRESS` the job is marked for termination
@@ -3481,7 +3718,7 @@ module Aws::Comprehend
3481
3718
  params: params,
3482
3719
  config: config)
3483
3720
  context[:gem_name] = 'aws-sdk-comprehend'
3484
- context[:gem_version] = '1.40.0'
3721
+ context[:gem_version] = '1.45.0'
3485
3722
  Seahorse::Client::Request.new(handlers, context)
3486
3723
  end
3487
3724
 
@@ -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/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -46,6 +46,8 @@ module Aws::Comprehend
46
46
  ComprehendEndpointName = Shapes::StringShape.new(name: 'ComprehendEndpointName')
47
47
  ComprehendModelArn = Shapes::StringShape.new(name: 'ComprehendModelArn')
48
48
  ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
49
+ ContainsPiiEntitiesRequest = Shapes::StructureShape.new(name: 'ContainsPiiEntitiesRequest')
50
+ ContainsPiiEntitiesResponse = Shapes::StructureShape.new(name: 'ContainsPiiEntitiesResponse')
49
51
  CreateDocumentClassifierRequest = Shapes::StructureShape.new(name: 'CreateDocumentClassifierRequest')
50
52
  CreateDocumentClassifierResponse = Shapes::StructureShape.new(name: 'CreateDocumentClassifierResponse')
51
53
  CreateEndpointRequest = Shapes::StructureShape.new(name: 'CreateEndpointRequest')
@@ -72,6 +74,8 @@ module Aws::Comprehend
72
74
  DescribeEntitiesDetectionJobResponse = Shapes::StructureShape.new(name: 'DescribeEntitiesDetectionJobResponse')
73
75
  DescribeEntityRecognizerRequest = Shapes::StructureShape.new(name: 'DescribeEntityRecognizerRequest')
74
76
  DescribeEntityRecognizerResponse = Shapes::StructureShape.new(name: 'DescribeEntityRecognizerResponse')
77
+ DescribeEventsDetectionJobRequest = Shapes::StructureShape.new(name: 'DescribeEventsDetectionJobRequest')
78
+ DescribeEventsDetectionJobResponse = Shapes::StructureShape.new(name: 'DescribeEventsDetectionJobResponse')
75
79
  DescribeKeyPhrasesDetectionJobRequest = Shapes::StructureShape.new(name: 'DescribeKeyPhrasesDetectionJobRequest')
76
80
  DescribeKeyPhrasesDetectionJobResponse = Shapes::StructureShape.new(name: 'DescribeKeyPhrasesDetectionJobResponse')
77
81
  DescribePiiEntitiesDetectionJobRequest = Shapes::StructureShape.new(name: 'DescribePiiEntitiesDetectionJobRequest')
@@ -120,6 +124,7 @@ module Aws::Comprehend
120
124
  EntitiesDetectionJobProperties = Shapes::StructureShape.new(name: 'EntitiesDetectionJobProperties')
121
125
  EntitiesDetectionJobPropertiesList = Shapes::ListShape.new(name: 'EntitiesDetectionJobPropertiesList')
122
126
  Entity = Shapes::StructureShape.new(name: 'Entity')
127
+ EntityLabel = Shapes::StructureShape.new(name: 'EntityLabel')
123
128
  EntityRecognizerAnnotations = Shapes::StructureShape.new(name: 'EntityRecognizerAnnotations')
124
129
  EntityRecognizerArn = Shapes::StringShape.new(name: 'EntityRecognizerArn')
125
130
  EntityRecognizerAugmentedManifestsList = Shapes::ListShape.new(name: 'EntityRecognizerAugmentedManifestsList')
@@ -140,6 +145,10 @@ module Aws::Comprehend
140
145
  EntityTypesEvaluationMetrics = Shapes::StructureShape.new(name: 'EntityTypesEvaluationMetrics')
141
146
  EntityTypesList = Shapes::ListShape.new(name: 'EntityTypesList')
142
147
  EntityTypesListItem = Shapes::StructureShape.new(name: 'EntityTypesListItem')
148
+ EventTypeString = Shapes::StringShape.new(name: 'EventTypeString')
149
+ EventsDetectionJobFilter = Shapes::StructureShape.new(name: 'EventsDetectionJobFilter')
150
+ EventsDetectionJobProperties = Shapes::StructureShape.new(name: 'EventsDetectionJobProperties')
151
+ EventsDetectionJobPropertiesList = Shapes::ListShape.new(name: 'EventsDetectionJobPropertiesList')
143
152
  Float = Shapes::FloatShape.new(name: 'Float')
144
153
  IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
145
154
  InferenceUnitsInteger = Shapes::IntegerShape.new(name: 'InferenceUnitsInteger')
@@ -173,6 +182,8 @@ module Aws::Comprehend
173
182
  ListEntitiesDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListEntitiesDetectionJobsResponse')
174
183
  ListEntityRecognizersRequest = Shapes::StructureShape.new(name: 'ListEntityRecognizersRequest')
175
184
  ListEntityRecognizersResponse = Shapes::StructureShape.new(name: 'ListEntityRecognizersResponse')
185
+ ListEventsDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListEventsDetectionJobsRequest')
186
+ ListEventsDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListEventsDetectionJobsResponse')
176
187
  ListKeyPhrasesDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListKeyPhrasesDetectionJobsRequest')
177
188
  ListKeyPhrasesDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListKeyPhrasesDetectionJobsResponse')
178
189
  ListOfClasses = Shapes::ListShape.new(name: 'ListOfClasses')
@@ -183,6 +194,7 @@ module Aws::Comprehend
183
194
  ListOfDetectSyntaxResult = Shapes::ListShape.new(name: 'ListOfDetectSyntaxResult')
184
195
  ListOfDominantLanguages = Shapes::ListShape.new(name: 'ListOfDominantLanguages')
185
196
  ListOfEntities = Shapes::ListShape.new(name: 'ListOfEntities')
197
+ ListOfEntityLabels = Shapes::ListShape.new(name: 'ListOfEntityLabels')
186
198
  ListOfKeyPhrases = Shapes::ListShape.new(name: 'ListOfKeyPhrases')
187
199
  ListOfLabels = Shapes::ListShape.new(name: 'ListOfLabels')
188
200
  ListOfPiiEntities = Shapes::ListShape.new(name: 'ListOfPiiEntities')
@@ -230,6 +242,8 @@ module Aws::Comprehend
230
242
  StartDominantLanguageDetectionJobResponse = Shapes::StructureShape.new(name: 'StartDominantLanguageDetectionJobResponse')
231
243
  StartEntitiesDetectionJobRequest = Shapes::StructureShape.new(name: 'StartEntitiesDetectionJobRequest')
232
244
  StartEntitiesDetectionJobResponse = Shapes::StructureShape.new(name: 'StartEntitiesDetectionJobResponse')
245
+ StartEventsDetectionJobRequest = Shapes::StructureShape.new(name: 'StartEventsDetectionJobRequest')
246
+ StartEventsDetectionJobResponse = Shapes::StructureShape.new(name: 'StartEventsDetectionJobResponse')
233
247
  StartKeyPhrasesDetectionJobRequest = Shapes::StructureShape.new(name: 'StartKeyPhrasesDetectionJobRequest')
234
248
  StartKeyPhrasesDetectionJobResponse = Shapes::StructureShape.new(name: 'StartKeyPhrasesDetectionJobResponse')
235
249
  StartPiiEntitiesDetectionJobRequest = Shapes::StructureShape.new(name: 'StartPiiEntitiesDetectionJobRequest')
@@ -242,6 +256,8 @@ module Aws::Comprehend
242
256
  StopDominantLanguageDetectionJobResponse = Shapes::StructureShape.new(name: 'StopDominantLanguageDetectionJobResponse')
243
257
  StopEntitiesDetectionJobRequest = Shapes::StructureShape.new(name: 'StopEntitiesDetectionJobRequest')
244
258
  StopEntitiesDetectionJobResponse = Shapes::StructureShape.new(name: 'StopEntitiesDetectionJobResponse')
259
+ StopEventsDetectionJobRequest = Shapes::StructureShape.new(name: 'StopEventsDetectionJobRequest')
260
+ StopEventsDetectionJobResponse = Shapes::StructureShape.new(name: 'StopEventsDetectionJobResponse')
245
261
  StopKeyPhrasesDetectionJobRequest = Shapes::StructureShape.new(name: 'StopKeyPhrasesDetectionJobRequest')
246
262
  StopKeyPhrasesDetectionJobResponse = Shapes::StructureShape.new(name: 'StopKeyPhrasesDetectionJobResponse')
247
263
  StopPiiEntitiesDetectionJobRequest = Shapes::StructureShape.new(name: 'StopPiiEntitiesDetectionJobRequest')
@@ -264,6 +280,7 @@ module Aws::Comprehend
264
280
  TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
265
281
  TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
266
282
  TagValue = Shapes::StringShape.new(name: 'TagValue')
283
+ TargetEventTypes = Shapes::ListShape.new(name: 'TargetEventTypes')
267
284
  TextSizeLimitExceededException = Shapes::StructureShape.new(name: 'TextSizeLimitExceededException')
268
285
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
269
286
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
@@ -382,6 +399,13 @@ module Aws::Comprehend
382
399
  ConcurrentModificationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
383
400
  ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
384
401
 
402
+ ContainsPiiEntitiesRequest.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Text"))
403
+ ContainsPiiEntitiesRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
404
+ ContainsPiiEntitiesRequest.struct_class = Types::ContainsPiiEntitiesRequest
405
+
406
+ ContainsPiiEntitiesResponse.add_member(:labels, Shapes::ShapeRef.new(shape: ListOfEntityLabels, location_name: "Labels"))
407
+ ContainsPiiEntitiesResponse.struct_class = Types::ContainsPiiEntitiesResponse
408
+
385
409
  CreateDocumentClassifierRequest.add_member(:document_classifier_name, Shapes::ShapeRef.new(shape: ComprehendArnName, required: true, location_name: "DocumentClassifierName"))
386
410
  CreateDocumentClassifierRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "DataAccessRoleArn"))
387
411
  CreateDocumentClassifierRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
@@ -473,6 +497,12 @@ module Aws::Comprehend
473
497
  DescribeEntityRecognizerResponse.add_member(:entity_recognizer_properties, Shapes::ShapeRef.new(shape: EntityRecognizerProperties, location_name: "EntityRecognizerProperties"))
474
498
  DescribeEntityRecognizerResponse.struct_class = Types::DescribeEntityRecognizerResponse
475
499
 
500
+ DescribeEventsDetectionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
501
+ DescribeEventsDetectionJobRequest.struct_class = Types::DescribeEventsDetectionJobRequest
502
+
503
+ DescribeEventsDetectionJobResponse.add_member(:events_detection_job_properties, Shapes::ShapeRef.new(shape: EventsDetectionJobProperties, location_name: "EventsDetectionJobProperties"))
504
+ DescribeEventsDetectionJobResponse.struct_class = Types::DescribeEventsDetectionJobResponse
505
+
476
506
  DescribeKeyPhrasesDetectionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
477
507
  DescribeKeyPhrasesDetectionJobRequest.struct_class = Types::DescribeKeyPhrasesDetectionJobRequest
478
508
 
@@ -679,6 +709,10 @@ module Aws::Comprehend
679
709
  Entity.add_member(:end_offset, Shapes::ShapeRef.new(shape: Integer, location_name: "EndOffset"))
680
710
  Entity.struct_class = Types::Entity
681
711
 
712
+ EntityLabel.add_member(:name, Shapes::ShapeRef.new(shape: PiiEntityType, location_name: "Name"))
713
+ EntityLabel.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
714
+ EntityLabel.struct_class = Types::EntityLabel
715
+
682
716
  EntityRecognizerAnnotations.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
683
717
  EntityRecognizerAnnotations.struct_class = Types::EntityRecognizerAnnotations
684
718
 
@@ -748,6 +782,27 @@ module Aws::Comprehend
748
782
  EntityTypesListItem.add_member(:type, Shapes::ShapeRef.new(shape: EntityTypeName, required: true, location_name: "Type"))
749
783
  EntityTypesListItem.struct_class = Types::EntityTypesListItem
750
784
 
785
+ EventsDetectionJobFilter.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
786
+ EventsDetectionJobFilter.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
787
+ EventsDetectionJobFilter.add_member(:submit_time_before, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeBefore"))
788
+ EventsDetectionJobFilter.add_member(:submit_time_after, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeAfter"))
789
+ EventsDetectionJobFilter.struct_class = Types::EventsDetectionJobFilter
790
+
791
+ EventsDetectionJobProperties.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
792
+ EventsDetectionJobProperties.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
793
+ EventsDetectionJobProperties.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
794
+ EventsDetectionJobProperties.add_member(:message, Shapes::ShapeRef.new(shape: AnyLengthString, location_name: "Message"))
795
+ EventsDetectionJobProperties.add_member(:submit_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTime"))
796
+ EventsDetectionJobProperties.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndTime"))
797
+ EventsDetectionJobProperties.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, location_name: "InputDataConfig"))
798
+ EventsDetectionJobProperties.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, location_name: "OutputDataConfig"))
799
+ EventsDetectionJobProperties.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
800
+ EventsDetectionJobProperties.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "DataAccessRoleArn"))
801
+ EventsDetectionJobProperties.add_member(:target_event_types, Shapes::ShapeRef.new(shape: TargetEventTypes, location_name: "TargetEventTypes"))
802
+ EventsDetectionJobProperties.struct_class = Types::EventsDetectionJobProperties
803
+
804
+ EventsDetectionJobPropertiesList.member = Shapes::ShapeRef.new(shape: EventsDetectionJobProperties)
805
+
751
806
  InputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
752
807
  InputDataConfig.add_member(:input_format, Shapes::ShapeRef.new(shape: InputFormat, location_name: "InputFormat"))
753
808
  InputDataConfig.struct_class = Types::InputDataConfig
@@ -849,6 +904,15 @@ module Aws::Comprehend
849
904
  ListEntityRecognizersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
850
905
  ListEntityRecognizersResponse.struct_class = Types::ListEntityRecognizersResponse
851
906
 
907
+ ListEventsDetectionJobsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: EventsDetectionJobFilter, location_name: "Filter"))
908
+ ListEventsDetectionJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
909
+ ListEventsDetectionJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
910
+ ListEventsDetectionJobsRequest.struct_class = Types::ListEventsDetectionJobsRequest
911
+
912
+ ListEventsDetectionJobsResponse.add_member(:events_detection_job_properties_list, Shapes::ShapeRef.new(shape: EventsDetectionJobPropertiesList, location_name: "EventsDetectionJobPropertiesList"))
913
+ ListEventsDetectionJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
914
+ ListEventsDetectionJobsResponse.struct_class = Types::ListEventsDetectionJobsResponse
915
+
852
916
  ListKeyPhrasesDetectionJobsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: KeyPhrasesDetectionJobFilter, location_name: "Filter"))
853
917
  ListKeyPhrasesDetectionJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
854
918
  ListKeyPhrasesDetectionJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
@@ -874,6 +938,8 @@ module Aws::Comprehend
874
938
 
875
939
  ListOfEntities.member = Shapes::ShapeRef.new(shape: Entity)
876
940
 
941
+ ListOfEntityLabels.member = Shapes::ShapeRef.new(shape: EntityLabel)
942
+
877
943
  ListOfKeyPhrases.member = Shapes::ShapeRef.new(shape: KeyPhrase)
878
944
 
879
945
  ListOfLabels.member = Shapes::ShapeRef.new(shape: DocumentLabel)
@@ -1047,6 +1113,19 @@ module Aws::Comprehend
1047
1113
  StartEntitiesDetectionJobResponse.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
1048
1114
  StartEntitiesDetectionJobResponse.struct_class = Types::StartEntitiesDetectionJobResponse
1049
1115
 
1116
+ StartEventsDetectionJobRequest.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, required: true, location_name: "InputDataConfig"))
1117
+ StartEventsDetectionJobRequest.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, required: true, location_name: "OutputDataConfig"))
1118
+ StartEventsDetectionJobRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "DataAccessRoleArn"))
1119
+ StartEventsDetectionJobRequest.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
1120
+ StartEventsDetectionJobRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
1121
+ StartEventsDetectionJobRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenString, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
1122
+ StartEventsDetectionJobRequest.add_member(:target_event_types, Shapes::ShapeRef.new(shape: TargetEventTypes, required: true, location_name: "TargetEventTypes"))
1123
+ StartEventsDetectionJobRequest.struct_class = Types::StartEventsDetectionJobRequest
1124
+
1125
+ StartEventsDetectionJobResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
1126
+ StartEventsDetectionJobResponse.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
1127
+ StartEventsDetectionJobResponse.struct_class = Types::StartEventsDetectionJobResponse
1128
+
1050
1129
  StartKeyPhrasesDetectionJobRequest.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, required: true, location_name: "InputDataConfig"))
1051
1130
  StartKeyPhrasesDetectionJobRequest.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, required: true, location_name: "OutputDataConfig"))
1052
1131
  StartKeyPhrasesDetectionJobRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "DataAccessRoleArn"))
@@ -1117,6 +1196,13 @@ module Aws::Comprehend
1117
1196
  StopEntitiesDetectionJobResponse.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
1118
1197
  StopEntitiesDetectionJobResponse.struct_class = Types::StopEntitiesDetectionJobResponse
1119
1198
 
1199
+ StopEventsDetectionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
1200
+ StopEventsDetectionJobRequest.struct_class = Types::StopEventsDetectionJobRequest
1201
+
1202
+ StopEventsDetectionJobResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
1203
+ StopEventsDetectionJobResponse.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
1204
+ StopEventsDetectionJobResponse.struct_class = Types::StopEventsDetectionJobResponse
1205
+
1120
1206
  StopKeyPhrasesDetectionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
1121
1207
  StopKeyPhrasesDetectionJobRequest.struct_class = Types::StopKeyPhrasesDetectionJobRequest
1122
1208
 
@@ -1171,6 +1257,8 @@ module Aws::Comprehend
1171
1257
 
1172
1258
  TagResourceResponse.struct_class = Types::TagResourceResponse
1173
1259
 
1260
+ TargetEventTypes.member = Shapes::ShapeRef.new(shape: EventTypeString)
1261
+
1174
1262
  TextSizeLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
1175
1263
  TextSizeLimitExceededException.struct_class = Types::TextSizeLimitExceededException
1176
1264
 
@@ -1319,6 +1407,18 @@ module Aws::Comprehend
1319
1407
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1320
1408
  end)
1321
1409
 
1410
+ api.add_operation(:contains_pii_entities, Seahorse::Model::Operation.new.tap do |o|
1411
+ o.name = "ContainsPiiEntities"
1412
+ o.http_method = "POST"
1413
+ o.http_request_uri = "/"
1414
+ o.input = Shapes::ShapeRef.new(shape: ContainsPiiEntitiesRequest)
1415
+ o.output = Shapes::ShapeRef.new(shape: ContainsPiiEntitiesResponse)
1416
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1417
+ o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
1418
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguageException)
1419
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1420
+ end)
1421
+
1322
1422
  api.add_operation(:create_document_classifier, Seahorse::Model::Operation.new.tap do |o|
1323
1423
  o.name = "CreateDocumentClassifier"
1324
1424
  o.http_method = "POST"
@@ -1480,6 +1580,18 @@ module Aws::Comprehend
1480
1580
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1481
1581
  end)
1482
1582
 
1583
+ api.add_operation(:describe_events_detection_job, Seahorse::Model::Operation.new.tap do |o|
1584
+ o.name = "DescribeEventsDetectionJob"
1585
+ o.http_method = "POST"
1586
+ o.http_request_uri = "/"
1587
+ o.input = Shapes::ShapeRef.new(shape: DescribeEventsDetectionJobRequest)
1588
+ o.output = Shapes::ShapeRef.new(shape: DescribeEventsDetectionJobResponse)
1589
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1590
+ o.errors << Shapes::ShapeRef.new(shape: JobNotFoundException)
1591
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1592
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1593
+ end)
1594
+
1483
1595
  api.add_operation(:describe_key_phrases_detection_job, Seahorse::Model::Operation.new.tap do |o|
1484
1596
  o.name = "DescribeKeyPhrasesDetectionJob"
1485
1597
  o.http_method = "POST"
@@ -1701,6 +1813,24 @@ module Aws::Comprehend
1701
1813
  )
1702
1814
  end)
1703
1815
 
1816
+ api.add_operation(:list_events_detection_jobs, Seahorse::Model::Operation.new.tap do |o|
1817
+ o.name = "ListEventsDetectionJobs"
1818
+ o.http_method = "POST"
1819
+ o.http_request_uri = "/"
1820
+ o.input = Shapes::ShapeRef.new(shape: ListEventsDetectionJobsRequest)
1821
+ o.output = Shapes::ShapeRef.new(shape: ListEventsDetectionJobsResponse)
1822
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1823
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1824
+ o.errors << Shapes::ShapeRef.new(shape: InvalidFilterException)
1825
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1826
+ o[:pager] = Aws::Pager.new(
1827
+ limit_key: "max_results",
1828
+ tokens: {
1829
+ "next_token" => "next_token"
1830
+ }
1831
+ )
1832
+ end)
1833
+
1704
1834
  api.add_operation(:list_key_phrases_detection_jobs, Seahorse::Model::Operation.new.tap do |o|
1705
1835
  o.name = "ListKeyPhrasesDetectionJobs"
1706
1836
  o.http_method = "POST"
@@ -1818,6 +1948,18 @@ module Aws::Comprehend
1818
1948
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1819
1949
  end)
1820
1950
 
1951
+ api.add_operation(:start_events_detection_job, Seahorse::Model::Operation.new.tap do |o|
1952
+ o.name = "StartEventsDetectionJob"
1953
+ o.http_method = "POST"
1954
+ o.http_request_uri = "/"
1955
+ o.input = Shapes::ShapeRef.new(shape: StartEventsDetectionJobRequest)
1956
+ o.output = Shapes::ShapeRef.new(shape: StartEventsDetectionJobResponse)
1957
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1958
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1959
+ o.errors << Shapes::ShapeRef.new(shape: KmsKeyValidationException)
1960
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1961
+ end)
1962
+
1821
1963
  api.add_operation(:start_key_phrases_detection_job, Seahorse::Model::Operation.new.tap do |o|
1822
1964
  o.name = "StartKeyPhrasesDetectionJob"
1823
1965
  o.http_method = "POST"
@@ -1888,6 +2030,17 @@ module Aws::Comprehend
1888
2030
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1889
2031
  end)
1890
2032
 
2033
+ api.add_operation(:stop_events_detection_job, Seahorse::Model::Operation.new.tap do |o|
2034
+ o.name = "StopEventsDetectionJob"
2035
+ o.http_method = "POST"
2036
+ o.http_request_uri = "/"
2037
+ o.input = Shapes::ShapeRef.new(shape: StopEventsDetectionJobRequest)
2038
+ o.output = Shapes::ShapeRef.new(shape: StopEventsDetectionJobResponse)
2039
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
2040
+ o.errors << Shapes::ShapeRef.new(shape: JobNotFoundException)
2041
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2042
+ end)
2043
+
1891
2044
  api.add_operation(:stop_key_phrases_detection_job, Seahorse::Model::Operation.new.tap do |o|
1892
2045
  o.name = "StopKeyPhrasesDetectionJob"
1893
2046
  o.http_method = "POST"