@aws-sdk/client-timestream-write 3.315.0 → 3.316.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TimestreamWrite = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CreateBatchLoadTaskCommand_1 = require("./commands/CreateBatchLoadTaskCommand");
5
6
  const CreateDatabaseCommand_1 = require("./commands/CreateDatabaseCommand");
6
7
  const CreateTableCommand_1 = require("./commands/CreateTableCommand");
@@ -21,272 +22,28 @@ const UpdateDatabaseCommand_1 = require("./commands/UpdateDatabaseCommand");
21
22
  const UpdateTableCommand_1 = require("./commands/UpdateTableCommand");
22
23
  const WriteRecordsCommand_1 = require("./commands/WriteRecordsCommand");
23
24
  const TimestreamWriteClient_1 = require("./TimestreamWriteClient");
25
+ const commands = {
26
+ CreateBatchLoadTaskCommand: CreateBatchLoadTaskCommand_1.CreateBatchLoadTaskCommand,
27
+ CreateDatabaseCommand: CreateDatabaseCommand_1.CreateDatabaseCommand,
28
+ CreateTableCommand: CreateTableCommand_1.CreateTableCommand,
29
+ DeleteDatabaseCommand: DeleteDatabaseCommand_1.DeleteDatabaseCommand,
30
+ DeleteTableCommand: DeleteTableCommand_1.DeleteTableCommand,
31
+ DescribeBatchLoadTaskCommand: DescribeBatchLoadTaskCommand_1.DescribeBatchLoadTaskCommand,
32
+ DescribeDatabaseCommand: DescribeDatabaseCommand_1.DescribeDatabaseCommand,
33
+ DescribeEndpointsCommand: DescribeEndpointsCommand_1.DescribeEndpointsCommand,
34
+ DescribeTableCommand: DescribeTableCommand_1.DescribeTableCommand,
35
+ ListBatchLoadTasksCommand: ListBatchLoadTasksCommand_1.ListBatchLoadTasksCommand,
36
+ ListDatabasesCommand: ListDatabasesCommand_1.ListDatabasesCommand,
37
+ ListTablesCommand: ListTablesCommand_1.ListTablesCommand,
38
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
39
+ ResumeBatchLoadTaskCommand: ResumeBatchLoadTaskCommand_1.ResumeBatchLoadTaskCommand,
40
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
41
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
42
+ UpdateDatabaseCommand: UpdateDatabaseCommand_1.UpdateDatabaseCommand,
43
+ UpdateTableCommand: UpdateTableCommand_1.UpdateTableCommand,
44
+ WriteRecordsCommand: WriteRecordsCommand_1.WriteRecordsCommand,
45
+ };
24
46
  class TimestreamWrite extends TimestreamWriteClient_1.TimestreamWriteClient {
25
- createBatchLoadTask(args, optionsOrCb, cb) {
26
- const command = new CreateBatchLoadTaskCommand_1.CreateBatchLoadTaskCommand(args);
27
- if (typeof optionsOrCb === "function") {
28
- this.send(command, optionsOrCb);
29
- }
30
- else if (typeof cb === "function") {
31
- if (typeof optionsOrCb !== "object")
32
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
33
- this.send(command, optionsOrCb || {}, cb);
34
- }
35
- else {
36
- return this.send(command, optionsOrCb);
37
- }
38
- }
39
- createDatabase(args, optionsOrCb, cb) {
40
- const command = new CreateDatabaseCommand_1.CreateDatabaseCommand(args);
41
- if (typeof optionsOrCb === "function") {
42
- this.send(command, optionsOrCb);
43
- }
44
- else if (typeof cb === "function") {
45
- if (typeof optionsOrCb !== "object")
46
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
47
- this.send(command, optionsOrCb || {}, cb);
48
- }
49
- else {
50
- return this.send(command, optionsOrCb);
51
- }
52
- }
53
- createTable(args, optionsOrCb, cb) {
54
- const command = new CreateTableCommand_1.CreateTableCommand(args);
55
- if (typeof optionsOrCb === "function") {
56
- this.send(command, optionsOrCb);
57
- }
58
- else if (typeof cb === "function") {
59
- if (typeof optionsOrCb !== "object")
60
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
61
- this.send(command, optionsOrCb || {}, cb);
62
- }
63
- else {
64
- return this.send(command, optionsOrCb);
65
- }
66
- }
67
- deleteDatabase(args, optionsOrCb, cb) {
68
- const command = new DeleteDatabaseCommand_1.DeleteDatabaseCommand(args);
69
- if (typeof optionsOrCb === "function") {
70
- this.send(command, optionsOrCb);
71
- }
72
- else if (typeof cb === "function") {
73
- if (typeof optionsOrCb !== "object")
74
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
75
- this.send(command, optionsOrCb || {}, cb);
76
- }
77
- else {
78
- return this.send(command, optionsOrCb);
79
- }
80
- }
81
- deleteTable(args, optionsOrCb, cb) {
82
- const command = new DeleteTableCommand_1.DeleteTableCommand(args);
83
- if (typeof optionsOrCb === "function") {
84
- this.send(command, optionsOrCb);
85
- }
86
- else if (typeof cb === "function") {
87
- if (typeof optionsOrCb !== "object")
88
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
89
- this.send(command, optionsOrCb || {}, cb);
90
- }
91
- else {
92
- return this.send(command, optionsOrCb);
93
- }
94
- }
95
- describeBatchLoadTask(args, optionsOrCb, cb) {
96
- const command = new DescribeBatchLoadTaskCommand_1.DescribeBatchLoadTaskCommand(args);
97
- if (typeof optionsOrCb === "function") {
98
- this.send(command, optionsOrCb);
99
- }
100
- else if (typeof cb === "function") {
101
- if (typeof optionsOrCb !== "object")
102
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
103
- this.send(command, optionsOrCb || {}, cb);
104
- }
105
- else {
106
- return this.send(command, optionsOrCb);
107
- }
108
- }
109
- describeDatabase(args, optionsOrCb, cb) {
110
- const command = new DescribeDatabaseCommand_1.DescribeDatabaseCommand(args);
111
- if (typeof optionsOrCb === "function") {
112
- this.send(command, optionsOrCb);
113
- }
114
- else if (typeof cb === "function") {
115
- if (typeof optionsOrCb !== "object")
116
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
117
- this.send(command, optionsOrCb || {}, cb);
118
- }
119
- else {
120
- return this.send(command, optionsOrCb);
121
- }
122
- }
123
- describeEndpoints(args, optionsOrCb, cb) {
124
- const command = new DescribeEndpointsCommand_1.DescribeEndpointsCommand(args);
125
- if (typeof optionsOrCb === "function") {
126
- this.send(command, optionsOrCb);
127
- }
128
- else if (typeof cb === "function") {
129
- if (typeof optionsOrCb !== "object")
130
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
131
- this.send(command, optionsOrCb || {}, cb);
132
- }
133
- else {
134
- return this.send(command, optionsOrCb);
135
- }
136
- }
137
- describeTable(args, optionsOrCb, cb) {
138
- const command = new DescribeTableCommand_1.DescribeTableCommand(args);
139
- if (typeof optionsOrCb === "function") {
140
- this.send(command, optionsOrCb);
141
- }
142
- else if (typeof cb === "function") {
143
- if (typeof optionsOrCb !== "object")
144
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
145
- this.send(command, optionsOrCb || {}, cb);
146
- }
147
- else {
148
- return this.send(command, optionsOrCb);
149
- }
150
- }
151
- listBatchLoadTasks(args, optionsOrCb, cb) {
152
- const command = new ListBatchLoadTasksCommand_1.ListBatchLoadTasksCommand(args);
153
- if (typeof optionsOrCb === "function") {
154
- this.send(command, optionsOrCb);
155
- }
156
- else if (typeof cb === "function") {
157
- if (typeof optionsOrCb !== "object")
158
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
159
- this.send(command, optionsOrCb || {}, cb);
160
- }
161
- else {
162
- return this.send(command, optionsOrCb);
163
- }
164
- }
165
- listDatabases(args, optionsOrCb, cb) {
166
- const command = new ListDatabasesCommand_1.ListDatabasesCommand(args);
167
- if (typeof optionsOrCb === "function") {
168
- this.send(command, optionsOrCb);
169
- }
170
- else if (typeof cb === "function") {
171
- if (typeof optionsOrCb !== "object")
172
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
173
- this.send(command, optionsOrCb || {}, cb);
174
- }
175
- else {
176
- return this.send(command, optionsOrCb);
177
- }
178
- }
179
- listTables(args, optionsOrCb, cb) {
180
- const command = new ListTablesCommand_1.ListTablesCommand(args);
181
- if (typeof optionsOrCb === "function") {
182
- this.send(command, optionsOrCb);
183
- }
184
- else if (typeof cb === "function") {
185
- if (typeof optionsOrCb !== "object")
186
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
187
- this.send(command, optionsOrCb || {}, cb);
188
- }
189
- else {
190
- return this.send(command, optionsOrCb);
191
- }
192
- }
193
- listTagsForResource(args, optionsOrCb, cb) {
194
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
195
- if (typeof optionsOrCb === "function") {
196
- this.send(command, optionsOrCb);
197
- }
198
- else if (typeof cb === "function") {
199
- if (typeof optionsOrCb !== "object")
200
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
201
- this.send(command, optionsOrCb || {}, cb);
202
- }
203
- else {
204
- return this.send(command, optionsOrCb);
205
- }
206
- }
207
- resumeBatchLoadTask(args, optionsOrCb, cb) {
208
- const command = new ResumeBatchLoadTaskCommand_1.ResumeBatchLoadTaskCommand(args);
209
- if (typeof optionsOrCb === "function") {
210
- this.send(command, optionsOrCb);
211
- }
212
- else if (typeof cb === "function") {
213
- if (typeof optionsOrCb !== "object")
214
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
215
- this.send(command, optionsOrCb || {}, cb);
216
- }
217
- else {
218
- return this.send(command, optionsOrCb);
219
- }
220
- }
221
- tagResource(args, optionsOrCb, cb) {
222
- const command = new TagResourceCommand_1.TagResourceCommand(args);
223
- if (typeof optionsOrCb === "function") {
224
- this.send(command, optionsOrCb);
225
- }
226
- else if (typeof cb === "function") {
227
- if (typeof optionsOrCb !== "object")
228
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
229
- this.send(command, optionsOrCb || {}, cb);
230
- }
231
- else {
232
- return this.send(command, optionsOrCb);
233
- }
234
- }
235
- untagResource(args, optionsOrCb, cb) {
236
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
237
- if (typeof optionsOrCb === "function") {
238
- this.send(command, optionsOrCb);
239
- }
240
- else if (typeof cb === "function") {
241
- if (typeof optionsOrCb !== "object")
242
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
243
- this.send(command, optionsOrCb || {}, cb);
244
- }
245
- else {
246
- return this.send(command, optionsOrCb);
247
- }
248
- }
249
- updateDatabase(args, optionsOrCb, cb) {
250
- const command = new UpdateDatabaseCommand_1.UpdateDatabaseCommand(args);
251
- if (typeof optionsOrCb === "function") {
252
- this.send(command, optionsOrCb);
253
- }
254
- else if (typeof cb === "function") {
255
- if (typeof optionsOrCb !== "object")
256
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
257
- this.send(command, optionsOrCb || {}, cb);
258
- }
259
- else {
260
- return this.send(command, optionsOrCb);
261
- }
262
- }
263
- updateTable(args, optionsOrCb, cb) {
264
- const command = new UpdateTableCommand_1.UpdateTableCommand(args);
265
- if (typeof optionsOrCb === "function") {
266
- this.send(command, optionsOrCb);
267
- }
268
- else if (typeof cb === "function") {
269
- if (typeof optionsOrCb !== "object")
270
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
271
- this.send(command, optionsOrCb || {}, cb);
272
- }
273
- else {
274
- return this.send(command, optionsOrCb);
275
- }
276
- }
277
- writeRecords(args, optionsOrCb, cb) {
278
- const command = new WriteRecordsCommand_1.WriteRecordsCommand(args);
279
- if (typeof optionsOrCb === "function") {
280
- this.send(command, optionsOrCb);
281
- }
282
- else if (typeof cb === "function") {
283
- if (typeof optionsOrCb !== "object")
284
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
285
- this.send(command, optionsOrCb || {}, cb);
286
- }
287
- else {
288
- return this.send(command, optionsOrCb);
289
- }
290
- }
291
47
  }
292
48
  exports.TimestreamWrite = TimestreamWrite;
49
+ (0, smithy_client_1.createAggregatedClient)(commands, TimestreamWrite);
@@ -1119,7 +1119,7 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1119
1119
  };
1120
1120
  const se_CreateBatchLoadTaskRequest = (input, context) => {
1121
1121
  return (0, smithy_client_1.take)(input, {
1122
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
1122
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1123
1123
  DataModelConfiguration: smithy_client_1._json,
1124
1124
  DataSourceConfiguration: smithy_client_1._json,
1125
1125
  RecordVersion: [],
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { CreateBatchLoadTaskCommand, } from "./commands/CreateBatchLoadTaskCommand";
2
3
  import { CreateDatabaseCommand, } from "./commands/CreateDatabaseCommand";
3
4
  import { CreateTableCommand } from "./commands/CreateTableCommand";
@@ -18,271 +19,27 @@ import { UpdateDatabaseCommand, } from "./commands/UpdateDatabaseCommand";
18
19
  import { UpdateTableCommand } from "./commands/UpdateTableCommand";
19
20
  import { WriteRecordsCommand, } from "./commands/WriteRecordsCommand";
20
21
  import { TimestreamWriteClient } from "./TimestreamWriteClient";
22
+ const commands = {
23
+ CreateBatchLoadTaskCommand,
24
+ CreateDatabaseCommand,
25
+ CreateTableCommand,
26
+ DeleteDatabaseCommand,
27
+ DeleteTableCommand,
28
+ DescribeBatchLoadTaskCommand,
29
+ DescribeDatabaseCommand,
30
+ DescribeEndpointsCommand,
31
+ DescribeTableCommand,
32
+ ListBatchLoadTasksCommand,
33
+ ListDatabasesCommand,
34
+ ListTablesCommand,
35
+ ListTagsForResourceCommand,
36
+ ResumeBatchLoadTaskCommand,
37
+ TagResourceCommand,
38
+ UntagResourceCommand,
39
+ UpdateDatabaseCommand,
40
+ UpdateTableCommand,
41
+ WriteRecordsCommand,
42
+ };
21
43
  export class TimestreamWrite extends TimestreamWriteClient {
22
- createBatchLoadTask(args, optionsOrCb, cb) {
23
- const command = new CreateBatchLoadTaskCommand(args);
24
- if (typeof optionsOrCb === "function") {
25
- this.send(command, optionsOrCb);
26
- }
27
- else if (typeof cb === "function") {
28
- if (typeof optionsOrCb !== "object")
29
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
30
- this.send(command, optionsOrCb || {}, cb);
31
- }
32
- else {
33
- return this.send(command, optionsOrCb);
34
- }
35
- }
36
- createDatabase(args, optionsOrCb, cb) {
37
- const command = new CreateDatabaseCommand(args);
38
- if (typeof optionsOrCb === "function") {
39
- this.send(command, optionsOrCb);
40
- }
41
- else if (typeof cb === "function") {
42
- if (typeof optionsOrCb !== "object")
43
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
44
- this.send(command, optionsOrCb || {}, cb);
45
- }
46
- else {
47
- return this.send(command, optionsOrCb);
48
- }
49
- }
50
- createTable(args, optionsOrCb, cb) {
51
- const command = new CreateTableCommand(args);
52
- if (typeof optionsOrCb === "function") {
53
- this.send(command, optionsOrCb);
54
- }
55
- else if (typeof cb === "function") {
56
- if (typeof optionsOrCb !== "object")
57
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
58
- this.send(command, optionsOrCb || {}, cb);
59
- }
60
- else {
61
- return this.send(command, optionsOrCb);
62
- }
63
- }
64
- deleteDatabase(args, optionsOrCb, cb) {
65
- const command = new DeleteDatabaseCommand(args);
66
- if (typeof optionsOrCb === "function") {
67
- this.send(command, optionsOrCb);
68
- }
69
- else if (typeof cb === "function") {
70
- if (typeof optionsOrCb !== "object")
71
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
72
- this.send(command, optionsOrCb || {}, cb);
73
- }
74
- else {
75
- return this.send(command, optionsOrCb);
76
- }
77
- }
78
- deleteTable(args, optionsOrCb, cb) {
79
- const command = new DeleteTableCommand(args);
80
- if (typeof optionsOrCb === "function") {
81
- this.send(command, optionsOrCb);
82
- }
83
- else if (typeof cb === "function") {
84
- if (typeof optionsOrCb !== "object")
85
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
86
- this.send(command, optionsOrCb || {}, cb);
87
- }
88
- else {
89
- return this.send(command, optionsOrCb);
90
- }
91
- }
92
- describeBatchLoadTask(args, optionsOrCb, cb) {
93
- const command = new DescribeBatchLoadTaskCommand(args);
94
- if (typeof optionsOrCb === "function") {
95
- this.send(command, optionsOrCb);
96
- }
97
- else if (typeof cb === "function") {
98
- if (typeof optionsOrCb !== "object")
99
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
100
- this.send(command, optionsOrCb || {}, cb);
101
- }
102
- else {
103
- return this.send(command, optionsOrCb);
104
- }
105
- }
106
- describeDatabase(args, optionsOrCb, cb) {
107
- const command = new DescribeDatabaseCommand(args);
108
- if (typeof optionsOrCb === "function") {
109
- this.send(command, optionsOrCb);
110
- }
111
- else if (typeof cb === "function") {
112
- if (typeof optionsOrCb !== "object")
113
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
114
- this.send(command, optionsOrCb || {}, cb);
115
- }
116
- else {
117
- return this.send(command, optionsOrCb);
118
- }
119
- }
120
- describeEndpoints(args, optionsOrCb, cb) {
121
- const command = new DescribeEndpointsCommand(args);
122
- if (typeof optionsOrCb === "function") {
123
- this.send(command, optionsOrCb);
124
- }
125
- else if (typeof cb === "function") {
126
- if (typeof optionsOrCb !== "object")
127
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
128
- this.send(command, optionsOrCb || {}, cb);
129
- }
130
- else {
131
- return this.send(command, optionsOrCb);
132
- }
133
- }
134
- describeTable(args, optionsOrCb, cb) {
135
- const command = new DescribeTableCommand(args);
136
- if (typeof optionsOrCb === "function") {
137
- this.send(command, optionsOrCb);
138
- }
139
- else if (typeof cb === "function") {
140
- if (typeof optionsOrCb !== "object")
141
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
142
- this.send(command, optionsOrCb || {}, cb);
143
- }
144
- else {
145
- return this.send(command, optionsOrCb);
146
- }
147
- }
148
- listBatchLoadTasks(args, optionsOrCb, cb) {
149
- const command = new ListBatchLoadTasksCommand(args);
150
- if (typeof optionsOrCb === "function") {
151
- this.send(command, optionsOrCb);
152
- }
153
- else if (typeof cb === "function") {
154
- if (typeof optionsOrCb !== "object")
155
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
156
- this.send(command, optionsOrCb || {}, cb);
157
- }
158
- else {
159
- return this.send(command, optionsOrCb);
160
- }
161
- }
162
- listDatabases(args, optionsOrCb, cb) {
163
- const command = new ListDatabasesCommand(args);
164
- if (typeof optionsOrCb === "function") {
165
- this.send(command, optionsOrCb);
166
- }
167
- else if (typeof cb === "function") {
168
- if (typeof optionsOrCb !== "object")
169
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
170
- this.send(command, optionsOrCb || {}, cb);
171
- }
172
- else {
173
- return this.send(command, optionsOrCb);
174
- }
175
- }
176
- listTables(args, optionsOrCb, cb) {
177
- const command = new ListTablesCommand(args);
178
- if (typeof optionsOrCb === "function") {
179
- this.send(command, optionsOrCb);
180
- }
181
- else if (typeof cb === "function") {
182
- if (typeof optionsOrCb !== "object")
183
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
184
- this.send(command, optionsOrCb || {}, cb);
185
- }
186
- else {
187
- return this.send(command, optionsOrCb);
188
- }
189
- }
190
- listTagsForResource(args, optionsOrCb, cb) {
191
- const command = new ListTagsForResourceCommand(args);
192
- if (typeof optionsOrCb === "function") {
193
- this.send(command, optionsOrCb);
194
- }
195
- else if (typeof cb === "function") {
196
- if (typeof optionsOrCb !== "object")
197
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
198
- this.send(command, optionsOrCb || {}, cb);
199
- }
200
- else {
201
- return this.send(command, optionsOrCb);
202
- }
203
- }
204
- resumeBatchLoadTask(args, optionsOrCb, cb) {
205
- const command = new ResumeBatchLoadTaskCommand(args);
206
- if (typeof optionsOrCb === "function") {
207
- this.send(command, optionsOrCb);
208
- }
209
- else if (typeof cb === "function") {
210
- if (typeof optionsOrCb !== "object")
211
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
212
- this.send(command, optionsOrCb || {}, cb);
213
- }
214
- else {
215
- return this.send(command, optionsOrCb);
216
- }
217
- }
218
- tagResource(args, optionsOrCb, cb) {
219
- const command = new TagResourceCommand(args);
220
- if (typeof optionsOrCb === "function") {
221
- this.send(command, optionsOrCb);
222
- }
223
- else if (typeof cb === "function") {
224
- if (typeof optionsOrCb !== "object")
225
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
226
- this.send(command, optionsOrCb || {}, cb);
227
- }
228
- else {
229
- return this.send(command, optionsOrCb);
230
- }
231
- }
232
- untagResource(args, optionsOrCb, cb) {
233
- const command = new UntagResourceCommand(args);
234
- if (typeof optionsOrCb === "function") {
235
- this.send(command, optionsOrCb);
236
- }
237
- else if (typeof cb === "function") {
238
- if (typeof optionsOrCb !== "object")
239
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
240
- this.send(command, optionsOrCb || {}, cb);
241
- }
242
- else {
243
- return this.send(command, optionsOrCb);
244
- }
245
- }
246
- updateDatabase(args, optionsOrCb, cb) {
247
- const command = new UpdateDatabaseCommand(args);
248
- if (typeof optionsOrCb === "function") {
249
- this.send(command, optionsOrCb);
250
- }
251
- else if (typeof cb === "function") {
252
- if (typeof optionsOrCb !== "object")
253
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
254
- this.send(command, optionsOrCb || {}, cb);
255
- }
256
- else {
257
- return this.send(command, optionsOrCb);
258
- }
259
- }
260
- updateTable(args, optionsOrCb, cb) {
261
- const command = new UpdateTableCommand(args);
262
- if (typeof optionsOrCb === "function") {
263
- this.send(command, optionsOrCb);
264
- }
265
- else if (typeof cb === "function") {
266
- if (typeof optionsOrCb !== "object")
267
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
268
- this.send(command, optionsOrCb || {}, cb);
269
- }
270
- else {
271
- return this.send(command, optionsOrCb);
272
- }
273
- }
274
- writeRecords(args, optionsOrCb, cb) {
275
- const command = new WriteRecordsCommand(args);
276
- if (typeof optionsOrCb === "function") {
277
- this.send(command, optionsOrCb);
278
- }
279
- else if (typeof cb === "function") {
280
- if (typeof optionsOrCb !== "object")
281
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
282
- this.send(command, optionsOrCb || {}, cb);
283
- }
284
- else {
285
- return this.send(command, optionsOrCb);
286
- }
287
- }
288
44
  }
45
+ createAggregatedClient(commands, TimestreamWrite);
@@ -1078,7 +1078,7 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1078
1078
  };
1079
1079
  const se_CreateBatchLoadTaskRequest = (input, context) => {
1080
1080
  return take(input, {
1081
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
1081
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1082
1082
  DataModelConfiguration: _json,
1083
1083
  DataSourceConfiguration: _json,
1084
1084
  RecordVersion: [],
@@ -19,274 +19,137 @@ import { UpdateDatabaseCommandInput, UpdateDatabaseCommandOutput } from "./comma
19
19
  import { UpdateTableCommandInput, UpdateTableCommandOutput } from "./commands/UpdateTableCommand";
20
20
  import { WriteRecordsCommandInput, WriteRecordsCommandOutput } from "./commands/WriteRecordsCommand";
21
21
  import { TimestreamWriteClient } from "./TimestreamWriteClient";
22
- /**
23
- * @public
24
- * <fullname>Amazon Timestream Write</fullname>
25
- * <p>Amazon Timestream is a fast, scalable, fully managed time-series database service
26
- * that makes it easy to store and analyze trillions of time-series data points per day. With
27
- * Timestream, you can easily store and analyze IoT sensor data to derive insights
28
- * from your IoT applications. You can analyze industrial telemetry to streamline equipment
29
- * management and maintenance. You can also store and analyze log data and metrics to improve
30
- * the performance and availability of your applications. </p>
31
- * <p>Timestream is built from the ground up to effectively ingest, process, and
32
- * store time-series data. It organizes data to optimize query processing. It automatically
33
- * scales based on the volume of data ingested and on the query volume to ensure you receive
34
- * optimal performance while inserting and querying data. As your data grows over time,
35
- * Timestream’s adaptive query processing engine spans across storage tiers to
36
- * provide fast analysis while reducing costs.</p>
37
- */
38
- export declare class TimestreamWrite extends TimestreamWriteClient {
22
+ export interface TimestreamWrite {
39
23
  /**
40
- * @public
41
- * <p>Creates a new Timestream batch load task. A batch load task processes data from
42
- * a CSV source in an S3 location and writes to a Timestream table. A mapping from
43
- * source to target is defined in a batch load task. Errors and events are written to a report
44
- * at an S3 location. For the report, if the KMS key is not specified, the
45
- * batch load task will be encrypted with a Timestream managed KMS key
46
- * located in your account. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services managed
47
- * keys</a>. <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>. For
48
- * details, see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.create-batch-load.html">code
49
- * sample</a>.</p>
24
+ * @see {@link CreateBatchLoadTaskCommand}
50
25
  */
51
26
  createBatchLoadTask(args: CreateBatchLoadTaskCommandInput, options?: __HttpHandlerOptions): Promise<CreateBatchLoadTaskCommandOutput>;
52
27
  createBatchLoadTask(args: CreateBatchLoadTaskCommandInput, cb: (err: any, data?: CreateBatchLoadTaskCommandOutput) => void): void;
53
28
  createBatchLoadTask(args: CreateBatchLoadTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateBatchLoadTaskCommandOutput) => void): void;
54
29
  /**
55
- * @public
56
- * <p>Creates a new Timestream database. If the KMS key is not
57
- * specified, the database will be encrypted with a Timestream managed KMS key located in your account. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services managed keys</a>. <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>. For
58
- * details, see <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.create-db.html">code sample</a>.
59
- * </p>
30
+ * @see {@link CreateDatabaseCommand}
60
31
  */
61
32
  createDatabase(args: CreateDatabaseCommandInput, options?: __HttpHandlerOptions): Promise<CreateDatabaseCommandOutput>;
62
33
  createDatabase(args: CreateDatabaseCommandInput, cb: (err: any, data?: CreateDatabaseCommandOutput) => void): void;
63
34
  createDatabase(args: CreateDatabaseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDatabaseCommandOutput) => void): void;
64
35
  /**
65
- * @public
66
- * <p>Adds a new table to an existing database in your account. In an Amazon Web Services account, table names must be at least unique within each Region if they are in the same
67
- * database. You might have identical table names in the same Region if the tables are in
68
- * separate databases. While creating the table, you must specify the table name, database
69
- * name, and the retention properties. <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>. See
70
- * <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.create-table.html">code
71
- * sample</a> for details. </p>
36
+ * @see {@link CreateTableCommand}
72
37
  */
73
38
  createTable(args: CreateTableCommandInput, options?: __HttpHandlerOptions): Promise<CreateTableCommandOutput>;
74
39
  createTable(args: CreateTableCommandInput, cb: (err: any, data?: CreateTableCommandOutput) => void): void;
75
40
  createTable(args: CreateTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTableCommandOutput) => void): void;
76
41
  /**
77
- * @public
78
- * <p>Deletes a given Timestream database. <i>This is an irreversible
79
- * operation. After a database is deleted, the time-series data from its tables cannot be
80
- * recovered.</i>
81
- * </p>
82
- * <note>
83
- * <p>All tables in the database must be deleted first, or a ValidationException error will
84
- * be thrown. </p>
85
- * <p>Due to the nature of distributed retries, the operation can return either success or
86
- * a ResourceNotFoundException. Clients should consider them equivalent.</p>
87
- * </note>
88
- * <p>See <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.delete-db.html">code sample</a>
89
- * for details.</p>
42
+ * @see {@link DeleteDatabaseCommand}
90
43
  */
91
44
  deleteDatabase(args: DeleteDatabaseCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDatabaseCommandOutput>;
92
45
  deleteDatabase(args: DeleteDatabaseCommandInput, cb: (err: any, data?: DeleteDatabaseCommandOutput) => void): void;
93
46
  deleteDatabase(args: DeleteDatabaseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDatabaseCommandOutput) => void): void;
94
47
  /**
95
- * @public
96
- * <p>Deletes a given Timestream table. This is an irreversible operation. After a
97
- * Timestream database table is deleted, the time-series data stored in the table
98
- * cannot be recovered. </p>
99
- * <note>
100
- * <p>Due to the nature of distributed retries, the operation can return either success or
101
- * a ResourceNotFoundException. Clients should consider them equivalent.</p>
102
- * </note>
103
- * <p>See <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.delete-table.html">code
104
- * sample</a> for details.</p>
48
+ * @see {@link DeleteTableCommand}
105
49
  */
106
50
  deleteTable(args: DeleteTableCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTableCommandOutput>;
107
51
  deleteTable(args: DeleteTableCommandInput, cb: (err: any, data?: DeleteTableCommandOutput) => void): void;
108
52
  deleteTable(args: DeleteTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTableCommandOutput) => void): void;
109
53
  /**
110
- * @public
111
- * <p>Returns information about the batch load task, including configurations, mappings,
112
- * progress, and other details. <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>. See
113
- * <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.describe-batch-load.html">code
114
- * sample</a> for details.</p>
54
+ * @see {@link DescribeBatchLoadTaskCommand}
115
55
  */
116
56
  describeBatchLoadTask(args: DescribeBatchLoadTaskCommandInput, options?: __HttpHandlerOptions): Promise<DescribeBatchLoadTaskCommandOutput>;
117
57
  describeBatchLoadTask(args: DescribeBatchLoadTaskCommandInput, cb: (err: any, data?: DescribeBatchLoadTaskCommandOutput) => void): void;
118
58
  describeBatchLoadTask(args: DescribeBatchLoadTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeBatchLoadTaskCommandOutput) => void): void;
119
59
  /**
120
- * @public
121
- * <p>Returns information about the database, including the database name, time that the
122
- * database was created, and the total number of tables found within the database. <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service
123
- * quotas apply</a>. See <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.describe-db.html">code sample</a>
124
- * for details.</p>
60
+ * @see {@link DescribeDatabaseCommand}
125
61
  */
126
62
  describeDatabase(args: DescribeDatabaseCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDatabaseCommandOutput>;
127
63
  describeDatabase(args: DescribeDatabaseCommandInput, cb: (err: any, data?: DescribeDatabaseCommandOutput) => void): void;
128
64
  describeDatabase(args: DescribeDatabaseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDatabaseCommandOutput) => void): void;
129
65
  /**
130
- * @public
131
- * <p>Returns a list of available endpoints to make Timestream API calls against.
132
- * This API operation is available through both the Write and Query APIs.</p>
133
- * <p>Because the Timestream SDKs are designed to transparently work with the
134
- * service’s architecture, including the management and mapping of the service endpoints,
135
- * <i>we don't recommend that you use this API operation unless</i>:</p>
136
- * <ul>
137
- * <li>
138
- * <p>You are using <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/VPCEndpoints">VPC endpoints (Amazon Web Services PrivateLink) with Timestream</a>
139
- * </p>
140
- * </li>
141
- * <li>
142
- * <p>Your application uses a programming language that does not yet have SDK
143
- * support</p>
144
- * </li>
145
- * <li>
146
- * <p>You require better control over the client-side implementation</p>
147
- * </li>
148
- * </ul>
149
- * <p>For detailed information on how and when to use and implement DescribeEndpoints, see
150
- * <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/Using.API.html#Using-API.endpoint-discovery">The
151
- * Endpoint Discovery Pattern</a>.</p>
66
+ * @see {@link DescribeEndpointsCommand}
152
67
  */
153
68
  describeEndpoints(args: DescribeEndpointsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEndpointsCommandOutput>;
154
69
  describeEndpoints(args: DescribeEndpointsCommandInput, cb: (err: any, data?: DescribeEndpointsCommandOutput) => void): void;
155
70
  describeEndpoints(args: DescribeEndpointsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEndpointsCommandOutput) => void): void;
156
71
  /**
157
- * @public
158
- * <p>Returns information about the table, including the table name, database name, retention
159
- * duration of the memory store and the magnetic store. <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>. See
160
- * <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.describe-table.html">code
161
- * sample</a> for details. </p>
72
+ * @see {@link DescribeTableCommand}
162
73
  */
163
74
  describeTable(args: DescribeTableCommandInput, options?: __HttpHandlerOptions): Promise<DescribeTableCommandOutput>;
164
75
  describeTable(args: DescribeTableCommandInput, cb: (err: any, data?: DescribeTableCommandOutput) => void): void;
165
76
  describeTable(args: DescribeTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeTableCommandOutput) => void): void;
166
77
  /**
167
- * @public
168
- * <p>Provides a list of batch load tasks, along with the name, status, when the task is
169
- * resumable until, and other details. See <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.list-batch-load-tasks.html">code
170
- * sample</a> for details.</p>
78
+ * @see {@link ListBatchLoadTasksCommand}
171
79
  */
172
80
  listBatchLoadTasks(args: ListBatchLoadTasksCommandInput, options?: __HttpHandlerOptions): Promise<ListBatchLoadTasksCommandOutput>;
173
81
  listBatchLoadTasks(args: ListBatchLoadTasksCommandInput, cb: (err: any, data?: ListBatchLoadTasksCommandOutput) => void): void;
174
82
  listBatchLoadTasks(args: ListBatchLoadTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBatchLoadTasksCommandOutput) => void): void;
175
83
  /**
176
- * @public
177
- * <p>Returns a list of your Timestream databases. <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>. See
178
- * <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.list-db.html">code sample</a> for
179
- * details. </p>
84
+ * @see {@link ListDatabasesCommand}
180
85
  */
181
86
  listDatabases(args: ListDatabasesCommandInput, options?: __HttpHandlerOptions): Promise<ListDatabasesCommandOutput>;
182
87
  listDatabases(args: ListDatabasesCommandInput, cb: (err: any, data?: ListDatabasesCommandOutput) => void): void;
183
88
  listDatabases(args: ListDatabasesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDatabasesCommandOutput) => void): void;
184
89
  /**
185
- * @public
186
- * <p>Provides a list of tables, along with the name, status, and retention properties of each
187
- * table. See <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.list-table.html">code sample</a>
188
- * for details. </p>
90
+ * @see {@link ListTablesCommand}
189
91
  */
190
92
  listTables(args: ListTablesCommandInput, options?: __HttpHandlerOptions): Promise<ListTablesCommandOutput>;
191
93
  listTables(args: ListTablesCommandInput, cb: (err: any, data?: ListTablesCommandOutput) => void): void;
192
94
  listTables(args: ListTablesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTablesCommandOutput) => void): void;
193
95
  /**
194
- * @public
195
- * <p> Lists all tags on a Timestream resource. </p>
96
+ * @see {@link ListTagsForResourceCommand}
196
97
  */
197
98
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
198
99
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
199
100
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
200
101
  /**
201
- * @public
202
- * <p>
203
- * </p>
102
+ * @see {@link ResumeBatchLoadTaskCommand}
204
103
  */
205
104
  resumeBatchLoadTask(args: ResumeBatchLoadTaskCommandInput, options?: __HttpHandlerOptions): Promise<ResumeBatchLoadTaskCommandOutput>;
206
105
  resumeBatchLoadTask(args: ResumeBatchLoadTaskCommandInput, cb: (err: any, data?: ResumeBatchLoadTaskCommandOutput) => void): void;
207
106
  resumeBatchLoadTask(args: ResumeBatchLoadTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ResumeBatchLoadTaskCommandOutput) => void): void;
208
107
  /**
209
- * @public
210
- * <p> Associates a set of tags with a Timestream resource. You can then activate
211
- * these user-defined tags so that they appear on the Billing and Cost Management console for
212
- * cost allocation tracking. </p>
108
+ * @see {@link TagResourceCommand}
213
109
  */
214
110
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
215
111
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
216
112
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
217
113
  /**
218
- * @public
219
- * <p> Removes the association of tags from a Timestream resource. </p>
114
+ * @see {@link UntagResourceCommand}
220
115
  */
221
116
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
222
117
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
223
118
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
224
119
  /**
225
- * @public
226
- * <p> Modifies the KMS key for an existing database. While updating the
227
- * database, you must specify the database name and the identifier of the new KMS key to be used (<code>KmsKeyId</code>). If there are any concurrent
228
- * <code>UpdateDatabase</code> requests, first writer wins. </p>
229
- * <p>See <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.update-db.html">code sample</a>
230
- * for details.</p>
120
+ * @see {@link UpdateDatabaseCommand}
231
121
  */
232
122
  updateDatabase(args: UpdateDatabaseCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDatabaseCommandOutput>;
233
123
  updateDatabase(args: UpdateDatabaseCommandInput, cb: (err: any, data?: UpdateDatabaseCommandOutput) => void): void;
234
124
  updateDatabase(args: UpdateDatabaseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDatabaseCommandOutput) => void): void;
235
125
  /**
236
- * @public
237
- * <p>Modifies the retention duration of the memory store and magnetic store for your Timestream table. Note that the change in retention duration takes effect immediately.
238
- * For example, if the retention period of the memory store was initially set to 2 hours and
239
- * then changed to 24 hours, the memory store will be capable of holding 24 hours of data, but
240
- * will be populated with 24 hours of data 22 hours after this change was made. Timestream does not retrieve data from the magnetic store to populate the memory store. </p>
241
- * <p>See <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.update-table.html">code
242
- * sample</a> for details.</p>
126
+ * @see {@link UpdateTableCommand}
243
127
  */
244
128
  updateTable(args: UpdateTableCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTableCommandOutput>;
245
129
  updateTable(args: UpdateTableCommandInput, cb: (err: any, data?: UpdateTableCommandOutput) => void): void;
246
130
  updateTable(args: UpdateTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTableCommandOutput) => void): void;
247
131
  /**
248
- * @public
249
- * <p>Enables you to write your time-series data into Timestream. You can specify a
250
- * single data point or a batch of data points to be inserted into the system. Timestream offers you a flexible schema that auto detects the column names and data
251
- * types for your Timestream tables based on the dimension names and data types of
252
- * the data points you specify when invoking writes into the database. </p>
253
- * <p>Timestream supports eventual consistency read semantics. This means that when
254
- * you query data immediately after writing a batch of data into Timestream, the
255
- * query results might not reflect the results of a recently completed write operation. The
256
- * results may also include some stale data. If you repeat the query request after a short
257
- * time, the results should return the latest data. <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html">Service quotas apply</a>. </p>
258
- * <p>See <a href="https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.write.html">code sample</a> for
259
- * details.</p>
260
- * <p>
261
- * <b>Upserts</b>
262
- * </p>
263
- * <p>You can use the <code>Version</code> parameter in a <code>WriteRecords</code> request to
264
- * update data points. Timestream tracks a version number with each record.
265
- * <code>Version</code> defaults to <code>1</code> when it's not specified for the record
266
- * in the request. Timestream updates an existing record’s measure value along with
267
- * its <code>Version</code> when it receives a write request with a higher
268
- * <code>Version</code> number for that record. When it receives an update request where
269
- * the measure value is the same as that of the existing record, Timestream still
270
- * updates <code>Version</code>, if it is greater than the existing value of
271
- * <code>Version</code>. You can update a data point as many times as desired, as long as
272
- * the value of <code>Version</code> continuously increases. </p>
273
- * <p> For example, suppose you write a new record without indicating <code>Version</code> in
274
- * the request. Timestream stores this record, and set <code>Version</code> to
275
- * <code>1</code>. Now, suppose you try to update this record with a
276
- * <code>WriteRecords</code> request of the same record with a different measure value but,
277
- * like before, do not provide <code>Version</code>. In this case, Timestream will
278
- * reject this update with a <code>RejectedRecordsException</code> since the updated record’s
279
- * version is not greater than the existing value of Version. </p>
280
- * <p>However, if you were to resend the update request with <code>Version</code> set to
281
- * <code>2</code>, Timestream would then succeed in updating the record’s value,
282
- * and the <code>Version</code> would be set to <code>2</code>. Next, suppose you sent a
283
- * <code>WriteRecords</code> request with this same record and an identical measure value,
284
- * but with <code>Version</code> set to <code>3</code>. In this case, Timestream
285
- * would only update <code>Version</code> to <code>3</code>. Any further updates would need to
286
- * send a version number greater than <code>3</code>, or the update requests would receive a
287
- * <code>RejectedRecordsException</code>. </p>
132
+ * @see {@link WriteRecordsCommand}
288
133
  */
289
134
  writeRecords(args: WriteRecordsCommandInput, options?: __HttpHandlerOptions): Promise<WriteRecordsCommandOutput>;
290
135
  writeRecords(args: WriteRecordsCommandInput, cb: (err: any, data?: WriteRecordsCommandOutput) => void): void;
291
136
  writeRecords(args: WriteRecordsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: WriteRecordsCommandOutput) => void): void;
292
137
  }
138
+ /**
139
+ * @public
140
+ * <fullname>Amazon Timestream Write</fullname>
141
+ * <p>Amazon Timestream is a fast, scalable, fully managed time-series database service
142
+ * that makes it easy to store and analyze trillions of time-series data points per day. With
143
+ * Timestream, you can easily store and analyze IoT sensor data to derive insights
144
+ * from your IoT applications. You can analyze industrial telemetry to streamline equipment
145
+ * management and maintenance. You can also store and analyze log data and metrics to improve
146
+ * the performance and availability of your applications. </p>
147
+ * <p>Timestream is built from the ground up to effectively ingest, process, and
148
+ * store time-series data. It organizes data to optimize query processing. It automatically
149
+ * scales based on the volume of data ingested and on the query volume to ensure you receive
150
+ * optimal performance while inserting and querying data. As your data grows over time,
151
+ * Timestream’s adaptive query processing engine spans across storage tiers to
152
+ * provide fast analysis while reducing costs.</p>
153
+ */
154
+ export declare class TimestreamWrite extends TimestreamWriteClient implements TimestreamWrite {
155
+ }
@@ -76,7 +76,7 @@ import {
76
76
  WriteRecordsCommandOutput,
77
77
  } from "./commands/WriteRecordsCommand";
78
78
  import { TimestreamWriteClient } from "./TimestreamWriteClient";
79
- export declare class TimestreamWrite extends TimestreamWriteClient {
79
+ export interface TimestreamWrite {
80
80
  createBatchLoadTask(
81
81
  args: CreateBatchLoadTaskCommandInput,
82
82
  options?: __HttpHandlerOptions
@@ -325,3 +325,6 @@ export declare class TimestreamWrite extends TimestreamWriteClient {
325
325
  cb: (err: any, data?: WriteRecordsCommandOutput) => void
326
326
  ): void;
327
327
  }
328
+ export declare class TimestreamWrite
329
+ extends TimestreamWriteClient
330
+ implements TimestreamWrite {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.315.0",
4
+ "version": "3.316.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.316.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -41,14 +41,14 @@
41
41
  "@aws-sdk/node-config-provider": "3.310.0",
42
42
  "@aws-sdk/node-http-handler": "3.310.0",
43
43
  "@aws-sdk/protocol-http": "3.310.0",
44
- "@aws-sdk/smithy-client": "3.315.0",
44
+ "@aws-sdk/smithy-client": "3.316.0",
45
45
  "@aws-sdk/types": "3.310.0",
46
46
  "@aws-sdk/url-parser": "3.310.0",
47
47
  "@aws-sdk/util-base64": "3.310.0",
48
48
  "@aws-sdk/util-body-length-browser": "3.310.0",
49
49
  "@aws-sdk/util-body-length-node": "3.310.0",
50
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
51
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
50
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
51
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
52
52
  "@aws-sdk/util-endpoints": "3.310.0",
53
53
  "@aws-sdk/util-retry": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-browser": "3.310.0",