@aws-sdk/client-timestream-write 3.41.0 → 3.46.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 +47 -0
- package/README.md +8 -1
- package/dist-cjs/commands/WriteRecordsCommand.js +1 -1
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +45 -1
- package/dist-cjs/protocols/Aws_json1_0.js +101 -1
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/commands/WriteRecordsCommand.js +2 -2
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +31 -0
- package/dist-es/protocols/Aws_json1_0.js +91 -11
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/TimestreamWrite.d.ts +83 -21
- package/dist-types/TimestreamWriteClient.d.ts +7 -1
- package/dist-types/commands/CreateDatabaseCommand.d.ts +6 -3
- package/dist-types/commands/CreateTableCommand.d.ts +5 -4
- package/dist-types/commands/DeleteDatabaseCommand.d.ts +7 -2
- package/dist-types/commands/DeleteTableCommand.d.ts +5 -1
- package/dist-types/commands/DescribeDatabaseCommand.d.ts +2 -1
- package/dist-types/commands/DescribeEndpointsCommand.d.ts +9 -4
- package/dist-types/commands/DescribeTableCommand.d.ts +2 -1
- package/dist-types/commands/ListDatabasesCommand.d.ts +2 -1
- package/dist-types/commands/ListTablesCommand.d.ts +2 -0
- package/dist-types/commands/UpdateDatabaseCommand.d.ts +2 -0
- package/dist-types/commands/UpdateTableCommand.d.ts +2 -1
- package/dist-types/commands/WriteRecordsCommand.d.ts +34 -4
- package/dist-types/models/models_0.d.ts +207 -18
- package/dist-types/ts3.4/commands/WriteRecordsCommand.d.ts +2 -2
- package/dist-types/ts3.4/models/models_0.d.ts +84 -1
- package/package.json +37 -44
|
@@ -60,8 +60,10 @@ export interface CreateDatabaseRequest {
|
|
|
60
60
|
*/
|
|
61
61
|
DatabaseName: string | undefined;
|
|
62
62
|
/**
|
|
63
|
-
* <p>The KMS key for the database.
|
|
64
|
-
*
|
|
63
|
+
* <p>The KMS key for the database.
|
|
64
|
+
* If the KMS key is not specified, the database will be encrypted with a Timestream
|
|
65
|
+
* managed KMS key located in your account.
|
|
66
|
+
* 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.</p>
|
|
65
67
|
*/
|
|
66
68
|
KmsKeyId?: string;
|
|
67
69
|
/**
|
|
@@ -198,6 +200,71 @@ export declare namespace ValidationException {
|
|
|
198
200
|
*/
|
|
199
201
|
const filterSensitiveLog: (obj: ValidationException) => any;
|
|
200
202
|
}
|
|
203
|
+
export declare enum S3EncryptionOption {
|
|
204
|
+
SSE_KMS = "SSE_KMS",
|
|
205
|
+
SSE_S3 = "SSE_S3"
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* <p>Configuration specifing an S3 location.</p>
|
|
209
|
+
*/
|
|
210
|
+
export interface S3Configuration {
|
|
211
|
+
/**
|
|
212
|
+
* <p>>Bucket name of the customer S3 bucket.</p>
|
|
213
|
+
*/
|
|
214
|
+
BucketName?: string;
|
|
215
|
+
/**
|
|
216
|
+
* <p>Object key preview for the customer S3 location.</p>
|
|
217
|
+
*/
|
|
218
|
+
ObjectKeyPrefix?: string;
|
|
219
|
+
/**
|
|
220
|
+
* <p>Encryption option for the customer s3 location. Options are S3 server side encryption with an S3-managed key or KMS managed key.</p>
|
|
221
|
+
*/
|
|
222
|
+
EncryptionOption?: S3EncryptionOption | string;
|
|
223
|
+
/**
|
|
224
|
+
* <p>KMS key id for the customer s3 location when encrypting with a KMS managed key.</p>
|
|
225
|
+
*/
|
|
226
|
+
KmsKeyId?: string;
|
|
227
|
+
}
|
|
228
|
+
export declare namespace S3Configuration {
|
|
229
|
+
/**
|
|
230
|
+
* @internal
|
|
231
|
+
*/
|
|
232
|
+
const filterSensitiveLog: (obj: S3Configuration) => any;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* <p>The location to write error reports for records rejected, asynchronously, during magnetic store writes.</p>
|
|
236
|
+
*/
|
|
237
|
+
export interface MagneticStoreRejectedDataLocation {
|
|
238
|
+
/**
|
|
239
|
+
* <p>Configuration of an S3 location to write error reports for records rejected, asynchronously, during magnetic store writes.</p>
|
|
240
|
+
*/
|
|
241
|
+
S3Configuration?: S3Configuration;
|
|
242
|
+
}
|
|
243
|
+
export declare namespace MagneticStoreRejectedDataLocation {
|
|
244
|
+
/**
|
|
245
|
+
* @internal
|
|
246
|
+
*/
|
|
247
|
+
const filterSensitiveLog: (obj: MagneticStoreRejectedDataLocation) => any;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* <p>The set of properties on a table for configuring magnetic store writes.</p>
|
|
251
|
+
*/
|
|
252
|
+
export interface MagneticStoreWriteProperties {
|
|
253
|
+
/**
|
|
254
|
+
* <p>A flag to enable magnetic store writes.</p>
|
|
255
|
+
*/
|
|
256
|
+
EnableMagneticStoreWrites: boolean | undefined;
|
|
257
|
+
/**
|
|
258
|
+
* <p>The location to write error reports for records rejected asynchronously during magnetic store writes.</p>
|
|
259
|
+
*/
|
|
260
|
+
MagneticStoreRejectedDataLocation?: MagneticStoreRejectedDataLocation;
|
|
261
|
+
}
|
|
262
|
+
export declare namespace MagneticStoreWriteProperties {
|
|
263
|
+
/**
|
|
264
|
+
* @internal
|
|
265
|
+
*/
|
|
266
|
+
const filterSensitiveLog: (obj: MagneticStoreWriteProperties) => any;
|
|
267
|
+
}
|
|
201
268
|
/**
|
|
202
269
|
* <p>Retention properties contain the duration for which your time series data must be stored in the magnetic store and the memory store.
|
|
203
270
|
* </p>
|
|
@@ -237,6 +304,10 @@ export interface CreateTableRequest {
|
|
|
237
304
|
* </p>
|
|
238
305
|
*/
|
|
239
306
|
Tags?: Tag[];
|
|
307
|
+
/**
|
|
308
|
+
* <p>Contains properties to set on the table when enabling magnetic store writes.</p>
|
|
309
|
+
*/
|
|
310
|
+
MagneticStoreWriteProperties?: MagneticStoreWriteProperties;
|
|
240
311
|
}
|
|
241
312
|
export declare namespace CreateTableRequest {
|
|
242
313
|
/**
|
|
@@ -291,6 +362,10 @@ export interface Table {
|
|
|
291
362
|
* <p>The time when the Timestream table was last updated.</p>
|
|
292
363
|
*/
|
|
293
364
|
LastUpdatedTime?: Date;
|
|
365
|
+
/**
|
|
366
|
+
* <p>Contains properties to set on the table when enabling magnetic store writes.</p>
|
|
367
|
+
*/
|
|
368
|
+
MagneticStoreWriteProperties?: MagneticStoreWriteProperties;
|
|
294
369
|
}
|
|
295
370
|
export declare namespace Table {
|
|
296
371
|
/**
|
|
@@ -576,8 +651,36 @@ export declare enum MeasureValueType {
|
|
|
576
651
|
BIGINT = "BIGINT",
|
|
577
652
|
BOOLEAN = "BOOLEAN",
|
|
578
653
|
DOUBLE = "DOUBLE",
|
|
654
|
+
MULTI = "MULTI",
|
|
655
|
+
TIMESTAMP = "TIMESTAMP",
|
|
579
656
|
VARCHAR = "VARCHAR"
|
|
580
657
|
}
|
|
658
|
+
/**
|
|
659
|
+
* <p> MeasureValue represents the data attribute of the time series. For example, the CPU utilization of an EC2 instance or the RPM of a wind turbine are measures. MeasureValue has both name and value. </p>
|
|
660
|
+
* <p> MeasureValue is only allowed for type <code>MULTI</code>. Using <code>MULTI</code> type, you can pass multiple data attributes associated with the same time series in a single record </p>
|
|
661
|
+
*/
|
|
662
|
+
export interface MeasureValue {
|
|
663
|
+
/**
|
|
664
|
+
* <p> Name of the MeasureValue. </p>
|
|
665
|
+
* <p> For constraints on MeasureValue names, refer to <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html#limits.naming">
|
|
666
|
+
* Naming Constraints</a> in the Timestream developer guide.</p>
|
|
667
|
+
*/
|
|
668
|
+
Name: string | undefined;
|
|
669
|
+
/**
|
|
670
|
+
* <p> Value for the MeasureValue. </p>
|
|
671
|
+
*/
|
|
672
|
+
Value: string | undefined;
|
|
673
|
+
/**
|
|
674
|
+
* <p>Contains the data type of the MeasureValue for the time series data point.</p>
|
|
675
|
+
*/
|
|
676
|
+
Type: MeasureValueType | string | undefined;
|
|
677
|
+
}
|
|
678
|
+
export declare namespace MeasureValue {
|
|
679
|
+
/**
|
|
680
|
+
* @internal
|
|
681
|
+
*/
|
|
682
|
+
const filterSensitiveLog: (obj: MeasureValue) => any;
|
|
683
|
+
}
|
|
581
684
|
export declare enum TimeUnit {
|
|
582
685
|
MICROSECONDS = "MICROSECONDS",
|
|
583
686
|
MILLISECONDS = "MILLISECONDS",
|
|
@@ -595,6 +698,14 @@ export declare enum TimeUnit {
|
|
|
595
698
|
* In addition, the record contains the timestamp when the measure was collected that
|
|
596
699
|
* the timestamp unit which represents the granularity of the timestamp.
|
|
597
700
|
* </p>
|
|
701
|
+
* <p>
|
|
702
|
+
* Records have a <code>Version</code> field, which is a 64-bit <code>long</code> that you can use for updating data points.
|
|
703
|
+
* Writes of a duplicate record with the same dimension,
|
|
704
|
+
* timestamp, and measure name
|
|
705
|
+
* but different measure value will only succeed if the <code>Version</code> attribute of the record in the write request
|
|
706
|
+
* is higher than that of the existing record.
|
|
707
|
+
* Timestream defaults to a <code>Version</code> of <code>1</code> for records without the <code>Version</code> field.
|
|
708
|
+
* </p>
|
|
598
709
|
*/
|
|
599
710
|
export interface _Record {
|
|
600
711
|
/**
|
|
@@ -613,7 +724,7 @@ export interface _Record {
|
|
|
613
724
|
MeasureValue?: string;
|
|
614
725
|
/**
|
|
615
726
|
* <p>
|
|
616
|
-
* Contains the data type of the measure value for the time series data point.
|
|
727
|
+
* Contains the data type of the measure value for the time series data point. Default type is <code>DOUBLE</code>.
|
|
617
728
|
* </p>
|
|
618
729
|
*/
|
|
619
730
|
MeasureValueType?: MeasureValueType | string;
|
|
@@ -629,15 +740,26 @@ export interface _Record {
|
|
|
629
740
|
/**
|
|
630
741
|
* <p>
|
|
631
742
|
* The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds or other supported values.
|
|
743
|
+
* Default is <code>MILLISECONDS</code>.
|
|
632
744
|
* </p>
|
|
633
745
|
*/
|
|
634
746
|
TimeUnit?: TimeUnit | string;
|
|
635
747
|
/**
|
|
636
748
|
* <p>64-bit attribute used for record updates.
|
|
637
749
|
* Write requests for duplicate data with a higher version number will update the existing measure value and version.
|
|
638
|
-
* In cases where the measure value is the same, <code>Version</code> will still be updated . Default value is
|
|
750
|
+
* In cases where the measure value is the same, <code>Version</code> will still be updated . Default value is <code>1</code>.</p>
|
|
751
|
+
*
|
|
752
|
+
* <note>
|
|
753
|
+
* <p>
|
|
754
|
+
* <code>Version</code> must be <code>1</code> or greater, or you will receive a <code>ValidationException</code> error.</p>
|
|
755
|
+
* </note>
|
|
639
756
|
*/
|
|
640
757
|
Version?: number;
|
|
758
|
+
/**
|
|
759
|
+
* <p> Contains the list of MeasureValue for time series data points. </p>
|
|
760
|
+
* <p> This is only allowed for type <code>MULTI</code>. For scalar values, use <code>MeasureValue</code> attribute of the Record directly. </p>
|
|
761
|
+
*/
|
|
762
|
+
MeasureValues?: MeasureValue[];
|
|
641
763
|
}
|
|
642
764
|
export declare namespace _Record {
|
|
643
765
|
/**
|
|
@@ -645,6 +767,29 @@ export declare namespace _Record {
|
|
|
645
767
|
*/
|
|
646
768
|
const filterSensitiveLog: (obj: _Record) => any;
|
|
647
769
|
}
|
|
770
|
+
/**
|
|
771
|
+
* <p>Information on the records ingested by this request.</p>
|
|
772
|
+
*/
|
|
773
|
+
export interface RecordsIngested {
|
|
774
|
+
/**
|
|
775
|
+
* <p>Total count of successfully ingested records.</p>
|
|
776
|
+
*/
|
|
777
|
+
Total?: number;
|
|
778
|
+
/**
|
|
779
|
+
* <p>Count of records ingested into the memory store.</p>
|
|
780
|
+
*/
|
|
781
|
+
MemoryStore?: number;
|
|
782
|
+
/**
|
|
783
|
+
* <p>Count of records ingested into the magnetic store.</p>
|
|
784
|
+
*/
|
|
785
|
+
MagneticStore?: number;
|
|
786
|
+
}
|
|
787
|
+
export declare namespace RecordsIngested {
|
|
788
|
+
/**
|
|
789
|
+
* @internal
|
|
790
|
+
*/
|
|
791
|
+
const filterSensitiveLog: (obj: RecordsIngested) => any;
|
|
792
|
+
}
|
|
648
793
|
/**
|
|
649
794
|
* <p>
|
|
650
795
|
* Records that were not successfully inserted into Timestream due to data validation issues
|
|
@@ -664,10 +809,22 @@ export interface RejectedRecord {
|
|
|
664
809
|
* </p>
|
|
665
810
|
* <ul>
|
|
666
811
|
* <li>
|
|
667
|
-
* <p>
|
|
668
|
-
*
|
|
669
|
-
* timestamps, and measure names but different measure values.
|
|
812
|
+
* <p>Records with duplicate data where there are multiple records with the same dimensions,
|
|
813
|
+
* timestamps, and measure names but:
|
|
670
814
|
* </p>
|
|
815
|
+
* <ul>
|
|
816
|
+
* <li>
|
|
817
|
+
* <p>Measure values are different</p>
|
|
818
|
+
* </li>
|
|
819
|
+
* <li>
|
|
820
|
+
* <p>Version is not present in the request <i>or</i>
|
|
821
|
+
* the value of version in the new record is equal to or lower than the existing value</p>
|
|
822
|
+
* </li>
|
|
823
|
+
* </ul>
|
|
824
|
+
* <p>
|
|
825
|
+
* If Timestream rejects data for this case, the <code>ExistingVersion</code> field in the <code>RejectedRecords</code>
|
|
826
|
+
* response will indicate the current record’s version.
|
|
827
|
+
* To force an update, you can resend the request with a version for the record set to a value greater than the <code>ExistingVersion</code>.</p>
|
|
671
828
|
* </li>
|
|
672
829
|
* <li>
|
|
673
830
|
* <p>
|
|
@@ -715,10 +872,22 @@ export declare namespace RejectedRecord {
|
|
|
715
872
|
* </p>
|
|
716
873
|
* <ul>
|
|
717
874
|
* <li>
|
|
718
|
-
* <p>
|
|
719
|
-
*
|
|
720
|
-
*
|
|
721
|
-
*
|
|
875
|
+
* <p>Records with duplicate data where there are multiple records with the same dimensions,
|
|
876
|
+
* timestamps, and measure names but:
|
|
877
|
+
* </p>
|
|
878
|
+
* <ul>
|
|
879
|
+
* <li>
|
|
880
|
+
* <p>Measure values are different</p>
|
|
881
|
+
* </li>
|
|
882
|
+
* <li>
|
|
883
|
+
* <p>Version is not present in the request <i>or</i>
|
|
884
|
+
* the value of version in the new record is equal to or lower than the existing value</p>
|
|
885
|
+
* </li>
|
|
886
|
+
* </ul>
|
|
887
|
+
* <p>
|
|
888
|
+
* In this case, if Timestream rejects data, the <code>ExistingVersion</code> field in the <code>RejectedRecords</code>
|
|
889
|
+
* response will indicate the current record’s version.
|
|
890
|
+
* To force an update, you can resend the request with a version for the record set to a value greater than the <code>ExistingVersion</code>.</p>
|
|
722
891
|
* </li>
|
|
723
892
|
* <li>
|
|
724
893
|
* <p>
|
|
@@ -732,7 +901,7 @@ export declare namespace RejectedRecord {
|
|
|
732
901
|
* </li>
|
|
733
902
|
* </ul>
|
|
734
903
|
* <p>
|
|
735
|
-
* For more information, see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">
|
|
904
|
+
* For more information, see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Quotas</a> in the Timestream Developer Guide.
|
|
736
905
|
* </p>
|
|
737
906
|
*/
|
|
738
907
|
export interface RejectedRecordsException extends __SmithyException, $MetadataBearer {
|
|
@@ -867,13 +1036,17 @@ export interface UpdateTableRequest {
|
|
|
867
1036
|
*/
|
|
868
1037
|
DatabaseName: string | undefined;
|
|
869
1038
|
/**
|
|
870
|
-
* <p>The name of the
|
|
1039
|
+
* <p>The name of the Timestream table.</p>
|
|
871
1040
|
*/
|
|
872
1041
|
TableName: string | undefined;
|
|
873
1042
|
/**
|
|
874
1043
|
* <p>The retention duration of the memory store and the magnetic store.</p>
|
|
875
1044
|
*/
|
|
876
|
-
RetentionProperties
|
|
1045
|
+
RetentionProperties?: RetentionProperties;
|
|
1046
|
+
/**
|
|
1047
|
+
* <p>Contains properties to set on the table when enabling magnetic store writes.</p>
|
|
1048
|
+
*/
|
|
1049
|
+
MagneticStoreWriteProperties?: MagneticStoreWriteProperties;
|
|
877
1050
|
}
|
|
878
1051
|
export declare namespace UpdateTableRequest {
|
|
879
1052
|
/**
|
|
@@ -899,19 +1072,23 @@ export interface WriteRecordsRequest {
|
|
|
899
1072
|
*/
|
|
900
1073
|
DatabaseName: string | undefined;
|
|
901
1074
|
/**
|
|
902
|
-
* <p>The name of the
|
|
1075
|
+
* <p>The name of the Timestream table.</p>
|
|
903
1076
|
*/
|
|
904
1077
|
TableName: string | undefined;
|
|
905
1078
|
/**
|
|
906
|
-
* <p>A record containing the common measure
|
|
1079
|
+
* <p>A record containing the common measure, dimension, time,
|
|
1080
|
+
* and version attributes
|
|
907
1081
|
* shared across all the records in the request. The measure and dimension
|
|
908
|
-
* attributes specified
|
|
1082
|
+
* attributes specified will be merged with the measure and dimension
|
|
909
1083
|
* attributes in the records object when the data is written into Timestream.
|
|
1084
|
+
* Dimensions may not overlap,
|
|
1085
|
+
* or a <code>ValidationException</code> will be thrown.
|
|
1086
|
+
* In other words, a record must contain dimensions with unique names.
|
|
910
1087
|
* </p>
|
|
911
1088
|
*/
|
|
912
1089
|
CommonAttributes?: _Record;
|
|
913
1090
|
/**
|
|
914
|
-
* <p>An array of records containing the unique dimension and
|
|
1091
|
+
* <p>An array of records containing the unique measure, dimension, time, and version
|
|
915
1092
|
* attributes for each time series data point.
|
|
916
1093
|
* </p>
|
|
917
1094
|
*/
|
|
@@ -923,3 +1100,15 @@ export declare namespace WriteRecordsRequest {
|
|
|
923
1100
|
*/
|
|
924
1101
|
const filterSensitiveLog: (obj: WriteRecordsRequest) => any;
|
|
925
1102
|
}
|
|
1103
|
+
export interface WriteRecordsResponse {
|
|
1104
|
+
/**
|
|
1105
|
+
* <p>Information on the records ingested by this request.</p>
|
|
1106
|
+
*/
|
|
1107
|
+
RecordsIngested?: RecordsIngested;
|
|
1108
|
+
}
|
|
1109
|
+
export declare namespace WriteRecordsResponse {
|
|
1110
|
+
/**
|
|
1111
|
+
* @internal
|
|
1112
|
+
*/
|
|
1113
|
+
const filterSensitiveLog: (obj: WriteRecordsResponse) => any;
|
|
1114
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
-
import { WriteRecordsRequest } from "../models/models_0";
|
|
3
|
+
import { WriteRecordsRequest, WriteRecordsResponse } from "../models/models_0";
|
|
4
4
|
import { ServiceInputTypes, ServiceOutputTypes, TimestreamWriteClientResolvedConfig } from "../TimestreamWriteClient";
|
|
5
5
|
export interface WriteRecordsCommandInput extends WriteRecordsRequest {
|
|
6
6
|
}
|
|
7
|
-
export interface WriteRecordsCommandOutput extends __MetadataBearer {
|
|
7
|
+
export interface WriteRecordsCommandOutput extends WriteRecordsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export declare class WriteRecordsCommand extends $Command<WriteRecordsCommandInput, WriteRecordsCommandOutput, TimestreamWriteClientResolvedConfig> {
|
|
@@ -119,6 +119,45 @@ export declare namespace ValidationException {
|
|
|
119
119
|
|
|
120
120
|
const filterSensitiveLog: (obj: ValidationException) => any;
|
|
121
121
|
}
|
|
122
|
+
export declare enum S3EncryptionOption {
|
|
123
|
+
SSE_KMS = "SSE_KMS",
|
|
124
|
+
SSE_S3 = "SSE_S3"
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export interface S3Configuration {
|
|
128
|
+
|
|
129
|
+
BucketName?: string;
|
|
130
|
+
|
|
131
|
+
ObjectKeyPrefix?: string;
|
|
132
|
+
|
|
133
|
+
EncryptionOption?: S3EncryptionOption | string;
|
|
134
|
+
|
|
135
|
+
KmsKeyId?: string;
|
|
136
|
+
}
|
|
137
|
+
export declare namespace S3Configuration {
|
|
138
|
+
|
|
139
|
+
const filterSensitiveLog: (obj: S3Configuration) => any;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface MagneticStoreRejectedDataLocation {
|
|
143
|
+
|
|
144
|
+
S3Configuration?: S3Configuration;
|
|
145
|
+
}
|
|
146
|
+
export declare namespace MagneticStoreRejectedDataLocation {
|
|
147
|
+
|
|
148
|
+
const filterSensitiveLog: (obj: MagneticStoreRejectedDataLocation) => any;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface MagneticStoreWriteProperties {
|
|
152
|
+
|
|
153
|
+
EnableMagneticStoreWrites: boolean | undefined;
|
|
154
|
+
|
|
155
|
+
MagneticStoreRejectedDataLocation?: MagneticStoreRejectedDataLocation;
|
|
156
|
+
}
|
|
157
|
+
export declare namespace MagneticStoreWriteProperties {
|
|
158
|
+
|
|
159
|
+
const filterSensitiveLog: (obj: MagneticStoreWriteProperties) => any;
|
|
160
|
+
}
|
|
122
161
|
|
|
123
162
|
export interface RetentionProperties {
|
|
124
163
|
|
|
@@ -139,6 +178,8 @@ export interface CreateTableRequest {
|
|
|
139
178
|
RetentionProperties?: RetentionProperties;
|
|
140
179
|
|
|
141
180
|
Tags?: Tag[];
|
|
181
|
+
|
|
182
|
+
MagneticStoreWriteProperties?: MagneticStoreWriteProperties;
|
|
142
183
|
}
|
|
143
184
|
export declare namespace CreateTableRequest {
|
|
144
185
|
|
|
@@ -164,6 +205,8 @@ export interface Table {
|
|
|
164
205
|
CreationTime?: Date;
|
|
165
206
|
|
|
166
207
|
LastUpdatedTime?: Date;
|
|
208
|
+
|
|
209
|
+
MagneticStoreWriteProperties?: MagneticStoreWriteProperties;
|
|
167
210
|
}
|
|
168
211
|
export declare namespace Table {
|
|
169
212
|
|
|
@@ -342,8 +385,23 @@ export declare enum MeasureValueType {
|
|
|
342
385
|
BIGINT = "BIGINT",
|
|
343
386
|
BOOLEAN = "BOOLEAN",
|
|
344
387
|
DOUBLE = "DOUBLE",
|
|
388
|
+
MULTI = "MULTI",
|
|
389
|
+
TIMESTAMP = "TIMESTAMP",
|
|
345
390
|
VARCHAR = "VARCHAR"
|
|
346
391
|
}
|
|
392
|
+
|
|
393
|
+
export interface MeasureValue {
|
|
394
|
+
|
|
395
|
+
Name: string | undefined;
|
|
396
|
+
|
|
397
|
+
Value: string | undefined;
|
|
398
|
+
|
|
399
|
+
Type: MeasureValueType | string | undefined;
|
|
400
|
+
}
|
|
401
|
+
export declare namespace MeasureValue {
|
|
402
|
+
|
|
403
|
+
const filterSensitiveLog: (obj: MeasureValue) => any;
|
|
404
|
+
}
|
|
347
405
|
export declare enum TimeUnit {
|
|
348
406
|
MICROSECONDS = "MICROSECONDS",
|
|
349
407
|
MILLISECONDS = "MILLISECONDS",
|
|
@@ -366,12 +424,27 @@ export interface _Record {
|
|
|
366
424
|
TimeUnit?: TimeUnit | string;
|
|
367
425
|
|
|
368
426
|
Version?: number;
|
|
427
|
+
|
|
428
|
+
MeasureValues?: MeasureValue[];
|
|
369
429
|
}
|
|
370
430
|
export declare namespace _Record {
|
|
371
431
|
|
|
372
432
|
const filterSensitiveLog: (obj: _Record) => any;
|
|
373
433
|
}
|
|
374
434
|
|
|
435
|
+
export interface RecordsIngested {
|
|
436
|
+
|
|
437
|
+
Total?: number;
|
|
438
|
+
|
|
439
|
+
MemoryStore?: number;
|
|
440
|
+
|
|
441
|
+
MagneticStore?: number;
|
|
442
|
+
}
|
|
443
|
+
export declare namespace RecordsIngested {
|
|
444
|
+
|
|
445
|
+
const filterSensitiveLog: (obj: RecordsIngested) => any;
|
|
446
|
+
}
|
|
447
|
+
|
|
375
448
|
export interface RejectedRecord {
|
|
376
449
|
|
|
377
450
|
RecordIndex?: number;
|
|
@@ -451,7 +524,9 @@ export interface UpdateTableRequest {
|
|
|
451
524
|
|
|
452
525
|
TableName: string | undefined;
|
|
453
526
|
|
|
454
|
-
RetentionProperties
|
|
527
|
+
RetentionProperties?: RetentionProperties;
|
|
528
|
+
|
|
529
|
+
MagneticStoreWriteProperties?: MagneticStoreWriteProperties;
|
|
455
530
|
}
|
|
456
531
|
export declare namespace UpdateTableRequest {
|
|
457
532
|
|
|
@@ -479,3 +554,11 @@ export declare namespace WriteRecordsRequest {
|
|
|
479
554
|
|
|
480
555
|
const filterSensitiveLog: (obj: WriteRecordsRequest) => any;
|
|
481
556
|
}
|
|
557
|
+
export interface WriteRecordsResponse {
|
|
558
|
+
|
|
559
|
+
RecordsIngested?: RecordsIngested;
|
|
560
|
+
}
|
|
561
|
+
export declare namespace WriteRecordsResponse {
|
|
562
|
+
|
|
563
|
+
const filterSensitiveLog: (obj: WriteRecordsResponse) => any;
|
|
564
|
+
}
|
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-timestream-write",
|
|
3
3
|
"description": "AWS SDK for JavaScript Timestream Write Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.46.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
8
|
-
"build:docs": "
|
|
8
|
+
"build:docs": "typedoc",
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
12
|
"clean": "yarn clean:dist && yarn clean:docs",
|
|
12
|
-
"clean:dist": "rimraf ./dist",
|
|
13
|
-
"clean:docs": "rimraf ./docs"
|
|
14
|
-
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
|
-
"test": "jest --coverage --passWithNoTests"
|
|
13
|
+
"clean:dist": "rimraf ./dist-*",
|
|
14
|
+
"clean:docs": "rimraf ./docs"
|
|
16
15
|
},
|
|
17
16
|
"main": "./dist-cjs/index.js",
|
|
18
17
|
"types": "./dist-types/index.d.ts",
|
|
@@ -21,49 +20,43 @@
|
|
|
21
20
|
"dependencies": {
|
|
22
21
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
22
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint-discovery": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-retry": "3.
|
|
35
|
-
"@aws-sdk/middleware-serde": "3.
|
|
36
|
-
"@aws-sdk/middleware-signing": "3.
|
|
37
|
-
"@aws-sdk/middleware-stack": "3.
|
|
38
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
-
"@aws-sdk/node-config-provider": "3.
|
|
40
|
-
"@aws-sdk/node-http-handler": "3.
|
|
41
|
-
"@aws-sdk/protocol-http": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
45
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
46
|
-
"@aws-sdk/util-base64-node": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
50
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
51
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
52
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.46.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.46.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.46.0",
|
|
26
|
+
"@aws-sdk/fetch-http-handler": "3.46.0",
|
|
27
|
+
"@aws-sdk/hash-node": "3.46.0",
|
|
28
|
+
"@aws-sdk/invalid-dependency": "3.46.0",
|
|
29
|
+
"@aws-sdk/middleware-content-length": "3.46.0",
|
|
30
|
+
"@aws-sdk/middleware-endpoint-discovery": "3.46.0",
|
|
31
|
+
"@aws-sdk/middleware-host-header": "3.46.0",
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.46.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.46.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.46.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.46.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.46.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.46.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.46.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.46.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.46.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.46.0",
|
|
42
|
+
"@aws-sdk/types": "3.46.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.46.0",
|
|
44
|
+
"@aws-sdk/util-base64-browser": "3.46.0",
|
|
45
|
+
"@aws-sdk/util-base64-node": "3.46.0",
|
|
46
|
+
"@aws-sdk/util-body-length-browser": "3.46.0",
|
|
47
|
+
"@aws-sdk/util-body-length-node": "3.46.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.46.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.46.0",
|
|
50
|
+
"@aws-sdk/util-utf8-browser": "3.46.0",
|
|
51
|
+
"@aws-sdk/util-utf8-node": "3.46.0",
|
|
53
52
|
"tslib": "^2.3.0"
|
|
54
53
|
},
|
|
55
54
|
"devDependencies": {
|
|
56
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
57
|
-
"@types/node": "^12.7.5"
|
|
58
|
-
"downlevel-dts": "0.7.0",
|
|
59
|
-
"jest": "^26.1.0",
|
|
60
|
-
"rimraf": "^3.0.0",
|
|
61
|
-
"ts-jest": "^26.4.1",
|
|
62
|
-
"typedoc": "^0.19.2",
|
|
63
|
-
"typescript": "~4.3.5"
|
|
55
|
+
"@aws-sdk/service-client-documentation-generator": "3.46.0",
|
|
56
|
+
"@types/node": "^12.7.5"
|
|
64
57
|
},
|
|
65
58
|
"engines": {
|
|
66
|
-
"node": ">=
|
|
59
|
+
"node": ">=12.0.0"
|
|
67
60
|
},
|
|
68
61
|
"typesVersions": {
|
|
69
62
|
"<4.0": {
|