@aws-sdk/client-machine-learning 3.1077.0 → 3.1079.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.
Files changed (92) hide show
  1. package/dist-cjs/index.js +39 -286
  2. package/dist-es/commandBuilder.js +10 -0
  3. package/dist-es/commands/AddTagsCommand.js +2 -14
  4. package/dist-es/commands/CreateBatchPredictionCommand.js +2 -14
  5. package/dist-es/commands/CreateDataSourceFromRDSCommand.js +2 -14
  6. package/dist-es/commands/CreateDataSourceFromRedshiftCommand.js +2 -14
  7. package/dist-es/commands/CreateDataSourceFromS3Command.js +2 -14
  8. package/dist-es/commands/CreateEvaluationCommand.js +2 -14
  9. package/dist-es/commands/CreateMLModelCommand.js +2 -14
  10. package/dist-es/commands/CreateRealtimeEndpointCommand.js +2 -14
  11. package/dist-es/commands/DeleteBatchPredictionCommand.js +2 -14
  12. package/dist-es/commands/DeleteDataSourceCommand.js +2 -14
  13. package/dist-es/commands/DeleteEvaluationCommand.js +2 -14
  14. package/dist-es/commands/DeleteMLModelCommand.js +2 -14
  15. package/dist-es/commands/DeleteRealtimeEndpointCommand.js +2 -14
  16. package/dist-es/commands/DeleteTagsCommand.js +2 -14
  17. package/dist-es/commands/DescribeBatchPredictionsCommand.js +2 -14
  18. package/dist-es/commands/DescribeDataSourcesCommand.js +2 -14
  19. package/dist-es/commands/DescribeEvaluationsCommand.js +2 -14
  20. package/dist-es/commands/DescribeMLModelsCommand.js +2 -14
  21. package/dist-es/commands/DescribeTagsCommand.js +2 -14
  22. package/dist-es/commands/GetBatchPredictionCommand.js +2 -14
  23. package/dist-es/commands/GetDataSourceCommand.js +2 -14
  24. package/dist-es/commands/GetEvaluationCommand.js +2 -14
  25. package/dist-es/commands/GetMLModelCommand.js +2 -14
  26. package/dist-es/commands/PredictCommand.js +2 -18
  27. package/dist-es/commands/UpdateBatchPredictionCommand.js +2 -14
  28. package/dist-es/commands/UpdateDataSourceCommand.js +2 -14
  29. package/dist-es/commands/UpdateEvaluationCommand.js +2 -14
  30. package/dist-es/commands/UpdateMLModelCommand.js +2 -14
  31. package/dist-es/index.js +1 -0
  32. package/dist-types/commandBuilder.d.ts +22 -0
  33. package/dist-types/commands/AddTagsCommand.d.ts +3 -8
  34. package/dist-types/commands/CreateBatchPredictionCommand.d.ts +3 -8
  35. package/dist-types/commands/CreateDataSourceFromRDSCommand.d.ts +3 -8
  36. package/dist-types/commands/CreateDataSourceFromRedshiftCommand.d.ts +3 -8
  37. package/dist-types/commands/CreateDataSourceFromS3Command.d.ts +3 -8
  38. package/dist-types/commands/CreateEvaluationCommand.d.ts +3 -8
  39. package/dist-types/commands/CreateMLModelCommand.d.ts +3 -8
  40. package/dist-types/commands/CreateRealtimeEndpointCommand.d.ts +3 -8
  41. package/dist-types/commands/DeleteBatchPredictionCommand.d.ts +3 -8
  42. package/dist-types/commands/DeleteDataSourceCommand.d.ts +3 -8
  43. package/dist-types/commands/DeleteEvaluationCommand.d.ts +3 -8
  44. package/dist-types/commands/DeleteMLModelCommand.d.ts +3 -8
  45. package/dist-types/commands/DeleteRealtimeEndpointCommand.d.ts +3 -8
  46. package/dist-types/commands/DeleteTagsCommand.d.ts +3 -8
  47. package/dist-types/commands/DescribeBatchPredictionsCommand.d.ts +3 -8
  48. package/dist-types/commands/DescribeDataSourcesCommand.d.ts +3 -8
  49. package/dist-types/commands/DescribeEvaluationsCommand.d.ts +3 -8
  50. package/dist-types/commands/DescribeMLModelsCommand.d.ts +3 -8
  51. package/dist-types/commands/DescribeTagsCommand.d.ts +3 -8
  52. package/dist-types/commands/GetBatchPredictionCommand.d.ts +3 -8
  53. package/dist-types/commands/GetDataSourceCommand.d.ts +3 -8
  54. package/dist-types/commands/GetEvaluationCommand.d.ts +3 -8
  55. package/dist-types/commands/GetMLModelCommand.d.ts +3 -8
  56. package/dist-types/commands/PredictCommand.d.ts +3 -8
  57. package/dist-types/commands/UpdateBatchPredictionCommand.d.ts +3 -8
  58. package/dist-types/commands/UpdateDataSourceCommand.d.ts +3 -8
  59. package/dist-types/commands/UpdateEvaluationCommand.d.ts +3 -8
  60. package/dist-types/commands/UpdateMLModelCommand.d.ts +3 -8
  61. package/dist-types/index.d.ts +1 -0
  62. package/dist-types/ts3.4/commandBuilder.d.ts +52 -0
  63. package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +7 -16
  64. package/dist-types/ts3.4/commands/CreateBatchPredictionCommand.d.ts +7 -16
  65. package/dist-types/ts3.4/commands/CreateDataSourceFromRDSCommand.d.ts +7 -16
  66. package/dist-types/ts3.4/commands/CreateDataSourceFromRedshiftCommand.d.ts +7 -16
  67. package/dist-types/ts3.4/commands/CreateDataSourceFromS3Command.d.ts +7 -16
  68. package/dist-types/ts3.4/commands/CreateEvaluationCommand.d.ts +7 -16
  69. package/dist-types/ts3.4/commands/CreateMLModelCommand.d.ts +7 -16
  70. package/dist-types/ts3.4/commands/CreateRealtimeEndpointCommand.d.ts +7 -16
  71. package/dist-types/ts3.4/commands/DeleteBatchPredictionCommand.d.ts +7 -16
  72. package/dist-types/ts3.4/commands/DeleteDataSourceCommand.d.ts +7 -16
  73. package/dist-types/ts3.4/commands/DeleteEvaluationCommand.d.ts +7 -16
  74. package/dist-types/ts3.4/commands/DeleteMLModelCommand.d.ts +7 -16
  75. package/dist-types/ts3.4/commands/DeleteRealtimeEndpointCommand.d.ts +7 -16
  76. package/dist-types/ts3.4/commands/DeleteTagsCommand.d.ts +7 -16
  77. package/dist-types/ts3.4/commands/DescribeBatchPredictionsCommand.d.ts +7 -16
  78. package/dist-types/ts3.4/commands/DescribeDataSourcesCommand.d.ts +7 -16
  79. package/dist-types/ts3.4/commands/DescribeEvaluationsCommand.d.ts +7 -16
  80. package/dist-types/ts3.4/commands/DescribeMLModelsCommand.d.ts +7 -16
  81. package/dist-types/ts3.4/commands/DescribeTagsCommand.d.ts +7 -16
  82. package/dist-types/ts3.4/commands/GetBatchPredictionCommand.d.ts +7 -16
  83. package/dist-types/ts3.4/commands/GetDataSourceCommand.d.ts +7 -16
  84. package/dist-types/ts3.4/commands/GetEvaluationCommand.d.ts +7 -16
  85. package/dist-types/ts3.4/commands/GetMLModelCommand.d.ts +7 -16
  86. package/dist-types/ts3.4/commands/PredictCommand.d.ts +7 -16
  87. package/dist-types/ts3.4/commands/UpdateBatchPredictionCommand.d.ts +7 -16
  88. package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +7 -16
  89. package/dist-types/ts3.4/commands/UpdateEvaluationCommand.d.ts +7 -16
  90. package/dist-types/ts3.4/commands/UpdateMLModelCommand.d.ts +7 -16
  91. package/dist-types/ts3.4/index.d.ts +1 -0
  92. package/package.json +9 -9
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -69,7 +70,7 @@ const commonParams = {
69
70
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
71
  };
71
72
 
72
- var version = "3.1076.0";
73
+ var version = "3.1078.0";
73
74
  var packageInfo = {
74
75
  version: version};
75
76
 
@@ -1132,343 +1133,95 @@ class MachineLearningClient extends Client {
1132
1133
  }
1133
1134
  }
1134
1135
 
1135
- class AddTagsCommand extends Command
1136
- .classBuilder()
1137
- .ep(commonParams)
1138
- .m(function (Command, cs, config, o) {
1139
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1140
- })
1141
- .s("AmazonML_20141212", "AddTags", {})
1142
- .n("MachineLearningClient", "AddTagsCommand")
1143
- .sc(AddTags$)
1144
- .build() {
1136
+ const command = makeBuilder(commonParams, "AmazonML_20141212", "MachineLearningClient", getEndpointPlugin);
1137
+ const _ep0 = {};
1138
+ const _mw0 = (Command, cs, config, o) => [];
1139
+ const _mw1 = (Command, cs, config, o) => [
1140
+ getPredictEndpointPlugin(config),
1141
+ ];
1142
+
1143
+ class AddTagsCommand extends command(_ep0, _mw0, "AddTags", AddTags$) {
1145
1144
  }
1146
1145
 
1147
- class CreateBatchPredictionCommand extends Command
1148
- .classBuilder()
1149
- .ep(commonParams)
1150
- .m(function (Command, cs, config, o) {
1151
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1152
- })
1153
- .s("AmazonML_20141212", "CreateBatchPrediction", {})
1154
- .n("MachineLearningClient", "CreateBatchPredictionCommand")
1155
- .sc(CreateBatchPrediction$)
1156
- .build() {
1146
+ class CreateBatchPredictionCommand extends command(_ep0, _mw0, "CreateBatchPrediction", CreateBatchPrediction$) {
1157
1147
  }
1158
1148
 
1159
- class CreateDataSourceFromRDSCommand extends Command
1160
- .classBuilder()
1161
- .ep(commonParams)
1162
- .m(function (Command, cs, config, o) {
1163
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1164
- })
1165
- .s("AmazonML_20141212", "CreateDataSourceFromRDS", {})
1166
- .n("MachineLearningClient", "CreateDataSourceFromRDSCommand")
1167
- .sc(CreateDataSourceFromRDS$)
1168
- .build() {
1149
+ class CreateDataSourceFromRDSCommand extends command(_ep0, _mw0, "CreateDataSourceFromRDS", CreateDataSourceFromRDS$) {
1169
1150
  }
1170
1151
 
1171
- class CreateDataSourceFromRedshiftCommand extends Command
1172
- .classBuilder()
1173
- .ep(commonParams)
1174
- .m(function (Command, cs, config, o) {
1175
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1176
- })
1177
- .s("AmazonML_20141212", "CreateDataSourceFromRedshift", {})
1178
- .n("MachineLearningClient", "CreateDataSourceFromRedshiftCommand")
1179
- .sc(CreateDataSourceFromRedshift$)
1180
- .build() {
1152
+ class CreateDataSourceFromRedshiftCommand extends command(_ep0, _mw0, "CreateDataSourceFromRedshift", CreateDataSourceFromRedshift$) {
1181
1153
  }
1182
1154
 
1183
- class CreateDataSourceFromS3Command extends Command
1184
- .classBuilder()
1185
- .ep(commonParams)
1186
- .m(function (Command, cs, config, o) {
1187
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1188
- })
1189
- .s("AmazonML_20141212", "CreateDataSourceFromS3", {})
1190
- .n("MachineLearningClient", "CreateDataSourceFromS3Command")
1191
- .sc(CreateDataSourceFromS3$)
1192
- .build() {
1155
+ class CreateDataSourceFromS3Command extends command(_ep0, _mw0, "CreateDataSourceFromS3", CreateDataSourceFromS3$) {
1193
1156
  }
1194
1157
 
1195
- class CreateEvaluationCommand extends Command
1196
- .classBuilder()
1197
- .ep(commonParams)
1198
- .m(function (Command, cs, config, o) {
1199
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1200
- })
1201
- .s("AmazonML_20141212", "CreateEvaluation", {})
1202
- .n("MachineLearningClient", "CreateEvaluationCommand")
1203
- .sc(CreateEvaluation$)
1204
- .build() {
1158
+ class CreateEvaluationCommand extends command(_ep0, _mw0, "CreateEvaluation", CreateEvaluation$) {
1205
1159
  }
1206
1160
 
1207
- class CreateMLModelCommand extends Command
1208
- .classBuilder()
1209
- .ep(commonParams)
1210
- .m(function (Command, cs, config, o) {
1211
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1212
- })
1213
- .s("AmazonML_20141212", "CreateMLModel", {})
1214
- .n("MachineLearningClient", "CreateMLModelCommand")
1215
- .sc(CreateMLModel$)
1216
- .build() {
1161
+ class CreateMLModelCommand extends command(_ep0, _mw0, "CreateMLModel", CreateMLModel$) {
1217
1162
  }
1218
1163
 
1219
- class CreateRealtimeEndpointCommand extends Command
1220
- .classBuilder()
1221
- .ep(commonParams)
1222
- .m(function (Command, cs, config, o) {
1223
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1224
- })
1225
- .s("AmazonML_20141212", "CreateRealtimeEndpoint", {})
1226
- .n("MachineLearningClient", "CreateRealtimeEndpointCommand")
1227
- .sc(CreateRealtimeEndpoint$)
1228
- .build() {
1164
+ class CreateRealtimeEndpointCommand extends command(_ep0, _mw0, "CreateRealtimeEndpoint", CreateRealtimeEndpoint$) {
1229
1165
  }
1230
1166
 
1231
- class DeleteBatchPredictionCommand extends Command
1232
- .classBuilder()
1233
- .ep(commonParams)
1234
- .m(function (Command, cs, config, o) {
1235
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1236
- })
1237
- .s("AmazonML_20141212", "DeleteBatchPrediction", {})
1238
- .n("MachineLearningClient", "DeleteBatchPredictionCommand")
1239
- .sc(DeleteBatchPrediction$)
1240
- .build() {
1167
+ class DeleteBatchPredictionCommand extends command(_ep0, _mw0, "DeleteBatchPrediction", DeleteBatchPrediction$) {
1241
1168
  }
1242
1169
 
1243
- class DeleteDataSourceCommand extends Command
1244
- .classBuilder()
1245
- .ep(commonParams)
1246
- .m(function (Command, cs, config, o) {
1247
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1248
- })
1249
- .s("AmazonML_20141212", "DeleteDataSource", {})
1250
- .n("MachineLearningClient", "DeleteDataSourceCommand")
1251
- .sc(DeleteDataSource$)
1252
- .build() {
1170
+ class DeleteDataSourceCommand extends command(_ep0, _mw0, "DeleteDataSource", DeleteDataSource$) {
1253
1171
  }
1254
1172
 
1255
- class DeleteEvaluationCommand extends Command
1256
- .classBuilder()
1257
- .ep(commonParams)
1258
- .m(function (Command, cs, config, o) {
1259
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1260
- })
1261
- .s("AmazonML_20141212", "DeleteEvaluation", {})
1262
- .n("MachineLearningClient", "DeleteEvaluationCommand")
1263
- .sc(DeleteEvaluation$)
1264
- .build() {
1173
+ class DeleteEvaluationCommand extends command(_ep0, _mw0, "DeleteEvaluation", DeleteEvaluation$) {
1265
1174
  }
1266
1175
 
1267
- class DeleteMLModelCommand extends Command
1268
- .classBuilder()
1269
- .ep(commonParams)
1270
- .m(function (Command, cs, config, o) {
1271
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1272
- })
1273
- .s("AmazonML_20141212", "DeleteMLModel", {})
1274
- .n("MachineLearningClient", "DeleteMLModelCommand")
1275
- .sc(DeleteMLModel$)
1276
- .build() {
1176
+ class DeleteMLModelCommand extends command(_ep0, _mw0, "DeleteMLModel", DeleteMLModel$) {
1277
1177
  }
1278
1178
 
1279
- class DeleteRealtimeEndpointCommand extends Command
1280
- .classBuilder()
1281
- .ep(commonParams)
1282
- .m(function (Command, cs, config, o) {
1283
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1284
- })
1285
- .s("AmazonML_20141212", "DeleteRealtimeEndpoint", {})
1286
- .n("MachineLearningClient", "DeleteRealtimeEndpointCommand")
1287
- .sc(DeleteRealtimeEndpoint$)
1288
- .build() {
1179
+ class DeleteRealtimeEndpointCommand extends command(_ep0, _mw0, "DeleteRealtimeEndpoint", DeleteRealtimeEndpoint$) {
1289
1180
  }
1290
1181
 
1291
- class DeleteTagsCommand extends Command
1292
- .classBuilder()
1293
- .ep(commonParams)
1294
- .m(function (Command, cs, config, o) {
1295
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1296
- })
1297
- .s("AmazonML_20141212", "DeleteTags", {})
1298
- .n("MachineLearningClient", "DeleteTagsCommand")
1299
- .sc(DeleteTags$)
1300
- .build() {
1182
+ class DeleteTagsCommand extends command(_ep0, _mw0, "DeleteTags", DeleteTags$) {
1301
1183
  }
1302
1184
 
1303
- class DescribeBatchPredictionsCommand extends Command
1304
- .classBuilder()
1305
- .ep(commonParams)
1306
- .m(function (Command, cs, config, o) {
1307
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1308
- })
1309
- .s("AmazonML_20141212", "DescribeBatchPredictions", {})
1310
- .n("MachineLearningClient", "DescribeBatchPredictionsCommand")
1311
- .sc(DescribeBatchPredictions$)
1312
- .build() {
1185
+ class DescribeBatchPredictionsCommand extends command(_ep0, _mw0, "DescribeBatchPredictions", DescribeBatchPredictions$) {
1313
1186
  }
1314
1187
 
1315
- class DescribeDataSourcesCommand extends Command
1316
- .classBuilder()
1317
- .ep(commonParams)
1318
- .m(function (Command, cs, config, o) {
1319
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1320
- })
1321
- .s("AmazonML_20141212", "DescribeDataSources", {})
1322
- .n("MachineLearningClient", "DescribeDataSourcesCommand")
1323
- .sc(DescribeDataSources$)
1324
- .build() {
1188
+ class DescribeDataSourcesCommand extends command(_ep0, _mw0, "DescribeDataSources", DescribeDataSources$) {
1325
1189
  }
1326
1190
 
1327
- class DescribeEvaluationsCommand extends Command
1328
- .classBuilder()
1329
- .ep(commonParams)
1330
- .m(function (Command, cs, config, o) {
1331
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1332
- })
1333
- .s("AmazonML_20141212", "DescribeEvaluations", {})
1334
- .n("MachineLearningClient", "DescribeEvaluationsCommand")
1335
- .sc(DescribeEvaluations$)
1336
- .build() {
1191
+ class DescribeEvaluationsCommand extends command(_ep0, _mw0, "DescribeEvaluations", DescribeEvaluations$) {
1337
1192
  }
1338
1193
 
1339
- class DescribeMLModelsCommand extends Command
1340
- .classBuilder()
1341
- .ep(commonParams)
1342
- .m(function (Command, cs, config, o) {
1343
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1344
- })
1345
- .s("AmazonML_20141212", "DescribeMLModels", {})
1346
- .n("MachineLearningClient", "DescribeMLModelsCommand")
1347
- .sc(DescribeMLModels$)
1348
- .build() {
1194
+ class DescribeMLModelsCommand extends command(_ep0, _mw0, "DescribeMLModels", DescribeMLModels$) {
1349
1195
  }
1350
1196
 
1351
- class DescribeTagsCommand extends Command
1352
- .classBuilder()
1353
- .ep(commonParams)
1354
- .m(function (Command, cs, config, o) {
1355
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1356
- })
1357
- .s("AmazonML_20141212", "DescribeTags", {})
1358
- .n("MachineLearningClient", "DescribeTagsCommand")
1359
- .sc(DescribeTags$)
1360
- .build() {
1197
+ class DescribeTagsCommand extends command(_ep0, _mw0, "DescribeTags", DescribeTags$) {
1361
1198
  }
1362
1199
 
1363
- class GetBatchPredictionCommand extends Command
1364
- .classBuilder()
1365
- .ep(commonParams)
1366
- .m(function (Command, cs, config, o) {
1367
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1368
- })
1369
- .s("AmazonML_20141212", "GetBatchPrediction", {})
1370
- .n("MachineLearningClient", "GetBatchPredictionCommand")
1371
- .sc(GetBatchPrediction$)
1372
- .build() {
1200
+ class GetBatchPredictionCommand extends command(_ep0, _mw0, "GetBatchPrediction", GetBatchPrediction$) {
1373
1201
  }
1374
1202
 
1375
- class GetDataSourceCommand extends Command
1376
- .classBuilder()
1377
- .ep(commonParams)
1378
- .m(function (Command, cs, config, o) {
1379
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1380
- })
1381
- .s("AmazonML_20141212", "GetDataSource", {})
1382
- .n("MachineLearningClient", "GetDataSourceCommand")
1383
- .sc(GetDataSource$)
1384
- .build() {
1203
+ class GetDataSourceCommand extends command(_ep0, _mw0, "GetDataSource", GetDataSource$) {
1385
1204
  }
1386
1205
 
1387
- class GetEvaluationCommand extends Command
1388
- .classBuilder()
1389
- .ep(commonParams)
1390
- .m(function (Command, cs, config, o) {
1391
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1392
- })
1393
- .s("AmazonML_20141212", "GetEvaluation", {})
1394
- .n("MachineLearningClient", "GetEvaluationCommand")
1395
- .sc(GetEvaluation$)
1396
- .build() {
1206
+ class GetEvaluationCommand extends command(_ep0, _mw0, "GetEvaluation", GetEvaluation$) {
1397
1207
  }
1398
1208
 
1399
- class GetMLModelCommand extends Command
1400
- .classBuilder()
1401
- .ep(commonParams)
1402
- .m(function (Command, cs, config, o) {
1403
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1404
- })
1405
- .s("AmazonML_20141212", "GetMLModel", {})
1406
- .n("MachineLearningClient", "GetMLModelCommand")
1407
- .sc(GetMLModel$)
1408
- .build() {
1209
+ class GetMLModelCommand extends command(_ep0, _mw0, "GetMLModel", GetMLModel$) {
1409
1210
  }
1410
1211
 
1411
- class PredictCommand extends Command
1412
- .classBuilder()
1413
- .ep(commonParams)
1414
- .m(function (Command, cs, config, o) {
1415
- return [
1416
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1417
- getPredictEndpointPlugin(config),
1418
- ];
1419
- })
1420
- .s("AmazonML_20141212", "Predict", {})
1421
- .n("MachineLearningClient", "PredictCommand")
1422
- .sc(Predict$)
1423
- .build() {
1212
+ class PredictCommand extends command(_ep0, _mw1, "Predict", Predict$) {
1424
1213
  }
1425
1214
 
1426
- class UpdateBatchPredictionCommand extends Command
1427
- .classBuilder()
1428
- .ep(commonParams)
1429
- .m(function (Command, cs, config, o) {
1430
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1431
- })
1432
- .s("AmazonML_20141212", "UpdateBatchPrediction", {})
1433
- .n("MachineLearningClient", "UpdateBatchPredictionCommand")
1434
- .sc(UpdateBatchPrediction$)
1435
- .build() {
1215
+ class UpdateBatchPredictionCommand extends command(_ep0, _mw0, "UpdateBatchPrediction", UpdateBatchPrediction$) {
1436
1216
  }
1437
1217
 
1438
- class UpdateDataSourceCommand extends Command
1439
- .classBuilder()
1440
- .ep(commonParams)
1441
- .m(function (Command, cs, config, o) {
1442
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1443
- })
1444
- .s("AmazonML_20141212", "UpdateDataSource", {})
1445
- .n("MachineLearningClient", "UpdateDataSourceCommand")
1446
- .sc(UpdateDataSource$)
1447
- .build() {
1218
+ class UpdateDataSourceCommand extends command(_ep0, _mw0, "UpdateDataSource", UpdateDataSource$) {
1448
1219
  }
1449
1220
 
1450
- class UpdateEvaluationCommand extends Command
1451
- .classBuilder()
1452
- .ep(commonParams)
1453
- .m(function (Command, cs, config, o) {
1454
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1455
- })
1456
- .s("AmazonML_20141212", "UpdateEvaluation", {})
1457
- .n("MachineLearningClient", "UpdateEvaluationCommand")
1458
- .sc(UpdateEvaluation$)
1459
- .build() {
1221
+ class UpdateEvaluationCommand extends command(_ep0, _mw0, "UpdateEvaluation", UpdateEvaluation$) {
1460
1222
  }
1461
1223
 
1462
- class UpdateMLModelCommand extends Command
1463
- .classBuilder()
1464
- .ep(commonParams)
1465
- .m(function (Command, cs, config, o) {
1466
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1467
- })
1468
- .s("AmazonML_20141212", "UpdateMLModel", {})
1469
- .n("MachineLearningClient", "UpdateMLModelCommand")
1470
- .sc(UpdateMLModel$)
1471
- .build() {
1224
+ class UpdateMLModelCommand extends command(_ep0, _mw0, "UpdateMLModel", UpdateMLModel$) {
1472
1225
  }
1473
1226
 
1474
1227
  const paginateDescribeBatchPredictions = createPaginator(MachineLearningClient, DescribeBatchPredictionsCommand, "NextToken", "NextToken", "Limit");
@@ -0,0 +1,10 @@
1
+ import { getPredictEndpointPlugin } from "@aws-sdk/middleware-sdk-machinelearning";
2
+ import { makeBuilder } from "@smithy/core/client";
3
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
4
+ import { commonParams } from "./endpoint/EndpointParameters";
5
+ export const command = makeBuilder(commonParams, "AmazonML_20141212", "MachineLearningClient", getEndpointPlugin);
6
+ export const _ep0 = {};
7
+ export const _mw0 = (Command, cs, config, o) => [];
8
+ export const _mw1 = (Command, cs, config, o) => [
9
+ getPredictEndpointPlugin(config),
10
+ ];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { AddTags$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AddTagsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonML_20141212", "AddTags", {})
13
- .n("MachineLearningClient", "AddTagsCommand")
14
- .sc(AddTags$)
15
- .build() {
3
+ export class AddTagsCommand extends command(_ep0, _mw0, "AddTags", AddTags$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateBatchPrediction$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateBatchPredictionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonML_20141212", "CreateBatchPrediction", {})
13
- .n("MachineLearningClient", "CreateBatchPredictionCommand")
14
- .sc(CreateBatchPrediction$)
15
- .build() {
3
+ export class CreateBatchPredictionCommand extends command(_ep0, _mw0, "CreateBatchPrediction", CreateBatchPrediction$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateDataSourceFromRDS$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateDataSourceFromRDSCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonML_20141212", "CreateDataSourceFromRDS", {})
13
- .n("MachineLearningClient", "CreateDataSourceFromRDSCommand")
14
- .sc(CreateDataSourceFromRDS$)
15
- .build() {
3
+ export class CreateDataSourceFromRDSCommand extends command(_ep0, _mw0, "CreateDataSourceFromRDS", CreateDataSourceFromRDS$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateDataSourceFromRedshift$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateDataSourceFromRedshiftCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonML_20141212", "CreateDataSourceFromRedshift", {})
13
- .n("MachineLearningClient", "CreateDataSourceFromRedshiftCommand")
14
- .sc(CreateDataSourceFromRedshift$)
15
- .build() {
3
+ export class CreateDataSourceFromRedshiftCommand extends command(_ep0, _mw0, "CreateDataSourceFromRedshift", CreateDataSourceFromRedshift$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateDataSourceFromS3$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateDataSourceFromS3Command extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonML_20141212", "CreateDataSourceFromS3", {})
13
- .n("MachineLearningClient", "CreateDataSourceFromS3Command")
14
- .sc(CreateDataSourceFromS3$)
15
- .build() {
3
+ export class CreateDataSourceFromS3Command extends command(_ep0, _mw0, "CreateDataSourceFromS3", CreateDataSourceFromS3$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateEvaluation$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateEvaluationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonML_20141212", "CreateEvaluation", {})
13
- .n("MachineLearningClient", "CreateEvaluationCommand")
14
- .sc(CreateEvaluation$)
15
- .build() {
3
+ export class CreateEvaluationCommand extends command(_ep0, _mw0, "CreateEvaluation", CreateEvaluation$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateMLModel$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateMLModelCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonML_20141212", "CreateMLModel", {})
13
- .n("MachineLearningClient", "CreateMLModelCommand")
14
- .sc(CreateMLModel$)
15
- .build() {
3
+ export class CreateMLModelCommand extends command(_ep0, _mw0, "CreateMLModel", CreateMLModel$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateRealtimeEndpoint$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateRealtimeEndpointCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonML_20141212", "CreateRealtimeEndpoint", {})
13
- .n("MachineLearningClient", "CreateRealtimeEndpointCommand")
14
- .sc(CreateRealtimeEndpoint$)
15
- .build() {
3
+ export class CreateRealtimeEndpointCommand extends command(_ep0, _mw0, "CreateRealtimeEndpoint", CreateRealtimeEndpoint$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteBatchPrediction$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteBatchPredictionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonML_20141212", "DeleteBatchPrediction", {})
13
- .n("MachineLearningClient", "DeleteBatchPredictionCommand")
14
- .sc(DeleteBatchPrediction$)
15
- .build() {
3
+ export class DeleteBatchPredictionCommand extends command(_ep0, _mw0, "DeleteBatchPrediction", DeleteBatchPrediction$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteDataSource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteDataSourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonML_20141212", "DeleteDataSource", {})
13
- .n("MachineLearningClient", "DeleteDataSourceCommand")
14
- .sc(DeleteDataSource$)
15
- .build() {
3
+ export class DeleteDataSourceCommand extends command(_ep0, _mw0, "DeleteDataSource", DeleteDataSource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteEvaluation$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteEvaluationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonML_20141212", "DeleteEvaluation", {})
13
- .n("MachineLearningClient", "DeleteEvaluationCommand")
14
- .sc(DeleteEvaluation$)
15
- .build() {
3
+ export class DeleteEvaluationCommand extends command(_ep0, _mw0, "DeleteEvaluation", DeleteEvaluation$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteMLModel$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteMLModelCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonML_20141212", "DeleteMLModel", {})
13
- .n("MachineLearningClient", "DeleteMLModelCommand")
14
- .sc(DeleteMLModel$)
15
- .build() {
3
+ export class DeleteMLModelCommand extends command(_ep0, _mw0, "DeleteMLModel", DeleteMLModel$) {
16
4
  }