@aws-sdk/client-timestream-query 3.183.0 → 3.186.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 (29) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_json1_0.js +2 -2
  3. package/dist-es/TimestreamQuery.js +61 -54
  4. package/dist-es/TimestreamQueryClient.js +29 -23
  5. package/dist-es/commands/CancelQueryCommand.js +29 -22
  6. package/dist-es/commands/CreateScheduledQueryCommand.js +29 -22
  7. package/dist-es/commands/DeleteScheduledQueryCommand.js +30 -23
  8. package/dist-es/commands/DescribeEndpointsCommand.js +28 -21
  9. package/dist-es/commands/DescribeScheduledQueryCommand.js +29 -22
  10. package/dist-es/commands/ExecuteScheduledQueryCommand.js +30 -23
  11. package/dist-es/commands/ListScheduledQueriesCommand.js +29 -22
  12. package/dist-es/commands/ListTagsForResourceCommand.js +29 -22
  13. package/dist-es/commands/PrepareQueryCommand.js +29 -22
  14. package/dist-es/commands/QueryCommand.js +29 -22
  15. package/dist-es/commands/TagResourceCommand.js +29 -22
  16. package/dist-es/commands/UntagResourceCommand.js +29 -22
  17. package/dist-es/commands/UpdateScheduledQueryCommand.js +30 -23
  18. package/dist-es/endpoints.js +8 -8
  19. package/dist-es/models/TimestreamQueryServiceException.js +10 -5
  20. package/dist-es/models/models_0.js +162 -274
  21. package/dist-es/pagination/ListScheduledQueriesPaginator.js +68 -25
  22. package/dist-es/pagination/ListTagsForResourcePaginator.js +68 -25
  23. package/dist-es/pagination/QueryPaginator.js +68 -25
  24. package/dist-es/protocols/Aws_json1_0.js +1374 -1108
  25. package/dist-es/runtimeConfig.browser.js +12 -27
  26. package/dist-es/runtimeConfig.js +12 -31
  27. package/dist-es/runtimeConfig.native.js +5 -8
  28. package/dist-es/runtimeConfig.shared.js +11 -8
  29. package/package.json +34 -34
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-timestream-query
9
+
10
+
11
+
12
+
13
+
14
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-timestream-query
@@ -1563,10 +1563,10 @@ const deserializeAws_json1_0ValidationException = (output, context) => {
1563
1563
  };
1564
1564
  };
1565
1565
  const deserializeMetadata = (output) => {
1566
- var _a;
1566
+ var _a, _b;
1567
1567
  return ({
1568
1568
  httpStatusCode: output.statusCode,
1569
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
1569
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
1570
1570
  extendedRequestId: output.headers["x-amz-id-2"],
1571
1571
  cfId: output.headers["x-amz-cf-id"],
1572
1572
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CancelQueryCommand } from "./commands/CancelQueryCommand";
2
3
  import { CreateScheduledQueryCommand, } from "./commands/CreateScheduledQueryCommand";
3
4
  import { DeleteScheduledQueryCommand, } from "./commands/DeleteScheduledQueryCommand";
@@ -12,187 +13,193 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
12
13
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
13
14
  import { UpdateScheduledQueryCommand, } from "./commands/UpdateScheduledQueryCommand";
14
15
  import { TimestreamQueryClient } from "./TimestreamQueryClient";
15
- export class TimestreamQuery extends TimestreamQueryClient {
16
- cancelQuery(args, optionsOrCb, cb) {
17
- const command = new CancelQueryCommand(args);
16
+ var TimestreamQuery = (function (_super) {
17
+ __extends(TimestreamQuery, _super);
18
+ function TimestreamQuery() {
19
+ return _super !== null && _super.apply(this, arguments) || this;
20
+ }
21
+ TimestreamQuery.prototype.cancelQuery = function (args, optionsOrCb, cb) {
22
+ var command = new CancelQueryCommand(args);
18
23
  if (typeof optionsOrCb === "function") {
19
24
  this.send(command, optionsOrCb);
20
25
  }
21
26
  else if (typeof cb === "function") {
22
27
  if (typeof optionsOrCb !== "object")
23
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
28
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
24
29
  this.send(command, optionsOrCb || {}, cb);
25
30
  }
26
31
  else {
27
32
  return this.send(command, optionsOrCb);
28
33
  }
29
- }
30
- createScheduledQuery(args, optionsOrCb, cb) {
31
- const command = new CreateScheduledQueryCommand(args);
34
+ };
35
+ TimestreamQuery.prototype.createScheduledQuery = function (args, optionsOrCb, cb) {
36
+ var command = new CreateScheduledQueryCommand(args);
32
37
  if (typeof optionsOrCb === "function") {
33
38
  this.send(command, optionsOrCb);
34
39
  }
35
40
  else if (typeof cb === "function") {
36
41
  if (typeof optionsOrCb !== "object")
37
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
42
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
38
43
  this.send(command, optionsOrCb || {}, cb);
39
44
  }
40
45
  else {
41
46
  return this.send(command, optionsOrCb);
42
47
  }
43
- }
44
- deleteScheduledQuery(args, optionsOrCb, cb) {
45
- const command = new DeleteScheduledQueryCommand(args);
48
+ };
49
+ TimestreamQuery.prototype.deleteScheduledQuery = function (args, optionsOrCb, cb) {
50
+ var command = new DeleteScheduledQueryCommand(args);
46
51
  if (typeof optionsOrCb === "function") {
47
52
  this.send(command, optionsOrCb);
48
53
  }
49
54
  else if (typeof cb === "function") {
50
55
  if (typeof optionsOrCb !== "object")
51
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
56
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
52
57
  this.send(command, optionsOrCb || {}, cb);
53
58
  }
54
59
  else {
55
60
  return this.send(command, optionsOrCb);
56
61
  }
57
- }
58
- describeEndpoints(args, optionsOrCb, cb) {
59
- const command = new DescribeEndpointsCommand(args);
62
+ };
63
+ TimestreamQuery.prototype.describeEndpoints = function (args, optionsOrCb, cb) {
64
+ var command = new DescribeEndpointsCommand(args);
60
65
  if (typeof optionsOrCb === "function") {
61
66
  this.send(command, optionsOrCb);
62
67
  }
63
68
  else if (typeof cb === "function") {
64
69
  if (typeof optionsOrCb !== "object")
65
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
70
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
66
71
  this.send(command, optionsOrCb || {}, cb);
67
72
  }
68
73
  else {
69
74
  return this.send(command, optionsOrCb);
70
75
  }
71
- }
72
- describeScheduledQuery(args, optionsOrCb, cb) {
73
- const command = new DescribeScheduledQueryCommand(args);
76
+ };
77
+ TimestreamQuery.prototype.describeScheduledQuery = function (args, optionsOrCb, cb) {
78
+ var command = new DescribeScheduledQueryCommand(args);
74
79
  if (typeof optionsOrCb === "function") {
75
80
  this.send(command, optionsOrCb);
76
81
  }
77
82
  else if (typeof cb === "function") {
78
83
  if (typeof optionsOrCb !== "object")
79
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
84
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
80
85
  this.send(command, optionsOrCb || {}, cb);
81
86
  }
82
87
  else {
83
88
  return this.send(command, optionsOrCb);
84
89
  }
85
- }
86
- executeScheduledQuery(args, optionsOrCb, cb) {
87
- const command = new ExecuteScheduledQueryCommand(args);
90
+ };
91
+ TimestreamQuery.prototype.executeScheduledQuery = function (args, optionsOrCb, cb) {
92
+ var command = new ExecuteScheduledQueryCommand(args);
88
93
  if (typeof optionsOrCb === "function") {
89
94
  this.send(command, optionsOrCb);
90
95
  }
91
96
  else if (typeof cb === "function") {
92
97
  if (typeof optionsOrCb !== "object")
93
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
98
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
94
99
  this.send(command, optionsOrCb || {}, cb);
95
100
  }
96
101
  else {
97
102
  return this.send(command, optionsOrCb);
98
103
  }
99
- }
100
- listScheduledQueries(args, optionsOrCb, cb) {
101
- const command = new ListScheduledQueriesCommand(args);
104
+ };
105
+ TimestreamQuery.prototype.listScheduledQueries = function (args, optionsOrCb, cb) {
106
+ var command = new ListScheduledQueriesCommand(args);
102
107
  if (typeof optionsOrCb === "function") {
103
108
  this.send(command, optionsOrCb);
104
109
  }
105
110
  else if (typeof cb === "function") {
106
111
  if (typeof optionsOrCb !== "object")
107
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
112
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
108
113
  this.send(command, optionsOrCb || {}, cb);
109
114
  }
110
115
  else {
111
116
  return this.send(command, optionsOrCb);
112
117
  }
113
- }
114
- listTagsForResource(args, optionsOrCb, cb) {
115
- const command = new ListTagsForResourceCommand(args);
118
+ };
119
+ TimestreamQuery.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
120
+ var command = new ListTagsForResourceCommand(args);
116
121
  if (typeof optionsOrCb === "function") {
117
122
  this.send(command, optionsOrCb);
118
123
  }
119
124
  else if (typeof cb === "function") {
120
125
  if (typeof optionsOrCb !== "object")
121
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
126
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
122
127
  this.send(command, optionsOrCb || {}, cb);
123
128
  }
124
129
  else {
125
130
  return this.send(command, optionsOrCb);
126
131
  }
127
- }
128
- prepareQuery(args, optionsOrCb, cb) {
129
- const command = new PrepareQueryCommand(args);
132
+ };
133
+ TimestreamQuery.prototype.prepareQuery = function (args, optionsOrCb, cb) {
134
+ var command = new PrepareQueryCommand(args);
130
135
  if (typeof optionsOrCb === "function") {
131
136
  this.send(command, optionsOrCb);
132
137
  }
133
138
  else if (typeof cb === "function") {
134
139
  if (typeof optionsOrCb !== "object")
135
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
140
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
136
141
  this.send(command, optionsOrCb || {}, cb);
137
142
  }
138
143
  else {
139
144
  return this.send(command, optionsOrCb);
140
145
  }
141
- }
142
- query(args, optionsOrCb, cb) {
143
- const command = new QueryCommand(args);
146
+ };
147
+ TimestreamQuery.prototype.query = function (args, optionsOrCb, cb) {
148
+ var command = new QueryCommand(args);
144
149
  if (typeof optionsOrCb === "function") {
145
150
  this.send(command, optionsOrCb);
146
151
  }
147
152
  else if (typeof cb === "function") {
148
153
  if (typeof optionsOrCb !== "object")
149
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
154
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
150
155
  this.send(command, optionsOrCb || {}, cb);
151
156
  }
152
157
  else {
153
158
  return this.send(command, optionsOrCb);
154
159
  }
155
- }
156
- tagResource(args, optionsOrCb, cb) {
157
- const command = new TagResourceCommand(args);
160
+ };
161
+ TimestreamQuery.prototype.tagResource = function (args, optionsOrCb, cb) {
162
+ var command = new TagResourceCommand(args);
158
163
  if (typeof optionsOrCb === "function") {
159
164
  this.send(command, optionsOrCb);
160
165
  }
161
166
  else if (typeof cb === "function") {
162
167
  if (typeof optionsOrCb !== "object")
163
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
168
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
164
169
  this.send(command, optionsOrCb || {}, cb);
165
170
  }
166
171
  else {
167
172
  return this.send(command, optionsOrCb);
168
173
  }
169
- }
170
- untagResource(args, optionsOrCb, cb) {
171
- const command = new UntagResourceCommand(args);
174
+ };
175
+ TimestreamQuery.prototype.untagResource = function (args, optionsOrCb, cb) {
176
+ var command = new UntagResourceCommand(args);
172
177
  if (typeof optionsOrCb === "function") {
173
178
  this.send(command, optionsOrCb);
174
179
  }
175
180
  else if (typeof cb === "function") {
176
181
  if (typeof optionsOrCb !== "object")
177
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
182
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
178
183
  this.send(command, optionsOrCb || {}, cb);
179
184
  }
180
185
  else {
181
186
  return this.send(command, optionsOrCb);
182
187
  }
183
- }
184
- updateScheduledQuery(args, optionsOrCb, cb) {
185
- const command = new UpdateScheduledQueryCommand(args);
188
+ };
189
+ TimestreamQuery.prototype.updateScheduledQuery = function (args, optionsOrCb, cb) {
190
+ var command = new UpdateScheduledQueryCommand(args);
186
191
  if (typeof optionsOrCb === "function") {
187
192
  this.send(command, optionsOrCb);
188
193
  }
189
194
  else if (typeof cb === "function") {
190
195
  if (typeof optionsOrCb !== "object")
191
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
196
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
192
197
  this.send(command, optionsOrCb || {}, cb);
193
198
  }
194
199
  else {
195
200
  return this.send(command, optionsOrCb);
196
201
  }
197
- }
198
- }
202
+ };
203
+ return TimestreamQuery;
204
+ }(TimestreamQueryClient));
205
+ export { TimestreamQuery };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { resolveEndpointDiscoveryConfig, } from "@aws-sdk/middleware-endpoint-discovery";
@@ -10,29 +11,34 @@ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware
10
11
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
12
  import { DescribeEndpointsCommand, } from "./commands/DescribeEndpointsCommand";
12
13
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
13
- export class TimestreamQueryClient extends __Client {
14
- constructor(configuration) {
15
- const _config_0 = __getRuntimeConfig(configuration);
16
- const _config_1 = resolveRegionConfig(_config_0);
17
- const _config_2 = resolveEndpointsConfig(_config_1);
18
- const _config_3 = resolveRetryConfig(_config_2);
19
- const _config_4 = resolveHostHeaderConfig(_config_3);
20
- const _config_5 = resolveAwsAuthConfig(_config_4);
21
- const _config_6 = resolveUserAgentConfig(_config_5);
22
- const _config_7 = resolveEndpointDiscoveryConfig(_config_6, {
14
+ var TimestreamQueryClient = (function (_super) {
15
+ __extends(TimestreamQueryClient, _super);
16
+ function TimestreamQueryClient(configuration) {
17
+ var _this = this;
18
+ var _config_0 = __getRuntimeConfig(configuration);
19
+ var _config_1 = resolveRegionConfig(_config_0);
20
+ var _config_2 = resolveEndpointsConfig(_config_1);
21
+ var _config_3 = resolveRetryConfig(_config_2);
22
+ var _config_4 = resolveHostHeaderConfig(_config_3);
23
+ var _config_5 = resolveAwsAuthConfig(_config_4);
24
+ var _config_6 = resolveUserAgentConfig(_config_5);
25
+ var _config_7 = resolveEndpointDiscoveryConfig(_config_6, {
23
26
  endpointDiscoveryCommandCtor: DescribeEndpointsCommand,
24
27
  });
25
- super(_config_7);
26
- this.config = _config_7;
27
- this.middlewareStack.use(getRetryPlugin(this.config));
28
- this.middlewareStack.use(getContentLengthPlugin(this.config));
29
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
30
- this.middlewareStack.use(getLoggerPlugin(this.config));
31
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
32
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
33
- this.middlewareStack.use(getUserAgentPlugin(this.config));
28
+ _this = _super.call(this, _config_7) || this;
29
+ _this.config = _config_7;
30
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
31
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
32
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
33
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
34
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
35
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
36
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
37
+ return _this;
34
38
  }
35
- destroy() {
36
- super.destroy();
37
- }
38
- }
39
+ TimestreamQueryClient.prototype.destroy = function () {
40
+ _super.prototype.destroy.call(this);
41
+ };
42
+ return TimestreamQueryClient;
43
+ }(__Client));
44
+ export { TimestreamQueryClient };
@@ -1,34 +1,41 @@
1
+ import { __extends } from "tslib";
1
2
  import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
5
  import { CancelQueryRequestFilterSensitiveLog, CancelQueryResponseFilterSensitiveLog, } from "../models/models_0";
5
6
  import { deserializeAws_json1_0CancelQueryCommand, serializeAws_json1_0CancelQueryCommand, } from "../protocols/Aws_json1_0";
6
- export class CancelQueryCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
7
+ var CancelQueryCommand = (function (_super) {
8
+ __extends(CancelQueryCommand, _super);
9
+ function CancelQueryCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
10
13
  }
11
- resolveMiddleware(clientStack, configuration, options) {
14
+ CancelQueryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
12
15
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
- this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true }));
14
- const stack = clientStack.concat(this.middlewareStack);
15
- const { logger } = configuration;
16
- const clientName = "TimestreamQueryClient";
17
- const commandName = "CancelQueryCommand";
18
- const handlerExecutionContext = {
19
- logger,
20
- clientName,
21
- commandName,
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 = "CancelQueryCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
22
25
  inputFilterSensitiveLog: CancelQueryRequestFilterSensitiveLog,
23
26
  outputFilterSensitiveLog: CancelQueryResponseFilterSensitiveLog,
24
27
  };
25
- const { requestHandler } = configuration;
26
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
- }
28
- serialize(input, context) {
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ CancelQueryCommand.prototype.serialize = function (input, context) {
29
34
  return serializeAws_json1_0CancelQueryCommand(input, context);
30
- }
31
- deserialize(output, context) {
35
+ };
36
+ CancelQueryCommand.prototype.deserialize = function (output, context) {
32
37
  return deserializeAws_json1_0CancelQueryCommand(output, context);
33
- }
34
- }
38
+ };
39
+ return CancelQueryCommand;
40
+ }($Command));
41
+ export { CancelQueryCommand };
@@ -1,34 +1,41 @@
1
+ import { __extends } from "tslib";
1
2
  import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
5
  import { CreateScheduledQueryRequestFilterSensitiveLog, CreateScheduledQueryResponseFilterSensitiveLog, } from "../models/models_0";
5
6
  import { deserializeAws_json1_0CreateScheduledQueryCommand, serializeAws_json1_0CreateScheduledQueryCommand, } from "../protocols/Aws_json1_0";
6
- export class CreateScheduledQueryCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
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;
10
13
  }
11
- resolveMiddleware(clientStack, configuration, options) {
14
+ CreateScheduledQueryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
12
15
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
- this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true }));
14
- const stack = clientStack.concat(this.middlewareStack);
15
- const { logger } = configuration;
16
- const clientName = "TimestreamQueryClient";
17
- const commandName = "CreateScheduledQueryCommand";
18
- const handlerExecutionContext = {
19
- logger,
20
- clientName,
21
- commandName,
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,
22
25
  inputFilterSensitiveLog: CreateScheduledQueryRequestFilterSensitiveLog,
23
26
  outputFilterSensitiveLog: CreateScheduledQueryResponseFilterSensitiveLog,
24
27
  };
25
- const { requestHandler } = configuration;
26
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
- }
28
- serialize(input, context) {
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) {
29
34
  return serializeAws_json1_0CreateScheduledQueryCommand(input, context);
30
- }
31
- deserialize(output, context) {
35
+ };
36
+ CreateScheduledQueryCommand.prototype.deserialize = function (output, context) {
32
37
  return deserializeAws_json1_0CreateScheduledQueryCommand(output, context);
33
- }
34
- }
38
+ };
39
+ return CreateScheduledQueryCommand;
40
+ }($Command));
41
+ export { CreateScheduledQueryCommand };
@@ -1,34 +1,41 @@
1
+ import { __extends } from "tslib";
1
2
  import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
2
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
5
  import { DeleteScheduledQueryRequestFilterSensitiveLog } from "../models/models_0";
5
6
  import { deserializeAws_json1_0DeleteScheduledQueryCommand, serializeAws_json1_0DeleteScheduledQueryCommand, } from "../protocols/Aws_json1_0";
6
- export class DeleteScheduledQueryCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
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;
10
13
  }
11
- resolveMiddleware(clientStack, configuration, options) {
14
+ DeleteScheduledQueryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
12
15
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
- this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true }));
14
- const stack = clientStack.concat(this.middlewareStack);
15
- const { logger } = configuration;
16
- const clientName = "TimestreamQueryClient";
17
- const commandName = "DeleteScheduledQueryCommand";
18
- const handlerExecutionContext = {
19
- logger,
20
- clientName,
21
- commandName,
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,
22
25
  inputFilterSensitiveLog: DeleteScheduledQueryRequestFilterSensitiveLog,
23
- outputFilterSensitiveLog: (output) => output,
26
+ outputFilterSensitiveLog: function (output) { return output; },
24
27
  };
25
- const { requestHandler } = configuration;
26
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
- }
28
- serialize(input, context) {
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) {
29
34
  return serializeAws_json1_0DeleteScheduledQueryCommand(input, context);
30
- }
31
- deserialize(output, context) {
35
+ };
36
+ DeleteScheduledQueryCommand.prototype.deserialize = function (output, context) {
32
37
  return deserializeAws_json1_0DeleteScheduledQueryCommand(output, context);
33
- }
34
- }
38
+ };
39
+ return DeleteScheduledQueryCommand;
40
+ }($Command));
41
+ export { DeleteScheduledQueryCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeEndpointsRequestFilterSensitiveLog, DescribeEndpointsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_0DescribeEndpointsCommand, serializeAws_json1_0DescribeEndpointsCommand, } from "../protocols/Aws_json1_0";
5
- export class DescribeEndpointsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeEndpointsCommand = (function (_super) {
7
+ __extends(DescribeEndpointsCommand, _super);
8
+ function DescribeEndpointsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeEndpointsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "TimestreamQueryClient";
15
- const commandName = "DescribeEndpointsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TimestreamQueryClient";
18
+ var commandName = "DescribeEndpointsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeEndpointsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeEndpointsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeEndpointsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_0DescribeEndpointsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeEndpointsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_0DescribeEndpointsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeEndpointsCommand;
38
+ }($Command));
39
+ export { DescribeEndpointsCommand };