@aws-sdk/client-timestream-write 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 (65) hide show
  1. package/dist-cjs/index.js +35 -320
  2. package/dist-es/commandBuilder.js +14 -0
  3. package/dist-es/commands/CreateBatchLoadTaskCommand.js +2 -22
  4. package/dist-es/commands/CreateDatabaseCommand.js +2 -22
  5. package/dist-es/commands/CreateTableCommand.js +2 -22
  6. package/dist-es/commands/DeleteDatabaseCommand.js +2 -22
  7. package/dist-es/commands/DeleteTableCommand.js +2 -22
  8. package/dist-es/commands/DescribeBatchLoadTaskCommand.js +2 -22
  9. package/dist-es/commands/DescribeDatabaseCommand.js +2 -22
  10. package/dist-es/commands/DescribeEndpointsCommand.js +2 -14
  11. package/dist-es/commands/DescribeTableCommand.js +2 -22
  12. package/dist-es/commands/ListBatchLoadTasksCommand.js +2 -22
  13. package/dist-es/commands/ListDatabasesCommand.js +2 -22
  14. package/dist-es/commands/ListTablesCommand.js +2 -22
  15. package/dist-es/commands/ListTagsForResourceCommand.js +2 -22
  16. package/dist-es/commands/ResumeBatchLoadTaskCommand.js +2 -22
  17. package/dist-es/commands/TagResourceCommand.js +2 -22
  18. package/dist-es/commands/UntagResourceCommand.js +2 -22
  19. package/dist-es/commands/UpdateDatabaseCommand.js +2 -22
  20. package/dist-es/commands/UpdateTableCommand.js +2 -22
  21. package/dist-es/commands/WriteRecordsCommand.js +2 -22
  22. package/dist-es/index.js +1 -0
  23. package/dist-types/commandBuilder.d.ts +22 -0
  24. package/dist-types/commands/CreateBatchLoadTaskCommand.d.ts +3 -8
  25. package/dist-types/commands/CreateDatabaseCommand.d.ts +3 -8
  26. package/dist-types/commands/CreateTableCommand.d.ts +3 -8
  27. package/dist-types/commands/DeleteDatabaseCommand.d.ts +3 -8
  28. package/dist-types/commands/DeleteTableCommand.d.ts +3 -8
  29. package/dist-types/commands/DescribeBatchLoadTaskCommand.d.ts +3 -8
  30. package/dist-types/commands/DescribeDatabaseCommand.d.ts +3 -8
  31. package/dist-types/commands/DescribeEndpointsCommand.d.ts +3 -8
  32. package/dist-types/commands/DescribeTableCommand.d.ts +3 -8
  33. package/dist-types/commands/ListBatchLoadTasksCommand.d.ts +3 -8
  34. package/dist-types/commands/ListDatabasesCommand.d.ts +3 -8
  35. package/dist-types/commands/ListTablesCommand.d.ts +3 -8
  36. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  37. package/dist-types/commands/ResumeBatchLoadTaskCommand.d.ts +3 -8
  38. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  39. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  40. package/dist-types/commands/UpdateDatabaseCommand.d.ts +3 -8
  41. package/dist-types/commands/UpdateTableCommand.d.ts +3 -8
  42. package/dist-types/commands/WriteRecordsCommand.d.ts +3 -8
  43. package/dist-types/index.d.ts +1 -0
  44. package/dist-types/ts3.4/commandBuilder.d.ts +52 -0
  45. package/dist-types/ts3.4/commands/CreateBatchLoadTaskCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/CreateDatabaseCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/CreateTableCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/DeleteDatabaseCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/DeleteTableCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/DescribeBatchLoadTaskCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/DescribeDatabaseCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/DescribeEndpointsCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/ListBatchLoadTasksCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/ListDatabasesCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  58. package/dist-types/ts3.4/commands/ResumeBatchLoadTaskCommand.d.ts +7 -16
  59. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  60. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  61. package/dist-types/ts3.4/commands/UpdateDatabaseCommand.d.ts +7 -16
  62. package/dist-types/ts3.4/commands/UpdateTableCommand.d.ts +7 -16
  63. package/dist-types/ts3.4/commands/WriteRecordsCommand.d.ts +7 -16
  64. package/dist-types/ts3.4/index.d.ts +1 -0
  65. package/package.json +9 -9
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,9 @@
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
- const { NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS, resolveEndpointDiscoveryConfig, getEndpointDiscoveryPlugin } = require("@aws-sdk/middleware-endpoint-discovery");
2
+ const { getEndpointDiscoveryPlugin, NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS, resolveEndpointDiscoveryConfig } = require("@aws-sdk/middleware-endpoint-discovery");
3
3
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { normalizeProvider, getSmithyContext, ServiceException, Command, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, createAggregatedClient } = require("@smithy/core/client");
5
- exports.$Command = Command;
4
+ const { normalizeProvider, getSmithyContext, makeBuilder, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, createAggregatedClient } = require("@smithy/core/client");
5
+ const { Command: $Command } = require("@smithy/core/client");
6
+ exports.$Command = $Command;
6
7
  exports.__Client = Client;
7
8
  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");
8
9
  const { getEndpointPlugin, BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig } = require("@smithy/core/endpoints");
@@ -69,6 +70,17 @@ const commonParams = {
69
70
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
71
  };
71
72
 
73
+ const command = makeBuilder(commonParams, "Timestream_20181101", "TimestreamWriteClient", getEndpointPlugin);
74
+ const _ep0 = {};
75
+ const _mw0 = (Command, cs, config, o) => [
76
+ getEndpointDiscoveryPlugin(config, {
77
+ clientStack: cs,
78
+ options: o,
79
+ isDiscoveredEndpointRequired: true,
80
+ }),
81
+ ];
82
+ const _mw1 = (Command, cs, config, o) => [];
83
+
72
84
  class TimestreamWriteServiceException extends ServiceException {
73
85
  constructor(options) {
74
86
  super(options);
@@ -884,19 +896,10 @@ var WriteRecords$ = [9, n0, _WR,
884
896
  0, () => WriteRecordsRequest$, () => WriteRecordsResponse$
885
897
  ];
886
898
 
887
- class DescribeEndpointsCommand extends Command
888
- .classBuilder()
889
- .ep(commonParams)
890
- .m(function (Command, cs, config, o) {
891
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
892
- })
893
- .s("Timestream_20181101", "DescribeEndpoints", {})
894
- .n("TimestreamWriteClient", "DescribeEndpointsCommand")
895
- .sc(DescribeEndpoints$)
896
- .build() {
899
+ class DescribeEndpointsCommand extends command(_ep0, _mw1, "DescribeEndpoints", DescribeEndpoints$) {
897
900
  }
898
901
 
899
- var version = "3.1076.0";
902
+ var version = "3.1078.0";
900
903
  var packageInfo = {
901
904
  version: version};
902
905
 
@@ -1116,346 +1119,58 @@ class TimestreamWriteClient extends Client {
1116
1119
  }
1117
1120
  }
1118
1121
 
1119
- class CreateBatchLoadTaskCommand extends Command
1120
- .classBuilder()
1121
- .ep(commonParams)
1122
- .m(function (Command, cs, config, o) {
1123
- return [
1124
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1125
- getEndpointDiscoveryPlugin(config, {
1126
- clientStack: cs,
1127
- isDiscoveredEndpointRequired: true,
1128
- options: o,
1129
- }),
1130
- ];
1131
- })
1132
- .s("Timestream_20181101", "CreateBatchLoadTask", {})
1133
- .n("TimestreamWriteClient", "CreateBatchLoadTaskCommand")
1134
- .sc(CreateBatchLoadTask$)
1135
- .build() {
1122
+ class CreateBatchLoadTaskCommand extends command(_ep0, _mw0, "CreateBatchLoadTask", CreateBatchLoadTask$) {
1136
1123
  }
1137
1124
 
1138
- class CreateDatabaseCommand extends Command
1139
- .classBuilder()
1140
- .ep(commonParams)
1141
- .m(function (Command, cs, config, o) {
1142
- return [
1143
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1144
- getEndpointDiscoveryPlugin(config, {
1145
- clientStack: cs,
1146
- isDiscoveredEndpointRequired: true,
1147
- options: o,
1148
- }),
1149
- ];
1150
- })
1151
- .s("Timestream_20181101", "CreateDatabase", {})
1152
- .n("TimestreamWriteClient", "CreateDatabaseCommand")
1153
- .sc(CreateDatabase$)
1154
- .build() {
1125
+ class CreateDatabaseCommand extends command(_ep0, _mw0, "CreateDatabase", CreateDatabase$) {
1155
1126
  }
1156
1127
 
1157
- class CreateTableCommand extends Command
1158
- .classBuilder()
1159
- .ep(commonParams)
1160
- .m(function (Command, cs, config, o) {
1161
- return [
1162
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1163
- getEndpointDiscoveryPlugin(config, {
1164
- clientStack: cs,
1165
- isDiscoveredEndpointRequired: true,
1166
- options: o,
1167
- }),
1168
- ];
1169
- })
1170
- .s("Timestream_20181101", "CreateTable", {})
1171
- .n("TimestreamWriteClient", "CreateTableCommand")
1172
- .sc(CreateTable$)
1173
- .build() {
1128
+ class CreateTableCommand extends command(_ep0, _mw0, "CreateTable", CreateTable$) {
1174
1129
  }
1175
1130
 
1176
- class DeleteDatabaseCommand extends Command
1177
- .classBuilder()
1178
- .ep(commonParams)
1179
- .m(function (Command, cs, config, o) {
1180
- return [
1181
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1182
- getEndpointDiscoveryPlugin(config, {
1183
- clientStack: cs,
1184
- isDiscoveredEndpointRequired: true,
1185
- options: o,
1186
- }),
1187
- ];
1188
- })
1189
- .s("Timestream_20181101", "DeleteDatabase", {})
1190
- .n("TimestreamWriteClient", "DeleteDatabaseCommand")
1191
- .sc(DeleteDatabase$)
1192
- .build() {
1131
+ class DeleteDatabaseCommand extends command(_ep0, _mw0, "DeleteDatabase", DeleteDatabase$) {
1193
1132
  }
1194
1133
 
1195
- class DeleteTableCommand extends Command
1196
- .classBuilder()
1197
- .ep(commonParams)
1198
- .m(function (Command, cs, config, o) {
1199
- return [
1200
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1201
- getEndpointDiscoveryPlugin(config, {
1202
- clientStack: cs,
1203
- isDiscoveredEndpointRequired: true,
1204
- options: o,
1205
- }),
1206
- ];
1207
- })
1208
- .s("Timestream_20181101", "DeleteTable", {})
1209
- .n("TimestreamWriteClient", "DeleteTableCommand")
1210
- .sc(DeleteTable$)
1211
- .build() {
1134
+ class DeleteTableCommand extends command(_ep0, _mw0, "DeleteTable", DeleteTable$) {
1212
1135
  }
1213
1136
 
1214
- class DescribeBatchLoadTaskCommand extends Command
1215
- .classBuilder()
1216
- .ep(commonParams)
1217
- .m(function (Command, cs, config, o) {
1218
- return [
1219
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1220
- getEndpointDiscoveryPlugin(config, {
1221
- clientStack: cs,
1222
- isDiscoveredEndpointRequired: true,
1223
- options: o,
1224
- }),
1225
- ];
1226
- })
1227
- .s("Timestream_20181101", "DescribeBatchLoadTask", {})
1228
- .n("TimestreamWriteClient", "DescribeBatchLoadTaskCommand")
1229
- .sc(DescribeBatchLoadTask$)
1230
- .build() {
1137
+ class DescribeBatchLoadTaskCommand extends command(_ep0, _mw0, "DescribeBatchLoadTask", DescribeBatchLoadTask$) {
1231
1138
  }
1232
1139
 
1233
- class DescribeDatabaseCommand extends Command
1234
- .classBuilder()
1235
- .ep(commonParams)
1236
- .m(function (Command, cs, config, o) {
1237
- return [
1238
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1239
- getEndpointDiscoveryPlugin(config, {
1240
- clientStack: cs,
1241
- isDiscoveredEndpointRequired: true,
1242
- options: o,
1243
- }),
1244
- ];
1245
- })
1246
- .s("Timestream_20181101", "DescribeDatabase", {})
1247
- .n("TimestreamWriteClient", "DescribeDatabaseCommand")
1248
- .sc(DescribeDatabase$)
1249
- .build() {
1140
+ class DescribeDatabaseCommand extends command(_ep0, _mw0, "DescribeDatabase", DescribeDatabase$) {
1250
1141
  }
1251
1142
 
1252
- class DescribeTableCommand extends Command
1253
- .classBuilder()
1254
- .ep(commonParams)
1255
- .m(function (Command, cs, config, o) {
1256
- return [
1257
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1258
- getEndpointDiscoveryPlugin(config, {
1259
- clientStack: cs,
1260
- isDiscoveredEndpointRequired: true,
1261
- options: o,
1262
- }),
1263
- ];
1264
- })
1265
- .s("Timestream_20181101", "DescribeTable", {})
1266
- .n("TimestreamWriteClient", "DescribeTableCommand")
1267
- .sc(DescribeTable$)
1268
- .build() {
1143
+ class DescribeTableCommand extends command(_ep0, _mw0, "DescribeTable", DescribeTable$) {
1269
1144
  }
1270
1145
 
1271
- class ListBatchLoadTasksCommand extends Command
1272
- .classBuilder()
1273
- .ep(commonParams)
1274
- .m(function (Command, cs, config, o) {
1275
- return [
1276
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1277
- getEndpointDiscoveryPlugin(config, {
1278
- clientStack: cs,
1279
- isDiscoveredEndpointRequired: true,
1280
- options: o,
1281
- }),
1282
- ];
1283
- })
1284
- .s("Timestream_20181101", "ListBatchLoadTasks", {})
1285
- .n("TimestreamWriteClient", "ListBatchLoadTasksCommand")
1286
- .sc(ListBatchLoadTasks$)
1287
- .build() {
1146
+ class ListBatchLoadTasksCommand extends command(_ep0, _mw0, "ListBatchLoadTasks", ListBatchLoadTasks$) {
1288
1147
  }
1289
1148
 
1290
- class ListDatabasesCommand extends Command
1291
- .classBuilder()
1292
- .ep(commonParams)
1293
- .m(function (Command, cs, config, o) {
1294
- return [
1295
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1296
- getEndpointDiscoveryPlugin(config, {
1297
- clientStack: cs,
1298
- isDiscoveredEndpointRequired: true,
1299
- options: o,
1300
- }),
1301
- ];
1302
- })
1303
- .s("Timestream_20181101", "ListDatabases", {})
1304
- .n("TimestreamWriteClient", "ListDatabasesCommand")
1305
- .sc(ListDatabases$)
1306
- .build() {
1149
+ class ListDatabasesCommand extends command(_ep0, _mw0, "ListDatabases", ListDatabases$) {
1307
1150
  }
1308
1151
 
1309
- class ListTablesCommand extends Command
1310
- .classBuilder()
1311
- .ep(commonParams)
1312
- .m(function (Command, cs, config, o) {
1313
- return [
1314
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1315
- getEndpointDiscoveryPlugin(config, {
1316
- clientStack: cs,
1317
- isDiscoveredEndpointRequired: true,
1318
- options: o,
1319
- }),
1320
- ];
1321
- })
1322
- .s("Timestream_20181101", "ListTables", {})
1323
- .n("TimestreamWriteClient", "ListTablesCommand")
1324
- .sc(ListTables$)
1325
- .build() {
1152
+ class ListTablesCommand extends command(_ep0, _mw0, "ListTables", ListTables$) {
1326
1153
  }
1327
1154
 
1328
- class ListTagsForResourceCommand extends Command
1329
- .classBuilder()
1330
- .ep(commonParams)
1331
- .m(function (Command, cs, config, o) {
1332
- return [
1333
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1334
- getEndpointDiscoveryPlugin(config, {
1335
- clientStack: cs,
1336
- isDiscoveredEndpointRequired: true,
1337
- options: o,
1338
- }),
1339
- ];
1340
- })
1341
- .s("Timestream_20181101", "ListTagsForResource", {})
1342
- .n("TimestreamWriteClient", "ListTagsForResourceCommand")
1343
- .sc(ListTagsForResource$)
1344
- .build() {
1155
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1345
1156
  }
1346
1157
 
1347
- class ResumeBatchLoadTaskCommand extends Command
1348
- .classBuilder()
1349
- .ep(commonParams)
1350
- .m(function (Command, cs, config, o) {
1351
- return [
1352
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1353
- getEndpointDiscoveryPlugin(config, {
1354
- clientStack: cs,
1355
- isDiscoveredEndpointRequired: true,
1356
- options: o,
1357
- }),
1358
- ];
1359
- })
1360
- .s("Timestream_20181101", "ResumeBatchLoadTask", {})
1361
- .n("TimestreamWriteClient", "ResumeBatchLoadTaskCommand")
1362
- .sc(ResumeBatchLoadTask$)
1363
- .build() {
1158
+ class ResumeBatchLoadTaskCommand extends command(_ep0, _mw0, "ResumeBatchLoadTask", ResumeBatchLoadTask$) {
1364
1159
  }
1365
1160
 
1366
- class TagResourceCommand extends Command
1367
- .classBuilder()
1368
- .ep(commonParams)
1369
- .m(function (Command, cs, config, o) {
1370
- return [
1371
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1372
- getEndpointDiscoveryPlugin(config, {
1373
- clientStack: cs,
1374
- isDiscoveredEndpointRequired: true,
1375
- options: o,
1376
- }),
1377
- ];
1378
- })
1379
- .s("Timestream_20181101", "TagResource", {})
1380
- .n("TimestreamWriteClient", "TagResourceCommand")
1381
- .sc(TagResource$)
1382
- .build() {
1161
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1383
1162
  }
1384
1163
 
1385
- class UntagResourceCommand extends Command
1386
- .classBuilder()
1387
- .ep(commonParams)
1388
- .m(function (Command, cs, config, o) {
1389
- return [
1390
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1391
- getEndpointDiscoveryPlugin(config, {
1392
- clientStack: cs,
1393
- isDiscoveredEndpointRequired: true,
1394
- options: o,
1395
- }),
1396
- ];
1397
- })
1398
- .s("Timestream_20181101", "UntagResource", {})
1399
- .n("TimestreamWriteClient", "UntagResourceCommand")
1400
- .sc(UntagResource$)
1401
- .build() {
1164
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1402
1165
  }
1403
1166
 
1404
- class UpdateDatabaseCommand extends Command
1405
- .classBuilder()
1406
- .ep(commonParams)
1407
- .m(function (Command, cs, config, o) {
1408
- return [
1409
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1410
- getEndpointDiscoveryPlugin(config, {
1411
- clientStack: cs,
1412
- isDiscoveredEndpointRequired: true,
1413
- options: o,
1414
- }),
1415
- ];
1416
- })
1417
- .s("Timestream_20181101", "UpdateDatabase", {})
1418
- .n("TimestreamWriteClient", "UpdateDatabaseCommand")
1419
- .sc(UpdateDatabase$)
1420
- .build() {
1167
+ class UpdateDatabaseCommand extends command(_ep0, _mw0, "UpdateDatabase", UpdateDatabase$) {
1421
1168
  }
1422
1169
 
1423
- class UpdateTableCommand extends Command
1424
- .classBuilder()
1425
- .ep(commonParams)
1426
- .m(function (Command, cs, config, o) {
1427
- return [
1428
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1429
- getEndpointDiscoveryPlugin(config, {
1430
- clientStack: cs,
1431
- isDiscoveredEndpointRequired: true,
1432
- options: o,
1433
- }),
1434
- ];
1435
- })
1436
- .s("Timestream_20181101", "UpdateTable", {})
1437
- .n("TimestreamWriteClient", "UpdateTableCommand")
1438
- .sc(UpdateTable$)
1439
- .build() {
1170
+ class UpdateTableCommand extends command(_ep0, _mw0, "UpdateTable", UpdateTable$) {
1440
1171
  }
1441
1172
 
1442
- class WriteRecordsCommand extends Command
1443
- .classBuilder()
1444
- .ep(commonParams)
1445
- .m(function (Command, cs, config, o) {
1446
- return [
1447
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1448
- getEndpointDiscoveryPlugin(config, {
1449
- clientStack: cs,
1450
- isDiscoveredEndpointRequired: true,
1451
- options: o,
1452
- }),
1453
- ];
1454
- })
1455
- .s("Timestream_20181101", "WriteRecords", {})
1456
- .n("TimestreamWriteClient", "WriteRecordsCommand")
1457
- .sc(WriteRecords$)
1458
- .build() {
1173
+ class WriteRecordsCommand extends command(_ep0, _mw0, "WriteRecords", WriteRecords$) {
1459
1174
  }
1460
1175
 
1461
1176
  const paginateListBatchLoadTasks = createPaginator(TimestreamWriteClient, ListBatchLoadTasksCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,14 @@
1
+ import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
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, "Timestream_20181101", "TimestreamWriteClient", getEndpointPlugin);
6
+ export const _ep0 = {};
7
+ export const _mw0 = (Command, cs, config, o) => [
8
+ getEndpointDiscoveryPlugin(config, {
9
+ clientStack: cs,
10
+ options: o,
11
+ isDiscoveredEndpointRequired: true,
12
+ }),
13
+ ];
14
+ export const _mw1 = (Command, cs, config, o) => [];
@@ -1,24 +1,4 @@
1
- import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
- import { Command as $Command } from "@smithy/core/client";
3
- import { getEndpointPlugin } from "@smithy/core/endpoints";
4
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
5
2
  import { CreateBatchLoadTask$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class CreateBatchLoadTaskCommand extends $Command
8
- .classBuilder()
9
- .ep(commonParams)
10
- .m(function (Command, cs, config, o) {
11
- return [
12
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
13
- getEndpointDiscoveryPlugin(config, {
14
- clientStack: cs,
15
- isDiscoveredEndpointRequired: true,
16
- options: o,
17
- }),
18
- ];
19
- })
20
- .s("Timestream_20181101", "CreateBatchLoadTask", {})
21
- .n("TimestreamWriteClient", "CreateBatchLoadTaskCommand")
22
- .sc(CreateBatchLoadTask$)
23
- .build() {
3
+ export class CreateBatchLoadTaskCommand extends command(_ep0, _mw0, "CreateBatchLoadTask", CreateBatchLoadTask$) {
24
4
  }
@@ -1,24 +1,4 @@
1
- import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
- import { Command as $Command } from "@smithy/core/client";
3
- import { getEndpointPlugin } from "@smithy/core/endpoints";
4
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
5
2
  import { CreateDatabase$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class CreateDatabaseCommand extends $Command
8
- .classBuilder()
9
- .ep(commonParams)
10
- .m(function (Command, cs, config, o) {
11
- return [
12
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
13
- getEndpointDiscoveryPlugin(config, {
14
- clientStack: cs,
15
- isDiscoveredEndpointRequired: true,
16
- options: o,
17
- }),
18
- ];
19
- })
20
- .s("Timestream_20181101", "CreateDatabase", {})
21
- .n("TimestreamWriteClient", "CreateDatabaseCommand")
22
- .sc(CreateDatabase$)
23
- .build() {
3
+ export class CreateDatabaseCommand extends command(_ep0, _mw0, "CreateDatabase", CreateDatabase$) {
24
4
  }
@@ -1,24 +1,4 @@
1
- import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
- import { Command as $Command } from "@smithy/core/client";
3
- import { getEndpointPlugin } from "@smithy/core/endpoints";
4
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
5
2
  import { CreateTable$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class CreateTableCommand extends $Command
8
- .classBuilder()
9
- .ep(commonParams)
10
- .m(function (Command, cs, config, o) {
11
- return [
12
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
13
- getEndpointDiscoveryPlugin(config, {
14
- clientStack: cs,
15
- isDiscoveredEndpointRequired: true,
16
- options: o,
17
- }),
18
- ];
19
- })
20
- .s("Timestream_20181101", "CreateTable", {})
21
- .n("TimestreamWriteClient", "CreateTableCommand")
22
- .sc(CreateTable$)
23
- .build() {
3
+ export class CreateTableCommand extends command(_ep0, _mw0, "CreateTable", CreateTable$) {
24
4
  }
@@ -1,24 +1,4 @@
1
- import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
- import { Command as $Command } from "@smithy/core/client";
3
- import { getEndpointPlugin } from "@smithy/core/endpoints";
4
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
5
2
  import { DeleteDatabase$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class DeleteDatabaseCommand extends $Command
8
- .classBuilder()
9
- .ep(commonParams)
10
- .m(function (Command, cs, config, o) {
11
- return [
12
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
13
- getEndpointDiscoveryPlugin(config, {
14
- clientStack: cs,
15
- isDiscoveredEndpointRequired: true,
16
- options: o,
17
- }),
18
- ];
19
- })
20
- .s("Timestream_20181101", "DeleteDatabase", {})
21
- .n("TimestreamWriteClient", "DeleteDatabaseCommand")
22
- .sc(DeleteDatabase$)
23
- .build() {
3
+ export class DeleteDatabaseCommand extends command(_ep0, _mw0, "DeleteDatabase", DeleteDatabase$) {
24
4
  }
@@ -1,24 +1,4 @@
1
- import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
- import { Command as $Command } from "@smithy/core/client";
3
- import { getEndpointPlugin } from "@smithy/core/endpoints";
4
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
5
2
  import { DeleteTable$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class DeleteTableCommand extends $Command
8
- .classBuilder()
9
- .ep(commonParams)
10
- .m(function (Command, cs, config, o) {
11
- return [
12
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
13
- getEndpointDiscoveryPlugin(config, {
14
- clientStack: cs,
15
- isDiscoveredEndpointRequired: true,
16
- options: o,
17
- }),
18
- ];
19
- })
20
- .s("Timestream_20181101", "DeleteTable", {})
21
- .n("TimestreamWriteClient", "DeleteTableCommand")
22
- .sc(DeleteTable$)
23
- .build() {
3
+ export class DeleteTableCommand extends command(_ep0, _mw0, "DeleteTable", DeleteTable$) {
24
4
  }
@@ -1,24 +1,4 @@
1
- import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
- import { Command as $Command } from "@smithy/core/client";
3
- import { getEndpointPlugin } from "@smithy/core/endpoints";
4
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
5
2
  import { DescribeBatchLoadTask$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class DescribeBatchLoadTaskCommand extends $Command
8
- .classBuilder()
9
- .ep(commonParams)
10
- .m(function (Command, cs, config, o) {
11
- return [
12
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
13
- getEndpointDiscoveryPlugin(config, {
14
- clientStack: cs,
15
- isDiscoveredEndpointRequired: true,
16
- options: o,
17
- }),
18
- ];
19
- })
20
- .s("Timestream_20181101", "DescribeBatchLoadTask", {})
21
- .n("TimestreamWriteClient", "DescribeBatchLoadTaskCommand")
22
- .sc(DescribeBatchLoadTask$)
23
- .build() {
3
+ export class DescribeBatchLoadTaskCommand extends command(_ep0, _mw0, "DescribeBatchLoadTask", DescribeBatchLoadTask$) {
24
4
  }
@@ -1,24 +1,4 @@
1
- import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
- import { Command as $Command } from "@smithy/core/client";
3
- import { getEndpointPlugin } from "@smithy/core/endpoints";
4
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
5
2
  import { DescribeDatabase$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class DescribeDatabaseCommand extends $Command
8
- .classBuilder()
9
- .ep(commonParams)
10
- .m(function (Command, cs, config, o) {
11
- return [
12
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
13
- getEndpointDiscoveryPlugin(config, {
14
- clientStack: cs,
15
- isDiscoveredEndpointRequired: true,
16
- options: o,
17
- }),
18
- ];
19
- })
20
- .s("Timestream_20181101", "DescribeDatabase", {})
21
- .n("TimestreamWriteClient", "DescribeDatabaseCommand")
22
- .sc(DescribeDatabase$)
23
- .build() {
3
+ export class DescribeDatabaseCommand extends command(_ep0, _mw0, "DescribeDatabase", DescribeDatabase$) {
24
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, _mw1, command } from "../commandBuilder";
4
2
  import { DescribeEndpoints$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeEndpointsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Timestream_20181101", "DescribeEndpoints", {})
13
- .n("TimestreamWriteClient", "DescribeEndpointsCommand")
14
- .sc(DescribeEndpoints$)
15
- .build() {
3
+ export class DescribeEndpointsCommand extends command(_ep0, _mw1, "DescribeEndpoints", DescribeEndpoints$) {
16
4
  }
@@ -1,24 +1,4 @@
1
- import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
- import { Command as $Command } from "@smithy/core/client";
3
- import { getEndpointPlugin } from "@smithy/core/endpoints";
4
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
5
2
  import { DescribeTable$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class DescribeTableCommand extends $Command
8
- .classBuilder()
9
- .ep(commonParams)
10
- .m(function (Command, cs, config, o) {
11
- return [
12
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
13
- getEndpointDiscoveryPlugin(config, {
14
- clientStack: cs,
15
- isDiscoveredEndpointRequired: true,
16
- options: o,
17
- }),
18
- ];
19
- })
20
- .s("Timestream_20181101", "DescribeTable", {})
21
- .n("TimestreamWriteClient", "DescribeTableCommand")
22
- .sc(DescribeTable$)
23
- .build() {
3
+ export class DescribeTableCommand extends command(_ep0, _mw0, "DescribeTable", DescribeTable$) {
24
4
  }