@aws-sdk/client-comprehendmedical 3.193.0 → 3.195.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 (136) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/ComprehendMedicalClient.js +11 -8
  3. package/dist-cjs/commands/DescribeEntitiesDetectionV2JobCommand.js +10 -0
  4. package/dist-cjs/commands/DescribeICD10CMInferenceJobCommand.js +10 -0
  5. package/dist-cjs/commands/DescribePHIDetectionJobCommand.js +10 -0
  6. package/dist-cjs/commands/DescribeRxNormInferenceJobCommand.js +10 -0
  7. package/dist-cjs/commands/DescribeSNOMEDCTInferenceJobCommand.js +10 -0
  8. package/dist-cjs/commands/DetectEntitiesCommand.js +10 -0
  9. package/dist-cjs/commands/DetectEntitiesV2Command.js +10 -0
  10. package/dist-cjs/commands/DetectPHICommand.js +10 -0
  11. package/dist-cjs/commands/InferICD10CMCommand.js +10 -0
  12. package/dist-cjs/commands/InferRxNormCommand.js +10 -0
  13. package/dist-cjs/commands/InferSNOMEDCTCommand.js +10 -0
  14. package/dist-cjs/commands/ListEntitiesDetectionV2JobsCommand.js +10 -0
  15. package/dist-cjs/commands/ListICD10CMInferenceJobsCommand.js +10 -0
  16. package/dist-cjs/commands/ListPHIDetectionJobsCommand.js +10 -0
  17. package/dist-cjs/commands/ListRxNormInferenceJobsCommand.js +10 -0
  18. package/dist-cjs/commands/ListSNOMEDCTInferenceJobsCommand.js +10 -0
  19. package/dist-cjs/commands/StartEntitiesDetectionV2JobCommand.js +10 -0
  20. package/dist-cjs/commands/StartICD10CMInferenceJobCommand.js +10 -0
  21. package/dist-cjs/commands/StartPHIDetectionJobCommand.js +10 -0
  22. package/dist-cjs/commands/StartRxNormInferenceJobCommand.js +10 -0
  23. package/dist-cjs/commands/StartSNOMEDCTInferenceJobCommand.js +10 -0
  24. package/dist-cjs/commands/StopEntitiesDetectionV2JobCommand.js +10 -0
  25. package/dist-cjs/commands/StopICD10CMInferenceJobCommand.js +10 -0
  26. package/dist-cjs/commands/StopPHIDetectionJobCommand.js +10 -0
  27. package/dist-cjs/commands/StopRxNormInferenceJobCommand.js +10 -0
  28. package/dist-cjs/commands/StopSNOMEDCTInferenceJobCommand.js +10 -0
  29. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  30. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  31. package/dist-cjs/endpoint/ruleset.js +318 -0
  32. package/dist-cjs/runtimeConfig.shared.js +3 -3
  33. package/dist-es/ComprehendMedicalClient.js +12 -9
  34. package/dist-es/commands/DescribeEntitiesDetectionV2JobCommand.js +10 -0
  35. package/dist-es/commands/DescribeICD10CMInferenceJobCommand.js +10 -0
  36. package/dist-es/commands/DescribePHIDetectionJobCommand.js +10 -0
  37. package/dist-es/commands/DescribeRxNormInferenceJobCommand.js +10 -0
  38. package/dist-es/commands/DescribeSNOMEDCTInferenceJobCommand.js +10 -0
  39. package/dist-es/commands/DetectEntitiesCommand.js +10 -0
  40. package/dist-es/commands/DetectEntitiesV2Command.js +10 -0
  41. package/dist-es/commands/DetectPHICommand.js +10 -0
  42. package/dist-es/commands/InferICD10CMCommand.js +10 -0
  43. package/dist-es/commands/InferRxNormCommand.js +10 -0
  44. package/dist-es/commands/InferSNOMEDCTCommand.js +10 -0
  45. package/dist-es/commands/ListEntitiesDetectionV2JobsCommand.js +10 -0
  46. package/dist-es/commands/ListICD10CMInferenceJobsCommand.js +10 -0
  47. package/dist-es/commands/ListPHIDetectionJobsCommand.js +10 -0
  48. package/dist-es/commands/ListRxNormInferenceJobsCommand.js +10 -0
  49. package/dist-es/commands/ListSNOMEDCTInferenceJobsCommand.js +10 -0
  50. package/dist-es/commands/StartEntitiesDetectionV2JobCommand.js +10 -0
  51. package/dist-es/commands/StartICD10CMInferenceJobCommand.js +10 -0
  52. package/dist-es/commands/StartPHIDetectionJobCommand.js +10 -0
  53. package/dist-es/commands/StartRxNormInferenceJobCommand.js +10 -0
  54. package/dist-es/commands/StartSNOMEDCTInferenceJobCommand.js +10 -0
  55. package/dist-es/commands/StopEntitiesDetectionV2JobCommand.js +10 -0
  56. package/dist-es/commands/StopICD10CMInferenceJobCommand.js +10 -0
  57. package/dist-es/commands/StopPHIDetectionJobCommand.js +10 -0
  58. package/dist-es/commands/StopRxNormInferenceJobCommand.js +10 -0
  59. package/dist-es/commands/StopSNOMEDCTInferenceJobCommand.js +10 -0
  60. package/dist-es/endpoint/EndpointParameters.js +8 -0
  61. package/dist-es/endpoint/endpointResolver.js +8 -0
  62. package/dist-es/endpoint/ruleset.js +315 -0
  63. package/dist-es/runtimeConfig.shared.js +2 -2
  64. package/dist-types/ComprehendMedicalClient.d.ts +6 -9
  65. package/dist-types/commands/DescribeEntitiesDetectionV2JobCommand.d.ts +2 -0
  66. package/dist-types/commands/DescribeICD10CMInferenceJobCommand.d.ts +2 -0
  67. package/dist-types/commands/DescribePHIDetectionJobCommand.d.ts +2 -0
  68. package/dist-types/commands/DescribeRxNormInferenceJobCommand.d.ts +2 -0
  69. package/dist-types/commands/DescribeSNOMEDCTInferenceJobCommand.d.ts +2 -0
  70. package/dist-types/commands/DetectEntitiesCommand.d.ts +2 -0
  71. package/dist-types/commands/DetectEntitiesV2Command.d.ts +2 -0
  72. package/dist-types/commands/DetectPHICommand.d.ts +2 -0
  73. package/dist-types/commands/InferICD10CMCommand.d.ts +2 -0
  74. package/dist-types/commands/InferRxNormCommand.d.ts +2 -0
  75. package/dist-types/commands/InferSNOMEDCTCommand.d.ts +2 -0
  76. package/dist-types/commands/ListEntitiesDetectionV2JobsCommand.d.ts +2 -0
  77. package/dist-types/commands/ListICD10CMInferenceJobsCommand.d.ts +2 -0
  78. package/dist-types/commands/ListPHIDetectionJobsCommand.d.ts +2 -0
  79. package/dist-types/commands/ListRxNormInferenceJobsCommand.d.ts +2 -0
  80. package/dist-types/commands/ListSNOMEDCTInferenceJobsCommand.d.ts +2 -0
  81. package/dist-types/commands/StartEntitiesDetectionV2JobCommand.d.ts +2 -0
  82. package/dist-types/commands/StartICD10CMInferenceJobCommand.d.ts +2 -0
  83. package/dist-types/commands/StartPHIDetectionJobCommand.d.ts +2 -0
  84. package/dist-types/commands/StartRxNormInferenceJobCommand.d.ts +2 -0
  85. package/dist-types/commands/StartSNOMEDCTInferenceJobCommand.d.ts +2 -0
  86. package/dist-types/commands/StopEntitiesDetectionV2JobCommand.d.ts +2 -0
  87. package/dist-types/commands/StopICD10CMInferenceJobCommand.d.ts +2 -0
  88. package/dist-types/commands/StopPHIDetectionJobCommand.d.ts +2 -0
  89. package/dist-types/commands/StopRxNormInferenceJobCommand.d.ts +2 -0
  90. package/dist-types/commands/StopSNOMEDCTInferenceJobCommand.d.ts +2 -0
  91. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  92. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  93. package/dist-types/endpoint/ruleset.d.ts +2 -0
  94. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  95. package/dist-types/runtimeConfig.d.ts +4 -2
  96. package/dist-types/runtimeConfig.native.d.ts +4 -2
  97. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  98. package/dist-types/ts3.4/ComprehendMedicalClient.d.ts +15 -8
  99. package/dist-types/ts3.4/commands/DescribeEntitiesDetectionV2JobCommand.d.ts +2 -0
  100. package/dist-types/ts3.4/commands/DescribeICD10CMInferenceJobCommand.d.ts +2 -0
  101. package/dist-types/ts3.4/commands/DescribePHIDetectionJobCommand.d.ts +2 -0
  102. package/dist-types/ts3.4/commands/DescribeRxNormInferenceJobCommand.d.ts +2 -0
  103. package/dist-types/ts3.4/commands/DescribeSNOMEDCTInferenceJobCommand.d.ts +2 -0
  104. package/dist-types/ts3.4/commands/DetectEntitiesCommand.d.ts +2 -0
  105. package/dist-types/ts3.4/commands/DetectEntitiesV2Command.d.ts +2 -0
  106. package/dist-types/ts3.4/commands/DetectPHICommand.d.ts +2 -0
  107. package/dist-types/ts3.4/commands/InferICD10CMCommand.d.ts +2 -0
  108. package/dist-types/ts3.4/commands/InferRxNormCommand.d.ts +2 -0
  109. package/dist-types/ts3.4/commands/InferSNOMEDCTCommand.d.ts +2 -0
  110. package/dist-types/ts3.4/commands/ListEntitiesDetectionV2JobsCommand.d.ts +2 -0
  111. package/dist-types/ts3.4/commands/ListICD10CMInferenceJobsCommand.d.ts +2 -0
  112. package/dist-types/ts3.4/commands/ListPHIDetectionJobsCommand.d.ts +2 -0
  113. package/dist-types/ts3.4/commands/ListRxNormInferenceJobsCommand.d.ts +2 -0
  114. package/dist-types/ts3.4/commands/ListSNOMEDCTInferenceJobsCommand.d.ts +2 -0
  115. package/dist-types/ts3.4/commands/StartEntitiesDetectionV2JobCommand.d.ts +2 -0
  116. package/dist-types/ts3.4/commands/StartICD10CMInferenceJobCommand.d.ts +2 -0
  117. package/dist-types/ts3.4/commands/StartPHIDetectionJobCommand.d.ts +2 -0
  118. package/dist-types/ts3.4/commands/StartRxNormInferenceJobCommand.d.ts +2 -0
  119. package/dist-types/ts3.4/commands/StartSNOMEDCTInferenceJobCommand.d.ts +2 -0
  120. package/dist-types/ts3.4/commands/StopEntitiesDetectionV2JobCommand.d.ts +2 -0
  121. package/dist-types/ts3.4/commands/StopICD10CMInferenceJobCommand.d.ts +2 -0
  122. package/dist-types/ts3.4/commands/StopPHIDetectionJobCommand.d.ts +2 -0
  123. package/dist-types/ts3.4/commands/StopRxNormInferenceJobCommand.d.ts +2 -0
  124. package/dist-types/ts3.4/commands/StopSNOMEDCTInferenceJobCommand.d.ts +2 -0
  125. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  126. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  127. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  128. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  129. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  130. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  131. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  132. package/package.json +4 -2
  133. package/dist-cjs/endpoints.js +0 -168
  134. package/dist-es/endpoints.js +0 -164
  135. package/dist-types/endpoints.d.ts +0 -2
  136. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DetectEntitiesRequestFilterSensitiveLog, DetectEntitiesResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DetectEntitiesCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DetectEntitiesCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DetectEntitiesV2RequestFilterSensitiveLog, DetectEntitiesV2ResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DetectEntitiesV2Command extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DetectEntitiesV2Command.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DetectPHIRequestFilterSensitiveLog, DetectPHIResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DetectPHICommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DetectPHICommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { InferICD10CMRequestFilterSensitiveLog, InferICD10CMResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class InferICD10CMCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, InferICD10CMCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { InferRxNormRequestFilterSensitiveLog, InferRxNormResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class InferRxNormCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, InferRxNormCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { InferSNOMEDCTRequestFilterSensitiveLog, InferSNOMEDCTResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class InferSNOMEDCTCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, InferSNOMEDCTCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListEntitiesDetectionV2JobsRequestFilterSensitiveLog, ListEntitiesDetectionV2JobsResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class ListEntitiesDetectionV2JobsCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListEntitiesDetectionV2JobsCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListICD10CMInferenceJobsRequestFilterSensitiveLog, ListICD10CMInferenceJobsResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class ListICD10CMInferenceJobsCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListICD10CMInferenceJobsCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListPHIDetectionJobsRequestFilterSensitiveLog, ListPHIDetectionJobsResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class ListPHIDetectionJobsCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListPHIDetectionJobsCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListRxNormInferenceJobsRequestFilterSensitiveLog, ListRxNormInferenceJobsResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class ListRxNormInferenceJobsCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListRxNormInferenceJobsCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListSNOMEDCTInferenceJobsRequestFilterSensitiveLog, ListSNOMEDCTInferenceJobsResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class ListSNOMEDCTInferenceJobsCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListSNOMEDCTInferenceJobsCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartEntitiesDetectionV2JobRequestFilterSensitiveLog, StartEntitiesDetectionV2JobResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class StartEntitiesDetectionV2JobCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, StartEntitiesDetectionV2JobCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartICD10CMInferenceJobRequestFilterSensitiveLog, StartICD10CMInferenceJobResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class StartICD10CMInferenceJobCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, StartICD10CMInferenceJobCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartPHIDetectionJobRequestFilterSensitiveLog, StartPHIDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class StartPHIDetectionJobCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, StartPHIDetectionJobCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartRxNormInferenceJobRequestFilterSensitiveLog, StartRxNormInferenceJobResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class StartRxNormInferenceJobCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, StartRxNormInferenceJobCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartSNOMEDCTInferenceJobRequestFilterSensitiveLog, StartSNOMEDCTInferenceJobResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class StartSNOMEDCTInferenceJobCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, StartSNOMEDCTInferenceJobCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
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";
@@ -7,8 +8,17 @@ export class StopEntitiesDetectionV2JobCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, StopEntitiesDetectionV2JobCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
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";
@@ -7,8 +8,17 @@ export class StopICD10CMInferenceJobCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, StopICD10CMInferenceJobCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
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";
@@ -7,8 +8,17 @@ export class StopPHIDetectionJobCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, StopPHIDetectionJobCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
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";
@@ -7,8 +8,17 @@ export class StopRxNormInferenceJobCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, StopRxNormInferenceJobCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
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";
@@ -7,8 +8,17 @@ export class StopSNOMEDCTInferenceJobCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, StopSNOMEDCTInferenceJobCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "ComprehendMedicalClient";
@@ -0,0 +1,8 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return {
3
+ ...options,
4
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
5
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
6
+ defaultSigningName: "comprehendmedical",
7
+ };
8
+ };
@@ -0,0 +1,8 @@
1
+ import { resolveEndpoint } from "@aws-sdk/util-endpoints";
2
+ import { ruleSet } from "./ruleset";
3
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
+ return resolveEndpoint(ruleSet, {
5
+ endpointParams: endpointParams,
6
+ logger: context.logger,
7
+ });
8
+ };