@aws-sdk/client-comprehendmedical 3.183.0 → 3.185.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 +11 -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 +5 -5
@@ -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 { StopEntitiesDetectionV2JobRequestFilterSensitiveLog, StopEntitiesDetectionV2JobResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StopEntitiesDetectionV2JobCommand, serializeAws_json1_1StopEntitiesDetectionV2JobCommand, } from "../protocols/Aws_json1_1";
5
- export class StopEntitiesDetectionV2JobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StopEntitiesDetectionV2JobCommand = (function (_super) {
7
+ __extends(StopEntitiesDetectionV2JobCommand, _super);
8
+ function StopEntitiesDetectionV2JobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StopEntitiesDetectionV2JobCommand.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 = "StopEntitiesDetectionV2JobCommand";
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 = "StopEntitiesDetectionV2JobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StopEntitiesDetectionV2JobRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StopEntitiesDetectionV2JobResponseFilterSensitiveLog,
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
+ StopEntitiesDetectionV2JobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StopEntitiesDetectionV2JobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StopEntitiesDetectionV2JobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StopEntitiesDetectionV2JobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StopEntitiesDetectionV2JobCommand;
38
+ }($Command));
39
+ export { StopEntitiesDetectionV2JobCommand };
@@ -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 { StopICD10CMInferenceJobRequestFilterSensitiveLog, StopICD10CMInferenceJobResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StopICD10CMInferenceJobCommand, serializeAws_json1_1StopICD10CMInferenceJobCommand, } from "../protocols/Aws_json1_1";
5
- export class StopICD10CMInferenceJobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StopICD10CMInferenceJobCommand = (function (_super) {
7
+ __extends(StopICD10CMInferenceJobCommand, _super);
8
+ function StopICD10CMInferenceJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StopICD10CMInferenceJobCommand.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 = "StopICD10CMInferenceJobCommand";
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 = "StopICD10CMInferenceJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StopICD10CMInferenceJobRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StopICD10CMInferenceJobResponseFilterSensitiveLog,
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
+ StopICD10CMInferenceJobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StopICD10CMInferenceJobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StopICD10CMInferenceJobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StopICD10CMInferenceJobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StopICD10CMInferenceJobCommand;
38
+ }($Command));
39
+ export { StopICD10CMInferenceJobCommand };
@@ -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 { StopPHIDetectionJobRequestFilterSensitiveLog, StopPHIDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StopPHIDetectionJobCommand, serializeAws_json1_1StopPHIDetectionJobCommand, } from "../protocols/Aws_json1_1";
5
- export class StopPHIDetectionJobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StopPHIDetectionJobCommand = (function (_super) {
7
+ __extends(StopPHIDetectionJobCommand, _super);
8
+ function StopPHIDetectionJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StopPHIDetectionJobCommand.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 = "StopPHIDetectionJobCommand";
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 = "StopPHIDetectionJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StopPHIDetectionJobRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StopPHIDetectionJobResponseFilterSensitiveLog,
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
+ StopPHIDetectionJobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StopPHIDetectionJobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StopPHIDetectionJobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StopPHIDetectionJobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StopPHIDetectionJobCommand;
38
+ }($Command));
39
+ export { StopPHIDetectionJobCommand };
@@ -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 { StopRxNormInferenceJobRequestFilterSensitiveLog, StopRxNormInferenceJobResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StopRxNormInferenceJobCommand, serializeAws_json1_1StopRxNormInferenceJobCommand, } from "../protocols/Aws_json1_1";
5
- export class StopRxNormInferenceJobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StopRxNormInferenceJobCommand = (function (_super) {
7
+ __extends(StopRxNormInferenceJobCommand, _super);
8
+ function StopRxNormInferenceJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StopRxNormInferenceJobCommand.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 = "StopRxNormInferenceJobCommand";
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 = "StopRxNormInferenceJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StopRxNormInferenceJobRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StopRxNormInferenceJobResponseFilterSensitiveLog,
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
+ StopRxNormInferenceJobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StopRxNormInferenceJobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StopRxNormInferenceJobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StopRxNormInferenceJobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StopRxNormInferenceJobCommand;
38
+ }($Command));
39
+ export { StopRxNormInferenceJobCommand };
@@ -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 { StopSNOMEDCTInferenceJobRequestFilterSensitiveLog, StopSNOMEDCTInferenceJobResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StopSNOMEDCTInferenceJobCommand, serializeAws_json1_1StopSNOMEDCTInferenceJobCommand, } from "../protocols/Aws_json1_1";
5
- export class StopSNOMEDCTInferenceJobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StopSNOMEDCTInferenceJobCommand = (function (_super) {
7
+ __extends(StopSNOMEDCTInferenceJobCommand, _super);
8
+ function StopSNOMEDCTInferenceJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StopSNOMEDCTInferenceJobCommand.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 = "StopSNOMEDCTInferenceJobCommand";
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 = "StopSNOMEDCTInferenceJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StopSNOMEDCTInferenceJobRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StopSNOMEDCTInferenceJobResponseFilterSensitiveLog,
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
+ StopSNOMEDCTInferenceJobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StopSNOMEDCTInferenceJobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StopSNOMEDCTInferenceJobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StopSNOMEDCTInferenceJobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StopSNOMEDCTInferenceJobCommand;
38
+ }($Command));
39
+ export { StopSNOMEDCTInferenceJobCommand };
@@ -1,5 +1,6 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {
3
+ var regionHash = {
3
4
  "us-east-1": {
4
5
  variants: [
5
6
  {
@@ -33,7 +34,7 @@ const regionHash = {
33
34
  ],
34
35
  },
35
36
  };
36
- const partitionHash = {
37
+ var partitionHash = {
37
38
  aws: {
38
39
  regions: [
39
40
  "af-south-1",
@@ -156,9 +157,8 @@ const partitionHash = {
156
157
  ],
157
158
  },
158
159
  };
159
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
160
- ...options,
161
- signingService: "comprehendmedical",
162
- regionHash,
163
- partitionHash,
164
- });
160
+ export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
161
+ return __generator(this, function (_a) {
162
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "comprehendmedical", regionHash: regionHash, partitionHash: partitionHash }))];
163
+ });
164
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class ComprehendMedicalServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, ComprehendMedicalServiceException.prototype);
3
+ var ComprehendMedicalServiceException = (function (_super) {
4
+ __extends(ComprehendMedicalServiceException, _super);
5
+ function ComprehendMedicalServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, ComprehendMedicalServiceException.prototype);
8
+ return _this;
6
9
  }
7
- }
10
+ return ComprehendMedicalServiceException;
11
+ }(__ServiceException));
12
+ export { ComprehendMedicalServiceException };