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.
@@ -11,12 +11,23 @@ module Aws::ComprehendMedical
11
11
 
12
12
  include Seahorse::Model
13
13
 
14
+ AnyLengthString = Shapes::StringShape.new(name: 'AnyLengthString')
14
15
  Attribute = Shapes::StructureShape.new(name: 'Attribute')
15
16
  AttributeList = Shapes::ListShape.new(name: 'AttributeList')
16
17
  AttributeName = Shapes::StringShape.new(name: 'AttributeName')
17
18
  BoundedLengthString = Shapes::StringShape.new(name: 'BoundedLengthString')
19
+ ClientRequestTokenString = Shapes::StringShape.new(name: 'ClientRequestTokenString')
20
+ ComprehendMedicalAsyncJobFilter = Shapes::StructureShape.new(name: 'ComprehendMedicalAsyncJobFilter')
21
+ ComprehendMedicalAsyncJobProperties = Shapes::StructureShape.new(name: 'ComprehendMedicalAsyncJobProperties')
22
+ ComprehendMedicalAsyncJobPropertiesList = Shapes::ListShape.new(name: 'ComprehendMedicalAsyncJobPropertiesList')
23
+ DescribeEntitiesDetectionV2JobRequest = Shapes::StructureShape.new(name: 'DescribeEntitiesDetectionV2JobRequest')
24
+ DescribeEntitiesDetectionV2JobResponse = Shapes::StructureShape.new(name: 'DescribeEntitiesDetectionV2JobResponse')
25
+ DescribePHIDetectionJobRequest = Shapes::StructureShape.new(name: 'DescribePHIDetectionJobRequest')
26
+ DescribePHIDetectionJobResponse = Shapes::StructureShape.new(name: 'DescribePHIDetectionJobResponse')
18
27
  DetectEntitiesRequest = Shapes::StructureShape.new(name: 'DetectEntitiesRequest')
19
28
  DetectEntitiesResponse = Shapes::StructureShape.new(name: 'DetectEntitiesResponse')
29
+ DetectEntitiesV2Request = Shapes::StructureShape.new(name: 'DetectEntitiesV2Request')
30
+ DetectEntitiesV2Response = Shapes::StructureShape.new(name: 'DetectEntitiesV2Response')
20
31
  DetectPHIRequest = Shapes::StructureShape.new(name: 'DetectPHIRequest')
21
32
  DetectPHIResponse = Shapes::StructureShape.new(name: 'DetectPHIResponse')
22
33
  Entity = Shapes::StructureShape.new(name: 'Entity')
@@ -24,18 +35,46 @@ module Aws::ComprehendMedical
24
35
  EntitySubType = Shapes::StringShape.new(name: 'EntitySubType')
25
36
  EntityType = Shapes::StringShape.new(name: 'EntityType')
26
37
  Float = Shapes::FloatShape.new(name: 'Float')
38
+ IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
39
+ InputDataConfig = Shapes::StructureShape.new(name: 'InputDataConfig')
27
40
  Integer = Shapes::IntegerShape.new(name: 'Integer')
28
41
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
29
42
  InvalidEncodingException = Shapes::StructureShape.new(name: 'InvalidEncodingException')
30
43
  InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
44
+ JobId = Shapes::StringShape.new(name: 'JobId')
45
+ JobName = Shapes::StringShape.new(name: 'JobName')
46
+ JobStatus = Shapes::StringShape.new(name: 'JobStatus')
47
+ KMSKey = Shapes::StringShape.new(name: 'KMSKey')
48
+ LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
49
+ ListEntitiesDetectionV2JobsRequest = Shapes::StructureShape.new(name: 'ListEntitiesDetectionV2JobsRequest')
50
+ ListEntitiesDetectionV2JobsResponse = Shapes::StructureShape.new(name: 'ListEntitiesDetectionV2JobsResponse')
51
+ ListPHIDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListPHIDetectionJobsRequest')
52
+ ListPHIDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListPHIDetectionJobsResponse')
53
+ ManifestFilePath = Shapes::StringShape.new(name: 'ManifestFilePath')
54
+ MaxResultsInteger = Shapes::IntegerShape.new(name: 'MaxResultsInteger')
55
+ ModelVersion = Shapes::StringShape.new(name: 'ModelVersion')
56
+ OutputDataConfig = Shapes::StructureShape.new(name: 'OutputDataConfig')
57
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
58
+ S3Bucket = Shapes::StringShape.new(name: 'S3Bucket')
59
+ S3Key = Shapes::StringShape.new(name: 'S3Key')
31
60
  ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
61
+ StartEntitiesDetectionV2JobRequest = Shapes::StructureShape.new(name: 'StartEntitiesDetectionV2JobRequest')
62
+ StartEntitiesDetectionV2JobResponse = Shapes::StructureShape.new(name: 'StartEntitiesDetectionV2JobResponse')
63
+ StartPHIDetectionJobRequest = Shapes::StructureShape.new(name: 'StartPHIDetectionJobRequest')
64
+ StartPHIDetectionJobResponse = Shapes::StructureShape.new(name: 'StartPHIDetectionJobResponse')
65
+ StopEntitiesDetectionV2JobRequest = Shapes::StructureShape.new(name: 'StopEntitiesDetectionV2JobRequest')
66
+ StopEntitiesDetectionV2JobResponse = Shapes::StructureShape.new(name: 'StopEntitiesDetectionV2JobResponse')
67
+ StopPHIDetectionJobRequest = Shapes::StructureShape.new(name: 'StopPHIDetectionJobRequest')
68
+ StopPHIDetectionJobResponse = Shapes::StructureShape.new(name: 'StopPHIDetectionJobResponse')
32
69
  String = Shapes::StringShape.new(name: 'String')
33
70
  TextSizeLimitExceededException = Shapes::StructureShape.new(name: 'TextSizeLimitExceededException')
71
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
34
72
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
35
73
  Trait = Shapes::StructureShape.new(name: 'Trait')
36
74
  TraitList = Shapes::ListShape.new(name: 'TraitList')
37
75
  UnmappedAttribute = Shapes::StructureShape.new(name: 'UnmappedAttribute')
38
76
  UnmappedAttributeList = Shapes::ListShape.new(name: 'UnmappedAttributeList')
77
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
39
78
 
40
79
  Attribute.add_member(:type, Shapes::ShapeRef.new(shape: EntitySubType, location_name: "Type"))
41
80
  Attribute.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
@@ -49,19 +88,66 @@ module Aws::ComprehendMedical
49
88
 
50
89
  AttributeList.member = Shapes::ShapeRef.new(shape: Attribute)
51
90
 
91
+ ComprehendMedicalAsyncJobFilter.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
92
+ ComprehendMedicalAsyncJobFilter.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
93
+ ComprehendMedicalAsyncJobFilter.add_member(:submit_time_before, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeBefore"))
94
+ ComprehendMedicalAsyncJobFilter.add_member(:submit_time_after, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeAfter"))
95
+ ComprehendMedicalAsyncJobFilter.struct_class = Types::ComprehendMedicalAsyncJobFilter
96
+
97
+ ComprehendMedicalAsyncJobProperties.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
98
+ ComprehendMedicalAsyncJobProperties.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
99
+ ComprehendMedicalAsyncJobProperties.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
100
+ ComprehendMedicalAsyncJobProperties.add_member(:message, Shapes::ShapeRef.new(shape: AnyLengthString, location_name: "Message"))
101
+ ComprehendMedicalAsyncJobProperties.add_member(:submit_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTime"))
102
+ ComprehendMedicalAsyncJobProperties.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndTime"))
103
+ ComprehendMedicalAsyncJobProperties.add_member(:expiration_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ExpirationTime"))
104
+ ComprehendMedicalAsyncJobProperties.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, location_name: "InputDataConfig"))
105
+ ComprehendMedicalAsyncJobProperties.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, location_name: "OutputDataConfig"))
106
+ ComprehendMedicalAsyncJobProperties.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
107
+ ComprehendMedicalAsyncJobProperties.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "DataAccessRoleArn"))
108
+ ComprehendMedicalAsyncJobProperties.add_member(:manifest_file_path, Shapes::ShapeRef.new(shape: ManifestFilePath, location_name: "ManifestFilePath"))
109
+ ComprehendMedicalAsyncJobProperties.add_member(:kms_key, Shapes::ShapeRef.new(shape: KMSKey, location_name: "KMSKey"))
110
+ ComprehendMedicalAsyncJobProperties.add_member(:model_version, Shapes::ShapeRef.new(shape: ModelVersion, location_name: "ModelVersion"))
111
+ ComprehendMedicalAsyncJobProperties.struct_class = Types::ComprehendMedicalAsyncJobProperties
112
+
113
+ ComprehendMedicalAsyncJobPropertiesList.member = Shapes::ShapeRef.new(shape: ComprehendMedicalAsyncJobProperties)
114
+
115
+ DescribeEntitiesDetectionV2JobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
116
+ DescribeEntitiesDetectionV2JobRequest.struct_class = Types::DescribeEntitiesDetectionV2JobRequest
117
+
118
+ DescribeEntitiesDetectionV2JobResponse.add_member(:comprehend_medical_async_job_properties, Shapes::ShapeRef.new(shape: ComprehendMedicalAsyncJobProperties, location_name: "ComprehendMedicalAsyncJobProperties"))
119
+ DescribeEntitiesDetectionV2JobResponse.struct_class = Types::DescribeEntitiesDetectionV2JobResponse
120
+
121
+ DescribePHIDetectionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
122
+ DescribePHIDetectionJobRequest.struct_class = Types::DescribePHIDetectionJobRequest
123
+
124
+ DescribePHIDetectionJobResponse.add_member(:comprehend_medical_async_job_properties, Shapes::ShapeRef.new(shape: ComprehendMedicalAsyncJobProperties, location_name: "ComprehendMedicalAsyncJobProperties"))
125
+ DescribePHIDetectionJobResponse.struct_class = Types::DescribePHIDetectionJobResponse
126
+
52
127
  DetectEntitiesRequest.add_member(:text, Shapes::ShapeRef.new(shape: BoundedLengthString, required: true, location_name: "Text"))
53
128
  DetectEntitiesRequest.struct_class = Types::DetectEntitiesRequest
54
129
 
55
130
  DetectEntitiesResponse.add_member(:entities, Shapes::ShapeRef.new(shape: EntityList, required: true, location_name: "Entities"))
56
131
  DetectEntitiesResponse.add_member(:unmapped_attributes, Shapes::ShapeRef.new(shape: UnmappedAttributeList, location_name: "UnmappedAttributes"))
57
132
  DetectEntitiesResponse.add_member(:pagination_token, Shapes::ShapeRef.new(shape: String, location_name: "PaginationToken"))
133
+ DetectEntitiesResponse.add_member(:model_version, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ModelVersion"))
58
134
  DetectEntitiesResponse.struct_class = Types::DetectEntitiesResponse
59
135
 
136
+ DetectEntitiesV2Request.add_member(:text, Shapes::ShapeRef.new(shape: BoundedLengthString, required: true, location_name: "Text"))
137
+ DetectEntitiesV2Request.struct_class = Types::DetectEntitiesV2Request
138
+
139
+ DetectEntitiesV2Response.add_member(:entities, Shapes::ShapeRef.new(shape: EntityList, required: true, location_name: "Entities"))
140
+ DetectEntitiesV2Response.add_member(:unmapped_attributes, Shapes::ShapeRef.new(shape: UnmappedAttributeList, location_name: "UnmappedAttributes"))
141
+ DetectEntitiesV2Response.add_member(:pagination_token, Shapes::ShapeRef.new(shape: String, location_name: "PaginationToken"))
142
+ DetectEntitiesV2Response.add_member(:model_version, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ModelVersion"))
143
+ DetectEntitiesV2Response.struct_class = Types::DetectEntitiesV2Response
144
+
60
145
  DetectPHIRequest.add_member(:text, Shapes::ShapeRef.new(shape: BoundedLengthString, required: true, location_name: "Text"))
61
146
  DetectPHIRequest.struct_class = Types::DetectPHIRequest
62
147
 
63
148
  DetectPHIResponse.add_member(:entities, Shapes::ShapeRef.new(shape: EntityList, required: true, location_name: "Entities"))
64
149
  DetectPHIResponse.add_member(:pagination_token, Shapes::ShapeRef.new(shape: String, location_name: "PaginationToken"))
150
+ DetectPHIResponse.add_member(:model_version, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ModelVersion"))
65
151
  DetectPHIResponse.struct_class = Types::DetectPHIResponse
66
152
 
67
153
  Entity.add_member(:id, Shapes::ShapeRef.new(shape: Integer, location_name: "Id"))
@@ -77,6 +163,89 @@ module Aws::ComprehendMedical
77
163
 
78
164
  EntityList.member = Shapes::ShapeRef.new(shape: Entity)
79
165
 
166
+ InputDataConfig.add_member(:s3_bucket, Shapes::ShapeRef.new(shape: S3Bucket, required: true, location_name: "S3Bucket"))
167
+ InputDataConfig.add_member(:s3_key, Shapes::ShapeRef.new(shape: S3Key, location_name: "S3Key"))
168
+ InputDataConfig.struct_class = Types::InputDataConfig
169
+
170
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
171
+ InternalServerException.struct_class = Types::InternalServerException
172
+
173
+ InvalidEncodingException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
174
+ InvalidEncodingException.struct_class = Types::InvalidEncodingException
175
+
176
+ InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
177
+ InvalidRequestException.struct_class = Types::InvalidRequestException
178
+
179
+ ListEntitiesDetectionV2JobsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: ComprehendMedicalAsyncJobFilter, location_name: "Filter"))
180
+ ListEntitiesDetectionV2JobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
181
+ ListEntitiesDetectionV2JobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
182
+ ListEntitiesDetectionV2JobsRequest.struct_class = Types::ListEntitiesDetectionV2JobsRequest
183
+
184
+ ListEntitiesDetectionV2JobsResponse.add_member(:comprehend_medical_async_job_properties_list, Shapes::ShapeRef.new(shape: ComprehendMedicalAsyncJobPropertiesList, location_name: "ComprehendMedicalAsyncJobPropertiesList"))
185
+ ListEntitiesDetectionV2JobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
186
+ ListEntitiesDetectionV2JobsResponse.struct_class = Types::ListEntitiesDetectionV2JobsResponse
187
+
188
+ ListPHIDetectionJobsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: ComprehendMedicalAsyncJobFilter, location_name: "Filter"))
189
+ ListPHIDetectionJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
190
+ ListPHIDetectionJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
191
+ ListPHIDetectionJobsRequest.struct_class = Types::ListPHIDetectionJobsRequest
192
+
193
+ ListPHIDetectionJobsResponse.add_member(:comprehend_medical_async_job_properties_list, Shapes::ShapeRef.new(shape: ComprehendMedicalAsyncJobPropertiesList, location_name: "ComprehendMedicalAsyncJobPropertiesList"))
194
+ ListPHIDetectionJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
195
+ ListPHIDetectionJobsResponse.struct_class = Types::ListPHIDetectionJobsResponse
196
+
197
+ OutputDataConfig.add_member(:s3_bucket, Shapes::ShapeRef.new(shape: S3Bucket, required: true, location_name: "S3Bucket"))
198
+ OutputDataConfig.add_member(:s3_key, Shapes::ShapeRef.new(shape: S3Key, location_name: "S3Key"))
199
+ OutputDataConfig.struct_class = Types::OutputDataConfig
200
+
201
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
202
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
203
+
204
+ ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
205
+ ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
206
+
207
+ StartEntitiesDetectionV2JobRequest.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, required: true, location_name: "InputDataConfig"))
208
+ StartEntitiesDetectionV2JobRequest.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, required: true, location_name: "OutputDataConfig"))
209
+ StartEntitiesDetectionV2JobRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "DataAccessRoleArn"))
210
+ StartEntitiesDetectionV2JobRequest.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
211
+ StartEntitiesDetectionV2JobRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenString, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
212
+ StartEntitiesDetectionV2JobRequest.add_member(:kms_key, Shapes::ShapeRef.new(shape: KMSKey, location_name: "KMSKey"))
213
+ StartEntitiesDetectionV2JobRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
214
+ StartEntitiesDetectionV2JobRequest.struct_class = Types::StartEntitiesDetectionV2JobRequest
215
+
216
+ StartEntitiesDetectionV2JobResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
217
+ StartEntitiesDetectionV2JobResponse.struct_class = Types::StartEntitiesDetectionV2JobResponse
218
+
219
+ StartPHIDetectionJobRequest.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, required: true, location_name: "InputDataConfig"))
220
+ StartPHIDetectionJobRequest.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, required: true, location_name: "OutputDataConfig"))
221
+ StartPHIDetectionJobRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "DataAccessRoleArn"))
222
+ StartPHIDetectionJobRequest.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
223
+ StartPHIDetectionJobRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenString, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
224
+ StartPHIDetectionJobRequest.add_member(:kms_key, Shapes::ShapeRef.new(shape: KMSKey, location_name: "KMSKey"))
225
+ StartPHIDetectionJobRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
226
+ StartPHIDetectionJobRequest.struct_class = Types::StartPHIDetectionJobRequest
227
+
228
+ StartPHIDetectionJobResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
229
+ StartPHIDetectionJobResponse.struct_class = Types::StartPHIDetectionJobResponse
230
+
231
+ StopEntitiesDetectionV2JobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
232
+ StopEntitiesDetectionV2JobRequest.struct_class = Types::StopEntitiesDetectionV2JobRequest
233
+
234
+ StopEntitiesDetectionV2JobResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
235
+ StopEntitiesDetectionV2JobResponse.struct_class = Types::StopEntitiesDetectionV2JobResponse
236
+
237
+ StopPHIDetectionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
238
+ StopPHIDetectionJobRequest.struct_class = Types::StopPHIDetectionJobRequest
239
+
240
+ StopPHIDetectionJobResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
241
+ StopPHIDetectionJobResponse.struct_class = Types::StopPHIDetectionJobResponse
242
+
243
+ TextSizeLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
244
+ TextSizeLimitExceededException.struct_class = Types::TextSizeLimitExceededException
245
+
246
+ TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
247
+ TooManyRequestsException.struct_class = Types::TooManyRequestsException
248
+
80
249
  Trait.add_member(:name, Shapes::ShapeRef.new(shape: AttributeName, location_name: "Name"))
81
250
  Trait.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
82
251
  Trait.struct_class = Types::Trait
@@ -89,6 +258,9 @@ module Aws::ComprehendMedical
89
258
 
90
259
  UnmappedAttributeList.member = Shapes::ShapeRef.new(shape: UnmappedAttribute)
91
260
 
261
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
262
+ ValidationException.struct_class = Types::ValidationException
263
+
92
264
 
93
265
  # @api private
94
266
  API = Seahorse::Model::Api.new.tap do |api|
@@ -109,10 +281,35 @@ module Aws::ComprehendMedical
109
281
  "uid" => "comprehendmedical-2018-10-30",
110
282
  }
111
283
 
284
+ api.add_operation(:describe_entities_detection_v2_job, Seahorse::Model::Operation.new.tap do |o|
285
+ o.name = "DescribeEntitiesDetectionV2Job"
286
+ o.http_method = "POST"
287
+ o.http_request_uri = "/"
288
+ o.input = Shapes::ShapeRef.new(shape: DescribeEntitiesDetectionV2JobRequest)
289
+ o.output = Shapes::ShapeRef.new(shape: DescribeEntitiesDetectionV2JobResponse)
290
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
291
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
292
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
293
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
294
+ end)
295
+
296
+ api.add_operation(:describe_phi_detection_job, Seahorse::Model::Operation.new.tap do |o|
297
+ o.name = "DescribePHIDetectionJob"
298
+ o.http_method = "POST"
299
+ o.http_request_uri = "/"
300
+ o.input = Shapes::ShapeRef.new(shape: DescribePHIDetectionJobRequest)
301
+ o.output = Shapes::ShapeRef.new(shape: DescribePHIDetectionJobResponse)
302
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
303
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
304
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
305
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
306
+ end)
307
+
112
308
  api.add_operation(:detect_entities, Seahorse::Model::Operation.new.tap do |o|
113
309
  o.name = "DetectEntities"
114
310
  o.http_method = "POST"
115
311
  o.http_request_uri = "/"
312
+ o.deprecated = true
116
313
  o.input = Shapes::ShapeRef.new(shape: DetectEntitiesRequest)
117
314
  o.output = Shapes::ShapeRef.new(shape: DetectEntitiesResponse)
118
315
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
@@ -123,6 +320,20 @@ module Aws::ComprehendMedical
123
320
  o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
124
321
  end)
125
322
 
323
+ api.add_operation(:detect_entities_v2, Seahorse::Model::Operation.new.tap do |o|
324
+ o.name = "DetectEntitiesV2"
325
+ o.http_method = "POST"
326
+ o.http_request_uri = "/"
327
+ o.input = Shapes::ShapeRef.new(shape: DetectEntitiesV2Request)
328
+ o.output = Shapes::ShapeRef.new(shape: DetectEntitiesV2Response)
329
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
330
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
331
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
332
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
333
+ o.errors << Shapes::ShapeRef.new(shape: InvalidEncodingException)
334
+ o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
335
+ end)
336
+
126
337
  api.add_operation(:detect_phi, Seahorse::Model::Operation.new.tap do |o|
127
338
  o.name = "DetectPHI"
128
339
  o.http_method = "POST"
@@ -136,6 +347,76 @@ module Aws::ComprehendMedical
136
347
  o.errors << Shapes::ShapeRef.new(shape: InvalidEncodingException)
137
348
  o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
138
349
  end)
350
+
351
+ api.add_operation(:list_entities_detection_v2_jobs, Seahorse::Model::Operation.new.tap do |o|
352
+ o.name = "ListEntitiesDetectionV2Jobs"
353
+ o.http_method = "POST"
354
+ o.http_request_uri = "/"
355
+ o.input = Shapes::ShapeRef.new(shape: ListEntitiesDetectionV2JobsRequest)
356
+ o.output = Shapes::ShapeRef.new(shape: ListEntitiesDetectionV2JobsResponse)
357
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
358
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
359
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
360
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
361
+ end)
362
+
363
+ api.add_operation(:list_phi_detection_jobs, Seahorse::Model::Operation.new.tap do |o|
364
+ o.name = "ListPHIDetectionJobs"
365
+ o.http_method = "POST"
366
+ o.http_request_uri = "/"
367
+ o.input = Shapes::ShapeRef.new(shape: ListPHIDetectionJobsRequest)
368
+ o.output = Shapes::ShapeRef.new(shape: ListPHIDetectionJobsResponse)
369
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
370
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
371
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
372
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
373
+ end)
374
+
375
+ api.add_operation(:start_entities_detection_v2_job, Seahorse::Model::Operation.new.tap do |o|
376
+ o.name = "StartEntitiesDetectionV2Job"
377
+ o.http_method = "POST"
378
+ o.http_request_uri = "/"
379
+ o.input = Shapes::ShapeRef.new(shape: StartEntitiesDetectionV2JobRequest)
380
+ o.output = Shapes::ShapeRef.new(shape: StartEntitiesDetectionV2JobResponse)
381
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
382
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
383
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
384
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
385
+ end)
386
+
387
+ api.add_operation(:start_phi_detection_job, Seahorse::Model::Operation.new.tap do |o|
388
+ o.name = "StartPHIDetectionJob"
389
+ o.http_method = "POST"
390
+ o.http_request_uri = "/"
391
+ o.input = Shapes::ShapeRef.new(shape: StartPHIDetectionJobRequest)
392
+ o.output = Shapes::ShapeRef.new(shape: StartPHIDetectionJobResponse)
393
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
394
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
395
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
396
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
397
+ end)
398
+
399
+ api.add_operation(:stop_entities_detection_v2_job, Seahorse::Model::Operation.new.tap do |o|
400
+ o.name = "StopEntitiesDetectionV2Job"
401
+ o.http_method = "POST"
402
+ o.http_request_uri = "/"
403
+ o.input = Shapes::ShapeRef.new(shape: StopEntitiesDetectionV2JobRequest)
404
+ o.output = Shapes::ShapeRef.new(shape: StopEntitiesDetectionV2JobResponse)
405
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
406
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
407
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
408
+ end)
409
+
410
+ api.add_operation(:stop_phi_detection_job, Seahorse::Model::Operation.new.tap do |o|
411
+ o.name = "StopPHIDetectionJob"
412
+ o.http_method = "POST"
413
+ o.http_request_uri = "/"
414
+ o.input = Shapes::ShapeRef.new(shape: StopPHIDetectionJobRequest)
415
+ o.output = Shapes::ShapeRef.new(shape: StopPHIDetectionJobResponse)
416
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
417
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
418
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
419
+ end)
139
420
  end
140
421
 
141
422
  end
@@ -10,5 +10,133 @@ module Aws::ComprehendMedical
10
10
 
11
11
  extend Aws::Errors::DynamicErrors
12
12
 
13
+ class InternalServerException < ServiceError
14
+
15
+ # @param [Seahorse::Client::RequestContext] context
16
+ # @param [String] message
17
+ # @param [Aws::ComprehendMedical::Types::InternalServerException] data
18
+ def initialize(context, message, data = Aws::EmptyStructure.new)
19
+ super(context, message, data)
20
+ end
21
+
22
+ # @return [String]
23
+ def message
24
+ @message || @data[:message]
25
+ end
26
+
27
+ end
28
+
29
+ class InvalidEncodingException < ServiceError
30
+
31
+ # @param [Seahorse::Client::RequestContext] context
32
+ # @param [String] message
33
+ # @param [Aws::ComprehendMedical::Types::InvalidEncodingException] data
34
+ def initialize(context, message, data = Aws::EmptyStructure.new)
35
+ super(context, message, data)
36
+ end
37
+
38
+ # @return [String]
39
+ def message
40
+ @message || @data[:message]
41
+ end
42
+
43
+ end
44
+
45
+ class InvalidRequestException < ServiceError
46
+
47
+ # @param [Seahorse::Client::RequestContext] context
48
+ # @param [String] message
49
+ # @param [Aws::ComprehendMedical::Types::InvalidRequestException] data
50
+ def initialize(context, message, data = Aws::EmptyStructure.new)
51
+ super(context, message, data)
52
+ end
53
+
54
+ # @return [String]
55
+ def message
56
+ @message || @data[:message]
57
+ end
58
+
59
+ end
60
+
61
+ class ResourceNotFoundException < ServiceError
62
+
63
+ # @param [Seahorse::Client::RequestContext] context
64
+ # @param [String] message
65
+ # @param [Aws::ComprehendMedical::Types::ResourceNotFoundException] data
66
+ def initialize(context, message, data = Aws::EmptyStructure.new)
67
+ super(context, message, data)
68
+ end
69
+
70
+ # @return [String]
71
+ def message
72
+ @message || @data[:message]
73
+ end
74
+
75
+ end
76
+
77
+ class ServiceUnavailableException < ServiceError
78
+
79
+ # @param [Seahorse::Client::RequestContext] context
80
+ # @param [String] message
81
+ # @param [Aws::ComprehendMedical::Types::ServiceUnavailableException] data
82
+ def initialize(context, message, data = Aws::EmptyStructure.new)
83
+ super(context, message, data)
84
+ end
85
+
86
+ # @return [String]
87
+ def message
88
+ @message || @data[:message]
89
+ end
90
+
91
+ end
92
+
93
+ class TextSizeLimitExceededException < ServiceError
94
+
95
+ # @param [Seahorse::Client::RequestContext] context
96
+ # @param [String] message
97
+ # @param [Aws::ComprehendMedical::Types::TextSizeLimitExceededException] data
98
+ def initialize(context, message, data = Aws::EmptyStructure.new)
99
+ super(context, message, data)
100
+ end
101
+
102
+ # @return [String]
103
+ def message
104
+ @message || @data[:message]
105
+ end
106
+
107
+ end
108
+
109
+ class TooManyRequestsException < ServiceError
110
+
111
+ # @param [Seahorse::Client::RequestContext] context
112
+ # @param [String] message
113
+ # @param [Aws::ComprehendMedical::Types::TooManyRequestsException] data
114
+ def initialize(context, message, data = Aws::EmptyStructure.new)
115
+ super(context, message, data)
116
+ end
117
+
118
+ # @return [String]
119
+ def message
120
+ @message || @data[:message]
121
+ end
122
+
123
+ end
124
+
125
+ class ValidationException < ServiceError
126
+
127
+ # @param [Seahorse::Client::RequestContext] context
128
+ # @param [String] message
129
+ # @param [Aws::ComprehendMedical::Types::ValidationException] data
130
+ def initialize(context, message, data = Aws::EmptyStructure.new)
131
+ super(context, message, data)
132
+ end
133
+
134
+ # @return [String]
135
+ def message
136
+ @message || @data[:message]
137
+ end
138
+
139
+ end
140
+
13
141
  end
14
142
  end