@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.
- package/CHANGELOG.md +41 -0
- package/README.md +8 -1
- package/dist-cjs/commands/WriteRecordsCommand.js +1 -1
- package/dist-cjs/endpoints.js +74 -5
- package/dist-cjs/models/models_0.js +45 -1
- package/dist-cjs/protocols/Aws_json1_0.js +101 -1
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/commands/WriteRecordsCommand.js +2 -2
- package/dist-es/endpoints.js +74 -5
- package/dist-es/models/models_0.js +31 -0
- package/dist-es/protocols/Aws_json1_0.js +91 -11
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/TimestreamWrite.d.ts +83 -21
- package/dist-types/TimestreamWriteClient.d.ts +15 -1
- package/dist-types/commands/CreateDatabaseCommand.d.ts +7 -4
- package/dist-types/commands/CreateTableCommand.d.ts +6 -5
- package/dist-types/commands/DeleteDatabaseCommand.d.ts +8 -3
- package/dist-types/commands/DeleteTableCommand.d.ts +6 -2
- package/dist-types/commands/DescribeDatabaseCommand.d.ts +3 -2
- package/dist-types/commands/DescribeEndpointsCommand.d.ts +10 -5
- package/dist-types/commands/DescribeTableCommand.d.ts +3 -2
- package/dist-types/commands/ListDatabasesCommand.d.ts +3 -2
- package/dist-types/commands/ListTablesCommand.d.ts +3 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDatabaseCommand.d.ts +3 -1
- package/dist-types/commands/UpdateTableCommand.d.ts +3 -2
- package/dist-types/commands/WriteRecordsCommand.d.ts +35 -5
- package/dist-types/models/models_0.d.ts +207 -18
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/TimestreamWriteClient.d.ts +4 -0
- package/dist-types/ts3.4/commands/WriteRecordsCommand.d.ts +2 -2
- package/dist-types/ts3.4/models/models_0.d.ts +84 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +24 -24
|
@@ -43,6 +43,23 @@ export var ValidationException;
|
|
|
43
43
|
(function (ValidationException) {
|
|
44
44
|
ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
45
45
|
})(ValidationException || (ValidationException = {}));
|
|
46
|
+
export var S3EncryptionOption;
|
|
47
|
+
(function (S3EncryptionOption) {
|
|
48
|
+
S3EncryptionOption["SSE_KMS"] = "SSE_KMS";
|
|
49
|
+
S3EncryptionOption["SSE_S3"] = "SSE_S3";
|
|
50
|
+
})(S3EncryptionOption || (S3EncryptionOption = {}));
|
|
51
|
+
export var S3Configuration;
|
|
52
|
+
(function (S3Configuration) {
|
|
53
|
+
S3Configuration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
54
|
+
})(S3Configuration || (S3Configuration = {}));
|
|
55
|
+
export var MagneticStoreRejectedDataLocation;
|
|
56
|
+
(function (MagneticStoreRejectedDataLocation) {
|
|
57
|
+
MagneticStoreRejectedDataLocation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
58
|
+
})(MagneticStoreRejectedDataLocation || (MagneticStoreRejectedDataLocation = {}));
|
|
59
|
+
export var MagneticStoreWriteProperties;
|
|
60
|
+
(function (MagneticStoreWriteProperties) {
|
|
61
|
+
MagneticStoreWriteProperties.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
62
|
+
})(MagneticStoreWriteProperties || (MagneticStoreWriteProperties = {}));
|
|
46
63
|
export var RetentionProperties;
|
|
47
64
|
(function (RetentionProperties) {
|
|
48
65
|
RetentionProperties.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -141,8 +158,14 @@ export var MeasureValueType;
|
|
|
141
158
|
MeasureValueType["BIGINT"] = "BIGINT";
|
|
142
159
|
MeasureValueType["BOOLEAN"] = "BOOLEAN";
|
|
143
160
|
MeasureValueType["DOUBLE"] = "DOUBLE";
|
|
161
|
+
MeasureValueType["MULTI"] = "MULTI";
|
|
162
|
+
MeasureValueType["TIMESTAMP"] = "TIMESTAMP";
|
|
144
163
|
MeasureValueType["VARCHAR"] = "VARCHAR";
|
|
145
164
|
})(MeasureValueType || (MeasureValueType = {}));
|
|
165
|
+
export var MeasureValue;
|
|
166
|
+
(function (MeasureValue) {
|
|
167
|
+
MeasureValue.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
168
|
+
})(MeasureValue || (MeasureValue = {}));
|
|
146
169
|
export var TimeUnit;
|
|
147
170
|
(function (TimeUnit) {
|
|
148
171
|
TimeUnit["MICROSECONDS"] = "MICROSECONDS";
|
|
@@ -154,6 +177,10 @@ export var _Record;
|
|
|
154
177
|
(function (_Record) {
|
|
155
178
|
_Record.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
156
179
|
})(_Record || (_Record = {}));
|
|
180
|
+
export var RecordsIngested;
|
|
181
|
+
(function (RecordsIngested) {
|
|
182
|
+
RecordsIngested.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
183
|
+
})(RecordsIngested || (RecordsIngested = {}));
|
|
157
184
|
export var RejectedRecord;
|
|
158
185
|
(function (RejectedRecord) {
|
|
159
186
|
RejectedRecord.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -198,3 +225,7 @@ export var WriteRecordsRequest;
|
|
|
198
225
|
(function (WriteRecordsRequest) {
|
|
199
226
|
WriteRecordsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
200
227
|
})(WriteRecordsRequest || (WriteRecordsRequest = {}));
|
|
228
|
+
export var WriteRecordsResponse;
|
|
229
|
+
(function (WriteRecordsResponse) {
|
|
230
|
+
WriteRecordsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
231
|
+
})(WriteRecordsResponse || (WriteRecordsResponse = {}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
export var serializeAws_json1_0CreateDatabaseCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
5
|
var headers, body;
|
|
6
6
|
return __generator(this, function (_a) {
|
|
@@ -1479,19 +1479,19 @@ var deserializeAws_json1_0UpdateTableCommandError = function (output, context) {
|
|
|
1479
1479
|
});
|
|
1480
1480
|
}); };
|
|
1481
1481
|
export var deserializeAws_json1_0WriteRecordsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1482
|
-
var response;
|
|
1482
|
+
var data, contents, response;
|
|
1483
1483
|
return __generator(this, function (_a) {
|
|
1484
1484
|
switch (_a.label) {
|
|
1485
1485
|
case 0:
|
|
1486
1486
|
if (output.statusCode >= 300) {
|
|
1487
1487
|
return [2, deserializeAws_json1_0WriteRecordsCommandError(output, context)];
|
|
1488
1488
|
}
|
|
1489
|
-
return [4,
|
|
1489
|
+
return [4, parseBody(output.body, context)];
|
|
1490
1490
|
case 1:
|
|
1491
|
-
_a.sent();
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
};
|
|
1491
|
+
data = _a.sent();
|
|
1492
|
+
contents = {};
|
|
1493
|
+
contents = deserializeAws_json1_0WriteRecordsResponse(data, context);
|
|
1494
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1495
1495
|
return [2, Promise.resolve(response)];
|
|
1496
1496
|
}
|
|
1497
1497
|
});
|
|
@@ -1667,7 +1667,10 @@ var serializeAws_json1_0CreateDatabaseRequest = function (input, context) {
|
|
|
1667
1667
|
return __assign(__assign(__assign({}, (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
1668
1668
|
};
|
|
1669
1669
|
var serializeAws_json1_0CreateTableRequest = function (input, context) {
|
|
1670
|
-
return __assign(__assign(__assign(__assign({}, (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName })), (input.
|
|
1670
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName })), (input.MagneticStoreWriteProperties !== undefined &&
|
|
1671
|
+
input.MagneticStoreWriteProperties !== null && {
|
|
1672
|
+
MagneticStoreWriteProperties: serializeAws_json1_0MagneticStoreWriteProperties(input.MagneticStoreWriteProperties, context),
|
|
1673
|
+
})), (input.RetentionProperties !== undefined &&
|
|
1671
1674
|
input.RetentionProperties !== null && {
|
|
1672
1675
|
RetentionProperties: serializeAws_json1_0RetentionProperties(input.RetentionProperties, context),
|
|
1673
1676
|
})), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
@@ -1710,10 +1713,39 @@ var serializeAws_json1_0ListTablesRequest = function (input, context) {
|
|
|
1710
1713
|
var serializeAws_json1_0ListTagsForResourceRequest = function (input, context) {
|
|
1711
1714
|
return __assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }));
|
|
1712
1715
|
};
|
|
1716
|
+
var serializeAws_json1_0MagneticStoreRejectedDataLocation = function (input, context) {
|
|
1717
|
+
return __assign({}, (input.S3Configuration !== undefined &&
|
|
1718
|
+
input.S3Configuration !== null && {
|
|
1719
|
+
S3Configuration: serializeAws_json1_0S3Configuration(input.S3Configuration, context),
|
|
1720
|
+
}));
|
|
1721
|
+
};
|
|
1722
|
+
var serializeAws_json1_0MagneticStoreWriteProperties = function (input, context) {
|
|
1723
|
+
return __assign(__assign({}, (input.EnableMagneticStoreWrites !== undefined &&
|
|
1724
|
+
input.EnableMagneticStoreWrites !== null && { EnableMagneticStoreWrites: input.EnableMagneticStoreWrites })), (input.MagneticStoreRejectedDataLocation !== undefined &&
|
|
1725
|
+
input.MagneticStoreRejectedDataLocation !== null && {
|
|
1726
|
+
MagneticStoreRejectedDataLocation: serializeAws_json1_0MagneticStoreRejectedDataLocation(input.MagneticStoreRejectedDataLocation, context),
|
|
1727
|
+
}));
|
|
1728
|
+
};
|
|
1729
|
+
var serializeAws_json1_0MeasureValue = function (input, context) {
|
|
1730
|
+
return __assign(__assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
|
|
1731
|
+
};
|
|
1732
|
+
var serializeAws_json1_0MeasureValues = function (input, context) {
|
|
1733
|
+
return input
|
|
1734
|
+
.filter(function (e) { return e != null; })
|
|
1735
|
+
.map(function (entry) {
|
|
1736
|
+
if (entry === null) {
|
|
1737
|
+
return null;
|
|
1738
|
+
}
|
|
1739
|
+
return serializeAws_json1_0MeasureValue(entry, context);
|
|
1740
|
+
});
|
|
1741
|
+
};
|
|
1713
1742
|
var serializeAws_json1_0_Record = function (input, context) {
|
|
1714
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Dimensions !== undefined &&
|
|
1743
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Dimensions !== undefined &&
|
|
1715
1744
|
input.Dimensions !== null && { Dimensions: serializeAws_json1_0Dimensions(input.Dimensions, context) })), (input.MeasureName !== undefined && input.MeasureName !== null && { MeasureName: input.MeasureName })), (input.MeasureValue !== undefined && input.MeasureValue !== null && { MeasureValue: input.MeasureValue })), (input.MeasureValueType !== undefined &&
|
|
1716
|
-
input.MeasureValueType !== null && { MeasureValueType: input.MeasureValueType })), (input.
|
|
1745
|
+
input.MeasureValueType !== null && { MeasureValueType: input.MeasureValueType })), (input.MeasureValues !== undefined &&
|
|
1746
|
+
input.MeasureValues !== null && {
|
|
1747
|
+
MeasureValues: serializeAws_json1_0MeasureValues(input.MeasureValues, context),
|
|
1748
|
+
})), (input.Time !== undefined && input.Time !== null && { Time: input.Time })), (input.TimeUnit !== undefined && input.TimeUnit !== null && { TimeUnit: input.TimeUnit })), (input.Version !== undefined && input.Version !== null && { Version: input.Version }));
|
|
1717
1749
|
};
|
|
1718
1750
|
var serializeAws_json1_0Records = function (input, context) {
|
|
1719
1751
|
return input
|
|
@@ -1734,6 +1766,11 @@ var serializeAws_json1_0RetentionProperties = function (input, context) {
|
|
|
1734
1766
|
MemoryStoreRetentionPeriodInHours: input.MemoryStoreRetentionPeriodInHours,
|
|
1735
1767
|
}));
|
|
1736
1768
|
};
|
|
1769
|
+
var serializeAws_json1_0S3Configuration = function (input, context) {
|
|
1770
|
+
return __assign(__assign(__assign(__assign({}, (input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName })), (input.EncryptionOption !== undefined &&
|
|
1771
|
+
input.EncryptionOption !== null && { EncryptionOption: input.EncryptionOption })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId })), (input.ObjectKeyPrefix !== undefined &&
|
|
1772
|
+
input.ObjectKeyPrefix !== null && { ObjectKeyPrefix: input.ObjectKeyPrefix }));
|
|
1773
|
+
};
|
|
1737
1774
|
var serializeAws_json1_0Tag = function (input, context) {
|
|
1738
1775
|
return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
|
|
1739
1776
|
};
|
|
@@ -1768,7 +1805,10 @@ var serializeAws_json1_0UpdateDatabaseRequest = function (input, context) {
|
|
|
1768
1805
|
return __assign(__assign({}, (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }));
|
|
1769
1806
|
};
|
|
1770
1807
|
var serializeAws_json1_0UpdateTableRequest = function (input, context) {
|
|
1771
|
-
return __assign(__assign(__assign({}, (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName })), (input.
|
|
1808
|
+
return __assign(__assign(__assign(__assign({}, (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName })), (input.MagneticStoreWriteProperties !== undefined &&
|
|
1809
|
+
input.MagneticStoreWriteProperties !== null && {
|
|
1810
|
+
MagneticStoreWriteProperties: serializeAws_json1_0MagneticStoreWriteProperties(input.MagneticStoreWriteProperties, context),
|
|
1811
|
+
})), (input.RetentionProperties !== undefined &&
|
|
1772
1812
|
input.RetentionProperties !== null && {
|
|
1773
1813
|
RetentionProperties: serializeAws_json1_0RetentionProperties(input.RetentionProperties, context),
|
|
1774
1814
|
})), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
|
|
@@ -1898,6 +1938,28 @@ var deserializeAws_json1_0ListTagsForResourceResponse = function (output, contex
|
|
|
1898
1938
|
: undefined,
|
|
1899
1939
|
};
|
|
1900
1940
|
};
|
|
1941
|
+
var deserializeAws_json1_0MagneticStoreRejectedDataLocation = function (output, context) {
|
|
1942
|
+
return {
|
|
1943
|
+
S3Configuration: output.S3Configuration !== undefined && output.S3Configuration !== null
|
|
1944
|
+
? deserializeAws_json1_0S3Configuration(output.S3Configuration, context)
|
|
1945
|
+
: undefined,
|
|
1946
|
+
};
|
|
1947
|
+
};
|
|
1948
|
+
var deserializeAws_json1_0MagneticStoreWriteProperties = function (output, context) {
|
|
1949
|
+
return {
|
|
1950
|
+
EnableMagneticStoreWrites: __expectBoolean(output.EnableMagneticStoreWrites),
|
|
1951
|
+
MagneticStoreRejectedDataLocation: output.MagneticStoreRejectedDataLocation !== undefined && output.MagneticStoreRejectedDataLocation !== null
|
|
1952
|
+
? deserializeAws_json1_0MagneticStoreRejectedDataLocation(output.MagneticStoreRejectedDataLocation, context)
|
|
1953
|
+
: undefined,
|
|
1954
|
+
};
|
|
1955
|
+
};
|
|
1956
|
+
var deserializeAws_json1_0RecordsIngested = function (output, context) {
|
|
1957
|
+
return {
|
|
1958
|
+
MagneticStore: __expectInt32(output.MagneticStore),
|
|
1959
|
+
MemoryStore: __expectInt32(output.MemoryStore),
|
|
1960
|
+
Total: __expectInt32(output.Total),
|
|
1961
|
+
};
|
|
1962
|
+
};
|
|
1901
1963
|
var deserializeAws_json1_0RejectedRecord = function (output, context) {
|
|
1902
1964
|
return {
|
|
1903
1965
|
ExistingVersion: __expectLong(output.ExistingVersion),
|
|
@@ -1934,6 +1996,14 @@ var deserializeAws_json1_0RetentionProperties = function (output, context) {
|
|
|
1934
1996
|
MemoryStoreRetentionPeriodInHours: __expectLong(output.MemoryStoreRetentionPeriodInHours),
|
|
1935
1997
|
};
|
|
1936
1998
|
};
|
|
1999
|
+
var deserializeAws_json1_0S3Configuration = function (output, context) {
|
|
2000
|
+
return {
|
|
2001
|
+
BucketName: __expectString(output.BucketName),
|
|
2002
|
+
EncryptionOption: __expectString(output.EncryptionOption),
|
|
2003
|
+
KmsKeyId: __expectString(output.KmsKeyId),
|
|
2004
|
+
ObjectKeyPrefix: __expectString(output.ObjectKeyPrefix),
|
|
2005
|
+
};
|
|
2006
|
+
};
|
|
1937
2007
|
var deserializeAws_json1_0ServiceQuotaExceededException = function (output, context) {
|
|
1938
2008
|
return {
|
|
1939
2009
|
Message: __expectString(output.Message),
|
|
@@ -1949,6 +2019,9 @@ var deserializeAws_json1_0Table = function (output, context) {
|
|
|
1949
2019
|
LastUpdatedTime: output.LastUpdatedTime !== undefined && output.LastUpdatedTime !== null
|
|
1950
2020
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
|
|
1951
2021
|
: undefined,
|
|
2022
|
+
MagneticStoreWriteProperties: output.MagneticStoreWriteProperties !== undefined && output.MagneticStoreWriteProperties !== null
|
|
2023
|
+
? deserializeAws_json1_0MagneticStoreWriteProperties(output.MagneticStoreWriteProperties, context)
|
|
2024
|
+
: undefined,
|
|
1952
2025
|
RetentionProperties: output.RetentionProperties !== undefined && output.RetentionProperties !== null
|
|
1953
2026
|
? deserializeAws_json1_0RetentionProperties(output.RetentionProperties, context)
|
|
1954
2027
|
: undefined,
|
|
@@ -2012,6 +2085,13 @@ var deserializeAws_json1_0ValidationException = function (output, context) {
|
|
|
2012
2085
|
Message: __expectString(output.Message),
|
|
2013
2086
|
};
|
|
2014
2087
|
};
|
|
2088
|
+
var deserializeAws_json1_0WriteRecordsResponse = function (output, context) {
|
|
2089
|
+
return {
|
|
2090
|
+
RecordsIngested: output.RecordsIngested !== undefined && output.RecordsIngested !== null
|
|
2091
|
+
? deserializeAws_json1_0RecordsIngested(output.RecordsIngested, context)
|
|
2092
|
+
: undefined,
|
|
2093
|
+
};
|
|
2094
|
+
};
|
|
2015
2095
|
var deserializeMetadata = function (output) {
|
|
2016
2096
|
var _a;
|
|
2017
2097
|
return ({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
4
5
|
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
|
10
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
11
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
13
|
export var getRuntimeConfig = function (config) {
|
|
13
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
14
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
14
15
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
15
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : (function () { return Promise.resolve(undefined); }), maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : DEFAULT_MAX_ATTEMPTS, region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : invalidProvider("Region is missing"), requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new FetchHttpHandler(), retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : Sha256, streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : streamCollector,
|
|
16
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : (function () { return Promise.resolve(undefined); }), maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : DEFAULT_MAX_ATTEMPTS, region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : invalidProvider("Region is missing"), requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new FetchHttpHandler(), retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : Sha256, streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : streamCollector, useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : fromUtf8, utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : toUtf8 });
|
|
16
17
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
|
-
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
4
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
7
|
import { NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS } from "@aws-sdk/middleware-endpoint-discovery";
|
|
@@ -15,8 +15,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
|
15
15
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
16
16
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
17
17
|
export var getRuntimeConfig = function (config) {
|
|
18
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
18
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
19
19
|
emitWarningIfUnsupportedVersion(process.version);
|
|
20
20
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
21
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS), maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new NodeHttpHandler(), retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : Hash.bind(null, "sha256"), streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : streamCollector,
|
|
21
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS), maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new NodeHttpHandler(), retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : Hash.bind(null, "sha256"), streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : streamCollector, useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : fromUtf8, utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : toUtf8 });
|
|
22
22
|
};
|
|
@@ -16,26 +16,36 @@ import { UpdateTableCommandInput, UpdateTableCommandOutput } from "./commands/Up
|
|
|
16
16
|
import { WriteRecordsCommandInput, WriteRecordsCommandOutput } from "./commands/WriteRecordsCommand";
|
|
17
17
|
import { TimestreamWriteClient } from "./TimestreamWriteClient";
|
|
18
18
|
/**
|
|
19
|
-
* <
|
|
19
|
+
* <fullname>Amazon Timestream Write</fullname>
|
|
20
|
+
* <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.
|
|
21
|
+
* With Timestream, you can easily store and analyze IoT sensor data to derive insights from your IoT applications.
|
|
22
|
+
* You can analyze industrial telemetry to streamline equipment management and maintenance.
|
|
23
|
+
* You can also store and analyze log data and metrics to improve the performance and availability of your applications.
|
|
24
|
+
* Timestream is built from the ground up to effectively ingest, process,
|
|
25
|
+
* 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>
|
|
20
26
|
*/
|
|
21
27
|
export declare class TimestreamWrite extends TimestreamWriteClient {
|
|
22
28
|
/**
|
|
23
|
-
* <p>Creates a new Timestream database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS
|
|
24
|
-
*
|
|
25
|
-
*
|
|
29
|
+
* <p>Creates a new Timestream database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS
|
|
30
|
+
* key located in your account.
|
|
31
|
+
* Refer to <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services managed KMS keys</a> for more info.
|
|
32
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>.
|
|
33
|
+
* See
|
|
34
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.create-db.html">code sample</a> for details.
|
|
26
35
|
* </p>
|
|
27
36
|
*/
|
|
28
37
|
createDatabase(args: CreateDatabaseCommandInput, options?: __HttpHandlerOptions): Promise<CreateDatabaseCommandOutput>;
|
|
29
38
|
createDatabase(args: CreateDatabaseCommandInput, cb: (err: any, data?: CreateDatabaseCommandOutput) => void): void;
|
|
30
39
|
createDatabase(args: CreateDatabaseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDatabaseCommandOutput) => void): void;
|
|
31
40
|
/**
|
|
32
|
-
* <p>The CreateTable operation adds a new table to an existing database in your account. In an
|
|
41
|
+
* <p>The CreateTable operation adds a new table to an existing database in your account. In an Amazon Web Services account,
|
|
33
42
|
* table names must be at least unique within each Region if they are in the same database.
|
|
34
|
-
* You may have identical table names in the same Region if the tables are in
|
|
43
|
+
* You may have identical table names in the same Region if the tables are in separate databases.
|
|
35
44
|
* While creating the table, you must specify the table name, database name,
|
|
36
45
|
* and the retention properties.
|
|
37
|
-
*
|
|
38
|
-
*
|
|
46
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>.
|
|
47
|
+
* See
|
|
48
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.create-table.html">code sample</a> for details.
|
|
39
49
|
* </p>
|
|
40
50
|
*/
|
|
41
51
|
createTable(args: CreateTableCommandInput, options?: __HttpHandlerOptions): Promise<CreateTableCommandOutput>;
|
|
@@ -46,11 +56,16 @@ export declare class TimestreamWrite extends TimestreamWriteClient {
|
|
|
46
56
|
* After a database is deleted, the time series data from its tables cannot be recovered.</i>
|
|
47
57
|
* </p>
|
|
48
58
|
*
|
|
49
|
-
* <
|
|
59
|
+
* <note>
|
|
60
|
+
* <p>All tables in the database must be deleted first, or a ValidationException error will be thrown.
|
|
50
61
|
* </p>
|
|
51
62
|
*
|
|
52
|
-
*
|
|
63
|
+
* <p>Due to the nature of distributed retries,
|
|
53
64
|
* the operation can return either success or a ResourceNotFoundException. Clients should consider them equivalent.</p>
|
|
65
|
+
* </note>
|
|
66
|
+
*
|
|
67
|
+
* <p>See
|
|
68
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.delete-db.html">code sample</a> for details.</p>
|
|
54
69
|
*/
|
|
55
70
|
deleteDatabase(args: DeleteDatabaseCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDatabaseCommandOutput>;
|
|
56
71
|
deleteDatabase(args: DeleteDatabaseCommandInput, cb: (err: any, data?: DeleteDatabaseCommandOutput) => void): void;
|
|
@@ -60,8 +75,12 @@ export declare class TimestreamWrite extends TimestreamWriteClient {
|
|
|
60
75
|
* After a Timestream database table is deleted, the time series data stored in
|
|
61
76
|
* the table cannot be recovered.
|
|
62
77
|
* </p>
|
|
63
|
-
* <
|
|
78
|
+
* <note>
|
|
79
|
+
* <p>Due to the nature of distributed retries,
|
|
64
80
|
* the operation can return either success or a ResourceNotFoundException. Clients should consider them equivalent.</p>
|
|
81
|
+
* </note>
|
|
82
|
+
* <p>See
|
|
83
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.delete-table.html">code sample</a> for details.</p>
|
|
65
84
|
*/
|
|
66
85
|
deleteTable(args: DeleteTableCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTableCommandOutput>;
|
|
67
86
|
deleteTable(args: DeleteTableCommandInput, cb: (err: any, data?: DeleteTableCommandOutput) => void): void;
|
|
@@ -69,26 +88,32 @@ export declare class TimestreamWrite extends TimestreamWriteClient {
|
|
|
69
88
|
/**
|
|
70
89
|
* <p>Returns information about the database, including the database name, time that the database was created,
|
|
71
90
|
* and the total number of tables found within the database.
|
|
72
|
-
*
|
|
91
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>. See
|
|
92
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.describe-db.html">code sample</a> for details.</p>
|
|
73
93
|
*/
|
|
74
94
|
describeDatabase(args: DescribeDatabaseCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDatabaseCommandOutput>;
|
|
75
95
|
describeDatabase(args: DescribeDatabaseCommandInput, cb: (err: any, data?: DescribeDatabaseCommandOutput) => void): void;
|
|
76
96
|
describeDatabase(args: DescribeDatabaseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDatabaseCommandOutput) => void): void;
|
|
77
97
|
/**
|
|
78
|
-
* <p>DescribeEndpoints returns a list of available endpoints to make Timestream API calls against.
|
|
79
|
-
*
|
|
98
|
+
* <p>DescribeEndpoints returns a list of available endpoints to make Timestream API calls against.
|
|
99
|
+
* This API is available through both Write and Query.</p>
|
|
100
|
+
* <p>Because the Timestream SDKs are designed to transparently work with the service’s architecture,
|
|
80
101
|
* including the management and mapping of the service endpoints,
|
|
81
102
|
* <i>it is not recommended that you use this API unless</i>:</p>
|
|
82
103
|
* <ul>
|
|
83
104
|
* <li>
|
|
105
|
+
* <p>You are using <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/VPCEndpoints">VPC endpoints (Amazon Web Services PrivateLink) with Timestream</a>
|
|
106
|
+
* </p>
|
|
107
|
+
* </li>
|
|
108
|
+
* <li>
|
|
84
109
|
* <p>Your application uses a programming language that does not yet have SDK support</p>
|
|
85
110
|
* </li>
|
|
86
111
|
* <li>
|
|
87
112
|
* <p>You require better control over the client-side implementation</p>
|
|
88
113
|
* </li>
|
|
89
114
|
* </ul>
|
|
90
|
-
* <p>For detailed information on how to use DescribeEndpoints,
|
|
91
|
-
* see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/Using-API.endpoint-discovery
|
|
115
|
+
* <p>For detailed information on how and when to use and implement DescribeEndpoints,
|
|
116
|
+
* see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/Using.API.html#Using-API.endpoint-discovery">The Endpoint Discovery Pattern</a>.</p>
|
|
92
117
|
*/
|
|
93
118
|
describeEndpoints(args: DescribeEndpointsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEndpointsCommandOutput>;
|
|
94
119
|
describeEndpoints(args: DescribeEndpointsCommandInput, cb: (err: any, data?: DescribeEndpointsCommandOutput) => void): void;
|
|
@@ -96,7 +121,8 @@ export declare class TimestreamWrite extends TimestreamWriteClient {
|
|
|
96
121
|
/**
|
|
97
122
|
* <p>Returns information about the table, including the table name, database name,
|
|
98
123
|
* retention duration of the memory store and the magnetic store.
|
|
99
|
-
*
|
|
124
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>. See
|
|
125
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.describe-table.html">code sample</a> for details.
|
|
100
126
|
* </p>
|
|
101
127
|
*/
|
|
102
128
|
describeTable(args: DescribeTableCommandInput, options?: __HttpHandlerOptions): Promise<DescribeTableCommandOutput>;
|
|
@@ -104,7 +130,8 @@ export declare class TimestreamWrite extends TimestreamWriteClient {
|
|
|
104
130
|
describeTable(args: DescribeTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeTableCommandOutput) => void): void;
|
|
105
131
|
/**
|
|
106
132
|
* <p>Returns a list of your Timestream databases.
|
|
107
|
-
*
|
|
133
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>. See
|
|
134
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.list-db.html">code sample</a> for details.
|
|
108
135
|
* </p>
|
|
109
136
|
*/
|
|
110
137
|
listDatabases(args: ListDatabasesCommandInput, options?: __HttpHandlerOptions): Promise<ListDatabasesCommandOutput>;
|
|
@@ -112,6 +139,8 @@ export declare class TimestreamWrite extends TimestreamWriteClient {
|
|
|
112
139
|
listDatabases(args: ListDatabasesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDatabasesCommandOutput) => void): void;
|
|
113
140
|
/**
|
|
114
141
|
* <p>A list of tables, along with the name, status and retention properties of each table.
|
|
142
|
+
* See
|
|
143
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.list-table.html">code sample</a> for details.
|
|
115
144
|
* </p>
|
|
116
145
|
*/
|
|
117
146
|
listTables(args: ListTablesCommandInput, options?: __HttpHandlerOptions): Promise<ListTablesCommandOutput>;
|
|
@@ -149,6 +178,8 @@ export declare class TimestreamWrite extends TimestreamWriteClient {
|
|
|
149
178
|
* you must specify the database name and the identifier of the new KMS key to be used (<code>KmsKeyId</code>).
|
|
150
179
|
* If there are any concurrent <code>UpdateDatabase</code> requests, first writer wins.
|
|
151
180
|
* </p>
|
|
181
|
+
* <p>See
|
|
182
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.update-db.html">code sample</a> for details.</p>
|
|
152
183
|
*/
|
|
153
184
|
updateDatabase(args: UpdateDatabaseCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDatabaseCommandOutput>;
|
|
154
185
|
updateDatabase(args: UpdateDatabaseCommandInput, cb: (err: any, data?: UpdateDatabaseCommandOutput) => void): void;
|
|
@@ -160,7 +191,8 @@ export declare class TimestreamWrite extends TimestreamWriteClient {
|
|
|
160
191
|
* the memory store will be capable of holding 24 hours of data, but will
|
|
161
192
|
* be populated with 24 hours of data 22 hours after this change was made.
|
|
162
193
|
* Timestream does not retrieve data from the magnetic store to populate the memory store. </p>
|
|
163
|
-
* <p>
|
|
194
|
+
* <p>See
|
|
195
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.update-table.html">code sample</a> for details.</p>
|
|
164
196
|
*/
|
|
165
197
|
updateTable(args: UpdateTableCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTableCommandOutput>;
|
|
166
198
|
updateTable(args: UpdateTableCommandInput, cb: (err: any, data?: UpdateTableCommandOutput) => void): void;
|
|
@@ -177,9 +209,39 @@ export declare class TimestreamWrite extends TimestreamWriteClient {
|
|
|
177
209
|
* the query results might not reflect the results of a recently completed write
|
|
178
210
|
* operation. The results may also include some stale data. If you repeat the
|
|
179
211
|
* query request after a short time, the results should return the latest data.
|
|
180
|
-
*
|
|
181
|
-
* see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Access Management</a> in the Timestream Developer Guide.
|
|
212
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>.
|
|
182
213
|
* </p>
|
|
214
|
+
*
|
|
215
|
+
* <p>See
|
|
216
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.write.html">code sample</a> for details.</p>
|
|
217
|
+
*
|
|
218
|
+
* <p>
|
|
219
|
+
* <b>Upserts</b>
|
|
220
|
+
* </p>
|
|
221
|
+
*
|
|
222
|
+
* <p>You can use the <code>Version</code> parameter in a <code>WriteRecords</code> request to update data points.
|
|
223
|
+
* Timestream tracks a version number with each record. <code>Version</code> defaults to <code>1</code> when not specified for the record in the request.
|
|
224
|
+
* Timestream will update an existing record’s measure value along with its <code>Version</code> upon receiving a write request with a higher
|
|
225
|
+
* <code>Version</code> number for that record.
|
|
226
|
+
* Upon receiving an update request where the measure value is the same as that of the existing record,
|
|
227
|
+
* Timestream still updates <code>Version</code>, if it is greater than the existing value of <code>Version</code>.
|
|
228
|
+
* You can update a data point as many times as desired, as long as the value of <code>Version</code> continuously increases.
|
|
229
|
+
* </p>
|
|
230
|
+
* <p>
|
|
231
|
+
* For example, suppose you write a new record without indicating <code>Version</code> in the request.
|
|
232
|
+
* Timestream will store this record, and set <code>Version</code> to <code>1</code>.
|
|
233
|
+
* Now, suppose you try to update this record with a <code>WriteRecords</code> request of the same record with a different measure value but,
|
|
234
|
+
* like before, do not provide <code>Version</code>.
|
|
235
|
+
* In this case, Timestream will reject this update with a <code>RejectedRecordsException</code> since the updated record’s version is not greater than the existing value of Version.
|
|
236
|
+
* However, if you were to resend the update request with <code>Version</code> set to <code>2</code>,
|
|
237
|
+
* Timestream would then succeed in updating the record’s value,
|
|
238
|
+
* and the <code>Version</code> would be set to <code>2</code>.
|
|
239
|
+
* Next, suppose you sent a <code>WriteRecords</code> request with this same record and an identical measure value,
|
|
240
|
+
* but with <code>Version</code> set to <code>3</code>.
|
|
241
|
+
* In this case, Timestream would only update <code>Version</code> to <code>3</code>.
|
|
242
|
+
* Any further updates would need to send a version number greater than <code>3</code>,
|
|
243
|
+
* or the update requests would receive a <code>RejectedRecordsException</code>.
|
|
244
|
+
* </p>
|
|
183
245
|
*/
|
|
184
246
|
writeRecords(args: WriteRecordsCommandInput, options?: __HttpHandlerOptions): Promise<WriteRecordsCommandOutput>;
|
|
185
247
|
writeRecords(args: WriteRecordsCommandInput, cb: (err: any, data?: WriteRecordsCommandOutput) => void): void;
|
|
@@ -92,6 +92,14 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
92
92
|
* Optional logger for logging debug/info/warn/error.
|
|
93
93
|
*/
|
|
94
94
|
logger?: __Logger;
|
|
95
|
+
/**
|
|
96
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
97
|
+
*/
|
|
98
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
99
|
+
/**
|
|
100
|
+
* Enables FIPS compatible endpoints.
|
|
101
|
+
*/
|
|
102
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
95
103
|
/**
|
|
96
104
|
* Unique service identifier.
|
|
97
105
|
* @internal
|
|
@@ -136,7 +144,13 @@ declare type TimestreamWriteClientResolvedConfigType = __SmithyResolvedConfigura
|
|
|
136
144
|
export interface TimestreamWriteClientResolvedConfig extends TimestreamWriteClientResolvedConfigType {
|
|
137
145
|
}
|
|
138
146
|
/**
|
|
139
|
-
* <
|
|
147
|
+
* <fullname>Amazon Timestream Write</fullname>
|
|
148
|
+
* <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.
|
|
149
|
+
* With Timestream, you can easily store and analyze IoT sensor data to derive insights from your IoT applications.
|
|
150
|
+
* You can analyze industrial telemetry to streamline equipment management and maintenance.
|
|
151
|
+
* You can also store and analyze log data and metrics to improve the performance and availability of your applications.
|
|
152
|
+
* Timestream is built from the ground up to effectively ingest, process,
|
|
153
|
+
* 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>
|
|
140
154
|
*/
|
|
141
155
|
export declare class TimestreamWriteClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, TimestreamWriteClientResolvedConfig> {
|
|
142
156
|
/**
|
|
@@ -7,9 +7,12 @@ export interface CreateDatabaseCommandInput extends CreateDatabaseRequest {
|
|
|
7
7
|
export interface CreateDatabaseCommandOutput extends CreateDatabaseResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Creates a new Timestream database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* <p>Creates a new Timestream database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS
|
|
11
|
+
* key located in your account.
|
|
12
|
+
* Refer to <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services managed KMS keys</a> for more info.
|
|
13
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>.
|
|
14
|
+
* See
|
|
15
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.create-db.html">code sample</a> for details.
|
|
13
16
|
* </p>
|
|
14
17
|
* @example
|
|
15
18
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -23,7 +26,7 @@ export interface CreateDatabaseCommandOutput extends CreateDatabaseResponse, __M
|
|
|
23
26
|
*
|
|
24
27
|
* @see {@link CreateDatabaseCommandInput} for command's `input` shape.
|
|
25
28
|
* @see {@link CreateDatabaseCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link TimestreamWriteClientResolvedConfig | config} for
|
|
29
|
+
* @see {@link TimestreamWriteClientResolvedConfig | config} for TimestreamWriteClient's `config` shape.
|
|
27
30
|
*
|
|
28
31
|
*/
|
|
29
32
|
export declare class CreateDatabaseCommand extends $Command<CreateDatabaseCommandInput, CreateDatabaseCommandOutput, TimestreamWriteClientResolvedConfig> {
|
|
@@ -7,13 +7,14 @@ export interface CreateTableCommandInput extends CreateTableRequest {
|
|
|
7
7
|
export interface CreateTableCommandOutput extends CreateTableResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>The CreateTable operation adds a new table to an existing database in your account. In an
|
|
10
|
+
* <p>The CreateTable operation adds a new table to an existing database in your account. In an Amazon Web Services account,
|
|
11
11
|
* table names must be at least unique within each Region if they are in the same database.
|
|
12
|
-
* You may have identical table names in the same Region if the tables are in
|
|
12
|
+
* You may have identical table names in the same Region if the tables are in separate databases.
|
|
13
13
|
* While creating the table, you must specify the table name, database name,
|
|
14
14
|
* and the retention properties.
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>.
|
|
16
|
+
* See
|
|
17
|
+
* <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.create-table.html">code sample</a> for details.
|
|
17
18
|
* </p>
|
|
18
19
|
* @example
|
|
19
20
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -27,7 +28,7 @@ export interface CreateTableCommandOutput extends CreateTableResponse, __Metadat
|
|
|
27
28
|
*
|
|
28
29
|
* @see {@link CreateTableCommandInput} for command's `input` shape.
|
|
29
30
|
* @see {@link CreateTableCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link TimestreamWriteClientResolvedConfig | config} for
|
|
31
|
+
* @see {@link TimestreamWriteClientResolvedConfig | config} for TimestreamWriteClient's `config` shape.
|
|
31
32
|
*
|
|
32
33
|
*/
|
|
33
34
|
export declare class CreateTableCommand extends $Command<CreateTableCommandInput, CreateTableCommandOutput, TimestreamWriteClientResolvedConfig> {
|