@aws-sdk/client-timestream-query 3.180.0 → 3.183.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 +20 -0
  2. package/dist-cjs/protocols/Aws_json1_0.js +19 -13
  3. package/dist-es/TimestreamQuery.js +54 -61
  4. package/dist-es/TimestreamQueryClient.js +23 -29
  5. package/dist-es/commands/CancelQueryCommand.js +22 -29
  6. package/dist-es/commands/CreateScheduledQueryCommand.js +22 -29
  7. package/dist-es/commands/DeleteScheduledQueryCommand.js +23 -30
  8. package/dist-es/commands/DescribeEndpointsCommand.js +21 -28
  9. package/dist-es/commands/DescribeScheduledQueryCommand.js +22 -29
  10. package/dist-es/commands/ExecuteScheduledQueryCommand.js +23 -30
  11. package/dist-es/commands/ListScheduledQueriesCommand.js +22 -29
  12. package/dist-es/commands/ListTagsForResourceCommand.js +22 -29
  13. package/dist-es/commands/PrepareQueryCommand.js +22 -29
  14. package/dist-es/commands/QueryCommand.js +22 -29
  15. package/dist-es/commands/TagResourceCommand.js +22 -29
  16. package/dist-es/commands/UntagResourceCommand.js +22 -29
  17. package/dist-es/commands/UpdateScheduledQueryCommand.js +23 -30
  18. package/dist-es/endpoints.js +8 -8
  19. package/dist-es/models/TimestreamQueryServiceException.js +5 -10
  20. package/dist-es/models/models_0.js +274 -162
  21. package/dist-es/pagination/ListScheduledQueriesPaginator.js +25 -68
  22. package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
  23. package/dist-es/pagination/QueryPaginator.js +25 -68
  24. package/dist-es/protocols/Aws_json1_0.js +1108 -1361
  25. package/dist-es/runtimeConfig.browser.js +27 -12
  26. package/dist-es/runtimeConfig.js +31 -12
  27. package/dist-es/runtimeConfig.native.js +8 -5
  28. package/dist-es/runtimeConfig.shared.js +8 -11
  29. package/package.json +34 -34
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { DeleteScheduledQueryRequestFilterSensitiveLog } from "../models/models_0";
6
5
  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;
6
+ export class DeleteScheduledQueryCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- DeleteScheduledQueryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  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,
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,
25
22
  inputFilterSensitiveLog: DeleteScheduledQueryRequestFilterSensitiveLog,
26
- outputFilterSensitiveLog: function (output) { return output; },
23
+ outputFilterSensitiveLog: (output) => output,
27
24
  };
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) {
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
34
29
  return serializeAws_json1_0DeleteScheduledQueryCommand(input, context);
35
- };
36
- DeleteScheduledQueryCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_json1_0DeleteScheduledQueryCommand(output, context);
38
- };
39
- return DeleteScheduledQueryCommand;
40
- }($Command));
41
- export { DeleteScheduledQueryCommand };
33
+ }
34
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeEndpointsRequestFilterSensitiveLog, DescribeEndpointsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_0DescribeEndpointsCommand, serializeAws_json1_0DescribeEndpointsCommand, } from "../protocols/Aws_json1_0";
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;
5
+ export class DescribeEndpointsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeEndpointsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
23
20
  inputFilterSensitiveLog: DescribeEndpointsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeEndpointsResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_0DescribeEndpointsCommand(input, context);
33
- };
34
- DescribeEndpointsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_0DescribeEndpointsCommand(output, context);
36
- };
37
- return DescribeEndpointsCommand;
38
- }($Command));
39
- export { DescribeEndpointsCommand };
31
+ }
32
+ }
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { DescribeScheduledQueryRequestFilterSensitiveLog, DescribeScheduledQueryResponseFilterSensitiveLog, } from "../models/models_0";
6
5
  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;
6
+ export class DescribeScheduledQueryCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- DescribeScheduledQueryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  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,
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 = "DescribeScheduledQueryCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: DescribeScheduledQueryRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: DescribeScheduledQueryResponseFilterSensitiveLog,
27
24
  };
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) {
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
34
29
  return serializeAws_json1_0DescribeScheduledQueryCommand(input, context);
35
- };
36
- DescribeScheduledQueryCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_json1_0DescribeScheduledQueryCommand(output, context);
38
- };
39
- return DescribeScheduledQueryCommand;
40
- }($Command));
41
- export { DescribeScheduledQueryCommand };
33
+ }
34
+ }
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { ExecuteScheduledQueryRequestFilterSensitiveLog } from "../models/models_0";
6
5
  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;
6
+ export class ExecuteScheduledQueryCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- ExecuteScheduledQueryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  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,
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 = "ExecuteScheduledQueryCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: ExecuteScheduledQueryRequestFilterSensitiveLog,
26
- outputFilterSensitiveLog: function (output) { return output; },
23
+ outputFilterSensitiveLog: (output) => output,
27
24
  };
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) {
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
34
29
  return serializeAws_json1_0ExecuteScheduledQueryCommand(input, context);
35
- };
36
- ExecuteScheduledQueryCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_json1_0ExecuteScheduledQueryCommand(output, context);
38
- };
39
- return ExecuteScheduledQueryCommand;
40
- }($Command));
41
- export { ExecuteScheduledQueryCommand };
33
+ }
34
+ }
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { ListScheduledQueriesRequestFilterSensitiveLog, ListScheduledQueriesResponseFilterSensitiveLog, } from "../models/models_0";
6
5
  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;
6
+ export class ListScheduledQueriesCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- ListScheduledQueriesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  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,
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 = "ListScheduledQueriesCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: ListScheduledQueriesRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: ListScheduledQueriesResponseFilterSensitiveLog,
27
24
  };
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) {
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
34
29
  return serializeAws_json1_0ListScheduledQueriesCommand(input, context);
35
- };
36
- ListScheduledQueriesCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_json1_0ListScheduledQueriesCommand(output, context);
38
- };
39
- return ListScheduledQueriesCommand;
40
- }($Command));
41
- export { ListScheduledQueriesCommand };
33
+ }
34
+ }
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
6
5
  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;
6
+ export class ListTagsForResourceCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  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,
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 = "ListTagsForResourceCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
27
24
  };
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) {
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
34
29
  return serializeAws_json1_0ListTagsForResourceCommand(input, context);
35
- };
36
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_json1_0ListTagsForResourceCommand(output, context);
38
- };
39
- return ListTagsForResourceCommand;
40
- }($Command));
41
- export { ListTagsForResourceCommand };
33
+ }
34
+ }
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { PrepareQueryRequestFilterSensitiveLog, PrepareQueryResponseFilterSensitiveLog, } from "../models/models_0";
6
5
  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;
6
+ export class PrepareQueryCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- PrepareQueryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  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,
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 = "PrepareQueryCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: PrepareQueryRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: PrepareQueryResponseFilterSensitiveLog,
27
24
  };
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) {
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
34
29
  return serializeAws_json1_0PrepareQueryCommand(input, context);
35
- };
36
- PrepareQueryCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_json1_0PrepareQueryCommand(output, context);
38
- };
39
- return PrepareQueryCommand;
40
- }($Command));
41
- export { PrepareQueryCommand };
33
+ }
34
+ }
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { QueryRequestFilterSensitiveLog, QueryResponseFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_json1_0QueryCommand, serializeAws_json1_0QueryCommand } from "../protocols/Aws_json1_0";
7
- var QueryCommand = (function (_super) {
8
- __extends(QueryCommand, _super);
9
- function QueryCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class QueryCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- QueryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  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 = "QueryCommand";
21
- var handlerExecutionContext = {
22
- logger: logger,
23
- clientName: clientName,
24
- commandName: commandName,
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 = "QueryCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: QueryRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: QueryResponseFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- QueryCommand.prototype.serialize = function (input, context) {
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
34
29
  return serializeAws_json1_0QueryCommand(input, context);
35
- };
36
- QueryCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_json1_0QueryCommand(output, context);
38
- };
39
- return QueryCommand;
40
- }($Command));
41
- export { QueryCommand };
33
+ }
34
+ }
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { TagResourceRequestFilterSensitiveLog, TagResourceResponseFilterSensitiveLog, } from "../models/models_0";
6
5
  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;
6
+ export class TagResourceCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  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,
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 = "TagResourceCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: TagResourceResponseFilterSensitiveLog,
27
24
  };
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) {
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
34
29
  return serializeAws_json1_0TagResourceCommand(input, context);
35
- };
36
- TagResourceCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_json1_0TagResourceCommand(output, context);
38
- };
39
- return TagResourceCommand;
40
- }($Command));
41
- export { TagResourceCommand };
33
+ }
34
+ }