@aws-sdk/client-timestream-write 3.42.0 → 3.47.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 (39) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +8 -1
  3. package/dist-cjs/commands/WriteRecordsCommand.js +1 -1
  4. package/dist-cjs/endpoints.js +1 -0
  5. package/dist-cjs/models/models_0.js +38 -49
  6. package/dist-cjs/protocols/Aws_json1_0.js +101 -1
  7. package/dist-cjs/runtimeConfig.browser.js +7 -2
  8. package/dist-cjs/runtimeConfig.js +9 -3
  9. package/dist-es/commands/WriteRecordsCommand.js +2 -2
  10. package/dist-es/endpoints.js +1 -0
  11. package/dist-es/models/models_0.js +31 -36
  12. package/dist-es/protocols/Aws_json1_0.js +91 -11
  13. package/dist-es/runtimeConfig.browser.js +12 -3
  14. package/dist-es/runtimeConfig.js +13 -6
  15. package/dist-types/TimestreamWrite.d.ts +83 -21
  16. package/dist-types/TimestreamWriteClient.d.ts +12 -2
  17. package/dist-types/commands/CreateDatabaseCommand.d.ts +6 -3
  18. package/dist-types/commands/CreateTableCommand.d.ts +5 -4
  19. package/dist-types/commands/DeleteDatabaseCommand.d.ts +7 -2
  20. package/dist-types/commands/DeleteTableCommand.d.ts +5 -1
  21. package/dist-types/commands/DescribeDatabaseCommand.d.ts +2 -1
  22. package/dist-types/commands/DescribeEndpointsCommand.d.ts +9 -4
  23. package/dist-types/commands/DescribeTableCommand.d.ts +2 -1
  24. package/dist-types/commands/ListDatabasesCommand.d.ts +2 -1
  25. package/dist-types/commands/ListTablesCommand.d.ts +2 -0
  26. package/dist-types/commands/UpdateDatabaseCommand.d.ts +2 -0
  27. package/dist-types/commands/UpdateTableCommand.d.ts +2 -1
  28. package/dist-types/commands/WriteRecordsCommand.d.ts +34 -4
  29. package/dist-types/models/models_0.d.ts +203 -68
  30. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  31. package/dist-types/runtimeConfig.d.ts +4 -3
  32. package/dist-types/runtimeConfig.native.d.ts +1 -0
  33. package/dist-types/ts3.4/TimestreamWriteClient.d.ts +3 -1
  34. package/dist-types/ts3.4/commands/WriteRecordsCommand.d.ts +2 -2
  35. package/dist-types/ts3.4/models/models_0.d.ts +82 -35
  36. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  37. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  38. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  39. package/package.json +39 -46
package/CHANGELOG.md CHANGED
@@ -3,6 +3,56 @@
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.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
28
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
29
+
30
+
31
+
32
+
33
+
34
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
35
+
36
+
37
+ ### Features
38
+
39
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
40
+
41
+
42
+
43
+
44
+
45
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
46
+
47
+
48
+ ### Features
49
+
50
+ * **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
51
+
52
+
53
+
54
+
55
+
6
56
  # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
7
57
 
8
58
  **Note:** Version bump only for package @aws-sdk/client-timestream-write
package/README.md CHANGED
@@ -7,7 +7,14 @@
7
7
 
8
8
  AWS SDK for JavaScript TimestreamWrite Client for Node.js, Browser and React Native.
9
9
 
10
- <p>Amazon Timestream is a fast, scalable, fully managed time series database service that makes it easy to store and analyze trillions of time series data points per day. With Timestream, you can easily store and analyze IoT sensor data to derive insights from your IoT applications. You can analyze industrial telemetry to streamline equipment management and maintenance. You can also store and analyze log data and metrics to improve the performance and availability of your applications. Timestream is built from the ground up to effectively ingest, process, and store time series data. It organizes data to optimize query processing. It automatically scales based on the volume of data ingested and on the query volume to ensure you receive optimal performance while inserting and querying data. As your data grows over time, Timestream’s adaptive query processing engine spans across storage tiers to provide fast analysis while reducing costs.</p>
10
+ <fullname>Amazon Timestream Write</fullname>
11
+
12
+ <p>Amazon Timestream is a fast, scalable, fully managed time series database service that makes it easy to store and analyze trillions of time series data points per day.
13
+ With Timestream, you can easily store and analyze IoT sensor data to derive insights from your IoT applications.
14
+ You can analyze industrial telemetry to streamline equipment management and maintenance.
15
+ You can also store and analyze log data and metrics to improve the performance and availability of your applications.
16
+ Timestream is built from the ground up to effectively ingest, process,
17
+ and store time series data. It organizes data to optimize query processing. It automatically scales based on the volume of data ingested and on the query volume to ensure you receive optimal performance while inserting and querying data. As your data grows over time, Timestream’s adaptive query processing engine spans across storage tiers to provide fast analysis while reducing costs.</p>
11
18
 
12
19
  ## Installing
13
20
 
@@ -23,7 +23,7 @@ class WriteRecordsCommand extends smithy_client_1.Command {
23
23
  clientName,
24
24
  commandName,
25
25
  inputFilterSensitiveLog: models_0_1.WriteRecordsRequest.filterSensitiveLog,
26
- outputFilterSensitiveLog: (output) => output,
26
+ outputFilterSensitiveLog: models_0_1.WriteRecordsResponse.filterSensitiveLog,
27
27
  };
28
28
  const { requestHandler } = configuration;
29
29
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -14,6 +14,7 @@ const partitionHash = {
14
14
  "ap-south-1",
15
15
  "ap-southeast-1",
16
16
  "ap-southeast-2",
17
+ "ap-southeast-3",
17
18
  "ca-central-1",
18
19
  "eu-central-1",
19
20
  "eu-north-1",
@@ -1,18 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WriteRecordsRequest = exports.UpdateTableResponse = exports.UpdateTableRequest = exports.UpdateDatabaseResponse = exports.UpdateDatabaseRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.RejectedRecordsException = exports.RejectedRecord = exports._Record = exports.TimeUnit = 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.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.InvalidEndpointException = exports.InternalServerException = exports.CreateDatabaseResponse = exports.Database = exports.CreateDatabaseRequest = exports.Tag = exports.ConflictException = exports.AccessDeniedException = void 0;
4
- var AccessDeniedException;
5
- (function (AccessDeniedException) {
6
- AccessDeniedException.filterSensitiveLog = (obj) => ({
7
- ...obj,
8
- });
9
- })(AccessDeniedException = exports.AccessDeniedException || (exports.AccessDeniedException = {}));
10
- var ConflictException;
11
- (function (ConflictException) {
12
- ConflictException.filterSensitiveLog = (obj) => ({
13
- ...obj,
14
- });
15
- })(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
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;
16
4
  var Tag;
17
5
  (function (Tag) {
18
6
  Tag.filterSensitiveLog = (obj) => ({
@@ -37,36 +25,29 @@ var CreateDatabaseResponse;
37
25
  ...obj,
38
26
  });
39
27
  })(CreateDatabaseResponse = exports.CreateDatabaseResponse || (exports.CreateDatabaseResponse = {}));
40
- var InternalServerException;
41
- (function (InternalServerException) {
42
- InternalServerException.filterSensitiveLog = (obj) => ({
28
+ var S3EncryptionOption;
29
+ (function (S3EncryptionOption) {
30
+ S3EncryptionOption["SSE_KMS"] = "SSE_KMS";
31
+ S3EncryptionOption["SSE_S3"] = "SSE_S3";
32
+ })(S3EncryptionOption = exports.S3EncryptionOption || (exports.S3EncryptionOption = {}));
33
+ var S3Configuration;
34
+ (function (S3Configuration) {
35
+ S3Configuration.filterSensitiveLog = (obj) => ({
43
36
  ...obj,
44
37
  });
45
- })(InternalServerException = exports.InternalServerException || (exports.InternalServerException = {}));
46
- var InvalidEndpointException;
47
- (function (InvalidEndpointException) {
48
- InvalidEndpointException.filterSensitiveLog = (obj) => ({
38
+ })(S3Configuration = exports.S3Configuration || (exports.S3Configuration = {}));
39
+ var MagneticStoreRejectedDataLocation;
40
+ (function (MagneticStoreRejectedDataLocation) {
41
+ MagneticStoreRejectedDataLocation.filterSensitiveLog = (obj) => ({
49
42
  ...obj,
50
43
  });
51
- })(InvalidEndpointException = exports.InvalidEndpointException || (exports.InvalidEndpointException = {}));
52
- var ServiceQuotaExceededException;
53
- (function (ServiceQuotaExceededException) {
54
- ServiceQuotaExceededException.filterSensitiveLog = (obj) => ({
44
+ })(MagneticStoreRejectedDataLocation = exports.MagneticStoreRejectedDataLocation || (exports.MagneticStoreRejectedDataLocation = {}));
45
+ var MagneticStoreWriteProperties;
46
+ (function (MagneticStoreWriteProperties) {
47
+ MagneticStoreWriteProperties.filterSensitiveLog = (obj) => ({
55
48
  ...obj,
56
49
  });
57
- })(ServiceQuotaExceededException = exports.ServiceQuotaExceededException || (exports.ServiceQuotaExceededException = {}));
58
- var ThrottlingException;
59
- (function (ThrottlingException) {
60
- ThrottlingException.filterSensitiveLog = (obj) => ({
61
- ...obj,
62
- });
63
- })(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {}));
64
- var ValidationException;
65
- (function (ValidationException) {
66
- ValidationException.filterSensitiveLog = (obj) => ({
67
- ...obj,
68
- });
69
- })(ValidationException = exports.ValidationException || (exports.ValidationException = {}));
50
+ })(MagneticStoreWriteProperties = exports.MagneticStoreWriteProperties || (exports.MagneticStoreWriteProperties = {}));
70
51
  var RetentionProperties;
71
52
  (function (RetentionProperties) {
72
53
  RetentionProperties.filterSensitiveLog = (obj) => ({
@@ -96,12 +77,6 @@ var CreateTableResponse;
96
77
  ...obj,
97
78
  });
98
79
  })(CreateTableResponse = exports.CreateTableResponse || (exports.CreateTableResponse = {}));
99
- var ResourceNotFoundException;
100
- (function (ResourceNotFoundException) {
101
- ResourceNotFoundException.filterSensitiveLog = (obj) => ({
102
- ...obj,
103
- });
104
- })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
105
80
  var DeleteDatabaseRequest;
106
81
  (function (DeleteDatabaseRequest) {
107
82
  DeleteDatabaseRequest.filterSensitiveLog = (obj) => ({
@@ -207,8 +182,16 @@ var MeasureValueType;
207
182
  MeasureValueType["BIGINT"] = "BIGINT";
208
183
  MeasureValueType["BOOLEAN"] = "BOOLEAN";
209
184
  MeasureValueType["DOUBLE"] = "DOUBLE";
185
+ MeasureValueType["MULTI"] = "MULTI";
186
+ MeasureValueType["TIMESTAMP"] = "TIMESTAMP";
210
187
  MeasureValueType["VARCHAR"] = "VARCHAR";
211
188
  })(MeasureValueType = exports.MeasureValueType || (exports.MeasureValueType = {}));
189
+ var MeasureValue;
190
+ (function (MeasureValue) {
191
+ MeasureValue.filterSensitiveLog = (obj) => ({
192
+ ...obj,
193
+ });
194
+ })(MeasureValue = exports.MeasureValue || (exports.MeasureValue = {}));
212
195
  var TimeUnit;
213
196
  (function (TimeUnit) {
214
197
  TimeUnit["MICROSECONDS"] = "MICROSECONDS";
@@ -222,18 +205,18 @@ var _Record;
222
205
  ...obj,
223
206
  });
224
207
  })(_Record = exports._Record || (exports._Record = {}));
208
+ var RecordsIngested;
209
+ (function (RecordsIngested) {
210
+ RecordsIngested.filterSensitiveLog = (obj) => ({
211
+ ...obj,
212
+ });
213
+ })(RecordsIngested = exports.RecordsIngested || (exports.RecordsIngested = {}));
225
214
  var RejectedRecord;
226
215
  (function (RejectedRecord) {
227
216
  RejectedRecord.filterSensitiveLog = (obj) => ({
228
217
  ...obj,
229
218
  });
230
219
  })(RejectedRecord = exports.RejectedRecord || (exports.RejectedRecord = {}));
231
- var RejectedRecordsException;
232
- (function (RejectedRecordsException) {
233
- RejectedRecordsException.filterSensitiveLog = (obj) => ({
234
- ...obj,
235
- });
236
- })(RejectedRecordsException = exports.RejectedRecordsException || (exports.RejectedRecordsException = {}));
237
220
  var TagResourceRequest;
238
221
  (function (TagResourceRequest) {
239
222
  TagResourceRequest.filterSensitiveLog = (obj) => ({
@@ -288,3 +271,9 @@ var WriteRecordsRequest;
288
271
  ...obj,
289
272
  });
290
273
  })(WriteRecordsRequest = exports.WriteRecordsRequest || (exports.WriteRecordsRequest = {}));
274
+ var WriteRecordsResponse;
275
+ (function (WriteRecordsResponse) {
276
+ WriteRecordsResponse.filterSensitiveLog = (obj) => ({
277
+ ...obj,
278
+ });
279
+ })(WriteRecordsResponse = exports.WriteRecordsResponse || (exports.WriteRecordsResponse = {}));
@@ -1337,9 +1337,12 @@ const deserializeAws_json1_0WriteRecordsCommand = async (output, context) => {
1337
1337
  if (output.statusCode >= 300) {
1338
1338
  return deserializeAws_json1_0WriteRecordsCommandError(output, context);
1339
1339
  }
1340
- await collectBody(output.body, context);
1340
+ const data = await parseBody(output.body, context);
1341
+ let contents = {};
1342
+ contents = deserializeAws_json1_0WriteRecordsResponse(data, context);
1341
1343
  const response = {
1342
1344
  $metadata: deserializeMetadata(output),
1345
+ ...contents,
1343
1346
  };
1344
1347
  return Promise.resolve(response);
1345
1348
  };
@@ -1534,6 +1537,10 @@ const serializeAws_json1_0CreateDatabaseRequest = (input, context) => {
1534
1537
  const serializeAws_json1_0CreateTableRequest = (input, context) => {
1535
1538
  return {
1536
1539
  ...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
1540
+ ...(input.MagneticStoreWriteProperties !== undefined &&
1541
+ input.MagneticStoreWriteProperties !== null && {
1542
+ MagneticStoreWriteProperties: serializeAws_json1_0MagneticStoreWriteProperties(input.MagneticStoreWriteProperties, context),
1543
+ }),
1537
1544
  ...(input.RetentionProperties !== undefined &&
1538
1545
  input.RetentionProperties !== null && {
1539
1546
  RetentionProperties: serializeAws_json1_0RetentionProperties(input.RetentionProperties, context),
@@ -1603,6 +1610,41 @@ const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
1603
1610
  ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
1604
1611
  };
1605
1612
  };
1613
+ const serializeAws_json1_0MagneticStoreRejectedDataLocation = (input, context) => {
1614
+ return {
1615
+ ...(input.S3Configuration !== undefined &&
1616
+ input.S3Configuration !== null && {
1617
+ S3Configuration: serializeAws_json1_0S3Configuration(input.S3Configuration, context),
1618
+ }),
1619
+ };
1620
+ };
1621
+ const serializeAws_json1_0MagneticStoreWriteProperties = (input, context) => {
1622
+ return {
1623
+ ...(input.EnableMagneticStoreWrites !== undefined &&
1624
+ input.EnableMagneticStoreWrites !== null && { EnableMagneticStoreWrites: input.EnableMagneticStoreWrites }),
1625
+ ...(input.MagneticStoreRejectedDataLocation !== undefined &&
1626
+ input.MagneticStoreRejectedDataLocation !== null && {
1627
+ MagneticStoreRejectedDataLocation: serializeAws_json1_0MagneticStoreRejectedDataLocation(input.MagneticStoreRejectedDataLocation, context),
1628
+ }),
1629
+ };
1630
+ };
1631
+ const serializeAws_json1_0MeasureValue = (input, context) => {
1632
+ return {
1633
+ ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1634
+ ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
1635
+ ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
1636
+ };
1637
+ };
1638
+ const serializeAws_json1_0MeasureValues = (input, context) => {
1639
+ return input
1640
+ .filter((e) => e != null)
1641
+ .map((entry) => {
1642
+ if (entry === null) {
1643
+ return null;
1644
+ }
1645
+ return serializeAws_json1_0MeasureValue(entry, context);
1646
+ });
1647
+ };
1606
1648
  const serializeAws_json1_0_Record = (input, context) => {
1607
1649
  return {
1608
1650
  ...(input.Dimensions !== undefined &&
@@ -1611,6 +1653,10 @@ const serializeAws_json1_0_Record = (input, context) => {
1611
1653
  ...(input.MeasureValue !== undefined && input.MeasureValue !== null && { MeasureValue: input.MeasureValue }),
1612
1654
  ...(input.MeasureValueType !== undefined &&
1613
1655
  input.MeasureValueType !== null && { MeasureValueType: input.MeasureValueType }),
1656
+ ...(input.MeasureValues !== undefined &&
1657
+ input.MeasureValues !== null && {
1658
+ MeasureValues: serializeAws_json1_0MeasureValues(input.MeasureValues, context),
1659
+ }),
1614
1660
  ...(input.Time !== undefined && input.Time !== null && { Time: input.Time }),
1615
1661
  ...(input.TimeUnit !== undefined && input.TimeUnit !== null && { TimeUnit: input.TimeUnit }),
1616
1662
  ...(input.Version !== undefined && input.Version !== null && { Version: input.Version }),
@@ -1638,6 +1684,16 @@ const serializeAws_json1_0RetentionProperties = (input, context) => {
1638
1684
  }),
1639
1685
  };
1640
1686
  };
1687
+ const serializeAws_json1_0S3Configuration = (input, context) => {
1688
+ return {
1689
+ ...(input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName }),
1690
+ ...(input.EncryptionOption !== undefined &&
1691
+ input.EncryptionOption !== null && { EncryptionOption: input.EncryptionOption }),
1692
+ ...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
1693
+ ...(input.ObjectKeyPrefix !== undefined &&
1694
+ input.ObjectKeyPrefix !== null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
1695
+ };
1696
+ };
1641
1697
  const serializeAws_json1_0Tag = (input, context) => {
1642
1698
  return {
1643
1699
  ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
@@ -1686,6 +1742,10 @@ const serializeAws_json1_0UpdateDatabaseRequest = (input, context) => {
1686
1742
  const serializeAws_json1_0UpdateTableRequest = (input, context) => {
1687
1743
  return {
1688
1744
  ...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
1745
+ ...(input.MagneticStoreWriteProperties !== undefined &&
1746
+ input.MagneticStoreWriteProperties !== null && {
1747
+ MagneticStoreWriteProperties: serializeAws_json1_0MagneticStoreWriteProperties(input.MagneticStoreWriteProperties, context),
1748
+ }),
1689
1749
  ...(input.RetentionProperties !== undefined &&
1690
1750
  input.RetentionProperties !== null && {
1691
1751
  RetentionProperties: serializeAws_json1_0RetentionProperties(input.RetentionProperties, context),
@@ -1823,6 +1883,28 @@ const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
1823
1883
  : undefined,
1824
1884
  };
1825
1885
  };
1886
+ const deserializeAws_json1_0MagneticStoreRejectedDataLocation = (output, context) => {
1887
+ return {
1888
+ S3Configuration: output.S3Configuration !== undefined && output.S3Configuration !== null
1889
+ ? deserializeAws_json1_0S3Configuration(output.S3Configuration, context)
1890
+ : undefined,
1891
+ };
1892
+ };
1893
+ const deserializeAws_json1_0MagneticStoreWriteProperties = (output, context) => {
1894
+ return {
1895
+ EnableMagneticStoreWrites: smithy_client_1.expectBoolean(output.EnableMagneticStoreWrites),
1896
+ MagneticStoreRejectedDataLocation: output.MagneticStoreRejectedDataLocation !== undefined && output.MagneticStoreRejectedDataLocation !== null
1897
+ ? deserializeAws_json1_0MagneticStoreRejectedDataLocation(output.MagneticStoreRejectedDataLocation, context)
1898
+ : undefined,
1899
+ };
1900
+ };
1901
+ const deserializeAws_json1_0RecordsIngested = (output, context) => {
1902
+ return {
1903
+ MagneticStore: smithy_client_1.expectInt32(output.MagneticStore),
1904
+ MemoryStore: smithy_client_1.expectInt32(output.MemoryStore),
1905
+ Total: smithy_client_1.expectInt32(output.Total),
1906
+ };
1907
+ };
1826
1908
  const deserializeAws_json1_0RejectedRecord = (output, context) => {
1827
1909
  return {
1828
1910
  ExistingVersion: smithy_client_1.expectLong(output.ExistingVersion),
@@ -1859,6 +1941,14 @@ const deserializeAws_json1_0RetentionProperties = (output, context) => {
1859
1941
  MemoryStoreRetentionPeriodInHours: smithy_client_1.expectLong(output.MemoryStoreRetentionPeriodInHours),
1860
1942
  };
1861
1943
  };
1944
+ const deserializeAws_json1_0S3Configuration = (output, context) => {
1945
+ return {
1946
+ BucketName: smithy_client_1.expectString(output.BucketName),
1947
+ EncryptionOption: smithy_client_1.expectString(output.EncryptionOption),
1948
+ KmsKeyId: smithy_client_1.expectString(output.KmsKeyId),
1949
+ ObjectKeyPrefix: smithy_client_1.expectString(output.ObjectKeyPrefix),
1950
+ };
1951
+ };
1862
1952
  const deserializeAws_json1_0ServiceQuotaExceededException = (output, context) => {
1863
1953
  return {
1864
1954
  Message: smithy_client_1.expectString(output.Message),
@@ -1874,6 +1964,9 @@ const deserializeAws_json1_0Table = (output, context) => {
1874
1964
  LastUpdatedTime: output.LastUpdatedTime !== undefined && output.LastUpdatedTime !== null
1875
1965
  ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedTime)))
1876
1966
  : undefined,
1967
+ MagneticStoreWriteProperties: output.MagneticStoreWriteProperties !== undefined && output.MagneticStoreWriteProperties !== null
1968
+ ? deserializeAws_json1_0MagneticStoreWriteProperties(output.MagneticStoreWriteProperties, context)
1969
+ : undefined,
1877
1970
  RetentionProperties: output.RetentionProperties !== undefined && output.RetentionProperties !== null
1878
1971
  ? deserializeAws_json1_0RetentionProperties(output.RetentionProperties, context)
1879
1972
  : undefined,
@@ -1937,6 +2030,13 @@ const deserializeAws_json1_0ValidationException = (output, context) => {
1937
2030
  Message: smithy_client_1.expectString(output.Message),
1938
2031
  };
1939
2032
  };
2033
+ const deserializeAws_json1_0WriteRecordsResponse = (output, context) => {
2034
+ return {
2035
+ RecordsIngested: output.RecordsIngested !== undefined && output.RecordsIngested !== null
2036
+ ? deserializeAws_json1_0RecordsIngested(output.RecordsIngested, context)
2037
+ : undefined,
2038
+ };
2039
+ };
1940
2040
  const deserializeMetadata = (output) => {
1941
2041
  var _a;
1942
2042
  return ({
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -28,8 +33,8 @@ const getRuntimeConfig = (config) => {
28
33
  endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : (() => Promise.resolve(undefined)),
29
34
  maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
30
35
  region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : invalid_dependency_1.invalidProvider("Region is missing"),
31
- requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new fetch_http_handler_1.FetchHttpHandler(),
32
- retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
36
+ requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
37
+ retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
33
38
  sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : sha256_browser_1.Sha256,
34
39
  streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : fetch_http_handler_1.streamCollector,
35
40
  useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -17,14 +17,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
17
17
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
18
18
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
19
19
  const smithy_client_1 = require("@aws-sdk/smithy-client");
20
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
21
  const getRuntimeConfig = (config) => {
21
22
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
22
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
23
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
24
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
23
25
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
24
26
  return {
25
27
  ...clientSharedValues,
26
28
  ...config,
27
29
  runtime: "node",
30
+ defaultsMode,
28
31
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
29
32
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
30
33
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -33,8 +36,11 @@ const getRuntimeConfig = (config) => {
33
36
  endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_endpoint_discovery_1.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),
34
37
  maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
35
38
  region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
36
- requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new node_http_handler_1.NodeHttpHandler(),
37
- retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
39
+ requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
+ retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : node_config_provider_1.loadConfig({
41
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
42
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
43
+ }),
38
44
  sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : hash_node_1.Hash.bind(null, "sha256"),
39
45
  streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : node_http_handler_1.streamCollector,
40
46
  useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
@@ -2,7 +2,7 @@ import { __extends } from "tslib";
2
2
  import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
3
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
- import { WriteRecordsRequest } from "../models/models_0";
5
+ import { WriteRecordsRequest, WriteRecordsResponse } from "../models/models_0";
6
6
  import { deserializeAws_json1_0WriteRecordsCommand, serializeAws_json1_0WriteRecordsCommand, } from "../protocols/Aws_json1_0";
7
7
  var WriteRecordsCommand = (function (_super) {
8
8
  __extends(WriteRecordsCommand, _super);
@@ -23,7 +23,7 @@ var WriteRecordsCommand = (function (_super) {
23
23
  clientName: clientName,
24
24
  commandName: commandName,
25
25
  inputFilterSensitiveLog: WriteRecordsRequest.filterSensitiveLog,
26
- outputFilterSensitiveLog: function (output) { return output; },
26
+ outputFilterSensitiveLog: WriteRecordsResponse.filterSensitiveLog,
27
27
  };
28
28
  var requestHandler = configuration.requestHandler;
29
29
  return stack.resolve(function (request) {
@@ -12,6 +12,7 @@ var partitionHash = {
12
12
  "ap-south-1",
13
13
  "ap-southeast-1",
14
14
  "ap-southeast-2",
15
+ "ap-southeast-3",
15
16
  "ca-central-1",
16
17
  "eu-central-1",
17
18
  "eu-north-1",
@@ -1,12 +1,4 @@
1
1
  import { __assign } from "tslib";
2
- export var AccessDeniedException;
3
- (function (AccessDeniedException) {
4
- AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
5
- })(AccessDeniedException || (AccessDeniedException = {}));
6
- export var ConflictException;
7
- (function (ConflictException) {
8
- ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
9
- })(ConflictException || (ConflictException = {}));
10
2
  export var Tag;
11
3
  (function (Tag) {
12
4
  Tag.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -23,26 +15,23 @@ export var CreateDatabaseResponse;
23
15
  (function (CreateDatabaseResponse) {
24
16
  CreateDatabaseResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
25
17
  })(CreateDatabaseResponse || (CreateDatabaseResponse = {}));
26
- export var InternalServerException;
27
- (function (InternalServerException) {
28
- InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
29
- })(InternalServerException || (InternalServerException = {}));
30
- export var InvalidEndpointException;
31
- (function (InvalidEndpointException) {
32
- InvalidEndpointException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
33
- })(InvalidEndpointException || (InvalidEndpointException = {}));
34
- export var ServiceQuotaExceededException;
35
- (function (ServiceQuotaExceededException) {
36
- ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
37
- })(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
38
- export var ThrottlingException;
39
- (function (ThrottlingException) {
40
- ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
41
- })(ThrottlingException || (ThrottlingException = {}));
42
- export var ValidationException;
43
- (function (ValidationException) {
44
- ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
45
- })(ValidationException || (ValidationException = {}));
18
+ export var S3EncryptionOption;
19
+ (function (S3EncryptionOption) {
20
+ S3EncryptionOption["SSE_KMS"] = "SSE_KMS";
21
+ S3EncryptionOption["SSE_S3"] = "SSE_S3";
22
+ })(S3EncryptionOption || (S3EncryptionOption = {}));
23
+ export var S3Configuration;
24
+ (function (S3Configuration) {
25
+ S3Configuration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
26
+ })(S3Configuration || (S3Configuration = {}));
27
+ export var MagneticStoreRejectedDataLocation;
28
+ (function (MagneticStoreRejectedDataLocation) {
29
+ MagneticStoreRejectedDataLocation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
30
+ })(MagneticStoreRejectedDataLocation || (MagneticStoreRejectedDataLocation = {}));
31
+ export var MagneticStoreWriteProperties;
32
+ (function (MagneticStoreWriteProperties) {
33
+ MagneticStoreWriteProperties.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
34
+ })(MagneticStoreWriteProperties || (MagneticStoreWriteProperties = {}));
46
35
  export var RetentionProperties;
47
36
  (function (RetentionProperties) {
48
37
  RetentionProperties.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -64,10 +53,6 @@ export var CreateTableResponse;
64
53
  (function (CreateTableResponse) {
65
54
  CreateTableResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
66
55
  })(CreateTableResponse || (CreateTableResponse = {}));
67
- export var ResourceNotFoundException;
68
- (function (ResourceNotFoundException) {
69
- ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
70
- })(ResourceNotFoundException || (ResourceNotFoundException = {}));
71
56
  export var DeleteDatabaseRequest;
72
57
  (function (DeleteDatabaseRequest) {
73
58
  DeleteDatabaseRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -141,8 +126,14 @@ export var MeasureValueType;
141
126
  MeasureValueType["BIGINT"] = "BIGINT";
142
127
  MeasureValueType["BOOLEAN"] = "BOOLEAN";
143
128
  MeasureValueType["DOUBLE"] = "DOUBLE";
129
+ MeasureValueType["MULTI"] = "MULTI";
130
+ MeasureValueType["TIMESTAMP"] = "TIMESTAMP";
144
131
  MeasureValueType["VARCHAR"] = "VARCHAR";
145
132
  })(MeasureValueType || (MeasureValueType = {}));
133
+ export var MeasureValue;
134
+ (function (MeasureValue) {
135
+ MeasureValue.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
136
+ })(MeasureValue || (MeasureValue = {}));
146
137
  export var TimeUnit;
147
138
  (function (TimeUnit) {
148
139
  TimeUnit["MICROSECONDS"] = "MICROSECONDS";
@@ -154,14 +145,14 @@ export var _Record;
154
145
  (function (_Record) {
155
146
  _Record.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
156
147
  })(_Record || (_Record = {}));
148
+ export var RecordsIngested;
149
+ (function (RecordsIngested) {
150
+ RecordsIngested.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
151
+ })(RecordsIngested || (RecordsIngested = {}));
157
152
  export var RejectedRecord;
158
153
  (function (RejectedRecord) {
159
154
  RejectedRecord.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
160
155
  })(RejectedRecord || (RejectedRecord = {}));
161
- export var RejectedRecordsException;
162
- (function (RejectedRecordsException) {
163
- RejectedRecordsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
164
- })(RejectedRecordsException || (RejectedRecordsException = {}));
165
156
  export var TagResourceRequest;
166
157
  (function (TagResourceRequest) {
167
158
  TagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -198,3 +189,7 @@ export var WriteRecordsRequest;
198
189
  (function (WriteRecordsRequest) {
199
190
  WriteRecordsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
200
191
  })(WriteRecordsRequest || (WriteRecordsRequest = {}));
192
+ export var WriteRecordsResponse;
193
+ (function (WriteRecordsResponse) {
194
+ WriteRecordsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
195
+ })(WriteRecordsResponse || (WriteRecordsResponse = {}));