@aws-sdk/client-timestream-write 3.39.0 → 3.43.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 (42) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +8 -1
  3. package/dist-cjs/commands/WriteRecordsCommand.js +1 -1
  4. package/dist-cjs/endpoints.js +74 -5
  5. package/dist-cjs/models/models_0.js +45 -1
  6. package/dist-cjs/protocols/Aws_json1_0.js +101 -1
  7. package/dist-cjs/runtimeConfig.browser.js +6 -3
  8. package/dist-cjs/runtimeConfig.js +5 -3
  9. package/dist-es/commands/WriteRecordsCommand.js +2 -2
  10. package/dist-es/endpoints.js +74 -5
  11. package/dist-es/models/models_0.js +31 -0
  12. package/dist-es/protocols/Aws_json1_0.js +91 -11
  13. package/dist-es/runtimeConfig.browser.js +3 -2
  14. package/dist-es/runtimeConfig.js +3 -3
  15. package/dist-types/TimestreamWrite.d.ts +83 -21
  16. package/dist-types/TimestreamWriteClient.d.ts +15 -1
  17. package/dist-types/commands/CreateDatabaseCommand.d.ts +7 -4
  18. package/dist-types/commands/CreateTableCommand.d.ts +6 -5
  19. package/dist-types/commands/DeleteDatabaseCommand.d.ts +8 -3
  20. package/dist-types/commands/DeleteTableCommand.d.ts +6 -2
  21. package/dist-types/commands/DescribeDatabaseCommand.d.ts +3 -2
  22. package/dist-types/commands/DescribeEndpointsCommand.d.ts +10 -5
  23. package/dist-types/commands/DescribeTableCommand.d.ts +3 -2
  24. package/dist-types/commands/ListDatabasesCommand.d.ts +3 -2
  25. package/dist-types/commands/ListTablesCommand.d.ts +3 -1
  26. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  27. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  28. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  29. package/dist-types/commands/UpdateDatabaseCommand.d.ts +3 -1
  30. package/dist-types/commands/UpdateTableCommand.d.ts +3 -2
  31. package/dist-types/commands/WriteRecordsCommand.d.ts +35 -5
  32. package/dist-types/models/models_0.d.ts +207 -18
  33. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  34. package/dist-types/runtimeConfig.d.ts +2 -0
  35. package/dist-types/runtimeConfig.native.d.ts +2 -0
  36. package/dist-types/ts3.4/TimestreamWriteClient.d.ts +4 -0
  37. package/dist-types/ts3.4/commands/WriteRecordsCommand.d.ts +2 -2
  38. package/dist-types/ts3.4/models/models_0.d.ts +84 -1
  39. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  40. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  41. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  42. package/package.json +24 -24
package/CHANGELOG.md CHANGED
@@ -3,6 +3,47 @@
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.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-timestream-write
20
+
21
+
22
+
23
+
24
+
25
+ # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
26
+
27
+
28
+ ### Features
29
+
30
+ * **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
31
+
32
+
33
+
34
+
35
+
36
+ # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
37
+
38
+
39
+ ### Features
40
+
41
+ * **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
42
+
43
+
44
+
45
+
46
+
6
47
  # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
7
48
 
8
49
  **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);
@@ -29,27 +29,96 @@ const partitionHash = {
29
29
  "us-west-2",
30
30
  ],
31
31
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
32
- hostname: "ingest.timestream.{region}.amazonaws.com",
32
+ variants: [
33
+ {
34
+ hostname: "ingest.timestream.{region}.amazonaws.com",
35
+ tags: [],
36
+ },
37
+ {
38
+ hostname: "ingest.timestream-fips.{region}.amazonaws.com",
39
+ tags: ["fips"],
40
+ },
41
+ {
42
+ hostname: "ingest.timestream-fips.{region}.api.aws",
43
+ tags: ["dualstack", "fips"],
44
+ },
45
+ {
46
+ hostname: "ingest.timestream.{region}.api.aws",
47
+ tags: ["dualstack"],
48
+ },
49
+ ],
33
50
  },
34
51
  "aws-cn": {
35
52
  regions: ["cn-north-1", "cn-northwest-1"],
36
53
  regionRegex: "^cn\\-\\w+\\-\\d+$",
37
- hostname: "ingest.timestream.{region}.amazonaws.com.cn",
54
+ variants: [
55
+ {
56
+ hostname: "ingest.timestream.{region}.amazonaws.com.cn",
57
+ tags: [],
58
+ },
59
+ {
60
+ hostname: "ingest.timestream-fips.{region}.amazonaws.com.cn",
61
+ tags: ["fips"],
62
+ },
63
+ {
64
+ hostname: "ingest.timestream-fips.{region}.api.amazonwebservices.com.cn",
65
+ tags: ["dualstack", "fips"],
66
+ },
67
+ {
68
+ hostname: "ingest.timestream.{region}.api.amazonwebservices.com.cn",
69
+ tags: ["dualstack"],
70
+ },
71
+ ],
38
72
  },
39
73
  "aws-iso": {
40
74
  regions: ["us-iso-east-1", "us-iso-west-1"],
41
75
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
42
- hostname: "ingest.timestream.{region}.c2s.ic.gov",
76
+ variants: [
77
+ {
78
+ hostname: "ingest.timestream.{region}.c2s.ic.gov",
79
+ tags: [],
80
+ },
81
+ {
82
+ hostname: "ingest.timestream-fips.{region}.c2s.ic.gov",
83
+ tags: ["fips"],
84
+ },
85
+ ],
43
86
  },
44
87
  "aws-iso-b": {
45
88
  regions: ["us-isob-east-1"],
46
89
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
47
- hostname: "ingest.timestream.{region}.sc2s.sgov.gov",
90
+ variants: [
91
+ {
92
+ hostname: "ingest.timestream.{region}.sc2s.sgov.gov",
93
+ tags: [],
94
+ },
95
+ {
96
+ hostname: "ingest.timestream-fips.{region}.sc2s.sgov.gov",
97
+ tags: ["fips"],
98
+ },
99
+ ],
48
100
  },
49
101
  "aws-us-gov": {
50
102
  regions: ["us-gov-east-1", "us-gov-west-1"],
51
103
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
52
- hostname: "ingest.timestream.{region}.amazonaws.com",
104
+ variants: [
105
+ {
106
+ hostname: "ingest.timestream.{region}.amazonaws.com",
107
+ tags: [],
108
+ },
109
+ {
110
+ hostname: "ingest.timestream-fips.{region}.amazonaws.com",
111
+ tags: ["fips"],
112
+ },
113
+ {
114
+ hostname: "ingest.timestream-fips.{region}.api.aws",
115
+ tags: ["dualstack", "fips"],
116
+ },
117
+ {
118
+ hostname: "ingest.timestream.{region}.api.aws",
119
+ tags: ["dualstack"],
120
+ },
121
+ ],
53
122
  },
54
123
  };
55
124
  const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
@@ -1,6 +1,7 @@
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;
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;
4
5
  var AccessDeniedException;
5
6
  (function (AccessDeniedException) {
6
7
  AccessDeniedException.filterSensitiveLog = (obj) => ({
@@ -67,6 +68,29 @@ var ValidationException;
67
68
  ...obj,
68
69
  });
69
70
  })(ValidationException = exports.ValidationException || (exports.ValidationException = {}));
71
+ var S3EncryptionOption;
72
+ (function (S3EncryptionOption) {
73
+ S3EncryptionOption["SSE_KMS"] = "SSE_KMS";
74
+ S3EncryptionOption["SSE_S3"] = "SSE_S3";
75
+ })(S3EncryptionOption = exports.S3EncryptionOption || (exports.S3EncryptionOption = {}));
76
+ var S3Configuration;
77
+ (function (S3Configuration) {
78
+ S3Configuration.filterSensitiveLog = (obj) => ({
79
+ ...obj,
80
+ });
81
+ })(S3Configuration = exports.S3Configuration || (exports.S3Configuration = {}));
82
+ var MagneticStoreRejectedDataLocation;
83
+ (function (MagneticStoreRejectedDataLocation) {
84
+ MagneticStoreRejectedDataLocation.filterSensitiveLog = (obj) => ({
85
+ ...obj,
86
+ });
87
+ })(MagneticStoreRejectedDataLocation = exports.MagneticStoreRejectedDataLocation || (exports.MagneticStoreRejectedDataLocation = {}));
88
+ var MagneticStoreWriteProperties;
89
+ (function (MagneticStoreWriteProperties) {
90
+ MagneticStoreWriteProperties.filterSensitiveLog = (obj) => ({
91
+ ...obj,
92
+ });
93
+ })(MagneticStoreWriteProperties = exports.MagneticStoreWriteProperties || (exports.MagneticStoreWriteProperties = {}));
70
94
  var RetentionProperties;
71
95
  (function (RetentionProperties) {
72
96
  RetentionProperties.filterSensitiveLog = (obj) => ({
@@ -207,8 +231,16 @@ var MeasureValueType;
207
231
  MeasureValueType["BIGINT"] = "BIGINT";
208
232
  MeasureValueType["BOOLEAN"] = "BOOLEAN";
209
233
  MeasureValueType["DOUBLE"] = "DOUBLE";
234
+ MeasureValueType["MULTI"] = "MULTI";
235
+ MeasureValueType["TIMESTAMP"] = "TIMESTAMP";
210
236
  MeasureValueType["VARCHAR"] = "VARCHAR";
211
237
  })(MeasureValueType = exports.MeasureValueType || (exports.MeasureValueType = {}));
238
+ var MeasureValue;
239
+ (function (MeasureValue) {
240
+ MeasureValue.filterSensitiveLog = (obj) => ({
241
+ ...obj,
242
+ });
243
+ })(MeasureValue = exports.MeasureValue || (exports.MeasureValue = {}));
212
244
  var TimeUnit;
213
245
  (function (TimeUnit) {
214
246
  TimeUnit["MICROSECONDS"] = "MICROSECONDS";
@@ -222,6 +254,12 @@ var _Record;
222
254
  ...obj,
223
255
  });
224
256
  })(_Record = exports._Record || (exports._Record = {}));
257
+ var RecordsIngested;
258
+ (function (RecordsIngested) {
259
+ RecordsIngested.filterSensitiveLog = (obj) => ({
260
+ ...obj,
261
+ });
262
+ })(RecordsIngested = exports.RecordsIngested || (exports.RecordsIngested = {}));
225
263
  var RejectedRecord;
226
264
  (function (RejectedRecord) {
227
265
  RejectedRecord.filterSensitiveLog = (obj) => ({
@@ -288,3 +326,9 @@ var WriteRecordsRequest;
288
326
  ...obj,
289
327
  });
290
328
  })(WriteRecordsRequest = exports.WriteRecordsRequest || (exports.WriteRecordsRequest = {}));
329
+ var WriteRecordsResponse;
330
+ (function (WriteRecordsResponse) {
331
+ WriteRecordsResponse.filterSensitiveLog = (obj) => ({
332
+ ...obj,
333
+ });
334
+ })(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 ({
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
7
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
9
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
16
  const getRuntimeConfig = (config) => {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
17
18
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
18
19
  return {
19
20
  ...clientSharedValues,
@@ -31,8 +32,10 @@ const getRuntimeConfig = (config) => {
31
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)),
32
33
  sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : sha256_browser_1.Sha256,
33
34
  streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : fetch_http_handler_1.streamCollector,
34
- utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.fromUtf8,
35
- utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.toUtf8,
35
+ 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)),
36
+ useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
37
+ utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.fromUtf8,
38
+ utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : util_utf8_browser_1.toUtf8,
36
39
  };
37
40
  };
38
41
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -18,7 +18,7 @@ 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
20
  const getRuntimeConfig = (config) => {
21
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
21
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
22
22
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
23
23
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
24
24
  return {
@@ -37,8 +37,10 @@ const getRuntimeConfig = (config) => {
37
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),
38
38
  sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : hash_node_1.Hash.bind(null, "sha256"),
39
39
  streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : node_http_handler_1.streamCollector,
40
- utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.fromUtf8,
41
- utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.toUtf8,
40
+ 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),
41
+ useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
42
+ utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.fromUtf8,
43
+ utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : util_utf8_node_1.toUtf8,
42
44
  };
43
45
  };
44
46
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -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) {
@@ -27,27 +27,96 @@ var partitionHash = {
27
27
  "us-west-2",
28
28
  ],
29
29
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
30
- hostname: "ingest.timestream.{region}.amazonaws.com",
30
+ variants: [
31
+ {
32
+ hostname: "ingest.timestream.{region}.amazonaws.com",
33
+ tags: [],
34
+ },
35
+ {
36
+ hostname: "ingest.timestream-fips.{region}.amazonaws.com",
37
+ tags: ["fips"],
38
+ },
39
+ {
40
+ hostname: "ingest.timestream-fips.{region}.api.aws",
41
+ tags: ["dualstack", "fips"],
42
+ },
43
+ {
44
+ hostname: "ingest.timestream.{region}.api.aws",
45
+ tags: ["dualstack"],
46
+ },
47
+ ],
31
48
  },
32
49
  "aws-cn": {
33
50
  regions: ["cn-north-1", "cn-northwest-1"],
34
51
  regionRegex: "^cn\\-\\w+\\-\\d+$",
35
- hostname: "ingest.timestream.{region}.amazonaws.com.cn",
52
+ variants: [
53
+ {
54
+ hostname: "ingest.timestream.{region}.amazonaws.com.cn",
55
+ tags: [],
56
+ },
57
+ {
58
+ hostname: "ingest.timestream-fips.{region}.amazonaws.com.cn",
59
+ tags: ["fips"],
60
+ },
61
+ {
62
+ hostname: "ingest.timestream-fips.{region}.api.amazonwebservices.com.cn",
63
+ tags: ["dualstack", "fips"],
64
+ },
65
+ {
66
+ hostname: "ingest.timestream.{region}.api.amazonwebservices.com.cn",
67
+ tags: ["dualstack"],
68
+ },
69
+ ],
36
70
  },
37
71
  "aws-iso": {
38
72
  regions: ["us-iso-east-1", "us-iso-west-1"],
39
73
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
40
- hostname: "ingest.timestream.{region}.c2s.ic.gov",
74
+ variants: [
75
+ {
76
+ hostname: "ingest.timestream.{region}.c2s.ic.gov",
77
+ tags: [],
78
+ },
79
+ {
80
+ hostname: "ingest.timestream-fips.{region}.c2s.ic.gov",
81
+ tags: ["fips"],
82
+ },
83
+ ],
41
84
  },
42
85
  "aws-iso-b": {
43
86
  regions: ["us-isob-east-1"],
44
87
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
45
- hostname: "ingest.timestream.{region}.sc2s.sgov.gov",
88
+ variants: [
89
+ {
90
+ hostname: "ingest.timestream.{region}.sc2s.sgov.gov",
91
+ tags: [],
92
+ },
93
+ {
94
+ hostname: "ingest.timestream-fips.{region}.sc2s.sgov.gov",
95
+ tags: ["fips"],
96
+ },
97
+ ],
46
98
  },
47
99
  "aws-us-gov": {
48
100
  regions: ["us-gov-east-1", "us-gov-west-1"],
49
101
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
50
- hostname: "ingest.timestream.{region}.amazonaws.com",
102
+ variants: [
103
+ {
104
+ hostname: "ingest.timestream.{region}.amazonaws.com",
105
+ tags: [],
106
+ },
107
+ {
108
+ hostname: "ingest.timestream-fips.{region}.amazonaws.com",
109
+ tags: ["fips"],
110
+ },
111
+ {
112
+ hostname: "ingest.timestream-fips.{region}.api.aws",
113
+ tags: ["dualstack", "fips"],
114
+ },
115
+ {
116
+ hostname: "ingest.timestream.{region}.api.aws",
117
+ tags: ["dualstack"],
118
+ },
119
+ ],
51
120
  },
52
121
  };
53
122
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {