@aws-sdk/client-timestream-query 3.42.0 → 3.47.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 (88) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +3 -2
  3. package/dist-cjs/TimestreamQuery.js +150 -0
  4. package/dist-cjs/commands/CreateScheduledQueryCommand.js +38 -0
  5. package/dist-cjs/commands/DeleteScheduledQueryCommand.js +38 -0
  6. package/dist-cjs/commands/DescribeScheduledQueryCommand.js +38 -0
  7. package/dist-cjs/commands/ExecuteScheduledQueryCommand.js +38 -0
  8. package/dist-cjs/commands/ListScheduledQueriesCommand.js +38 -0
  9. package/dist-cjs/commands/ListTagsForResourceCommand.js +38 -0
  10. package/dist-cjs/commands/PrepareQueryCommand.js +38 -0
  11. package/dist-cjs/commands/TagResourceCommand.js +38 -0
  12. package/dist-cjs/commands/UntagResourceCommand.js +38 -0
  13. package/dist-cjs/commands/UpdateScheduledQueryCommand.js +38 -0
  14. package/dist-cjs/commands/index.js +10 -0
  15. package/dist-cjs/endpoints.js +1 -0
  16. package/dist-cjs/models/models_0.js +275 -39
  17. package/dist-cjs/pagination/ListScheduledQueriesPaginator.js +35 -0
  18. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +35 -0
  19. package/dist-cjs/pagination/index.js +2 -0
  20. package/dist-cjs/protocols/Aws_json1_0.js +1580 -34
  21. package/dist-cjs/runtimeConfig.browser.js +7 -2
  22. package/dist-cjs/runtimeConfig.js +9 -3
  23. package/dist-es/TimestreamQuery.js +150 -0
  24. package/dist-es/commands/CreateScheduledQueryCommand.js +41 -0
  25. package/dist-es/commands/DeleteScheduledQueryCommand.js +41 -0
  26. package/dist-es/commands/DescribeScheduledQueryCommand.js +41 -0
  27. package/dist-es/commands/ExecuteScheduledQueryCommand.js +41 -0
  28. package/dist-es/commands/ListScheduledQueriesCommand.js +41 -0
  29. package/dist-es/commands/ListTagsForResourceCommand.js +41 -0
  30. package/dist-es/commands/PrepareQueryCommand.js +41 -0
  31. package/dist-es/commands/TagResourceCommand.js +41 -0
  32. package/dist-es/commands/UntagResourceCommand.js +41 -0
  33. package/dist-es/commands/UpdateScheduledQueryCommand.js +41 -0
  34. package/dist-es/commands/index.js +10 -0
  35. package/dist-es/endpoints.js +1 -0
  36. package/dist-es/models/models_0.js +192 -28
  37. package/dist-es/pagination/ListScheduledQueriesPaginator.js +74 -0
  38. package/dist-es/pagination/ListTagsForResourcePaginator.js +74 -0
  39. package/dist-es/pagination/index.js +2 -0
  40. package/dist-es/protocols/Aws_json1_0.js +1678 -106
  41. package/dist-es/runtimeConfig.browser.js +12 -3
  42. package/dist-es/runtimeConfig.js +13 -6
  43. package/dist-types/TimestreamQuery.d.ts +132 -19
  44. package/dist-types/TimestreamQueryClient.d.ts +20 -6
  45. package/dist-types/commands/CancelQueryCommand.d.ts +6 -5
  46. package/dist-types/commands/CreateScheduledQueryCommand.d.ts +39 -0
  47. package/dist-types/commands/DeleteScheduledQueryCommand.d.ts +35 -0
  48. package/dist-types/commands/DescribeEndpointsCommand.d.ts +15 -9
  49. package/dist-types/commands/DescribeScheduledQueryCommand.d.ts +35 -0
  50. package/dist-types/commands/ExecuteScheduledQueryCommand.d.ts +35 -0
  51. package/dist-types/commands/ListScheduledQueriesCommand.d.ts +35 -0
  52. package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
  53. package/dist-types/commands/PrepareQueryCommand.d.ts +37 -0
  54. package/dist-types/commands/QueryCommand.d.ts +30 -2
  55. package/dist-types/commands/TagResourceCommand.d.ts +37 -0
  56. package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
  57. package/dist-types/commands/UpdateScheduledQueryCommand.d.ts +35 -0
  58. package/dist-types/commands/index.d.ts +10 -0
  59. package/dist-types/models/models_0.d.ts +1137 -191
  60. package/dist-types/pagination/ListScheduledQueriesPaginator.d.ts +4 -0
  61. package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +4 -0
  62. package/dist-types/pagination/index.d.ts +2 -0
  63. package/dist-types/protocols/Aws_json1_0.d.ts +30 -0
  64. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  65. package/dist-types/runtimeConfig.d.ts +4 -3
  66. package/dist-types/runtimeConfig.native.d.ts +1 -0
  67. package/dist-types/ts3.4/TimestreamQuery.d.ts +50 -0
  68. package/dist-types/ts3.4/TimestreamQueryClient.d.ts +15 -3
  69. package/dist-types/ts3.4/commands/CreateScheduledQueryCommand.d.ts +17 -0
  70. package/dist-types/ts3.4/commands/DeleteScheduledQueryCommand.d.ts +17 -0
  71. package/dist-types/ts3.4/commands/DescribeScheduledQueryCommand.d.ts +17 -0
  72. package/dist-types/ts3.4/commands/ExecuteScheduledQueryCommand.d.ts +17 -0
  73. package/dist-types/ts3.4/commands/ListScheduledQueriesCommand.d.ts +17 -0
  74. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  75. package/dist-types/ts3.4/commands/PrepareQueryCommand.d.ts +17 -0
  76. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  77. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  78. package/dist-types/ts3.4/commands/UpdateScheduledQueryCommand.d.ts +17 -0
  79. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  80. package/dist-types/ts3.4/models/models_0.d.ts +526 -26
  81. package/dist-types/ts3.4/pagination/ListScheduledQueriesPaginator.d.ts +4 -0
  82. package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +4 -0
  83. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  84. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +30 -0
  85. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  86. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  87. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  88. package/package.json +39 -46
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -28,8 +33,8 @@ const getRuntimeConfig = (config) => {
28
33
  endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : (() => Promise.resolve(undefined)),
29
34
  maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
30
35
  region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : invalid_dependency_1.invalidProvider("Region is missing"),
31
- requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new fetch_http_handler_1.FetchHttpHandler(),
32
- retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
36
+ requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
37
+ retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
33
38
  sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : sha256_browser_1.Sha256,
34
39
  streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : fetch_http_handler_1.streamCollector,
35
40
  useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -17,14 +17,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
17
17
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
18
18
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
19
19
  const smithy_client_1 = require("@aws-sdk/smithy-client");
20
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
21
  const getRuntimeConfig = (config) => {
21
22
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
22
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
23
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
24
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
23
25
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
24
26
  return {
25
27
  ...clientSharedValues,
26
28
  ...config,
27
29
  runtime: "node",
30
+ defaultsMode,
28
31
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
29
32
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
30
33
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -33,8 +36,11 @@ const getRuntimeConfig = (config) => {
33
36
  endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_endpoint_discovery_1.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),
34
37
  maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
35
38
  region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
36
- requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new node_http_handler_1.NodeHttpHandler(),
37
- retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
39
+ requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
+ retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : node_config_provider_1.loadConfig({
41
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
42
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
43
+ }),
38
44
  sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : hash_node_1.Hash.bind(null, "sha256"),
39
45
  streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : node_http_handler_1.streamCollector,
40
46
  useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
@@ -1,7 +1,17 @@
1
1
  import { __extends } from "tslib";
2
2
  import { CancelQueryCommand } from "./commands/CancelQueryCommand";
3
+ import { CreateScheduledQueryCommand, } from "./commands/CreateScheduledQueryCommand";
4
+ import { DeleteScheduledQueryCommand, } from "./commands/DeleteScheduledQueryCommand";
3
5
  import { DescribeEndpointsCommand, } from "./commands/DescribeEndpointsCommand";
6
+ import { DescribeScheduledQueryCommand, } from "./commands/DescribeScheduledQueryCommand";
7
+ import { ExecuteScheduledQueryCommand, } from "./commands/ExecuteScheduledQueryCommand";
8
+ import { ListScheduledQueriesCommand, } from "./commands/ListScheduledQueriesCommand";
9
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
10
+ import { PrepareQueryCommand, } from "./commands/PrepareQueryCommand";
4
11
  import { QueryCommand } from "./commands/QueryCommand";
12
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
13
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
14
+ import { UpdateScheduledQueryCommand, } from "./commands/UpdateScheduledQueryCommand";
5
15
  import { TimestreamQueryClient } from "./TimestreamQueryClient";
6
16
  var TimestreamQuery = (function (_super) {
7
17
  __extends(TimestreamQuery, _super);
@@ -22,6 +32,34 @@ var TimestreamQuery = (function (_super) {
22
32
  return this.send(command, optionsOrCb);
23
33
  }
24
34
  };
35
+ TimestreamQuery.prototype.createScheduledQuery = function (args, optionsOrCb, cb) {
36
+ var command = new CreateScheduledQueryCommand(args);
37
+ if (typeof optionsOrCb === "function") {
38
+ this.send(command, optionsOrCb);
39
+ }
40
+ else if (typeof cb === "function") {
41
+ if (typeof optionsOrCb !== "object")
42
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
43
+ this.send(command, optionsOrCb || {}, cb);
44
+ }
45
+ else {
46
+ return this.send(command, optionsOrCb);
47
+ }
48
+ };
49
+ TimestreamQuery.prototype.deleteScheduledQuery = function (args, optionsOrCb, cb) {
50
+ var command = new DeleteScheduledQueryCommand(args);
51
+ if (typeof optionsOrCb === "function") {
52
+ this.send(command, optionsOrCb);
53
+ }
54
+ else if (typeof cb === "function") {
55
+ if (typeof optionsOrCb !== "object")
56
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
57
+ this.send(command, optionsOrCb || {}, cb);
58
+ }
59
+ else {
60
+ return this.send(command, optionsOrCb);
61
+ }
62
+ };
25
63
  TimestreamQuery.prototype.describeEndpoints = function (args, optionsOrCb, cb) {
26
64
  var command = new DescribeEndpointsCommand(args);
27
65
  if (typeof optionsOrCb === "function") {
@@ -36,6 +74,76 @@ var TimestreamQuery = (function (_super) {
36
74
  return this.send(command, optionsOrCb);
37
75
  }
38
76
  };
77
+ TimestreamQuery.prototype.describeScheduledQuery = function (args, optionsOrCb, cb) {
78
+ var command = new DescribeScheduledQueryCommand(args);
79
+ if (typeof optionsOrCb === "function") {
80
+ this.send(command, optionsOrCb);
81
+ }
82
+ else if (typeof cb === "function") {
83
+ if (typeof optionsOrCb !== "object")
84
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
85
+ this.send(command, optionsOrCb || {}, cb);
86
+ }
87
+ else {
88
+ return this.send(command, optionsOrCb);
89
+ }
90
+ };
91
+ TimestreamQuery.prototype.executeScheduledQuery = function (args, optionsOrCb, cb) {
92
+ var command = new ExecuteScheduledQueryCommand(args);
93
+ if (typeof optionsOrCb === "function") {
94
+ this.send(command, optionsOrCb);
95
+ }
96
+ else if (typeof cb === "function") {
97
+ if (typeof optionsOrCb !== "object")
98
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
99
+ this.send(command, optionsOrCb || {}, cb);
100
+ }
101
+ else {
102
+ return this.send(command, optionsOrCb);
103
+ }
104
+ };
105
+ TimestreamQuery.prototype.listScheduledQueries = function (args, optionsOrCb, cb) {
106
+ var command = new ListScheduledQueriesCommand(args);
107
+ if (typeof optionsOrCb === "function") {
108
+ this.send(command, optionsOrCb);
109
+ }
110
+ else if (typeof cb === "function") {
111
+ if (typeof optionsOrCb !== "object")
112
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
113
+ this.send(command, optionsOrCb || {}, cb);
114
+ }
115
+ else {
116
+ return this.send(command, optionsOrCb);
117
+ }
118
+ };
119
+ TimestreamQuery.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
120
+ var command = new ListTagsForResourceCommand(args);
121
+ if (typeof optionsOrCb === "function") {
122
+ this.send(command, optionsOrCb);
123
+ }
124
+ else if (typeof cb === "function") {
125
+ if (typeof optionsOrCb !== "object")
126
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
127
+ this.send(command, optionsOrCb || {}, cb);
128
+ }
129
+ else {
130
+ return this.send(command, optionsOrCb);
131
+ }
132
+ };
133
+ TimestreamQuery.prototype.prepareQuery = function (args, optionsOrCb, cb) {
134
+ var command = new PrepareQueryCommand(args);
135
+ if (typeof optionsOrCb === "function") {
136
+ this.send(command, optionsOrCb);
137
+ }
138
+ else if (typeof cb === "function") {
139
+ if (typeof optionsOrCb !== "object")
140
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
141
+ this.send(command, optionsOrCb || {}, cb);
142
+ }
143
+ else {
144
+ return this.send(command, optionsOrCb);
145
+ }
146
+ };
39
147
  TimestreamQuery.prototype.query = function (args, optionsOrCb, cb) {
40
148
  var command = new QueryCommand(args);
41
149
  if (typeof optionsOrCb === "function") {
@@ -50,6 +158,48 @@ var TimestreamQuery = (function (_super) {
50
158
  return this.send(command, optionsOrCb);
51
159
  }
52
160
  };
161
+ TimestreamQuery.prototype.tagResource = function (args, optionsOrCb, cb) {
162
+ var command = new TagResourceCommand(args);
163
+ if (typeof optionsOrCb === "function") {
164
+ this.send(command, optionsOrCb);
165
+ }
166
+ else if (typeof cb === "function") {
167
+ if (typeof optionsOrCb !== "object")
168
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
169
+ this.send(command, optionsOrCb || {}, cb);
170
+ }
171
+ else {
172
+ return this.send(command, optionsOrCb);
173
+ }
174
+ };
175
+ TimestreamQuery.prototype.untagResource = function (args, optionsOrCb, cb) {
176
+ var command = new UntagResourceCommand(args);
177
+ if (typeof optionsOrCb === "function") {
178
+ this.send(command, optionsOrCb);
179
+ }
180
+ else if (typeof cb === "function") {
181
+ if (typeof optionsOrCb !== "object")
182
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
183
+ this.send(command, optionsOrCb || {}, cb);
184
+ }
185
+ else {
186
+ return this.send(command, optionsOrCb);
187
+ }
188
+ };
189
+ TimestreamQuery.prototype.updateScheduledQuery = function (args, optionsOrCb, cb) {
190
+ var command = new UpdateScheduledQueryCommand(args);
191
+ if (typeof optionsOrCb === "function") {
192
+ this.send(command, optionsOrCb);
193
+ }
194
+ else if (typeof cb === "function") {
195
+ if (typeof optionsOrCb !== "object")
196
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
197
+ this.send(command, optionsOrCb || {}, cb);
198
+ }
199
+ else {
200
+ return this.send(command, optionsOrCb);
201
+ }
202
+ };
53
203
  return TimestreamQuery;
54
204
  }(TimestreamQueryClient));
55
205
  export { TimestreamQuery };
@@ -0,0 +1,41 @@
1
+ import { __extends } from "tslib";
2
+ import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
3
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
+ import { Command as $Command } from "@aws-sdk/smithy-client";
5
+ import { CreateScheduledQueryRequest, CreateScheduledQueryResponse } from "../models/models_0";
6
+ import { deserializeAws_json1_0CreateScheduledQueryCommand, serializeAws_json1_0CreateScheduledQueryCommand, } from "../protocols/Aws_json1_0";
7
+ var CreateScheduledQueryCommand = (function (_super) {
8
+ __extends(CreateScheduledQueryCommand, _super);
9
+ function CreateScheduledQueryCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
13
+ }
14
+ CreateScheduledQueryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
15
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
+ this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack: clientStack, options: options, isDiscoveredEndpointRequired: true }));
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "TimestreamQueryClient";
20
+ var commandName = "CreateScheduledQueryCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
25
+ inputFilterSensitiveLog: CreateScheduledQueryRequest.filterSensitiveLog,
26
+ outputFilterSensitiveLog: CreateScheduledQueryResponse.filterSensitiveLog,
27
+ };
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ CreateScheduledQueryCommand.prototype.serialize = function (input, context) {
34
+ return serializeAws_json1_0CreateScheduledQueryCommand(input, context);
35
+ };
36
+ CreateScheduledQueryCommand.prototype.deserialize = function (output, context) {
37
+ return deserializeAws_json1_0CreateScheduledQueryCommand(output, context);
38
+ };
39
+ return CreateScheduledQueryCommand;
40
+ }($Command));
41
+ export { CreateScheduledQueryCommand };
@@ -0,0 +1,41 @@
1
+ import { __extends } from "tslib";
2
+ import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
3
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
+ import { Command as $Command } from "@aws-sdk/smithy-client";
5
+ import { DeleteScheduledQueryRequest } from "../models/models_0";
6
+ import { deserializeAws_json1_0DeleteScheduledQueryCommand, serializeAws_json1_0DeleteScheduledQueryCommand, } from "../protocols/Aws_json1_0";
7
+ var DeleteScheduledQueryCommand = (function (_super) {
8
+ __extends(DeleteScheduledQueryCommand, _super);
9
+ function DeleteScheduledQueryCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
13
+ }
14
+ DeleteScheduledQueryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
15
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
+ this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack: clientStack, options: options, isDiscoveredEndpointRequired: true }));
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "TimestreamQueryClient";
20
+ var commandName = "DeleteScheduledQueryCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
25
+ inputFilterSensitiveLog: DeleteScheduledQueryRequest.filterSensitiveLog,
26
+ outputFilterSensitiveLog: function (output) { return output; },
27
+ };
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ DeleteScheduledQueryCommand.prototype.serialize = function (input, context) {
34
+ return serializeAws_json1_0DeleteScheduledQueryCommand(input, context);
35
+ };
36
+ DeleteScheduledQueryCommand.prototype.deserialize = function (output, context) {
37
+ return deserializeAws_json1_0DeleteScheduledQueryCommand(output, context);
38
+ };
39
+ return DeleteScheduledQueryCommand;
40
+ }($Command));
41
+ export { DeleteScheduledQueryCommand };
@@ -0,0 +1,41 @@
1
+ import { __extends } from "tslib";
2
+ import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
3
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
+ import { Command as $Command } from "@aws-sdk/smithy-client";
5
+ import { DescribeScheduledQueryRequest, DescribeScheduledQueryResponse } from "../models/models_0";
6
+ import { deserializeAws_json1_0DescribeScheduledQueryCommand, serializeAws_json1_0DescribeScheduledQueryCommand, } from "../protocols/Aws_json1_0";
7
+ var DescribeScheduledQueryCommand = (function (_super) {
8
+ __extends(DescribeScheduledQueryCommand, _super);
9
+ function DescribeScheduledQueryCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
13
+ }
14
+ DescribeScheduledQueryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
15
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
+ this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack: clientStack, options: options, isDiscoveredEndpointRequired: true }));
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "TimestreamQueryClient";
20
+ var commandName = "DescribeScheduledQueryCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
25
+ inputFilterSensitiveLog: DescribeScheduledQueryRequest.filterSensitiveLog,
26
+ outputFilterSensitiveLog: DescribeScheduledQueryResponse.filterSensitiveLog,
27
+ };
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ DescribeScheduledQueryCommand.prototype.serialize = function (input, context) {
34
+ return serializeAws_json1_0DescribeScheduledQueryCommand(input, context);
35
+ };
36
+ DescribeScheduledQueryCommand.prototype.deserialize = function (output, context) {
37
+ return deserializeAws_json1_0DescribeScheduledQueryCommand(output, context);
38
+ };
39
+ return DescribeScheduledQueryCommand;
40
+ }($Command));
41
+ export { DescribeScheduledQueryCommand };
@@ -0,0 +1,41 @@
1
+ import { __extends } from "tslib";
2
+ import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
3
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
+ import { Command as $Command } from "@aws-sdk/smithy-client";
5
+ import { ExecuteScheduledQueryRequest } from "../models/models_0";
6
+ import { deserializeAws_json1_0ExecuteScheduledQueryCommand, serializeAws_json1_0ExecuteScheduledQueryCommand, } from "../protocols/Aws_json1_0";
7
+ var ExecuteScheduledQueryCommand = (function (_super) {
8
+ __extends(ExecuteScheduledQueryCommand, _super);
9
+ function ExecuteScheduledQueryCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
13
+ }
14
+ ExecuteScheduledQueryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
15
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
+ this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack: clientStack, options: options, isDiscoveredEndpointRequired: true }));
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "TimestreamQueryClient";
20
+ var commandName = "ExecuteScheduledQueryCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
25
+ inputFilterSensitiveLog: ExecuteScheduledQueryRequest.filterSensitiveLog,
26
+ outputFilterSensitiveLog: function (output) { return output; },
27
+ };
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ ExecuteScheduledQueryCommand.prototype.serialize = function (input, context) {
34
+ return serializeAws_json1_0ExecuteScheduledQueryCommand(input, context);
35
+ };
36
+ ExecuteScheduledQueryCommand.prototype.deserialize = function (output, context) {
37
+ return deserializeAws_json1_0ExecuteScheduledQueryCommand(output, context);
38
+ };
39
+ return ExecuteScheduledQueryCommand;
40
+ }($Command));
41
+ export { ExecuteScheduledQueryCommand };
@@ -0,0 +1,41 @@
1
+ import { __extends } from "tslib";
2
+ import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
3
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
+ import { Command as $Command } from "@aws-sdk/smithy-client";
5
+ import { ListScheduledQueriesRequest, ListScheduledQueriesResponse } from "../models/models_0";
6
+ import { deserializeAws_json1_0ListScheduledQueriesCommand, serializeAws_json1_0ListScheduledQueriesCommand, } from "../protocols/Aws_json1_0";
7
+ var ListScheduledQueriesCommand = (function (_super) {
8
+ __extends(ListScheduledQueriesCommand, _super);
9
+ function ListScheduledQueriesCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
13
+ }
14
+ ListScheduledQueriesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
15
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
+ this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack: clientStack, options: options, isDiscoveredEndpointRequired: true }));
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "TimestreamQueryClient";
20
+ var commandName = "ListScheduledQueriesCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
25
+ inputFilterSensitiveLog: ListScheduledQueriesRequest.filterSensitiveLog,
26
+ outputFilterSensitiveLog: ListScheduledQueriesResponse.filterSensitiveLog,
27
+ };
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ ListScheduledQueriesCommand.prototype.serialize = function (input, context) {
34
+ return serializeAws_json1_0ListScheduledQueriesCommand(input, context);
35
+ };
36
+ ListScheduledQueriesCommand.prototype.deserialize = function (output, context) {
37
+ return deserializeAws_json1_0ListScheduledQueriesCommand(output, context);
38
+ };
39
+ return ListScheduledQueriesCommand;
40
+ }($Command));
41
+ export { ListScheduledQueriesCommand };
@@ -0,0 +1,41 @@
1
+ import { __extends } from "tslib";
2
+ import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
3
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
+ import { Command as $Command } from "@aws-sdk/smithy-client";
5
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
6
+ import { deserializeAws_json1_0ListTagsForResourceCommand, serializeAws_json1_0ListTagsForResourceCommand, } from "../protocols/Aws_json1_0";
7
+ var ListTagsForResourceCommand = (function (_super) {
8
+ __extends(ListTagsForResourceCommand, _super);
9
+ function ListTagsForResourceCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
13
+ }
14
+ ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
15
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
+ this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack: clientStack, options: options, isDiscoveredEndpointRequired: true }));
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "TimestreamQueryClient";
20
+ var commandName = "ListTagsForResourceCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
25
+ inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
26
+ outputFilterSensitiveLog: ListTagsForResourceResponse.filterSensitiveLog,
27
+ };
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ ListTagsForResourceCommand.prototype.serialize = function (input, context) {
34
+ return serializeAws_json1_0ListTagsForResourceCommand(input, context);
35
+ };
36
+ ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
37
+ return deserializeAws_json1_0ListTagsForResourceCommand(output, context);
38
+ };
39
+ return ListTagsForResourceCommand;
40
+ }($Command));
41
+ export { ListTagsForResourceCommand };
@@ -0,0 +1,41 @@
1
+ import { __extends } from "tslib";
2
+ import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
3
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
+ import { Command as $Command } from "@aws-sdk/smithy-client";
5
+ import { PrepareQueryRequest, PrepareQueryResponse } from "../models/models_0";
6
+ import { deserializeAws_json1_0PrepareQueryCommand, serializeAws_json1_0PrepareQueryCommand, } from "../protocols/Aws_json1_0";
7
+ var PrepareQueryCommand = (function (_super) {
8
+ __extends(PrepareQueryCommand, _super);
9
+ function PrepareQueryCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
13
+ }
14
+ PrepareQueryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
15
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
+ this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack: clientStack, options: options, isDiscoveredEndpointRequired: true }));
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "TimestreamQueryClient";
20
+ var commandName = "PrepareQueryCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
25
+ inputFilterSensitiveLog: PrepareQueryRequest.filterSensitiveLog,
26
+ outputFilterSensitiveLog: PrepareQueryResponse.filterSensitiveLog,
27
+ };
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ PrepareQueryCommand.prototype.serialize = function (input, context) {
34
+ return serializeAws_json1_0PrepareQueryCommand(input, context);
35
+ };
36
+ PrepareQueryCommand.prototype.deserialize = function (output, context) {
37
+ return deserializeAws_json1_0PrepareQueryCommand(output, context);
38
+ };
39
+ return PrepareQueryCommand;
40
+ }($Command));
41
+ export { PrepareQueryCommand };
@@ -0,0 +1,41 @@
1
+ import { __extends } from "tslib";
2
+ import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
3
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
+ import { Command as $Command } from "@aws-sdk/smithy-client";
5
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
6
+ import { deserializeAws_json1_0TagResourceCommand, serializeAws_json1_0TagResourceCommand, } from "../protocols/Aws_json1_0";
7
+ var TagResourceCommand = (function (_super) {
8
+ __extends(TagResourceCommand, _super);
9
+ function TagResourceCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
13
+ }
14
+ TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
15
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
+ this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack: clientStack, options: options, isDiscoveredEndpointRequired: true }));
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "TimestreamQueryClient";
20
+ var commandName = "TagResourceCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
25
+ inputFilterSensitiveLog: TagResourceRequest.filterSensitiveLog,
26
+ outputFilterSensitiveLog: TagResourceResponse.filterSensitiveLog,
27
+ };
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ TagResourceCommand.prototype.serialize = function (input, context) {
34
+ return serializeAws_json1_0TagResourceCommand(input, context);
35
+ };
36
+ TagResourceCommand.prototype.deserialize = function (output, context) {
37
+ return deserializeAws_json1_0TagResourceCommand(output, context);
38
+ };
39
+ return TagResourceCommand;
40
+ }($Command));
41
+ export { TagResourceCommand };
@@ -0,0 +1,41 @@
1
+ import { __extends } from "tslib";
2
+ import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
3
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
+ import { Command as $Command } from "@aws-sdk/smithy-client";
5
+ import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
6
+ import { deserializeAws_json1_0UntagResourceCommand, serializeAws_json1_0UntagResourceCommand, } from "../protocols/Aws_json1_0";
7
+ var UntagResourceCommand = (function (_super) {
8
+ __extends(UntagResourceCommand, _super);
9
+ function UntagResourceCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
13
+ }
14
+ UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
15
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
+ this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack: clientStack, options: options, isDiscoveredEndpointRequired: true }));
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "TimestreamQueryClient";
20
+ var commandName = "UntagResourceCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
25
+ inputFilterSensitiveLog: UntagResourceRequest.filterSensitiveLog,
26
+ outputFilterSensitiveLog: UntagResourceResponse.filterSensitiveLog,
27
+ };
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ UntagResourceCommand.prototype.serialize = function (input, context) {
34
+ return serializeAws_json1_0UntagResourceCommand(input, context);
35
+ };
36
+ UntagResourceCommand.prototype.deserialize = function (output, context) {
37
+ return deserializeAws_json1_0UntagResourceCommand(output, context);
38
+ };
39
+ return UntagResourceCommand;
40
+ }($Command));
41
+ export { UntagResourceCommand };