@aws-sdk/client-comprehendmedical 3.185.0 → 3.188.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 +16 -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 { DescribeICD10CMInferenceJobRequestFilterSensitiveLog, DescribeICD10CMInferenceJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeICD10CMInferenceJobCommand, serializeAws_json1_1DescribeICD10CMInferenceJobCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeICD10CMInferenceJobCommand = (function (_super) {
7
- __extends(DescribeICD10CMInferenceJobCommand, _super);
8
- function DescribeICD10CMInferenceJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeICD10CMInferenceJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeICD10CMInferenceJobCommand.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 = "DescribeICD10CMInferenceJobCommand";
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 = "DescribeICD10CMInferenceJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeICD10CMInferenceJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeICD10CMInferenceJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeICD10CMInferenceJobCommand.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_1DescribeICD10CMInferenceJobCommand(input, context);
33
- };
34
- DescribeICD10CMInferenceJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeICD10CMInferenceJobCommand(output, context);
36
- };
37
- return DescribeICD10CMInferenceJobCommand;
38
- }($Command));
39
- export { DescribeICD10CMInferenceJobCommand };
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 { DescribePHIDetectionJobRequestFilterSensitiveLog, DescribePHIDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribePHIDetectionJobCommand, serializeAws_json1_1DescribePHIDetectionJobCommand, } from "../protocols/Aws_json1_1";
6
- var DescribePHIDetectionJobCommand = (function (_super) {
7
- __extends(DescribePHIDetectionJobCommand, _super);
8
- function DescribePHIDetectionJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribePHIDetectionJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribePHIDetectionJobCommand.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 = "DescribePHIDetectionJobCommand";
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 = "DescribePHIDetectionJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribePHIDetectionJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribePHIDetectionJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribePHIDetectionJobCommand.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_1DescribePHIDetectionJobCommand(input, context);
33
- };
34
- DescribePHIDetectionJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribePHIDetectionJobCommand(output, context);
36
- };
37
- return DescribePHIDetectionJobCommand;
38
- }($Command));
39
- export { DescribePHIDetectionJobCommand };
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 { DescribeRxNormInferenceJobRequestFilterSensitiveLog, DescribeRxNormInferenceJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeRxNormInferenceJobCommand, serializeAws_json1_1DescribeRxNormInferenceJobCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeRxNormInferenceJobCommand = (function (_super) {
7
- __extends(DescribeRxNormInferenceJobCommand, _super);
8
- function DescribeRxNormInferenceJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeRxNormInferenceJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeRxNormInferenceJobCommand.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 = "DescribeRxNormInferenceJobCommand";
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 = "DescribeRxNormInferenceJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeRxNormInferenceJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeRxNormInferenceJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeRxNormInferenceJobCommand.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_1DescribeRxNormInferenceJobCommand(input, context);
33
- };
34
- DescribeRxNormInferenceJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeRxNormInferenceJobCommand(output, context);
36
- };
37
- return DescribeRxNormInferenceJobCommand;
38
- }($Command));
39
- export { DescribeRxNormInferenceJobCommand };
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 { DescribeSNOMEDCTInferenceJobRequestFilterSensitiveLog, DescribeSNOMEDCTInferenceJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeSNOMEDCTInferenceJobCommand, serializeAws_json1_1DescribeSNOMEDCTInferenceJobCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeSNOMEDCTInferenceJobCommand = (function (_super) {
7
- __extends(DescribeSNOMEDCTInferenceJobCommand, _super);
8
- function DescribeSNOMEDCTInferenceJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeSNOMEDCTInferenceJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeSNOMEDCTInferenceJobCommand.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 = "DescribeSNOMEDCTInferenceJobCommand";
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 = "DescribeSNOMEDCTInferenceJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeSNOMEDCTInferenceJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeSNOMEDCTInferenceJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeSNOMEDCTInferenceJobCommand.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_1DescribeSNOMEDCTInferenceJobCommand(input, context);
33
- };
34
- DescribeSNOMEDCTInferenceJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeSNOMEDCTInferenceJobCommand(output, context);
36
- };
37
- return DescribeSNOMEDCTInferenceJobCommand;
38
- }($Command));
39
- export { DescribeSNOMEDCTInferenceJobCommand };
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 { DetectEntitiesRequestFilterSensitiveLog, DetectEntitiesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DetectEntitiesCommand, serializeAws_json1_1DetectEntitiesCommand, } from "../protocols/Aws_json1_1";
6
- var DetectEntitiesCommand = (function (_super) {
7
- __extends(DetectEntitiesCommand, _super);
8
- function DetectEntitiesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DetectEntitiesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DetectEntitiesCommand.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 = "DetectEntitiesCommand";
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 = "DetectEntitiesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DetectEntitiesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DetectEntitiesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DetectEntitiesCommand.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_1DetectEntitiesCommand(input, context);
33
- };
34
- DetectEntitiesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DetectEntitiesCommand(output, context);
36
- };
37
- return DetectEntitiesCommand;
38
- }($Command));
39
- export { DetectEntitiesCommand };
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 { DetectEntitiesV2RequestFilterSensitiveLog, DetectEntitiesV2ResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DetectEntitiesV2Command, serializeAws_json1_1DetectEntitiesV2Command, } from "../protocols/Aws_json1_1";
6
- var DetectEntitiesV2Command = (function (_super) {
7
- __extends(DetectEntitiesV2Command, _super);
8
- function DetectEntitiesV2Command(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DetectEntitiesV2Command extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DetectEntitiesV2Command.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 = "DetectEntitiesV2Command";
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 = "DetectEntitiesV2Command";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DetectEntitiesV2RequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DetectEntitiesV2ResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DetectEntitiesV2Command.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_1DetectEntitiesV2Command(input, context);
33
- };
34
- DetectEntitiesV2Command.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DetectEntitiesV2Command(output, context);
36
- };
37
- return DetectEntitiesV2Command;
38
- }($Command));
39
- export { DetectEntitiesV2Command };
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 { DetectPHIRequestFilterSensitiveLog, DetectPHIResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DetectPHICommand, serializeAws_json1_1DetectPHICommand } from "../protocols/Aws_json1_1";
6
- var DetectPHICommand = (function (_super) {
7
- __extends(DetectPHICommand, _super);
8
- function DetectPHICommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DetectPHICommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DetectPHICommand.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 = "DetectPHICommand";
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 = "DetectPHICommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DetectPHIRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DetectPHIResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DetectPHICommand.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_1DetectPHICommand(input, context);
33
- };
34
- DetectPHICommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DetectPHICommand(output, context);
36
- };
37
- return DetectPHICommand;
38
- }($Command));
39
- export { DetectPHICommand };
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 { InferICD10CMRequestFilterSensitiveLog, InferICD10CMResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1InferICD10CMCommand, serializeAws_json1_1InferICD10CMCommand, } from "../protocols/Aws_json1_1";
6
- var InferICD10CMCommand = (function (_super) {
7
- __extends(InferICD10CMCommand, _super);
8
- function InferICD10CMCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class InferICD10CMCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- InferICD10CMCommand.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 = "InferICD10CMCommand";
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 = "InferICD10CMCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: InferICD10CMRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: InferICD10CMResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- InferICD10CMCommand.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_1InferICD10CMCommand(input, context);
33
- };
34
- InferICD10CMCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1InferICD10CMCommand(output, context);
36
- };
37
- return InferICD10CMCommand;
38
- }($Command));
39
- export { InferICD10CMCommand };
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 { InferRxNormRequestFilterSensitiveLog, InferRxNormResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1InferRxNormCommand, serializeAws_json1_1InferRxNormCommand, } from "../protocols/Aws_json1_1";
6
- var InferRxNormCommand = (function (_super) {
7
- __extends(InferRxNormCommand, _super);
8
- function InferRxNormCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class InferRxNormCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- InferRxNormCommand.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 = "InferRxNormCommand";
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 = "InferRxNormCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: InferRxNormRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: InferRxNormResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- InferRxNormCommand.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_1InferRxNormCommand(input, context);
33
- };
34
- InferRxNormCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1InferRxNormCommand(output, context);
36
- };
37
- return InferRxNormCommand;
38
- }($Command));
39
- export { InferRxNormCommand };
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 { InferSNOMEDCTRequestFilterSensitiveLog, InferSNOMEDCTResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1InferSNOMEDCTCommand, serializeAws_json1_1InferSNOMEDCTCommand, } from "../protocols/Aws_json1_1";
6
- var InferSNOMEDCTCommand = (function (_super) {
7
- __extends(InferSNOMEDCTCommand, _super);
8
- function InferSNOMEDCTCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class InferSNOMEDCTCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- InferSNOMEDCTCommand.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 = "InferSNOMEDCTCommand";
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 = "InferSNOMEDCTCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: InferSNOMEDCTRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: InferSNOMEDCTResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- InferSNOMEDCTCommand.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_1InferSNOMEDCTCommand(input, context);
33
- };
34
- InferSNOMEDCTCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1InferSNOMEDCTCommand(output, context);
36
- };
37
- return InferSNOMEDCTCommand;
38
- }($Command));
39
- export { InferSNOMEDCTCommand };
31
+ }
32
+ }