@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 { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
6
5
  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;
6
+ export class UntagResourceCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- UntagResourceCommand.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 = "UntagResourceCommand";
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 = "UntagResourceCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: UntagResourceResponseFilterSensitiveLog,
27
24
  };
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) {
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_0UntagResourceCommand(input, context);
35
- };
36
- UntagResourceCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_json1_0UntagResourceCommand(output, context);
38
- };
39
- return UntagResourceCommand;
40
- }($Command));
41
- export { UntagResourceCommand };
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 { UpdateScheduledQueryRequestFilterSensitiveLog } from "../models/models_0";
6
5
  import { deserializeAws_json1_0UpdateScheduledQueryCommand, serializeAws_json1_0UpdateScheduledQueryCommand, } from "../protocols/Aws_json1_0";
7
- var UpdateScheduledQueryCommand = (function (_super) {
8
- __extends(UpdateScheduledQueryCommand, _super);
9
- function UpdateScheduledQueryCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class UpdateScheduledQueryCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- UpdateScheduledQueryCommand.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 = "UpdateScheduledQueryCommand";
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 = "UpdateScheduledQueryCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: UpdateScheduledQueryRequestFilterSensitiveLog,
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
- UpdateScheduledQueryCommand.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_0UpdateScheduledQueryCommand(input, context);
35
- };
36
- UpdateScheduledQueryCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_json1_0UpdateScheduledQueryCommand(output, context);
38
- };
39
- return UpdateScheduledQueryCommand;
40
- }($Command));
41
- export { UpdateScheduledQueryCommand };
33
+ }
34
+ }
@@ -1,7 +1,6 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {};
4
- var partitionHash = {
2
+ const regionHash = {};
3
+ const partitionHash = {
5
4
  aws: {
6
5
  regions: [
7
6
  "af-south-1",
@@ -121,8 +120,9 @@ var partitionHash = {
121
120
  ],
122
121
  },
123
122
  };
124
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
125
- return __generator(this, function (_a) {
126
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "timestream", regionHash: regionHash, partitionHash: partitionHash }))];
127
- });
128
- }); };
123
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
+ ...options,
125
+ signingService: "timestream",
126
+ regionHash,
127
+ partitionHash,
128
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var TimestreamQueryServiceException = (function (_super) {
4
- __extends(TimestreamQueryServiceException, _super);
5
- function TimestreamQueryServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, TimestreamQueryServiceException.prototype);
8
- return _this;
2
+ export class TimestreamQueryServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, TimestreamQueryServiceException.prototype);
9
6
  }
10
- return TimestreamQueryServiceException;
11
- }(__ServiceException));
12
- export { TimestreamQueryServiceException };
7
+ }