@aws-sdk/client-dynamodb 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.
- package/dist-cjs/DynamoDB.js +57 -742
- package/dist-cjs/protocols/Aws_json1_0.js +4 -4
- package/dist-es/DynamoDB.js +57 -742
- package/dist-es/protocols/Aws_json1_0.js +4 -4
- package/dist-types/DynamoDB.d.ts +76 -993
- package/dist-types/ts3.4/DynamoDB.d.ts +2 -1
- package/package.json +6 -6
package/dist-cjs/DynamoDB.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DynamoDB = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const BatchExecuteStatementCommand_1 = require("./commands/BatchExecuteStatementCommand");
|
|
5
6
|
const BatchGetItemCommand_1 = require("./commands/BatchGetItemCommand");
|
|
6
7
|
const BatchWriteItemCommand_1 = require("./commands/BatchWriteItemCommand");
|
|
@@ -55,748 +56,62 @@ const UpdateTableCommand_1 = require("./commands/UpdateTableCommand");
|
|
|
55
56
|
const UpdateTableReplicaAutoScalingCommand_1 = require("./commands/UpdateTableReplicaAutoScalingCommand");
|
|
56
57
|
const UpdateTimeToLiveCommand_1 = require("./commands/UpdateTimeToLiveCommand");
|
|
57
58
|
const DynamoDBClient_1 = require("./DynamoDBClient");
|
|
59
|
+
const commands = {
|
|
60
|
+
BatchExecuteStatementCommand: BatchExecuteStatementCommand_1.BatchExecuteStatementCommand,
|
|
61
|
+
BatchGetItemCommand: BatchGetItemCommand_1.BatchGetItemCommand,
|
|
62
|
+
BatchWriteItemCommand: BatchWriteItemCommand_1.BatchWriteItemCommand,
|
|
63
|
+
CreateBackupCommand: CreateBackupCommand_1.CreateBackupCommand,
|
|
64
|
+
CreateGlobalTableCommand: CreateGlobalTableCommand_1.CreateGlobalTableCommand,
|
|
65
|
+
CreateTableCommand: CreateTableCommand_1.CreateTableCommand,
|
|
66
|
+
DeleteBackupCommand: DeleteBackupCommand_1.DeleteBackupCommand,
|
|
67
|
+
DeleteItemCommand: DeleteItemCommand_1.DeleteItemCommand,
|
|
68
|
+
DeleteTableCommand: DeleteTableCommand_1.DeleteTableCommand,
|
|
69
|
+
DescribeBackupCommand: DescribeBackupCommand_1.DescribeBackupCommand,
|
|
70
|
+
DescribeContinuousBackupsCommand: DescribeContinuousBackupsCommand_1.DescribeContinuousBackupsCommand,
|
|
71
|
+
DescribeContributorInsightsCommand: DescribeContributorInsightsCommand_1.DescribeContributorInsightsCommand,
|
|
72
|
+
DescribeEndpointsCommand: DescribeEndpointsCommand_1.DescribeEndpointsCommand,
|
|
73
|
+
DescribeExportCommand: DescribeExportCommand_1.DescribeExportCommand,
|
|
74
|
+
DescribeGlobalTableCommand: DescribeGlobalTableCommand_1.DescribeGlobalTableCommand,
|
|
75
|
+
DescribeGlobalTableSettingsCommand: DescribeGlobalTableSettingsCommand_1.DescribeGlobalTableSettingsCommand,
|
|
76
|
+
DescribeImportCommand: DescribeImportCommand_1.DescribeImportCommand,
|
|
77
|
+
DescribeKinesisStreamingDestinationCommand: DescribeKinesisStreamingDestinationCommand_1.DescribeKinesisStreamingDestinationCommand,
|
|
78
|
+
DescribeLimitsCommand: DescribeLimitsCommand_1.DescribeLimitsCommand,
|
|
79
|
+
DescribeTableCommand: DescribeTableCommand_1.DescribeTableCommand,
|
|
80
|
+
DescribeTableReplicaAutoScalingCommand: DescribeTableReplicaAutoScalingCommand_1.DescribeTableReplicaAutoScalingCommand,
|
|
81
|
+
DescribeTimeToLiveCommand: DescribeTimeToLiveCommand_1.DescribeTimeToLiveCommand,
|
|
82
|
+
DisableKinesisStreamingDestinationCommand: DisableKinesisStreamingDestinationCommand_1.DisableKinesisStreamingDestinationCommand,
|
|
83
|
+
EnableKinesisStreamingDestinationCommand: EnableKinesisStreamingDestinationCommand_1.EnableKinesisStreamingDestinationCommand,
|
|
84
|
+
ExecuteStatementCommand: ExecuteStatementCommand_1.ExecuteStatementCommand,
|
|
85
|
+
ExecuteTransactionCommand: ExecuteTransactionCommand_1.ExecuteTransactionCommand,
|
|
86
|
+
ExportTableToPointInTimeCommand: ExportTableToPointInTimeCommand_1.ExportTableToPointInTimeCommand,
|
|
87
|
+
GetItemCommand: GetItemCommand_1.GetItemCommand,
|
|
88
|
+
ImportTableCommand: ImportTableCommand_1.ImportTableCommand,
|
|
89
|
+
ListBackupsCommand: ListBackupsCommand_1.ListBackupsCommand,
|
|
90
|
+
ListContributorInsightsCommand: ListContributorInsightsCommand_1.ListContributorInsightsCommand,
|
|
91
|
+
ListExportsCommand: ListExportsCommand_1.ListExportsCommand,
|
|
92
|
+
ListGlobalTablesCommand: ListGlobalTablesCommand_1.ListGlobalTablesCommand,
|
|
93
|
+
ListImportsCommand: ListImportsCommand_1.ListImportsCommand,
|
|
94
|
+
ListTablesCommand: ListTablesCommand_1.ListTablesCommand,
|
|
95
|
+
ListTagsOfResourceCommand: ListTagsOfResourceCommand_1.ListTagsOfResourceCommand,
|
|
96
|
+
PutItemCommand: PutItemCommand_1.PutItemCommand,
|
|
97
|
+
QueryCommand: QueryCommand_1.QueryCommand,
|
|
98
|
+
RestoreTableFromBackupCommand: RestoreTableFromBackupCommand_1.RestoreTableFromBackupCommand,
|
|
99
|
+
RestoreTableToPointInTimeCommand: RestoreTableToPointInTimeCommand_1.RestoreTableToPointInTimeCommand,
|
|
100
|
+
ScanCommand: ScanCommand_1.ScanCommand,
|
|
101
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
102
|
+
TransactGetItemsCommand: TransactGetItemsCommand_1.TransactGetItemsCommand,
|
|
103
|
+
TransactWriteItemsCommand: TransactWriteItemsCommand_1.TransactWriteItemsCommand,
|
|
104
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
105
|
+
UpdateContinuousBackupsCommand: UpdateContinuousBackupsCommand_1.UpdateContinuousBackupsCommand,
|
|
106
|
+
UpdateContributorInsightsCommand: UpdateContributorInsightsCommand_1.UpdateContributorInsightsCommand,
|
|
107
|
+
UpdateGlobalTableCommand: UpdateGlobalTableCommand_1.UpdateGlobalTableCommand,
|
|
108
|
+
UpdateGlobalTableSettingsCommand: UpdateGlobalTableSettingsCommand_1.UpdateGlobalTableSettingsCommand,
|
|
109
|
+
UpdateItemCommand: UpdateItemCommand_1.UpdateItemCommand,
|
|
110
|
+
UpdateTableCommand: UpdateTableCommand_1.UpdateTableCommand,
|
|
111
|
+
UpdateTableReplicaAutoScalingCommand: UpdateTableReplicaAutoScalingCommand_1.UpdateTableReplicaAutoScalingCommand,
|
|
112
|
+
UpdateTimeToLiveCommand: UpdateTimeToLiveCommand_1.UpdateTimeToLiveCommand,
|
|
113
|
+
};
|
|
58
114
|
class DynamoDB extends DynamoDBClient_1.DynamoDBClient {
|
|
59
|
-
batchExecuteStatement(args, optionsOrCb, cb) {
|
|
60
|
-
const command = new BatchExecuteStatementCommand_1.BatchExecuteStatementCommand(args);
|
|
61
|
-
if (typeof optionsOrCb === "function") {
|
|
62
|
-
this.send(command, optionsOrCb);
|
|
63
|
-
}
|
|
64
|
-
else if (typeof cb === "function") {
|
|
65
|
-
if (typeof optionsOrCb !== "object")
|
|
66
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
67
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
return this.send(command, optionsOrCb);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
batchGetItem(args, optionsOrCb, cb) {
|
|
74
|
-
const command = new BatchGetItemCommand_1.BatchGetItemCommand(args);
|
|
75
|
-
if (typeof optionsOrCb === "function") {
|
|
76
|
-
this.send(command, optionsOrCb);
|
|
77
|
-
}
|
|
78
|
-
else if (typeof cb === "function") {
|
|
79
|
-
if (typeof optionsOrCb !== "object")
|
|
80
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
81
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
return this.send(command, optionsOrCb);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
batchWriteItem(args, optionsOrCb, cb) {
|
|
88
|
-
const command = new BatchWriteItemCommand_1.BatchWriteItemCommand(args);
|
|
89
|
-
if (typeof optionsOrCb === "function") {
|
|
90
|
-
this.send(command, optionsOrCb);
|
|
91
|
-
}
|
|
92
|
-
else if (typeof cb === "function") {
|
|
93
|
-
if (typeof optionsOrCb !== "object")
|
|
94
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
95
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
return this.send(command, optionsOrCb);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
createBackup(args, optionsOrCb, cb) {
|
|
102
|
-
const command = new CreateBackupCommand_1.CreateBackupCommand(args);
|
|
103
|
-
if (typeof optionsOrCb === "function") {
|
|
104
|
-
this.send(command, optionsOrCb);
|
|
105
|
-
}
|
|
106
|
-
else if (typeof cb === "function") {
|
|
107
|
-
if (typeof optionsOrCb !== "object")
|
|
108
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
109
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
return this.send(command, optionsOrCb);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
createGlobalTable(args, optionsOrCb, cb) {
|
|
116
|
-
const command = new CreateGlobalTableCommand_1.CreateGlobalTableCommand(args);
|
|
117
|
-
if (typeof optionsOrCb === "function") {
|
|
118
|
-
this.send(command, optionsOrCb);
|
|
119
|
-
}
|
|
120
|
-
else if (typeof cb === "function") {
|
|
121
|
-
if (typeof optionsOrCb !== "object")
|
|
122
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
123
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
return this.send(command, optionsOrCb);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
createTable(args, optionsOrCb, cb) {
|
|
130
|
-
const command = new CreateTableCommand_1.CreateTableCommand(args);
|
|
131
|
-
if (typeof optionsOrCb === "function") {
|
|
132
|
-
this.send(command, optionsOrCb);
|
|
133
|
-
}
|
|
134
|
-
else if (typeof cb === "function") {
|
|
135
|
-
if (typeof optionsOrCb !== "object")
|
|
136
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
137
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
return this.send(command, optionsOrCb);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
deleteBackup(args, optionsOrCb, cb) {
|
|
144
|
-
const command = new DeleteBackupCommand_1.DeleteBackupCommand(args);
|
|
145
|
-
if (typeof optionsOrCb === "function") {
|
|
146
|
-
this.send(command, optionsOrCb);
|
|
147
|
-
}
|
|
148
|
-
else if (typeof cb === "function") {
|
|
149
|
-
if (typeof optionsOrCb !== "object")
|
|
150
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
151
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
return this.send(command, optionsOrCb);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
deleteItem(args, optionsOrCb, cb) {
|
|
158
|
-
const command = new DeleteItemCommand_1.DeleteItemCommand(args);
|
|
159
|
-
if (typeof optionsOrCb === "function") {
|
|
160
|
-
this.send(command, optionsOrCb);
|
|
161
|
-
}
|
|
162
|
-
else if (typeof cb === "function") {
|
|
163
|
-
if (typeof optionsOrCb !== "object")
|
|
164
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
165
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
return this.send(command, optionsOrCb);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
deleteTable(args, optionsOrCb, cb) {
|
|
172
|
-
const command = new DeleteTableCommand_1.DeleteTableCommand(args);
|
|
173
|
-
if (typeof optionsOrCb === "function") {
|
|
174
|
-
this.send(command, optionsOrCb);
|
|
175
|
-
}
|
|
176
|
-
else if (typeof cb === "function") {
|
|
177
|
-
if (typeof optionsOrCb !== "object")
|
|
178
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
179
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
182
|
-
return this.send(command, optionsOrCb);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
describeBackup(args, optionsOrCb, cb) {
|
|
186
|
-
const command = new DescribeBackupCommand_1.DescribeBackupCommand(args);
|
|
187
|
-
if (typeof optionsOrCb === "function") {
|
|
188
|
-
this.send(command, optionsOrCb);
|
|
189
|
-
}
|
|
190
|
-
else if (typeof cb === "function") {
|
|
191
|
-
if (typeof optionsOrCb !== "object")
|
|
192
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
193
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
return this.send(command, optionsOrCb);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
describeContinuousBackups(args, optionsOrCb, cb) {
|
|
200
|
-
const command = new DescribeContinuousBackupsCommand_1.DescribeContinuousBackupsCommand(args);
|
|
201
|
-
if (typeof optionsOrCb === "function") {
|
|
202
|
-
this.send(command, optionsOrCb);
|
|
203
|
-
}
|
|
204
|
-
else if (typeof cb === "function") {
|
|
205
|
-
if (typeof optionsOrCb !== "object")
|
|
206
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
207
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
208
|
-
}
|
|
209
|
-
else {
|
|
210
|
-
return this.send(command, optionsOrCb);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
describeContributorInsights(args, optionsOrCb, cb) {
|
|
214
|
-
const command = new DescribeContributorInsightsCommand_1.DescribeContributorInsightsCommand(args);
|
|
215
|
-
if (typeof optionsOrCb === "function") {
|
|
216
|
-
this.send(command, optionsOrCb);
|
|
217
|
-
}
|
|
218
|
-
else if (typeof cb === "function") {
|
|
219
|
-
if (typeof optionsOrCb !== "object")
|
|
220
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
221
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
222
|
-
}
|
|
223
|
-
else {
|
|
224
|
-
return this.send(command, optionsOrCb);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
describeEndpoints(args, optionsOrCb, cb) {
|
|
228
|
-
const command = new DescribeEndpointsCommand_1.DescribeEndpointsCommand(args);
|
|
229
|
-
if (typeof optionsOrCb === "function") {
|
|
230
|
-
this.send(command, optionsOrCb);
|
|
231
|
-
}
|
|
232
|
-
else if (typeof cb === "function") {
|
|
233
|
-
if (typeof optionsOrCb !== "object")
|
|
234
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
235
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
236
|
-
}
|
|
237
|
-
else {
|
|
238
|
-
return this.send(command, optionsOrCb);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
describeExport(args, optionsOrCb, cb) {
|
|
242
|
-
const command = new DescribeExportCommand_1.DescribeExportCommand(args);
|
|
243
|
-
if (typeof optionsOrCb === "function") {
|
|
244
|
-
this.send(command, optionsOrCb);
|
|
245
|
-
}
|
|
246
|
-
else if (typeof cb === "function") {
|
|
247
|
-
if (typeof optionsOrCb !== "object")
|
|
248
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
249
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
250
|
-
}
|
|
251
|
-
else {
|
|
252
|
-
return this.send(command, optionsOrCb);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
describeGlobalTable(args, optionsOrCb, cb) {
|
|
256
|
-
const command = new DescribeGlobalTableCommand_1.DescribeGlobalTableCommand(args);
|
|
257
|
-
if (typeof optionsOrCb === "function") {
|
|
258
|
-
this.send(command, optionsOrCb);
|
|
259
|
-
}
|
|
260
|
-
else if (typeof cb === "function") {
|
|
261
|
-
if (typeof optionsOrCb !== "object")
|
|
262
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
263
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
264
|
-
}
|
|
265
|
-
else {
|
|
266
|
-
return this.send(command, optionsOrCb);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
describeGlobalTableSettings(args, optionsOrCb, cb) {
|
|
270
|
-
const command = new DescribeGlobalTableSettingsCommand_1.DescribeGlobalTableSettingsCommand(args);
|
|
271
|
-
if (typeof optionsOrCb === "function") {
|
|
272
|
-
this.send(command, optionsOrCb);
|
|
273
|
-
}
|
|
274
|
-
else if (typeof cb === "function") {
|
|
275
|
-
if (typeof optionsOrCb !== "object")
|
|
276
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
277
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
278
|
-
}
|
|
279
|
-
else {
|
|
280
|
-
return this.send(command, optionsOrCb);
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
describeImport(args, optionsOrCb, cb) {
|
|
284
|
-
const command = new DescribeImportCommand_1.DescribeImportCommand(args);
|
|
285
|
-
if (typeof optionsOrCb === "function") {
|
|
286
|
-
this.send(command, optionsOrCb);
|
|
287
|
-
}
|
|
288
|
-
else if (typeof cb === "function") {
|
|
289
|
-
if (typeof optionsOrCb !== "object")
|
|
290
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
291
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
292
|
-
}
|
|
293
|
-
else {
|
|
294
|
-
return this.send(command, optionsOrCb);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
describeKinesisStreamingDestination(args, optionsOrCb, cb) {
|
|
298
|
-
const command = new DescribeKinesisStreamingDestinationCommand_1.DescribeKinesisStreamingDestinationCommand(args);
|
|
299
|
-
if (typeof optionsOrCb === "function") {
|
|
300
|
-
this.send(command, optionsOrCb);
|
|
301
|
-
}
|
|
302
|
-
else if (typeof cb === "function") {
|
|
303
|
-
if (typeof optionsOrCb !== "object")
|
|
304
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
305
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
306
|
-
}
|
|
307
|
-
else {
|
|
308
|
-
return this.send(command, optionsOrCb);
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
describeLimits(args, optionsOrCb, cb) {
|
|
312
|
-
const command = new DescribeLimitsCommand_1.DescribeLimitsCommand(args);
|
|
313
|
-
if (typeof optionsOrCb === "function") {
|
|
314
|
-
this.send(command, optionsOrCb);
|
|
315
|
-
}
|
|
316
|
-
else if (typeof cb === "function") {
|
|
317
|
-
if (typeof optionsOrCb !== "object")
|
|
318
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
319
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
320
|
-
}
|
|
321
|
-
else {
|
|
322
|
-
return this.send(command, optionsOrCb);
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
describeTable(args, optionsOrCb, cb) {
|
|
326
|
-
const command = new DescribeTableCommand_1.DescribeTableCommand(args);
|
|
327
|
-
if (typeof optionsOrCb === "function") {
|
|
328
|
-
this.send(command, optionsOrCb);
|
|
329
|
-
}
|
|
330
|
-
else if (typeof cb === "function") {
|
|
331
|
-
if (typeof optionsOrCb !== "object")
|
|
332
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
333
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
334
|
-
}
|
|
335
|
-
else {
|
|
336
|
-
return this.send(command, optionsOrCb);
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
describeTableReplicaAutoScaling(args, optionsOrCb, cb) {
|
|
340
|
-
const command = new DescribeTableReplicaAutoScalingCommand_1.DescribeTableReplicaAutoScalingCommand(args);
|
|
341
|
-
if (typeof optionsOrCb === "function") {
|
|
342
|
-
this.send(command, optionsOrCb);
|
|
343
|
-
}
|
|
344
|
-
else if (typeof cb === "function") {
|
|
345
|
-
if (typeof optionsOrCb !== "object")
|
|
346
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
347
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
348
|
-
}
|
|
349
|
-
else {
|
|
350
|
-
return this.send(command, optionsOrCb);
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
describeTimeToLive(args, optionsOrCb, cb) {
|
|
354
|
-
const command = new DescribeTimeToLiveCommand_1.DescribeTimeToLiveCommand(args);
|
|
355
|
-
if (typeof optionsOrCb === "function") {
|
|
356
|
-
this.send(command, optionsOrCb);
|
|
357
|
-
}
|
|
358
|
-
else if (typeof cb === "function") {
|
|
359
|
-
if (typeof optionsOrCb !== "object")
|
|
360
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
361
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
362
|
-
}
|
|
363
|
-
else {
|
|
364
|
-
return this.send(command, optionsOrCb);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
disableKinesisStreamingDestination(args, optionsOrCb, cb) {
|
|
368
|
-
const command = new DisableKinesisStreamingDestinationCommand_1.DisableKinesisStreamingDestinationCommand(args);
|
|
369
|
-
if (typeof optionsOrCb === "function") {
|
|
370
|
-
this.send(command, optionsOrCb);
|
|
371
|
-
}
|
|
372
|
-
else if (typeof cb === "function") {
|
|
373
|
-
if (typeof optionsOrCb !== "object")
|
|
374
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
375
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
376
|
-
}
|
|
377
|
-
else {
|
|
378
|
-
return this.send(command, optionsOrCb);
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
enableKinesisStreamingDestination(args, optionsOrCb, cb) {
|
|
382
|
-
const command = new EnableKinesisStreamingDestinationCommand_1.EnableKinesisStreamingDestinationCommand(args);
|
|
383
|
-
if (typeof optionsOrCb === "function") {
|
|
384
|
-
this.send(command, optionsOrCb);
|
|
385
|
-
}
|
|
386
|
-
else if (typeof cb === "function") {
|
|
387
|
-
if (typeof optionsOrCb !== "object")
|
|
388
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
389
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
390
|
-
}
|
|
391
|
-
else {
|
|
392
|
-
return this.send(command, optionsOrCb);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
executeStatement(args, optionsOrCb, cb) {
|
|
396
|
-
const command = new ExecuteStatementCommand_1.ExecuteStatementCommand(args);
|
|
397
|
-
if (typeof optionsOrCb === "function") {
|
|
398
|
-
this.send(command, optionsOrCb);
|
|
399
|
-
}
|
|
400
|
-
else if (typeof cb === "function") {
|
|
401
|
-
if (typeof optionsOrCb !== "object")
|
|
402
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
403
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
404
|
-
}
|
|
405
|
-
else {
|
|
406
|
-
return this.send(command, optionsOrCb);
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
executeTransaction(args, optionsOrCb, cb) {
|
|
410
|
-
const command = new ExecuteTransactionCommand_1.ExecuteTransactionCommand(args);
|
|
411
|
-
if (typeof optionsOrCb === "function") {
|
|
412
|
-
this.send(command, optionsOrCb);
|
|
413
|
-
}
|
|
414
|
-
else if (typeof cb === "function") {
|
|
415
|
-
if (typeof optionsOrCb !== "object")
|
|
416
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
417
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
418
|
-
}
|
|
419
|
-
else {
|
|
420
|
-
return this.send(command, optionsOrCb);
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
exportTableToPointInTime(args, optionsOrCb, cb) {
|
|
424
|
-
const command = new ExportTableToPointInTimeCommand_1.ExportTableToPointInTimeCommand(args);
|
|
425
|
-
if (typeof optionsOrCb === "function") {
|
|
426
|
-
this.send(command, optionsOrCb);
|
|
427
|
-
}
|
|
428
|
-
else if (typeof cb === "function") {
|
|
429
|
-
if (typeof optionsOrCb !== "object")
|
|
430
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
431
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
432
|
-
}
|
|
433
|
-
else {
|
|
434
|
-
return this.send(command, optionsOrCb);
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
getItem(args, optionsOrCb, cb) {
|
|
438
|
-
const command = new GetItemCommand_1.GetItemCommand(args);
|
|
439
|
-
if (typeof optionsOrCb === "function") {
|
|
440
|
-
this.send(command, optionsOrCb);
|
|
441
|
-
}
|
|
442
|
-
else if (typeof cb === "function") {
|
|
443
|
-
if (typeof optionsOrCb !== "object")
|
|
444
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
445
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
446
|
-
}
|
|
447
|
-
else {
|
|
448
|
-
return this.send(command, optionsOrCb);
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
importTable(args, optionsOrCb, cb) {
|
|
452
|
-
const command = new ImportTableCommand_1.ImportTableCommand(args);
|
|
453
|
-
if (typeof optionsOrCb === "function") {
|
|
454
|
-
this.send(command, optionsOrCb);
|
|
455
|
-
}
|
|
456
|
-
else if (typeof cb === "function") {
|
|
457
|
-
if (typeof optionsOrCb !== "object")
|
|
458
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
459
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
460
|
-
}
|
|
461
|
-
else {
|
|
462
|
-
return this.send(command, optionsOrCb);
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
listBackups(args, optionsOrCb, cb) {
|
|
466
|
-
const command = new ListBackupsCommand_1.ListBackupsCommand(args);
|
|
467
|
-
if (typeof optionsOrCb === "function") {
|
|
468
|
-
this.send(command, optionsOrCb);
|
|
469
|
-
}
|
|
470
|
-
else if (typeof cb === "function") {
|
|
471
|
-
if (typeof optionsOrCb !== "object")
|
|
472
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
473
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
474
|
-
}
|
|
475
|
-
else {
|
|
476
|
-
return this.send(command, optionsOrCb);
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
listContributorInsights(args, optionsOrCb, cb) {
|
|
480
|
-
const command = new ListContributorInsightsCommand_1.ListContributorInsightsCommand(args);
|
|
481
|
-
if (typeof optionsOrCb === "function") {
|
|
482
|
-
this.send(command, optionsOrCb);
|
|
483
|
-
}
|
|
484
|
-
else if (typeof cb === "function") {
|
|
485
|
-
if (typeof optionsOrCb !== "object")
|
|
486
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
487
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
488
|
-
}
|
|
489
|
-
else {
|
|
490
|
-
return this.send(command, optionsOrCb);
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
listExports(args, optionsOrCb, cb) {
|
|
494
|
-
const command = new ListExportsCommand_1.ListExportsCommand(args);
|
|
495
|
-
if (typeof optionsOrCb === "function") {
|
|
496
|
-
this.send(command, optionsOrCb);
|
|
497
|
-
}
|
|
498
|
-
else if (typeof cb === "function") {
|
|
499
|
-
if (typeof optionsOrCb !== "object")
|
|
500
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
501
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
502
|
-
}
|
|
503
|
-
else {
|
|
504
|
-
return this.send(command, optionsOrCb);
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
listGlobalTables(args, optionsOrCb, cb) {
|
|
508
|
-
const command = new ListGlobalTablesCommand_1.ListGlobalTablesCommand(args);
|
|
509
|
-
if (typeof optionsOrCb === "function") {
|
|
510
|
-
this.send(command, optionsOrCb);
|
|
511
|
-
}
|
|
512
|
-
else if (typeof cb === "function") {
|
|
513
|
-
if (typeof optionsOrCb !== "object")
|
|
514
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
515
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
516
|
-
}
|
|
517
|
-
else {
|
|
518
|
-
return this.send(command, optionsOrCb);
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
listImports(args, optionsOrCb, cb) {
|
|
522
|
-
const command = new ListImportsCommand_1.ListImportsCommand(args);
|
|
523
|
-
if (typeof optionsOrCb === "function") {
|
|
524
|
-
this.send(command, optionsOrCb);
|
|
525
|
-
}
|
|
526
|
-
else if (typeof cb === "function") {
|
|
527
|
-
if (typeof optionsOrCb !== "object")
|
|
528
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
529
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
530
|
-
}
|
|
531
|
-
else {
|
|
532
|
-
return this.send(command, optionsOrCb);
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
listTables(args, optionsOrCb, cb) {
|
|
536
|
-
const command = new ListTablesCommand_1.ListTablesCommand(args);
|
|
537
|
-
if (typeof optionsOrCb === "function") {
|
|
538
|
-
this.send(command, optionsOrCb);
|
|
539
|
-
}
|
|
540
|
-
else if (typeof cb === "function") {
|
|
541
|
-
if (typeof optionsOrCb !== "object")
|
|
542
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
543
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
544
|
-
}
|
|
545
|
-
else {
|
|
546
|
-
return this.send(command, optionsOrCb);
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
listTagsOfResource(args, optionsOrCb, cb) {
|
|
550
|
-
const command = new ListTagsOfResourceCommand_1.ListTagsOfResourceCommand(args);
|
|
551
|
-
if (typeof optionsOrCb === "function") {
|
|
552
|
-
this.send(command, optionsOrCb);
|
|
553
|
-
}
|
|
554
|
-
else if (typeof cb === "function") {
|
|
555
|
-
if (typeof optionsOrCb !== "object")
|
|
556
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
557
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
558
|
-
}
|
|
559
|
-
else {
|
|
560
|
-
return this.send(command, optionsOrCb);
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
putItem(args, optionsOrCb, cb) {
|
|
564
|
-
const command = new PutItemCommand_1.PutItemCommand(args);
|
|
565
|
-
if (typeof optionsOrCb === "function") {
|
|
566
|
-
this.send(command, optionsOrCb);
|
|
567
|
-
}
|
|
568
|
-
else if (typeof cb === "function") {
|
|
569
|
-
if (typeof optionsOrCb !== "object")
|
|
570
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
571
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
572
|
-
}
|
|
573
|
-
else {
|
|
574
|
-
return this.send(command, optionsOrCb);
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
query(args, optionsOrCb, cb) {
|
|
578
|
-
const command = new QueryCommand_1.QueryCommand(args);
|
|
579
|
-
if (typeof optionsOrCb === "function") {
|
|
580
|
-
this.send(command, optionsOrCb);
|
|
581
|
-
}
|
|
582
|
-
else if (typeof cb === "function") {
|
|
583
|
-
if (typeof optionsOrCb !== "object")
|
|
584
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
585
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
586
|
-
}
|
|
587
|
-
else {
|
|
588
|
-
return this.send(command, optionsOrCb);
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
restoreTableFromBackup(args, optionsOrCb, cb) {
|
|
592
|
-
const command = new RestoreTableFromBackupCommand_1.RestoreTableFromBackupCommand(args);
|
|
593
|
-
if (typeof optionsOrCb === "function") {
|
|
594
|
-
this.send(command, optionsOrCb);
|
|
595
|
-
}
|
|
596
|
-
else if (typeof cb === "function") {
|
|
597
|
-
if (typeof optionsOrCb !== "object")
|
|
598
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
599
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
600
|
-
}
|
|
601
|
-
else {
|
|
602
|
-
return this.send(command, optionsOrCb);
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
restoreTableToPointInTime(args, optionsOrCb, cb) {
|
|
606
|
-
const command = new RestoreTableToPointInTimeCommand_1.RestoreTableToPointInTimeCommand(args);
|
|
607
|
-
if (typeof optionsOrCb === "function") {
|
|
608
|
-
this.send(command, optionsOrCb);
|
|
609
|
-
}
|
|
610
|
-
else if (typeof cb === "function") {
|
|
611
|
-
if (typeof optionsOrCb !== "object")
|
|
612
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
613
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
614
|
-
}
|
|
615
|
-
else {
|
|
616
|
-
return this.send(command, optionsOrCb);
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
scan(args, optionsOrCb, cb) {
|
|
620
|
-
const command = new ScanCommand_1.ScanCommand(args);
|
|
621
|
-
if (typeof optionsOrCb === "function") {
|
|
622
|
-
this.send(command, optionsOrCb);
|
|
623
|
-
}
|
|
624
|
-
else if (typeof cb === "function") {
|
|
625
|
-
if (typeof optionsOrCb !== "object")
|
|
626
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
627
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
628
|
-
}
|
|
629
|
-
else {
|
|
630
|
-
return this.send(command, optionsOrCb);
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
tagResource(args, optionsOrCb, cb) {
|
|
634
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
635
|
-
if (typeof optionsOrCb === "function") {
|
|
636
|
-
this.send(command, optionsOrCb);
|
|
637
|
-
}
|
|
638
|
-
else if (typeof cb === "function") {
|
|
639
|
-
if (typeof optionsOrCb !== "object")
|
|
640
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
641
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
642
|
-
}
|
|
643
|
-
else {
|
|
644
|
-
return this.send(command, optionsOrCb);
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
transactGetItems(args, optionsOrCb, cb) {
|
|
648
|
-
const command = new TransactGetItemsCommand_1.TransactGetItemsCommand(args);
|
|
649
|
-
if (typeof optionsOrCb === "function") {
|
|
650
|
-
this.send(command, optionsOrCb);
|
|
651
|
-
}
|
|
652
|
-
else if (typeof cb === "function") {
|
|
653
|
-
if (typeof optionsOrCb !== "object")
|
|
654
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
655
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
656
|
-
}
|
|
657
|
-
else {
|
|
658
|
-
return this.send(command, optionsOrCb);
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
transactWriteItems(args, optionsOrCb, cb) {
|
|
662
|
-
const command = new TransactWriteItemsCommand_1.TransactWriteItemsCommand(args);
|
|
663
|
-
if (typeof optionsOrCb === "function") {
|
|
664
|
-
this.send(command, optionsOrCb);
|
|
665
|
-
}
|
|
666
|
-
else if (typeof cb === "function") {
|
|
667
|
-
if (typeof optionsOrCb !== "object")
|
|
668
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
669
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
670
|
-
}
|
|
671
|
-
else {
|
|
672
|
-
return this.send(command, optionsOrCb);
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
untagResource(args, optionsOrCb, cb) {
|
|
676
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
677
|
-
if (typeof optionsOrCb === "function") {
|
|
678
|
-
this.send(command, optionsOrCb);
|
|
679
|
-
}
|
|
680
|
-
else if (typeof cb === "function") {
|
|
681
|
-
if (typeof optionsOrCb !== "object")
|
|
682
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
683
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
684
|
-
}
|
|
685
|
-
else {
|
|
686
|
-
return this.send(command, optionsOrCb);
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
updateContinuousBackups(args, optionsOrCb, cb) {
|
|
690
|
-
const command = new UpdateContinuousBackupsCommand_1.UpdateContinuousBackupsCommand(args);
|
|
691
|
-
if (typeof optionsOrCb === "function") {
|
|
692
|
-
this.send(command, optionsOrCb);
|
|
693
|
-
}
|
|
694
|
-
else if (typeof cb === "function") {
|
|
695
|
-
if (typeof optionsOrCb !== "object")
|
|
696
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
697
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
698
|
-
}
|
|
699
|
-
else {
|
|
700
|
-
return this.send(command, optionsOrCb);
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
updateContributorInsights(args, optionsOrCb, cb) {
|
|
704
|
-
const command = new UpdateContributorInsightsCommand_1.UpdateContributorInsightsCommand(args);
|
|
705
|
-
if (typeof optionsOrCb === "function") {
|
|
706
|
-
this.send(command, optionsOrCb);
|
|
707
|
-
}
|
|
708
|
-
else if (typeof cb === "function") {
|
|
709
|
-
if (typeof optionsOrCb !== "object")
|
|
710
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
711
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
712
|
-
}
|
|
713
|
-
else {
|
|
714
|
-
return this.send(command, optionsOrCb);
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
updateGlobalTable(args, optionsOrCb, cb) {
|
|
718
|
-
const command = new UpdateGlobalTableCommand_1.UpdateGlobalTableCommand(args);
|
|
719
|
-
if (typeof optionsOrCb === "function") {
|
|
720
|
-
this.send(command, optionsOrCb);
|
|
721
|
-
}
|
|
722
|
-
else if (typeof cb === "function") {
|
|
723
|
-
if (typeof optionsOrCb !== "object")
|
|
724
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
725
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
726
|
-
}
|
|
727
|
-
else {
|
|
728
|
-
return this.send(command, optionsOrCb);
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
updateGlobalTableSettings(args, optionsOrCb, cb) {
|
|
732
|
-
const command = new UpdateGlobalTableSettingsCommand_1.UpdateGlobalTableSettingsCommand(args);
|
|
733
|
-
if (typeof optionsOrCb === "function") {
|
|
734
|
-
this.send(command, optionsOrCb);
|
|
735
|
-
}
|
|
736
|
-
else if (typeof cb === "function") {
|
|
737
|
-
if (typeof optionsOrCb !== "object")
|
|
738
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
739
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
740
|
-
}
|
|
741
|
-
else {
|
|
742
|
-
return this.send(command, optionsOrCb);
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
updateItem(args, optionsOrCb, cb) {
|
|
746
|
-
const command = new UpdateItemCommand_1.UpdateItemCommand(args);
|
|
747
|
-
if (typeof optionsOrCb === "function") {
|
|
748
|
-
this.send(command, optionsOrCb);
|
|
749
|
-
}
|
|
750
|
-
else if (typeof cb === "function") {
|
|
751
|
-
if (typeof optionsOrCb !== "object")
|
|
752
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
753
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
754
|
-
}
|
|
755
|
-
else {
|
|
756
|
-
return this.send(command, optionsOrCb);
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
updateTable(args, optionsOrCb, cb) {
|
|
760
|
-
const command = new UpdateTableCommand_1.UpdateTableCommand(args);
|
|
761
|
-
if (typeof optionsOrCb === "function") {
|
|
762
|
-
this.send(command, optionsOrCb);
|
|
763
|
-
}
|
|
764
|
-
else if (typeof cb === "function") {
|
|
765
|
-
if (typeof optionsOrCb !== "object")
|
|
766
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
767
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
768
|
-
}
|
|
769
|
-
else {
|
|
770
|
-
return this.send(command, optionsOrCb);
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
updateTableReplicaAutoScaling(args, optionsOrCb, cb) {
|
|
774
|
-
const command = new UpdateTableReplicaAutoScalingCommand_1.UpdateTableReplicaAutoScalingCommand(args);
|
|
775
|
-
if (typeof optionsOrCb === "function") {
|
|
776
|
-
this.send(command, optionsOrCb);
|
|
777
|
-
}
|
|
778
|
-
else if (typeof cb === "function") {
|
|
779
|
-
if (typeof optionsOrCb !== "object")
|
|
780
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
781
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
782
|
-
}
|
|
783
|
-
else {
|
|
784
|
-
return this.send(command, optionsOrCb);
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
updateTimeToLive(args, optionsOrCb, cb) {
|
|
788
|
-
const command = new UpdateTimeToLiveCommand_1.UpdateTimeToLiveCommand(args);
|
|
789
|
-
if (typeof optionsOrCb === "function") {
|
|
790
|
-
this.send(command, optionsOrCb);
|
|
791
|
-
}
|
|
792
|
-
else if (typeof cb === "function") {
|
|
793
|
-
if (typeof optionsOrCb !== "object")
|
|
794
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
795
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
796
|
-
}
|
|
797
|
-
else {
|
|
798
|
-
return this.send(command, optionsOrCb);
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
115
|
}
|
|
802
116
|
exports.DynamoDB = DynamoDB;
|
|
117
|
+
(0, smithy_client_1.createAggregatedClient)(commands, DynamoDB);
|