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