@aws-sdk/client-machine-learning 3.35.0 → 3.36.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 +13 -0
- package/dist-cjs/MachineLearning.js +0 -1
- package/dist-cjs/MachineLearningClient.js +0 -1
- package/dist-cjs/commands/AddTagsCommand.js +0 -1
- package/dist-cjs/commands/CreateBatchPredictionCommand.js +0 -1
- package/dist-cjs/commands/CreateDataSourceFromRDSCommand.js +0 -1
- package/dist-cjs/commands/CreateDataSourceFromRedshiftCommand.js +0 -1
- package/dist-cjs/commands/CreateDataSourceFromS3Command.js +0 -1
- package/dist-cjs/commands/CreateEvaluationCommand.js +0 -1
- package/dist-cjs/commands/CreateMLModelCommand.js +0 -1
- package/dist-cjs/commands/CreateRealtimeEndpointCommand.js +0 -1
- package/dist-cjs/commands/DeleteBatchPredictionCommand.js +0 -1
- package/dist-cjs/commands/DeleteDataSourceCommand.js +0 -1
- package/dist-cjs/commands/DeleteEvaluationCommand.js +0 -1
- package/dist-cjs/commands/DeleteMLModelCommand.js +0 -1
- package/dist-cjs/commands/DeleteRealtimeEndpointCommand.js +0 -1
- package/dist-cjs/commands/DeleteTagsCommand.js +0 -1
- package/dist-cjs/commands/DescribeBatchPredictionsCommand.js +0 -1
- package/dist-cjs/commands/DescribeDataSourcesCommand.js +0 -1
- package/dist-cjs/commands/DescribeEvaluationsCommand.js +0 -1
- package/dist-cjs/commands/DescribeMLModelsCommand.js +0 -1
- package/dist-cjs/commands/DescribeTagsCommand.js +0 -1
- package/dist-cjs/commands/GetBatchPredictionCommand.js +0 -1
- package/dist-cjs/commands/GetDataSourceCommand.js +0 -1
- package/dist-cjs/commands/GetEvaluationCommand.js +0 -1
- package/dist-cjs/commands/GetMLModelCommand.js +0 -1
- package/dist-cjs/commands/PredictCommand.js +0 -1
- package/dist-cjs/commands/UpdateBatchPredictionCommand.js +0 -1
- package/dist-cjs/commands/UpdateDataSourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateEvaluationCommand.js +0 -1
- package/dist-cjs/commands/UpdateMLModelCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/DescribeBatchPredictionsPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeDataSourcesPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeEvaluationsPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeMLModelsPaginator.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-cjs/waiters/waitForBatchPredictionAvailable.js +0 -1
- package/dist-cjs/waiters/waitForDataSourceAvailable.js +0 -1
- package/dist-cjs/waiters/waitForEvaluationAvailable.js +0 -1
- package/dist-cjs/waiters/waitForMLModelAvailable.js +0 -1
- package/dist-es/MachineLearning.js +0 -1
- package/dist-es/MachineLearningClient.js +0 -1
- package/dist-es/commands/AddTagsCommand.js +0 -1
- package/dist-es/commands/CreateBatchPredictionCommand.js +0 -1
- package/dist-es/commands/CreateDataSourceFromRDSCommand.js +0 -1
- package/dist-es/commands/CreateDataSourceFromRedshiftCommand.js +0 -1
- package/dist-es/commands/CreateDataSourceFromS3Command.js +0 -1
- package/dist-es/commands/CreateEvaluationCommand.js +0 -1
- package/dist-es/commands/CreateMLModelCommand.js +0 -1
- package/dist-es/commands/CreateRealtimeEndpointCommand.js +0 -1
- package/dist-es/commands/DeleteBatchPredictionCommand.js +0 -1
- package/dist-es/commands/DeleteDataSourceCommand.js +0 -1
- package/dist-es/commands/DeleteEvaluationCommand.js +0 -1
- package/dist-es/commands/DeleteMLModelCommand.js +0 -1
- package/dist-es/commands/DeleteRealtimeEndpointCommand.js +0 -1
- package/dist-es/commands/DeleteTagsCommand.js +0 -1
- package/dist-es/commands/DescribeBatchPredictionsCommand.js +0 -1
- package/dist-es/commands/DescribeDataSourcesCommand.js +0 -1
- package/dist-es/commands/DescribeEvaluationsCommand.js +0 -1
- package/dist-es/commands/DescribeMLModelsCommand.js +0 -1
- package/dist-es/commands/DescribeTagsCommand.js +0 -1
- package/dist-es/commands/GetBatchPredictionCommand.js +0 -1
- package/dist-es/commands/GetDataSourceCommand.js +0 -1
- package/dist-es/commands/GetEvaluationCommand.js +0 -1
- package/dist-es/commands/GetMLModelCommand.js +0 -1
- package/dist-es/commands/PredictCommand.js +0 -1
- package/dist-es/commands/UpdateBatchPredictionCommand.js +0 -1
- package/dist-es/commands/UpdateDataSourceCommand.js +0 -1
- package/dist-es/commands/UpdateEvaluationCommand.js +0 -1
- package/dist-es/commands/UpdateMLModelCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/DescribeBatchPredictionsPaginator.js +0 -1
- package/dist-es/pagination/DescribeDataSourcesPaginator.js +0 -1
- package/dist-es/pagination/DescribeEvaluationsPaginator.js +0 -1
- package/dist-es/pagination/DescribeMLModelsPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.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-es/waiters/waitForBatchPredictionAvailable.js +0 -1
- package/dist-es/waiters/waitForDataSourceAvailable.js +0 -1
- package/dist-es/waiters/waitForEvaluationAvailable.js +0 -1
- package/dist-es/waiters/waitForMLModelAvailable.js +0 -1
- package/package.json +35 -32
- package/dist-cjs/MachineLearning.js.map +0 -1
- package/dist-cjs/MachineLearningClient.js.map +0 -1
- package/dist-cjs/commands/AddTagsCommand.js.map +0 -1
- package/dist-cjs/commands/CreateBatchPredictionCommand.js.map +0 -1
- package/dist-cjs/commands/CreateDataSourceFromRDSCommand.js.map +0 -1
- package/dist-cjs/commands/CreateDataSourceFromRedshiftCommand.js.map +0 -1
- package/dist-cjs/commands/CreateDataSourceFromS3Command.js.map +0 -1
- package/dist-cjs/commands/CreateEvaluationCommand.js.map +0 -1
- package/dist-cjs/commands/CreateMLModelCommand.js.map +0 -1
- package/dist-cjs/commands/CreateRealtimeEndpointCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteBatchPredictionCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteDataSourceCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteEvaluationCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteMLModelCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRealtimeEndpointCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteTagsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeBatchPredictionsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeDataSourcesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeEvaluationsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeMLModelsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeTagsCommand.js.map +0 -1
- package/dist-cjs/commands/GetBatchPredictionCommand.js.map +0 -1
- package/dist-cjs/commands/GetDataSourceCommand.js.map +0 -1
- package/dist-cjs/commands/GetEvaluationCommand.js.map +0 -1
- package/dist-cjs/commands/GetMLModelCommand.js.map +0 -1
- package/dist-cjs/commands/PredictCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateBatchPredictionCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateDataSourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateEvaluationCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateMLModelCommand.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/pagination/DescribeBatchPredictionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeDataSourcesPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeEvaluationsPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeMLModelsPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.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-cjs/waiters/waitForBatchPredictionAvailable.js.map +0 -1
- package/dist-cjs/waiters/waitForDataSourceAvailable.js.map +0 -1
- package/dist-cjs/waiters/waitForEvaluationAvailable.js.map +0 -1
- package/dist-cjs/waiters/waitForMLModelAvailable.js.map +0 -1
- package/dist-es/MachineLearning.js.map +0 -1
- package/dist-es/MachineLearningClient.js.map +0 -1
- package/dist-es/commands/AddTagsCommand.js.map +0 -1
- package/dist-es/commands/CreateBatchPredictionCommand.js.map +0 -1
- package/dist-es/commands/CreateDataSourceFromRDSCommand.js.map +0 -1
- package/dist-es/commands/CreateDataSourceFromRedshiftCommand.js.map +0 -1
- package/dist-es/commands/CreateDataSourceFromS3Command.js.map +0 -1
- package/dist-es/commands/CreateEvaluationCommand.js.map +0 -1
- package/dist-es/commands/CreateMLModelCommand.js.map +0 -1
- package/dist-es/commands/CreateRealtimeEndpointCommand.js.map +0 -1
- package/dist-es/commands/DeleteBatchPredictionCommand.js.map +0 -1
- package/dist-es/commands/DeleteDataSourceCommand.js.map +0 -1
- package/dist-es/commands/DeleteEvaluationCommand.js.map +0 -1
- package/dist-es/commands/DeleteMLModelCommand.js.map +0 -1
- package/dist-es/commands/DeleteRealtimeEndpointCommand.js.map +0 -1
- package/dist-es/commands/DeleteTagsCommand.js.map +0 -1
- package/dist-es/commands/DescribeBatchPredictionsCommand.js.map +0 -1
- package/dist-es/commands/DescribeDataSourcesCommand.js.map +0 -1
- package/dist-es/commands/DescribeEvaluationsCommand.js.map +0 -1
- package/dist-es/commands/DescribeMLModelsCommand.js.map +0 -1
- package/dist-es/commands/DescribeTagsCommand.js.map +0 -1
- package/dist-es/commands/GetBatchPredictionCommand.js.map +0 -1
- package/dist-es/commands/GetDataSourceCommand.js.map +0 -1
- package/dist-es/commands/GetEvaluationCommand.js.map +0 -1
- package/dist-es/commands/GetMLModelCommand.js.map +0 -1
- package/dist-es/commands/PredictCommand.js.map +0 -1
- package/dist-es/commands/UpdateBatchPredictionCommand.js.map +0 -1
- package/dist-es/commands/UpdateDataSourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateEvaluationCommand.js.map +0 -1
- package/dist-es/commands/UpdateMLModelCommand.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/pagination/DescribeBatchPredictionsPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeDataSourcesPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeEvaluationsPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeMLModelsPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.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/dist-es/waiters/waitForBatchPredictionAvailable.js.map +0 -1
- package/dist-es/waiters/waitForDataSourceAvailable.js.map +0 -1
- package/dist-es/waiters/waitForEvaluationAvailable.js.map +0 -1
- package/dist-es/waiters/waitForMLModelAvailable.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/MachineLearning.ts +0 -1150
- package/src/MachineLearningClient.ts +0 -354
- package/src/commands/AddTagsCommand.ts +0 -94
- package/src/commands/CreateBatchPredictionCommand.ts +0 -106
- package/src/commands/CreateDataSourceFromRDSCommand.ts +0 -106
- package/src/commands/CreateDataSourceFromRedshiftCommand.ts +0 -132
- package/src/commands/CreateDataSourceFromS3Command.ts +0 -125
- package/src/commands/CreateEvaluationCommand.ts +0 -106
- package/src/commands/CreateMLModelCommand.ts +0 -114
- package/src/commands/CreateRealtimeEndpointCommand.ts +0 -95
- package/src/commands/DeleteBatchPredictionCommand.ts +0 -100
- package/src/commands/DeleteDataSourceCommand.ts +0 -98
- package/src/commands/DeleteEvaluationCommand.ts +0 -100
- package/src/commands/DeleteMLModelCommand.ts +0 -100
- package/src/commands/DeleteRealtimeEndpointCommand.ts +0 -95
- package/src/commands/DeleteTagsCommand.ts +0 -96
- package/src/commands/DescribeBatchPredictionsCommand.ts +0 -95
- package/src/commands/DescribeDataSourcesCommand.ts +0 -95
- package/src/commands/DescribeEvaluationsCommand.ts +0 -95
- package/src/commands/DescribeMLModelsCommand.ts +0 -95
- package/src/commands/DescribeTagsCommand.ts +0 -95
- package/src/commands/GetBatchPredictionCommand.ts +0 -96
- package/src/commands/GetDataSourceCommand.ts +0 -98
- package/src/commands/GetEvaluationCommand.ts +0 -95
- package/src/commands/GetMLModelCommand.ts +0 -97
- package/src/commands/PredictCommand.ts +0 -97
- package/src/commands/UpdateBatchPredictionCommand.ts +0 -96
- package/src/commands/UpdateDataSourceCommand.ts +0 -96
- package/src/commands/UpdateEvaluationCommand.ts +0 -96
- package/src/commands/UpdateMLModelCommand.ts +0 -96
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -40
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -4066
- package/src/pagination/DescribeBatchPredictionsPaginator.ts +0 -59
- package/src/pagination/DescribeDataSourcesPaginator.ts +0 -59
- package/src/pagination/DescribeEvaluationsPaginator.ts +0 -59
- package/src/pagination/DescribeMLModelsPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/protocols/Aws_json1_1.ts +0 -3958
- 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/src/waiters/waitForBatchPredictionAvailable.ts +0 -75
- package/src/waiters/waitForDataSourceAvailable.ts +0 -72
- package/src/waiters/waitForEvaluationAvailable.ts +0 -72
- package/src/waiters/waitForMLModelAvailable.ts +0 -72
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,95 +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 { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
|
|
15
|
-
import { DescribeBatchPredictionsInput, DescribeBatchPredictionsOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DescribeBatchPredictionsCommand,
|
|
18
|
-
serializeAws_json1_1DescribeBatchPredictionsCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DescribeBatchPredictionsCommandInput extends DescribeBatchPredictionsInput {}
|
|
22
|
-
export interface DescribeBatchPredictionsCommandOutput extends DescribeBatchPredictionsOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns a list of <code>BatchPrediction</code> operations that match the search criteria in the request.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { MachineLearningClient, DescribeBatchPredictionsCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
|
|
30
|
-
* // const { MachineLearningClient, DescribeBatchPredictionsCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
|
|
31
|
-
* const client = new MachineLearningClient(config);
|
|
32
|
-
* const command = new DescribeBatchPredictionsCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link DescribeBatchPredictionsCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link DescribeBatchPredictionsCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class DescribeBatchPredictionsCommand extends $Command<
|
|
42
|
-
DescribeBatchPredictionsCommandInput,
|
|
43
|
-
DescribeBatchPredictionsCommandOutput,
|
|
44
|
-
MachineLearningClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: DescribeBatchPredictionsCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: MachineLearningClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<DescribeBatchPredictionsCommandInput, DescribeBatchPredictionsCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "MachineLearningClient";
|
|
69
|
-
const commandName = "DescribeBatchPredictionsCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: DescribeBatchPredictionsInput.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: DescribeBatchPredictionsOutput.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: DescribeBatchPredictionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1DescribeBatchPredictionsCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeBatchPredictionsCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1DescribeBatchPredictionsCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,95 +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 { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
|
|
15
|
-
import { DescribeDataSourcesInput, DescribeDataSourcesOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DescribeDataSourcesCommand,
|
|
18
|
-
serializeAws_json1_1DescribeDataSourcesCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DescribeDataSourcesCommandInput extends DescribeDataSourcesInput {}
|
|
22
|
-
export interface DescribeDataSourcesCommandOutput extends DescribeDataSourcesOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns a list of <code>DataSource</code> that match the search criteria in the request.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { MachineLearningClient, DescribeDataSourcesCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
|
|
30
|
-
* // const { MachineLearningClient, DescribeDataSourcesCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
|
|
31
|
-
* const client = new MachineLearningClient(config);
|
|
32
|
-
* const command = new DescribeDataSourcesCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link DescribeDataSourcesCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link DescribeDataSourcesCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class DescribeDataSourcesCommand extends $Command<
|
|
42
|
-
DescribeDataSourcesCommandInput,
|
|
43
|
-
DescribeDataSourcesCommandOutput,
|
|
44
|
-
MachineLearningClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: DescribeDataSourcesCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: MachineLearningClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<DescribeDataSourcesCommandInput, DescribeDataSourcesCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "MachineLearningClient";
|
|
69
|
-
const commandName = "DescribeDataSourcesCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: DescribeDataSourcesInput.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: DescribeDataSourcesOutput.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: DescribeDataSourcesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1DescribeDataSourcesCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeDataSourcesCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1DescribeDataSourcesCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,95 +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 { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
|
|
15
|
-
import { DescribeEvaluationsInput, DescribeEvaluationsOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DescribeEvaluationsCommand,
|
|
18
|
-
serializeAws_json1_1DescribeEvaluationsCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DescribeEvaluationsCommandInput extends DescribeEvaluationsInput {}
|
|
22
|
-
export interface DescribeEvaluationsCommandOutput extends DescribeEvaluationsOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns a list of <code>DescribeEvaluations</code> that match the search criteria in the request.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { MachineLearningClient, DescribeEvaluationsCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
|
|
30
|
-
* // const { MachineLearningClient, DescribeEvaluationsCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
|
|
31
|
-
* const client = new MachineLearningClient(config);
|
|
32
|
-
* const command = new DescribeEvaluationsCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link DescribeEvaluationsCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link DescribeEvaluationsCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class DescribeEvaluationsCommand extends $Command<
|
|
42
|
-
DescribeEvaluationsCommandInput,
|
|
43
|
-
DescribeEvaluationsCommandOutput,
|
|
44
|
-
MachineLearningClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: DescribeEvaluationsCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: MachineLearningClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<DescribeEvaluationsCommandInput, DescribeEvaluationsCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "MachineLearningClient";
|
|
69
|
-
const commandName = "DescribeEvaluationsCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: DescribeEvaluationsInput.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: DescribeEvaluationsOutput.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: DescribeEvaluationsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1DescribeEvaluationsCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeEvaluationsCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1DescribeEvaluationsCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,95 +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 { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
|
|
15
|
-
import { DescribeMLModelsInput, DescribeMLModelsOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DescribeMLModelsCommand,
|
|
18
|
-
serializeAws_json1_1DescribeMLModelsCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DescribeMLModelsCommandInput extends DescribeMLModelsInput {}
|
|
22
|
-
export interface DescribeMLModelsCommandOutput extends DescribeMLModelsOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns a list of <code>MLModel</code> that match the search criteria in the request.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { MachineLearningClient, DescribeMLModelsCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
|
|
30
|
-
* // const { MachineLearningClient, DescribeMLModelsCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
|
|
31
|
-
* const client = new MachineLearningClient(config);
|
|
32
|
-
* const command = new DescribeMLModelsCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link DescribeMLModelsCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link DescribeMLModelsCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class DescribeMLModelsCommand extends $Command<
|
|
42
|
-
DescribeMLModelsCommandInput,
|
|
43
|
-
DescribeMLModelsCommandOutput,
|
|
44
|
-
MachineLearningClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: DescribeMLModelsCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: MachineLearningClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<DescribeMLModelsCommandInput, DescribeMLModelsCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "MachineLearningClient";
|
|
69
|
-
const commandName = "DescribeMLModelsCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: DescribeMLModelsInput.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: DescribeMLModelsOutput.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: DescribeMLModelsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1DescribeMLModelsCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeMLModelsCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1DescribeMLModelsCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,95 +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 { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
|
|
15
|
-
import { DescribeTagsInput, DescribeTagsOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1DescribeTagsCommand,
|
|
18
|
-
serializeAws_json1_1DescribeTagsCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface DescribeTagsCommandInput extends DescribeTagsInput {}
|
|
22
|
-
export interface DescribeTagsCommandOutput extends DescribeTagsOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Describes one or more of the tags for your Amazon ML object.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { MachineLearningClient, DescribeTagsCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
|
|
30
|
-
* // const { MachineLearningClient, DescribeTagsCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
|
|
31
|
-
* const client = new MachineLearningClient(config);
|
|
32
|
-
* const command = new DescribeTagsCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link DescribeTagsCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link DescribeTagsCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class DescribeTagsCommand extends $Command<
|
|
42
|
-
DescribeTagsCommandInput,
|
|
43
|
-
DescribeTagsCommandOutput,
|
|
44
|
-
MachineLearningClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: DescribeTagsCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: MachineLearningClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<DescribeTagsCommandInput, DescribeTagsCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "MachineLearningClient";
|
|
69
|
-
const commandName = "DescribeTagsCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: DescribeTagsInput.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: DescribeTagsOutput.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: DescribeTagsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1DescribeTagsCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeTagsCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1DescribeTagsCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,96 +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 { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
|
|
15
|
-
import { GetBatchPredictionInput, GetBatchPredictionOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1GetBatchPredictionCommand,
|
|
18
|
-
serializeAws_json1_1GetBatchPredictionCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface GetBatchPredictionCommandInput extends GetBatchPredictionInput {}
|
|
22
|
-
export interface GetBatchPredictionCommandOutput extends GetBatchPredictionOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns a <code>BatchPrediction</code> that includes detailed metadata, status, and data file information for a
|
|
26
|
-
* <code>Batch Prediction</code> request.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { MachineLearningClient, GetBatchPredictionCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
|
|
31
|
-
* // const { MachineLearningClient, GetBatchPredictionCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
|
|
32
|
-
* const client = new MachineLearningClient(config);
|
|
33
|
-
* const command = new GetBatchPredictionCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link GetBatchPredictionCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link GetBatchPredictionCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class GetBatchPredictionCommand extends $Command<
|
|
43
|
-
GetBatchPredictionCommandInput,
|
|
44
|
-
GetBatchPredictionCommandOutput,
|
|
45
|
-
MachineLearningClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: GetBatchPredictionCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: MachineLearningClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<GetBatchPredictionCommandInput, GetBatchPredictionCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "MachineLearningClient";
|
|
70
|
-
const commandName = "GetBatchPredictionCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: GetBatchPredictionInput.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: GetBatchPredictionOutput.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: GetBatchPredictionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_1GetBatchPredictionCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetBatchPredictionCommandOutput> {
|
|
91
|
-
return deserializeAws_json1_1GetBatchPredictionCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -1,98 +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 { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
|
|
15
|
-
import { GetDataSourceInput, GetDataSourceOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1GetDataSourceCommand,
|
|
18
|
-
serializeAws_json1_1GetDataSourceCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface GetDataSourceCommandInput extends GetDataSourceInput {}
|
|
22
|
-
export interface GetDataSourceCommandOutput extends GetDataSourceOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns a <code>DataSource</code> that includes metadata and data file information, as well as the current status of the <code>DataSource</code>.</p>
|
|
26
|
-
* <p>
|
|
27
|
-
* <code>GetDataSource</code> provides results in normal or verbose format. The verbose format
|
|
28
|
-
* adds the schema description and the list of files pointed to by the DataSource to the normal format.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { MachineLearningClient, GetDataSourceCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
|
|
33
|
-
* // const { MachineLearningClient, GetDataSourceCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
|
|
34
|
-
* const client = new MachineLearningClient(config);
|
|
35
|
-
* const command = new GetDataSourceCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link GetDataSourceCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link GetDataSourceCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class GetDataSourceCommand extends $Command<
|
|
45
|
-
GetDataSourceCommandInput,
|
|
46
|
-
GetDataSourceCommandOutput,
|
|
47
|
-
MachineLearningClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: GetDataSourceCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: MachineLearningClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<GetDataSourceCommandInput, GetDataSourceCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "MachineLearningClient";
|
|
72
|
-
const commandName = "GetDataSourceCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: GetDataSourceInput.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: GetDataSourceOutput.filterSensitiveLog,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: GetDataSourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_json1_1GetDataSourceCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetDataSourceCommandOutput> {
|
|
93
|
-
return deserializeAws_json1_1GetDataSourceCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|