@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.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/ComprehendMedical.js +0 -5
- package/dist-cjs/ComprehendMedicalClient.js +0 -10
- package/dist-cjs/commands/DescribeEntitiesDetectionV2JobCommand.js +0 -26
- package/dist-cjs/commands/DescribeICD10CMInferenceJobCommand.js +0 -26
- package/dist-cjs/commands/DescribePHIDetectionJobCommand.js +0 -26
- package/dist-cjs/commands/DescribeRxNormInferenceJobCommand.js +0 -26
- package/dist-cjs/commands/DetectEntitiesCommand.js +0 -30
- package/dist-cjs/commands/DetectEntitiesV2Command.js +0 -34
- package/dist-cjs/commands/DetectPHICommand.js +0 -27
- package/dist-cjs/commands/InferICD10CMCommand.js +0 -28
- package/dist-cjs/commands/InferRxNormCommand.js +0 -27
- package/dist-cjs/commands/ListEntitiesDetectionV2JobsCommand.js +0 -25
- package/dist-cjs/commands/ListICD10CMInferenceJobsCommand.js +0 -25
- package/dist-cjs/commands/ListPHIDetectionJobsCommand.js +0 -26
- package/dist-cjs/commands/ListRxNormInferenceJobsCommand.js +0 -25
- package/dist-cjs/commands/StartEntitiesDetectionV2JobCommand.js +0 -26
- package/dist-cjs/commands/StartICD10CMInferenceJobCommand.js +0 -27
- package/dist-cjs/commands/StartPHIDetectionJobCommand.js +0 -26
- package/dist-cjs/commands/StartRxNormInferenceJobCommand.js +0 -27
- package/dist-cjs/commands/StopEntitiesDetectionV2JobCommand.js +0 -25
- package/dist-cjs/commands/StopICD10CMInferenceJobCommand.js +0 -25
- package/dist-cjs/commands/StopPHIDetectionJobCommand.js +0 -25
- package/dist-cjs/commands/StopRxNormInferenceJobCommand.js +0 -25
- package/dist-cjs/commands/index.js +24 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +3 -24
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -199
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/ComprehendMedical.js +0 -1
- package/dist-es/ComprehendMedicalClient.js +0 -1
- package/dist-es/commands/DescribeEntitiesDetectionV2JobCommand.js +0 -1
- package/dist-es/commands/DescribeICD10CMInferenceJobCommand.js +0 -1
- package/dist-es/commands/DescribePHIDetectionJobCommand.js +0 -1
- package/dist-es/commands/DescribeRxNormInferenceJobCommand.js +0 -1
- package/dist-es/commands/DetectEntitiesCommand.js +0 -1
- package/dist-es/commands/DetectEntitiesV2Command.js +0 -1
- package/dist-es/commands/DetectPHICommand.js +0 -1
- package/dist-es/commands/InferICD10CMCommand.js +0 -1
- package/dist-es/commands/InferRxNormCommand.js +0 -1
- package/dist-es/commands/ListEntitiesDetectionV2JobsCommand.js +0 -1
- package/dist-es/commands/ListICD10CMInferenceJobsCommand.js +0 -1
- package/dist-es/commands/ListPHIDetectionJobsCommand.js +0 -1
- package/dist-es/commands/ListRxNormInferenceJobsCommand.js +0 -1
- package/dist-es/commands/StartEntitiesDetectionV2JobCommand.js +0 -1
- package/dist-es/commands/StartICD10CMInferenceJobCommand.js +0 -1
- package/dist-es/commands/StartPHIDetectionJobCommand.js +0 -1
- package/dist-es/commands/StartRxNormInferenceJobCommand.js +0 -1
- package/dist-es/commands/StopEntitiesDetectionV2JobCommand.js +0 -1
- package/dist-es/commands/StopICD10CMInferenceJobCommand.js +0 -1
- package/dist-es/commands/StopPHIDetectionJobCommand.js +0 -1
- package/dist-es/commands/StopRxNormInferenceJobCommand.js +0 -1
- package/dist-es/commands/index.js +21 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +3 -24
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +21 -0
- package/dist-types/index.d.ts +3 -23
- package/dist-types/ts3.4/ComprehendMedical.d.ts +22 -99
- package/dist-types/ts3.4/ComprehendMedicalClient.d.ts +24 -90
- package/dist-types/ts3.4/commands/DescribeEntitiesDetectionV2JobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeICD10CMInferenceJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribePHIDetectionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeRxNormInferenceJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DetectEntitiesCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DetectEntitiesV2Command.d.ts +2 -29
- package/dist-types/ts3.4/commands/DetectPHICommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/InferICD10CMCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/InferRxNormCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/ListEntitiesDetectionV2JobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListICD10CMInferenceJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListPHIDetectionJobsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListRxNormInferenceJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StartEntitiesDetectionV2JobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/StartICD10CMInferenceJobCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/StartPHIDetectionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/StartRxNormInferenceJobCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/StopEntitiesDetectionV2JobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StopICD10CMInferenceJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StopPHIDetectionJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StopRxNormInferenceJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +21 -0
- package/dist-types/ts3.4/index.d.ts +3 -23
- package/dist-types/ts3.4/models/models_0.d.ts +273 -985
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/ComprehendMedical.js.map +0 -1
- package/dist-cjs/ComprehendMedicalClient.js.map +0 -1
- package/dist-cjs/commands/DescribeEntitiesDetectionV2JobCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeICD10CMInferenceJobCommand.js.map +0 -1
- package/dist-cjs/commands/DescribePHIDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeRxNormInferenceJobCommand.js.map +0 -1
- package/dist-cjs/commands/DetectEntitiesCommand.js.map +0 -1
- package/dist-cjs/commands/DetectEntitiesV2Command.js.map +0 -1
- package/dist-cjs/commands/DetectPHICommand.js.map +0 -1
- package/dist-cjs/commands/InferICD10CMCommand.js.map +0 -1
- package/dist-cjs/commands/InferRxNormCommand.js.map +0 -1
- package/dist-cjs/commands/ListEntitiesDetectionV2JobsCommand.js.map +0 -1
- package/dist-cjs/commands/ListICD10CMInferenceJobsCommand.js.map +0 -1
- package/dist-cjs/commands/ListPHIDetectionJobsCommand.js.map +0 -1
- package/dist-cjs/commands/ListRxNormInferenceJobsCommand.js.map +0 -1
- package/dist-cjs/commands/StartEntitiesDetectionV2JobCommand.js.map +0 -1
- package/dist-cjs/commands/StartICD10CMInferenceJobCommand.js.map +0 -1
- package/dist-cjs/commands/StartPHIDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/StartRxNormInferenceJobCommand.js.map +0 -1
- package/dist-cjs/commands/StopEntitiesDetectionV2JobCommand.js.map +0 -1
- package/dist-cjs/commands/StopICD10CMInferenceJobCommand.js.map +0 -1
- package/dist-cjs/commands/StopPHIDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/StopRxNormInferenceJobCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/ComprehendMedical.js.map +0 -1
- package/dist-es/ComprehendMedicalClient.js.map +0 -1
- package/dist-es/commands/DescribeEntitiesDetectionV2JobCommand.js.map +0 -1
- package/dist-es/commands/DescribeICD10CMInferenceJobCommand.js.map +0 -1
- package/dist-es/commands/DescribePHIDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/DescribeRxNormInferenceJobCommand.js.map +0 -1
- package/dist-es/commands/DetectEntitiesCommand.js.map +0 -1
- package/dist-es/commands/DetectEntitiesV2Command.js.map +0 -1
- package/dist-es/commands/DetectPHICommand.js.map +0 -1
- package/dist-es/commands/InferICD10CMCommand.js.map +0 -1
- package/dist-es/commands/InferRxNormCommand.js.map +0 -1
- package/dist-es/commands/ListEntitiesDetectionV2JobsCommand.js.map +0 -1
- package/dist-es/commands/ListICD10CMInferenceJobsCommand.js.map +0 -1
- package/dist-es/commands/ListPHIDetectionJobsCommand.js.map +0 -1
- package/dist-es/commands/ListRxNormInferenceJobsCommand.js.map +0 -1
- package/dist-es/commands/StartEntitiesDetectionV2JobCommand.js.map +0 -1
- package/dist-es/commands/StartICD10CMInferenceJobCommand.js.map +0 -1
- package/dist-es/commands/StartPHIDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/StartRxNormInferenceJobCommand.js.map +0 -1
- package/dist-es/commands/StopEntitiesDetectionV2JobCommand.js.map +0 -1
- package/dist-es/commands/StopICD10CMInferenceJobCommand.js.map +0 -1
- package/dist-es/commands/StopPHIDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/StopRxNormInferenceJobCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/ComprehendMedical.ts +0 -795
- package/src/ComprehendMedicalClient.ts +0 -348
- package/src/commands/DescribeEntitiesDetectionV2JobCommand.ts +0 -108
- package/src/commands/DescribeICD10CMInferenceJobCommand.ts +0 -105
- package/src/commands/DescribePHIDetectionJobCommand.ts +0 -100
- package/src/commands/DescribeRxNormInferenceJobCommand.ts +0 -103
- package/src/commands/DetectEntitiesCommand.ts +0 -104
- package/src/commands/DetectEntitiesV2Command.ts +0 -108
- package/src/commands/DetectPHICommand.ts +0 -98
- package/src/commands/InferICD10CMCommand.ts +0 -102
- package/src/commands/InferRxNormCommand.ts +0 -101
- package/src/commands/ListEntitiesDetectionV2JobsCommand.ts +0 -104
- package/src/commands/ListICD10CMInferenceJobsCommand.ts +0 -99
- package/src/commands/ListPHIDetectionJobsCommand.ts +0 -100
- package/src/commands/ListRxNormInferenceJobsCommand.ts +0 -99
- package/src/commands/StartEntitiesDetectionV2JobCommand.ts +0 -105
- package/src/commands/StartICD10CMInferenceJobCommand.ts +0 -101
- package/src/commands/StartPHIDetectionJobCommand.ts +0 -100
- package/src/commands/StartRxNormInferenceJobCommand.ts +0 -101
- package/src/commands/StopEntitiesDetectionV2JobCommand.ts +0 -102
- package/src/commands/StopICD10CMInferenceJobCommand.ts +0 -99
- package/src/commands/StopPHIDetectionJobCommand.ts +0 -99
- package/src/commands/StopRxNormInferenceJobCommand.ts +0 -99
- package/src/endpoints.ts +0 -77
- package/src/index.ts +0 -24
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2054
- package/src/protocols/Aws_json1_1.ts +0 -3273
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- 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
|
-
});
|