@aws-sdk/client-comprehendmedical 3.35.0 → 3.38.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 (200) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/ComprehendMedical.js +0 -5
  3. package/dist-cjs/ComprehendMedicalClient.js +0 -10
  4. package/dist-cjs/commands/DescribeEntitiesDetectionV2JobCommand.js +0 -26
  5. package/dist-cjs/commands/DescribeICD10CMInferenceJobCommand.js +0 -26
  6. package/dist-cjs/commands/DescribePHIDetectionJobCommand.js +0 -26
  7. package/dist-cjs/commands/DescribeRxNormInferenceJobCommand.js +0 -26
  8. package/dist-cjs/commands/DetectEntitiesCommand.js +0 -30
  9. package/dist-cjs/commands/DetectEntitiesV2Command.js +0 -34
  10. package/dist-cjs/commands/DetectPHICommand.js +0 -27
  11. package/dist-cjs/commands/InferICD10CMCommand.js +0 -28
  12. package/dist-cjs/commands/InferRxNormCommand.js +0 -27
  13. package/dist-cjs/commands/ListEntitiesDetectionV2JobsCommand.js +0 -25
  14. package/dist-cjs/commands/ListICD10CMInferenceJobsCommand.js +0 -25
  15. package/dist-cjs/commands/ListPHIDetectionJobsCommand.js +0 -26
  16. package/dist-cjs/commands/ListRxNormInferenceJobsCommand.js +0 -25
  17. package/dist-cjs/commands/StartEntitiesDetectionV2JobCommand.js +0 -26
  18. package/dist-cjs/commands/StartICD10CMInferenceJobCommand.js +0 -27
  19. package/dist-cjs/commands/StartPHIDetectionJobCommand.js +0 -26
  20. package/dist-cjs/commands/StartRxNormInferenceJobCommand.js +0 -27
  21. package/dist-cjs/commands/StopEntitiesDetectionV2JobCommand.js +0 -25
  22. package/dist-cjs/commands/StopICD10CMInferenceJobCommand.js +0 -25
  23. package/dist-cjs/commands/StopPHIDetectionJobCommand.js +0 -25
  24. package/dist-cjs/commands/StopRxNormInferenceJobCommand.js +0 -25
  25. package/dist-cjs/commands/index.js +24 -0
  26. package/dist-cjs/endpoints.js +1 -2
  27. package/dist-cjs/index.js +3 -24
  28. package/dist-cjs/models/index.js +0 -1
  29. package/dist-cjs/models/models_0.js +0 -199
  30. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  31. package/dist-cjs/runtimeConfig.browser.js +1 -6
  32. package/dist-cjs/runtimeConfig.js +2 -7
  33. package/dist-cjs/runtimeConfig.native.js +0 -4
  34. package/dist-cjs/runtimeConfig.shared.js +0 -4
  35. package/dist-es/ComprehendMedical.js +0 -1
  36. package/dist-es/ComprehendMedicalClient.js +0 -1
  37. package/dist-es/commands/DescribeEntitiesDetectionV2JobCommand.js +0 -1
  38. package/dist-es/commands/DescribeICD10CMInferenceJobCommand.js +0 -1
  39. package/dist-es/commands/DescribePHIDetectionJobCommand.js +0 -1
  40. package/dist-es/commands/DescribeRxNormInferenceJobCommand.js +0 -1
  41. package/dist-es/commands/DetectEntitiesCommand.js +0 -1
  42. package/dist-es/commands/DetectEntitiesV2Command.js +0 -1
  43. package/dist-es/commands/DetectPHICommand.js +0 -1
  44. package/dist-es/commands/InferICD10CMCommand.js +0 -1
  45. package/dist-es/commands/InferRxNormCommand.js +0 -1
  46. package/dist-es/commands/ListEntitiesDetectionV2JobsCommand.js +0 -1
  47. package/dist-es/commands/ListICD10CMInferenceJobsCommand.js +0 -1
  48. package/dist-es/commands/ListPHIDetectionJobsCommand.js +0 -1
  49. package/dist-es/commands/ListRxNormInferenceJobsCommand.js +0 -1
  50. package/dist-es/commands/StartEntitiesDetectionV2JobCommand.js +0 -1
  51. package/dist-es/commands/StartICD10CMInferenceJobCommand.js +0 -1
  52. package/dist-es/commands/StartPHIDetectionJobCommand.js +0 -1
  53. package/dist-es/commands/StartRxNormInferenceJobCommand.js +0 -1
  54. package/dist-es/commands/StopEntitiesDetectionV2JobCommand.js +0 -1
  55. package/dist-es/commands/StopICD10CMInferenceJobCommand.js +0 -1
  56. package/dist-es/commands/StopPHIDetectionJobCommand.js +0 -1
  57. package/dist-es/commands/StopRxNormInferenceJobCommand.js +0 -1
  58. package/dist-es/commands/index.js +21 -0
  59. package/dist-es/endpoints.js +1 -2
  60. package/dist-es/index.js +3 -24
  61. package/dist-es/models/index.js +0 -1
  62. package/dist-es/models/models_0.js +0 -1
  63. package/dist-es/protocols/Aws_json1_1.js +0 -1
  64. package/dist-es/runtimeConfig.browser.js +1 -2
  65. package/dist-es/runtimeConfig.js +2 -3
  66. package/dist-es/runtimeConfig.native.js +0 -1
  67. package/dist-es/runtimeConfig.shared.js +0 -1
  68. package/dist-types/commands/index.d.ts +21 -0
  69. package/dist-types/index.d.ts +3 -23
  70. package/dist-types/ts3.4/ComprehendMedical.d.ts +22 -99
  71. package/dist-types/ts3.4/ComprehendMedicalClient.d.ts +24 -90
  72. package/dist-types/ts3.4/commands/DescribeEntitiesDetectionV2JobCommand.d.ts +2 -21
  73. package/dist-types/ts3.4/commands/DescribeICD10CMInferenceJobCommand.d.ts +2 -21
  74. package/dist-types/ts3.4/commands/DescribePHIDetectionJobCommand.d.ts +2 -21
  75. package/dist-types/ts3.4/commands/DescribeRxNormInferenceJobCommand.d.ts +2 -21
  76. package/dist-types/ts3.4/commands/DetectEntitiesCommand.d.ts +2 -25
  77. package/dist-types/ts3.4/commands/DetectEntitiesV2Command.d.ts +2 -29
  78. package/dist-types/ts3.4/commands/DetectPHICommand.d.ts +2 -22
  79. package/dist-types/ts3.4/commands/InferICD10CMCommand.d.ts +2 -23
  80. package/dist-types/ts3.4/commands/InferRxNormCommand.d.ts +2 -22
  81. package/dist-types/ts3.4/commands/ListEntitiesDetectionV2JobsCommand.d.ts +2 -20
  82. package/dist-types/ts3.4/commands/ListICD10CMInferenceJobsCommand.d.ts +2 -20
  83. package/dist-types/ts3.4/commands/ListPHIDetectionJobsCommand.d.ts +2 -21
  84. package/dist-types/ts3.4/commands/ListRxNormInferenceJobsCommand.d.ts +2 -20
  85. package/dist-types/ts3.4/commands/StartEntitiesDetectionV2JobCommand.d.ts +2 -21
  86. package/dist-types/ts3.4/commands/StartICD10CMInferenceJobCommand.d.ts +2 -22
  87. package/dist-types/ts3.4/commands/StartPHIDetectionJobCommand.d.ts +2 -21
  88. package/dist-types/ts3.4/commands/StartRxNormInferenceJobCommand.d.ts +2 -22
  89. package/dist-types/ts3.4/commands/StopEntitiesDetectionV2JobCommand.d.ts +2 -20
  90. package/dist-types/ts3.4/commands/StopICD10CMInferenceJobCommand.d.ts +2 -20
  91. package/dist-types/ts3.4/commands/StopPHIDetectionJobCommand.d.ts +2 -20
  92. package/dist-types/ts3.4/commands/StopRxNormInferenceJobCommand.d.ts +2 -20
  93. package/dist-types/ts3.4/commands/index.d.ts +21 -0
  94. package/dist-types/ts3.4/index.d.ts +3 -23
  95. package/dist-types/ts3.4/models/models_0.d.ts +273 -985
  96. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  97. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  98. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  99. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  100. package/package.json +33 -30
  101. package/dist-cjs/ComprehendMedical.js.map +0 -1
  102. package/dist-cjs/ComprehendMedicalClient.js.map +0 -1
  103. package/dist-cjs/commands/DescribeEntitiesDetectionV2JobCommand.js.map +0 -1
  104. package/dist-cjs/commands/DescribeICD10CMInferenceJobCommand.js.map +0 -1
  105. package/dist-cjs/commands/DescribePHIDetectionJobCommand.js.map +0 -1
  106. package/dist-cjs/commands/DescribeRxNormInferenceJobCommand.js.map +0 -1
  107. package/dist-cjs/commands/DetectEntitiesCommand.js.map +0 -1
  108. package/dist-cjs/commands/DetectEntitiesV2Command.js.map +0 -1
  109. package/dist-cjs/commands/DetectPHICommand.js.map +0 -1
  110. package/dist-cjs/commands/InferICD10CMCommand.js.map +0 -1
  111. package/dist-cjs/commands/InferRxNormCommand.js.map +0 -1
  112. package/dist-cjs/commands/ListEntitiesDetectionV2JobsCommand.js.map +0 -1
  113. package/dist-cjs/commands/ListICD10CMInferenceJobsCommand.js.map +0 -1
  114. package/dist-cjs/commands/ListPHIDetectionJobsCommand.js.map +0 -1
  115. package/dist-cjs/commands/ListRxNormInferenceJobsCommand.js.map +0 -1
  116. package/dist-cjs/commands/StartEntitiesDetectionV2JobCommand.js.map +0 -1
  117. package/dist-cjs/commands/StartICD10CMInferenceJobCommand.js.map +0 -1
  118. package/dist-cjs/commands/StartPHIDetectionJobCommand.js.map +0 -1
  119. package/dist-cjs/commands/StartRxNormInferenceJobCommand.js.map +0 -1
  120. package/dist-cjs/commands/StopEntitiesDetectionV2JobCommand.js.map +0 -1
  121. package/dist-cjs/commands/StopICD10CMInferenceJobCommand.js.map +0 -1
  122. package/dist-cjs/commands/StopPHIDetectionJobCommand.js.map +0 -1
  123. package/dist-cjs/commands/StopRxNormInferenceJobCommand.js.map +0 -1
  124. package/dist-cjs/endpoints.js.map +0 -1
  125. package/dist-cjs/index.js.map +0 -1
  126. package/dist-cjs/models/index.js.map +0 -1
  127. package/dist-cjs/models/models_0.js.map +0 -1
  128. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  129. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  130. package/dist-cjs/runtimeConfig.js.map +0 -1
  131. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  132. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  133. package/dist-es/ComprehendMedical.js.map +0 -1
  134. package/dist-es/ComprehendMedicalClient.js.map +0 -1
  135. package/dist-es/commands/DescribeEntitiesDetectionV2JobCommand.js.map +0 -1
  136. package/dist-es/commands/DescribeICD10CMInferenceJobCommand.js.map +0 -1
  137. package/dist-es/commands/DescribePHIDetectionJobCommand.js.map +0 -1
  138. package/dist-es/commands/DescribeRxNormInferenceJobCommand.js.map +0 -1
  139. package/dist-es/commands/DetectEntitiesCommand.js.map +0 -1
  140. package/dist-es/commands/DetectEntitiesV2Command.js.map +0 -1
  141. package/dist-es/commands/DetectPHICommand.js.map +0 -1
  142. package/dist-es/commands/InferICD10CMCommand.js.map +0 -1
  143. package/dist-es/commands/InferRxNormCommand.js.map +0 -1
  144. package/dist-es/commands/ListEntitiesDetectionV2JobsCommand.js.map +0 -1
  145. package/dist-es/commands/ListICD10CMInferenceJobsCommand.js.map +0 -1
  146. package/dist-es/commands/ListPHIDetectionJobsCommand.js.map +0 -1
  147. package/dist-es/commands/ListRxNormInferenceJobsCommand.js.map +0 -1
  148. package/dist-es/commands/StartEntitiesDetectionV2JobCommand.js.map +0 -1
  149. package/dist-es/commands/StartICD10CMInferenceJobCommand.js.map +0 -1
  150. package/dist-es/commands/StartPHIDetectionJobCommand.js.map +0 -1
  151. package/dist-es/commands/StartRxNormInferenceJobCommand.js.map +0 -1
  152. package/dist-es/commands/StopEntitiesDetectionV2JobCommand.js.map +0 -1
  153. package/dist-es/commands/StopICD10CMInferenceJobCommand.js.map +0 -1
  154. package/dist-es/commands/StopPHIDetectionJobCommand.js.map +0 -1
  155. package/dist-es/commands/StopRxNormInferenceJobCommand.js.map +0 -1
  156. package/dist-es/endpoints.js.map +0 -1
  157. package/dist-es/index.js.map +0 -1
  158. package/dist-es/models/index.js.map +0 -1
  159. package/dist-es/models/models_0.js.map +0 -1
  160. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  161. package/dist-es/runtimeConfig.browser.js.map +0 -1
  162. package/dist-es/runtimeConfig.js.map +0 -1
  163. package/dist-es/runtimeConfig.native.js.map +0 -1
  164. package/dist-es/runtimeConfig.shared.js.map +0 -1
  165. package/jest.config.js +0 -4
  166. package/src/ComprehendMedical.ts +0 -795
  167. package/src/ComprehendMedicalClient.ts +0 -348
  168. package/src/commands/DescribeEntitiesDetectionV2JobCommand.ts +0 -108
  169. package/src/commands/DescribeICD10CMInferenceJobCommand.ts +0 -105
  170. package/src/commands/DescribePHIDetectionJobCommand.ts +0 -100
  171. package/src/commands/DescribeRxNormInferenceJobCommand.ts +0 -103
  172. package/src/commands/DetectEntitiesCommand.ts +0 -104
  173. package/src/commands/DetectEntitiesV2Command.ts +0 -108
  174. package/src/commands/DetectPHICommand.ts +0 -98
  175. package/src/commands/InferICD10CMCommand.ts +0 -102
  176. package/src/commands/InferRxNormCommand.ts +0 -101
  177. package/src/commands/ListEntitiesDetectionV2JobsCommand.ts +0 -104
  178. package/src/commands/ListICD10CMInferenceJobsCommand.ts +0 -99
  179. package/src/commands/ListPHIDetectionJobsCommand.ts +0 -100
  180. package/src/commands/ListRxNormInferenceJobsCommand.ts +0 -99
  181. package/src/commands/StartEntitiesDetectionV2JobCommand.ts +0 -105
  182. package/src/commands/StartICD10CMInferenceJobCommand.ts +0 -101
  183. package/src/commands/StartPHIDetectionJobCommand.ts +0 -100
  184. package/src/commands/StartRxNormInferenceJobCommand.ts +0 -101
  185. package/src/commands/StopEntitiesDetectionV2JobCommand.ts +0 -102
  186. package/src/commands/StopICD10CMInferenceJobCommand.ts +0 -99
  187. package/src/commands/StopPHIDetectionJobCommand.ts +0 -99
  188. package/src/commands/StopRxNormInferenceJobCommand.ts +0 -99
  189. package/src/endpoints.ts +0 -77
  190. package/src/index.ts +0 -24
  191. package/src/models/index.ts +0 -1
  192. package/src/models/models_0.ts +0 -2054
  193. package/src/protocols/Aws_json1_1.ts +0 -3273
  194. package/src/runtimeConfig.browser.ts +0 -41
  195. package/src/runtimeConfig.native.ts +0 -17
  196. package/src/runtimeConfig.shared.ts +0 -17
  197. package/src/runtimeConfig.ts +0 -46
  198. package/tsconfig.es.json +0 -10
  199. package/tsconfig.json +0 -33
  200. package/tsconfig.types.json +0 -9
@@ -1,100 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import {
15
- ComprehendMedicalClientResolvedConfig,
16
- ServiceInputTypes,
17
- ServiceOutputTypes,
18
- } from "../ComprehendMedicalClient";
19
- import { StartPHIDetectionJobRequest, StartPHIDetectionJobResponse } from "../models/models_0";
20
- import {
21
- deserializeAws_json1_1StartPHIDetectionJobCommand,
22
- serializeAws_json1_1StartPHIDetectionJobCommand,
23
- } from "../protocols/Aws_json1_1";
24
-
25
- export interface StartPHIDetectionJobCommandInput extends StartPHIDetectionJobRequest {}
26
- export interface StartPHIDetectionJobCommandOutput extends StartPHIDetectionJobResponse, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Starts an asynchronous job to detect protected health information (PHI). Use the
30
- * <code>DescribePHIDetectionJob</code> operation to track the status of a job.</p>
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { ComprehendMedicalClient, StartPHIDetectionJobCommand } from "@aws-sdk/client-comprehendmedical"; // ES Modules import
35
- * // const { ComprehendMedicalClient, StartPHIDetectionJobCommand } = require("@aws-sdk/client-comprehendmedical"); // CommonJS import
36
- * const client = new ComprehendMedicalClient(config);
37
- * const command = new StartPHIDetectionJobCommand(input);
38
- * const response = await client.send(command);
39
- * ```
40
- *
41
- * @see {@link StartPHIDetectionJobCommandInput} for command's `input` shape.
42
- * @see {@link StartPHIDetectionJobCommandOutput} for command's `response` shape.
43
- * @see {@link ComprehendMedicalClientResolvedConfig | config} for command's `input` shape.
44
- *
45
- */
46
- export class StartPHIDetectionJobCommand extends $Command<
47
- StartPHIDetectionJobCommandInput,
48
- StartPHIDetectionJobCommandOutput,
49
- ComprehendMedicalClientResolvedConfig
50
- > {
51
- // Start section: command_properties
52
- // End section: command_properties
53
-
54
- constructor(readonly input: StartPHIDetectionJobCommandInput) {
55
- // Start section: command_constructor
56
- super();
57
- // End section: command_constructor
58
- }
59
-
60
- /**
61
- * @internal
62
- */
63
- resolveMiddleware(
64
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
65
- configuration: ComprehendMedicalClientResolvedConfig,
66
- options?: __HttpHandlerOptions
67
- ): Handler<StartPHIDetectionJobCommandInput, StartPHIDetectionJobCommandOutput> {
68
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
69
-
70
- const stack = clientStack.concat(this.middlewareStack);
71
-
72
- const { logger } = configuration;
73
- const clientName = "ComprehendMedicalClient";
74
- const commandName = "StartPHIDetectionJobCommand";
75
- const handlerExecutionContext: HandlerExecutionContext = {
76
- logger,
77
- clientName,
78
- commandName,
79
- inputFilterSensitiveLog: StartPHIDetectionJobRequest.filterSensitiveLog,
80
- outputFilterSensitiveLog: StartPHIDetectionJobResponse.filterSensitiveLog,
81
- };
82
- const { requestHandler } = configuration;
83
- return stack.resolve(
84
- (request: FinalizeHandlerArguments<any>) =>
85
- requestHandler.handle(request.request as __HttpRequest, options || {}),
86
- handlerExecutionContext
87
- );
88
- }
89
-
90
- private serialize(input: StartPHIDetectionJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
91
- return serializeAws_json1_1StartPHIDetectionJobCommand(input, context);
92
- }
93
-
94
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StartPHIDetectionJobCommandOutput> {
95
- return deserializeAws_json1_1StartPHIDetectionJobCommand(output, context);
96
- }
97
-
98
- // Start section: command_body_extra
99
- // End section: command_body_extra
100
- }
@@ -1,101 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import {
15
- ComprehendMedicalClientResolvedConfig,
16
- ServiceInputTypes,
17
- ServiceOutputTypes,
18
- } from "../ComprehendMedicalClient";
19
- import { StartRxNormInferenceJobRequest, StartRxNormInferenceJobResponse } from "../models/models_0";
20
- import {
21
- deserializeAws_json1_1StartRxNormInferenceJobCommand,
22
- serializeAws_json1_1StartRxNormInferenceJobCommand,
23
- } from "../protocols/Aws_json1_1";
24
-
25
- export interface StartRxNormInferenceJobCommandInput extends StartRxNormInferenceJobRequest {}
26
- export interface StartRxNormInferenceJobCommandOutput extends StartRxNormInferenceJobResponse, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Starts an asynchronous job to detect medication entities and link them to the RxNorm
30
- * ontology. Use the <code>DescribeRxNormInferenceJob</code> operation to track the status of a
31
- * job.</p>
32
- * @example
33
- * Use a bare-bones client and the command you need to make an API call.
34
- * ```javascript
35
- * import { ComprehendMedicalClient, StartRxNormInferenceJobCommand } from "@aws-sdk/client-comprehendmedical"; // ES Modules import
36
- * // const { ComprehendMedicalClient, StartRxNormInferenceJobCommand } = require("@aws-sdk/client-comprehendmedical"); // CommonJS import
37
- * const client = new ComprehendMedicalClient(config);
38
- * const command = new StartRxNormInferenceJobCommand(input);
39
- * const response = await client.send(command);
40
- * ```
41
- *
42
- * @see {@link StartRxNormInferenceJobCommandInput} for command's `input` shape.
43
- * @see {@link StartRxNormInferenceJobCommandOutput} for command's `response` shape.
44
- * @see {@link ComprehendMedicalClientResolvedConfig | config} for command's `input` shape.
45
- *
46
- */
47
- export class StartRxNormInferenceJobCommand extends $Command<
48
- StartRxNormInferenceJobCommandInput,
49
- StartRxNormInferenceJobCommandOutput,
50
- ComprehendMedicalClientResolvedConfig
51
- > {
52
- // Start section: command_properties
53
- // End section: command_properties
54
-
55
- constructor(readonly input: StartRxNormInferenceJobCommandInput) {
56
- // Start section: command_constructor
57
- super();
58
- // End section: command_constructor
59
- }
60
-
61
- /**
62
- * @internal
63
- */
64
- resolveMiddleware(
65
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
66
- configuration: ComprehendMedicalClientResolvedConfig,
67
- options?: __HttpHandlerOptions
68
- ): Handler<StartRxNormInferenceJobCommandInput, StartRxNormInferenceJobCommandOutput> {
69
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
70
-
71
- const stack = clientStack.concat(this.middlewareStack);
72
-
73
- const { logger } = configuration;
74
- const clientName = "ComprehendMedicalClient";
75
- const commandName = "StartRxNormInferenceJobCommand";
76
- const handlerExecutionContext: HandlerExecutionContext = {
77
- logger,
78
- clientName,
79
- commandName,
80
- inputFilterSensitiveLog: StartRxNormInferenceJobRequest.filterSensitiveLog,
81
- outputFilterSensitiveLog: StartRxNormInferenceJobResponse.filterSensitiveLog,
82
- };
83
- const { requestHandler } = configuration;
84
- return stack.resolve(
85
- (request: FinalizeHandlerArguments<any>) =>
86
- requestHandler.handle(request.request as __HttpRequest, options || {}),
87
- handlerExecutionContext
88
- );
89
- }
90
-
91
- private serialize(input: StartRxNormInferenceJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
92
- return serializeAws_json1_1StartRxNormInferenceJobCommand(input, context);
93
- }
94
-
95
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StartRxNormInferenceJobCommandOutput> {
96
- return deserializeAws_json1_1StartRxNormInferenceJobCommand(output, context);
97
- }
98
-
99
- // Start section: command_body_extra
100
- // End section: command_body_extra
101
- }
@@ -1,102 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import {
15
- ComprehendMedicalClientResolvedConfig,
16
- ServiceInputTypes,
17
- ServiceOutputTypes,
18
- } from "../ComprehendMedicalClient";
19
- import { StopEntitiesDetectionV2JobRequest, StopEntitiesDetectionV2JobResponse } from "../models/models_0";
20
- import {
21
- deserializeAws_json1_1StopEntitiesDetectionV2JobCommand,
22
- serializeAws_json1_1StopEntitiesDetectionV2JobCommand,
23
- } from "../protocols/Aws_json1_1";
24
-
25
- export interface StopEntitiesDetectionV2JobCommandInput extends StopEntitiesDetectionV2JobRequest {}
26
- export interface StopEntitiesDetectionV2JobCommandOutput extends StopEntitiesDetectionV2JobResponse, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Stops a medical entities detection job in progress.</p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { ComprehendMedicalClient, StopEntitiesDetectionV2JobCommand } from "@aws-sdk/client-comprehendmedical"; // ES Modules import
34
- * // const { ComprehendMedicalClient, StopEntitiesDetectionV2JobCommand } = require("@aws-sdk/client-comprehendmedical"); // CommonJS import
35
- * const client = new ComprehendMedicalClient(config);
36
- * const command = new StopEntitiesDetectionV2JobCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link StopEntitiesDetectionV2JobCommandInput} for command's `input` shape.
41
- * @see {@link StopEntitiesDetectionV2JobCommandOutput} for command's `response` shape.
42
- * @see {@link ComprehendMedicalClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class StopEntitiesDetectionV2JobCommand extends $Command<
46
- StopEntitiesDetectionV2JobCommandInput,
47
- StopEntitiesDetectionV2JobCommandOutput,
48
- ComprehendMedicalClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: StopEntitiesDetectionV2JobCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: ComprehendMedicalClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<StopEntitiesDetectionV2JobCommandInput, StopEntitiesDetectionV2JobCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
-
69
- const stack = clientStack.concat(this.middlewareStack);
70
-
71
- const { logger } = configuration;
72
- const clientName = "ComprehendMedicalClient";
73
- const commandName = "StopEntitiesDetectionV2JobCommand";
74
- const handlerExecutionContext: HandlerExecutionContext = {
75
- logger,
76
- clientName,
77
- commandName,
78
- inputFilterSensitiveLog: StopEntitiesDetectionV2JobRequest.filterSensitiveLog,
79
- outputFilterSensitiveLog: StopEntitiesDetectionV2JobResponse.filterSensitiveLog,
80
- };
81
- const { requestHandler } = configuration;
82
- return stack.resolve(
83
- (request: FinalizeHandlerArguments<any>) =>
84
- requestHandler.handle(request.request as __HttpRequest, options || {}),
85
- handlerExecutionContext
86
- );
87
- }
88
-
89
- private serialize(input: StopEntitiesDetectionV2JobCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
90
- return serializeAws_json1_1StopEntitiesDetectionV2JobCommand(input, context);
91
- }
92
-
93
- private deserialize(
94
- output: __HttpResponse,
95
- context: __SerdeContext
96
- ): Promise<StopEntitiesDetectionV2JobCommandOutput> {
97
- return deserializeAws_json1_1StopEntitiesDetectionV2JobCommand(output, context);
98
- }
99
-
100
- // Start section: command_body_extra
101
- // End section: command_body_extra
102
- }
@@ -1,99 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import {
15
- ComprehendMedicalClientResolvedConfig,
16
- ServiceInputTypes,
17
- ServiceOutputTypes,
18
- } from "../ComprehendMedicalClient";
19
- import { StopICD10CMInferenceJobRequest, StopICD10CMInferenceJobResponse } from "../models/models_0";
20
- import {
21
- deserializeAws_json1_1StopICD10CMInferenceJobCommand,
22
- serializeAws_json1_1StopICD10CMInferenceJobCommand,
23
- } from "../protocols/Aws_json1_1";
24
-
25
- export interface StopICD10CMInferenceJobCommandInput extends StopICD10CMInferenceJobRequest {}
26
- export interface StopICD10CMInferenceJobCommandOutput extends StopICD10CMInferenceJobResponse, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Stops an InferICD10CM inference job in progress.</p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { ComprehendMedicalClient, StopICD10CMInferenceJobCommand } from "@aws-sdk/client-comprehendmedical"; // ES Modules import
34
- * // const { ComprehendMedicalClient, StopICD10CMInferenceJobCommand } = require("@aws-sdk/client-comprehendmedical"); // CommonJS import
35
- * const client = new ComprehendMedicalClient(config);
36
- * const command = new StopICD10CMInferenceJobCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link StopICD10CMInferenceJobCommandInput} for command's `input` shape.
41
- * @see {@link StopICD10CMInferenceJobCommandOutput} for command's `response` shape.
42
- * @see {@link ComprehendMedicalClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class StopICD10CMInferenceJobCommand extends $Command<
46
- StopICD10CMInferenceJobCommandInput,
47
- StopICD10CMInferenceJobCommandOutput,
48
- ComprehendMedicalClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: StopICD10CMInferenceJobCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: ComprehendMedicalClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<StopICD10CMInferenceJobCommandInput, StopICD10CMInferenceJobCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
-
69
- const stack = clientStack.concat(this.middlewareStack);
70
-
71
- const { logger } = configuration;
72
- const clientName = "ComprehendMedicalClient";
73
- const commandName = "StopICD10CMInferenceJobCommand";
74
- const handlerExecutionContext: HandlerExecutionContext = {
75
- logger,
76
- clientName,
77
- commandName,
78
- inputFilterSensitiveLog: StopICD10CMInferenceJobRequest.filterSensitiveLog,
79
- outputFilterSensitiveLog: StopICD10CMInferenceJobResponse.filterSensitiveLog,
80
- };
81
- const { requestHandler } = configuration;
82
- return stack.resolve(
83
- (request: FinalizeHandlerArguments<any>) =>
84
- requestHandler.handle(request.request as __HttpRequest, options || {}),
85
- handlerExecutionContext
86
- );
87
- }
88
-
89
- private serialize(input: StopICD10CMInferenceJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
90
- return serializeAws_json1_1StopICD10CMInferenceJobCommand(input, context);
91
- }
92
-
93
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StopICD10CMInferenceJobCommandOutput> {
94
- return deserializeAws_json1_1StopICD10CMInferenceJobCommand(output, context);
95
- }
96
-
97
- // Start section: command_body_extra
98
- // End section: command_body_extra
99
- }
@@ -1,99 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import {
15
- ComprehendMedicalClientResolvedConfig,
16
- ServiceInputTypes,
17
- ServiceOutputTypes,
18
- } from "../ComprehendMedicalClient";
19
- import { StopPHIDetectionJobRequest, StopPHIDetectionJobResponse } from "../models/models_0";
20
- import {
21
- deserializeAws_json1_1StopPHIDetectionJobCommand,
22
- serializeAws_json1_1StopPHIDetectionJobCommand,
23
- } from "../protocols/Aws_json1_1";
24
-
25
- export interface StopPHIDetectionJobCommandInput extends StopPHIDetectionJobRequest {}
26
- export interface StopPHIDetectionJobCommandOutput extends StopPHIDetectionJobResponse, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Stops a protected health information (PHI) detection job in progress.</p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { ComprehendMedicalClient, StopPHIDetectionJobCommand } from "@aws-sdk/client-comprehendmedical"; // ES Modules import
34
- * // const { ComprehendMedicalClient, StopPHIDetectionJobCommand } = require("@aws-sdk/client-comprehendmedical"); // CommonJS import
35
- * const client = new ComprehendMedicalClient(config);
36
- * const command = new StopPHIDetectionJobCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link StopPHIDetectionJobCommandInput} for command's `input` shape.
41
- * @see {@link StopPHIDetectionJobCommandOutput} for command's `response` shape.
42
- * @see {@link ComprehendMedicalClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class StopPHIDetectionJobCommand extends $Command<
46
- StopPHIDetectionJobCommandInput,
47
- StopPHIDetectionJobCommandOutput,
48
- ComprehendMedicalClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: StopPHIDetectionJobCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: ComprehendMedicalClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<StopPHIDetectionJobCommandInput, StopPHIDetectionJobCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
-
69
- const stack = clientStack.concat(this.middlewareStack);
70
-
71
- const { logger } = configuration;
72
- const clientName = "ComprehendMedicalClient";
73
- const commandName = "StopPHIDetectionJobCommand";
74
- const handlerExecutionContext: HandlerExecutionContext = {
75
- logger,
76
- clientName,
77
- commandName,
78
- inputFilterSensitiveLog: StopPHIDetectionJobRequest.filterSensitiveLog,
79
- outputFilterSensitiveLog: StopPHIDetectionJobResponse.filterSensitiveLog,
80
- };
81
- const { requestHandler } = configuration;
82
- return stack.resolve(
83
- (request: FinalizeHandlerArguments<any>) =>
84
- requestHandler.handle(request.request as __HttpRequest, options || {}),
85
- handlerExecutionContext
86
- );
87
- }
88
-
89
- private serialize(input: StopPHIDetectionJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
90
- return serializeAws_json1_1StopPHIDetectionJobCommand(input, context);
91
- }
92
-
93
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StopPHIDetectionJobCommandOutput> {
94
- return deserializeAws_json1_1StopPHIDetectionJobCommand(output, context);
95
- }
96
-
97
- // Start section: command_body_extra
98
- // End section: command_body_extra
99
- }
@@ -1,99 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import {
15
- ComprehendMedicalClientResolvedConfig,
16
- ServiceInputTypes,
17
- ServiceOutputTypes,
18
- } from "../ComprehendMedicalClient";
19
- import { StopRxNormInferenceJobRequest, StopRxNormInferenceJobResponse } from "../models/models_0";
20
- import {
21
- deserializeAws_json1_1StopRxNormInferenceJobCommand,
22
- serializeAws_json1_1StopRxNormInferenceJobCommand,
23
- } from "../protocols/Aws_json1_1";
24
-
25
- export interface StopRxNormInferenceJobCommandInput extends StopRxNormInferenceJobRequest {}
26
- export interface StopRxNormInferenceJobCommandOutput extends StopRxNormInferenceJobResponse, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Stops an InferRxNorm inference job in progress.</p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { ComprehendMedicalClient, StopRxNormInferenceJobCommand } from "@aws-sdk/client-comprehendmedical"; // ES Modules import
34
- * // const { ComprehendMedicalClient, StopRxNormInferenceJobCommand } = require("@aws-sdk/client-comprehendmedical"); // CommonJS import
35
- * const client = new ComprehendMedicalClient(config);
36
- * const command = new StopRxNormInferenceJobCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link StopRxNormInferenceJobCommandInput} for command's `input` shape.
41
- * @see {@link StopRxNormInferenceJobCommandOutput} for command's `response` shape.
42
- * @see {@link ComprehendMedicalClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class StopRxNormInferenceJobCommand extends $Command<
46
- StopRxNormInferenceJobCommandInput,
47
- StopRxNormInferenceJobCommandOutput,
48
- ComprehendMedicalClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: StopRxNormInferenceJobCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: ComprehendMedicalClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<StopRxNormInferenceJobCommandInput, StopRxNormInferenceJobCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
-
69
- const stack = clientStack.concat(this.middlewareStack);
70
-
71
- const { logger } = configuration;
72
- const clientName = "ComprehendMedicalClient";
73
- const commandName = "StopRxNormInferenceJobCommand";
74
- const handlerExecutionContext: HandlerExecutionContext = {
75
- logger,
76
- clientName,
77
- commandName,
78
- inputFilterSensitiveLog: StopRxNormInferenceJobRequest.filterSensitiveLog,
79
- outputFilterSensitiveLog: StopRxNormInferenceJobResponse.filterSensitiveLog,
80
- };
81
- const { requestHandler } = configuration;
82
- return stack.resolve(
83
- (request: FinalizeHandlerArguments<any>) =>
84
- requestHandler.handle(request.request as __HttpRequest, options || {}),
85
- handlerExecutionContext
86
- );
87
- }
88
-
89
- private serialize(input: StopRxNormInferenceJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
90
- return serializeAws_json1_1StopRxNormInferenceJobCommand(input, context);
91
- }
92
-
93
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StopRxNormInferenceJobCommandOutput> {
94
- return deserializeAws_json1_1StopRxNormInferenceJobCommand(output, context);
95
- }
96
-
97
- // Start section: command_body_extra
98
- // End section: command_body_extra
99
- }
package/src/endpoints.ts DELETED
@@ -1,77 +0,0 @@
1
- import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {
5
- "fips-us-east-1": {
6
- hostname: "comprehendmedical-fips.us-east-1.amazonaws.com",
7
- signingRegion: "us-east-1",
8
- },
9
- "fips-us-east-2": {
10
- hostname: "comprehendmedical-fips.us-east-2.amazonaws.com",
11
- signingRegion: "us-east-2",
12
- },
13
- "fips-us-gov-west-1": {
14
- hostname: "comprehendmedical-fips.us-gov-west-1.amazonaws.com",
15
- signingRegion: "us-gov-west-1",
16
- },
17
- "fips-us-west-2": {
18
- hostname: "comprehendmedical-fips.us-west-2.amazonaws.com",
19
- signingRegion: "us-west-2",
20
- },
21
- };
22
-
23
- const partitionHash: PartitionHash = {
24
- aws: {
25
- regions: [
26
- "af-south-1",
27
- "ap-east-1",
28
- "ap-northeast-1",
29
- "ap-northeast-2",
30
- "ap-northeast-3",
31
- "ap-south-1",
32
- "ap-southeast-1",
33
- "ap-southeast-2",
34
- "ca-central-1",
35
- "eu-central-1",
36
- "eu-north-1",
37
- "eu-south-1",
38
- "eu-west-1",
39
- "eu-west-2",
40
- "eu-west-3",
41
- "fips-us-east-1",
42
- "fips-us-east-2",
43
- "fips-us-west-2",
44
- "me-south-1",
45
- "sa-east-1",
46
- "us-east-1",
47
- "us-east-2",
48
- "us-west-1",
49
- "us-west-2",
50
- ],
51
- hostname: "comprehendmedical.{region}.amazonaws.com",
52
- },
53
- "aws-cn": {
54
- regions: ["cn-north-1", "cn-northwest-1"],
55
- hostname: "comprehendmedical.{region}.amazonaws.com.cn",
56
- },
57
- "aws-iso": {
58
- regions: ["us-iso-east-1"],
59
- hostname: "comprehendmedical.{region}.c2s.ic.gov",
60
- },
61
- "aws-iso-b": {
62
- regions: ["us-isob-east-1"],
63
- hostname: "comprehendmedical.{region}.sc2s.sgov.gov",
64
- },
65
- "aws-us-gov": {
66
- regions: ["fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
67
- hostname: "comprehendmedical.{region}.amazonaws.com",
68
- },
69
- };
70
-
71
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
72
- getRegionInfo(region, {
73
- ...options,
74
- signingService: "comprehendmedical",
75
- regionHash,
76
- partitionHash,
77
- });