@aws-sdk/client-timestream-write 3.35.0 → 3.38.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 (183) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/TimestreamWrite.js +0 -4
  3. package/dist-cjs/TimestreamWriteClient.js +0 -9
  4. package/dist-cjs/commands/CreateDatabaseCommand.js +0 -28
  5. package/dist-cjs/commands/CreateTableCommand.js +0 -32
  6. package/dist-cjs/commands/DeleteDatabaseCommand.js +0 -33
  7. package/dist-cjs/commands/DeleteTableCommand.js +0 -30
  8. package/dist-cjs/commands/DescribeDatabaseCommand.js +0 -27
  9. package/dist-cjs/commands/DescribeEndpointsCommand.js +0 -38
  10. package/dist-cjs/commands/DescribeTableCommand.js +0 -28
  11. package/dist-cjs/commands/ListDatabasesCommand.js +0 -27
  12. package/dist-cjs/commands/ListTablesCommand.js +0 -26
  13. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -27
  14. package/dist-cjs/commands/TagResourceCommand.js +0 -29
  15. package/dist-cjs/commands/UntagResourceCommand.js +0 -27
  16. package/dist-cjs/commands/UpdateDatabaseCommand.js +0 -29
  17. package/dist-cjs/commands/UpdateTableCommand.js +0 -31
  18. package/dist-cjs/commands/WriteRecordsCommand.js +0 -38
  19. package/dist-cjs/commands/index.js +18 -0
  20. package/dist-cjs/endpoints.js +1 -2
  21. package/dist-cjs/index.js +4 -21
  22. package/dist-cjs/models/index.js +0 -1
  23. package/dist-cjs/models/models_0.js +0 -133
  24. package/dist-cjs/pagination/Interfaces.js +0 -1
  25. package/dist-cjs/pagination/ListDatabasesPaginator.js +0 -11
  26. package/dist-cjs/pagination/ListTablesPaginator.js +0 -11
  27. package/dist-cjs/pagination/index.js +6 -0
  28. package/dist-cjs/protocols/Aws_json1_0.js +0 -6
  29. package/dist-cjs/runtimeConfig.browser.js +1 -6
  30. package/dist-cjs/runtimeConfig.js +2 -7
  31. package/dist-cjs/runtimeConfig.native.js +0 -4
  32. package/dist-cjs/runtimeConfig.shared.js +0 -4
  33. package/dist-es/TimestreamWrite.js +0 -1
  34. package/dist-es/TimestreamWriteClient.js +0 -1
  35. package/dist-es/commands/CreateDatabaseCommand.js +0 -1
  36. package/dist-es/commands/CreateTableCommand.js +0 -1
  37. package/dist-es/commands/DeleteDatabaseCommand.js +0 -1
  38. package/dist-es/commands/DeleteTableCommand.js +0 -1
  39. package/dist-es/commands/DescribeDatabaseCommand.js +0 -1
  40. package/dist-es/commands/DescribeEndpointsCommand.js +0 -1
  41. package/dist-es/commands/DescribeTableCommand.js +0 -1
  42. package/dist-es/commands/ListDatabasesCommand.js +0 -1
  43. package/dist-es/commands/ListTablesCommand.js +0 -1
  44. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  45. package/dist-es/commands/TagResourceCommand.js +0 -1
  46. package/dist-es/commands/UntagResourceCommand.js +0 -1
  47. package/dist-es/commands/UpdateDatabaseCommand.js +0 -1
  48. package/dist-es/commands/UpdateTableCommand.js +0 -1
  49. package/dist-es/commands/WriteRecordsCommand.js +0 -1
  50. package/dist-es/commands/index.js +15 -0
  51. package/dist-es/endpoints.js +1 -2
  52. package/dist-es/index.js +4 -21
  53. package/dist-es/models/index.js +0 -1
  54. package/dist-es/models/models_0.js +0 -1
  55. package/dist-es/pagination/Interfaces.js +0 -1
  56. package/dist-es/pagination/ListDatabasesPaginator.js +0 -1
  57. package/dist-es/pagination/ListTablesPaginator.js +0 -1
  58. package/dist-es/pagination/index.js +3 -0
  59. package/dist-es/protocols/Aws_json1_0.js +0 -1
  60. package/dist-es/runtimeConfig.browser.js +1 -2
  61. package/dist-es/runtimeConfig.js +2 -3
  62. package/dist-es/runtimeConfig.native.js +0 -1
  63. package/dist-es/runtimeConfig.shared.js +0 -1
  64. package/dist-types/commands/index.d.ts +15 -0
  65. package/dist-types/index.d.ts +4 -20
  66. package/dist-types/pagination/index.d.ts +3 -0
  67. package/dist-types/ts3.4/TimestreamWrite.d.ts +16 -123
  68. package/dist-types/ts3.4/TimestreamWriteClient.d.ts +25 -94
  69. package/dist-types/ts3.4/commands/CreateDatabaseCommand.d.ts +2 -23
  70. package/dist-types/ts3.4/commands/CreateTableCommand.d.ts +2 -27
  71. package/dist-types/ts3.4/commands/DeleteDatabaseCommand.d.ts +2 -28
  72. package/dist-types/ts3.4/commands/DeleteTableCommand.d.ts +2 -25
  73. package/dist-types/ts3.4/commands/DescribeDatabaseCommand.d.ts +2 -22
  74. package/dist-types/ts3.4/commands/DescribeEndpointsCommand.d.ts +2 -33
  75. package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +2 -23
  76. package/dist-types/ts3.4/commands/ListDatabasesCommand.d.ts +2 -22
  77. package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +2 -21
  78. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -22
  79. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -24
  80. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -22
  81. package/dist-types/ts3.4/commands/UpdateDatabaseCommand.d.ts +2 -24
  82. package/dist-types/ts3.4/commands/UpdateTableCommand.d.ts +2 -26
  83. package/dist-types/ts3.4/commands/WriteRecordsCommand.d.ts +2 -33
  84. package/dist-types/ts3.4/commands/index.d.ts +15 -0
  85. package/dist-types/ts3.4/index.d.ts +4 -20
  86. package/dist-types/ts3.4/models/models_0.d.ts +137 -581
  87. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  88. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  89. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  90. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  91. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  92. package/package.json +34 -31
  93. package/dist-cjs/TimestreamWrite.js.map +0 -1
  94. package/dist-cjs/TimestreamWriteClient.js.map +0 -1
  95. package/dist-cjs/commands/CreateDatabaseCommand.js.map +0 -1
  96. package/dist-cjs/commands/CreateTableCommand.js.map +0 -1
  97. package/dist-cjs/commands/DeleteDatabaseCommand.js.map +0 -1
  98. package/dist-cjs/commands/DeleteTableCommand.js.map +0 -1
  99. package/dist-cjs/commands/DescribeDatabaseCommand.js.map +0 -1
  100. package/dist-cjs/commands/DescribeEndpointsCommand.js.map +0 -1
  101. package/dist-cjs/commands/DescribeTableCommand.js.map +0 -1
  102. package/dist-cjs/commands/ListDatabasesCommand.js.map +0 -1
  103. package/dist-cjs/commands/ListTablesCommand.js.map +0 -1
  104. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  105. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  106. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  107. package/dist-cjs/commands/UpdateDatabaseCommand.js.map +0 -1
  108. package/dist-cjs/commands/UpdateTableCommand.js.map +0 -1
  109. package/dist-cjs/commands/WriteRecordsCommand.js.map +0 -1
  110. package/dist-cjs/endpoints.js.map +0 -1
  111. package/dist-cjs/index.js.map +0 -1
  112. package/dist-cjs/models/index.js.map +0 -1
  113. package/dist-cjs/models/models_0.js.map +0 -1
  114. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  115. package/dist-cjs/pagination/ListDatabasesPaginator.js.map +0 -1
  116. package/dist-cjs/pagination/ListTablesPaginator.js.map +0 -1
  117. package/dist-cjs/protocols/Aws_json1_0.js.map +0 -1
  118. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  119. package/dist-cjs/runtimeConfig.js.map +0 -1
  120. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  121. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  122. package/dist-es/TimestreamWrite.js.map +0 -1
  123. package/dist-es/TimestreamWriteClient.js.map +0 -1
  124. package/dist-es/commands/CreateDatabaseCommand.js.map +0 -1
  125. package/dist-es/commands/CreateTableCommand.js.map +0 -1
  126. package/dist-es/commands/DeleteDatabaseCommand.js.map +0 -1
  127. package/dist-es/commands/DeleteTableCommand.js.map +0 -1
  128. package/dist-es/commands/DescribeDatabaseCommand.js.map +0 -1
  129. package/dist-es/commands/DescribeEndpointsCommand.js.map +0 -1
  130. package/dist-es/commands/DescribeTableCommand.js.map +0 -1
  131. package/dist-es/commands/ListDatabasesCommand.js.map +0 -1
  132. package/dist-es/commands/ListTablesCommand.js.map +0 -1
  133. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  134. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  135. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  136. package/dist-es/commands/UpdateDatabaseCommand.js.map +0 -1
  137. package/dist-es/commands/UpdateTableCommand.js.map +0 -1
  138. package/dist-es/commands/WriteRecordsCommand.js.map +0 -1
  139. package/dist-es/endpoints.js.map +0 -1
  140. package/dist-es/index.js.map +0 -1
  141. package/dist-es/models/index.js.map +0 -1
  142. package/dist-es/models/models_0.js.map +0 -1
  143. package/dist-es/pagination/Interfaces.js.map +0 -1
  144. package/dist-es/pagination/ListDatabasesPaginator.js.map +0 -1
  145. package/dist-es/pagination/ListTablesPaginator.js.map +0 -1
  146. package/dist-es/protocols/Aws_json1_0.js.map +0 -1
  147. package/dist-es/runtimeConfig.browser.js.map +0 -1
  148. package/dist-es/runtimeConfig.js.map +0 -1
  149. package/dist-es/runtimeConfig.native.js.map +0 -1
  150. package/dist-es/runtimeConfig.shared.js.map +0 -1
  151. package/jest.config.js +0 -4
  152. package/src/TimestreamWrite.ts +0 -585
  153. package/src/TimestreamWriteClient.ts +0 -305
  154. package/src/commands/CreateDatabaseCommand.ts +0 -102
  155. package/src/commands/CreateTableCommand.ts +0 -106
  156. package/src/commands/DeleteDatabaseCommand.ts +0 -107
  157. package/src/commands/DeleteTableCommand.ts +0 -104
  158. package/src/commands/DescribeDatabaseCommand.ts +0 -101
  159. package/src/commands/DescribeEndpointsCommand.ts +0 -108
  160. package/src/commands/DescribeTableCommand.ts +0 -102
  161. package/src/commands/ListDatabasesCommand.ts +0 -101
  162. package/src/commands/ListTablesCommand.ts +0 -100
  163. package/src/commands/ListTagsForResourceCommand.ts +0 -101
  164. package/src/commands/TagResourceCommand.ts +0 -103
  165. package/src/commands/UntagResourceCommand.ts +0 -101
  166. package/src/commands/UpdateDatabaseCommand.ts +0 -103
  167. package/src/commands/UpdateTableCommand.ts +0 -105
  168. package/src/commands/WriteRecordsCommand.ts +0 -112
  169. package/src/endpoints.ts +0 -57
  170. package/src/index.ts +0 -21
  171. package/src/models/index.ts +0 -1
  172. package/src/models/models_0.ts +0 -1146
  173. package/src/pagination/Interfaces.ts +0 -8
  174. package/src/pagination/ListDatabasesPaginator.ts +0 -59
  175. package/src/pagination/ListTablesPaginator.ts +0 -55
  176. package/src/protocols/Aws_json1_0.ts +0 -2388
  177. package/src/runtimeConfig.browser.ts +0 -42
  178. package/src/runtimeConfig.native.ts +0 -17
  179. package/src/runtimeConfig.shared.ts +0 -17
  180. package/src/runtimeConfig.ts +0 -49
  181. package/tsconfig.es.json +0 -10
  182. package/tsconfig.json +0 -33
  183. package/tsconfig.types.json +0 -9
@@ -1,1146 +0,0 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
-
3
- /**
4
- * <p>You are not authorized to perform this action.</p>
5
- */
6
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
7
- name: "AccessDeniedException";
8
- $fault: "client";
9
- Message: string | undefined;
10
- }
11
-
12
- export namespace AccessDeniedException {
13
- /**
14
- * @internal
15
- */
16
- export const filterSensitiveLog = (obj: AccessDeniedException): any => ({
17
- ...obj,
18
- });
19
- }
20
-
21
- /**
22
- * <p>Timestream was unable to process this request because it contains resource that already exists.</p>
23
- */
24
- export interface ConflictException extends __SmithyException, $MetadataBearer {
25
- name: "ConflictException";
26
- $fault: "client";
27
- Message: string | undefined;
28
- }
29
-
30
- export namespace ConflictException {
31
- /**
32
- * @internal
33
- */
34
- export const filterSensitiveLog = (obj: ConflictException): any => ({
35
- ...obj,
36
- });
37
- }
38
-
39
- /**
40
- * <p>
41
- * A tag is a label that you assign to a Timestream database and/or table. Each tag consists
42
- * of a key and an optional value, both of which you define. Tags enable you to
43
- * categorize databases and/or tables, for example, by purpose, owner, or environment.
44
- * </p>
45
- */
46
- export interface Tag {
47
- /**
48
- * <p>
49
- * The key of the tag. Tag keys are case sensitive.
50
- * </p>
51
- */
52
- Key: string | undefined;
53
-
54
- /**
55
- * <p>
56
- * The value of the tag. Tag values are case-sensitive and can be null.
57
- * </p>
58
- */
59
- Value: string | undefined;
60
- }
61
-
62
- export namespace Tag {
63
- /**
64
- * @internal
65
- */
66
- export const filterSensitiveLog = (obj: Tag): any => ({
67
- ...obj,
68
- });
69
- }
70
-
71
- export interface CreateDatabaseRequest {
72
- /**
73
- * <p>The name of the Timestream database.</p>
74
- */
75
- DatabaseName: string | undefined;
76
-
77
- /**
78
- * <p>The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a Timestream
79
- * managed KMS key located in your account. Refer to <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">AWS managed KMS keys</a> for more info.</p>
80
- */
81
- KmsKeyId?: string;
82
-
83
- /**
84
- * <p>
85
- * A list of key-value pairs to label the table.
86
- * </p>
87
- */
88
- Tags?: Tag[];
89
- }
90
-
91
- export namespace CreateDatabaseRequest {
92
- /**
93
- * @internal
94
- */
95
- export const filterSensitiveLog = (obj: CreateDatabaseRequest): any => ({
96
- ...obj,
97
- });
98
- }
99
-
100
- /**
101
- * <p>A top level container for a table. Databases and tables are the
102
- * fundamental management concepts in Amazon Timestream. All tables in a
103
- * database are encrypted with the same KMS key.</p>
104
- */
105
- export interface Database {
106
- /**
107
- * <p>The Amazon Resource Name that uniquely identifies this database.</p>
108
- */
109
- Arn?: string;
110
-
111
- /**
112
- * <p>The name of the Timestream database.</p>
113
- */
114
- DatabaseName?: string;
115
-
116
- /**
117
- * <p>The total number of tables found within a Timestream database. </p>
118
- */
119
- TableCount?: number;
120
-
121
- /**
122
- * <p>The identifier of the KMS key used to encrypt the data stored in the database.</p>
123
- */
124
- KmsKeyId?: string;
125
-
126
- /**
127
- * <p>The time when the database was created, calculated from the Unix epoch time.</p>
128
- */
129
- CreationTime?: Date;
130
-
131
- /**
132
- * <p>
133
- * The last time that this database was updated.
134
- * </p>
135
- */
136
- LastUpdatedTime?: Date;
137
- }
138
-
139
- export namespace Database {
140
- /**
141
- * @internal
142
- */
143
- export const filterSensitiveLog = (obj: Database): any => ({
144
- ...obj,
145
- });
146
- }
147
-
148
- export interface CreateDatabaseResponse {
149
- /**
150
- * <p>The newly created Timestream database.</p>
151
- */
152
- Database?: Database;
153
- }
154
-
155
- export namespace CreateDatabaseResponse {
156
- /**
157
- * @internal
158
- */
159
- export const filterSensitiveLog = (obj: CreateDatabaseResponse): any => ({
160
- ...obj,
161
- });
162
- }
163
-
164
- /**
165
- * <p> Timestream was unable to fully process this request because of an internal server error.</p>
166
- */
167
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
168
- name: "InternalServerException";
169
- $fault: "server";
170
- Message: string | undefined;
171
- }
172
-
173
- export namespace InternalServerException {
174
- /**
175
- * @internal
176
- */
177
- export const filterSensitiveLog = (obj: InternalServerException): any => ({
178
- ...obj,
179
- });
180
- }
181
-
182
- /**
183
- * <p>The requested endpoint was invalid.</p>
184
- */
185
- export interface InvalidEndpointException extends __SmithyException, $MetadataBearer {
186
- name: "InvalidEndpointException";
187
- $fault: "client";
188
- Message?: string;
189
- }
190
-
191
- export namespace InvalidEndpointException {
192
- /**
193
- * @internal
194
- */
195
- export const filterSensitiveLog = (obj: InvalidEndpointException): any => ({
196
- ...obj,
197
- });
198
- }
199
-
200
- /**
201
- * <p> Instance quota of resource exceeded for this account.</p>
202
- */
203
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
204
- name: "ServiceQuotaExceededException";
205
- $fault: "client";
206
- Message?: string;
207
- }
208
-
209
- export namespace ServiceQuotaExceededException {
210
- /**
211
- * @internal
212
- */
213
- export const filterSensitiveLog = (obj: ServiceQuotaExceededException): any => ({
214
- ...obj,
215
- });
216
- }
217
-
218
- /**
219
- * <p> Too many requests were made by a user exceeding service quotas. The request was throttled.</p>
220
- */
221
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
222
- name: "ThrottlingException";
223
- $fault: "client";
224
- Message: string | undefined;
225
- }
226
-
227
- export namespace ThrottlingException {
228
- /**
229
- * @internal
230
- */
231
- export const filterSensitiveLog = (obj: ThrottlingException): any => ({
232
- ...obj,
233
- });
234
- }
235
-
236
- /**
237
- * <p> Invalid or malformed request.</p>
238
- */
239
- export interface ValidationException extends __SmithyException, $MetadataBearer {
240
- name: "ValidationException";
241
- $fault: "client";
242
- Message: string | undefined;
243
- }
244
-
245
- export namespace ValidationException {
246
- /**
247
- * @internal
248
- */
249
- export const filterSensitiveLog = (obj: ValidationException): any => ({
250
- ...obj,
251
- });
252
- }
253
-
254
- /**
255
- * <p>Retention properties contain the duration for which your time series data must be stored in the magnetic store and the memory store.
256
- * </p>
257
- */
258
- export interface RetentionProperties {
259
- /**
260
- * <p>The duration for which data must be stored in the memory store. </p>
261
- */
262
- MemoryStoreRetentionPeriodInHours: number | undefined;
263
-
264
- /**
265
- * <p>The duration for which data must be stored in the magnetic store. </p>
266
- */
267
- MagneticStoreRetentionPeriodInDays: number | undefined;
268
- }
269
-
270
- export namespace RetentionProperties {
271
- /**
272
- * @internal
273
- */
274
- export const filterSensitiveLog = (obj: RetentionProperties): any => ({
275
- ...obj,
276
- });
277
- }
278
-
279
- export interface CreateTableRequest {
280
- /**
281
- * <p>The name of the Timestream database.</p>
282
- */
283
- DatabaseName: string | undefined;
284
-
285
- /**
286
- * <p>The name of the Timestream table.</p>
287
- */
288
- TableName: string | undefined;
289
-
290
- /**
291
- * <p>The duration for which your time series data must be stored in the memory store and the magnetic store.</p>
292
- */
293
- RetentionProperties?: RetentionProperties;
294
-
295
- /**
296
- * <p>
297
- * A list of key-value pairs to label the table.
298
- * </p>
299
- */
300
- Tags?: Tag[];
301
- }
302
-
303
- export namespace CreateTableRequest {
304
- /**
305
- * @internal
306
- */
307
- export const filterSensitiveLog = (obj: CreateTableRequest): any => ({
308
- ...obj,
309
- });
310
- }
311
-
312
- export enum TableStatus {
313
- ACTIVE = "ACTIVE",
314
- DELETING = "DELETING",
315
- }
316
-
317
- /**
318
- * <p>Table represents a database table in Timestream. Tables contain one or more related time series. You can modify the retention duration of the memory store and the magnetic store for a table.
319
- * </p>
320
- */
321
- export interface Table {
322
- /**
323
- * <p>The Amazon Resource Name that uniquely identifies this table.</p>
324
- */
325
- Arn?: string;
326
-
327
- /**
328
- * <p>The name of the Timestream table.</p>
329
- */
330
- TableName?: string;
331
-
332
- /**
333
- * <p>The name of the Timestream database that contains this table.</p>
334
- */
335
- DatabaseName?: string;
336
-
337
- /**
338
- * <p>The current state of the table:</p>
339
- * <ul>
340
- * <li>
341
- * <p>
342
- * <code>DELETING</code> - The table is being deleted.</p>
343
- * </li>
344
- * <li>
345
- * <p>
346
- * <code>ACTIVE</code> - The table is ready for use.</p>
347
- * </li>
348
- * </ul>
349
- */
350
- TableStatus?: TableStatus | string;
351
-
352
- /**
353
- * <p>The retention duration for the memory store and magnetic store.</p>
354
- */
355
- RetentionProperties?: RetentionProperties;
356
-
357
- /**
358
- * <p>The time when the Timestream table was created. </p>
359
- */
360
- CreationTime?: Date;
361
-
362
- /**
363
- * <p>The time when the Timestream table was last updated.</p>
364
- */
365
- LastUpdatedTime?: Date;
366
- }
367
-
368
- export namespace Table {
369
- /**
370
- * @internal
371
- */
372
- export const filterSensitiveLog = (obj: Table): any => ({
373
- ...obj,
374
- });
375
- }
376
-
377
- export interface CreateTableResponse {
378
- /**
379
- * <p>The newly created Timestream table.</p>
380
- */
381
- Table?: Table;
382
- }
383
-
384
- export namespace CreateTableResponse {
385
- /**
386
- * @internal
387
- */
388
- export const filterSensitiveLog = (obj: CreateTableResponse): any => ({
389
- ...obj,
390
- });
391
- }
392
-
393
- /**
394
- * <p>The operation tried to access a nonexistent resource. The resource might not be specified correctly, or its status might not be ACTIVE.</p>
395
- */
396
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
397
- name: "ResourceNotFoundException";
398
- $fault: "client";
399
- Message?: string;
400
- }
401
-
402
- export namespace ResourceNotFoundException {
403
- /**
404
- * @internal
405
- */
406
- export const filterSensitiveLog = (obj: ResourceNotFoundException): any => ({
407
- ...obj,
408
- });
409
- }
410
-
411
- export interface DeleteDatabaseRequest {
412
- /**
413
- * <p>The name of the Timestream database to be deleted.</p>
414
- */
415
- DatabaseName: string | undefined;
416
- }
417
-
418
- export namespace DeleteDatabaseRequest {
419
- /**
420
- * @internal
421
- */
422
- export const filterSensitiveLog = (obj: DeleteDatabaseRequest): any => ({
423
- ...obj,
424
- });
425
- }
426
-
427
- export interface DeleteTableRequest {
428
- /**
429
- * <p>The name of the database where the Timestream database is to be deleted.</p>
430
- */
431
- DatabaseName: string | undefined;
432
-
433
- /**
434
- * <p>The name of the Timestream table to be deleted.</p>
435
- */
436
- TableName: string | undefined;
437
- }
438
-
439
- export namespace DeleteTableRequest {
440
- /**
441
- * @internal
442
- */
443
- export const filterSensitiveLog = (obj: DeleteTableRequest): any => ({
444
- ...obj,
445
- });
446
- }
447
-
448
- export interface DescribeDatabaseRequest {
449
- /**
450
- * <p>The name of the Timestream database.</p>
451
- */
452
- DatabaseName: string | undefined;
453
- }
454
-
455
- export namespace DescribeDatabaseRequest {
456
- /**
457
- * @internal
458
- */
459
- export const filterSensitiveLog = (obj: DescribeDatabaseRequest): any => ({
460
- ...obj,
461
- });
462
- }
463
-
464
- export interface DescribeDatabaseResponse {
465
- /**
466
- * <p>The name of the Timestream table.</p>
467
- */
468
- Database?: Database;
469
- }
470
-
471
- export namespace DescribeDatabaseResponse {
472
- /**
473
- * @internal
474
- */
475
- export const filterSensitiveLog = (obj: DescribeDatabaseResponse): any => ({
476
- ...obj,
477
- });
478
- }
479
-
480
- export interface DescribeEndpointsRequest {}
481
-
482
- export namespace DescribeEndpointsRequest {
483
- /**
484
- * @internal
485
- */
486
- export const filterSensitiveLog = (obj: DescribeEndpointsRequest): any => ({
487
- ...obj,
488
- });
489
- }
490
-
491
- /**
492
- * <p>Represents an available endpoint against which to make API calls agaisnt, as well as the TTL for that endpoint.</p>
493
- */
494
- export interface Endpoint {
495
- /**
496
- * <p>An endpoint address.</p>
497
- */
498
- Address: string | undefined;
499
-
500
- /**
501
- * <p>The TTL for the endpoint, in minutes.</p>
502
- */
503
- CachePeriodInMinutes: number | undefined;
504
- }
505
-
506
- export namespace Endpoint {
507
- /**
508
- * @internal
509
- */
510
- export const filterSensitiveLog = (obj: Endpoint): any => ({
511
- ...obj,
512
- });
513
- }
514
-
515
- export interface DescribeEndpointsResponse {
516
- /**
517
- * <p>An <code>Endpoints</code> object is returned when a <code>DescribeEndpoints</code> request is made.</p>
518
- */
519
- Endpoints: Endpoint[] | undefined;
520
- }
521
-
522
- export namespace DescribeEndpointsResponse {
523
- /**
524
- * @internal
525
- */
526
- export const filterSensitiveLog = (obj: DescribeEndpointsResponse): any => ({
527
- ...obj,
528
- });
529
- }
530
-
531
- export interface DescribeTableRequest {
532
- /**
533
- * <p>The name of the Timestream database.</p>
534
- */
535
- DatabaseName: string | undefined;
536
-
537
- /**
538
- * <p>The name of the Timestream table.</p>
539
- */
540
- TableName: string | undefined;
541
- }
542
-
543
- export namespace DescribeTableRequest {
544
- /**
545
- * @internal
546
- */
547
- export const filterSensitiveLog = (obj: DescribeTableRequest): any => ({
548
- ...obj,
549
- });
550
- }
551
-
552
- export interface DescribeTableResponse {
553
- /**
554
- * <p>The Timestream table.</p>
555
- */
556
- Table?: Table;
557
- }
558
-
559
- export namespace DescribeTableResponse {
560
- /**
561
- * @internal
562
- */
563
- export const filterSensitiveLog = (obj: DescribeTableResponse): any => ({
564
- ...obj,
565
- });
566
- }
567
-
568
- export enum DimensionValueType {
569
- VARCHAR = "VARCHAR",
570
- }
571
-
572
- /**
573
- * <p>Dimension represents the meta data attributes of the time series. For example, the name and availability zone of an EC2 instance or the name of the manufacturer of a wind turbine are dimensions. </p>
574
- */
575
- export interface Dimension {
576
- /**
577
- * <p>
578
- * Dimension represents the meta data attributes of the time series.
579
- * For example, the name and availability zone of an EC2 instance or
580
- * the name of the manufacturer of a wind turbine are dimensions.
581
- *
582
- * </p>
583
- * <p>For constraints on Dimension names,
584
- * see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html#limits.naming">Naming Constraints</a>.</p>
585
- */
586
- Name: string | undefined;
587
-
588
- /**
589
- * <p>The value of the dimension.</p>
590
- */
591
- Value: string | undefined;
592
-
593
- /**
594
- * <p>The data type of the dimension for the time series data point.</p>
595
- */
596
- DimensionValueType?: DimensionValueType | string;
597
- }
598
-
599
- export namespace Dimension {
600
- /**
601
- * @internal
602
- */
603
- export const filterSensitiveLog = (obj: Dimension): any => ({
604
- ...obj,
605
- });
606
- }
607
-
608
- export interface ListDatabasesRequest {
609
- /**
610
- * <p>The pagination token. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.</p>
611
- */
612
- NextToken?: string;
613
-
614
- /**
615
- * <p>The total number of items to return in the output. If the total number of items available is more than the value specified, a NextToken is provided in the output. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.</p>
616
- */
617
- MaxResults?: number;
618
- }
619
-
620
- export namespace ListDatabasesRequest {
621
- /**
622
- * @internal
623
- */
624
- export const filterSensitiveLog = (obj: ListDatabasesRequest): any => ({
625
- ...obj,
626
- });
627
- }
628
-
629
- export interface ListDatabasesResponse {
630
- /**
631
- * <p>A list of database names.</p>
632
- */
633
- Databases?: Database[];
634
-
635
- /**
636
- * <p>The pagination token. This parameter is returned when the response is truncated.</p>
637
- */
638
- NextToken?: string;
639
- }
640
-
641
- export namespace ListDatabasesResponse {
642
- /**
643
- * @internal
644
- */
645
- export const filterSensitiveLog = (obj: ListDatabasesResponse): any => ({
646
- ...obj,
647
- });
648
- }
649
-
650
- export interface ListTablesRequest {
651
- /**
652
- * <p>The name of the Timestream database.</p>
653
- */
654
- DatabaseName?: string;
655
-
656
- /**
657
- * <p>The pagination token. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.</p>
658
- */
659
- NextToken?: string;
660
-
661
- /**
662
- * <p>The total number of items to return in the output. If the total number of items available is more than the value specified, a NextToken is provided in the output. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.</p>
663
- */
664
- MaxResults?: number;
665
- }
666
-
667
- export namespace ListTablesRequest {
668
- /**
669
- * @internal
670
- */
671
- export const filterSensitiveLog = (obj: ListTablesRequest): any => ({
672
- ...obj,
673
- });
674
- }
675
-
676
- export interface ListTablesResponse {
677
- /**
678
- * <p>A list of tables.</p>
679
- */
680
- Tables?: Table[];
681
-
682
- /**
683
- * <p>A token to specify where to start paginating. This is the NextToken from a previously truncated response.</p>
684
- */
685
- NextToken?: string;
686
- }
687
-
688
- export namespace ListTablesResponse {
689
- /**
690
- * @internal
691
- */
692
- export const filterSensitiveLog = (obj: ListTablesResponse): any => ({
693
- ...obj,
694
- });
695
- }
696
-
697
- export interface ListTagsForResourceRequest {
698
- /**
699
- * <p>
700
- * The Timestream resource with tags to be listed. This value is an Amazon Resource Name (ARN).
701
- * </p>
702
- */
703
- ResourceARN: string | undefined;
704
- }
705
-
706
- export namespace ListTagsForResourceRequest {
707
- /**
708
- * @internal
709
- */
710
- export const filterSensitiveLog = (obj: ListTagsForResourceRequest): any => ({
711
- ...obj,
712
- });
713
- }
714
-
715
- export interface ListTagsForResourceResponse {
716
- /**
717
- * <p>
718
- * The tags currently associated with the Timestream resource.
719
- * </p>
720
- */
721
- Tags?: Tag[];
722
- }
723
-
724
- export namespace ListTagsForResourceResponse {
725
- /**
726
- * @internal
727
- */
728
- export const filterSensitiveLog = (obj: ListTagsForResourceResponse): any => ({
729
- ...obj,
730
- });
731
- }
732
-
733
- export enum MeasureValueType {
734
- BIGINT = "BIGINT",
735
- BOOLEAN = "BOOLEAN",
736
- DOUBLE = "DOUBLE",
737
- VARCHAR = "VARCHAR",
738
- }
739
-
740
- export enum TimeUnit {
741
- MICROSECONDS = "MICROSECONDS",
742
- MILLISECONDS = "MILLISECONDS",
743
- NANOSECONDS = "NANOSECONDS",
744
- SECONDS = "SECONDS",
745
- }
746
-
747
- /**
748
- * <p>Record represents a time series data point being written into
749
- * Timestream. Each record contains an array of dimensions. Dimensions
750
- * represent the meta data attributes of a time series data point such as
751
- * the instance name or availability zone of an EC2 instance. A record also
752
- * contains the measure name which is the name of the measure being collected
753
- * for example the CPU utilization of an EC2 instance. A record also contains
754
- * the measure value and the value type which is the data type of the measure value.
755
- * In addition, the record contains the timestamp when the measure was collected that
756
- * the timestamp unit which represents the granularity of the timestamp.
757
- * </p>
758
- */
759
- export interface _Record {
760
- /**
761
- * <p>Contains the list of dimensions for time series data points.</p>
762
- */
763
- Dimensions?: Dimension[];
764
-
765
- /**
766
- * <p>Measure 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. </p>
767
- */
768
- MeasureName?: string;
769
-
770
- /**
771
- * <p>
772
- * Contains the measure value for the time series data point.
773
- * </p>
774
- */
775
- MeasureValue?: string;
776
-
777
- /**
778
- * <p>
779
- * Contains the data type of the measure value for the time series data point.
780
- * </p>
781
- */
782
- MeasureValueType?: MeasureValueType | string;
783
-
784
- /**
785
- * <p>
786
- * Contains the time at which the measure value for the data point was collected.
787
- * The time value plus the unit provides the time elapsed since the epoch.
788
- * For example, if the time value is <code>12345</code> and the unit is <code>ms</code>,
789
- * then <code>12345 ms</code> have elapsed since the epoch.
790
- * </p>
791
- */
792
- Time?: string;
793
-
794
- /**
795
- * <p>
796
- * The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds or other supported values.
797
- * </p>
798
- */
799
- TimeUnit?: TimeUnit | string;
800
-
801
- /**
802
- * <p>64-bit attribute used for record updates.
803
- * Write requests for duplicate data with a higher version number will update the existing measure value and version.
804
- * In cases where the measure value is the same, <code>Version</code> will still be updated . Default value is to 1.</p>
805
- */
806
- Version?: number;
807
- }
808
-
809
- export namespace _Record {
810
- /**
811
- * @internal
812
- */
813
- export const filterSensitiveLog = (obj: _Record): any => ({
814
- ...obj,
815
- });
816
- }
817
-
818
- /**
819
- * <p>
820
- * Records that were not successfully inserted into Timestream due to data validation issues
821
- * that must be resolved prior to reinserting time series data into the system.
822
- * </p>
823
- */
824
- export interface RejectedRecord {
825
- /**
826
- * <p>
827
- * The index of the record in the input request for WriteRecords. Indexes begin with 0.
828
- * </p>
829
- */
830
- RecordIndex?: number;
831
-
832
- /**
833
- * <p>
834
- * The reason why a record was not successfully inserted into Timestream. Possible causes of failure include:
835
- * </p>
836
- * <ul>
837
- * <li>
838
- * <p>
839
- * Records with duplicate data where there are multiple records with the same dimensions,
840
- * timestamps, and measure names but different measure values.
841
- * </p>
842
- * </li>
843
- * <li>
844
- * <p>
845
- * Records with timestamps that lie outside the retention duration of the memory store
846
- * </p>
847
- * <note>
848
- * <p>When the retention window is updated, you will receive a <code>RejectedRecords</code> exception
849
- * if you immediately try to ingest data within the new window.
850
- * To avoid a <code>RejectedRecords</code> exception,
851
- * wait until the duration of the new window to ingest new data.
852
- * For further information,
853
- * see
854
- * <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/best-practices.html#configuration">
855
- * Best Practices for Configuring Timestream</a>
856
- * and
857
- * <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/storage.html">the explanation of how storage works in Timestream</a>.</p>
858
- * </note>
859
- * </li>
860
- * <li>
861
- * <p>
862
- * Records with dimensions or measures that exceed the Timestream defined limits.
863
- * </p>
864
- * </li>
865
- * </ul>
866
- * <p>
867
- * For more information, see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Access Management</a> in the Timestream Developer Guide.
868
- * </p>
869
- */
870
- Reason?: string;
871
-
872
- /**
873
- * <p>The existing version of the record.
874
- * This value is populated in scenarios where an identical record exists with a higher version than the version in the write request.</p>
875
- */
876
- ExistingVersion?: number;
877
- }
878
-
879
- export namespace RejectedRecord {
880
- /**
881
- * @internal
882
- */
883
- export const filterSensitiveLog = (obj: RejectedRecord): any => ({
884
- ...obj,
885
- });
886
- }
887
-
888
- /**
889
- * <p>
890
- * WriteRecords would throw this exception in the following cases:
891
- * </p>
892
- * <ul>
893
- * <li>
894
- * <p>
895
- * Records with duplicate data where there are multiple records with the same dimensions,
896
- * timestamps, and measure names but different measure values.
897
- * </p>
898
- * </li>
899
- * <li>
900
- * <p>
901
- * Records with timestamps that lie outside the retention duration of the memory store
902
- * </p>
903
- * </li>
904
- * <li>
905
- * <p>
906
- * Records with dimensions or measures that exceed the Timestream defined limits.
907
- * </p>
908
- * </li>
909
- * </ul>
910
- * <p>
911
- * For more information, see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Access Management</a> in the Timestream Developer Guide.
912
- * </p>
913
- */
914
- export interface RejectedRecordsException extends __SmithyException, $MetadataBearer {
915
- name: "RejectedRecordsException";
916
- $fault: "client";
917
- Message?: string;
918
- RejectedRecords?: RejectedRecord[];
919
- }
920
-
921
- export namespace RejectedRecordsException {
922
- /**
923
- * @internal
924
- */
925
- export const filterSensitiveLog = (obj: RejectedRecordsException): any => ({
926
- ...obj,
927
- });
928
- }
929
-
930
- export interface TagResourceRequest {
931
- /**
932
- * <p>
933
- * Identifies the Timestream resource to which tags should be added. This value is an
934
- * Amazon Resource Name (ARN).
935
- * </p>
936
- */
937
- ResourceARN: string | undefined;
938
-
939
- /**
940
- * <p>
941
- * The tags to be assigned to the Timestream resource.
942
- * </p>
943
- */
944
- Tags: Tag[] | undefined;
945
- }
946
-
947
- export namespace TagResourceRequest {
948
- /**
949
- * @internal
950
- */
951
- export const filterSensitiveLog = (obj: TagResourceRequest): any => ({
952
- ...obj,
953
- });
954
- }
955
-
956
- export interface TagResourceResponse {}
957
-
958
- export namespace TagResourceResponse {
959
- /**
960
- * @internal
961
- */
962
- export const filterSensitiveLog = (obj: TagResourceResponse): any => ({
963
- ...obj,
964
- });
965
- }
966
-
967
- export interface UntagResourceRequest {
968
- /**
969
- * <p>
970
- * The Timestream resource that the tags will be removed from. This value
971
- * is an Amazon Resource Name (ARN).
972
- * </p>
973
- */
974
- ResourceARN: string | undefined;
975
-
976
- /**
977
- * <p>
978
- * A list of tags keys. Existing tags of the resource whose keys are members of this
979
- * list will be removed from the Timestream resource.
980
- * </p>
981
- */
982
- TagKeys: string[] | undefined;
983
- }
984
-
985
- export namespace UntagResourceRequest {
986
- /**
987
- * @internal
988
- */
989
- export const filterSensitiveLog = (obj: UntagResourceRequest): any => ({
990
- ...obj,
991
- });
992
- }
993
-
994
- export interface UntagResourceResponse {}
995
-
996
- export namespace UntagResourceResponse {
997
- /**
998
- * @internal
999
- */
1000
- export const filterSensitiveLog = (obj: UntagResourceResponse): any => ({
1001
- ...obj,
1002
- });
1003
- }
1004
-
1005
- export interface UpdateDatabaseRequest {
1006
- /**
1007
- * <p>
1008
- * The name of the database.
1009
- * </p>
1010
- */
1011
- DatabaseName: string | undefined;
1012
-
1013
- /**
1014
- * <p>
1015
- * The identifier of the new KMS key (<code>KmsKeyId</code>) to be used to encrypt the data stored in the database.
1016
- * If the <code>KmsKeyId</code> currently registered with the database is the same as the <code>KmsKeyId</code> in the
1017
- * request, there will not be any update.
1018
- * </p>
1019
- * <p>You can specify the <code>KmsKeyId</code> using any of the following:</p>
1020
- * <ul>
1021
- * <li>
1022
- * <p>Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
1023
- * </p>
1024
- * </li>
1025
- * <li>
1026
- * <p>Key ARN: <code>arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
1027
- * </p>
1028
- * </li>
1029
- * <li>
1030
- * <p>Alias name: <code>alias/ExampleAlias</code>
1031
- * </p>
1032
- * </li>
1033
- * <li>
1034
- * <p>Alias ARN: <code>arn:aws:kms:us-east-1:111122223333:alias/ExampleAlias</code>
1035
- * </p>
1036
- * </li>
1037
- * </ul>
1038
- */
1039
- KmsKeyId: string | undefined;
1040
- }
1041
-
1042
- export namespace UpdateDatabaseRequest {
1043
- /**
1044
- * @internal
1045
- */
1046
- export const filterSensitiveLog = (obj: UpdateDatabaseRequest): any => ({
1047
- ...obj,
1048
- });
1049
- }
1050
-
1051
- export interface UpdateDatabaseResponse {
1052
- /**
1053
- * <p>A top level container for a table. Databases and tables are the
1054
- * fundamental management concepts in Amazon Timestream. All tables in a
1055
- * database are encrypted with the same KMS key.</p>
1056
- */
1057
- Database?: Database;
1058
- }
1059
-
1060
- export namespace UpdateDatabaseResponse {
1061
- /**
1062
- * @internal
1063
- */
1064
- export const filterSensitiveLog = (obj: UpdateDatabaseResponse): any => ({
1065
- ...obj,
1066
- });
1067
- }
1068
-
1069
- export interface UpdateTableRequest {
1070
- /**
1071
- * <p>The name of the Timestream database.</p>
1072
- */
1073
- DatabaseName: string | undefined;
1074
-
1075
- /**
1076
- * <p>The name of the Timesream table.</p>
1077
- */
1078
- TableName: string | undefined;
1079
-
1080
- /**
1081
- * <p>The retention duration of the memory store and the magnetic store.</p>
1082
- */
1083
- RetentionProperties: RetentionProperties | undefined;
1084
- }
1085
-
1086
- export namespace UpdateTableRequest {
1087
- /**
1088
- * @internal
1089
- */
1090
- export const filterSensitiveLog = (obj: UpdateTableRequest): any => ({
1091
- ...obj,
1092
- });
1093
- }
1094
-
1095
- export interface UpdateTableResponse {
1096
- /**
1097
- * <p>The updated Timestream table.</p>
1098
- */
1099
- Table?: Table;
1100
- }
1101
-
1102
- export namespace UpdateTableResponse {
1103
- /**
1104
- * @internal
1105
- */
1106
- export const filterSensitiveLog = (obj: UpdateTableResponse): any => ({
1107
- ...obj,
1108
- });
1109
- }
1110
-
1111
- export interface WriteRecordsRequest {
1112
- /**
1113
- * <p>The name of the Timestream database.</p>
1114
- */
1115
- DatabaseName: string | undefined;
1116
-
1117
- /**
1118
- * <p>The name of the Timesream table.</p>
1119
- */
1120
- TableName: string | undefined;
1121
-
1122
- /**
1123
- * <p>A record containing the common measure and dimension attributes
1124
- * shared across all the records in the request. The measure and dimension
1125
- * attributes specified in here will be merged with the measure and dimension
1126
- * attributes in the records object when the data is written into Timestream.
1127
- * </p>
1128
- */
1129
- CommonAttributes?: _Record;
1130
-
1131
- /**
1132
- * <p>An array of records containing the unique dimension and measure
1133
- * attributes for each time series data point.
1134
- * </p>
1135
- */
1136
- Records: _Record[] | undefined;
1137
- }
1138
-
1139
- export namespace WriteRecordsRequest {
1140
- /**
1141
- * @internal
1142
- */
1143
- export const filterSensitiveLog = (obj: WriteRecordsRequest): any => ({
1144
- ...obj,
1145
- });
1146
- }