@aws-sdk/client-comprehendmedical 3.181.0 → 3.183.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 (38) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/ComprehendMedical.js +106 -113
  3. package/dist-es/ComprehendMedicalClient.js +22 -28
  4. package/dist-es/commands/DescribeEntitiesDetectionV2JobCommand.js +21 -28
  5. package/dist-es/commands/DescribeICD10CMInferenceJobCommand.js +21 -28
  6. package/dist-es/commands/DescribePHIDetectionJobCommand.js +21 -28
  7. package/dist-es/commands/DescribeRxNormInferenceJobCommand.js +21 -28
  8. package/dist-es/commands/DescribeSNOMEDCTInferenceJobCommand.js +21 -28
  9. package/dist-es/commands/DetectEntitiesCommand.js +21 -28
  10. package/dist-es/commands/DetectEntitiesV2Command.js +21 -28
  11. package/dist-es/commands/DetectPHICommand.js +21 -28
  12. package/dist-es/commands/InferICD10CMCommand.js +21 -28
  13. package/dist-es/commands/InferRxNormCommand.js +21 -28
  14. package/dist-es/commands/InferSNOMEDCTCommand.js +21 -28
  15. package/dist-es/commands/ListEntitiesDetectionV2JobsCommand.js +21 -28
  16. package/dist-es/commands/ListICD10CMInferenceJobsCommand.js +21 -28
  17. package/dist-es/commands/ListPHIDetectionJobsCommand.js +21 -28
  18. package/dist-es/commands/ListRxNormInferenceJobsCommand.js +21 -28
  19. package/dist-es/commands/ListSNOMEDCTInferenceJobsCommand.js +21 -28
  20. package/dist-es/commands/StartEntitiesDetectionV2JobCommand.js +21 -28
  21. package/dist-es/commands/StartICD10CMInferenceJobCommand.js +21 -28
  22. package/dist-es/commands/StartPHIDetectionJobCommand.js +21 -28
  23. package/dist-es/commands/StartRxNormInferenceJobCommand.js +21 -28
  24. package/dist-es/commands/StartSNOMEDCTInferenceJobCommand.js +21 -28
  25. package/dist-es/commands/StopEntitiesDetectionV2JobCommand.js +21 -28
  26. package/dist-es/commands/StopICD10CMInferenceJobCommand.js +21 -28
  27. package/dist-es/commands/StopPHIDetectionJobCommand.js +21 -28
  28. package/dist-es/commands/StopRxNormInferenceJobCommand.js +21 -28
  29. package/dist-es/commands/StopSNOMEDCTInferenceJobCommand.js +21 -28
  30. package/dist-es/endpoints.js +8 -8
  31. package/dist-es/models/ComprehendMedicalServiceException.js +5 -10
  32. package/dist-es/models/models_0.js +318 -171
  33. package/dist-es/protocols/Aws_json1_1.js +1767 -2299
  34. package/dist-es/runtimeConfig.browser.js +26 -12
  35. package/dist-es/runtimeConfig.js +30 -12
  36. package/dist-es/runtimeConfig.native.js +8 -5
  37. package/dist-es/runtimeConfig.shared.js +8 -11
  38. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { StopEntitiesDetectionV2JobRequestFilterSensitiveLog, StopEntitiesDetectionV2JobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StopEntitiesDetectionV2JobCommand, serializeAws_json1_1StopEntitiesDetectionV2JobCommand, } from "../protocols/Aws_json1_1";
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;
5
+ export class StopEntitiesDetectionV2JobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopEntitiesDetectionV2JobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
23
20
  inputFilterSensitiveLog: StopEntitiesDetectionV2JobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StopEntitiesDetectionV2JobResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1StopEntitiesDetectionV2JobCommand(input, context);
33
- };
34
- StopEntitiesDetectionV2JobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StopEntitiesDetectionV2JobCommand(output, context);
36
- };
37
- return StopEntitiesDetectionV2JobCommand;
38
- }($Command));
39
- export { StopEntitiesDetectionV2JobCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { StopICD10CMInferenceJobRequestFilterSensitiveLog, StopICD10CMInferenceJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StopICD10CMInferenceJobCommand, serializeAws_json1_1StopICD10CMInferenceJobCommand, } from "../protocols/Aws_json1_1";
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;
5
+ export class StopICD10CMInferenceJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopICD10CMInferenceJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
23
20
  inputFilterSensitiveLog: StopICD10CMInferenceJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StopICD10CMInferenceJobResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1StopICD10CMInferenceJobCommand(input, context);
33
- };
34
- StopICD10CMInferenceJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StopICD10CMInferenceJobCommand(output, context);
36
- };
37
- return StopICD10CMInferenceJobCommand;
38
- }($Command));
39
- export { StopICD10CMInferenceJobCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { StopPHIDetectionJobRequestFilterSensitiveLog, StopPHIDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StopPHIDetectionJobCommand, serializeAws_json1_1StopPHIDetectionJobCommand, } from "../protocols/Aws_json1_1";
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;
5
+ export class StopPHIDetectionJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopPHIDetectionJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
23
20
  inputFilterSensitiveLog: StopPHIDetectionJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StopPHIDetectionJobResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1StopPHIDetectionJobCommand(input, context);
33
- };
34
- StopPHIDetectionJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StopPHIDetectionJobCommand(output, context);
36
- };
37
- return StopPHIDetectionJobCommand;
38
- }($Command));
39
- export { StopPHIDetectionJobCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { StopRxNormInferenceJobRequestFilterSensitiveLog, StopRxNormInferenceJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StopRxNormInferenceJobCommand, serializeAws_json1_1StopRxNormInferenceJobCommand, } from "../protocols/Aws_json1_1";
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;
5
+ export class StopRxNormInferenceJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopRxNormInferenceJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
23
20
  inputFilterSensitiveLog: StopRxNormInferenceJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StopRxNormInferenceJobResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1StopRxNormInferenceJobCommand(input, context);
33
- };
34
- StopRxNormInferenceJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StopRxNormInferenceJobCommand(output, context);
36
- };
37
- return StopRxNormInferenceJobCommand;
38
- }($Command));
39
- export { StopRxNormInferenceJobCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { StopSNOMEDCTInferenceJobRequestFilterSensitiveLog, StopSNOMEDCTInferenceJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StopSNOMEDCTInferenceJobCommand, serializeAws_json1_1StopSNOMEDCTInferenceJobCommand, } from "../protocols/Aws_json1_1";
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;
5
+ export class StopSNOMEDCTInferenceJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopSNOMEDCTInferenceJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
23
20
  inputFilterSensitiveLog: StopSNOMEDCTInferenceJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StopSNOMEDCTInferenceJobResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1StopSNOMEDCTInferenceJobCommand(input, context);
33
- };
34
- StopSNOMEDCTInferenceJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StopSNOMEDCTInferenceJobCommand(output, context);
36
- };
37
- return StopSNOMEDCTInferenceJobCommand;
38
- }($Command));
39
- export { StopSNOMEDCTInferenceJobCommand };
31
+ }
32
+ }
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "us-east-1": {
5
4
  variants: [
6
5
  {
@@ -34,7 +33,7 @@ var regionHash = {
34
33
  ],
35
34
  },
36
35
  };
37
- var partitionHash = {
36
+ const partitionHash = {
38
37
  aws: {
39
38
  regions: [
40
39
  "af-south-1",
@@ -157,8 +156,9 @@ var partitionHash = {
157
156
  ],
158
157
  },
159
158
  };
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
- }); };
159
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
160
+ ...options,
161
+ signingService: "comprehendmedical",
162
+ regionHash,
163
+ partitionHash,
164
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
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;
2
+ export class ComprehendMedicalServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, ComprehendMedicalServiceException.prototype);
9
6
  }
10
- return ComprehendMedicalServiceException;
11
- }(__ServiceException));
12
- export { ComprehendMedicalServiceException };
7
+ }