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.
@@ -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
 
@@ -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
 
@@ -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
 
@@ -603,7 +603,7 @@ module Aws::Comprehend
603
603
  # @!attribute [rw] labels
604
604
  # The labels used the document being analyzed. These are used for
605
605
  # multi-label trained models. Individual labels represent different
606
- # categories that are related in some manner and are not multually
606
+ # categories that are related in some manner and are not mutually
607
607
  # exclusive. For example, a movie can be just an action movie, or it
608
608
  # can be an action movie, a science fiction movie, and a comedy, all
609
609
  # at the same time.
@@ -632,6 +632,46 @@ module Aws::Comprehend
632
632
  include Aws::Structure
633
633
  end
634
634
 
635
+ # @note When making an API call, you may pass ContainsPiiEntitiesRequest
636
+ # data as a hash:
637
+ #
638
+ # {
639
+ # text: "String", # required
640
+ # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
641
+ # }
642
+ #
643
+ # @!attribute [rw] text
644
+ # Creates a new document classification request to analyze a single
645
+ # document in real-time, returning personally identifiable information
646
+ # (PII) entity labels.
647
+ # @return [String]
648
+ #
649
+ # @!attribute [rw] language_code
650
+ # The language of the input documents.
651
+ # @return [String]
652
+ #
653
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ContainsPiiEntitiesRequest AWS API Documentation
654
+ #
655
+ class ContainsPiiEntitiesRequest < Struct.new(
656
+ :text,
657
+ :language_code)
658
+ SENSITIVE = []
659
+ include Aws::Structure
660
+ end
661
+
662
+ # @!attribute [rw] labels
663
+ # The labels used in the document being analyzed. Individual labels
664
+ # represent personally identifiable information (PII) entity types.
665
+ # @return [Array<Types::EntityLabel>]
666
+ #
667
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ContainsPiiEntitiesResponse AWS API Documentation
668
+ #
669
+ class ContainsPiiEntitiesResponse < Struct.new(
670
+ :labels)
671
+ SENSITIVE = []
672
+ include Aws::Structure
673
+ end
674
+
635
675
  # @note When making an API call, you may pass CreateDocumentClassifierRequest
636
676
  # data as a hash:
637
677
  #
@@ -1247,6 +1287,38 @@ module Aws::Comprehend
1247
1287
  include Aws::Structure
1248
1288
  end
1249
1289
 
1290
+ # @note When making an API call, you may pass DescribeEventsDetectionJobRequest
1291
+ # data as a hash:
1292
+ #
1293
+ # {
1294
+ # job_id: "JobId", # required
1295
+ # }
1296
+ #
1297
+ # @!attribute [rw] job_id
1298
+ # The identifier of the events detection job.
1299
+ # @return [String]
1300
+ #
1301
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEventsDetectionJobRequest AWS API Documentation
1302
+ #
1303
+ class DescribeEventsDetectionJobRequest < Struct.new(
1304
+ :job_id)
1305
+ SENSITIVE = []
1306
+ include Aws::Structure
1307
+ end
1308
+
1309
+ # @!attribute [rw] events_detection_job_properties
1310
+ # An object that contains the properties associated with an event
1311
+ # detection job.
1312
+ # @return [Types::EventsDetectionJobProperties]
1313
+ #
1314
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEventsDetectionJobResponse AWS API Documentation
1315
+ #
1316
+ class DescribeEventsDetectionJobResponse < Struct.new(
1317
+ :events_detection_job_properties)
1318
+ SENSITIVE = []
1319
+ include Aws::Structure
1320
+ end
1321
+
1250
1322
  # @note When making an API call, you may pass DescribeKeyPhrasesDetectionJobRequest
1251
1323
  # data as a hash:
1252
1324
  #
@@ -2290,7 +2362,7 @@ module Aws::Comprehend
2290
2362
  include Aws::Structure
2291
2363
  end
2292
2364
 
2293
- # The filter used to determine which endpoints are are returned. You can
2365
+ # The filter used to determine which endpoints are returned. You can
2294
2366
  # filter jobs on their name, model, status, or the date and time that
2295
2367
  # they were created. You can only set one filter at a time.
2296
2368
  #
@@ -2575,6 +2647,27 @@ module Aws::Comprehend
2575
2647
  include Aws::Structure
2576
2648
  end
2577
2649
 
2650
+ # Specifies one of the label or labels that categorize the personally
2651
+ # identifiable information (PII) entity being analyzed.
2652
+ #
2653
+ # @!attribute [rw] name
2654
+ # The name of the label.
2655
+ # @return [String]
2656
+ #
2657
+ # @!attribute [rw] score
2658
+ # The level of confidence that Amazon Comprehend has in the accuracy
2659
+ # of the detection.
2660
+ # @return [Float]
2661
+ #
2662
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityLabel AWS API Documentation
2663
+ #
2664
+ class EntityLabel < Struct.new(
2665
+ :name,
2666
+ :score)
2667
+ SENSITIVE = []
2668
+ include Aws::Structure
2669
+ end
2670
+
2578
2671
  # Describes the annotations associated with a entity recognizer.
2579
2672
  #
2580
2673
  # @note When making an API call, you may pass EntityRecognizerAnnotations
@@ -2994,11 +3087,10 @@ module Aws::Comprehend
2994
3087
  # @return [Float]
2995
3088
  #
2996
3089
  # @!attribute [rw] f1_score
2997
- # A measure of how accurate the recognizer results are for for a
2998
- # specific entity type in the test data. It is derived from the
2999
- # `Precision` and `Recall` values. The `F1Score` is the harmonic
3000
- # average of the two scores. The highest score is 1, and the worst
3001
- # score is 0.
3090
+ # A measure of how accurate the recognizer results are for a specific
3091
+ # entity type in the test data. It is derived from the `Precision` and
3092
+ # `Recall` values. The `F1Score` is the harmonic average of the two
3093
+ # scores. The highest score is 1, and the worst score is 0.
3002
3094
  # @return [Float]
3003
3095
  #
3004
3096
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EntityTypesEvaluationMetrics AWS API Documentation
@@ -3039,6 +3131,120 @@ module Aws::Comprehend
3039
3131
  include Aws::Structure
3040
3132
  end
3041
3133
 
3134
+ # Provides information for filtering a list of event detection jobs.
3135
+ #
3136
+ # @note When making an API call, you may pass EventsDetectionJobFilter
3137
+ # data as a hash:
3138
+ #
3139
+ # {
3140
+ # job_name: "JobName",
3141
+ # job_status: "SUBMITTED", # accepts SUBMITTED, IN_PROGRESS, COMPLETED, FAILED, STOP_REQUESTED, STOPPED
3142
+ # submit_time_before: Time.now,
3143
+ # submit_time_after: Time.now,
3144
+ # }
3145
+ #
3146
+ # @!attribute [rw] job_name
3147
+ # Filters on the name of the events detection job.
3148
+ # @return [String]
3149
+ #
3150
+ # @!attribute [rw] job_status
3151
+ # Filters the list of jobs based on job status. Returns only jobs with
3152
+ # the specified status.
3153
+ # @return [String]
3154
+ #
3155
+ # @!attribute [rw] submit_time_before
3156
+ # Filters the list of jobs based on the time that the job was
3157
+ # submitted for processing. Returns only jobs submitted before the
3158
+ # specified time. Jobs are returned in ascending order, oldest to
3159
+ # newest.
3160
+ # @return [Time]
3161
+ #
3162
+ # @!attribute [rw] submit_time_after
3163
+ # Filters the list of jobs based on the time that the job was
3164
+ # submitted for processing. Returns only jobs submitted after the
3165
+ # specified time. Jobs are returned in descending order, newest to
3166
+ # oldest.
3167
+ # @return [Time]
3168
+ #
3169
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EventsDetectionJobFilter AWS API Documentation
3170
+ #
3171
+ class EventsDetectionJobFilter < Struct.new(
3172
+ :job_name,
3173
+ :job_status,
3174
+ :submit_time_before,
3175
+ :submit_time_after)
3176
+ SENSITIVE = []
3177
+ include Aws::Structure
3178
+ end
3179
+
3180
+ # Provides information about an events detection job.
3181
+ #
3182
+ # @!attribute [rw] job_id
3183
+ # The identifier assigned to the events detection job.
3184
+ # @return [String]
3185
+ #
3186
+ # @!attribute [rw] job_name
3187
+ # The name you assigned the events detection job.
3188
+ # @return [String]
3189
+ #
3190
+ # @!attribute [rw] job_status
3191
+ # The current status of the events detection job.
3192
+ # @return [String]
3193
+ #
3194
+ # @!attribute [rw] message
3195
+ # A description of the status of the events detection job.
3196
+ # @return [String]
3197
+ #
3198
+ # @!attribute [rw] submit_time
3199
+ # The time that the events detection job was submitted for processing.
3200
+ # @return [Time]
3201
+ #
3202
+ # @!attribute [rw] end_time
3203
+ # The time that the events detection job completed.
3204
+ # @return [Time]
3205
+ #
3206
+ # @!attribute [rw] input_data_config
3207
+ # The input data configuration that you supplied when you created the
3208
+ # events detection job.
3209
+ # @return [Types::InputDataConfig]
3210
+ #
3211
+ # @!attribute [rw] output_data_config
3212
+ # The output data configuration that you supplied when you created the
3213
+ # events detection job.
3214
+ # @return [Types::OutputDataConfig]
3215
+ #
3216
+ # @!attribute [rw] language_code
3217
+ # The language code of the input documents.
3218
+ # @return [String]
3219
+ #
3220
+ # @!attribute [rw] data_access_role_arn
3221
+ # The Amazon Resource Name (ARN) of the AWS Identify and Access
3222
+ # Management (IAM) role that grants Amazon Comprehend read access to
3223
+ # your input data.
3224
+ # @return [String]
3225
+ #
3226
+ # @!attribute [rw] target_event_types
3227
+ # The types of events that are detected by the job.
3228
+ # @return [Array<String>]
3229
+ #
3230
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/EventsDetectionJobProperties AWS API Documentation
3231
+ #
3232
+ class EventsDetectionJobProperties < Struct.new(
3233
+ :job_id,
3234
+ :job_name,
3235
+ :job_status,
3236
+ :message,
3237
+ :submit_time,
3238
+ :end_time,
3239
+ :input_data_config,
3240
+ :output_data_config,
3241
+ :language_code,
3242
+ :data_access_role_arn,
3243
+ :target_event_types)
3244
+ SENSITIVE = []
3245
+ include Aws::Structure
3246
+ end
3247
+
3042
3248
  # The input properties for a topic detection job.
3043
3249
  #
3044
3250
  # @note When making an API call, you may pass InputDataConfig
@@ -3658,6 +3864,61 @@ module Aws::Comprehend
3658
3864
  include Aws::Structure
3659
3865
  end
3660
3866
 
3867
+ # @note When making an API call, you may pass ListEventsDetectionJobsRequest
3868
+ # data as a hash:
3869
+ #
3870
+ # {
3871
+ # filter: {
3872
+ # job_name: "JobName",
3873
+ # job_status: "SUBMITTED", # accepts SUBMITTED, IN_PROGRESS, COMPLETED, FAILED, STOP_REQUESTED, STOPPED
3874
+ # submit_time_before: Time.now,
3875
+ # submit_time_after: Time.now,
3876
+ # },
3877
+ # next_token: "String",
3878
+ # max_results: 1,
3879
+ # }
3880
+ #
3881
+ # @!attribute [rw] filter
3882
+ # Filters the jobs that are returned. You can filter jobs on their
3883
+ # name, status, or the date and time that they were submitted. You can
3884
+ # only set one filter at a time.
3885
+ # @return [Types::EventsDetectionJobFilter]
3886
+ #
3887
+ # @!attribute [rw] next_token
3888
+ # Identifies the next page of results to return.
3889
+ # @return [String]
3890
+ #
3891
+ # @!attribute [rw] max_results
3892
+ # The maximum number of results to return in each page.
3893
+ # @return [Integer]
3894
+ #
3895
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEventsDetectionJobsRequest AWS API Documentation
3896
+ #
3897
+ class ListEventsDetectionJobsRequest < Struct.new(
3898
+ :filter,
3899
+ :next_token,
3900
+ :max_results)
3901
+ SENSITIVE = []
3902
+ include Aws::Structure
3903
+ end
3904
+
3905
+ # @!attribute [rw] events_detection_job_properties_list
3906
+ # A list containing the properties of each job that is returned.
3907
+ # @return [Array<Types::EventsDetectionJobProperties>]
3908
+ #
3909
+ # @!attribute [rw] next_token
3910
+ # Identifies the next page of results to return.
3911
+ # @return [String]
3912
+ #
3913
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEventsDetectionJobsResponse AWS API Documentation
3914
+ #
3915
+ class ListEventsDetectionJobsResponse < Struct.new(
3916
+ :events_detection_job_properties_list,
3917
+ :next_token)
3918
+ SENSITIVE = []
3919
+ include Aws::Structure
3920
+ end
3921
+
3661
3922
  # @note When making an API call, you may pass ListKeyPhrasesDetectionJobsRequest
3662
3923
  # data as a hash:
3663
3924
  #
@@ -4824,6 +5085,91 @@ module Aws::Comprehend
4824
5085
  include Aws::Structure
4825
5086
  end
4826
5087
 
5088
+ # @note When making an API call, you may pass StartEventsDetectionJobRequest
5089
+ # data as a hash:
5090
+ #
5091
+ # {
5092
+ # input_data_config: { # required
5093
+ # s3_uri: "S3Uri", # required
5094
+ # input_format: "ONE_DOC_PER_FILE", # accepts ONE_DOC_PER_FILE, ONE_DOC_PER_LINE
5095
+ # },
5096
+ # output_data_config: { # required
5097
+ # s3_uri: "S3Uri", # required
5098
+ # kms_key_id: "KmsKeyId",
5099
+ # },
5100
+ # data_access_role_arn: "IamRoleArn", # required
5101
+ # job_name: "JobName",
5102
+ # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
5103
+ # client_request_token: "ClientRequestTokenString",
5104
+ # target_event_types: ["EventTypeString"], # required
5105
+ # }
5106
+ #
5107
+ # @!attribute [rw] input_data_config
5108
+ # Specifies the format and location of the input data for the job.
5109
+ # @return [Types::InputDataConfig]
5110
+ #
5111
+ # @!attribute [rw] output_data_config
5112
+ # Specifies where to send the output files.
5113
+ # @return [Types::OutputDataConfig]
5114
+ #
5115
+ # @!attribute [rw] data_access_role_arn
5116
+ # The Amazon Resource Name (ARN) of the AWS Identity and Access
5117
+ # Management (IAM) role that grants Amazon Comprehend read access to
5118
+ # your input data.
5119
+ # @return [String]
5120
+ #
5121
+ # @!attribute [rw] job_name
5122
+ # The identifier of the events detection job.
5123
+ # @return [String]
5124
+ #
5125
+ # @!attribute [rw] language_code
5126
+ # The language code of the input documents.
5127
+ # @return [String]
5128
+ #
5129
+ # @!attribute [rw] client_request_token
5130
+ # An unique identifier for the request. If you don't set the client
5131
+ # request token, Amazon Comprehend generates one.
5132
+ #
5133
+ # **A suitable default value is auto-generated.** You should normally
5134
+ # not need to pass this option.
5135
+ # @return [String]
5136
+ #
5137
+ # @!attribute [rw] target_event_types
5138
+ # The types of events to detect in the input documents.
5139
+ # @return [Array<String>]
5140
+ #
5141
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartEventsDetectionJobRequest AWS API Documentation
5142
+ #
5143
+ class StartEventsDetectionJobRequest < Struct.new(
5144
+ :input_data_config,
5145
+ :output_data_config,
5146
+ :data_access_role_arn,
5147
+ :job_name,
5148
+ :language_code,
5149
+ :client_request_token,
5150
+ :target_event_types)
5151
+ SENSITIVE = []
5152
+ include Aws::Structure
5153
+ end
5154
+
5155
+ # @!attribute [rw] job_id
5156
+ # An unique identifier for the request. If you don't set the client
5157
+ # request token, Amazon Comprehend generates one.
5158
+ # @return [String]
5159
+ #
5160
+ # @!attribute [rw] job_status
5161
+ # The status of the events detection job.
5162
+ # @return [String]
5163
+ #
5164
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartEventsDetectionJobResponse AWS API Documentation
5165
+ #
5166
+ class StartEventsDetectionJobResponse < Struct.new(
5167
+ :job_id,
5168
+ :job_status)
5169
+ SENSITIVE = []
5170
+ include Aws::Structure
5171
+ end
5172
+
4827
5173
  # @note When making an API call, you may pass StartKeyPhrasesDetectionJobRequest
4828
5174
  # data as a hash:
4829
5175
  #
@@ -5379,6 +5725,42 @@ module Aws::Comprehend
5379
5725
  include Aws::Structure
5380
5726
  end
5381
5727
 
5728
+ # @note When making an API call, you may pass StopEventsDetectionJobRequest
5729
+ # data as a hash:
5730
+ #
5731
+ # {
5732
+ # job_id: "JobId", # required
5733
+ # }
5734
+ #
5735
+ # @!attribute [rw] job_id
5736
+ # The identifier of the events detection job to stop.
5737
+ # @return [String]
5738
+ #
5739
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopEventsDetectionJobRequest AWS API Documentation
5740
+ #
5741
+ class StopEventsDetectionJobRequest < Struct.new(
5742
+ :job_id)
5743
+ SENSITIVE = []
5744
+ include Aws::Structure
5745
+ end
5746
+
5747
+ # @!attribute [rw] job_id
5748
+ # The identifier of the events detection job to stop.
5749
+ # @return [String]
5750
+ #
5751
+ # @!attribute [rw] job_status
5752
+ # The status of the events detection job.
5753
+ # @return [String]
5754
+ #
5755
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopEventsDetectionJobResponse AWS API Documentation
5756
+ #
5757
+ class StopEventsDetectionJobResponse < Struct.new(
5758
+ :job_id,
5759
+ :job_status)
5760
+ SENSITIVE = []
5761
+ include Aws::Structure
5762
+ end
5763
+
5382
5764
  # @note When making an API call, you may pass StopKeyPhrasesDetectionJobRequest
5383
5765
  # data as a hash:
5384
5766
  #
@@ -5846,11 +6228,9 @@ module Aws::Comprehend
5846
6228
  end
5847
6229
 
5848
6230
  # Amazon Comprehend can't process the language of the input text. For
5849
- # all custom entity recognition APIs (such as `CreateEntityRecognizer`),
5850
- # only English, Spanish, French, Italian, German, or Portuguese are
5851
- # accepted. For most other APIs, such as those for Custom
5852
- # Classification, Amazon Comprehend accepts text in all supported
5853
- # languages. For a list of supported languages, see supported-languages.
6231
+ # custom entity recognition APIs, only English, Spanish, French,
6232
+ # Italian, German, or Portuguese are accepted. For a list of supported
6233
+ # languages, see supported-languages.
5854
6234
  #
5855
6235
  # @!attribute [rw] message
5856
6236
  # @return [String]
@@ -5929,7 +6309,7 @@ module Aws::Comprehend
5929
6309
  class UpdateEndpointResponse < Aws::EmptyStructure; end
5930
6310
 
5931
6311
  # Configuration parameters for an optional private Virtual Private Cloud
5932
- # (VPC) containing the resources you are using for the job. For For more
6312
+ # (VPC) containing the resources you are using for the job. For more
5933
6313
  # information, see [Amazon VPC][1].
5934
6314
  #
5935
6315
  #