@aws-sdk/client-dynamodb-streams 3.986.0 → 3.988.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/index.js +23 -350
- package/dist-cjs/models/DynamoDBStreamsServiceException.js +12 -0
- package/dist-cjs/models/errors.js +69 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +258 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +40 -34
- package/dist-types/schemas/schemas_0.d.ts +13 -6
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -6
- package/package.json +13 -13
package/dist-cjs/index.js
CHANGED
|
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
15
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
16
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
18
|
+
var schemas_0 = require('./schemas/schemas_0');
|
|
19
|
+
var errors = require('./models/errors');
|
|
20
|
+
var DynamoDBStreamsServiceException = require('./models/DynamoDBStreamsServiceException');
|
|
18
21
|
|
|
19
22
|
const resolveClientEndpointParameters = (options) => {
|
|
20
23
|
return Object.assign(options, {
|
|
@@ -110,318 +113,6 @@ class DynamoDBStreamsClient extends smithyClient.Client {
|
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
|
|
113
|
-
class DynamoDBStreamsServiceException extends smithyClient.ServiceException {
|
|
114
|
-
constructor(options) {
|
|
115
|
-
super(options);
|
|
116
|
-
Object.setPrototypeOf(this, DynamoDBStreamsServiceException.prototype);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
class InternalServerError extends DynamoDBStreamsServiceException {
|
|
121
|
-
name = "InternalServerError";
|
|
122
|
-
$fault = "server";
|
|
123
|
-
constructor(opts) {
|
|
124
|
-
super({
|
|
125
|
-
name: "InternalServerError",
|
|
126
|
-
$fault: "server",
|
|
127
|
-
...opts,
|
|
128
|
-
});
|
|
129
|
-
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
class ResourceNotFoundException extends DynamoDBStreamsServiceException {
|
|
133
|
-
name = "ResourceNotFoundException";
|
|
134
|
-
$fault = "client";
|
|
135
|
-
constructor(opts) {
|
|
136
|
-
super({
|
|
137
|
-
name: "ResourceNotFoundException",
|
|
138
|
-
$fault: "client",
|
|
139
|
-
...opts,
|
|
140
|
-
});
|
|
141
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
class ExpiredIteratorException extends DynamoDBStreamsServiceException {
|
|
145
|
-
name = "ExpiredIteratorException";
|
|
146
|
-
$fault = "client";
|
|
147
|
-
constructor(opts) {
|
|
148
|
-
super({
|
|
149
|
-
name: "ExpiredIteratorException",
|
|
150
|
-
$fault: "client",
|
|
151
|
-
...opts,
|
|
152
|
-
});
|
|
153
|
-
Object.setPrototypeOf(this, ExpiredIteratorException.prototype);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
class LimitExceededException extends DynamoDBStreamsServiceException {
|
|
157
|
-
name = "LimitExceededException";
|
|
158
|
-
$fault = "client";
|
|
159
|
-
constructor(opts) {
|
|
160
|
-
super({
|
|
161
|
-
name: "LimitExceededException",
|
|
162
|
-
$fault: "client",
|
|
163
|
-
...opts,
|
|
164
|
-
});
|
|
165
|
-
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
class TrimmedDataAccessException extends DynamoDBStreamsServiceException {
|
|
169
|
-
name = "TrimmedDataAccessException";
|
|
170
|
-
$fault = "client";
|
|
171
|
-
constructor(opts) {
|
|
172
|
-
super({
|
|
173
|
-
name: "TrimmedDataAccessException",
|
|
174
|
-
$fault: "client",
|
|
175
|
-
...opts,
|
|
176
|
-
});
|
|
177
|
-
Object.setPrototypeOf(this, TrimmedDataAccessException.prototype);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
const _ACDT = "ApproximateCreationDateTime";
|
|
182
|
-
const _AM = "AttributeMap";
|
|
183
|
-
const _AN = "AttributeName";
|
|
184
|
-
const _AV = "AttributeValue";
|
|
185
|
-
const _B = "B";
|
|
186
|
-
const _BOOL = "BOOL";
|
|
187
|
-
const _BS = "BS";
|
|
188
|
-
const _CRDT = "CreationRequestDateTime";
|
|
189
|
-
const _DS = "DescribeStream";
|
|
190
|
-
const _DSI = "DescribeStreamInput";
|
|
191
|
-
const _DSO = "DescribeStreamOutput";
|
|
192
|
-
const _EIE = "ExpiredIteratorException";
|
|
193
|
-
const _ESN = "EndingSequenceNumber";
|
|
194
|
-
const _ESSA = "ExclusiveStartStreamArn";
|
|
195
|
-
const _ESSI = "ExclusiveStartShardId";
|
|
196
|
-
const _GR = "GetRecords";
|
|
197
|
-
const _GRI = "GetRecordsInput";
|
|
198
|
-
const _GRO = "GetRecordsOutput";
|
|
199
|
-
const _GSI = "GetShardIterator";
|
|
200
|
-
const _GSII = "GetShardIteratorInput";
|
|
201
|
-
const _GSIO = "GetShardIteratorOutput";
|
|
202
|
-
const _I = "Identity";
|
|
203
|
-
const _ISE = "InternalServerError";
|
|
204
|
-
const _K = "Keys";
|
|
205
|
-
const _KS = "KeySchema";
|
|
206
|
-
const _KSE = "KeySchemaElement";
|
|
207
|
-
const _KT = "KeyType";
|
|
208
|
-
const _L = "Limit";
|
|
209
|
-
const _LAV = "ListAttributeValue";
|
|
210
|
-
const _LEE = "LimitExceededException";
|
|
211
|
-
const _LESA = "LastEvaluatedStreamArn";
|
|
212
|
-
const _LESI = "LastEvaluatedShardId";
|
|
213
|
-
const _LS = "ListStreams";
|
|
214
|
-
const _LSI = "ListStreamsInput";
|
|
215
|
-
const _LSO = "ListStreamsOutput";
|
|
216
|
-
const _L_ = "L";
|
|
217
|
-
const _M = "M";
|
|
218
|
-
const _MAV = "MapAttributeValue";
|
|
219
|
-
const _N = "N";
|
|
220
|
-
const _NI = "NewImage";
|
|
221
|
-
const _NS = "NS";
|
|
222
|
-
const _NSI = "NextShardIterator";
|
|
223
|
-
const _NULL = "NULL";
|
|
224
|
-
const _OI = "OldImage";
|
|
225
|
-
const _PI = "PrincipalId";
|
|
226
|
-
const _PSI = "ParentShardId";
|
|
227
|
-
const _R = "Records";
|
|
228
|
-
const _RL = "RecordList";
|
|
229
|
-
const _RNFE = "ResourceNotFoundException";
|
|
230
|
-
const _Re = "Record";
|
|
231
|
-
const _S = "Streams";
|
|
232
|
-
const _SA = "StreamArn";
|
|
233
|
-
const _SB = "SizeBytes";
|
|
234
|
-
const _SD = "StreamDescription";
|
|
235
|
-
const _SDL = "ShardDescriptionList";
|
|
236
|
-
const _SF = "ShardFilter";
|
|
237
|
-
const _SI = "ShardIterator";
|
|
238
|
-
const _SIT = "ShardIteratorType";
|
|
239
|
-
const _SIh = "ShardId";
|
|
240
|
-
const _SL = "StreamLabel";
|
|
241
|
-
const _SLt = "StreamList";
|
|
242
|
-
const _SN = "SequenceNumber";
|
|
243
|
-
const _SNR = "SequenceNumberRange";
|
|
244
|
-
const _SR = "StreamRecord";
|
|
245
|
-
const _SS = "StreamStatus";
|
|
246
|
-
const _SSN = "StartingSequenceNumber";
|
|
247
|
-
const _SS_ = "SS";
|
|
248
|
-
const _SVT = "StreamViewType";
|
|
249
|
-
const _S_ = "S";
|
|
250
|
-
const _Sh = "Shard";
|
|
251
|
-
const _Sha = "Shards";
|
|
252
|
-
const _St = "Stream";
|
|
253
|
-
const _T = "Type";
|
|
254
|
-
const _TDAE = "TrimmedDataAccessException";
|
|
255
|
-
const _TN = "TableName";
|
|
256
|
-
const _aR = "awsRegion";
|
|
257
|
-
const _c = "client";
|
|
258
|
-
const _d = "dynamodb";
|
|
259
|
-
const _e = "error";
|
|
260
|
-
const _eID = "eventID";
|
|
261
|
-
const _eN = "eventName";
|
|
262
|
-
const _eS = "eventSource";
|
|
263
|
-
const _eV = "eventVersion";
|
|
264
|
-
const _m = "message";
|
|
265
|
-
const _s = "server";
|
|
266
|
-
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.dynamodbstreams";
|
|
267
|
-
const _uI = "userIdentity";
|
|
268
|
-
const n0 = "com.amazonaws.dynamodbstreams";
|
|
269
|
-
var DescribeStreamInput$ = [3, n0, _DSI,
|
|
270
|
-
0,
|
|
271
|
-
[_SA, _L, _ESSI, _SF],
|
|
272
|
-
[0, 1, 0, () => ShardFilter$], 1
|
|
273
|
-
];
|
|
274
|
-
var DescribeStreamOutput$ = [3, n0, _DSO,
|
|
275
|
-
0,
|
|
276
|
-
[_SD],
|
|
277
|
-
[() => StreamDescription$]
|
|
278
|
-
];
|
|
279
|
-
var ExpiredIteratorException$ = [-3, n0, _EIE,
|
|
280
|
-
{ [_e]: _c },
|
|
281
|
-
[_m],
|
|
282
|
-
[0]
|
|
283
|
-
];
|
|
284
|
-
schema.TypeRegistry.for(n0).registerError(ExpiredIteratorException$, ExpiredIteratorException);
|
|
285
|
-
var GetRecordsInput$ = [3, n0, _GRI,
|
|
286
|
-
0,
|
|
287
|
-
[_SI, _L],
|
|
288
|
-
[0, 1], 1
|
|
289
|
-
];
|
|
290
|
-
var GetRecordsOutput$ = [3, n0, _GRO,
|
|
291
|
-
0,
|
|
292
|
-
[_R, _NSI],
|
|
293
|
-
[() => RecordList, 0]
|
|
294
|
-
];
|
|
295
|
-
var GetShardIteratorInput$ = [3, n0, _GSII,
|
|
296
|
-
0,
|
|
297
|
-
[_SA, _SIh, _SIT, _SN],
|
|
298
|
-
[0, 0, 0, 0], 3
|
|
299
|
-
];
|
|
300
|
-
var GetShardIteratorOutput$ = [3, n0, _GSIO,
|
|
301
|
-
0,
|
|
302
|
-
[_SI],
|
|
303
|
-
[0]
|
|
304
|
-
];
|
|
305
|
-
var Identity$ = [3, n0, _I,
|
|
306
|
-
0,
|
|
307
|
-
[_PI, _T],
|
|
308
|
-
[0, 0]
|
|
309
|
-
];
|
|
310
|
-
var InternalServerError$ = [-3, n0, _ISE,
|
|
311
|
-
{ [_e]: _s },
|
|
312
|
-
[_m],
|
|
313
|
-
[0]
|
|
314
|
-
];
|
|
315
|
-
schema.TypeRegistry.for(n0).registerError(InternalServerError$, InternalServerError);
|
|
316
|
-
var KeySchemaElement$ = [3, n0, _KSE,
|
|
317
|
-
0,
|
|
318
|
-
[_AN, _KT],
|
|
319
|
-
[0, 0], 2
|
|
320
|
-
];
|
|
321
|
-
var LimitExceededException$ = [-3, n0, _LEE,
|
|
322
|
-
{ [_e]: _c },
|
|
323
|
-
[_m],
|
|
324
|
-
[0]
|
|
325
|
-
];
|
|
326
|
-
schema.TypeRegistry.for(n0).registerError(LimitExceededException$, LimitExceededException);
|
|
327
|
-
var ListStreamsInput$ = [3, n0, _LSI,
|
|
328
|
-
0,
|
|
329
|
-
[_TN, _L, _ESSA],
|
|
330
|
-
[0, 1, 0]
|
|
331
|
-
];
|
|
332
|
-
var ListStreamsOutput$ = [3, n0, _LSO,
|
|
333
|
-
0,
|
|
334
|
-
[_S, _LESA],
|
|
335
|
-
[() => StreamList, 0]
|
|
336
|
-
];
|
|
337
|
-
var _Record$ = [3, n0, _Re,
|
|
338
|
-
0,
|
|
339
|
-
[_eID, _eN, _eV, _eS, _aR, _d, _uI],
|
|
340
|
-
[0, 0, 0, 0, 0, () => StreamRecord$, () => Identity$]
|
|
341
|
-
];
|
|
342
|
-
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
343
|
-
{ [_e]: _c },
|
|
344
|
-
[_m],
|
|
345
|
-
[0]
|
|
346
|
-
];
|
|
347
|
-
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
348
|
-
var SequenceNumberRange$ = [3, n0, _SNR,
|
|
349
|
-
0,
|
|
350
|
-
[_SSN, _ESN],
|
|
351
|
-
[0, 0]
|
|
352
|
-
];
|
|
353
|
-
var Shard$ = [3, n0, _Sh,
|
|
354
|
-
0,
|
|
355
|
-
[_SIh, _SNR, _PSI],
|
|
356
|
-
[0, () => SequenceNumberRange$, 0]
|
|
357
|
-
];
|
|
358
|
-
var ShardFilter$ = [3, n0, _SF,
|
|
359
|
-
0,
|
|
360
|
-
[_T, _SIh],
|
|
361
|
-
[0, 0]
|
|
362
|
-
];
|
|
363
|
-
var _Stream$ = [3, n0, _St,
|
|
364
|
-
0,
|
|
365
|
-
[_SA, _TN, _SL],
|
|
366
|
-
[0, 0, 0]
|
|
367
|
-
];
|
|
368
|
-
var StreamDescription$ = [3, n0, _SD,
|
|
369
|
-
0,
|
|
370
|
-
[_SA, _SL, _SS, _SVT, _CRDT, _TN, _KS, _Sha, _LESI],
|
|
371
|
-
[0, 0, 0, 0, 4, 0, () => KeySchema, () => ShardDescriptionList, 0]
|
|
372
|
-
];
|
|
373
|
-
var StreamRecord$ = [3, n0, _SR,
|
|
374
|
-
0,
|
|
375
|
-
[_ACDT, _K, _NI, _OI, _SN, _SB, _SVT],
|
|
376
|
-
[4, () => AttributeMap, () => AttributeMap, () => AttributeMap, 0, 1, 0]
|
|
377
|
-
];
|
|
378
|
-
var TrimmedDataAccessException$ = [-3, n0, _TDAE,
|
|
379
|
-
{ [_e]: _c },
|
|
380
|
-
[_m],
|
|
381
|
-
[0]
|
|
382
|
-
];
|
|
383
|
-
schema.TypeRegistry.for(n0).registerError(TrimmedDataAccessException$, TrimmedDataAccessException);
|
|
384
|
-
var DynamoDBStreamsServiceException$ = [-3, _sm, "DynamoDBStreamsServiceException", 0, [], []];
|
|
385
|
-
schema.TypeRegistry.for(_sm).registerError(DynamoDBStreamsServiceException$, DynamoDBStreamsServiceException);
|
|
386
|
-
var KeySchema = [1, n0, _KS,
|
|
387
|
-
0, () => KeySchemaElement$
|
|
388
|
-
];
|
|
389
|
-
var ListAttributeValue = [1, n0, _LAV,
|
|
390
|
-
0, () => AttributeValue$
|
|
391
|
-
];
|
|
392
|
-
var RecordList = [1, n0, _RL,
|
|
393
|
-
0, () => _Record$
|
|
394
|
-
];
|
|
395
|
-
var ShardDescriptionList = [1, n0, _SDL,
|
|
396
|
-
0, () => Shard$
|
|
397
|
-
];
|
|
398
|
-
var StreamList = [1, n0, _SLt,
|
|
399
|
-
0, () => _Stream$
|
|
400
|
-
];
|
|
401
|
-
var AttributeMap = [2, n0, _AM,
|
|
402
|
-
0, 0, () => AttributeValue$
|
|
403
|
-
];
|
|
404
|
-
var MapAttributeValue = [2, n0, _MAV,
|
|
405
|
-
0, 0, () => AttributeValue$
|
|
406
|
-
];
|
|
407
|
-
var AttributeValue$ = [4, n0, _AV,
|
|
408
|
-
0,
|
|
409
|
-
[_S_, _N, _B, _SS_, _NS, _BS, _M, _L_, _NULL, _BOOL],
|
|
410
|
-
[0, 0, 21, 64 | 0, 64 | 0, 64 | 21, () => MapAttributeValue, () => ListAttributeValue, 2, 2]
|
|
411
|
-
];
|
|
412
|
-
var DescribeStream$ = [9, n0, _DS,
|
|
413
|
-
0, () => DescribeStreamInput$, () => DescribeStreamOutput$
|
|
414
|
-
];
|
|
415
|
-
var GetRecords$ = [9, n0, _GR,
|
|
416
|
-
0, () => GetRecordsInput$, () => GetRecordsOutput$
|
|
417
|
-
];
|
|
418
|
-
var GetShardIterator$ = [9, n0, _GSI,
|
|
419
|
-
0, () => GetShardIteratorInput$, () => GetShardIteratorOutput$
|
|
420
|
-
];
|
|
421
|
-
var ListStreams$ = [9, n0, _LS,
|
|
422
|
-
0, () => ListStreamsInput$, () => ListStreamsOutput$
|
|
423
|
-
];
|
|
424
|
-
|
|
425
116
|
class DescribeStreamCommand extends smithyClient.Command
|
|
426
117
|
.classBuilder()
|
|
427
118
|
.ep(commonParams)
|
|
@@ -430,7 +121,7 @@ class DescribeStreamCommand extends smithyClient.Command
|
|
|
430
121
|
})
|
|
431
122
|
.s("DynamoDBStreams_20120810", "DescribeStream", {})
|
|
432
123
|
.n("DynamoDBStreamsClient", "DescribeStreamCommand")
|
|
433
|
-
.sc(DescribeStream$)
|
|
124
|
+
.sc(schemas_0.DescribeStream$)
|
|
434
125
|
.build() {
|
|
435
126
|
}
|
|
436
127
|
|
|
@@ -442,7 +133,7 @@ class GetRecordsCommand extends smithyClient.Command
|
|
|
442
133
|
})
|
|
443
134
|
.s("DynamoDBStreams_20120810", "GetRecords", {})
|
|
444
135
|
.n("DynamoDBStreamsClient", "GetRecordsCommand")
|
|
445
|
-
.sc(GetRecords$)
|
|
136
|
+
.sc(schemas_0.GetRecords$)
|
|
446
137
|
.build() {
|
|
447
138
|
}
|
|
448
139
|
|
|
@@ -454,7 +145,7 @@ class GetShardIteratorCommand extends smithyClient.Command
|
|
|
454
145
|
})
|
|
455
146
|
.s("DynamoDBStreams_20120810", "GetShardIterator", {})
|
|
456
147
|
.n("DynamoDBStreamsClient", "GetShardIteratorCommand")
|
|
457
|
-
.sc(GetShardIterator$)
|
|
148
|
+
.sc(schemas_0.GetShardIterator$)
|
|
458
149
|
.build() {
|
|
459
150
|
}
|
|
460
151
|
|
|
@@ -466,7 +157,7 @@ class ListStreamsCommand extends smithyClient.Command
|
|
|
466
157
|
})
|
|
467
158
|
.s("DynamoDBStreams_20120810", "ListStreams", {})
|
|
468
159
|
.n("DynamoDBStreamsClient", "ListStreamsCommand")
|
|
469
|
-
.sc(ListStreams$)
|
|
160
|
+
.sc(schemas_0.ListStreams$)
|
|
470
161
|
.build() {
|
|
471
162
|
}
|
|
472
163
|
|
|
@@ -519,49 +210,31 @@ Object.defineProperty(exports, "__Client", {
|
|
|
519
210
|
enumerable: true,
|
|
520
211
|
get: function () { return smithyClient.Client; }
|
|
521
212
|
});
|
|
522
|
-
exports
|
|
523
|
-
|
|
213
|
+
Object.defineProperty(exports, "DynamoDBStreamsServiceException", {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
get: function () { return DynamoDBStreamsServiceException.DynamoDBStreamsServiceException; }
|
|
216
|
+
});
|
|
524
217
|
exports.DescribeStreamCommand = DescribeStreamCommand;
|
|
525
|
-
exports.DescribeStreamInput$ = DescribeStreamInput$;
|
|
526
|
-
exports.DescribeStreamOutput$ = DescribeStreamOutput$;
|
|
527
218
|
exports.DynamoDBStreams = DynamoDBStreams;
|
|
528
219
|
exports.DynamoDBStreamsClient = DynamoDBStreamsClient;
|
|
529
|
-
exports.DynamoDBStreamsServiceException = DynamoDBStreamsServiceException;
|
|
530
|
-
exports.DynamoDBStreamsServiceException$ = DynamoDBStreamsServiceException$;
|
|
531
|
-
exports.ExpiredIteratorException = ExpiredIteratorException;
|
|
532
|
-
exports.ExpiredIteratorException$ = ExpiredIteratorException$;
|
|
533
|
-
exports.GetRecords$ = GetRecords$;
|
|
534
220
|
exports.GetRecordsCommand = GetRecordsCommand;
|
|
535
|
-
exports.GetRecordsInput$ = GetRecordsInput$;
|
|
536
|
-
exports.GetRecordsOutput$ = GetRecordsOutput$;
|
|
537
|
-
exports.GetShardIterator$ = GetShardIterator$;
|
|
538
221
|
exports.GetShardIteratorCommand = GetShardIteratorCommand;
|
|
539
|
-
exports.GetShardIteratorInput$ = GetShardIteratorInput$;
|
|
540
|
-
exports.GetShardIteratorOutput$ = GetShardIteratorOutput$;
|
|
541
|
-
exports.Identity$ = Identity$;
|
|
542
|
-
exports.InternalServerError = InternalServerError;
|
|
543
|
-
exports.InternalServerError$ = InternalServerError$;
|
|
544
|
-
exports.KeySchemaElement$ = KeySchemaElement$;
|
|
545
222
|
exports.KeyType = KeyType;
|
|
546
|
-
exports.LimitExceededException = LimitExceededException;
|
|
547
|
-
exports.LimitExceededException$ = LimitExceededException$;
|
|
548
|
-
exports.ListStreams$ = ListStreams$;
|
|
549
223
|
exports.ListStreamsCommand = ListStreamsCommand;
|
|
550
|
-
exports.ListStreamsInput$ = ListStreamsInput$;
|
|
551
|
-
exports.ListStreamsOutput$ = ListStreamsOutput$;
|
|
552
224
|
exports.OperationType = OperationType;
|
|
553
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
554
|
-
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
555
|
-
exports.SequenceNumberRange$ = SequenceNumberRange$;
|
|
556
|
-
exports.Shard$ = Shard$;
|
|
557
|
-
exports.ShardFilter$ = ShardFilter$;
|
|
558
225
|
exports.ShardFilterType = ShardFilterType;
|
|
559
226
|
exports.ShardIteratorType = ShardIteratorType;
|
|
560
|
-
exports.StreamDescription$ = StreamDescription$;
|
|
561
|
-
exports.StreamRecord$ = StreamRecord$;
|
|
562
227
|
exports.StreamStatus = StreamStatus;
|
|
563
228
|
exports.StreamViewType = StreamViewType;
|
|
564
|
-
|
|
565
|
-
exports.
|
|
566
|
-
|
|
567
|
-
|
|
229
|
+
Object.keys(schemas_0).forEach(function (k) {
|
|
230
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
231
|
+
enumerable: true,
|
|
232
|
+
get: function () { return schemas_0[k]; }
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
Object.keys(errors).forEach(function (k) {
|
|
236
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
237
|
+
enumerable: true,
|
|
238
|
+
get: function () { return errors[k]; }
|
|
239
|
+
});
|
|
240
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamoDBStreamsServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class DynamoDBStreamsServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, DynamoDBStreamsServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.DynamoDBStreamsServiceException = DynamoDBStreamsServiceException;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TrimmedDataAccessException = exports.LimitExceededException = exports.ExpiredIteratorException = exports.ResourceNotFoundException = exports.InternalServerError = void 0;
|
|
4
|
+
const DynamoDBStreamsServiceException_1 = require("./DynamoDBStreamsServiceException");
|
|
5
|
+
class InternalServerError extends DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException {
|
|
6
|
+
name = "InternalServerError";
|
|
7
|
+
$fault = "server";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "InternalServerError",
|
|
11
|
+
$fault: "server",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.InternalServerError = InternalServerError;
|
|
18
|
+
class ResourceNotFoundException extends DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException {
|
|
19
|
+
name = "ResourceNotFoundException";
|
|
20
|
+
$fault = "client";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "ResourceNotFoundException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
31
|
+
class ExpiredIteratorException extends DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException {
|
|
32
|
+
name = "ExpiredIteratorException";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "ExpiredIteratorException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, ExpiredIteratorException.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.ExpiredIteratorException = ExpiredIteratorException;
|
|
44
|
+
class LimitExceededException extends DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException {
|
|
45
|
+
name = "LimitExceededException";
|
|
46
|
+
$fault = "client";
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "LimitExceededException",
|
|
50
|
+
$fault: "client",
|
|
51
|
+
...opts,
|
|
52
|
+
});
|
|
53
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.LimitExceededException = LimitExceededException;
|
|
57
|
+
class TrimmedDataAccessException extends DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException {
|
|
58
|
+
name = "TrimmedDataAccessException";
|
|
59
|
+
$fault = "client";
|
|
60
|
+
constructor(opts) {
|
|
61
|
+
super({
|
|
62
|
+
name: "TrimmedDataAccessException",
|
|
63
|
+
$fault: "client",
|
|
64
|
+
...opts,
|
|
65
|
+
});
|
|
66
|
+
Object.setPrototypeOf(this, TrimmedDataAccessException.prototype);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.TrimmedDataAccessException = TrimmedDataAccessException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2012-08-10",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsJson1_0Protocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.dynamodbstreams",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
xmlNamespace: "http://dynamodb.amazonaws.com/doc/2012-08-10/",
|
|
33
35
|
version: "2012-08-10",
|
|
34
36
|
serviceTarget: "DynamoDBStreams_20120810",
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListStreams$ = exports.GetShardIterator$ = exports.GetRecords$ = exports.DescribeStream$ = exports.AttributeValue$ = exports.StreamRecord$ = exports.StreamDescription$ = exports._Stream$ = exports.ShardFilter$ = exports.Shard$ = exports.SequenceNumberRange$ = exports._Record$ = exports.ListStreamsOutput$ = exports.ListStreamsInput$ = exports.KeySchemaElement$ = exports.Identity$ = exports.GetShardIteratorOutput$ = exports.GetShardIteratorInput$ = exports.GetRecordsOutput$ = exports.GetRecordsInput$ = exports.DescribeStreamOutput$ = exports.DescribeStreamInput$ = exports.errorTypeRegistries = exports.TrimmedDataAccessException$ = exports.ResourceNotFoundException$ = exports.LimitExceededException$ = exports.InternalServerError$ = exports.ExpiredIteratorException$ = exports.DynamoDBStreamsServiceException$ = void 0;
|
|
4
|
+
const _ACDT = "ApproximateCreationDateTime";
|
|
5
|
+
const _AM = "AttributeMap";
|
|
6
|
+
const _AN = "AttributeName";
|
|
7
|
+
const _AV = "AttributeValue";
|
|
8
|
+
const _B = "B";
|
|
9
|
+
const _BOOL = "BOOL";
|
|
10
|
+
const _BS = "BS";
|
|
11
|
+
const _CRDT = "CreationRequestDateTime";
|
|
12
|
+
const _DS = "DescribeStream";
|
|
13
|
+
const _DSI = "DescribeStreamInput";
|
|
14
|
+
const _DSO = "DescribeStreamOutput";
|
|
15
|
+
const _EIE = "ExpiredIteratorException";
|
|
16
|
+
const _ESN = "EndingSequenceNumber";
|
|
17
|
+
const _ESSA = "ExclusiveStartStreamArn";
|
|
18
|
+
const _ESSI = "ExclusiveStartShardId";
|
|
19
|
+
const _GR = "GetRecords";
|
|
20
|
+
const _GRI = "GetRecordsInput";
|
|
21
|
+
const _GRO = "GetRecordsOutput";
|
|
22
|
+
const _GSI = "GetShardIterator";
|
|
23
|
+
const _GSII = "GetShardIteratorInput";
|
|
24
|
+
const _GSIO = "GetShardIteratorOutput";
|
|
25
|
+
const _I = "Identity";
|
|
26
|
+
const _ISE = "InternalServerError";
|
|
27
|
+
const _K = "Keys";
|
|
28
|
+
const _KS = "KeySchema";
|
|
29
|
+
const _KSE = "KeySchemaElement";
|
|
30
|
+
const _KT = "KeyType";
|
|
31
|
+
const _L = "Limit";
|
|
32
|
+
const _LAV = "ListAttributeValue";
|
|
33
|
+
const _LEE = "LimitExceededException";
|
|
34
|
+
const _LESA = "LastEvaluatedStreamArn";
|
|
35
|
+
const _LESI = "LastEvaluatedShardId";
|
|
36
|
+
const _LS = "ListStreams";
|
|
37
|
+
const _LSI = "ListStreamsInput";
|
|
38
|
+
const _LSO = "ListStreamsOutput";
|
|
39
|
+
const _L_ = "L";
|
|
40
|
+
const _M = "M";
|
|
41
|
+
const _MAV = "MapAttributeValue";
|
|
42
|
+
const _N = "N";
|
|
43
|
+
const _NI = "NewImage";
|
|
44
|
+
const _NS = "NS";
|
|
45
|
+
const _NSI = "NextShardIterator";
|
|
46
|
+
const _NULL = "NULL";
|
|
47
|
+
const _OI = "OldImage";
|
|
48
|
+
const _PI = "PrincipalId";
|
|
49
|
+
const _PSI = "ParentShardId";
|
|
50
|
+
const _R = "Records";
|
|
51
|
+
const _RL = "RecordList";
|
|
52
|
+
const _RNFE = "ResourceNotFoundException";
|
|
53
|
+
const _Re = "Record";
|
|
54
|
+
const _S = "Streams";
|
|
55
|
+
const _SA = "StreamArn";
|
|
56
|
+
const _SB = "SizeBytes";
|
|
57
|
+
const _SD = "StreamDescription";
|
|
58
|
+
const _SDL = "ShardDescriptionList";
|
|
59
|
+
const _SF = "ShardFilter";
|
|
60
|
+
const _SI = "ShardIterator";
|
|
61
|
+
const _SIT = "ShardIteratorType";
|
|
62
|
+
const _SIh = "ShardId";
|
|
63
|
+
const _SL = "StreamLabel";
|
|
64
|
+
const _SLt = "StreamList";
|
|
65
|
+
const _SN = "SequenceNumber";
|
|
66
|
+
const _SNR = "SequenceNumberRange";
|
|
67
|
+
const _SR = "StreamRecord";
|
|
68
|
+
const _SS = "StreamStatus";
|
|
69
|
+
const _SSN = "StartingSequenceNumber";
|
|
70
|
+
const _SS_ = "SS";
|
|
71
|
+
const _SVT = "StreamViewType";
|
|
72
|
+
const _S_ = "S";
|
|
73
|
+
const _Sh = "Shard";
|
|
74
|
+
const _Sha = "Shards";
|
|
75
|
+
const _St = "Stream";
|
|
76
|
+
const _T = "Type";
|
|
77
|
+
const _TDAE = "TrimmedDataAccessException";
|
|
78
|
+
const _TN = "TableName";
|
|
79
|
+
const _aR = "awsRegion";
|
|
80
|
+
const _c = "client";
|
|
81
|
+
const _d = "dynamodb";
|
|
82
|
+
const _e = "error";
|
|
83
|
+
const _eID = "eventID";
|
|
84
|
+
const _eN = "eventName";
|
|
85
|
+
const _eS = "eventSource";
|
|
86
|
+
const _eV = "eventVersion";
|
|
87
|
+
const _m = "message";
|
|
88
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.dynamodbstreams";
|
|
89
|
+
const _se = "server";
|
|
90
|
+
const _uI = "userIdentity";
|
|
91
|
+
const n0 = "com.amazonaws.dynamodbstreams";
|
|
92
|
+
const schema_1 = require("@smithy/core/schema");
|
|
93
|
+
const DynamoDBStreamsServiceException_1 = require("../models/DynamoDBStreamsServiceException");
|
|
94
|
+
const errors_1 = require("../models/errors");
|
|
95
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
96
|
+
exports.DynamoDBStreamsServiceException$ = [-3, _s, "DynamoDBStreamsServiceException", 0, [], []];
|
|
97
|
+
_s_registry.registerError(exports.DynamoDBStreamsServiceException$, DynamoDBStreamsServiceException_1.DynamoDBStreamsServiceException);
|
|
98
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
99
|
+
exports.ExpiredIteratorException$ = [-3, n0, _EIE,
|
|
100
|
+
{ [_e]: _c },
|
|
101
|
+
[_m],
|
|
102
|
+
[0]
|
|
103
|
+
];
|
|
104
|
+
n0_registry.registerError(exports.ExpiredIteratorException$, errors_1.ExpiredIteratorException);
|
|
105
|
+
exports.InternalServerError$ = [-3, n0, _ISE,
|
|
106
|
+
{ [_e]: _se },
|
|
107
|
+
[_m],
|
|
108
|
+
[0]
|
|
109
|
+
];
|
|
110
|
+
n0_registry.registerError(exports.InternalServerError$, errors_1.InternalServerError);
|
|
111
|
+
exports.LimitExceededException$ = [-3, n0, _LEE,
|
|
112
|
+
{ [_e]: _c },
|
|
113
|
+
[_m],
|
|
114
|
+
[0]
|
|
115
|
+
];
|
|
116
|
+
n0_registry.registerError(exports.LimitExceededException$, errors_1.LimitExceededException);
|
|
117
|
+
exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
118
|
+
{ [_e]: _c },
|
|
119
|
+
[_m],
|
|
120
|
+
[0]
|
|
121
|
+
];
|
|
122
|
+
n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
|
|
123
|
+
exports.TrimmedDataAccessException$ = [-3, n0, _TDAE,
|
|
124
|
+
{ [_e]: _c },
|
|
125
|
+
[_m],
|
|
126
|
+
[0]
|
|
127
|
+
];
|
|
128
|
+
n0_registry.registerError(exports.TrimmedDataAccessException$, errors_1.TrimmedDataAccessException);
|
|
129
|
+
exports.errorTypeRegistries = [
|
|
130
|
+
_s_registry,
|
|
131
|
+
n0_registry,
|
|
132
|
+
];
|
|
133
|
+
exports.DescribeStreamInput$ = [3, n0, _DSI,
|
|
134
|
+
0,
|
|
135
|
+
[_SA, _L, _ESSI, _SF],
|
|
136
|
+
[0, 1, 0, () => exports.ShardFilter$], 1
|
|
137
|
+
];
|
|
138
|
+
exports.DescribeStreamOutput$ = [3, n0, _DSO,
|
|
139
|
+
0,
|
|
140
|
+
[_SD],
|
|
141
|
+
[() => exports.StreamDescription$]
|
|
142
|
+
];
|
|
143
|
+
exports.GetRecordsInput$ = [3, n0, _GRI,
|
|
144
|
+
0,
|
|
145
|
+
[_SI, _L],
|
|
146
|
+
[0, 1], 1
|
|
147
|
+
];
|
|
148
|
+
exports.GetRecordsOutput$ = [3, n0, _GRO,
|
|
149
|
+
0,
|
|
150
|
+
[_R, _NSI],
|
|
151
|
+
[() => RecordList, 0]
|
|
152
|
+
];
|
|
153
|
+
exports.GetShardIteratorInput$ = [3, n0, _GSII,
|
|
154
|
+
0,
|
|
155
|
+
[_SA, _SIh, _SIT, _SN],
|
|
156
|
+
[0, 0, 0, 0], 3
|
|
157
|
+
];
|
|
158
|
+
exports.GetShardIteratorOutput$ = [3, n0, _GSIO,
|
|
159
|
+
0,
|
|
160
|
+
[_SI],
|
|
161
|
+
[0]
|
|
162
|
+
];
|
|
163
|
+
exports.Identity$ = [3, n0, _I,
|
|
164
|
+
0,
|
|
165
|
+
[_PI, _T],
|
|
166
|
+
[0, 0]
|
|
167
|
+
];
|
|
168
|
+
exports.KeySchemaElement$ = [3, n0, _KSE,
|
|
169
|
+
0,
|
|
170
|
+
[_AN, _KT],
|
|
171
|
+
[0, 0], 2
|
|
172
|
+
];
|
|
173
|
+
exports.ListStreamsInput$ = [3, n0, _LSI,
|
|
174
|
+
0,
|
|
175
|
+
[_TN, _L, _ESSA],
|
|
176
|
+
[0, 1, 0]
|
|
177
|
+
];
|
|
178
|
+
exports.ListStreamsOutput$ = [3, n0, _LSO,
|
|
179
|
+
0,
|
|
180
|
+
[_S, _LESA],
|
|
181
|
+
[() => StreamList, 0]
|
|
182
|
+
];
|
|
183
|
+
exports._Record$ = [3, n0, _Re,
|
|
184
|
+
0,
|
|
185
|
+
[_eID, _eN, _eV, _eS, _aR, _d, _uI],
|
|
186
|
+
[0, 0, 0, 0, 0, () => exports.StreamRecord$, () => exports.Identity$]
|
|
187
|
+
];
|
|
188
|
+
exports.SequenceNumberRange$ = [3, n0, _SNR,
|
|
189
|
+
0,
|
|
190
|
+
[_SSN, _ESN],
|
|
191
|
+
[0, 0]
|
|
192
|
+
];
|
|
193
|
+
exports.Shard$ = [3, n0, _Sh,
|
|
194
|
+
0,
|
|
195
|
+
[_SIh, _SNR, _PSI],
|
|
196
|
+
[0, () => exports.SequenceNumberRange$, 0]
|
|
197
|
+
];
|
|
198
|
+
exports.ShardFilter$ = [3, n0, _SF,
|
|
199
|
+
0,
|
|
200
|
+
[_T, _SIh],
|
|
201
|
+
[0, 0]
|
|
202
|
+
];
|
|
203
|
+
exports._Stream$ = [3, n0, _St,
|
|
204
|
+
0,
|
|
205
|
+
[_SA, _TN, _SL],
|
|
206
|
+
[0, 0, 0]
|
|
207
|
+
];
|
|
208
|
+
exports.StreamDescription$ = [3, n0, _SD,
|
|
209
|
+
0,
|
|
210
|
+
[_SA, _SL, _SS, _SVT, _CRDT, _TN, _KS, _Sha, _LESI],
|
|
211
|
+
[0, 0, 0, 0, 4, 0, () => KeySchema, () => ShardDescriptionList, 0]
|
|
212
|
+
];
|
|
213
|
+
exports.StreamRecord$ = [3, n0, _SR,
|
|
214
|
+
0,
|
|
215
|
+
[_ACDT, _K, _NI, _OI, _SN, _SB, _SVT],
|
|
216
|
+
[4, () => AttributeMap, () => AttributeMap, () => AttributeMap, 0, 1, 0]
|
|
217
|
+
];
|
|
218
|
+
var BinarySetAttributeValue = 64 | 21;
|
|
219
|
+
var KeySchema = [1, n0, _KS,
|
|
220
|
+
0, () => exports.KeySchemaElement$
|
|
221
|
+
];
|
|
222
|
+
var ListAttributeValue = [1, n0, _LAV,
|
|
223
|
+
0, () => exports.AttributeValue$
|
|
224
|
+
];
|
|
225
|
+
var NumberSetAttributeValue = 64 | 0;
|
|
226
|
+
var RecordList = [1, n0, _RL,
|
|
227
|
+
0, () => exports._Record$
|
|
228
|
+
];
|
|
229
|
+
var ShardDescriptionList = [1, n0, _SDL,
|
|
230
|
+
0, () => exports.Shard$
|
|
231
|
+
];
|
|
232
|
+
var StreamList = [1, n0, _SLt,
|
|
233
|
+
0, () => exports._Stream$
|
|
234
|
+
];
|
|
235
|
+
var StringSetAttributeValue = 64 | 0;
|
|
236
|
+
var AttributeMap = [2, n0, _AM,
|
|
237
|
+
0, 0, () => exports.AttributeValue$
|
|
238
|
+
];
|
|
239
|
+
var MapAttributeValue = [2, n0, _MAV,
|
|
240
|
+
0, 0, () => exports.AttributeValue$
|
|
241
|
+
];
|
|
242
|
+
exports.AttributeValue$ = [4, n0, _AV,
|
|
243
|
+
0,
|
|
244
|
+
[_S_, _N, _B, _SS_, _NS, _BS, _M, _L_, _NULL, _BOOL],
|
|
245
|
+
[0, 0, 21, 64 | 0, 64 | 0, 64 | 21, () => MapAttributeValue, () => ListAttributeValue, 2, 2]
|
|
246
|
+
];
|
|
247
|
+
exports.DescribeStream$ = [9, n0, _DS,
|
|
248
|
+
0, () => exports.DescribeStreamInput$, () => exports.DescribeStreamOutput$
|
|
249
|
+
];
|
|
250
|
+
exports.GetRecords$ = [9, n0, _GR,
|
|
251
|
+
0, () => exports.GetRecordsInput$, () => exports.GetRecordsOutput$
|
|
252
|
+
];
|
|
253
|
+
exports.GetShardIterator$ = [9, n0, _GSI,
|
|
254
|
+
0, () => exports.GetShardIteratorInput$, () => exports.GetShardIteratorOutput$
|
|
255
|
+
];
|
|
256
|
+
exports.ListStreams$ = [9, n0, _LS,
|
|
257
|
+
0, () => exports.ListStreamsInput$, () => exports.ListStreamsOutput$
|
|
258
|
+
];
|
|
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
|
6
6
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
7
|
import { defaultDynamoDBStreamsHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
8
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
9
10
|
export const getRuntimeConfig = (config) => {
|
|
10
11
|
return {
|
|
11
12
|
apiVersion: "2012-08-10",
|
|
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
26
27
|
protocol: config?.protocol ?? AwsJson1_0Protocol,
|
|
27
28
|
protocolSettings: config?.protocolSettings ?? {
|
|
28
29
|
defaultNamespace: "com.amazonaws.dynamodbstreams",
|
|
30
|
+
errorTypeRegistries,
|
|
29
31
|
xmlNamespace: "http://dynamodb.amazonaws.com/doc/2012-08-10/",
|
|
30
32
|
version: "2012-08-10",
|
|
31
33
|
serviceTarget: "DynamoDBStreams_20120810",
|
|
@@ -82,13 +82,51 @@ const _eN = "eventName";
|
|
|
82
82
|
const _eS = "eventSource";
|
|
83
83
|
const _eV = "eventVersion";
|
|
84
84
|
const _m = "message";
|
|
85
|
-
const _s = "
|
|
86
|
-
const
|
|
85
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.dynamodbstreams";
|
|
86
|
+
const _se = "server";
|
|
87
87
|
const _uI = "userIdentity";
|
|
88
88
|
const n0 = "com.amazonaws.dynamodbstreams";
|
|
89
89
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
90
90
|
import { DynamoDBStreamsServiceException } from "../models/DynamoDBStreamsServiceException";
|
|
91
91
|
import { ExpiredIteratorException, InternalServerError, LimitExceededException, ResourceNotFoundException, TrimmedDataAccessException, } from "../models/errors";
|
|
92
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
93
|
+
export var DynamoDBStreamsServiceException$ = [-3, _s, "DynamoDBStreamsServiceException", 0, [], []];
|
|
94
|
+
_s_registry.registerError(DynamoDBStreamsServiceException$, DynamoDBStreamsServiceException);
|
|
95
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
96
|
+
export var ExpiredIteratorException$ = [-3, n0, _EIE,
|
|
97
|
+
{ [_e]: _c },
|
|
98
|
+
[_m],
|
|
99
|
+
[0]
|
|
100
|
+
];
|
|
101
|
+
n0_registry.registerError(ExpiredIteratorException$, ExpiredIteratorException);
|
|
102
|
+
export var InternalServerError$ = [-3, n0, _ISE,
|
|
103
|
+
{ [_e]: _se },
|
|
104
|
+
[_m],
|
|
105
|
+
[0]
|
|
106
|
+
];
|
|
107
|
+
n0_registry.registerError(InternalServerError$, InternalServerError);
|
|
108
|
+
export var LimitExceededException$ = [-3, n0, _LEE,
|
|
109
|
+
{ [_e]: _c },
|
|
110
|
+
[_m],
|
|
111
|
+
[0]
|
|
112
|
+
];
|
|
113
|
+
n0_registry.registerError(LimitExceededException$, LimitExceededException);
|
|
114
|
+
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
115
|
+
{ [_e]: _c },
|
|
116
|
+
[_m],
|
|
117
|
+
[0]
|
|
118
|
+
];
|
|
119
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
120
|
+
export var TrimmedDataAccessException$ = [-3, n0, _TDAE,
|
|
121
|
+
{ [_e]: _c },
|
|
122
|
+
[_m],
|
|
123
|
+
[0]
|
|
124
|
+
];
|
|
125
|
+
n0_registry.registerError(TrimmedDataAccessException$, TrimmedDataAccessException);
|
|
126
|
+
export const errorTypeRegistries = [
|
|
127
|
+
_s_registry,
|
|
128
|
+
n0_registry,
|
|
129
|
+
];
|
|
92
130
|
export var DescribeStreamInput$ = [3, n0, _DSI,
|
|
93
131
|
0,
|
|
94
132
|
[_SA, _L, _ESSI, _SF],
|
|
@@ -99,12 +137,6 @@ export var DescribeStreamOutput$ = [3, n0, _DSO,
|
|
|
99
137
|
[_SD],
|
|
100
138
|
[() => StreamDescription$]
|
|
101
139
|
];
|
|
102
|
-
export var ExpiredIteratorException$ = [-3, n0, _EIE,
|
|
103
|
-
{ [_e]: _c },
|
|
104
|
-
[_m],
|
|
105
|
-
[0]
|
|
106
|
-
];
|
|
107
|
-
TypeRegistry.for(n0).registerError(ExpiredIteratorException$, ExpiredIteratorException);
|
|
108
140
|
export var GetRecordsInput$ = [3, n0, _GRI,
|
|
109
141
|
0,
|
|
110
142
|
[_SI, _L],
|
|
@@ -130,23 +162,11 @@ export var Identity$ = [3, n0, _I,
|
|
|
130
162
|
[_PI, _T],
|
|
131
163
|
[0, 0]
|
|
132
164
|
];
|
|
133
|
-
export var InternalServerError$ = [-3, n0, _ISE,
|
|
134
|
-
{ [_e]: _s },
|
|
135
|
-
[_m],
|
|
136
|
-
[0]
|
|
137
|
-
];
|
|
138
|
-
TypeRegistry.for(n0).registerError(InternalServerError$, InternalServerError);
|
|
139
165
|
export var KeySchemaElement$ = [3, n0, _KSE,
|
|
140
166
|
0,
|
|
141
167
|
[_AN, _KT],
|
|
142
168
|
[0, 0], 2
|
|
143
169
|
];
|
|
144
|
-
export var LimitExceededException$ = [-3, n0, _LEE,
|
|
145
|
-
{ [_e]: _c },
|
|
146
|
-
[_m],
|
|
147
|
-
[0]
|
|
148
|
-
];
|
|
149
|
-
TypeRegistry.for(n0).registerError(LimitExceededException$, LimitExceededException);
|
|
150
170
|
export var ListStreamsInput$ = [3, n0, _LSI,
|
|
151
171
|
0,
|
|
152
172
|
[_TN, _L, _ESSA],
|
|
@@ -162,12 +182,6 @@ export var _Record$ = [3, n0, _Re,
|
|
|
162
182
|
[_eID, _eN, _eV, _eS, _aR, _d, _uI],
|
|
163
183
|
[0, 0, 0, 0, 0, () => StreamRecord$, () => Identity$]
|
|
164
184
|
];
|
|
165
|
-
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
166
|
-
{ [_e]: _c },
|
|
167
|
-
[_m],
|
|
168
|
-
[0]
|
|
169
|
-
];
|
|
170
|
-
TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
171
185
|
export var SequenceNumberRange$ = [3, n0, _SNR,
|
|
172
186
|
0,
|
|
173
187
|
[_SSN, _ESN],
|
|
@@ -198,14 +212,6 @@ export var StreamRecord$ = [3, n0, _SR,
|
|
|
198
212
|
[_ACDT, _K, _NI, _OI, _SN, _SB, _SVT],
|
|
199
213
|
[4, () => AttributeMap, () => AttributeMap, () => AttributeMap, 0, 1, 0]
|
|
200
214
|
];
|
|
201
|
-
export var TrimmedDataAccessException$ = [-3, n0, _TDAE,
|
|
202
|
-
{ [_e]: _c },
|
|
203
|
-
[_m],
|
|
204
|
-
[0]
|
|
205
|
-
];
|
|
206
|
-
TypeRegistry.for(n0).registerError(TrimmedDataAccessException$, TrimmedDataAccessException);
|
|
207
|
-
export var DynamoDBStreamsServiceException$ = [-3, _sm, "DynamoDBStreamsServiceException", 0, [], []];
|
|
208
|
-
TypeRegistry.for(_sm).registerError(DynamoDBStreamsServiceException$, DynamoDBStreamsServiceException);
|
|
209
215
|
var BinarySetAttributeValue = 64 | 21;
|
|
210
216
|
var KeySchema = [1, n0, _KS,
|
|
211
217
|
0, () => KeySchemaElement$
|
|
@@ -1,27 +1,34 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
|
|
3
|
+
export declare var DynamoDBStreamsServiceException$: StaticErrorSchema;
|
|
4
|
+
export declare var ExpiredIteratorException$: StaticErrorSchema;
|
|
5
|
+
export declare var InternalServerError$: StaticErrorSchema;
|
|
6
|
+
export declare var LimitExceededException$: StaticErrorSchema;
|
|
7
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
8
|
+
export declare var TrimmedDataAccessException$: StaticErrorSchema;
|
|
9
|
+
/**
|
|
10
|
+
* TypeRegistry instances containing modeled errors.
|
|
11
|
+
* @internal
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
2
15
|
export declare var DescribeStreamInput$: StaticStructureSchema;
|
|
3
16
|
export declare var DescribeStreamOutput$: StaticStructureSchema;
|
|
4
|
-
export declare var ExpiredIteratorException$: StaticErrorSchema;
|
|
5
17
|
export declare var GetRecordsInput$: StaticStructureSchema;
|
|
6
18
|
export declare var GetRecordsOutput$: StaticStructureSchema;
|
|
7
19
|
export declare var GetShardIteratorInput$: StaticStructureSchema;
|
|
8
20
|
export declare var GetShardIteratorOutput$: StaticStructureSchema;
|
|
9
21
|
export declare var Identity$: StaticStructureSchema;
|
|
10
|
-
export declare var InternalServerError$: StaticErrorSchema;
|
|
11
22
|
export declare var KeySchemaElement$: StaticStructureSchema;
|
|
12
|
-
export declare var LimitExceededException$: StaticErrorSchema;
|
|
13
23
|
export declare var ListStreamsInput$: StaticStructureSchema;
|
|
14
24
|
export declare var ListStreamsOutput$: StaticStructureSchema;
|
|
15
25
|
export declare var _Record$: StaticStructureSchema;
|
|
16
|
-
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
17
26
|
export declare var SequenceNumberRange$: StaticStructureSchema;
|
|
18
27
|
export declare var Shard$: StaticStructureSchema;
|
|
19
28
|
export declare var ShardFilter$: StaticStructureSchema;
|
|
20
29
|
export declare var _Stream$: StaticStructureSchema;
|
|
21
30
|
export declare var StreamDescription$: StaticStructureSchema;
|
|
22
31
|
export declare var StreamRecord$: StaticStructureSchema;
|
|
23
|
-
export declare var TrimmedDataAccessException$: StaticErrorSchema;
|
|
24
|
-
export declare var DynamoDBStreamsServiceException$: StaticErrorSchema;
|
|
25
32
|
export declare var AttributeValue$: StaticUnionSchema;
|
|
26
33
|
export declare var DescribeStream$: StaticOperationSchema;
|
|
27
34
|
export declare var GetRecords$: StaticOperationSchema;
|
|
@@ -1,32 +1,34 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import {
|
|
2
3
|
StaticErrorSchema,
|
|
3
4
|
StaticOperationSchema,
|
|
4
5
|
StaticStructureSchema,
|
|
5
6
|
StaticUnionSchema,
|
|
6
7
|
} from "@smithy/types";
|
|
8
|
+
export declare var DynamoDBStreamsServiceException$: StaticErrorSchema;
|
|
9
|
+
export declare var ExpiredIteratorException$: StaticErrorSchema;
|
|
10
|
+
export declare var InternalServerError$: StaticErrorSchema;
|
|
11
|
+
export declare var LimitExceededException$: StaticErrorSchema;
|
|
12
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
13
|
+
export declare var TrimmedDataAccessException$: StaticErrorSchema;
|
|
14
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
7
15
|
export declare var DescribeStreamInput$: StaticStructureSchema;
|
|
8
16
|
export declare var DescribeStreamOutput$: StaticStructureSchema;
|
|
9
|
-
export declare var ExpiredIteratorException$: StaticErrorSchema;
|
|
10
17
|
export declare var GetRecordsInput$: StaticStructureSchema;
|
|
11
18
|
export declare var GetRecordsOutput$: StaticStructureSchema;
|
|
12
19
|
export declare var GetShardIteratorInput$: StaticStructureSchema;
|
|
13
20
|
export declare var GetShardIteratorOutput$: StaticStructureSchema;
|
|
14
21
|
export declare var Identity$: StaticStructureSchema;
|
|
15
|
-
export declare var InternalServerError$: StaticErrorSchema;
|
|
16
22
|
export declare var KeySchemaElement$: StaticStructureSchema;
|
|
17
|
-
export declare var LimitExceededException$: StaticErrorSchema;
|
|
18
23
|
export declare var ListStreamsInput$: StaticStructureSchema;
|
|
19
24
|
export declare var ListStreamsOutput$: StaticStructureSchema;
|
|
20
25
|
export declare var _Record$: StaticStructureSchema;
|
|
21
|
-
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
22
26
|
export declare var SequenceNumberRange$: StaticStructureSchema;
|
|
23
27
|
export declare var Shard$: StaticStructureSchema;
|
|
24
28
|
export declare var ShardFilter$: StaticStructureSchema;
|
|
25
29
|
export declare var _Stream$: StaticStructureSchema;
|
|
26
30
|
export declare var StreamDescription$: StaticStructureSchema;
|
|
27
31
|
export declare var StreamRecord$: StaticStructureSchema;
|
|
28
|
-
export declare var TrimmedDataAccessException$: StaticErrorSchema;
|
|
29
|
-
export declare var DynamoDBStreamsServiceException$: StaticErrorSchema;
|
|
30
32
|
export declare var AttributeValue$: StaticUnionSchema;
|
|
31
33
|
export declare var DescribeStream$: StaticOperationSchema;
|
|
32
34
|
export declare var GetRecords$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-dynamodb-streams",
|
|
3
3
|
"description": "AWS SDK for JavaScript Dynamodb Streams Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.988.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-dynamodb-streams",
|
|
@@ -23,38 +23,38 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
|
-
"@aws-sdk/core": "^3.973.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
+
"@aws-sdk/core": "^3.973.8",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "^3.972.7",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
29
29
|
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "^3.972.8",
|
|
32
32
|
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
33
33
|
"@aws-sdk/types": "^3.973.1",
|
|
34
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
+
"@aws-sdk/util-endpoints": "3.988.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "^3.972.6",
|
|
37
37
|
"@smithy/config-resolver": "^4.4.6",
|
|
38
|
-
"@smithy/core": "^3.
|
|
38
|
+
"@smithy/core": "^3.23.0",
|
|
39
39
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
40
40
|
"@smithy/hash-node": "^4.2.8",
|
|
41
41
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
42
42
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
43
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
44
|
-
"@smithy/middleware-retry": "^4.4.
|
|
43
|
+
"@smithy/middleware-endpoint": "^4.4.14",
|
|
44
|
+
"@smithy/middleware-retry": "^4.4.31",
|
|
45
45
|
"@smithy/middleware-serde": "^4.2.9",
|
|
46
46
|
"@smithy/middleware-stack": "^4.2.8",
|
|
47
47
|
"@smithy/node-config-provider": "^4.3.8",
|
|
48
|
-
"@smithy/node-http-handler": "^4.4.
|
|
48
|
+
"@smithy/node-http-handler": "^4.4.10",
|
|
49
49
|
"@smithy/protocol-http": "^5.3.8",
|
|
50
|
-
"@smithy/smithy-client": "^4.11.
|
|
50
|
+
"@smithy/smithy-client": "^4.11.3",
|
|
51
51
|
"@smithy/types": "^4.12.0",
|
|
52
52
|
"@smithy/url-parser": "^4.2.8",
|
|
53
53
|
"@smithy/util-base64": "^4.3.0",
|
|
54
54
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
55
55
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^4.3.30",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^4.2.33",
|
|
58
58
|
"@smithy/util-endpoints": "^3.2.8",
|
|
59
59
|
"@smithy/util-middleware": "^4.2.8",
|
|
60
60
|
"@smithy/util-retry": "^4.2.8",
|