@aws-sdk/client-comprehendmedical 3.183.0 → 3.186.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/ComprehendMedical.js +113 -106
  4. package/dist-es/ComprehendMedicalClient.js +28 -22
  5. package/dist-es/commands/DescribeEntitiesDetectionV2JobCommand.js +28 -21
  6. package/dist-es/commands/DescribeICD10CMInferenceJobCommand.js +28 -21
  7. package/dist-es/commands/DescribePHIDetectionJobCommand.js +28 -21
  8. package/dist-es/commands/DescribeRxNormInferenceJobCommand.js +28 -21
  9. package/dist-es/commands/DescribeSNOMEDCTInferenceJobCommand.js +28 -21
  10. package/dist-es/commands/DetectEntitiesCommand.js +28 -21
  11. package/dist-es/commands/DetectEntitiesV2Command.js +28 -21
  12. package/dist-es/commands/DetectPHICommand.js +28 -21
  13. package/dist-es/commands/InferICD10CMCommand.js +28 -21
  14. package/dist-es/commands/InferRxNormCommand.js +28 -21
  15. package/dist-es/commands/InferSNOMEDCTCommand.js +28 -21
  16. package/dist-es/commands/ListEntitiesDetectionV2JobsCommand.js +28 -21
  17. package/dist-es/commands/ListICD10CMInferenceJobsCommand.js +28 -21
  18. package/dist-es/commands/ListPHIDetectionJobsCommand.js +28 -21
  19. package/dist-es/commands/ListRxNormInferenceJobsCommand.js +28 -21
  20. package/dist-es/commands/ListSNOMEDCTInferenceJobsCommand.js +28 -21
  21. package/dist-es/commands/StartEntitiesDetectionV2JobCommand.js +28 -21
  22. package/dist-es/commands/StartICD10CMInferenceJobCommand.js +28 -21
  23. package/dist-es/commands/StartPHIDetectionJobCommand.js +28 -21
  24. package/dist-es/commands/StartRxNormInferenceJobCommand.js +28 -21
  25. package/dist-es/commands/StartSNOMEDCTInferenceJobCommand.js +28 -21
  26. package/dist-es/commands/StopEntitiesDetectionV2JobCommand.js +28 -21
  27. package/dist-es/commands/StopICD10CMInferenceJobCommand.js +28 -21
  28. package/dist-es/commands/StopPHIDetectionJobCommand.js +28 -21
  29. package/dist-es/commands/StopRxNormInferenceJobCommand.js +28 -21
  30. package/dist-es/commands/StopSNOMEDCTInferenceJobCommand.js +28 -21
  31. package/dist-es/endpoints.js +8 -8
  32. package/dist-es/models/ComprehendMedicalServiceException.js +10 -5
  33. package/dist-es/models/models_0.js +171 -318
  34. package/dist-es/protocols/Aws_json1_1.js +2299 -1767
  35. package/dist-es/runtimeConfig.browser.js +12 -26
  36. package/dist-es/runtimeConfig.js +12 -30
  37. package/dist-es/runtimeConfig.native.js +5 -8
  38. package/dist-es/runtimeConfig.shared.js +11 -8
  39. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-comprehendmedical
9
+
10
+
11
+
12
+
13
+
14
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-comprehendmedical
@@ -2318,10 +2318,10 @@ const deserializeAws_json1_1ValidationException = (output, context) => {
2318
2318
  };
2319
2319
  };
2320
2320
  const deserializeMetadata = (output) => {
2321
- var _a;
2321
+ var _a, _b;
2322
2322
  return ({
2323
2323
  httpStatusCode: output.statusCode,
2324
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
2324
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
2325
2325
  extendedRequestId: output.headers["x-amz-id-2"],
2326
2326
  cfId: output.headers["x-amz-cf-id"],
2327
2327
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { DescribeEntitiesDetectionV2JobCommand, } from "./commands/DescribeEntitiesDetectionV2JobCommand";
2
3
  import { DescribeICD10CMInferenceJobCommand, } from "./commands/DescribeICD10CMInferenceJobCommand";
3
4
  import { DescribePHIDetectionJobCommand, } from "./commands/DescribePHIDetectionJobCommand";
@@ -25,369 +26,375 @@ import { StopPHIDetectionJobCommand, } from "./commands/StopPHIDetectionJobComma
25
26
  import { StopRxNormInferenceJobCommand, } from "./commands/StopRxNormInferenceJobCommand";
26
27
  import { StopSNOMEDCTInferenceJobCommand, } from "./commands/StopSNOMEDCTInferenceJobCommand";
27
28
  import { ComprehendMedicalClient } from "./ComprehendMedicalClient";
28
- export class ComprehendMedical extends ComprehendMedicalClient {
29
- describeEntitiesDetectionV2Job(args, optionsOrCb, cb) {
30
- const command = new DescribeEntitiesDetectionV2JobCommand(args);
29
+ var ComprehendMedical = (function (_super) {
30
+ __extends(ComprehendMedical, _super);
31
+ function ComprehendMedical() {
32
+ return _super !== null && _super.apply(this, arguments) || this;
33
+ }
34
+ ComprehendMedical.prototype.describeEntitiesDetectionV2Job = function (args, optionsOrCb, cb) {
35
+ var command = new DescribeEntitiesDetectionV2JobCommand(args);
31
36
  if (typeof optionsOrCb === "function") {
32
37
  this.send(command, optionsOrCb);
33
38
  }
34
39
  else if (typeof cb === "function") {
35
40
  if (typeof optionsOrCb !== "object")
36
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
41
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
37
42
  this.send(command, optionsOrCb || {}, cb);
38
43
  }
39
44
  else {
40
45
  return this.send(command, optionsOrCb);
41
46
  }
42
- }
43
- describeICD10CMInferenceJob(args, optionsOrCb, cb) {
44
- const command = new DescribeICD10CMInferenceJobCommand(args);
47
+ };
48
+ ComprehendMedical.prototype.describeICD10CMInferenceJob = function (args, optionsOrCb, cb) {
49
+ var command = new DescribeICD10CMInferenceJobCommand(args);
45
50
  if (typeof optionsOrCb === "function") {
46
51
  this.send(command, optionsOrCb);
47
52
  }
48
53
  else if (typeof cb === "function") {
49
54
  if (typeof optionsOrCb !== "object")
50
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
55
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
51
56
  this.send(command, optionsOrCb || {}, cb);
52
57
  }
53
58
  else {
54
59
  return this.send(command, optionsOrCb);
55
60
  }
56
- }
57
- describePHIDetectionJob(args, optionsOrCb, cb) {
58
- const command = new DescribePHIDetectionJobCommand(args);
61
+ };
62
+ ComprehendMedical.prototype.describePHIDetectionJob = function (args, optionsOrCb, cb) {
63
+ var command = new DescribePHIDetectionJobCommand(args);
59
64
  if (typeof optionsOrCb === "function") {
60
65
  this.send(command, optionsOrCb);
61
66
  }
62
67
  else if (typeof cb === "function") {
63
68
  if (typeof optionsOrCb !== "object")
64
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
69
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
65
70
  this.send(command, optionsOrCb || {}, cb);
66
71
  }
67
72
  else {
68
73
  return this.send(command, optionsOrCb);
69
74
  }
70
- }
71
- describeRxNormInferenceJob(args, optionsOrCb, cb) {
72
- const command = new DescribeRxNormInferenceJobCommand(args);
75
+ };
76
+ ComprehendMedical.prototype.describeRxNormInferenceJob = function (args, optionsOrCb, cb) {
77
+ var command = new DescribeRxNormInferenceJobCommand(args);
73
78
  if (typeof optionsOrCb === "function") {
74
79
  this.send(command, optionsOrCb);
75
80
  }
76
81
  else if (typeof cb === "function") {
77
82
  if (typeof optionsOrCb !== "object")
78
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
83
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
79
84
  this.send(command, optionsOrCb || {}, cb);
80
85
  }
81
86
  else {
82
87
  return this.send(command, optionsOrCb);
83
88
  }
84
- }
85
- describeSNOMEDCTInferenceJob(args, optionsOrCb, cb) {
86
- const command = new DescribeSNOMEDCTInferenceJobCommand(args);
89
+ };
90
+ ComprehendMedical.prototype.describeSNOMEDCTInferenceJob = function (args, optionsOrCb, cb) {
91
+ var command = new DescribeSNOMEDCTInferenceJobCommand(args);
87
92
  if (typeof optionsOrCb === "function") {
88
93
  this.send(command, optionsOrCb);
89
94
  }
90
95
  else if (typeof cb === "function") {
91
96
  if (typeof optionsOrCb !== "object")
92
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
97
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
93
98
  this.send(command, optionsOrCb || {}, cb);
94
99
  }
95
100
  else {
96
101
  return this.send(command, optionsOrCb);
97
102
  }
98
- }
99
- detectEntities(args, optionsOrCb, cb) {
100
- const command = new DetectEntitiesCommand(args);
103
+ };
104
+ ComprehendMedical.prototype.detectEntities = function (args, optionsOrCb, cb) {
105
+ var command = new DetectEntitiesCommand(args);
101
106
  if (typeof optionsOrCb === "function") {
102
107
  this.send(command, optionsOrCb);
103
108
  }
104
109
  else if (typeof cb === "function") {
105
110
  if (typeof optionsOrCb !== "object")
106
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
111
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
107
112
  this.send(command, optionsOrCb || {}, cb);
108
113
  }
109
114
  else {
110
115
  return this.send(command, optionsOrCb);
111
116
  }
112
- }
113
- detectEntitiesV2(args, optionsOrCb, cb) {
114
- const command = new DetectEntitiesV2Command(args);
117
+ };
118
+ ComprehendMedical.prototype.detectEntitiesV2 = function (args, optionsOrCb, cb) {
119
+ var command = new DetectEntitiesV2Command(args);
115
120
  if (typeof optionsOrCb === "function") {
116
121
  this.send(command, optionsOrCb);
117
122
  }
118
123
  else if (typeof cb === "function") {
119
124
  if (typeof optionsOrCb !== "object")
120
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
125
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
121
126
  this.send(command, optionsOrCb || {}, cb);
122
127
  }
123
128
  else {
124
129
  return this.send(command, optionsOrCb);
125
130
  }
126
- }
127
- detectPHI(args, optionsOrCb, cb) {
128
- const command = new DetectPHICommand(args);
131
+ };
132
+ ComprehendMedical.prototype.detectPHI = function (args, optionsOrCb, cb) {
133
+ var command = new DetectPHICommand(args);
129
134
  if (typeof optionsOrCb === "function") {
130
135
  this.send(command, optionsOrCb);
131
136
  }
132
137
  else if (typeof cb === "function") {
133
138
  if (typeof optionsOrCb !== "object")
134
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
139
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
135
140
  this.send(command, optionsOrCb || {}, cb);
136
141
  }
137
142
  else {
138
143
  return this.send(command, optionsOrCb);
139
144
  }
140
- }
141
- inferICD10CM(args, optionsOrCb, cb) {
142
- const command = new InferICD10CMCommand(args);
145
+ };
146
+ ComprehendMedical.prototype.inferICD10CM = function (args, optionsOrCb, cb) {
147
+ var command = new InferICD10CMCommand(args);
143
148
  if (typeof optionsOrCb === "function") {
144
149
  this.send(command, optionsOrCb);
145
150
  }
146
151
  else if (typeof cb === "function") {
147
152
  if (typeof optionsOrCb !== "object")
148
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
153
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
149
154
  this.send(command, optionsOrCb || {}, cb);
150
155
  }
151
156
  else {
152
157
  return this.send(command, optionsOrCb);
153
158
  }
154
- }
155
- inferRxNorm(args, optionsOrCb, cb) {
156
- const command = new InferRxNormCommand(args);
159
+ };
160
+ ComprehendMedical.prototype.inferRxNorm = function (args, optionsOrCb, cb) {
161
+ var command = new InferRxNormCommand(args);
157
162
  if (typeof optionsOrCb === "function") {
158
163
  this.send(command, optionsOrCb);
159
164
  }
160
165
  else if (typeof cb === "function") {
161
166
  if (typeof optionsOrCb !== "object")
162
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
167
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
163
168
  this.send(command, optionsOrCb || {}, cb);
164
169
  }
165
170
  else {
166
171
  return this.send(command, optionsOrCb);
167
172
  }
168
- }
169
- inferSNOMEDCT(args, optionsOrCb, cb) {
170
- const command = new InferSNOMEDCTCommand(args);
173
+ };
174
+ ComprehendMedical.prototype.inferSNOMEDCT = function (args, optionsOrCb, cb) {
175
+ var command = new InferSNOMEDCTCommand(args);
171
176
  if (typeof optionsOrCb === "function") {
172
177
  this.send(command, optionsOrCb);
173
178
  }
174
179
  else if (typeof cb === "function") {
175
180
  if (typeof optionsOrCb !== "object")
176
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
181
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
177
182
  this.send(command, optionsOrCb || {}, cb);
178
183
  }
179
184
  else {
180
185
  return this.send(command, optionsOrCb);
181
186
  }
182
- }
183
- listEntitiesDetectionV2Jobs(args, optionsOrCb, cb) {
184
- const command = new ListEntitiesDetectionV2JobsCommand(args);
187
+ };
188
+ ComprehendMedical.prototype.listEntitiesDetectionV2Jobs = function (args, optionsOrCb, cb) {
189
+ var command = new ListEntitiesDetectionV2JobsCommand(args);
185
190
  if (typeof optionsOrCb === "function") {
186
191
  this.send(command, optionsOrCb);
187
192
  }
188
193
  else if (typeof cb === "function") {
189
194
  if (typeof optionsOrCb !== "object")
190
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
195
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
191
196
  this.send(command, optionsOrCb || {}, cb);
192
197
  }
193
198
  else {
194
199
  return this.send(command, optionsOrCb);
195
200
  }
196
- }
197
- listICD10CMInferenceJobs(args, optionsOrCb, cb) {
198
- const command = new ListICD10CMInferenceJobsCommand(args);
201
+ };
202
+ ComprehendMedical.prototype.listICD10CMInferenceJobs = function (args, optionsOrCb, cb) {
203
+ var command = new ListICD10CMInferenceJobsCommand(args);
199
204
  if (typeof optionsOrCb === "function") {
200
205
  this.send(command, optionsOrCb);
201
206
  }
202
207
  else if (typeof cb === "function") {
203
208
  if (typeof optionsOrCb !== "object")
204
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
209
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
205
210
  this.send(command, optionsOrCb || {}, cb);
206
211
  }
207
212
  else {
208
213
  return this.send(command, optionsOrCb);
209
214
  }
210
- }
211
- listPHIDetectionJobs(args, optionsOrCb, cb) {
212
- const command = new ListPHIDetectionJobsCommand(args);
215
+ };
216
+ ComprehendMedical.prototype.listPHIDetectionJobs = function (args, optionsOrCb, cb) {
217
+ var command = new ListPHIDetectionJobsCommand(args);
213
218
  if (typeof optionsOrCb === "function") {
214
219
  this.send(command, optionsOrCb);
215
220
  }
216
221
  else if (typeof cb === "function") {
217
222
  if (typeof optionsOrCb !== "object")
218
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
223
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
219
224
  this.send(command, optionsOrCb || {}, cb);
220
225
  }
221
226
  else {
222
227
  return this.send(command, optionsOrCb);
223
228
  }
224
- }
225
- listRxNormInferenceJobs(args, optionsOrCb, cb) {
226
- const command = new ListRxNormInferenceJobsCommand(args);
229
+ };
230
+ ComprehendMedical.prototype.listRxNormInferenceJobs = function (args, optionsOrCb, cb) {
231
+ var command = new ListRxNormInferenceJobsCommand(args);
227
232
  if (typeof optionsOrCb === "function") {
228
233
  this.send(command, optionsOrCb);
229
234
  }
230
235
  else if (typeof cb === "function") {
231
236
  if (typeof optionsOrCb !== "object")
232
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
237
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
233
238
  this.send(command, optionsOrCb || {}, cb);
234
239
  }
235
240
  else {
236
241
  return this.send(command, optionsOrCb);
237
242
  }
238
- }
239
- listSNOMEDCTInferenceJobs(args, optionsOrCb, cb) {
240
- const command = new ListSNOMEDCTInferenceJobsCommand(args);
243
+ };
244
+ ComprehendMedical.prototype.listSNOMEDCTInferenceJobs = function (args, optionsOrCb, cb) {
245
+ var command = new ListSNOMEDCTInferenceJobsCommand(args);
241
246
  if (typeof optionsOrCb === "function") {
242
247
  this.send(command, optionsOrCb);
243
248
  }
244
249
  else if (typeof cb === "function") {
245
250
  if (typeof optionsOrCb !== "object")
246
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
251
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
247
252
  this.send(command, optionsOrCb || {}, cb);
248
253
  }
249
254
  else {
250
255
  return this.send(command, optionsOrCb);
251
256
  }
252
- }
253
- startEntitiesDetectionV2Job(args, optionsOrCb, cb) {
254
- const command = new StartEntitiesDetectionV2JobCommand(args);
257
+ };
258
+ ComprehendMedical.prototype.startEntitiesDetectionV2Job = function (args, optionsOrCb, cb) {
259
+ var command = new StartEntitiesDetectionV2JobCommand(args);
255
260
  if (typeof optionsOrCb === "function") {
256
261
  this.send(command, optionsOrCb);
257
262
  }
258
263
  else if (typeof cb === "function") {
259
264
  if (typeof optionsOrCb !== "object")
260
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
265
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
261
266
  this.send(command, optionsOrCb || {}, cb);
262
267
  }
263
268
  else {
264
269
  return this.send(command, optionsOrCb);
265
270
  }
266
- }
267
- startICD10CMInferenceJob(args, optionsOrCb, cb) {
268
- const command = new StartICD10CMInferenceJobCommand(args);
271
+ };
272
+ ComprehendMedical.prototype.startICD10CMInferenceJob = function (args, optionsOrCb, cb) {
273
+ var command = new StartICD10CMInferenceJobCommand(args);
269
274
  if (typeof optionsOrCb === "function") {
270
275
  this.send(command, optionsOrCb);
271
276
  }
272
277
  else if (typeof cb === "function") {
273
278
  if (typeof optionsOrCb !== "object")
274
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
279
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
275
280
  this.send(command, optionsOrCb || {}, cb);
276
281
  }
277
282
  else {
278
283
  return this.send(command, optionsOrCb);
279
284
  }
280
- }
281
- startPHIDetectionJob(args, optionsOrCb, cb) {
282
- const command = new StartPHIDetectionJobCommand(args);
285
+ };
286
+ ComprehendMedical.prototype.startPHIDetectionJob = function (args, optionsOrCb, cb) {
287
+ var command = new StartPHIDetectionJobCommand(args);
283
288
  if (typeof optionsOrCb === "function") {
284
289
  this.send(command, optionsOrCb);
285
290
  }
286
291
  else if (typeof cb === "function") {
287
292
  if (typeof optionsOrCb !== "object")
288
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
293
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
289
294
  this.send(command, optionsOrCb || {}, cb);
290
295
  }
291
296
  else {
292
297
  return this.send(command, optionsOrCb);
293
298
  }
294
- }
295
- startRxNormInferenceJob(args, optionsOrCb, cb) {
296
- const command = new StartRxNormInferenceJobCommand(args);
299
+ };
300
+ ComprehendMedical.prototype.startRxNormInferenceJob = function (args, optionsOrCb, cb) {
301
+ var command = new StartRxNormInferenceJobCommand(args);
297
302
  if (typeof optionsOrCb === "function") {
298
303
  this.send(command, optionsOrCb);
299
304
  }
300
305
  else if (typeof cb === "function") {
301
306
  if (typeof optionsOrCb !== "object")
302
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
307
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
303
308
  this.send(command, optionsOrCb || {}, cb);
304
309
  }
305
310
  else {
306
311
  return this.send(command, optionsOrCb);
307
312
  }
308
- }
309
- startSNOMEDCTInferenceJob(args, optionsOrCb, cb) {
310
- const command = new StartSNOMEDCTInferenceJobCommand(args);
313
+ };
314
+ ComprehendMedical.prototype.startSNOMEDCTInferenceJob = function (args, optionsOrCb, cb) {
315
+ var command = new StartSNOMEDCTInferenceJobCommand(args);
311
316
  if (typeof optionsOrCb === "function") {
312
317
  this.send(command, optionsOrCb);
313
318
  }
314
319
  else if (typeof cb === "function") {
315
320
  if (typeof optionsOrCb !== "object")
316
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
321
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
317
322
  this.send(command, optionsOrCb || {}, cb);
318
323
  }
319
324
  else {
320
325
  return this.send(command, optionsOrCb);
321
326
  }
322
- }
323
- stopEntitiesDetectionV2Job(args, optionsOrCb, cb) {
324
- const command = new StopEntitiesDetectionV2JobCommand(args);
327
+ };
328
+ ComprehendMedical.prototype.stopEntitiesDetectionV2Job = function (args, optionsOrCb, cb) {
329
+ var command = new StopEntitiesDetectionV2JobCommand(args);
325
330
  if (typeof optionsOrCb === "function") {
326
331
  this.send(command, optionsOrCb);
327
332
  }
328
333
  else if (typeof cb === "function") {
329
334
  if (typeof optionsOrCb !== "object")
330
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
335
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
331
336
  this.send(command, optionsOrCb || {}, cb);
332
337
  }
333
338
  else {
334
339
  return this.send(command, optionsOrCb);
335
340
  }
336
- }
337
- stopICD10CMInferenceJob(args, optionsOrCb, cb) {
338
- const command = new StopICD10CMInferenceJobCommand(args);
341
+ };
342
+ ComprehendMedical.prototype.stopICD10CMInferenceJob = function (args, optionsOrCb, cb) {
343
+ var command = new StopICD10CMInferenceJobCommand(args);
339
344
  if (typeof optionsOrCb === "function") {
340
345
  this.send(command, optionsOrCb);
341
346
  }
342
347
  else if (typeof cb === "function") {
343
348
  if (typeof optionsOrCb !== "object")
344
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
349
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
345
350
  this.send(command, optionsOrCb || {}, cb);
346
351
  }
347
352
  else {
348
353
  return this.send(command, optionsOrCb);
349
354
  }
350
- }
351
- stopPHIDetectionJob(args, optionsOrCb, cb) {
352
- const command = new StopPHIDetectionJobCommand(args);
355
+ };
356
+ ComprehendMedical.prototype.stopPHIDetectionJob = function (args, optionsOrCb, cb) {
357
+ var command = new StopPHIDetectionJobCommand(args);
353
358
  if (typeof optionsOrCb === "function") {
354
359
  this.send(command, optionsOrCb);
355
360
  }
356
361
  else if (typeof cb === "function") {
357
362
  if (typeof optionsOrCb !== "object")
358
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
363
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
359
364
  this.send(command, optionsOrCb || {}, cb);
360
365
  }
361
366
  else {
362
367
  return this.send(command, optionsOrCb);
363
368
  }
364
- }
365
- stopRxNormInferenceJob(args, optionsOrCb, cb) {
366
- const command = new StopRxNormInferenceJobCommand(args);
369
+ };
370
+ ComprehendMedical.prototype.stopRxNormInferenceJob = function (args, optionsOrCb, cb) {
371
+ var command = new StopRxNormInferenceJobCommand(args);
367
372
  if (typeof optionsOrCb === "function") {
368
373
  this.send(command, optionsOrCb);
369
374
  }
370
375
  else if (typeof cb === "function") {
371
376
  if (typeof optionsOrCb !== "object")
372
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
377
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
373
378
  this.send(command, optionsOrCb || {}, cb);
374
379
  }
375
380
  else {
376
381
  return this.send(command, optionsOrCb);
377
382
  }
378
- }
379
- stopSNOMEDCTInferenceJob(args, optionsOrCb, cb) {
380
- const command = new StopSNOMEDCTInferenceJobCommand(args);
383
+ };
384
+ ComprehendMedical.prototype.stopSNOMEDCTInferenceJob = function (args, optionsOrCb, cb) {
385
+ var command = new StopSNOMEDCTInferenceJobCommand(args);
381
386
  if (typeof optionsOrCb === "function") {
382
387
  this.send(command, optionsOrCb);
383
388
  }
384
389
  else if (typeof cb === "function") {
385
390
  if (typeof optionsOrCb !== "object")
386
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
391
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
387
392
  this.send(command, optionsOrCb || {}, cb);
388
393
  }
389
394
  else {
390
395
  return this.send(command, optionsOrCb);
391
396
  }
392
- }
393
- }
397
+ };
398
+ return ComprehendMedical;
399
+ }(ComprehendMedicalClient));
400
+ export { ComprehendMedical };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class ComprehendMedicalClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var ComprehendMedicalClient = (function (_super) {
13
+ __extends(ComprehendMedicalClient, _super);
14
+ function ComprehendMedicalClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ ComprehendMedicalClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return ComprehendMedicalClient;
38
+ }(__Client));
39
+ export { ComprehendMedicalClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeEntitiesDetectionV2JobRequestFilterSensitiveLog, DescribeEntitiesDetectionV2JobResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeEntitiesDetectionV2JobCommand, serializeAws_json1_1DescribeEntitiesDetectionV2JobCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeEntitiesDetectionV2JobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeEntitiesDetectionV2JobCommand = (function (_super) {
7
+ __extends(DescribeEntitiesDetectionV2JobCommand, _super);
8
+ function DescribeEntitiesDetectionV2JobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeEntitiesDetectionV2JobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "ComprehendMedicalClient";
15
- const commandName = "DescribeEntitiesDetectionV2JobCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ComprehendMedicalClient";
18
+ var commandName = "DescribeEntitiesDetectionV2JobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeEntitiesDetectionV2JobRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeEntitiesDetectionV2JobResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeEntitiesDetectionV2JobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeEntitiesDetectionV2JobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeEntitiesDetectionV2JobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeEntitiesDetectionV2JobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeEntitiesDetectionV2JobCommand;
38
+ }($Command));
39
+ export { DescribeEntitiesDetectionV2JobCommand };