@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,354 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EndpointsInputConfig,
|
|
3
|
-
EndpointsResolvedConfig,
|
|
4
|
-
RegionInputConfig,
|
|
5
|
-
RegionResolvedConfig,
|
|
6
|
-
resolveEndpointsConfig,
|
|
7
|
-
resolveRegionConfig,
|
|
8
|
-
} from "@aws-sdk/config-resolver";
|
|
9
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
10
|
-
import {
|
|
11
|
-
getHostHeaderPlugin,
|
|
12
|
-
HostHeaderInputConfig,
|
|
13
|
-
HostHeaderResolvedConfig,
|
|
14
|
-
resolveHostHeaderConfig,
|
|
15
|
-
} from "@aws-sdk/middleware-host-header";
|
|
16
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
17
|
-
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
18
|
-
import {
|
|
19
|
-
AwsAuthInputConfig,
|
|
20
|
-
AwsAuthResolvedConfig,
|
|
21
|
-
getAwsAuthPlugin,
|
|
22
|
-
resolveAwsAuthConfig,
|
|
23
|
-
} from "@aws-sdk/middleware-signing";
|
|
24
|
-
import {
|
|
25
|
-
getUserAgentPlugin,
|
|
26
|
-
resolveUserAgentConfig,
|
|
27
|
-
UserAgentInputConfig,
|
|
28
|
-
UserAgentResolvedConfig,
|
|
29
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
30
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
31
|
-
import {
|
|
32
|
-
Client as __Client,
|
|
33
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
34
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
35
|
-
} from "@aws-sdk/smithy-client";
|
|
36
|
-
import {
|
|
37
|
-
Credentials as __Credentials,
|
|
38
|
-
Decoder as __Decoder,
|
|
39
|
-
Encoder as __Encoder,
|
|
40
|
-
Hash as __Hash,
|
|
41
|
-
HashConstructor as __HashConstructor,
|
|
42
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
43
|
-
Logger as __Logger,
|
|
44
|
-
Provider as __Provider,
|
|
45
|
-
Provider,
|
|
46
|
-
RegionInfoProvider,
|
|
47
|
-
StreamCollector as __StreamCollector,
|
|
48
|
-
UrlParser as __UrlParser,
|
|
49
|
-
UserAgent as __UserAgent,
|
|
50
|
-
} from "@aws-sdk/types";
|
|
51
|
-
|
|
52
|
-
import { AddTagsCommandInput, AddTagsCommandOutput } from "./commands/AddTagsCommand";
|
|
53
|
-
import {
|
|
54
|
-
CreateBatchPredictionCommandInput,
|
|
55
|
-
CreateBatchPredictionCommandOutput,
|
|
56
|
-
} from "./commands/CreateBatchPredictionCommand";
|
|
57
|
-
import {
|
|
58
|
-
CreateDataSourceFromRDSCommandInput,
|
|
59
|
-
CreateDataSourceFromRDSCommandOutput,
|
|
60
|
-
} from "./commands/CreateDataSourceFromRDSCommand";
|
|
61
|
-
import {
|
|
62
|
-
CreateDataSourceFromRedshiftCommandInput,
|
|
63
|
-
CreateDataSourceFromRedshiftCommandOutput,
|
|
64
|
-
} from "./commands/CreateDataSourceFromRedshiftCommand";
|
|
65
|
-
import {
|
|
66
|
-
CreateDataSourceFromS3CommandInput,
|
|
67
|
-
CreateDataSourceFromS3CommandOutput,
|
|
68
|
-
} from "./commands/CreateDataSourceFromS3Command";
|
|
69
|
-
import { CreateEvaluationCommandInput, CreateEvaluationCommandOutput } from "./commands/CreateEvaluationCommand";
|
|
70
|
-
import { CreateMLModelCommandInput, CreateMLModelCommandOutput } from "./commands/CreateMLModelCommand";
|
|
71
|
-
import {
|
|
72
|
-
CreateRealtimeEndpointCommandInput,
|
|
73
|
-
CreateRealtimeEndpointCommandOutput,
|
|
74
|
-
} from "./commands/CreateRealtimeEndpointCommand";
|
|
75
|
-
import {
|
|
76
|
-
DeleteBatchPredictionCommandInput,
|
|
77
|
-
DeleteBatchPredictionCommandOutput,
|
|
78
|
-
} from "./commands/DeleteBatchPredictionCommand";
|
|
79
|
-
import { DeleteDataSourceCommandInput, DeleteDataSourceCommandOutput } from "./commands/DeleteDataSourceCommand";
|
|
80
|
-
import { DeleteEvaluationCommandInput, DeleteEvaluationCommandOutput } from "./commands/DeleteEvaluationCommand";
|
|
81
|
-
import { DeleteMLModelCommandInput, DeleteMLModelCommandOutput } from "./commands/DeleteMLModelCommand";
|
|
82
|
-
import {
|
|
83
|
-
DeleteRealtimeEndpointCommandInput,
|
|
84
|
-
DeleteRealtimeEndpointCommandOutput,
|
|
85
|
-
} from "./commands/DeleteRealtimeEndpointCommand";
|
|
86
|
-
import { DeleteTagsCommandInput, DeleteTagsCommandOutput } from "./commands/DeleteTagsCommand";
|
|
87
|
-
import {
|
|
88
|
-
DescribeBatchPredictionsCommandInput,
|
|
89
|
-
DescribeBatchPredictionsCommandOutput,
|
|
90
|
-
} from "./commands/DescribeBatchPredictionsCommand";
|
|
91
|
-
import {
|
|
92
|
-
DescribeDataSourcesCommandInput,
|
|
93
|
-
DescribeDataSourcesCommandOutput,
|
|
94
|
-
} from "./commands/DescribeDataSourcesCommand";
|
|
95
|
-
import {
|
|
96
|
-
DescribeEvaluationsCommandInput,
|
|
97
|
-
DescribeEvaluationsCommandOutput,
|
|
98
|
-
} from "./commands/DescribeEvaluationsCommand";
|
|
99
|
-
import { DescribeMLModelsCommandInput, DescribeMLModelsCommandOutput } from "./commands/DescribeMLModelsCommand";
|
|
100
|
-
import { DescribeTagsCommandInput, DescribeTagsCommandOutput } from "./commands/DescribeTagsCommand";
|
|
101
|
-
import { GetBatchPredictionCommandInput, GetBatchPredictionCommandOutput } from "./commands/GetBatchPredictionCommand";
|
|
102
|
-
import { GetDataSourceCommandInput, GetDataSourceCommandOutput } from "./commands/GetDataSourceCommand";
|
|
103
|
-
import { GetEvaluationCommandInput, GetEvaluationCommandOutput } from "./commands/GetEvaluationCommand";
|
|
104
|
-
import { GetMLModelCommandInput, GetMLModelCommandOutput } from "./commands/GetMLModelCommand";
|
|
105
|
-
import { PredictCommandInput, PredictCommandOutput } from "./commands/PredictCommand";
|
|
106
|
-
import {
|
|
107
|
-
UpdateBatchPredictionCommandInput,
|
|
108
|
-
UpdateBatchPredictionCommandOutput,
|
|
109
|
-
} from "./commands/UpdateBatchPredictionCommand";
|
|
110
|
-
import { UpdateDataSourceCommandInput, UpdateDataSourceCommandOutput } from "./commands/UpdateDataSourceCommand";
|
|
111
|
-
import { UpdateEvaluationCommandInput, UpdateEvaluationCommandOutput } from "./commands/UpdateEvaluationCommand";
|
|
112
|
-
import { UpdateMLModelCommandInput, UpdateMLModelCommandOutput } from "./commands/UpdateMLModelCommand";
|
|
113
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
114
|
-
|
|
115
|
-
export type ServiceInputTypes =
|
|
116
|
-
| AddTagsCommandInput
|
|
117
|
-
| CreateBatchPredictionCommandInput
|
|
118
|
-
| CreateDataSourceFromRDSCommandInput
|
|
119
|
-
| CreateDataSourceFromRedshiftCommandInput
|
|
120
|
-
| CreateDataSourceFromS3CommandInput
|
|
121
|
-
| CreateEvaluationCommandInput
|
|
122
|
-
| CreateMLModelCommandInput
|
|
123
|
-
| CreateRealtimeEndpointCommandInput
|
|
124
|
-
| DeleteBatchPredictionCommandInput
|
|
125
|
-
| DeleteDataSourceCommandInput
|
|
126
|
-
| DeleteEvaluationCommandInput
|
|
127
|
-
| DeleteMLModelCommandInput
|
|
128
|
-
| DeleteRealtimeEndpointCommandInput
|
|
129
|
-
| DeleteTagsCommandInput
|
|
130
|
-
| DescribeBatchPredictionsCommandInput
|
|
131
|
-
| DescribeDataSourcesCommandInput
|
|
132
|
-
| DescribeEvaluationsCommandInput
|
|
133
|
-
| DescribeMLModelsCommandInput
|
|
134
|
-
| DescribeTagsCommandInput
|
|
135
|
-
| GetBatchPredictionCommandInput
|
|
136
|
-
| GetDataSourceCommandInput
|
|
137
|
-
| GetEvaluationCommandInput
|
|
138
|
-
| GetMLModelCommandInput
|
|
139
|
-
| PredictCommandInput
|
|
140
|
-
| UpdateBatchPredictionCommandInput
|
|
141
|
-
| UpdateDataSourceCommandInput
|
|
142
|
-
| UpdateEvaluationCommandInput
|
|
143
|
-
| UpdateMLModelCommandInput;
|
|
144
|
-
|
|
145
|
-
export type ServiceOutputTypes =
|
|
146
|
-
| AddTagsCommandOutput
|
|
147
|
-
| CreateBatchPredictionCommandOutput
|
|
148
|
-
| CreateDataSourceFromRDSCommandOutput
|
|
149
|
-
| CreateDataSourceFromRedshiftCommandOutput
|
|
150
|
-
| CreateDataSourceFromS3CommandOutput
|
|
151
|
-
| CreateEvaluationCommandOutput
|
|
152
|
-
| CreateMLModelCommandOutput
|
|
153
|
-
| CreateRealtimeEndpointCommandOutput
|
|
154
|
-
| DeleteBatchPredictionCommandOutput
|
|
155
|
-
| DeleteDataSourceCommandOutput
|
|
156
|
-
| DeleteEvaluationCommandOutput
|
|
157
|
-
| DeleteMLModelCommandOutput
|
|
158
|
-
| DeleteRealtimeEndpointCommandOutput
|
|
159
|
-
| DeleteTagsCommandOutput
|
|
160
|
-
| DescribeBatchPredictionsCommandOutput
|
|
161
|
-
| DescribeDataSourcesCommandOutput
|
|
162
|
-
| DescribeEvaluationsCommandOutput
|
|
163
|
-
| DescribeMLModelsCommandOutput
|
|
164
|
-
| DescribeTagsCommandOutput
|
|
165
|
-
| GetBatchPredictionCommandOutput
|
|
166
|
-
| GetDataSourceCommandOutput
|
|
167
|
-
| GetEvaluationCommandOutput
|
|
168
|
-
| GetMLModelCommandOutput
|
|
169
|
-
| PredictCommandOutput
|
|
170
|
-
| UpdateBatchPredictionCommandOutput
|
|
171
|
-
| UpdateDataSourceCommandOutput
|
|
172
|
-
| UpdateEvaluationCommandOutput
|
|
173
|
-
| UpdateMLModelCommandOutput;
|
|
174
|
-
|
|
175
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
176
|
-
/**
|
|
177
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
178
|
-
*/
|
|
179
|
-
requestHandler?: __HttpHandler;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
183
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
184
|
-
* @internal
|
|
185
|
-
*/
|
|
186
|
-
sha256?: __HashConstructor;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
190
|
-
* @internal
|
|
191
|
-
*/
|
|
192
|
-
urlParser?: __UrlParser;
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* A function that can calculate the length of a request body.
|
|
196
|
-
* @internal
|
|
197
|
-
*/
|
|
198
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* A function that converts a stream into an array of bytes.
|
|
202
|
-
* @internal
|
|
203
|
-
*/
|
|
204
|
-
streamCollector?: __StreamCollector;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
208
|
-
* @internal
|
|
209
|
-
*/
|
|
210
|
-
base64Decoder?: __Decoder;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
214
|
-
* @internal
|
|
215
|
-
*/
|
|
216
|
-
base64Encoder?: __Encoder;
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
220
|
-
* @internal
|
|
221
|
-
*/
|
|
222
|
-
utf8Decoder?: __Decoder;
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
226
|
-
* @internal
|
|
227
|
-
*/
|
|
228
|
-
utf8Encoder?: __Encoder;
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* The runtime environment.
|
|
232
|
-
* @internal
|
|
233
|
-
*/
|
|
234
|
-
runtime?: string;
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
238
|
-
* trait of an operation.
|
|
239
|
-
*/
|
|
240
|
-
disableHostPrefix?: boolean;
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
244
|
-
*/
|
|
245
|
-
maxAttempts?: number | __Provider<number>;
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* Specifies which retry algorithm to use.
|
|
249
|
-
*/
|
|
250
|
-
retryMode?: string | __Provider<string>;
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* Optional logger for logging debug/info/warn/error.
|
|
254
|
-
*/
|
|
255
|
-
logger?: __Logger;
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* Unique service identifier.
|
|
259
|
-
* @internal
|
|
260
|
-
*/
|
|
261
|
-
serviceId?: string;
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* The AWS region to which this client will send requests
|
|
265
|
-
*/
|
|
266
|
-
region?: string | __Provider<string>;
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* Default credentials provider; Not available in browser runtime.
|
|
270
|
-
* @internal
|
|
271
|
-
*/
|
|
272
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
276
|
-
* @internal
|
|
277
|
-
*/
|
|
278
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
282
|
-
* @internal
|
|
283
|
-
*/
|
|
284
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
type MachineLearningClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
288
|
-
ClientDefaults &
|
|
289
|
-
RegionInputConfig &
|
|
290
|
-
EndpointsInputConfig &
|
|
291
|
-
RetryInputConfig &
|
|
292
|
-
HostHeaderInputConfig &
|
|
293
|
-
AwsAuthInputConfig &
|
|
294
|
-
UserAgentInputConfig;
|
|
295
|
-
/**
|
|
296
|
-
* The configuration interface of MachineLearningClient class constructor that set the region, credentials and other options.
|
|
297
|
-
*/
|
|
298
|
-
export interface MachineLearningClientConfig extends MachineLearningClientConfigType {}
|
|
299
|
-
|
|
300
|
-
type MachineLearningClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
301
|
-
Required<ClientDefaults> &
|
|
302
|
-
RegionResolvedConfig &
|
|
303
|
-
EndpointsResolvedConfig &
|
|
304
|
-
RetryResolvedConfig &
|
|
305
|
-
HostHeaderResolvedConfig &
|
|
306
|
-
AwsAuthResolvedConfig &
|
|
307
|
-
UserAgentResolvedConfig;
|
|
308
|
-
/**
|
|
309
|
-
* The resolved configuration interface of MachineLearningClient class. This is resolved and normalized from the {@link MachineLearningClientConfig | constructor configuration interface}.
|
|
310
|
-
*/
|
|
311
|
-
export interface MachineLearningClientResolvedConfig extends MachineLearningClientResolvedConfigType {}
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* Definition of the public APIs
|
|
315
|
-
* exposed by Amazon Machine Learning
|
|
316
|
-
*/
|
|
317
|
-
export class MachineLearningClient extends __Client<
|
|
318
|
-
__HttpHandlerOptions,
|
|
319
|
-
ServiceInputTypes,
|
|
320
|
-
ServiceOutputTypes,
|
|
321
|
-
MachineLearningClientResolvedConfig
|
|
322
|
-
> {
|
|
323
|
-
/**
|
|
324
|
-
* The resolved configuration of MachineLearningClient class. This is resolved and normalized from the {@link MachineLearningClientConfig | constructor configuration interface}.
|
|
325
|
-
*/
|
|
326
|
-
readonly config: MachineLearningClientResolvedConfig;
|
|
327
|
-
|
|
328
|
-
constructor(configuration: MachineLearningClientConfig) {
|
|
329
|
-
const _config_0 = __getRuntimeConfig(configuration);
|
|
330
|
-
const _config_1 = resolveRegionConfig(_config_0);
|
|
331
|
-
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
332
|
-
const _config_3 = resolveRetryConfig(_config_2);
|
|
333
|
-
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
334
|
-
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
335
|
-
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
336
|
-
super(_config_6);
|
|
337
|
-
this.config = _config_6;
|
|
338
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
339
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
340
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
341
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
342
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
343
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
348
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
349
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
350
|
-
*/
|
|
351
|
-
destroy(): void {
|
|
352
|
-
super.destroy();
|
|
353
|
-
}
|
|
354
|
-
}
|
|
@@ -1,94 +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 { AddTagsInput, AddTagsOutput } from "../models/models_0";
|
|
16
|
-
import { deserializeAws_json1_1AddTagsCommand, serializeAws_json1_1AddTagsCommand } from "../protocols/Aws_json1_1";
|
|
17
|
-
|
|
18
|
-
export interface AddTagsCommandInput extends AddTagsInput {}
|
|
19
|
-
export interface AddTagsCommandOutput extends AddTagsOutput, __MetadataBearer {}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* <p>Adds one or more tags to an object, up to a limit of 10. Each tag consists of a key
|
|
23
|
-
* and an optional value. If you add a tag using a key that is already associated with the ML object,
|
|
24
|
-
* <code>AddTags</code> updates the tag's value.</p>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { MachineLearningClient, AddTagsCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
|
|
29
|
-
* // const { MachineLearningClient, AddTagsCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
|
|
30
|
-
* const client = new MachineLearningClient(config);
|
|
31
|
-
* const command = new AddTagsCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link AddTagsCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link AddTagsCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export class AddTagsCommand extends $Command<
|
|
41
|
-
AddTagsCommandInput,
|
|
42
|
-
AddTagsCommandOutput,
|
|
43
|
-
MachineLearningClientResolvedConfig
|
|
44
|
-
> {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
|
-
|
|
48
|
-
constructor(readonly input: AddTagsCommandInput) {
|
|
49
|
-
// Start section: command_constructor
|
|
50
|
-
super();
|
|
51
|
-
// End section: command_constructor
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
resolveMiddleware(
|
|
58
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
59
|
-
configuration: MachineLearningClientResolvedConfig,
|
|
60
|
-
options?: __HttpHandlerOptions
|
|
61
|
-
): Handler<AddTagsCommandInput, AddTagsCommandOutput> {
|
|
62
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
63
|
-
|
|
64
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
65
|
-
|
|
66
|
-
const { logger } = configuration;
|
|
67
|
-
const clientName = "MachineLearningClient";
|
|
68
|
-
const commandName = "AddTagsCommand";
|
|
69
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
70
|
-
logger,
|
|
71
|
-
clientName,
|
|
72
|
-
commandName,
|
|
73
|
-
inputFilterSensitiveLog: AddTagsInput.filterSensitiveLog,
|
|
74
|
-
outputFilterSensitiveLog: AddTagsOutput.filterSensitiveLog,
|
|
75
|
-
};
|
|
76
|
-
const { requestHandler } = configuration;
|
|
77
|
-
return stack.resolve(
|
|
78
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
79
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
80
|
-
handlerExecutionContext
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
private serialize(input: AddTagsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
85
|
-
return serializeAws_json1_1AddTagsCommand(input, context);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<AddTagsCommandOutput> {
|
|
89
|
-
return deserializeAws_json1_1AddTagsCommand(output, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Start section: command_body_extra
|
|
93
|
-
// End section: command_body_extra
|
|
94
|
-
}
|
|
@@ -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 { CreateBatchPredictionInput, CreateBatchPredictionOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreateBatchPredictionCommand,
|
|
18
|
-
serializeAws_json1_1CreateBatchPredictionCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreateBatchPredictionCommandInput extends CreateBatchPredictionInput {}
|
|
22
|
-
export interface CreateBatchPredictionCommandOutput extends CreateBatchPredictionOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Generates predictions for a group of observations. The observations to process exist in one or more data files referenced
|
|
26
|
-
* by a <code>DataSource</code>. This operation creates a new <code>BatchPrediction</code>, and uses an <code>MLModel</code> and the data
|
|
27
|
-
* files referenced by the <code>DataSource</code> as information sources.
|
|
28
|
-
* </p>
|
|
29
|
-
*
|
|
30
|
-
* <p>
|
|
31
|
-
* <code>CreateBatchPrediction</code> is an asynchronous operation. In response to <code>CreateBatchPrediction</code>,
|
|
32
|
-
* Amazon Machine Learning (Amazon ML) immediately returns and sets the <code>BatchPrediction</code> status to <code>PENDING</code>.
|
|
33
|
-
* After the <code>BatchPrediction</code> completes, Amazon ML sets the status to <code>COMPLETED</code>.
|
|
34
|
-
* </p>
|
|
35
|
-
* <p>You can poll for status updates by using the <a>GetBatchPrediction</a> operation and checking the <code>Status</code> parameter of the result. After the <code>COMPLETED</code> status appears,
|
|
36
|
-
* the results are available in the location specified by the <code>OutputUri</code> parameter.</p>
|
|
37
|
-
* @example
|
|
38
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
-
* ```javascript
|
|
40
|
-
* import { MachineLearningClient, CreateBatchPredictionCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
|
|
41
|
-
* // const { MachineLearningClient, CreateBatchPredictionCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
|
|
42
|
-
* const client = new MachineLearningClient(config);
|
|
43
|
-
* const command = new CreateBatchPredictionCommand(input);
|
|
44
|
-
* const response = await client.send(command);
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @see {@link CreateBatchPredictionCommandInput} for command's `input` shape.
|
|
48
|
-
* @see {@link CreateBatchPredictionCommandOutput} for command's `response` shape.
|
|
49
|
-
* @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
export class CreateBatchPredictionCommand extends $Command<
|
|
53
|
-
CreateBatchPredictionCommandInput,
|
|
54
|
-
CreateBatchPredictionCommandOutput,
|
|
55
|
-
MachineLearningClientResolvedConfig
|
|
56
|
-
> {
|
|
57
|
-
// Start section: command_properties
|
|
58
|
-
// End section: command_properties
|
|
59
|
-
|
|
60
|
-
constructor(readonly input: CreateBatchPredictionCommandInput) {
|
|
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<CreateBatchPredictionCommandInput, CreateBatchPredictionCommandOutput> {
|
|
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 = "CreateBatchPredictionCommand";
|
|
81
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
82
|
-
logger,
|
|
83
|
-
clientName,
|
|
84
|
-
commandName,
|
|
85
|
-
inputFilterSensitiveLog: CreateBatchPredictionInput.filterSensitiveLog,
|
|
86
|
-
outputFilterSensitiveLog: CreateBatchPredictionOutput.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: CreateBatchPredictionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
97
|
-
return serializeAws_json1_1CreateBatchPredictionCommand(input, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateBatchPredictionCommandOutput> {
|
|
101
|
-
return deserializeAws_json1_1CreateBatchPredictionCommand(output, context);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Start section: command_body_extra
|
|
105
|
-
// End section: command_body_extra
|
|
106
|
-
}
|
|
@@ -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 { CreateDataSourceFromRDSInput, CreateDataSourceFromRDSOutput } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreateDataSourceFromRDSCommand,
|
|
18
|
-
serializeAws_json1_1CreateDataSourceFromRDSCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreateDataSourceFromRDSCommandInput extends CreateDataSourceFromRDSInput {}
|
|
22
|
-
export interface CreateDataSourceFromRDSCommandOutput extends CreateDataSourceFromRDSOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a <code>DataSource</code> object from an <a href="http://aws.amazon.com/rds/"> Amazon Relational Database Service</a> (Amazon RDS). A <code>DataSource</code> references data that can be used to perform <code>CreateMLModel</code>, <code>CreateEvaluation</code>, or <code>CreateBatchPrediction</code> operations.</p>
|
|
26
|
-
*
|
|
27
|
-
* <p>
|
|
28
|
-
* <code>CreateDataSourceFromRDS</code> is an asynchronous operation. In response to <code>CreateDataSourceFromRDS</code>,
|
|
29
|
-
* Amazon Machine Learning (Amazon ML) immediately returns and sets the <code>DataSource</code> status to <code>PENDING</code>.
|
|
30
|
-
* After the <code>DataSource</code> is created and ready for use, Amazon ML sets the <code>Status</code> parameter to <code>COMPLETED</code>.
|
|
31
|
-
* <code>DataSource</code> in the <code>COMPLETED</code> or <code>PENDING</code> state can
|
|
32
|
-
* be used only to perform <code>>CreateMLModel</code>>, <code>CreateEvaluation</code>, or <code>CreateBatchPrediction</code> operations.
|
|
33
|
-
* </p>
|
|
34
|
-
* <p>
|
|
35
|
-
* If Amazon ML cannot 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> attribute of the <code>GetDataSource</code> operation response.
|
|
36
|
-
* </p>
|
|
37
|
-
* @example
|
|
38
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
-
* ```javascript
|
|
40
|
-
* import { MachineLearningClient, CreateDataSourceFromRDSCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
|
|
41
|
-
* // const { MachineLearningClient, CreateDataSourceFromRDSCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
|
|
42
|
-
* const client = new MachineLearningClient(config);
|
|
43
|
-
* const command = new CreateDataSourceFromRDSCommand(input);
|
|
44
|
-
* const response = await client.send(command);
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @see {@link CreateDataSourceFromRDSCommandInput} for command's `input` shape.
|
|
48
|
-
* @see {@link CreateDataSourceFromRDSCommandOutput} for command's `response` shape.
|
|
49
|
-
* @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
export class CreateDataSourceFromRDSCommand extends $Command<
|
|
53
|
-
CreateDataSourceFromRDSCommandInput,
|
|
54
|
-
CreateDataSourceFromRDSCommandOutput,
|
|
55
|
-
MachineLearningClientResolvedConfig
|
|
56
|
-
> {
|
|
57
|
-
// Start section: command_properties
|
|
58
|
-
// End section: command_properties
|
|
59
|
-
|
|
60
|
-
constructor(readonly input: CreateDataSourceFromRDSCommandInput) {
|
|
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<CreateDataSourceFromRDSCommandInput, CreateDataSourceFromRDSCommandOutput> {
|
|
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 = "CreateDataSourceFromRDSCommand";
|
|
81
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
82
|
-
logger,
|
|
83
|
-
clientName,
|
|
84
|
-
commandName,
|
|
85
|
-
inputFilterSensitiveLog: CreateDataSourceFromRDSInput.filterSensitiveLog,
|
|
86
|
-
outputFilterSensitiveLog: CreateDataSourceFromRDSOutput.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: CreateDataSourceFromRDSCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
97
|
-
return serializeAws_json1_1CreateDataSourceFromRDSCommand(input, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateDataSourceFromRDSCommandOutput> {
|
|
101
|
-
return deserializeAws_json1_1CreateDataSourceFromRDSCommand(output, context);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Start section: command_body_extra
|
|
105
|
-
// End section: command_body_extra
|
|
106
|
-
}
|