@aws-sdk/client-timestream-write 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 (31) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist-cjs/endpoints.js +32 -1
  3. package/dist-cjs/protocols/Aws_json1_0.js +2 -2
  4. package/dist-es/TimestreamWrite.js +69 -62
  5. package/dist-es/TimestreamWriteClient.js +29 -23
  6. package/dist-es/commands/CreateDatabaseCommand.js +29 -22
  7. package/dist-es/commands/CreateTableCommand.js +29 -22
  8. package/dist-es/commands/DeleteDatabaseCommand.js +30 -23
  9. package/dist-es/commands/DeleteTableCommand.js +30 -23
  10. package/dist-es/commands/DescribeDatabaseCommand.js +29 -22
  11. package/dist-es/commands/DescribeEndpointsCommand.js +28 -21
  12. package/dist-es/commands/DescribeTableCommand.js +29 -22
  13. package/dist-es/commands/ListDatabasesCommand.js +29 -22
  14. package/dist-es/commands/ListTablesCommand.js +29 -22
  15. package/dist-es/commands/ListTagsForResourceCommand.js +29 -22
  16. package/dist-es/commands/TagResourceCommand.js +29 -22
  17. package/dist-es/commands/UntagResourceCommand.js +29 -22
  18. package/dist-es/commands/UpdateDatabaseCommand.js +29 -22
  19. package/dist-es/commands/UpdateTableCommand.js +29 -22
  20. package/dist-es/commands/WriteRecordsCommand.js +29 -22
  21. package/dist-es/endpoints.js +39 -8
  22. package/dist-es/models/TimestreamWriteServiceException.js +10 -5
  23. package/dist-es/models/models_0.js +151 -232
  24. package/dist-es/pagination/ListDatabasesPaginator.js +68 -25
  25. package/dist-es/pagination/ListTablesPaginator.js +68 -25
  26. package/dist-es/protocols/Aws_json1_0.js +1496 -1175
  27. package/dist-es/runtimeConfig.browser.js +12 -27
  28. package/dist-es/runtimeConfig.js +12 -31
  29. package/dist-es/runtimeConfig.native.js +5 -8
  30. package/dist-es/runtimeConfig.shared.js +11 -8
  31. package/package.json +34 -34
@@ -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,35 @@
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
+ "ingest-fips-us-east-1": {
5
+ variants: [
6
+ {
7
+ hostname: "ingest.timestream-fips.us-east-1.amazonaws.com",
8
+ tags: [],
9
+ },
10
+ ],
11
+ signingRegion: "us-east-1",
12
+ },
13
+ "ingest-fips-us-east-2": {
14
+ variants: [
15
+ {
16
+ hostname: "ingest.timestream-fips.us-east-2.amazonaws.com",
17
+ tags: [],
18
+ },
19
+ ],
20
+ signingRegion: "us-east-2",
21
+ },
22
+ "ingest-fips-us-west-2": {
23
+ variants: [
24
+ {
25
+ hostname: "ingest.timestream-fips.us-west-2.amazonaws.com",
26
+ tags: [],
27
+ },
28
+ ],
29
+ signingRegion: "us-west-2",
30
+ },
31
+ };
32
+ var partitionHash = {
4
33
  aws: {
5
34
  regions: [
6
35
  "af-south-1",
@@ -19,6 +48,9 @@ const partitionHash = {
19
48
  "eu-west-1",
20
49
  "eu-west-2",
21
50
  "eu-west-3",
51
+ "ingest-fips-us-east-1",
52
+ "ingest-fips-us-east-2",
53
+ "ingest-fips-us-west-2",
22
54
  "me-central-1",
23
55
  "me-south-1",
24
56
  "sa-east-1",
@@ -120,9 +152,8 @@ const partitionHash = {
120
152
  ],
121
153
  },
122
154
  };
123
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
- ...options,
125
- signingService: "timestream",
126
- regionHash,
127
- partitionHash,
128
- });
155
+ export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
156
+ return __generator(this, function (_a) {
157
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "timestream", regionHash: regionHash, partitionHash: partitionHash }))];
158
+ });
159
+ }); };
@@ -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 };