@aws-sdk/client-timestream-write 3.183.0 → 3.185.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 (30) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_0.js +2 -2
  3. package/dist-es/TimestreamWrite.js +69 -62
  4. package/dist-es/TimestreamWriteClient.js +29 -23
  5. package/dist-es/commands/CreateDatabaseCommand.js +29 -22
  6. package/dist-es/commands/CreateTableCommand.js +29 -22
  7. package/dist-es/commands/DeleteDatabaseCommand.js +30 -23
  8. package/dist-es/commands/DeleteTableCommand.js +30 -23
  9. package/dist-es/commands/DescribeDatabaseCommand.js +29 -22
  10. package/dist-es/commands/DescribeEndpointsCommand.js +28 -21
  11. package/dist-es/commands/DescribeTableCommand.js +29 -22
  12. package/dist-es/commands/ListDatabasesCommand.js +29 -22
  13. package/dist-es/commands/ListTablesCommand.js +29 -22
  14. package/dist-es/commands/ListTagsForResourceCommand.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/UpdateDatabaseCommand.js +29 -22
  18. package/dist-es/commands/UpdateTableCommand.js +29 -22
  19. package/dist-es/commands/WriteRecordsCommand.js +29 -22
  20. package/dist-es/endpoints.js +8 -8
  21. package/dist-es/models/TimestreamWriteServiceException.js +10 -5
  22. package/dist-es/models/models_0.js +151 -232
  23. package/dist-es/pagination/ListDatabasesPaginator.js +68 -25
  24. package/dist-es/pagination/ListTablesPaginator.js +68 -25
  25. package/dist-es/protocols/Aws_json1_0.js +1496 -1175
  26. package/dist-es/runtimeConfig.browser.js +12 -27
  27. package/dist-es/runtimeConfig.js +12 -31
  28. package/dist-es/runtimeConfig.native.js +5 -8
  29. package/dist-es/runtimeConfig.shared.js +11 -8
  30. package/package.json +5 -5
@@ -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 { UpdateDatabaseRequestFilterSensitiveLog, UpdateDatabaseResponseFilterSensitiveLog, } from "../models/models_0";
5
6
  import { deserializeAws_json1_0UpdateDatabaseCommand, serializeAws_json1_0UpdateDatabaseCommand, } from "../protocols/Aws_json1_0";
6
- export class UpdateDatabaseCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
7
+ var UpdateDatabaseCommand = (function (_super) {
8
+ __extends(UpdateDatabaseCommand, _super);
9
+ function UpdateDatabaseCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
10
13
  }
11
- resolveMiddleware(clientStack, configuration, options) {
14
+ UpdateDatabaseCommand.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 = "TimestreamWriteClient";
17
- const commandName = "UpdateDatabaseCommand";
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 = "TimestreamWriteClient";
20
+ var commandName = "UpdateDatabaseCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
22
25
  inputFilterSensitiveLog: UpdateDatabaseRequestFilterSensitiveLog,
23
26
  outputFilterSensitiveLog: UpdateDatabaseResponseFilterSensitiveLog,
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
+ UpdateDatabaseCommand.prototype.serialize = function (input, context) {
29
34
  return serializeAws_json1_0UpdateDatabaseCommand(input, context);
30
- }
31
- deserialize(output, context) {
35
+ };
36
+ UpdateDatabaseCommand.prototype.deserialize = function (output, context) {
32
37
  return deserializeAws_json1_0UpdateDatabaseCommand(output, context);
33
- }
34
- }
38
+ };
39
+ return UpdateDatabaseCommand;
40
+ }($Command));
41
+ export { UpdateDatabaseCommand };
@@ -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 { UpdateTableRequestFilterSensitiveLog, UpdateTableResponseFilterSensitiveLog, } from "../models/models_0";
5
6
  import { deserializeAws_json1_0UpdateTableCommand, serializeAws_json1_0UpdateTableCommand, } from "../protocols/Aws_json1_0";
6
- export class UpdateTableCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
7
+ var UpdateTableCommand = (function (_super) {
8
+ __extends(UpdateTableCommand, _super);
9
+ function UpdateTableCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
10
13
  }
11
- resolveMiddleware(clientStack, configuration, options) {
14
+ UpdateTableCommand.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 = "TimestreamWriteClient";
17
- const commandName = "UpdateTableCommand";
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 = "TimestreamWriteClient";
20
+ var commandName = "UpdateTableCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
22
25
  inputFilterSensitiveLog: UpdateTableRequestFilterSensitiveLog,
23
26
  outputFilterSensitiveLog: UpdateTableResponseFilterSensitiveLog,
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
+ UpdateTableCommand.prototype.serialize = function (input, context) {
29
34
  return serializeAws_json1_0UpdateTableCommand(input, context);
30
- }
31
- deserialize(output, context) {
35
+ };
36
+ UpdateTableCommand.prototype.deserialize = function (output, context) {
32
37
  return deserializeAws_json1_0UpdateTableCommand(output, context);
33
- }
34
- }
38
+ };
39
+ return UpdateTableCommand;
40
+ }($Command));
41
+ export { UpdateTableCommand };
@@ -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 { WriteRecordsRequestFilterSensitiveLog, WriteRecordsResponseFilterSensitiveLog, } from "../models/models_0";
5
6
  import { deserializeAws_json1_0WriteRecordsCommand, serializeAws_json1_0WriteRecordsCommand, } from "../protocols/Aws_json1_0";
6
- export class WriteRecordsCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
7
+ var WriteRecordsCommand = (function (_super) {
8
+ __extends(WriteRecordsCommand, _super);
9
+ function WriteRecordsCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
10
13
  }
11
- resolveMiddleware(clientStack, configuration, options) {
14
+ WriteRecordsCommand.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 = "TimestreamWriteClient";
17
- const commandName = "WriteRecordsCommand";
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 = "TimestreamWriteClient";
20
+ var commandName = "WriteRecordsCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
22
25
  inputFilterSensitiveLog: WriteRecordsRequestFilterSensitiveLog,
23
26
  outputFilterSensitiveLog: WriteRecordsResponseFilterSensitiveLog,
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
+ WriteRecordsCommand.prototype.serialize = function (input, context) {
29
34
  return serializeAws_json1_0WriteRecordsCommand(input, context);
30
- }
31
- deserialize(output, context) {
35
+ };
36
+ WriteRecordsCommand.prototype.deserialize = function (output, context) {
32
37
  return deserializeAws_json1_0WriteRecordsCommand(output, context);
33
- }
34
- }
38
+ };
39
+ return WriteRecordsCommand;
40
+ }($Command));
41
+ export { WriteRecordsCommand };
@@ -1,6 +1,7 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {};
3
- const partitionHash = {
3
+ var regionHash = {};
4
+ var partitionHash = {
4
5
  aws: {
5
6
  regions: [
6
7
  "af-south-1",
@@ -120,9 +121,8 @@ const partitionHash = {
120
121
  ],
121
122
  },
122
123
  };
123
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
- ...options,
125
- signingService: "timestream",
126
- regionHash,
127
- partitionHash,
128
- });
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
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class TimestreamWriteServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, TimestreamWriteServiceException.prototype);
3
+ var TimestreamWriteServiceException = (function (_super) {
4
+ __extends(TimestreamWriteServiceException, _super);
5
+ function TimestreamWriteServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, TimestreamWriteServiceException.prototype);
8
+ return _this;
6
9
  }
7
- }
10
+ return TimestreamWriteServiceException;
11
+ }(__ServiceException));
12
+ export { TimestreamWriteServiceException };