@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,132 +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 { CreateDataSourceFromRedshiftInput, CreateDataSourceFromRedshiftOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreateDataSourceFromRedshiftCommand,
|
|
18
|
-
serializeAws_json1_1CreateDataSourceFromRedshiftCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreateDataSourceFromRedshiftCommandInput extends CreateDataSourceFromRedshiftInput {}
|
|
22
|
-
export interface CreateDataSourceFromRedshiftCommandOutput
|
|
23
|
-
extends CreateDataSourceFromRedshiftOutput,
|
|
24
|
-
__MetadataBearer {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* <p>Creates a <code>DataSource</code> from a database hosted on an Amazon Redshift cluster. A
|
|
28
|
-
* <code>DataSource</code> references data that can be used to perform either <code>CreateMLModel</code>, <code>CreateEvaluation</code>, or <code>CreateBatchPrediction</code>
|
|
29
|
-
* operations.</p>
|
|
30
|
-
*
|
|
31
|
-
* <p>
|
|
32
|
-
* <code>CreateDataSourceFromRedshift</code> is an asynchronous operation. In response to <code>CreateDataSourceFromRedshift</code>, Amazon Machine Learning (Amazon ML) immediately returns and sets the <code>DataSource</code> status to <code>PENDING</code>.
|
|
33
|
-
* After the <code>DataSource</code> is created and ready for use, Amazon ML sets the <code>Status</code> parameter to <code>COMPLETED</code>.
|
|
34
|
-
* <code>DataSource</code> in <code>COMPLETED</code> or <code>PENDING</code> states can be
|
|
35
|
-
* used to perform only <code>CreateMLModel</code>, <code>CreateEvaluation</code>, or <code>CreateBatchPrediction</code> operations.
|
|
36
|
-
* </p>
|
|
37
|
-
*
|
|
38
|
-
* <p>
|
|
39
|
-
* If Amazon ML can't accept the input source, it sets the <code>Status</code> parameter to <code>FAILED</code> and includes an error message in the <code>Message</code>
|
|
40
|
-
* attribute of the <code>GetDataSource</code> operation response.
|
|
41
|
-
* </p>
|
|
42
|
-
*
|
|
43
|
-
* <p>The observations should be contained in the database hosted on an Amazon Redshift cluster
|
|
44
|
-
* and should be specified by a <code>SelectSqlQuery</code> query. Amazon ML executes an
|
|
45
|
-
* <code>Unload</code> command in Amazon Redshift to transfer the result set of
|
|
46
|
-
* the <code>SelectSqlQuery</code> query to <code>S3StagingLocation</code>.</p>
|
|
47
|
-
*
|
|
48
|
-
* <p>After the <code>DataSource</code> has been created, it's ready for use in evaluations and
|
|
49
|
-
* batch predictions. If you plan to use the <code>DataSource</code> to train an
|
|
50
|
-
* <code>MLModel</code>, the <code>DataSource</code> also requires a recipe. A recipe
|
|
51
|
-
* describes how each input variable will be used in training an <code>MLModel</code>. Will
|
|
52
|
-
* the variable be included or excluded from training? Will the variable be manipulated;
|
|
53
|
-
* for example, will it be combined with another variable or will it be split apart into
|
|
54
|
-
* word combinations? The recipe provides answers to these questions.</p>
|
|
55
|
-
* <p>You can't change an existing datasource, but you can copy and modify the settings from an
|
|
56
|
-
* existing Amazon Redshift datasource to create a new datasource. To do so, call
|
|
57
|
-
* <code>GetDataSource</code> for an existing datasource and copy the values to a
|
|
58
|
-
* <code>CreateDataSource</code> call. Change the settings that you want to change and
|
|
59
|
-
* make sure that all required fields have the appropriate values.</p>
|
|
60
|
-
* @example
|
|
61
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
62
|
-
* ```javascript
|
|
63
|
-
* import { MachineLearningClient, CreateDataSourceFromRedshiftCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
|
|
64
|
-
* // const { MachineLearningClient, CreateDataSourceFromRedshiftCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
|
|
65
|
-
* const client = new MachineLearningClient(config);
|
|
66
|
-
* const command = new CreateDataSourceFromRedshiftCommand(input);
|
|
67
|
-
* const response = await client.send(command);
|
|
68
|
-
* ```
|
|
69
|
-
*
|
|
70
|
-
* @see {@link CreateDataSourceFromRedshiftCommandInput} for command's `input` shape.
|
|
71
|
-
* @see {@link CreateDataSourceFromRedshiftCommandOutput} for command's `response` shape.
|
|
72
|
-
* @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
|
|
73
|
-
*
|
|
74
|
-
*/
|
|
75
|
-
export class CreateDataSourceFromRedshiftCommand extends $Command<
|
|
76
|
-
CreateDataSourceFromRedshiftCommandInput,
|
|
77
|
-
CreateDataSourceFromRedshiftCommandOutput,
|
|
78
|
-
MachineLearningClientResolvedConfig
|
|
79
|
-
> {
|
|
80
|
-
// Start section: command_properties
|
|
81
|
-
// End section: command_properties
|
|
82
|
-
|
|
83
|
-
constructor(readonly input: CreateDataSourceFromRedshiftCommandInput) {
|
|
84
|
-
// Start section: command_constructor
|
|
85
|
-
super();
|
|
86
|
-
// End section: command_constructor
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* @internal
|
|
91
|
-
*/
|
|
92
|
-
resolveMiddleware(
|
|
93
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
94
|
-
configuration: MachineLearningClientResolvedConfig,
|
|
95
|
-
options?: __HttpHandlerOptions
|
|
96
|
-
): Handler<CreateDataSourceFromRedshiftCommandInput, CreateDataSourceFromRedshiftCommandOutput> {
|
|
97
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
98
|
-
|
|
99
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
100
|
-
|
|
101
|
-
const { logger } = configuration;
|
|
102
|
-
const clientName = "MachineLearningClient";
|
|
103
|
-
const commandName = "CreateDataSourceFromRedshiftCommand";
|
|
104
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
105
|
-
logger,
|
|
106
|
-
clientName,
|
|
107
|
-
commandName,
|
|
108
|
-
inputFilterSensitiveLog: CreateDataSourceFromRedshiftInput.filterSensitiveLog,
|
|
109
|
-
outputFilterSensitiveLog: CreateDataSourceFromRedshiftOutput.filterSensitiveLog,
|
|
110
|
-
};
|
|
111
|
-
const { requestHandler } = configuration;
|
|
112
|
-
return stack.resolve(
|
|
113
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
114
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
115
|
-
handlerExecutionContext
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
private serialize(input: CreateDataSourceFromRedshiftCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
120
|
-
return serializeAws_json1_1CreateDataSourceFromRedshiftCommand(input, context);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
private deserialize(
|
|
124
|
-
output: __HttpResponse,
|
|
125
|
-
context: __SerdeContext
|
|
126
|
-
): Promise<CreateDataSourceFromRedshiftCommandOutput> {
|
|
127
|
-
return deserializeAws_json1_1CreateDataSourceFromRedshiftCommand(output, context);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// Start section: command_body_extra
|
|
131
|
-
// End section: command_body_extra
|
|
132
|
-
}
|
|
@@ -1,125 +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 { CreateDataSourceFromS3Input, CreateDataSourceFromS3Output } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreateDataSourceFromS3Command,
|
|
18
|
-
serializeAws_json1_1CreateDataSourceFromS3Command,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreateDataSourceFromS3CommandInput extends CreateDataSourceFromS3Input {}
|
|
22
|
-
export interface CreateDataSourceFromS3CommandOutput extends CreateDataSourceFromS3Output, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a <code>DataSource</code> object. A <code>DataSource</code> references data that
|
|
26
|
-
* can be used to perform <code>CreateMLModel</code>, <code>CreateEvaluation</code>, or
|
|
27
|
-
* <code>CreateBatchPrediction</code> operations.</p>
|
|
28
|
-
*
|
|
29
|
-
* <p>
|
|
30
|
-
* <code>CreateDataSourceFromS3</code> is an asynchronous operation. In response to
|
|
31
|
-
* <code>CreateDataSourceFromS3</code>, Amazon Machine Learning (Amazon ML) immediately
|
|
32
|
-
* returns and sets the <code>DataSource</code> status to <code>PENDING</code>. After the
|
|
33
|
-
* <code>DataSource</code> has been created and is ready for use, Amazon ML sets the
|
|
34
|
-
* <code>Status</code> parameter to <code>COMPLETED</code>. <code>DataSource</code> in
|
|
35
|
-
* the <code>COMPLETED</code> or <code>PENDING</code> state can be used to perform only
|
|
36
|
-
* <code>CreateMLModel</code>, <code>CreateEvaluation</code> or
|
|
37
|
-
* <code>CreateBatchPrediction</code> operations. </p>
|
|
38
|
-
*
|
|
39
|
-
* <p> If Amazon ML can't accept the input source, it sets the <code>Status</code> parameter to
|
|
40
|
-
* <code>FAILED</code> and includes an error message in the <code>Message</code>
|
|
41
|
-
* attribute of the <code>GetDataSource</code> operation response. </p>
|
|
42
|
-
*
|
|
43
|
-
* <p>The observation data used in a <code>DataSource</code> should be ready to use; that is,
|
|
44
|
-
* it should have a consistent structure, and missing data values should be kept to a
|
|
45
|
-
* minimum. The observation data must reside in one or more .csv files in an Amazon Simple
|
|
46
|
-
* Storage Service (Amazon S3) location, along with a schema that describes the data items
|
|
47
|
-
* by name and type. The same schema must be used for all of the data files referenced by
|
|
48
|
-
* the <code>DataSource</code>. </p>
|
|
49
|
-
* <p>After the <code>DataSource</code> has been created, it's ready to use in evaluations and
|
|
50
|
-
* batch predictions. If you plan to use the <code>DataSource</code> to train an
|
|
51
|
-
* <code>MLModel</code>, the <code>DataSource</code> also needs a recipe. A recipe
|
|
52
|
-
* describes how each input variable will be used in training an <code>MLModel</code>. Will
|
|
53
|
-
* the variable be included or excluded from training? Will the variable be manipulated;
|
|
54
|
-
* for example, will it be combined with another variable or will it be split apart into
|
|
55
|
-
* word combinations? The recipe provides answers to these questions.</p>
|
|
56
|
-
* @example
|
|
57
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
58
|
-
* ```javascript
|
|
59
|
-
* import { MachineLearningClient, CreateDataSourceFromS3Command } from "@aws-sdk/client-machine-learning"; // ES Modules import
|
|
60
|
-
* // const { MachineLearningClient, CreateDataSourceFromS3Command } = require("@aws-sdk/client-machine-learning"); // CommonJS import
|
|
61
|
-
* const client = new MachineLearningClient(config);
|
|
62
|
-
* const command = new CreateDataSourceFromS3Command(input);
|
|
63
|
-
* const response = await client.send(command);
|
|
64
|
-
* ```
|
|
65
|
-
*
|
|
66
|
-
* @see {@link CreateDataSourceFromS3CommandInput} for command's `input` shape.
|
|
67
|
-
* @see {@link CreateDataSourceFromS3CommandOutput} for command's `response` shape.
|
|
68
|
-
* @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
|
|
69
|
-
*
|
|
70
|
-
*/
|
|
71
|
-
export class CreateDataSourceFromS3Command extends $Command<
|
|
72
|
-
CreateDataSourceFromS3CommandInput,
|
|
73
|
-
CreateDataSourceFromS3CommandOutput,
|
|
74
|
-
MachineLearningClientResolvedConfig
|
|
75
|
-
> {
|
|
76
|
-
// Start section: command_properties
|
|
77
|
-
// End section: command_properties
|
|
78
|
-
|
|
79
|
-
constructor(readonly input: CreateDataSourceFromS3CommandInput) {
|
|
80
|
-
// Start section: command_constructor
|
|
81
|
-
super();
|
|
82
|
-
// End section: command_constructor
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
resolveMiddleware(
|
|
89
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
90
|
-
configuration: MachineLearningClientResolvedConfig,
|
|
91
|
-
options?: __HttpHandlerOptions
|
|
92
|
-
): Handler<CreateDataSourceFromS3CommandInput, CreateDataSourceFromS3CommandOutput> {
|
|
93
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
94
|
-
|
|
95
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
96
|
-
|
|
97
|
-
const { logger } = configuration;
|
|
98
|
-
const clientName = "MachineLearningClient";
|
|
99
|
-
const commandName = "CreateDataSourceFromS3Command";
|
|
100
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
101
|
-
logger,
|
|
102
|
-
clientName,
|
|
103
|
-
commandName,
|
|
104
|
-
inputFilterSensitiveLog: CreateDataSourceFromS3Input.filterSensitiveLog,
|
|
105
|
-
outputFilterSensitiveLog: CreateDataSourceFromS3Output.filterSensitiveLog,
|
|
106
|
-
};
|
|
107
|
-
const { requestHandler } = configuration;
|
|
108
|
-
return stack.resolve(
|
|
109
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
110
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
111
|
-
handlerExecutionContext
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
private serialize(input: CreateDataSourceFromS3CommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
116
|
-
return serializeAws_json1_1CreateDataSourceFromS3Command(input, context);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateDataSourceFromS3CommandOutput> {
|
|
120
|
-
return deserializeAws_json1_1CreateDataSourceFromS3Command(output, context);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Start section: command_body_extra
|
|
124
|
-
// End section: command_body_extra
|
|
125
|
-
}
|
|
@@ -1,106 +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 { CreateEvaluationInput, CreateEvaluationOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreateEvaluationCommand,
|
|
18
|
-
serializeAws_json1_1CreateEvaluationCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreateEvaluationCommandInput extends CreateEvaluationInput {}
|
|
22
|
-
export interface CreateEvaluationCommandOutput extends CreateEvaluationOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a new <code>Evaluation</code> of an <code>MLModel</code>. An <code>MLModel</code> is evaluated on a set of observations associated to a <code>DataSource</code>. Like a <code>DataSource</code>
|
|
26
|
-
* for an <code>MLModel</code>, the <code>DataSource</code> for an <code>Evaluation</code> contains values for the <code>Target Variable</code>. The <code>Evaluation</code> compares the predicted result for each observation to the actual outcome and provides a
|
|
27
|
-
* summary so that you know how effective the <code>MLModel</code> functions on the test
|
|
28
|
-
* data. Evaluation generates a relevant performance metric, such as BinaryAUC, RegressionRMSE or MulticlassAvgFScore based on the corresponding <code>MLModelType</code>: <code>BINARY</code>, <code>REGRESSION</code> or <code>MULTICLASS</code>.
|
|
29
|
-
*
|
|
30
|
-
* </p>
|
|
31
|
-
* <p>
|
|
32
|
-
* <code>CreateEvaluation</code> is an asynchronous operation. In response to <code>CreateEvaluation</code>, Amazon Machine Learning (Amazon ML) immediately
|
|
33
|
-
* returns and sets the evaluation status to <code>PENDING</code>. After the <code>Evaluation</code> is created and ready for use,
|
|
34
|
-
* Amazon ML sets the status to <code>COMPLETED</code>.
|
|
35
|
-
* </p>
|
|
36
|
-
* <p>You can use the <code>GetEvaluation</code> operation to check progress of the evaluation during the creation operation.</p>
|
|
37
|
-
* @example
|
|
38
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
-
* ```javascript
|
|
40
|
-
* import { MachineLearningClient, CreateEvaluationCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
|
|
41
|
-
* // const { MachineLearningClient, CreateEvaluationCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
|
|
42
|
-
* const client = new MachineLearningClient(config);
|
|
43
|
-
* const command = new CreateEvaluationCommand(input);
|
|
44
|
-
* const response = await client.send(command);
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @see {@link CreateEvaluationCommandInput} for command's `input` shape.
|
|
48
|
-
* @see {@link CreateEvaluationCommandOutput} for command's `response` shape.
|
|
49
|
-
* @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
export class CreateEvaluationCommand extends $Command<
|
|
53
|
-
CreateEvaluationCommandInput,
|
|
54
|
-
CreateEvaluationCommandOutput,
|
|
55
|
-
MachineLearningClientResolvedConfig
|
|
56
|
-
> {
|
|
57
|
-
// Start section: command_properties
|
|
58
|
-
// End section: command_properties
|
|
59
|
-
|
|
60
|
-
constructor(readonly input: CreateEvaluationCommandInput) {
|
|
61
|
-
// Start section: command_constructor
|
|
62
|
-
super();
|
|
63
|
-
// End section: command_constructor
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @internal
|
|
68
|
-
*/
|
|
69
|
-
resolveMiddleware(
|
|
70
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
71
|
-
configuration: MachineLearningClientResolvedConfig,
|
|
72
|
-
options?: __HttpHandlerOptions
|
|
73
|
-
): Handler<CreateEvaluationCommandInput, CreateEvaluationCommandOutput> {
|
|
74
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
75
|
-
|
|
76
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
77
|
-
|
|
78
|
-
const { logger } = configuration;
|
|
79
|
-
const clientName = "MachineLearningClient";
|
|
80
|
-
const commandName = "CreateEvaluationCommand";
|
|
81
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
82
|
-
logger,
|
|
83
|
-
clientName,
|
|
84
|
-
commandName,
|
|
85
|
-
inputFilterSensitiveLog: CreateEvaluationInput.filterSensitiveLog,
|
|
86
|
-
outputFilterSensitiveLog: CreateEvaluationOutput.filterSensitiveLog,
|
|
87
|
-
};
|
|
88
|
-
const { requestHandler } = configuration;
|
|
89
|
-
return stack.resolve(
|
|
90
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
91
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
92
|
-
handlerExecutionContext
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
private serialize(input: CreateEvaluationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
97
|
-
return serializeAws_json1_1CreateEvaluationCommand(input, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateEvaluationCommandOutput> {
|
|
101
|
-
return deserializeAws_json1_1CreateEvaluationCommand(output, context);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Start section: command_body_extra
|
|
105
|
-
// End section: command_body_extra
|
|
106
|
-
}
|
|
@@ -1,114 +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 { CreateMLModelInput, CreateMLModelOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreateMLModelCommand,
|
|
18
|
-
serializeAws_json1_1CreateMLModelCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreateMLModelCommandInput extends CreateMLModelInput {}
|
|
22
|
-
export interface CreateMLModelCommandOutput extends CreateMLModelOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a new <code>MLModel</code> using the <code>DataSource</code> and the recipe as
|
|
26
|
-
* information sources. </p>
|
|
27
|
-
* <p>An <code>MLModel</code> is nearly immutable. Users can update only the
|
|
28
|
-
* <code>MLModelName</code> and the <code>ScoreThreshold</code> in an
|
|
29
|
-
* <code>MLModel</code> without creating a new <code>MLModel</code>. </p>
|
|
30
|
-
* <p>
|
|
31
|
-
* <code>CreateMLModel</code> is an asynchronous operation. In response to
|
|
32
|
-
* <code>CreateMLModel</code>, Amazon Machine Learning (Amazon ML) immediately returns
|
|
33
|
-
* and sets the <code>MLModel</code> status to <code>PENDING</code>. After the
|
|
34
|
-
* <code>MLModel</code> has been created and ready is for use, Amazon ML sets the
|
|
35
|
-
* status to <code>COMPLETED</code>. </p>
|
|
36
|
-
* <p>You can use the <code>GetMLModel</code> operation to check the progress of the
|
|
37
|
-
* <code>MLModel</code> during the creation operation.</p>
|
|
38
|
-
*
|
|
39
|
-
* <p>
|
|
40
|
-
* <code>CreateMLModel</code> requires a <code>DataSource</code> with computed statistics,
|
|
41
|
-
* which can be created by setting <code>ComputeStatistics</code> to <code>true</code> in
|
|
42
|
-
* <code>CreateDataSourceFromRDS</code>, <code>CreateDataSourceFromS3</code>, or
|
|
43
|
-
* <code>CreateDataSourceFromRedshift</code> operations.
|
|
44
|
-
* </p>
|
|
45
|
-
* @example
|
|
46
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
47
|
-
* ```javascript
|
|
48
|
-
* import { MachineLearningClient, CreateMLModelCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
|
|
49
|
-
* // const { MachineLearningClient, CreateMLModelCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
|
|
50
|
-
* const client = new MachineLearningClient(config);
|
|
51
|
-
* const command = new CreateMLModelCommand(input);
|
|
52
|
-
* const response = await client.send(command);
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* @see {@link CreateMLModelCommandInput} for command's `input` shape.
|
|
56
|
-
* @see {@link CreateMLModelCommandOutput} for command's `response` shape.
|
|
57
|
-
* @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
|
-
export class CreateMLModelCommand extends $Command<
|
|
61
|
-
CreateMLModelCommandInput,
|
|
62
|
-
CreateMLModelCommandOutput,
|
|
63
|
-
MachineLearningClientResolvedConfig
|
|
64
|
-
> {
|
|
65
|
-
// Start section: command_properties
|
|
66
|
-
// End section: command_properties
|
|
67
|
-
|
|
68
|
-
constructor(readonly input: CreateMLModelCommandInput) {
|
|
69
|
-
// Start section: command_constructor
|
|
70
|
-
super();
|
|
71
|
-
// End section: command_constructor
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
*/
|
|
77
|
-
resolveMiddleware(
|
|
78
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
79
|
-
configuration: MachineLearningClientResolvedConfig,
|
|
80
|
-
options?: __HttpHandlerOptions
|
|
81
|
-
): Handler<CreateMLModelCommandInput, CreateMLModelCommandOutput> {
|
|
82
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
83
|
-
|
|
84
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
85
|
-
|
|
86
|
-
const { logger } = configuration;
|
|
87
|
-
const clientName = "MachineLearningClient";
|
|
88
|
-
const commandName = "CreateMLModelCommand";
|
|
89
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
90
|
-
logger,
|
|
91
|
-
clientName,
|
|
92
|
-
commandName,
|
|
93
|
-
inputFilterSensitiveLog: CreateMLModelInput.filterSensitiveLog,
|
|
94
|
-
outputFilterSensitiveLog: CreateMLModelOutput.filterSensitiveLog,
|
|
95
|
-
};
|
|
96
|
-
const { requestHandler } = configuration;
|
|
97
|
-
return stack.resolve(
|
|
98
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
99
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
100
|
-
handlerExecutionContext
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
private serialize(input: CreateMLModelCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
105
|
-
return serializeAws_json1_1CreateMLModelCommand(input, context);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateMLModelCommandOutput> {
|
|
109
|
-
return deserializeAws_json1_1CreateMLModelCommand(output, context);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// Start section: command_body_extra
|
|
113
|
-
// End section: command_body_extra
|
|
114
|
-
}
|
|
@@ -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 { CreateRealtimeEndpointInput, CreateRealtimeEndpointOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreateRealtimeEndpointCommand,
|
|
18
|
-
serializeAws_json1_1CreateRealtimeEndpointCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreateRealtimeEndpointCommandInput extends CreateRealtimeEndpointInput {}
|
|
22
|
-
export interface CreateRealtimeEndpointCommandOutput extends CreateRealtimeEndpointOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a real-time endpoint for the <code>MLModel</code>. The endpoint contains the URI of the <code>MLModel</code>; that is, the location to send real-time prediction requests for the specified <code>MLModel</code>.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { MachineLearningClient, CreateRealtimeEndpointCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
|
|
30
|
-
* // const { MachineLearningClient, CreateRealtimeEndpointCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
|
|
31
|
-
* const client = new MachineLearningClient(config);
|
|
32
|
-
* const command = new CreateRealtimeEndpointCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link CreateRealtimeEndpointCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link CreateRealtimeEndpointCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class CreateRealtimeEndpointCommand extends $Command<
|
|
42
|
-
CreateRealtimeEndpointCommandInput,
|
|
43
|
-
CreateRealtimeEndpointCommandOutput,
|
|
44
|
-
MachineLearningClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: CreateRealtimeEndpointCommandInput) {
|
|
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<CreateRealtimeEndpointCommandInput, CreateRealtimeEndpointCommandOutput> {
|
|
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 = "CreateRealtimeEndpointCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: CreateRealtimeEndpointInput.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: CreateRealtimeEndpointOutput.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: CreateRealtimeEndpointCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1CreateRealtimeEndpointCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateRealtimeEndpointCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1CreateRealtimeEndpointCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|