@aws-sdk/client-timestream-query 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 (65) hide show
  1. package/dist-cjs/index.js +34 -254
  2. package/dist-es/commandBuilder.js +14 -0
  3. package/dist-es/commands/CancelQueryCommand.js +2 -22
  4. package/dist-es/commands/CreateScheduledQueryCommand.js +2 -22
  5. package/dist-es/commands/DeleteScheduledQueryCommand.js +2 -22
  6. package/dist-es/commands/DescribeAccountSettingsCommand.js +2 -22
  7. package/dist-es/commands/DescribeEndpointsCommand.js +2 -14
  8. package/dist-es/commands/DescribeScheduledQueryCommand.js +2 -22
  9. package/dist-es/commands/ExecuteScheduledQueryCommand.js +2 -22
  10. package/dist-es/commands/ListScheduledQueriesCommand.js +2 -22
  11. package/dist-es/commands/ListTagsForResourceCommand.js +2 -22
  12. package/dist-es/commands/PrepareQueryCommand.js +2 -22
  13. package/dist-es/commands/QueryCommand.js +2 -22
  14. package/dist-es/commands/TagResourceCommand.js +2 -22
  15. package/dist-es/commands/UntagResourceCommand.js +2 -22
  16. package/dist-es/commands/UpdateAccountSettingsCommand.js +2 -22
  17. package/dist-es/commands/UpdateScheduledQueryCommand.js +2 -22
  18. package/dist-es/index.js +1 -0
  19. package/dist-es/runtimeConfig.browser.js +0 -2
  20. package/dist-es/runtimeConfig.js +1 -2
  21. package/dist-es/runtimeConfig.native.js +0 -2
  22. package/dist-es/runtimeConfig.shared.js +2 -0
  23. package/dist-types/commandBuilder.d.ts +22 -0
  24. package/dist-types/commands/CancelQueryCommand.d.ts +3 -8
  25. package/dist-types/commands/CreateScheduledQueryCommand.d.ts +3 -8
  26. package/dist-types/commands/DeleteScheduledQueryCommand.d.ts +3 -8
  27. package/dist-types/commands/DescribeAccountSettingsCommand.d.ts +3 -8
  28. package/dist-types/commands/DescribeEndpointsCommand.d.ts +3 -8
  29. package/dist-types/commands/DescribeScheduledQueryCommand.d.ts +3 -8
  30. package/dist-types/commands/ExecuteScheduledQueryCommand.d.ts +3 -8
  31. package/dist-types/commands/ListScheduledQueriesCommand.d.ts +3 -8
  32. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  33. package/dist-types/commands/PrepareQueryCommand.d.ts +3 -8
  34. package/dist-types/commands/QueryCommand.d.ts +3 -8
  35. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  36. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  37. package/dist-types/commands/UpdateAccountSettingsCommand.d.ts +3 -8
  38. package/dist-types/commands/UpdateScheduledQueryCommand.d.ts +3 -8
  39. package/dist-types/index.d.ts +1 -0
  40. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  41. package/dist-types/runtimeConfig.d.ts +1 -1
  42. package/dist-types/runtimeConfig.native.d.ts +1 -1
  43. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  44. package/dist-types/ts3.4/commandBuilder.d.ts +52 -0
  45. package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/CreateScheduledQueryCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/DeleteScheduledQueryCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/DescribeAccountSettingsCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/DescribeEndpointsCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/DescribeScheduledQueryCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/ExecuteScheduledQueryCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/ListScheduledQueriesCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/PrepareQueryCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/QueryCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  58. package/dist-types/ts3.4/commands/UpdateAccountSettingsCommand.d.ts +7 -16
  59. package/dist-types/ts3.4/commands/UpdateScheduledQueryCommand.d.ts +7 -16
  60. package/dist-types/ts3.4/index.d.ts +1 -0
  61. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  62. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  63. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  64. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  65. 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 defaultTimestreamQueryHttpAuthSchemeParametersProvider = 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", "TimestreamQueryClient", 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 TimestreamQueryServiceException extends ServiceException {
72
85
  constructor(options) {
73
86
  super(options);
@@ -916,19 +929,10 @@ var UpdateScheduledQuery$ = [9, n0, _USQ,
916
929
  0, () => UpdateScheduledQueryRequest$, () => __Unit
917
930
  ];
918
931
 
919
- class DescribeEndpointsCommand extends Command
920
- .classBuilder()
921
- .ep(commonParams)
922
- .m(function (Command, cs, config, o) {
923
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
924
- })
925
- .s("Timestream_20181101", "DescribeEndpoints", {})
926
- .n("TimestreamQueryClient", "DescribeEndpointsCommand")
927
- .sc(DescribeEndpoints$)
928
- .build() {
932
+ class DescribeEndpointsCommand extends command(_ep0, _mw1, "DescribeEndpoints", DescribeEndpoints$) {
929
933
  }
930
934
 
931
- var version = "3.1075.0";
935
+ var version = "3.1077.0";
932
936
  var packageInfo = {
933
937
  version: version};
934
938
 
@@ -1025,6 +1029,7 @@ const getRuntimeConfig$1 = (config) => {
1025
1029
  serviceTarget: "Timestream_20181101",
1026
1030
  },
1027
1031
  serviceId: config?.serviceId ?? "Timestream Query",
1032
+ sha256: config?.sha256 ?? Sha256,
1028
1033
  urlParser: config?.urlParser ?? parseUrl,
1029
1034
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1030
1035
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -1059,7 +1064,6 @@ const getRuntimeConfig = (config) => {
1059
1064
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1060
1065
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1061
1066
  }, config),
1062
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1063
1067
  streamCollector: config?.streamCollector ?? streamCollector,
1064
1068
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1065
1069
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1148,270 +1152,46 @@ class TimestreamQueryClient extends Client {
1148
1152
  }
1149
1153
  }
1150
1154
 
1151
- class CancelQueryCommand extends Command
1152
- .classBuilder()
1153
- .ep(commonParams)
1154
- .m(function (Command, cs, config, o) {
1155
- return [
1156
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1157
- getEndpointDiscoveryPlugin(config, {
1158
- clientStack: cs,
1159
- isDiscoveredEndpointRequired: true,
1160
- options: o,
1161
- }),
1162
- ];
1163
- })
1164
- .s("Timestream_20181101", "CancelQuery", {})
1165
- .n("TimestreamQueryClient", "CancelQueryCommand")
1166
- .sc(CancelQuery$)
1167
- .build() {
1155
+ class CancelQueryCommand extends command(_ep0, _mw0, "CancelQuery", CancelQuery$) {
1168
1156
  }
1169
1157
 
1170
- class CreateScheduledQueryCommand extends Command
1171
- .classBuilder()
1172
- .ep(commonParams)
1173
- .m(function (Command, cs, config, o) {
1174
- return [
1175
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1176
- getEndpointDiscoveryPlugin(config, {
1177
- clientStack: cs,
1178
- isDiscoveredEndpointRequired: true,
1179
- options: o,
1180
- }),
1181
- ];
1182
- })
1183
- .s("Timestream_20181101", "CreateScheduledQuery", {})
1184
- .n("TimestreamQueryClient", "CreateScheduledQueryCommand")
1185
- .sc(CreateScheduledQuery$)
1186
- .build() {
1158
+ class CreateScheduledQueryCommand extends command(_ep0, _mw0, "CreateScheduledQuery", CreateScheduledQuery$) {
1187
1159
  }
1188
1160
 
1189
- class DeleteScheduledQueryCommand extends Command
1190
- .classBuilder()
1191
- .ep(commonParams)
1192
- .m(function (Command, cs, config, o) {
1193
- return [
1194
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1195
- getEndpointDiscoveryPlugin(config, {
1196
- clientStack: cs,
1197
- isDiscoveredEndpointRequired: true,
1198
- options: o,
1199
- }),
1200
- ];
1201
- })
1202
- .s("Timestream_20181101", "DeleteScheduledQuery", {})
1203
- .n("TimestreamQueryClient", "DeleteScheduledQueryCommand")
1204
- .sc(DeleteScheduledQuery$)
1205
- .build() {
1161
+ class DeleteScheduledQueryCommand extends command(_ep0, _mw0, "DeleteScheduledQuery", DeleteScheduledQuery$) {
1206
1162
  }
1207
1163
 
1208
- class DescribeAccountSettingsCommand extends Command
1209
- .classBuilder()
1210
- .ep(commonParams)
1211
- .m(function (Command, cs, config, o) {
1212
- return [
1213
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1214
- getEndpointDiscoveryPlugin(config, {
1215
- clientStack: cs,
1216
- isDiscoveredEndpointRequired: true,
1217
- options: o,
1218
- }),
1219
- ];
1220
- })
1221
- .s("Timestream_20181101", "DescribeAccountSettings", {})
1222
- .n("TimestreamQueryClient", "DescribeAccountSettingsCommand")
1223
- .sc(DescribeAccountSettings$)
1224
- .build() {
1164
+ class DescribeAccountSettingsCommand extends command(_ep0, _mw0, "DescribeAccountSettings", DescribeAccountSettings$) {
1225
1165
  }
1226
1166
 
1227
- class DescribeScheduledQueryCommand extends Command
1228
- .classBuilder()
1229
- .ep(commonParams)
1230
- .m(function (Command, cs, config, o) {
1231
- return [
1232
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1233
- getEndpointDiscoveryPlugin(config, {
1234
- clientStack: cs,
1235
- isDiscoveredEndpointRequired: true,
1236
- options: o,
1237
- }),
1238
- ];
1239
- })
1240
- .s("Timestream_20181101", "DescribeScheduledQuery", {})
1241
- .n("TimestreamQueryClient", "DescribeScheduledQueryCommand")
1242
- .sc(DescribeScheduledQuery$)
1243
- .build() {
1167
+ class DescribeScheduledQueryCommand extends command(_ep0, _mw0, "DescribeScheduledQuery", DescribeScheduledQuery$) {
1244
1168
  }
1245
1169
 
1246
- class ExecuteScheduledQueryCommand extends Command
1247
- .classBuilder()
1248
- .ep(commonParams)
1249
- .m(function (Command, cs, config, o) {
1250
- return [
1251
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1252
- getEndpointDiscoveryPlugin(config, {
1253
- clientStack: cs,
1254
- isDiscoveredEndpointRequired: true,
1255
- options: o,
1256
- }),
1257
- ];
1258
- })
1259
- .s("Timestream_20181101", "ExecuteScheduledQuery", {})
1260
- .n("TimestreamQueryClient", "ExecuteScheduledQueryCommand")
1261
- .sc(ExecuteScheduledQuery$)
1262
- .build() {
1170
+ class ExecuteScheduledQueryCommand extends command(_ep0, _mw0, "ExecuteScheduledQuery", ExecuteScheduledQuery$) {
1263
1171
  }
1264
1172
 
1265
- class ListScheduledQueriesCommand extends Command
1266
- .classBuilder()
1267
- .ep(commonParams)
1268
- .m(function (Command, cs, config, o) {
1269
- return [
1270
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1271
- getEndpointDiscoveryPlugin(config, {
1272
- clientStack: cs,
1273
- isDiscoveredEndpointRequired: true,
1274
- options: o,
1275
- }),
1276
- ];
1277
- })
1278
- .s("Timestream_20181101", "ListScheduledQueries", {})
1279
- .n("TimestreamQueryClient", "ListScheduledQueriesCommand")
1280
- .sc(ListScheduledQueries$)
1281
- .build() {
1173
+ class ListScheduledQueriesCommand extends command(_ep0, _mw0, "ListScheduledQueries", ListScheduledQueries$) {
1282
1174
  }
1283
1175
 
1284
- class ListTagsForResourceCommand extends Command
1285
- .classBuilder()
1286
- .ep(commonParams)
1287
- .m(function (Command, cs, config, o) {
1288
- return [
1289
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1290
- getEndpointDiscoveryPlugin(config, {
1291
- clientStack: cs,
1292
- isDiscoveredEndpointRequired: true,
1293
- options: o,
1294
- }),
1295
- ];
1296
- })
1297
- .s("Timestream_20181101", "ListTagsForResource", {})
1298
- .n("TimestreamQueryClient", "ListTagsForResourceCommand")
1299
- .sc(ListTagsForResource$)
1300
- .build() {
1176
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1301
1177
  }
1302
1178
 
1303
- class PrepareQueryCommand extends Command
1304
- .classBuilder()
1305
- .ep(commonParams)
1306
- .m(function (Command, cs, config, o) {
1307
- return [
1308
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1309
- getEndpointDiscoveryPlugin(config, {
1310
- clientStack: cs,
1311
- isDiscoveredEndpointRequired: true,
1312
- options: o,
1313
- }),
1314
- ];
1315
- })
1316
- .s("Timestream_20181101", "PrepareQuery", {})
1317
- .n("TimestreamQueryClient", "PrepareQueryCommand")
1318
- .sc(PrepareQuery$)
1319
- .build() {
1179
+ class PrepareQueryCommand extends command(_ep0, _mw0, "PrepareQuery", PrepareQuery$) {
1320
1180
  }
1321
1181
 
1322
- class QueryCommand extends Command
1323
- .classBuilder()
1324
- .ep(commonParams)
1325
- .m(function (Command, cs, config, o) {
1326
- return [
1327
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1328
- getEndpointDiscoveryPlugin(config, {
1329
- clientStack: cs,
1330
- isDiscoveredEndpointRequired: true,
1331
- options: o,
1332
- }),
1333
- ];
1334
- })
1335
- .s("Timestream_20181101", "Query", {})
1336
- .n("TimestreamQueryClient", "QueryCommand")
1337
- .sc(Query$)
1338
- .build() {
1182
+ class QueryCommand extends command(_ep0, _mw0, "Query", Query$) {
1339
1183
  }
1340
1184
 
1341
- class TagResourceCommand extends Command
1342
- .classBuilder()
1343
- .ep(commonParams)
1344
- .m(function (Command, cs, config, o) {
1345
- return [
1346
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1347
- getEndpointDiscoveryPlugin(config, {
1348
- clientStack: cs,
1349
- isDiscoveredEndpointRequired: true,
1350
- options: o,
1351
- }),
1352
- ];
1353
- })
1354
- .s("Timestream_20181101", "TagResource", {})
1355
- .n("TimestreamQueryClient", "TagResourceCommand")
1356
- .sc(TagResource$)
1357
- .build() {
1185
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1358
1186
  }
1359
1187
 
1360
- class UntagResourceCommand extends Command
1361
- .classBuilder()
1362
- .ep(commonParams)
1363
- .m(function (Command, cs, config, o) {
1364
- return [
1365
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1366
- getEndpointDiscoveryPlugin(config, {
1367
- clientStack: cs,
1368
- isDiscoveredEndpointRequired: true,
1369
- options: o,
1370
- }),
1371
- ];
1372
- })
1373
- .s("Timestream_20181101", "UntagResource", {})
1374
- .n("TimestreamQueryClient", "UntagResourceCommand")
1375
- .sc(UntagResource$)
1376
- .build() {
1188
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1377
1189
  }
1378
1190
 
1379
- class UpdateAccountSettingsCommand extends Command
1380
- .classBuilder()
1381
- .ep(commonParams)
1382
- .m(function (Command, cs, config, o) {
1383
- return [
1384
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1385
- getEndpointDiscoveryPlugin(config, {
1386
- clientStack: cs,
1387
- isDiscoveredEndpointRequired: true,
1388
- options: o,
1389
- }),
1390
- ];
1391
- })
1392
- .s("Timestream_20181101", "UpdateAccountSettings", {})
1393
- .n("TimestreamQueryClient", "UpdateAccountSettingsCommand")
1394
- .sc(UpdateAccountSettings$)
1395
- .build() {
1191
+ class UpdateAccountSettingsCommand extends command(_ep0, _mw0, "UpdateAccountSettings", UpdateAccountSettings$) {
1396
1192
  }
1397
1193
 
1398
- class UpdateScheduledQueryCommand extends Command
1399
- .classBuilder()
1400
- .ep(commonParams)
1401
- .m(function (Command, cs, config, o) {
1402
- return [
1403
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1404
- getEndpointDiscoveryPlugin(config, {
1405
- clientStack: cs,
1406
- isDiscoveredEndpointRequired: true,
1407
- options: o,
1408
- }),
1409
- ];
1410
- })
1411
- .s("Timestream_20181101", "UpdateScheduledQuery", {})
1412
- .n("TimestreamQueryClient", "UpdateScheduledQueryCommand")
1413
- .sc(UpdateScheduledQuery$)
1414
- .build() {
1194
+ class UpdateScheduledQueryCommand extends command(_ep0, _mw0, "UpdateScheduledQuery", UpdateScheduledQuery$) {
1415
1195
  }
1416
1196
 
1417
1197
  const paginateListScheduledQueries = createPaginator(TimestreamQueryClient, ListScheduledQueriesCommand, "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", "TimestreamQueryClient", 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 { CancelQuery$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class CancelQueryCommand 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", "CancelQuery", {})
21
- .n("TimestreamQueryClient", "CancelQueryCommand")
22
- .sc(CancelQuery$)
23
- .build() {
3
+ export class CancelQueryCommand extends command(_ep0, _mw0, "CancelQuery", CancelQuery$) {
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 { CreateScheduledQuery$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class CreateScheduledQueryCommand 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", "CreateScheduledQuery", {})
21
- .n("TimestreamQueryClient", "CreateScheduledQueryCommand")
22
- .sc(CreateScheduledQuery$)
23
- .build() {
3
+ export class CreateScheduledQueryCommand extends command(_ep0, _mw0, "CreateScheduledQuery", CreateScheduledQuery$) {
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 { DeleteScheduledQuery$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class DeleteScheduledQueryCommand 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", "DeleteScheduledQuery", {})
21
- .n("TimestreamQueryClient", "DeleteScheduledQueryCommand")
22
- .sc(DeleteScheduledQuery$)
23
- .build() {
3
+ export class DeleteScheduledQueryCommand extends command(_ep0, _mw0, "DeleteScheduledQuery", DeleteScheduledQuery$) {
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 { DescribeAccountSettings$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class DescribeAccountSettingsCommand 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", "DescribeAccountSettings", {})
21
- .n("TimestreamQueryClient", "DescribeAccountSettingsCommand")
22
- .sc(DescribeAccountSettings$)
23
- .build() {
3
+ export class DescribeAccountSettingsCommand extends command(_ep0, _mw0, "DescribeAccountSettings", DescribeAccountSettings$) {
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("TimestreamQueryClient", "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 { DescribeScheduledQuery$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class DescribeScheduledQueryCommand 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", "DescribeScheduledQuery", {})
21
- .n("TimestreamQueryClient", "DescribeScheduledQueryCommand")
22
- .sc(DescribeScheduledQuery$)
23
- .build() {
3
+ export class DescribeScheduledQueryCommand extends command(_ep0, _mw0, "DescribeScheduledQuery", DescribeScheduledQuery$) {
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 { ExecuteScheduledQuery$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class ExecuteScheduledQueryCommand 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", "ExecuteScheduledQuery", {})
21
- .n("TimestreamQueryClient", "ExecuteScheduledQueryCommand")
22
- .sc(ExecuteScheduledQuery$)
23
- .build() {
3
+ export class ExecuteScheduledQueryCommand extends command(_ep0, _mw0, "ExecuteScheduledQuery", ExecuteScheduledQuery$) {
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 { ListScheduledQueries$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class ListScheduledQueriesCommand 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", "ListScheduledQueries", {})
21
- .n("TimestreamQueryClient", "ListScheduledQueriesCommand")
22
- .sc(ListScheduledQueries$)
23
- .build() {
3
+ export class ListScheduledQueriesCommand extends command(_ep0, _mw0, "ListScheduledQueries", ListScheduledQueries$) {
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 { ListTagsForResource$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class ListTagsForResourceCommand 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", "ListTagsForResource", {})
21
- .n("TimestreamQueryClient", "ListTagsForResourceCommand")
22
- .sc(ListTagsForResource$)
23
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
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 { PrepareQuery$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class PrepareQueryCommand 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", "PrepareQuery", {})
21
- .n("TimestreamQueryClient", "PrepareQueryCommand")
22
- .sc(PrepareQuery$)
23
- .build() {
3
+ export class PrepareQueryCommand extends command(_ep0, _mw0, "PrepareQuery", PrepareQuery$) {
24
4
  }