@aws-sdk/client-machine-learning 3.927.0 → 3.929.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/dist-cjs/index.js +828 -1209
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/MachineLearningClient.js +2 -0
- package/dist-es/commands/AddTagsCommand.js +3 -9
- package/dist-es/commands/CreateBatchPredictionCommand.js +3 -9
- package/dist-es/commands/CreateDataSourceFromRDSCommand.js +3 -10
- package/dist-es/commands/CreateDataSourceFromRedshiftCommand.js +3 -10
- package/dist-es/commands/CreateDataSourceFromS3Command.js +3 -9
- package/dist-es/commands/CreateEvaluationCommand.js +3 -9
- package/dist-es/commands/CreateMLModelCommand.js +3 -9
- package/dist-es/commands/CreateRealtimeEndpointCommand.js +3 -9
- package/dist-es/commands/DeleteBatchPredictionCommand.js +3 -9
- package/dist-es/commands/DeleteDataSourceCommand.js +3 -9
- package/dist-es/commands/DeleteEvaluationCommand.js +3 -9
- package/dist-es/commands/DeleteMLModelCommand.js +3 -9
- package/dist-es/commands/DeleteRealtimeEndpointCommand.js +3 -9
- package/dist-es/commands/DeleteTagsCommand.js +3 -9
- package/dist-es/commands/DescribeBatchPredictionsCommand.js +3 -9
- package/dist-es/commands/DescribeDataSourcesCommand.js +3 -9
- package/dist-es/commands/DescribeEvaluationsCommand.js +3 -9
- package/dist-es/commands/DescribeMLModelsCommand.js +3 -9
- package/dist-es/commands/DescribeTagsCommand.js +3 -9
- package/dist-es/commands/GetBatchPredictionCommand.js +3 -9
- package/dist-es/commands/GetDataSourceCommand.js +3 -9
- package/dist-es/commands/GetEvaluationCommand.js +3 -9
- package/dist-es/commands/GetMLModelCommand.js +3 -9
- package/dist-es/commands/PredictCommand.js +3 -10
- package/dist-es/commands/UpdateBatchPredictionCommand.js +3 -9
- package/dist-es/commands/UpdateDataSourceCommand.js +3 -9
- package/dist-es/commands/UpdateEvaluationCommand.js +3 -9
- package/dist-es/commands/UpdateMLModelCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -29
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +754 -0
- package/dist-types/MachineLearningClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -24
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +126 -0
- package/dist-types/ts3.4/MachineLearningClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -16
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +132 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -958
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -254
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -341
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { GetMLModel } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class GetMLModelCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonML_20141212", "GetMLModel", {})
|
|
17
13
|
.n("MachineLearningClient", "GetMLModelCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_GetMLModelCommand)
|
|
20
|
-
.de(de_GetMLModelCommand)
|
|
14
|
+
.sc(GetMLModel)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
import { getPredictEndpointPlugin } from "@aws-sdk/middleware-sdk-machinelearning";
|
|
2
2
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
3
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
4
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
5
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
6
|
-
import {
|
|
5
|
+
import { Predict } from "../schemas/schemas_0";
|
|
7
6
|
export { $Command };
|
|
8
7
|
export class PredictCommand extends $Command
|
|
9
8
|
.classBuilder()
|
|
10
9
|
.ep(commonParams)
|
|
11
10
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
getPredictEndpointPlugin(config),
|
|
16
|
-
];
|
|
11
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getPredictEndpointPlugin(config)];
|
|
17
12
|
})
|
|
18
13
|
.s("AmazonML_20141212", "Predict", {})
|
|
19
14
|
.n("MachineLearningClient", "PredictCommand")
|
|
20
|
-
.
|
|
21
|
-
.ser(se_PredictCommand)
|
|
22
|
-
.de(de_PredictCommand)
|
|
15
|
+
.sc(Predict)
|
|
23
16
|
.build() {
|
|
24
17
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateBatchPrediction } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateBatchPredictionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonML_20141212", "UpdateBatchPrediction", {})
|
|
17
13
|
.n("MachineLearningClient", "UpdateBatchPredictionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateBatchPredictionCommand)
|
|
20
|
-
.de(de_UpdateBatchPredictionCommand)
|
|
14
|
+
.sc(UpdateBatchPrediction)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateDataSource } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateDataSourceCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonML_20141212", "UpdateDataSource", {})
|
|
17
13
|
.n("MachineLearningClient", "UpdateDataSourceCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateDataSourceCommand)
|
|
20
|
-
.de(de_UpdateDataSourceCommand)
|
|
14
|
+
.sc(UpdateDataSource)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateEvaluation } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateEvaluationCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonML_20141212", "UpdateEvaluation", {})
|
|
17
13
|
.n("MachineLearningClient", "UpdateEvaluationCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateEvaluationCommand)
|
|
20
|
-
.de(de_UpdateEvaluationCommand)
|
|
14
|
+
.sc(UpdateEvaluation)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateMLModel } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateMLModelCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonML_20141212", "UpdateMLModel", {})
|
|
17
13
|
.n("MachineLearningClient", "UpdateMLModelCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateMLModelCommand)
|
|
20
|
-
.de(de_UpdateMLModelCommand)
|
|
14
|
+
.sc(UpdateMLModel)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { MachineLearningServiceException as __BaseException } from "./MachineLearningServiceException";
|
|
3
2
|
export const TaggableResourceType = {
|
|
4
3
|
BATCH_PREDICTION: "BatchPrediction",
|
|
@@ -181,31 +180,3 @@ export const DetailsAttributes = {
|
|
|
181
180
|
ALGORITHM: "Algorithm",
|
|
182
181
|
PREDICTIVE_MODEL_TYPE: "PredictiveModelType",
|
|
183
182
|
};
|
|
184
|
-
export const RDSDatabaseCredentialsFilterSensitiveLog = (obj) => ({
|
|
185
|
-
...obj,
|
|
186
|
-
...(obj.Password && { Password: SENSITIVE_STRING }),
|
|
187
|
-
});
|
|
188
|
-
export const RDSDataSpecFilterSensitiveLog = (obj) => ({
|
|
189
|
-
...obj,
|
|
190
|
-
...(obj.DatabaseCredentials && {
|
|
191
|
-
DatabaseCredentials: RDSDatabaseCredentialsFilterSensitiveLog(obj.DatabaseCredentials),
|
|
192
|
-
}),
|
|
193
|
-
});
|
|
194
|
-
export const CreateDataSourceFromRDSInputFilterSensitiveLog = (obj) => ({
|
|
195
|
-
...obj,
|
|
196
|
-
...(obj.RDSData && { RDSData: RDSDataSpecFilterSensitiveLog(obj.RDSData) }),
|
|
197
|
-
});
|
|
198
|
-
export const RedshiftDatabaseCredentialsFilterSensitiveLog = (obj) => ({
|
|
199
|
-
...obj,
|
|
200
|
-
...(obj.Password && { Password: SENSITIVE_STRING }),
|
|
201
|
-
});
|
|
202
|
-
export const RedshiftDataSpecFilterSensitiveLog = (obj) => ({
|
|
203
|
-
...obj,
|
|
204
|
-
...(obj.DatabaseCredentials && {
|
|
205
|
-
DatabaseCredentials: RedshiftDatabaseCredentialsFilterSensitiveLog(obj.DatabaseCredentials),
|
|
206
|
-
}),
|
|
207
|
-
});
|
|
208
|
-
export const CreateDataSourceFromRedshiftInputFilterSensitiveLog = (obj) => ({
|
|
209
|
-
...obj,
|
|
210
|
-
...(obj.DataSpec && { DataSpec: RedshiftDataSpecFilterSensitiveLog(obj.DataSpec) }),
|
|
211
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ??
|
|
27
|
+
new AwsJson1_1Protocol({
|
|
28
|
+
defaultNamespace: "com.amazonaws.machinelearning",
|
|
29
|
+
serviceTarget: "AmazonML_20141212",
|
|
30
|
+
awsQueryCompatible: false,
|
|
31
|
+
}),
|
|
25
32
|
serviceId: config?.serviceId ?? "Machine Learning",
|
|
26
33
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
34
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|