aws-sdk-comprehendmedical 1.5.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,12 +19,12 @@ module Aws::ComprehendMedical
19
19
  # @return [String]
20
20
  #
21
21
  # @!attribute [rw] score
22
- # The level of confidence that Comprehend Medical has that the segment
23
- # of text is correctly recognized as an attribute.
22
+ # The level of confidence that Amazon Comprehend Medical has that the
23
+ # segment of text is correctly recognized as an attribute.
24
24
  # @return [Float]
25
25
  #
26
26
  # @!attribute [rw] relationship_score
27
- # The level of confidence that Comprehend Medical has that this
27
+ # The level of confidence that Amazon Comprehend Medical has that this
28
28
  # attribute is correctly related to this entity.
29
29
  # @return [Float]
30
30
  #
@@ -68,6 +68,204 @@ module Aws::ComprehendMedical
68
68
  include Aws::Structure
69
69
  end
70
70
 
71
+ # Provides information for filtering a list of detection jobs.
72
+ #
73
+ # @note When making an API call, you may pass ComprehendMedicalAsyncJobFilter
74
+ # data as a hash:
75
+ #
76
+ # {
77
+ # job_name: "JobName",
78
+ # job_status: "SUBMITTED", # accepts SUBMITTED, IN_PROGRESS, COMPLETED, PARTIAL_SUCCESS, FAILED, STOP_REQUESTED, STOPPED
79
+ # submit_time_before: Time.now,
80
+ # submit_time_after: Time.now,
81
+ # }
82
+ #
83
+ # @!attribute [rw] job_name
84
+ # Filters on the name of the job.
85
+ # @return [String]
86
+ #
87
+ # @!attribute [rw] job_status
88
+ # Filters the list of jobs based on job status. Returns only jobs with
89
+ # the specified status.
90
+ # @return [String]
91
+ #
92
+ # @!attribute [rw] submit_time_before
93
+ # Filters the list of jobs based on the time that the job was
94
+ # submitted for processing. Returns only jobs submitted before the
95
+ # specified time. Jobs are returned in ascending order, oldest to
96
+ # newest.
97
+ # @return [Time]
98
+ #
99
+ # @!attribute [rw] submit_time_after
100
+ # Filters the list of jobs based on the time that the job was
101
+ # submitted for processing. Returns only jobs submitted after the
102
+ # specified time. Jobs are returned in descending order, newest to
103
+ # oldest.
104
+ # @return [Time]
105
+ #
106
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ComprehendMedicalAsyncJobFilter AWS API Documentation
107
+ #
108
+ class ComprehendMedicalAsyncJobFilter < Struct.new(
109
+ :job_name,
110
+ :job_status,
111
+ :submit_time_before,
112
+ :submit_time_after)
113
+ include Aws::Structure
114
+ end
115
+
116
+ # Provides information about a detection job.
117
+ #
118
+ # @!attribute [rw] job_id
119
+ # The identifier assigned to the detection job.
120
+ # @return [String]
121
+ #
122
+ # @!attribute [rw] job_name
123
+ # The name that you assigned to the detection job.
124
+ # @return [String]
125
+ #
126
+ # @!attribute [rw] job_status
127
+ # The current status of the detection job. If the status is `FAILED`,
128
+ # the `Message` field shows the reason for the failure.
129
+ # @return [String]
130
+ #
131
+ # @!attribute [rw] message
132
+ # A description of the status of a job.
133
+ # @return [String]
134
+ #
135
+ # @!attribute [rw] submit_time
136
+ # The time that the detection job was submitted for processing.
137
+ # @return [Time]
138
+ #
139
+ # @!attribute [rw] end_time
140
+ # The time that the detection job completed.
141
+ # @return [Time]
142
+ #
143
+ # @!attribute [rw] expiration_time
144
+ # The date and time that job metadata is deleted from the server.
145
+ # Output files in your S3 bucket will not be deleted. After the
146
+ # metadata is deleted, the job will no longer appear in the results of
147
+ # the `ListEntitiesDetectionV2Job` or the `ListPHIDetectionJobs`
148
+ # operation.
149
+ # @return [Time]
150
+ #
151
+ # @!attribute [rw] input_data_config
152
+ # The input data configuration that you supplied when you created the
153
+ # detection job.
154
+ # @return [Types::InputDataConfig]
155
+ #
156
+ # @!attribute [rw] output_data_config
157
+ # The output data configuration that you supplied when you created the
158
+ # detection job.
159
+ # @return [Types::OutputDataConfig]
160
+ #
161
+ # @!attribute [rw] language_code
162
+ # The language code of the input documents.
163
+ # @return [String]
164
+ #
165
+ # @!attribute [rw] data_access_role_arn
166
+ # The Amazon Resource Name (ARN) that gives Amazon Comprehend Medical
167
+ # read access to your input data.
168
+ # @return [String]
169
+ #
170
+ # @!attribute [rw] manifest_file_path
171
+ # The path to the file that describes the results of a batch job.
172
+ # @return [String]
173
+ #
174
+ # @!attribute [rw] kms_key
175
+ # The AWS Key Management Service key, if any, used to encrypt the
176
+ # output files.
177
+ # @return [String]
178
+ #
179
+ # @!attribute [rw] model_version
180
+ # The version of the model used to analyze the documents. The version
181
+ # number looks like X.X.X. You can use this information to track the
182
+ # model used for a particular batch of documents.
183
+ # @return [String]
184
+ #
185
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ComprehendMedicalAsyncJobProperties AWS API Documentation
186
+ #
187
+ class ComprehendMedicalAsyncJobProperties < Struct.new(
188
+ :job_id,
189
+ :job_name,
190
+ :job_status,
191
+ :message,
192
+ :submit_time,
193
+ :end_time,
194
+ :expiration_time,
195
+ :input_data_config,
196
+ :output_data_config,
197
+ :language_code,
198
+ :data_access_role_arn,
199
+ :manifest_file_path,
200
+ :kms_key,
201
+ :model_version)
202
+ include Aws::Structure
203
+ end
204
+
205
+ # @note When making an API call, you may pass DescribeEntitiesDetectionV2JobRequest
206
+ # data as a hash:
207
+ #
208
+ # {
209
+ # job_id: "JobId", # required
210
+ # }
211
+ #
212
+ # @!attribute [rw] job_id
213
+ # The identifier that Amazon Comprehend Medical generated for the job.
214
+ # The `StartEntitiesDetectionV2Job` operation returns this identifier
215
+ # in its response.
216
+ # @return [String]
217
+ #
218
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeEntitiesDetectionV2JobRequest AWS API Documentation
219
+ #
220
+ class DescribeEntitiesDetectionV2JobRequest < Struct.new(
221
+ :job_id)
222
+ include Aws::Structure
223
+ end
224
+
225
+ # @!attribute [rw] comprehend_medical_async_job_properties
226
+ # An object that contains the properties associated with a detection
227
+ # job.
228
+ # @return [Types::ComprehendMedicalAsyncJobProperties]
229
+ #
230
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeEntitiesDetectionV2JobResponse AWS API Documentation
231
+ #
232
+ class DescribeEntitiesDetectionV2JobResponse < Struct.new(
233
+ :comprehend_medical_async_job_properties)
234
+ include Aws::Structure
235
+ end
236
+
237
+ # @note When making an API call, you may pass DescribePHIDetectionJobRequest
238
+ # data as a hash:
239
+ #
240
+ # {
241
+ # job_id: "JobId", # required
242
+ # }
243
+ #
244
+ # @!attribute [rw] job_id
245
+ # The identifier that Amazon Comprehend Medical generated for the job.
246
+ # The `StartPHIDetectionJob` operation returns this identifier in its
247
+ # response.
248
+ # @return [String]
249
+ #
250
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribePHIDetectionJobRequest AWS API Documentation
251
+ #
252
+ class DescribePHIDetectionJobRequest < Struct.new(
253
+ :job_id)
254
+ include Aws::Structure
255
+ end
256
+
257
+ # @!attribute [rw] comprehend_medical_async_job_properties
258
+ # An object that contains the properties associated with a detection
259
+ # job.
260
+ # @return [Types::ComprehendMedicalAsyncJobProperties]
261
+ #
262
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribePHIDetectionJobResponse AWS API Documentation
263
+ #
264
+ class DescribePHIDetectionJobResponse < Struct.new(
265
+ :comprehend_medical_async_job_properties)
266
+ include Aws::Structure
267
+ end
268
+
71
269
  # @note When making an API call, you may pass DetectEntitiesRequest
72
270
  # data as a hash:
73
271
  #
@@ -92,9 +290,9 @@ module Aws::ComprehendMedical
92
290
  # The collection of medical entities extracted from the input text and
93
291
  # their associated information. For each entity, the response provides
94
292
  # the entity text, the entity category, where the entity text begins
95
- # and ends, and the level of confidence that Comprehend Medical has in
96
- # the detection and analysis. Attributes and traits of the entity are
97
- # also returned.
293
+ # and ends, and the level of confidence that Amazon Comprehend Medical
294
+ # has in the detection and analysis. Attributes and traits of the
295
+ # entity are also returned.
98
296
  # @return [Array<Types::Entity>]
99
297
  #
100
298
  # @!attribute [rw] unmapped_attributes
@@ -103,17 +301,78 @@ module Aws::ComprehendMedical
103
301
  # @return [Array<Types::UnmappedAttribute>]
104
302
  #
105
303
  # @!attribute [rw] pagination_token
106
- # If the result of the previous request to DetectEntities was
107
- # truncated, include the Paginationtoken to fetch the next page of
304
+ # If the result of the previous request to `DetectEntities` was
305
+ # truncated, include the `PaginationToken` to fetch the next page of
108
306
  # entities.
109
307
  # @return [String]
110
308
  #
309
+ # @!attribute [rw] model_version
310
+ # The version of the model used to analyze the documents. The version
311
+ # number looks like X.X.X. You can use this information to track the
312
+ # model used for a particular batch of documents.
313
+ # @return [String]
314
+ #
111
315
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectEntitiesResponse AWS API Documentation
112
316
  #
113
317
  class DetectEntitiesResponse < Struct.new(
114
318
  :entities,
115
319
  :unmapped_attributes,
116
- :pagination_token)
320
+ :pagination_token,
321
+ :model_version)
322
+ include Aws::Structure
323
+ end
324
+
325
+ # @note When making an API call, you may pass DetectEntitiesV2Request
326
+ # data as a hash:
327
+ #
328
+ # {
329
+ # text: "BoundedLengthString", # required
330
+ # }
331
+ #
332
+ # @!attribute [rw] text
333
+ # A UTF-8 string containing the clinical content being examined for
334
+ # entities. Each string must contain fewer than 20,000 bytes of
335
+ # characters.
336
+ # @return [String]
337
+ #
338
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectEntitiesV2Request AWS API Documentation
339
+ #
340
+ class DetectEntitiesV2Request < Struct.new(
341
+ :text)
342
+ include Aws::Structure
343
+ end
344
+
345
+ # @!attribute [rw] entities
346
+ # The collection of medical entities extracted from the input text and
347
+ # their associated information. For each entity, the response provides
348
+ # the entity text, the entity category, where the entity text begins
349
+ # and ends, and the level of confidence in the detection and analysis.
350
+ # Attributes and traits of the entity are also returned.
351
+ # @return [Array<Types::Entity>]
352
+ #
353
+ # @!attribute [rw] unmapped_attributes
354
+ # Attributes extracted from the input text that couldn't be related
355
+ # to an entity.
356
+ # @return [Array<Types::UnmappedAttribute>]
357
+ #
358
+ # @!attribute [rw] pagination_token
359
+ # If the result to the `DetectEntitiesV2` operation was truncated,
360
+ # include the `PaginationToken` to fetch the next page of entities.
361
+ # @return [String]
362
+ #
363
+ # @!attribute [rw] model_version
364
+ # The version of the model used to analyze the documents. The version
365
+ # number looks like X.X.X. You can use this information to track the
366
+ # model used for a particular batch of documents.
367
+ # @return [String]
368
+ #
369
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectEntitiesV2Response AWS API Documentation
370
+ #
371
+ class DetectEntitiesV2Response < Struct.new(
372
+ :entities,
373
+ :unmapped_attributes,
374
+ :pagination_token,
375
+ :model_version)
117
376
  include Aws::Structure
118
377
  end
119
378
 
@@ -141,20 +400,28 @@ module Aws::ComprehendMedical
141
400
  # The collection of PHI entities extracted from the input text and
142
401
  # their associated information. For each entity, the response provides
143
402
  # the entity text, the entity category, where the entity text begins
144
- # and ends, and the level of confidence that Comprehend Medical has in
145
- # its detection.
403
+ # and ends, and the level of confidence that Amazon Comprehend Medical
404
+ # has in its detection.
146
405
  # @return [Array<Types::Entity>]
147
406
  #
148
407
  # @!attribute [rw] pagination_token
149
- # If the result of the previous request to DetectPHI was truncated,
150
- # include the Paginationtoken to fetch the next page of PHI entities.
408
+ # If the result of the previous request to `DetectPHI` was truncated,
409
+ # include the `PaginationToken` to fetch the next page of PHI
410
+ # entities.
411
+ # @return [String]
412
+ #
413
+ # @!attribute [rw] model_version
414
+ # The version of the model used to analyze the documents. The version
415
+ # number looks like X.X.X. You can use this information to track the
416
+ # model used for a particular batch of documents.
151
417
  # @return [String]
152
418
  #
153
419
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectPHIResponse AWS API Documentation
154
420
  #
155
421
  class DetectPHIResponse < Struct.new(
156
422
  :entities,
157
- :pagination_token)
423
+ :pagination_token,
424
+ :model_version)
158
425
  include Aws::Structure
159
426
  end
160
427
 
@@ -178,8 +445,8 @@ module Aws::ComprehendMedical
178
445
  # @return [Integer]
179
446
  #
180
447
  # @!attribute [rw] score
181
- # The level of confidence that Comprehend Medical has in the accuracy
182
- # of the detection.
448
+ # The level of confidence that Amazon Comprehend Medical has in the
449
+ # accuracy of the detection.
183
450
  # @return [Float]
184
451
  #
185
452
  # @!attribute [rw] text
@@ -217,6 +484,499 @@ module Aws::ComprehendMedical
217
484
  include Aws::Structure
218
485
  end
219
486
 
487
+ # The input properties for an entities detection job
488
+ #
489
+ # @note When making an API call, you may pass InputDataConfig
490
+ # data as a hash:
491
+ #
492
+ # {
493
+ # s3_bucket: "S3Bucket", # required
494
+ # s3_key: "S3Key",
495
+ # }
496
+ #
497
+ # @!attribute [rw] s3_bucket
498
+ # The URI of the S3 bucket that contains the input data. The bucket
499
+ # must be in the same region as the API endpoint that you are calling.
500
+ #
501
+ # Each file in the document collection must be less than 40 KB. You
502
+ # can store a maximum of 30 GB in the bucket.
503
+ # @return [String]
504
+ #
505
+ # @!attribute [rw] s3_key
506
+ # The path to the input data files in the S3 bucket.
507
+ # @return [String]
508
+ #
509
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/InputDataConfig AWS API Documentation
510
+ #
511
+ class InputDataConfig < Struct.new(
512
+ :s3_bucket,
513
+ :s3_key)
514
+ include Aws::Structure
515
+ end
516
+
517
+ # An internal server error occurred. Retry your request.
518
+ #
519
+ # @!attribute [rw] message
520
+ # @return [String]
521
+ #
522
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/InternalServerException AWS API Documentation
523
+ #
524
+ class InternalServerException < Struct.new(
525
+ :message)
526
+ include Aws::Structure
527
+ end
528
+
529
+ # The input text was not in valid UTF-8 character encoding. Check your
530
+ # text then retry your request.
531
+ #
532
+ # @!attribute [rw] message
533
+ # @return [String]
534
+ #
535
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/InvalidEncodingException AWS API Documentation
536
+ #
537
+ class InvalidEncodingException < Struct.new(
538
+ :message)
539
+ include Aws::Structure
540
+ end
541
+
542
+ # The request that you made is invalid. Check your request to determine
543
+ # why it's invalid and then retry the request.
544
+ #
545
+ # @!attribute [rw] message
546
+ # @return [String]
547
+ #
548
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/InvalidRequestException AWS API Documentation
549
+ #
550
+ class InvalidRequestException < Struct.new(
551
+ :message)
552
+ include Aws::Structure
553
+ end
554
+
555
+ # @note When making an API call, you may pass ListEntitiesDetectionV2JobsRequest
556
+ # data as a hash:
557
+ #
558
+ # {
559
+ # filter: {
560
+ # job_name: "JobName",
561
+ # job_status: "SUBMITTED", # accepts SUBMITTED, IN_PROGRESS, COMPLETED, PARTIAL_SUCCESS, FAILED, STOP_REQUESTED, STOPPED
562
+ # submit_time_before: Time.now,
563
+ # submit_time_after: Time.now,
564
+ # },
565
+ # next_token: "String",
566
+ # max_results: 1,
567
+ # }
568
+ #
569
+ # @!attribute [rw] filter
570
+ # Filters the jobs that are returned. You can filter jobs based on
571
+ # their names, status, or the date and time that they were submitted.
572
+ # You can only set one filter at a time.
573
+ # @return [Types::ComprehendMedicalAsyncJobFilter]
574
+ #
575
+ # @!attribute [rw] next_token
576
+ # Identifies the next page of results to return.
577
+ # @return [String]
578
+ #
579
+ # @!attribute [rw] max_results
580
+ # The maximum number of results to return in each page. The default is
581
+ # 100.
582
+ # @return [Integer]
583
+ #
584
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListEntitiesDetectionV2JobsRequest AWS API Documentation
585
+ #
586
+ class ListEntitiesDetectionV2JobsRequest < Struct.new(
587
+ :filter,
588
+ :next_token,
589
+ :max_results)
590
+ include Aws::Structure
591
+ end
592
+
593
+ # @!attribute [rw] comprehend_medical_async_job_properties_list
594
+ # A list containing the properties of each job returned.
595
+ # @return [Array<Types::ComprehendMedicalAsyncJobProperties>]
596
+ #
597
+ # @!attribute [rw] next_token
598
+ # Identifies the next page of results to return.
599
+ # @return [String]
600
+ #
601
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListEntitiesDetectionV2JobsResponse AWS API Documentation
602
+ #
603
+ class ListEntitiesDetectionV2JobsResponse < Struct.new(
604
+ :comprehend_medical_async_job_properties_list,
605
+ :next_token)
606
+ include Aws::Structure
607
+ end
608
+
609
+ # @note When making an API call, you may pass ListPHIDetectionJobsRequest
610
+ # data as a hash:
611
+ #
612
+ # {
613
+ # filter: {
614
+ # job_name: "JobName",
615
+ # job_status: "SUBMITTED", # accepts SUBMITTED, IN_PROGRESS, COMPLETED, PARTIAL_SUCCESS, FAILED, STOP_REQUESTED, STOPPED
616
+ # submit_time_before: Time.now,
617
+ # submit_time_after: Time.now,
618
+ # },
619
+ # next_token: "String",
620
+ # max_results: 1,
621
+ # }
622
+ #
623
+ # @!attribute [rw] filter
624
+ # Filters the jobs that are returned. You can filter jobs based on
625
+ # their names, status, or the date and time that they were submitted.
626
+ # You can only set one filter at a time.
627
+ # @return [Types::ComprehendMedicalAsyncJobFilter]
628
+ #
629
+ # @!attribute [rw] next_token
630
+ # Identifies the next page of results to return.
631
+ # @return [String]
632
+ #
633
+ # @!attribute [rw] max_results
634
+ # The maximum number of results to return in each page. The default is
635
+ # 100.
636
+ # @return [Integer]
637
+ #
638
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListPHIDetectionJobsRequest AWS API Documentation
639
+ #
640
+ class ListPHIDetectionJobsRequest < Struct.new(
641
+ :filter,
642
+ :next_token,
643
+ :max_results)
644
+ include Aws::Structure
645
+ end
646
+
647
+ # @!attribute [rw] comprehend_medical_async_job_properties_list
648
+ # A list containing the properties of each job returned.
649
+ # @return [Array<Types::ComprehendMedicalAsyncJobProperties>]
650
+ #
651
+ # @!attribute [rw] next_token
652
+ # Identifies the next page of results to return.
653
+ # @return [String]
654
+ #
655
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListPHIDetectionJobsResponse AWS API Documentation
656
+ #
657
+ class ListPHIDetectionJobsResponse < Struct.new(
658
+ :comprehend_medical_async_job_properties_list,
659
+ :next_token)
660
+ include Aws::Structure
661
+ end
662
+
663
+ # The output properties for a detection job.
664
+ #
665
+ # @note When making an API call, you may pass OutputDataConfig
666
+ # data as a hash:
667
+ #
668
+ # {
669
+ # s3_bucket: "S3Bucket", # required
670
+ # s3_key: "S3Key",
671
+ # }
672
+ #
673
+ # @!attribute [rw] s3_bucket
674
+ # When you use the `OutputDataConfig` object with asynchronous
675
+ # operations, you specify the Amazon S3 location where you want to
676
+ # write the output data. The URI must be in the same region as the API
677
+ # endpoint that you are calling. The location is used as the prefix
678
+ # for the actual location of the output.
679
+ # @return [String]
680
+ #
681
+ # @!attribute [rw] s3_key
682
+ # The path to the output data files in the S3 bucket. Amazon
683
+ # Comprehend Medical creates an output directory using the job ID so
684
+ # that the output from one job does not overwrite the output of
685
+ # another.
686
+ # @return [String]
687
+ #
688
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/OutputDataConfig AWS API Documentation
689
+ #
690
+ class OutputDataConfig < Struct.new(
691
+ :s3_bucket,
692
+ :s3_key)
693
+ include Aws::Structure
694
+ end
695
+
696
+ # The resource identified by the specified Amazon Resource Name (ARN)
697
+ # was not found. Check the ARN and try your request again.
698
+ #
699
+ # @!attribute [rw] message
700
+ # @return [String]
701
+ #
702
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ResourceNotFoundException AWS API Documentation
703
+ #
704
+ class ResourceNotFoundException < Struct.new(
705
+ :message)
706
+ include Aws::Structure
707
+ end
708
+
709
+ # The Amazon Comprehend Medical service is temporarily unavailable.
710
+ # Please wait and then retry your request.
711
+ #
712
+ # @!attribute [rw] message
713
+ # @return [String]
714
+ #
715
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ServiceUnavailableException AWS API Documentation
716
+ #
717
+ class ServiceUnavailableException < Struct.new(
718
+ :message)
719
+ include Aws::Structure
720
+ end
721
+
722
+ # @note When making an API call, you may pass StartEntitiesDetectionV2JobRequest
723
+ # data as a hash:
724
+ #
725
+ # {
726
+ # input_data_config: { # required
727
+ # s3_bucket: "S3Bucket", # required
728
+ # s3_key: "S3Key",
729
+ # },
730
+ # output_data_config: { # required
731
+ # s3_bucket: "S3Bucket", # required
732
+ # s3_key: "S3Key",
733
+ # },
734
+ # data_access_role_arn: "IamRoleArn", # required
735
+ # job_name: "JobName",
736
+ # client_request_token: "ClientRequestTokenString",
737
+ # kms_key: "KMSKey",
738
+ # language_code: "en", # required, accepts en
739
+ # }
740
+ #
741
+ # @!attribute [rw] input_data_config
742
+ # Specifies the format and location of the input data for the job.
743
+ # @return [Types::InputDataConfig]
744
+ #
745
+ # @!attribute [rw] output_data_config
746
+ # Specifies where to send the output files.
747
+ # @return [Types::OutputDataConfig]
748
+ #
749
+ # @!attribute [rw] data_access_role_arn
750
+ # The Amazon Resource Name (ARN) of the AWS Identity and Access
751
+ # Management (IAM) role that grants Amazon Comprehend Medical read
752
+ # access to your input data. For more information, see [ Role-Based
753
+ # Permissions Required for Asynchronous Operations][1].
754
+ #
755
+ #
756
+ #
757
+ # [1]: https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med
758
+ # @return [String]
759
+ #
760
+ # @!attribute [rw] job_name
761
+ # The identifier of the job.
762
+ # @return [String]
763
+ #
764
+ # @!attribute [rw] client_request_token
765
+ # A unique identifier for the request. If you don't set the client
766
+ # request token, Amazon Comprehend Medical generates one.
767
+ #
768
+ # **A suitable default value is auto-generated.** You should normally
769
+ # not need to pass this option.
770
+ # @return [String]
771
+ #
772
+ # @!attribute [rw] kms_key
773
+ # An AWS Key Management Service key to encrypt your output files. If
774
+ # you do not specify a key, the files are written in plain text.
775
+ # @return [String]
776
+ #
777
+ # @!attribute [rw] language_code
778
+ # The language of the input documents. All documents must be in the
779
+ # same language.
780
+ # @return [String]
781
+ #
782
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartEntitiesDetectionV2JobRequest AWS API Documentation
783
+ #
784
+ class StartEntitiesDetectionV2JobRequest < Struct.new(
785
+ :input_data_config,
786
+ :output_data_config,
787
+ :data_access_role_arn,
788
+ :job_name,
789
+ :client_request_token,
790
+ :kms_key,
791
+ :language_code)
792
+ include Aws::Structure
793
+ end
794
+
795
+ # @!attribute [rw] job_id
796
+ # The identifier generated for the job. To get the status of a job,
797
+ # use this identifier with the `DescribeEntitiesDetectionV2Job`
798
+ # operation.
799
+ # @return [String]
800
+ #
801
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartEntitiesDetectionV2JobResponse AWS API Documentation
802
+ #
803
+ class StartEntitiesDetectionV2JobResponse < Struct.new(
804
+ :job_id)
805
+ include Aws::Structure
806
+ end
807
+
808
+ # @note When making an API call, you may pass StartPHIDetectionJobRequest
809
+ # data as a hash:
810
+ #
811
+ # {
812
+ # input_data_config: { # required
813
+ # s3_bucket: "S3Bucket", # required
814
+ # s3_key: "S3Key",
815
+ # },
816
+ # output_data_config: { # required
817
+ # s3_bucket: "S3Bucket", # required
818
+ # s3_key: "S3Key",
819
+ # },
820
+ # data_access_role_arn: "IamRoleArn", # required
821
+ # job_name: "JobName",
822
+ # client_request_token: "ClientRequestTokenString",
823
+ # kms_key: "KMSKey",
824
+ # language_code: "en", # required, accepts en
825
+ # }
826
+ #
827
+ # @!attribute [rw] input_data_config
828
+ # Specifies the format and location of the input data for the job.
829
+ # @return [Types::InputDataConfig]
830
+ #
831
+ # @!attribute [rw] output_data_config
832
+ # Specifies where to send the output files.
833
+ # @return [Types::OutputDataConfig]
834
+ #
835
+ # @!attribute [rw] data_access_role_arn
836
+ # The Amazon Resource Name (ARN) of the AWS Identity and Access
837
+ # Management (IAM) role that grants Amazon Comprehend Medical read
838
+ # access to your input data. For more information, see [ Role-Based
839
+ # Permissions Required for Asynchronous Operations][1].
840
+ #
841
+ #
842
+ #
843
+ # [1]: https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med
844
+ # @return [String]
845
+ #
846
+ # @!attribute [rw] job_name
847
+ # The identifier of the job.
848
+ # @return [String]
849
+ #
850
+ # @!attribute [rw] client_request_token
851
+ # A unique identifier for the request. If you don't set the client
852
+ # request token, Amazon Comprehend Medical generates one.
853
+ #
854
+ # **A suitable default value is auto-generated.** You should normally
855
+ # not need to pass this option.
856
+ # @return [String]
857
+ #
858
+ # @!attribute [rw] kms_key
859
+ # An AWS Key Management Service key to encrypt your output files. If
860
+ # you do not specify a key, the files are written in plain text.
861
+ # @return [String]
862
+ #
863
+ # @!attribute [rw] language_code
864
+ # The language of the input documents. All documents must be in the
865
+ # same language.
866
+ # @return [String]
867
+ #
868
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartPHIDetectionJobRequest AWS API Documentation
869
+ #
870
+ class StartPHIDetectionJobRequest < Struct.new(
871
+ :input_data_config,
872
+ :output_data_config,
873
+ :data_access_role_arn,
874
+ :job_name,
875
+ :client_request_token,
876
+ :kms_key,
877
+ :language_code)
878
+ include Aws::Structure
879
+ end
880
+
881
+ # @!attribute [rw] job_id
882
+ # The identifier generated for the job. To get the status of a job,
883
+ # use this identifier with the `DescribePHIDetectionJob` operation.
884
+ # @return [String]
885
+ #
886
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartPHIDetectionJobResponse AWS API Documentation
887
+ #
888
+ class StartPHIDetectionJobResponse < Struct.new(
889
+ :job_id)
890
+ include Aws::Structure
891
+ end
892
+
893
+ # @note When making an API call, you may pass StopEntitiesDetectionV2JobRequest
894
+ # data as a hash:
895
+ #
896
+ # {
897
+ # job_id: "JobId", # required
898
+ # }
899
+ #
900
+ # @!attribute [rw] job_id
901
+ # The identifier of the medical entities job to stop.
902
+ # @return [String]
903
+ #
904
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopEntitiesDetectionV2JobRequest AWS API Documentation
905
+ #
906
+ class StopEntitiesDetectionV2JobRequest < Struct.new(
907
+ :job_id)
908
+ include Aws::Structure
909
+ end
910
+
911
+ # @!attribute [rw] job_id
912
+ # The identifier of the medical entities detection job that was
913
+ # stopped.
914
+ # @return [String]
915
+ #
916
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopEntitiesDetectionV2JobResponse AWS API Documentation
917
+ #
918
+ class StopEntitiesDetectionV2JobResponse < Struct.new(
919
+ :job_id)
920
+ include Aws::Structure
921
+ end
922
+
923
+ # @note When making an API call, you may pass StopPHIDetectionJobRequest
924
+ # data as a hash:
925
+ #
926
+ # {
927
+ # job_id: "JobId", # required
928
+ # }
929
+ #
930
+ # @!attribute [rw] job_id
931
+ # The identifier of the PHI detection job to stop.
932
+ # @return [String]
933
+ #
934
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopPHIDetectionJobRequest AWS API Documentation
935
+ #
936
+ class StopPHIDetectionJobRequest < Struct.new(
937
+ :job_id)
938
+ include Aws::Structure
939
+ end
940
+
941
+ # @!attribute [rw] job_id
942
+ # The identifier of the PHI detection job that was stopped.
943
+ # @return [String]
944
+ #
945
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopPHIDetectionJobResponse AWS API Documentation
946
+ #
947
+ class StopPHIDetectionJobResponse < Struct.new(
948
+ :job_id)
949
+ include Aws::Structure
950
+ end
951
+
952
+ # The size of the text you submitted exceeds the size limit. Reduce the
953
+ # size of the text or use a smaller document and then retry your
954
+ # request.
955
+ #
956
+ # @!attribute [rw] message
957
+ # @return [String]
958
+ #
959
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/TextSizeLimitExceededException AWS API Documentation
960
+ #
961
+ class TextSizeLimitExceededException < Struct.new(
962
+ :message)
963
+ include Aws::Structure
964
+ end
965
+
966
+ # You have made too many requests within a short period of time. Wait
967
+ # for a short time and then try your request again. Contact customer
968
+ # support for more information about a service limit increase.
969
+ #
970
+ # @!attribute [rw] message
971
+ # @return [String]
972
+ #
973
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/TooManyRequestsException AWS API Documentation
974
+ #
975
+ class TooManyRequestsException < Struct.new(
976
+ :message)
977
+ include Aws::Structure
978
+ end
979
+
220
980
  # Provides contextual information about the extracted entity.
221
981
  #
222
982
  # @!attribute [rw] name
@@ -224,8 +984,8 @@ module Aws::ComprehendMedical
224
984
  # @return [String]
225
985
  #
226
986
  # @!attribute [rw] score
227
- # The level of confidence that Comprehend Medical has in the accuracy
228
- # of this trait.
987
+ # The level of confidence that Amazon Comprehend Medical has in the
988
+ # accuracy of this trait.
229
989
  # @return [Float]
230
990
  #
231
991
  # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/Trait AWS API Documentation
@@ -243,7 +1003,7 @@ module Aws::ComprehendMedical
243
1003
  # The type of the attribute, could be one of the following values:
244
1004
  # "MEDICATION", "MEDICAL\_CONDITION", "ANATOMY",
245
1005
  # "TEST\_AND\_TREATMENT\_PROCEDURE" or
246
- # "PERSONAL\_HEALTH\_INFORMATION".
1006
+ # "PROTECTED\_HEALTH\_INFORMATION".
247
1007
  # @return [String]
248
1008
  #
249
1009
  # @!attribute [rw] attribute
@@ -259,5 +1019,18 @@ module Aws::ComprehendMedical
259
1019
  include Aws::Structure
260
1020
  end
261
1021
 
1022
+ # The filter that you specified for the operation is invalid. Check the
1023
+ # filter values that you entered and try your request again.
1024
+ #
1025
+ # @!attribute [rw] message
1026
+ # @return [String]
1027
+ #
1028
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ValidationException AWS API Documentation
1029
+ #
1030
+ class ValidationException < Struct.new(
1031
+ :message)
1032
+ include Aws::Structure
1033
+ end
1034
+
262
1035
  end
263
1036
  end