@aws-sdk/client-timestream-write 3.185.0 → 3.188.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 +19 -0
  2. package/dist-cjs/endpoints.js +32 -1
  3. package/dist-es/TimestreamWrite.js +62 -69
  4. package/dist-es/TimestreamWriteClient.js +23 -29
  5. package/dist-es/commands/CreateDatabaseCommand.js +22 -29
  6. package/dist-es/commands/CreateTableCommand.js +22 -29
  7. package/dist-es/commands/DeleteDatabaseCommand.js +23 -30
  8. package/dist-es/commands/DeleteTableCommand.js +23 -30
  9. package/dist-es/commands/DescribeDatabaseCommand.js +22 -29
  10. package/dist-es/commands/DescribeEndpointsCommand.js +21 -28
  11. package/dist-es/commands/DescribeTableCommand.js +22 -29
  12. package/dist-es/commands/ListDatabasesCommand.js +22 -29
  13. package/dist-es/commands/ListTablesCommand.js +22 -29
  14. package/dist-es/commands/ListTagsForResourceCommand.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/UpdateDatabaseCommand.js +22 -29
  18. package/dist-es/commands/UpdateTableCommand.js +22 -29
  19. package/dist-es/commands/WriteRecordsCommand.js +22 -29
  20. package/dist-es/endpoints.js +39 -8
  21. package/dist-es/models/TimestreamWriteServiceException.js +5 -10
  22. package/dist-es/models/models_0.js +232 -151
  23. package/dist-es/pagination/ListDatabasesPaginator.js +25 -68
  24. package/dist-es/pagination/ListTablesPaginator.js +25 -68
  25. package/dist-es/protocols/Aws_json1_0.js +1175 -1496
  26. package/dist-es/runtimeConfig.browser.js +27 -12
  27. package/dist-es/runtimeConfig.js +31 -12
  28. package/dist-es/runtimeConfig.native.js +8 -5
  29. package/dist-es/runtimeConfig.shared.js +8 -11
  30. 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 { UpdateDatabaseRequestFilterSensitiveLog, UpdateDatabaseResponseFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_json1_0UpdateDatabaseCommand, serializeAws_json1_0UpdateDatabaseCommand, } from "../protocols/Aws_json1_0";
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;
6
+ export class UpdateDatabaseCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- UpdateDatabaseCommand.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 = "TimestreamWriteClient";
20
- var commandName = "UpdateDatabaseCommand";
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 = "TimestreamWriteClient";
17
+ const commandName = "UpdateDatabaseCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: UpdateDatabaseRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: UpdateDatabaseResponseFilterSensitiveLog,
27
24
  };
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) {
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_0UpdateDatabaseCommand(input, context);
35
- };
36
- UpdateDatabaseCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_json1_0UpdateDatabaseCommand(output, context);
38
- };
39
- return UpdateDatabaseCommand;
40
- }($Command));
41
- export { UpdateDatabaseCommand };
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 { UpdateTableRequestFilterSensitiveLog, UpdateTableResponseFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_json1_0UpdateTableCommand, serializeAws_json1_0UpdateTableCommand, } from "../protocols/Aws_json1_0";
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;
6
+ export class UpdateTableCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- UpdateTableCommand.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 = "TimestreamWriteClient";
20
- var commandName = "UpdateTableCommand";
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 = "TimestreamWriteClient";
17
+ const commandName = "UpdateTableCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: UpdateTableRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: UpdateTableResponseFilterSensitiveLog,
27
24
  };
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) {
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_0UpdateTableCommand(input, context);
35
- };
36
- UpdateTableCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_json1_0UpdateTableCommand(output, context);
38
- };
39
- return UpdateTableCommand;
40
- }($Command));
41
- export { UpdateTableCommand };
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 { WriteRecordsRequestFilterSensitiveLog, WriteRecordsResponseFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_json1_0WriteRecordsCommand, serializeAws_json1_0WriteRecordsCommand, } from "../protocols/Aws_json1_0";
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;
6
+ export class WriteRecordsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- WriteRecordsCommand.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 = "TimestreamWriteClient";
20
- var commandName = "WriteRecordsCommand";
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 = "TimestreamWriteClient";
17
+ const commandName = "WriteRecordsCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: WriteRecordsRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: WriteRecordsResponseFilterSensitiveLog,
27
24
  };
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) {
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_0WriteRecordsCommand(input, context);
35
- };
36
- WriteRecordsCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_json1_0WriteRecordsCommand(output, context);
38
- };
39
- return WriteRecordsCommand;
40
- }($Command));
41
- export { WriteRecordsCommand };
33
+ }
34
+ }
@@ -1,7 +1,34 @@
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
+ "ingest-fips-us-east-1": {
4
+ variants: [
5
+ {
6
+ hostname: "ingest.timestream-fips.us-east-1.amazonaws.com",
7
+ tags: [],
8
+ },
9
+ ],
10
+ signingRegion: "us-east-1",
11
+ },
12
+ "ingest-fips-us-east-2": {
13
+ variants: [
14
+ {
15
+ hostname: "ingest.timestream-fips.us-east-2.amazonaws.com",
16
+ tags: [],
17
+ },
18
+ ],
19
+ signingRegion: "us-east-2",
20
+ },
21
+ "ingest-fips-us-west-2": {
22
+ variants: [
23
+ {
24
+ hostname: "ingest.timestream-fips.us-west-2.amazonaws.com",
25
+ tags: [],
26
+ },
27
+ ],
28
+ signingRegion: "us-west-2",
29
+ },
30
+ };
31
+ const partitionHash = {
5
32
  aws: {
6
33
  regions: [
7
34
  "af-south-1",
@@ -20,6 +47,9 @@ var partitionHash = {
20
47
  "eu-west-1",
21
48
  "eu-west-2",
22
49
  "eu-west-3",
50
+ "ingest-fips-us-east-1",
51
+ "ingest-fips-us-east-2",
52
+ "ingest-fips-us-west-2",
23
53
  "me-central-1",
24
54
  "me-south-1",
25
55
  "sa-east-1",
@@ -121,8 +151,9 @@ var partitionHash = {
121
151
  ],
122
152
  },
123
153
  };
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
- }); };
154
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
155
+ ...options,
156
+ signingService: "timestream",
157
+ regionHash,
158
+ partitionHash,
159
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
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;
2
+ export class TimestreamWriteServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, TimestreamWriteServiceException.prototype);
9
6
  }
10
- return TimestreamWriteServiceException;
11
- }(__ServiceException));
12
- export { TimestreamWriteServiceException };
7
+ }