@aws-sdk/client-timestream-write 3.50.0 → 3.53.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 (45) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/index.js +3 -0
  3. package/dist-cjs/models/TimestreamWriteServiceException.js +11 -0
  4. package/dist-cjs/models/models_0.js +130 -1
  5. package/dist-cjs/protocols/Aws_json1_0.js +186 -722
  6. package/dist-es/index.js +1 -0
  7. package/dist-es/models/TimestreamWriteServiceException.js +12 -0
  8. package/dist-es/models/models_0.js +120 -1
  9. package/dist-es/protocols/Aws_json1_0.js +394 -765
  10. package/dist-types/index.d.ts +1 -0
  11. package/dist-types/models/TimestreamWriteServiceException.d.ts +10 -0
  12. package/dist-types/models/models_0.d.ts +65 -28
  13. package/dist-types/ts3.4/TimestreamWrite.d.ts +80 -0
  14. package/dist-types/ts3.4/TimestreamWriteClient.d.ts +91 -0
  15. package/dist-types/ts3.4/commands/CreateDatabaseCommand.d.ts +17 -0
  16. package/dist-types/ts3.4/commands/CreateTableCommand.d.ts +17 -0
  17. package/dist-types/ts3.4/commands/DeleteDatabaseCommand.d.ts +17 -0
  18. package/dist-types/ts3.4/commands/DeleteTableCommand.d.ts +17 -0
  19. package/dist-types/ts3.4/commands/DescribeDatabaseCommand.d.ts +17 -0
  20. package/dist-types/ts3.4/commands/DescribeEndpointsCommand.d.ts +17 -0
  21. package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +17 -0
  22. package/dist-types/ts3.4/commands/ListDatabasesCommand.d.ts +17 -0
  23. package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +17 -0
  24. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  25. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  26. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  27. package/dist-types/ts3.4/commands/UpdateDatabaseCommand.d.ts +17 -0
  28. package/dist-types/ts3.4/commands/UpdateTableCommand.d.ts +17 -0
  29. package/dist-types/ts3.4/commands/WriteRecordsCommand.d.ts +17 -0
  30. package/dist-types/ts3.4/commands/index.d.ts +15 -0
  31. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  32. package/dist-types/ts3.4/index.d.ts +6 -0
  33. package/dist-types/ts3.4/models/TimestreamWriteServiceException.d.ts +6 -0
  34. package/dist-types/ts3.4/models/index.d.ts +1 -0
  35. package/dist-types/ts3.4/models/models_0.d.ts +547 -0
  36. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  37. package/dist-types/ts3.4/pagination/ListDatabasesPaginator.d.ts +4 -0
  38. package/dist-types/ts3.4/pagination/ListTablesPaginator.d.ts +4 -0
  39. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  40. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +47 -0
  41. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +41 -0
  42. package/dist-types/ts3.4/runtimeConfig.d.ts +41 -0
  43. package/dist-types/ts3.4/runtimeConfig.native.d.ts +40 -0
  44. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  45. package/package.json +34 -34
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-timestream-write
20
+
21
+
22
+
23
+
24
+
25
+ # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-timestream-write
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-timestream-write
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TimestreamWriteServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./TimestreamWrite"), exports);
5
6
  tslib_1.__exportStar(require("./TimestreamWriteClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
10
+ var TimestreamWriteServiceException_1 = require("./models/TimestreamWriteServiceException");
11
+ Object.defineProperty(exports, "TimestreamWriteServiceException", { enumerable: true, get: function () { return TimestreamWriteServiceException_1.TimestreamWriteServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TimestreamWriteServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class TimestreamWriteServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, TimestreamWriteServiceException.prototype);
9
+ }
10
+ }
11
+ exports.TimestreamWriteServiceException = TimestreamWriteServiceException;
@@ -1,6 +1,36 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WriteRecordsResponse = exports.WriteRecordsRequest = exports.UpdateTableResponse = exports.UpdateTableRequest = exports.UpdateDatabaseResponse = exports.UpdateDatabaseRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.RejectedRecord = exports.RecordsIngested = exports._Record = exports.TimeUnit = exports.MeasureValue = exports.MeasureValueType = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListTablesResponse = exports.ListTablesRequest = exports.ListDatabasesResponse = exports.ListDatabasesRequest = exports.Dimension = exports.DimensionValueType = exports.DescribeTableResponse = exports.DescribeTableRequest = exports.DescribeEndpointsResponse = exports.Endpoint = exports.DescribeEndpointsRequest = exports.DescribeDatabaseResponse = exports.DescribeDatabaseRequest = exports.DeleteTableRequest = exports.DeleteDatabaseRequest = exports.CreateTableResponse = exports.Table = exports.TableStatus = exports.CreateTableRequest = exports.RetentionProperties = exports.MagneticStoreWriteProperties = exports.MagneticStoreRejectedDataLocation = exports.S3Configuration = exports.S3EncryptionOption = exports.CreateDatabaseResponse = exports.Database = exports.CreateDatabaseRequest = exports.Tag = void 0;
3
+ exports.UpdateDatabaseRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.RejectedRecordsException = exports.RejectedRecord = exports.RecordsIngested = exports._Record = exports.TimeUnit = exports.MeasureValue = exports.MeasureValueType = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListTablesResponse = exports.ListTablesRequest = exports.ListDatabasesResponse = exports.ListDatabasesRequest = exports.Dimension = exports.DimensionValueType = exports.DescribeTableResponse = exports.DescribeTableRequest = exports.DescribeEndpointsResponse = exports.Endpoint = exports.DescribeEndpointsRequest = exports.DescribeDatabaseResponse = exports.DescribeDatabaseRequest = exports.DeleteTableRequest = exports.DeleteDatabaseRequest = exports.ResourceNotFoundException = exports.CreateTableResponse = exports.Table = exports.TableStatus = exports.CreateTableRequest = exports.RetentionProperties = exports.MagneticStoreWriteProperties = exports.MagneticStoreRejectedDataLocation = exports.S3Configuration = exports.S3EncryptionOption = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.InvalidEndpointException = exports.InternalServerException = exports.CreateDatabaseResponse = exports.Database = exports.CreateDatabaseRequest = exports.Tag = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ exports.WriteRecordsResponse = exports.WriteRecordsRequest = exports.UpdateTableResponse = exports.UpdateTableRequest = exports.UpdateDatabaseResponse = void 0;
5
+ const TimestreamWriteServiceException_1 = require("./TimestreamWriteServiceException");
6
+ class AccessDeniedException extends TimestreamWriteServiceException_1.TimestreamWriteServiceException {
7
+ constructor(opts) {
8
+ super({
9
+ name: "AccessDeniedException",
10
+ $fault: "client",
11
+ ...opts,
12
+ });
13
+ this.name = "AccessDeniedException";
14
+ this.$fault = "client";
15
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.AccessDeniedException = AccessDeniedException;
20
+ class ConflictException extends TimestreamWriteServiceException_1.TimestreamWriteServiceException {
21
+ constructor(opts) {
22
+ super({
23
+ name: "ConflictException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ this.name = "ConflictException";
28
+ this.$fault = "client";
29
+ Object.setPrototypeOf(this, ConflictException.prototype);
30
+ this.Message = opts.Message;
31
+ }
32
+ }
33
+ exports.ConflictException = ConflictException;
4
34
  var Tag;
5
35
  (function (Tag) {
6
36
  Tag.filterSensitiveLog = (obj) => ({
@@ -25,6 +55,76 @@ var CreateDatabaseResponse;
25
55
  ...obj,
26
56
  });
27
57
  })(CreateDatabaseResponse = exports.CreateDatabaseResponse || (exports.CreateDatabaseResponse = {}));
58
+ class InternalServerException extends TimestreamWriteServiceException_1.TimestreamWriteServiceException {
59
+ constructor(opts) {
60
+ super({
61
+ name: "InternalServerException",
62
+ $fault: "server",
63
+ ...opts,
64
+ });
65
+ this.name = "InternalServerException";
66
+ this.$fault = "server";
67
+ Object.setPrototypeOf(this, InternalServerException.prototype);
68
+ this.Message = opts.Message;
69
+ }
70
+ }
71
+ exports.InternalServerException = InternalServerException;
72
+ class InvalidEndpointException extends TimestreamWriteServiceException_1.TimestreamWriteServiceException {
73
+ constructor(opts) {
74
+ super({
75
+ name: "InvalidEndpointException",
76
+ $fault: "client",
77
+ ...opts,
78
+ });
79
+ this.name = "InvalidEndpointException";
80
+ this.$fault = "client";
81
+ Object.setPrototypeOf(this, InvalidEndpointException.prototype);
82
+ this.Message = opts.Message;
83
+ }
84
+ }
85
+ exports.InvalidEndpointException = InvalidEndpointException;
86
+ class ServiceQuotaExceededException extends TimestreamWriteServiceException_1.TimestreamWriteServiceException {
87
+ constructor(opts) {
88
+ super({
89
+ name: "ServiceQuotaExceededException",
90
+ $fault: "client",
91
+ ...opts,
92
+ });
93
+ this.name = "ServiceQuotaExceededException";
94
+ this.$fault = "client";
95
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
96
+ this.Message = opts.Message;
97
+ }
98
+ }
99
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
100
+ class ThrottlingException extends TimestreamWriteServiceException_1.TimestreamWriteServiceException {
101
+ constructor(opts) {
102
+ super({
103
+ name: "ThrottlingException",
104
+ $fault: "client",
105
+ ...opts,
106
+ });
107
+ this.name = "ThrottlingException";
108
+ this.$fault = "client";
109
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
110
+ this.Message = opts.Message;
111
+ }
112
+ }
113
+ exports.ThrottlingException = ThrottlingException;
114
+ class ValidationException extends TimestreamWriteServiceException_1.TimestreamWriteServiceException {
115
+ constructor(opts) {
116
+ super({
117
+ name: "ValidationException",
118
+ $fault: "client",
119
+ ...opts,
120
+ });
121
+ this.name = "ValidationException";
122
+ this.$fault = "client";
123
+ Object.setPrototypeOf(this, ValidationException.prototype);
124
+ this.Message = opts.Message;
125
+ }
126
+ }
127
+ exports.ValidationException = ValidationException;
28
128
  var S3EncryptionOption;
29
129
  (function (S3EncryptionOption) {
30
130
  S3EncryptionOption["SSE_KMS"] = "SSE_KMS";
@@ -77,6 +177,20 @@ var CreateTableResponse;
77
177
  ...obj,
78
178
  });
79
179
  })(CreateTableResponse = exports.CreateTableResponse || (exports.CreateTableResponse = {}));
180
+ class ResourceNotFoundException extends TimestreamWriteServiceException_1.TimestreamWriteServiceException {
181
+ constructor(opts) {
182
+ super({
183
+ name: "ResourceNotFoundException",
184
+ $fault: "client",
185
+ ...opts,
186
+ });
187
+ this.name = "ResourceNotFoundException";
188
+ this.$fault = "client";
189
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
190
+ this.Message = opts.Message;
191
+ }
192
+ }
193
+ exports.ResourceNotFoundException = ResourceNotFoundException;
80
194
  var DeleteDatabaseRequest;
81
195
  (function (DeleteDatabaseRequest) {
82
196
  DeleteDatabaseRequest.filterSensitiveLog = (obj) => ({
@@ -217,6 +331,21 @@ var RejectedRecord;
217
331
  ...obj,
218
332
  });
219
333
  })(RejectedRecord = exports.RejectedRecord || (exports.RejectedRecord = {}));
334
+ class RejectedRecordsException extends TimestreamWriteServiceException_1.TimestreamWriteServiceException {
335
+ constructor(opts) {
336
+ super({
337
+ name: "RejectedRecordsException",
338
+ $fault: "client",
339
+ ...opts,
340
+ });
341
+ this.name = "RejectedRecordsException";
342
+ this.$fault = "client";
343
+ Object.setPrototypeOf(this, RejectedRecordsException.prototype);
344
+ this.Message = opts.Message;
345
+ this.RejectedRecords = opts.RejectedRecords;
346
+ }
347
+ }
348
+ exports.RejectedRecordsException = RejectedRecordsException;
220
349
  var TagResourceRequest;
221
350
  (function (TagResourceRequest) {
222
351
  TagResourceRequest.filterSensitiveLog = (obj) => ({