@aws-sdk/client-dynamodb-streams 3.927.0 → 3.929.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 +251 -361
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/DynamoDBStreamsClient.js +2 -0
- package/dist-es/commands/DescribeStreamCommand.js +3 -9
- package/dist-es/commands/GetRecordsCommand.js +3 -9
- package/dist-es/commands/GetShardIteratorCommand.js +3 -9
- package/dist-es/commands/ListStreamsCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +230 -0
- package/dist-types/DynamoDBStreamsClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +40 -0
- package/dist-types/ts3.4/DynamoDBStreamsClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +46 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_0.js +0 -322
- package/dist-types/protocols/Aws_json1_0.d.ts +0 -38
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -53
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
18
|
|
|
20
19
|
const resolveClientEndpointParameters = (options) => {
|
|
21
20
|
return Object.assign(options, {
|
|
@@ -91,6 +90,7 @@ class DynamoDBStreamsClient extends smithyClient.Client {
|
|
|
91
90
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
91
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
92
|
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
94
94
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
95
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
96
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -110,12 +110,12 @@ class DynamoDBStreamsClient extends smithyClient.Client {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class DynamoDBStreamsServiceException extends smithyClient.ServiceException {
|
|
113
|
+
let DynamoDBStreamsServiceException$1 = class DynamoDBStreamsServiceException extends smithyClient.ServiceException {
|
|
114
114
|
constructor(options) {
|
|
115
115
|
super(options);
|
|
116
116
|
Object.setPrototypeOf(this, DynamoDBStreamsServiceException.prototype);
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
|
|
120
120
|
const ShardFilterType = {
|
|
121
121
|
CHILD_SHARDS: "CHILD_SHARDS",
|
|
@@ -136,7 +136,7 @@ const StreamViewType = {
|
|
|
136
136
|
NEW_IMAGE: "NEW_IMAGE",
|
|
137
137
|
OLD_IMAGE: "OLD_IMAGE",
|
|
138
138
|
};
|
|
139
|
-
class InternalServerError extends DynamoDBStreamsServiceException {
|
|
139
|
+
let InternalServerError$1 = class InternalServerError extends DynamoDBStreamsServiceException$1 {
|
|
140
140
|
name = "InternalServerError";
|
|
141
141
|
$fault = "server";
|
|
142
142
|
constructor(opts) {
|
|
@@ -147,8 +147,8 @@ class InternalServerError extends DynamoDBStreamsServiceException {
|
|
|
147
147
|
});
|
|
148
148
|
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
149
149
|
}
|
|
150
|
-
}
|
|
151
|
-
class ResourceNotFoundException extends DynamoDBStreamsServiceException {
|
|
150
|
+
};
|
|
151
|
+
let ResourceNotFoundException$1 = class ResourceNotFoundException extends DynamoDBStreamsServiceException$1 {
|
|
152
152
|
name = "ResourceNotFoundException";
|
|
153
153
|
$fault = "client";
|
|
154
154
|
constructor(opts) {
|
|
@@ -159,8 +159,8 @@ class ResourceNotFoundException extends DynamoDBStreamsServiceException {
|
|
|
159
159
|
});
|
|
160
160
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
161
161
|
}
|
|
162
|
-
}
|
|
163
|
-
class ExpiredIteratorException extends DynamoDBStreamsServiceException {
|
|
162
|
+
};
|
|
163
|
+
let ExpiredIteratorException$1 = class ExpiredIteratorException extends DynamoDBStreamsServiceException$1 {
|
|
164
164
|
name = "ExpiredIteratorException";
|
|
165
165
|
$fault = "client";
|
|
166
166
|
constructor(opts) {
|
|
@@ -171,13 +171,13 @@ class ExpiredIteratorException extends DynamoDBStreamsServiceException {
|
|
|
171
171
|
});
|
|
172
172
|
Object.setPrototypeOf(this, ExpiredIteratorException.prototype);
|
|
173
173
|
}
|
|
174
|
-
}
|
|
174
|
+
};
|
|
175
175
|
const OperationType = {
|
|
176
176
|
INSERT: "INSERT",
|
|
177
177
|
MODIFY: "MODIFY",
|
|
178
178
|
REMOVE: "REMOVE",
|
|
179
179
|
};
|
|
180
|
-
class LimitExceededException extends DynamoDBStreamsServiceException {
|
|
180
|
+
let LimitExceededException$1 = class LimitExceededException extends DynamoDBStreamsServiceException$1 {
|
|
181
181
|
name = "LimitExceededException";
|
|
182
182
|
$fault = "client";
|
|
183
183
|
constructor(opts) {
|
|
@@ -188,8 +188,8 @@ class LimitExceededException extends DynamoDBStreamsServiceException {
|
|
|
188
188
|
});
|
|
189
189
|
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
190
190
|
}
|
|
191
|
-
}
|
|
192
|
-
class TrimmedDataAccessException extends DynamoDBStreamsServiceException {
|
|
191
|
+
};
|
|
192
|
+
let TrimmedDataAccessException$1 = class TrimmedDataAccessException extends DynamoDBStreamsServiceException$1 {
|
|
193
193
|
name = "TrimmedDataAccessException";
|
|
194
194
|
$fault = "client";
|
|
195
195
|
constructor(opts) {
|
|
@@ -200,7 +200,7 @@ class TrimmedDataAccessException extends DynamoDBStreamsServiceException {
|
|
|
200
200
|
});
|
|
201
201
|
Object.setPrototypeOf(this, TrimmedDataAccessException.prototype);
|
|
202
202
|
}
|
|
203
|
-
}
|
|
203
|
+
};
|
|
204
204
|
const ShardIteratorType = {
|
|
205
205
|
AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER",
|
|
206
206
|
AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER",
|
|
@@ -234,334 +234,239 @@ exports.AttributeValue = void 0;
|
|
|
234
234
|
};
|
|
235
235
|
})(exports.AttributeValue || (exports.AttributeValue = {}));
|
|
236
236
|
|
|
237
|
-
const
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
const
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
const
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
const
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
const
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
const
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
const
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
const
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
const
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
});
|
|
461
|
-
};
|
|
462
|
-
const de_ListAttributeValue = (output, context) => {
|
|
463
|
-
const retVal = (output || [])
|
|
464
|
-
.filter((e) => e != null)
|
|
465
|
-
.map((entry) => {
|
|
466
|
-
return de_AttributeValue(core$1.awsExpectUnion(entry), context);
|
|
467
|
-
});
|
|
468
|
-
return retVal;
|
|
469
|
-
};
|
|
470
|
-
const de_MapAttributeValue = (output, context) => {
|
|
471
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
472
|
-
if (value === null) {
|
|
473
|
-
return acc;
|
|
474
|
-
}
|
|
475
|
-
acc[key] = de_AttributeValue(core$1.awsExpectUnion(value), context);
|
|
476
|
-
return acc;
|
|
477
|
-
}, {});
|
|
478
|
-
};
|
|
479
|
-
const de__Record = (output, context) => {
|
|
480
|
-
return smithyClient.take(output, {
|
|
481
|
-
awsRegion: smithyClient.expectString,
|
|
482
|
-
dynamodb: (_) => de_StreamRecord(_, context),
|
|
483
|
-
eventID: smithyClient.expectString,
|
|
484
|
-
eventName: smithyClient.expectString,
|
|
485
|
-
eventSource: smithyClient.expectString,
|
|
486
|
-
eventVersion: smithyClient.expectString,
|
|
487
|
-
userIdentity: smithyClient._json,
|
|
488
|
-
});
|
|
489
|
-
};
|
|
490
|
-
const de_RecordList = (output, context) => {
|
|
491
|
-
const retVal = (output || [])
|
|
492
|
-
.filter((e) => e != null)
|
|
493
|
-
.map((entry) => {
|
|
494
|
-
return de__Record(entry, context);
|
|
495
|
-
});
|
|
496
|
-
return retVal;
|
|
497
|
-
};
|
|
498
|
-
const de_StreamDescription = (output, context) => {
|
|
499
|
-
return smithyClient.take(output, {
|
|
500
|
-
CreationRequestDateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
501
|
-
KeySchema: smithyClient._json,
|
|
502
|
-
LastEvaluatedShardId: smithyClient.expectString,
|
|
503
|
-
Shards: smithyClient._json,
|
|
504
|
-
StreamArn: smithyClient.expectString,
|
|
505
|
-
StreamLabel: smithyClient.expectString,
|
|
506
|
-
StreamStatus: smithyClient.expectString,
|
|
507
|
-
StreamViewType: smithyClient.expectString,
|
|
508
|
-
TableName: smithyClient.expectString,
|
|
509
|
-
});
|
|
510
|
-
};
|
|
511
|
-
const de_StreamRecord = (output, context) => {
|
|
512
|
-
return smithyClient.take(output, {
|
|
513
|
-
ApproximateCreationDateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
514
|
-
Keys: (_) => de_AttributeMap(_, context),
|
|
515
|
-
NewImage: (_) => de_AttributeMap(_, context),
|
|
516
|
-
OldImage: (_) => de_AttributeMap(_, context),
|
|
517
|
-
SequenceNumber: smithyClient.expectString,
|
|
518
|
-
SizeBytes: smithyClient.expectLong,
|
|
519
|
-
StreamViewType: smithyClient.expectString,
|
|
520
|
-
});
|
|
521
|
-
};
|
|
522
|
-
const deserializeMetadata = (output) => ({
|
|
523
|
-
httpStatusCode: output.statusCode,
|
|
524
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
525
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
526
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
527
|
-
});
|
|
528
|
-
const throwDefaultError = smithyClient.withBaseException(DynamoDBStreamsServiceException);
|
|
529
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
530
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
531
|
-
const contents = {
|
|
532
|
-
protocol,
|
|
533
|
-
hostname,
|
|
534
|
-
port,
|
|
535
|
-
method: "POST",
|
|
536
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
537
|
-
headers,
|
|
538
|
-
};
|
|
539
|
-
if (body !== undefined) {
|
|
540
|
-
contents.body = body;
|
|
541
|
-
}
|
|
542
|
-
return new protocolHttp.HttpRequest(contents);
|
|
543
|
-
};
|
|
544
|
-
function sharedHeaders(operation) {
|
|
545
|
-
return {
|
|
546
|
-
"content-type": "application/x-amz-json-1.0",
|
|
547
|
-
"x-amz-target": `DynamoDBStreams_20120810.${operation}`,
|
|
548
|
-
};
|
|
549
|
-
}
|
|
237
|
+
const _ACDT = "ApproximateCreationDateTime";
|
|
238
|
+
const _AM = "AttributeMap";
|
|
239
|
+
const _AN = "AttributeName";
|
|
240
|
+
const _AV = "AttributeValue";
|
|
241
|
+
const _B = "B";
|
|
242
|
+
const _BOOL = "BOOL";
|
|
243
|
+
const _BS = "BS";
|
|
244
|
+
const _CRDT = "CreationRequestDateTime";
|
|
245
|
+
const _DS = "DescribeStream";
|
|
246
|
+
const _DSI = "DescribeStreamInput";
|
|
247
|
+
const _DSO = "DescribeStreamOutput";
|
|
248
|
+
const _EIE = "ExpiredIteratorException";
|
|
249
|
+
const _ESN = "EndingSequenceNumber";
|
|
250
|
+
const _ESSA = "ExclusiveStartStreamArn";
|
|
251
|
+
const _ESSI = "ExclusiveStartShardId";
|
|
252
|
+
const _GR = "GetRecords";
|
|
253
|
+
const _GRI = "GetRecordsInput";
|
|
254
|
+
const _GRO = "GetRecordsOutput";
|
|
255
|
+
const _GSI = "GetShardIterator";
|
|
256
|
+
const _GSII = "GetShardIteratorInput";
|
|
257
|
+
const _GSIO = "GetShardIteratorOutput";
|
|
258
|
+
const _I = "Identity";
|
|
259
|
+
const _ISE = "InternalServerError";
|
|
260
|
+
const _K = "Keys";
|
|
261
|
+
const _KS = "KeySchema";
|
|
262
|
+
const _KSE = "KeySchemaElement";
|
|
263
|
+
const _KT = "KeyType";
|
|
264
|
+
const _L = "Limit";
|
|
265
|
+
const _LAV = "ListAttributeValue";
|
|
266
|
+
const _LEE = "LimitExceededException";
|
|
267
|
+
const _LESA = "LastEvaluatedStreamArn";
|
|
268
|
+
const _LESI = "LastEvaluatedShardId";
|
|
269
|
+
const _LS = "ListStreams";
|
|
270
|
+
const _LSI = "ListStreamsInput";
|
|
271
|
+
const _LSO = "ListStreamsOutput";
|
|
272
|
+
const _L_ = "L";
|
|
273
|
+
const _M = "M";
|
|
274
|
+
const _MAV = "MapAttributeValue";
|
|
275
|
+
const _N = "N";
|
|
276
|
+
const _NI = "NewImage";
|
|
277
|
+
const _NS = "NS";
|
|
278
|
+
const _NSI = "NextShardIterator";
|
|
279
|
+
const _NULL = "NULL";
|
|
280
|
+
const _OI = "OldImage";
|
|
281
|
+
const _PI = "PrincipalId";
|
|
282
|
+
const _PSI = "ParentShardId";
|
|
283
|
+
const _R = "Records";
|
|
284
|
+
const _RL = "RecordList";
|
|
285
|
+
const _RNFE = "ResourceNotFoundException";
|
|
286
|
+
const _Re = "Record";
|
|
287
|
+
const _S = "Streams";
|
|
288
|
+
const _SA = "StreamArn";
|
|
289
|
+
const _SB = "SizeBytes";
|
|
290
|
+
const _SD = "StreamDescription";
|
|
291
|
+
const _SDL = "ShardDescriptionList";
|
|
292
|
+
const _SF = "ShardFilter";
|
|
293
|
+
const _SI = "ShardIterator";
|
|
294
|
+
const _SIT = "ShardIteratorType";
|
|
295
|
+
const _SIh = "ShardId";
|
|
296
|
+
const _SL = "StreamLabel";
|
|
297
|
+
const _SLt = "StreamList";
|
|
298
|
+
const _SN = "SequenceNumber";
|
|
299
|
+
const _SNR = "SequenceNumberRange";
|
|
300
|
+
const _SR = "StreamRecord";
|
|
301
|
+
const _SS = "StreamStatus";
|
|
302
|
+
const _SSN = "StartingSequenceNumber";
|
|
303
|
+
const _SS_ = "SS";
|
|
304
|
+
const _SVT = "StreamViewType";
|
|
305
|
+
const _S_ = "S";
|
|
306
|
+
const _Sh = "Shard";
|
|
307
|
+
const _Sha = "Shards";
|
|
308
|
+
const _St = "Stream";
|
|
309
|
+
const _T = "Type";
|
|
310
|
+
const _TDAE = "TrimmedDataAccessException";
|
|
311
|
+
const _TN = "TableName";
|
|
312
|
+
const _aR = "awsRegion";
|
|
313
|
+
const _c = "client";
|
|
314
|
+
const _d = "dynamodb";
|
|
315
|
+
const _e = "error";
|
|
316
|
+
const _eID = "eventID";
|
|
317
|
+
const _eN = "eventName";
|
|
318
|
+
const _eS = "eventSource";
|
|
319
|
+
const _eV = "eventVersion";
|
|
320
|
+
const _m = "message";
|
|
321
|
+
const _s = "server";
|
|
322
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.dynamodbstreams";
|
|
323
|
+
const _uI = "userIdentity";
|
|
324
|
+
const n0 = "com.amazonaws.dynamodbstreams";
|
|
325
|
+
var DescribeStreamInput = [
|
|
326
|
+
3,
|
|
327
|
+
n0,
|
|
328
|
+
_DSI,
|
|
329
|
+
0,
|
|
330
|
+
[_SA, _L, _ESSI, _SF],
|
|
331
|
+
[0, 1, 0, () => ShardFilter],
|
|
332
|
+
];
|
|
333
|
+
var DescribeStreamOutput = [3, n0, _DSO, 0, [_SD], [() => StreamDescription]];
|
|
334
|
+
var ExpiredIteratorException = [
|
|
335
|
+
-3,
|
|
336
|
+
n0,
|
|
337
|
+
_EIE,
|
|
338
|
+
{
|
|
339
|
+
[_e]: _c,
|
|
340
|
+
},
|
|
341
|
+
[_m],
|
|
342
|
+
[0],
|
|
343
|
+
];
|
|
344
|
+
schema.TypeRegistry.for(n0).registerError(ExpiredIteratorException, ExpiredIteratorException$1);
|
|
345
|
+
var GetRecordsInput = [3, n0, _GRI, 0, [_SI, _L], [0, 1]];
|
|
346
|
+
var GetRecordsOutput = [3, n0, _GRO, 0, [_R, _NSI], [() => RecordList, 0]];
|
|
347
|
+
var GetShardIteratorInput = [3, n0, _GSII, 0, [_SA, _SIh, _SIT, _SN], [0, 0, 0, 0]];
|
|
348
|
+
var GetShardIteratorOutput = [3, n0, _GSIO, 0, [_SI], [0]];
|
|
349
|
+
var Identity = [3, n0, _I, 0, [_PI, _T], [0, 0]];
|
|
350
|
+
var InternalServerError = [
|
|
351
|
+
-3,
|
|
352
|
+
n0,
|
|
353
|
+
_ISE,
|
|
354
|
+
{
|
|
355
|
+
[_e]: _s,
|
|
356
|
+
},
|
|
357
|
+
[_m],
|
|
358
|
+
[0],
|
|
359
|
+
];
|
|
360
|
+
schema.TypeRegistry.for(n0).registerError(InternalServerError, InternalServerError$1);
|
|
361
|
+
var KeySchemaElement = [3, n0, _KSE, 0, [_AN, _KT], [0, 0]];
|
|
362
|
+
var LimitExceededException = [
|
|
363
|
+
-3,
|
|
364
|
+
n0,
|
|
365
|
+
_LEE,
|
|
366
|
+
{
|
|
367
|
+
[_e]: _c,
|
|
368
|
+
},
|
|
369
|
+
[_m],
|
|
370
|
+
[0],
|
|
371
|
+
];
|
|
372
|
+
schema.TypeRegistry.for(n0).registerError(LimitExceededException, LimitExceededException$1);
|
|
373
|
+
var ListStreamsInput = [3, n0, _LSI, 0, [_TN, _L, _ESSA], [0, 1, 0]];
|
|
374
|
+
var ListStreamsOutput = [3, n0, _LSO, 0, [_S, _LESA], [() => StreamList, 0]];
|
|
375
|
+
var _Record = [
|
|
376
|
+
3,
|
|
377
|
+
n0,
|
|
378
|
+
_Re,
|
|
379
|
+
0,
|
|
380
|
+
[_eID, _eN, _eV, _eS, _aR, _d, _uI],
|
|
381
|
+
[0, 0, 0, 0, 0, () => StreamRecord, () => Identity],
|
|
382
|
+
];
|
|
383
|
+
var ResourceNotFoundException = [
|
|
384
|
+
-3,
|
|
385
|
+
n0,
|
|
386
|
+
_RNFE,
|
|
387
|
+
{
|
|
388
|
+
[_e]: _c,
|
|
389
|
+
},
|
|
390
|
+
[_m],
|
|
391
|
+
[0],
|
|
392
|
+
];
|
|
393
|
+
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
|
|
394
|
+
var SequenceNumberRange = [3, n0, _SNR, 0, [_SSN, _ESN], [0, 0]];
|
|
395
|
+
var Shard = [3, n0, _Sh, 0, [_SIh, _SNR, _PSI], [0, () => SequenceNumberRange, 0]];
|
|
396
|
+
var ShardFilter = [3, n0, _SF, 0, [_T, _SIh], [0, 0]];
|
|
397
|
+
var _Stream = [3, n0, _St, 0, [_SA, _TN, _SL], [0, 0, 0]];
|
|
398
|
+
var StreamDescription = [
|
|
399
|
+
3,
|
|
400
|
+
n0,
|
|
401
|
+
_SD,
|
|
402
|
+
0,
|
|
403
|
+
[_SA, _SL, _SS, _SVT, _CRDT, _TN, _KS, _Sha, _LESI],
|
|
404
|
+
[0, 0, 0, 0, 4, 0, () => KeySchema, () => ShardDescriptionList, 0],
|
|
405
|
+
];
|
|
406
|
+
var StreamRecord = [
|
|
407
|
+
3,
|
|
408
|
+
n0,
|
|
409
|
+
_SR,
|
|
410
|
+
0,
|
|
411
|
+
[_ACDT, _K, _NI, _OI, _SN, _SB, _SVT],
|
|
412
|
+
[4, () => AttributeMap, () => AttributeMap, () => AttributeMap, 0, 1, 0],
|
|
413
|
+
];
|
|
414
|
+
var TrimmedDataAccessException = [
|
|
415
|
+
-3,
|
|
416
|
+
n0,
|
|
417
|
+
_TDAE,
|
|
418
|
+
{
|
|
419
|
+
[_e]: _c,
|
|
420
|
+
},
|
|
421
|
+
[_m],
|
|
422
|
+
[0],
|
|
423
|
+
];
|
|
424
|
+
schema.TypeRegistry.for(n0).registerError(TrimmedDataAccessException, TrimmedDataAccessException$1);
|
|
425
|
+
var DynamoDBStreamsServiceException = [-3, _sm, "DynamoDBStreamsServiceException", 0, [], []];
|
|
426
|
+
schema.TypeRegistry.for(_sm).registerError(DynamoDBStreamsServiceException, DynamoDBStreamsServiceException$1);
|
|
427
|
+
var KeySchema = [1, n0, _KS, 0, () => KeySchemaElement];
|
|
428
|
+
var ListAttributeValue = [1, n0, _LAV, 0, () => AttributeValue];
|
|
429
|
+
var RecordList = [1, n0, _RL, 0, () => _Record];
|
|
430
|
+
var ShardDescriptionList = [1, n0, _SDL, 0, () => Shard];
|
|
431
|
+
var StreamList = [1, n0, _SLt, 0, () => _Stream];
|
|
432
|
+
var AttributeMap = [2, n0, _AM, 0, 0, () => AttributeValue];
|
|
433
|
+
var MapAttributeValue = [2, n0, _MAV, 0, 0, () => AttributeValue];
|
|
434
|
+
var AttributeValue = [
|
|
435
|
+
3,
|
|
436
|
+
n0,
|
|
437
|
+
_AV,
|
|
438
|
+
0,
|
|
439
|
+
[_S_, _N, _B, _SS_, _NS, _BS, _M, _L_, _NULL, _BOOL],
|
|
440
|
+
[0, 0, 21, 64 | 0, 64 | 0, 64 | 21, () => MapAttributeValue, () => ListAttributeValue, 2, 2],
|
|
441
|
+
];
|
|
442
|
+
var DescribeStream = [
|
|
443
|
+
9,
|
|
444
|
+
n0,
|
|
445
|
+
_DS,
|
|
446
|
+
0,
|
|
447
|
+
() => DescribeStreamInput,
|
|
448
|
+
() => DescribeStreamOutput,
|
|
449
|
+
];
|
|
450
|
+
var GetRecords = [9, n0, _GR, 0, () => GetRecordsInput, () => GetRecordsOutput];
|
|
451
|
+
var GetShardIterator = [
|
|
452
|
+
9,
|
|
453
|
+
n0,
|
|
454
|
+
_GSI,
|
|
455
|
+
0,
|
|
456
|
+
() => GetShardIteratorInput,
|
|
457
|
+
() => GetShardIteratorOutput,
|
|
458
|
+
];
|
|
459
|
+
var ListStreams = [9, n0, _LS, 0, () => ListStreamsInput, () => ListStreamsOutput];
|
|
550
460
|
|
|
551
461
|
class DescribeStreamCommand extends smithyClient.Command
|
|
552
462
|
.classBuilder()
|
|
553
463
|
.ep(commonParams)
|
|
554
464
|
.m(function (Command, cs, config, o) {
|
|
555
|
-
return [
|
|
556
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
557
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
558
|
-
];
|
|
465
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
559
466
|
})
|
|
560
467
|
.s("DynamoDBStreams_20120810", "DescribeStream", {})
|
|
561
468
|
.n("DynamoDBStreamsClient", "DescribeStreamCommand")
|
|
562
|
-
.
|
|
563
|
-
.ser(se_DescribeStreamCommand)
|
|
564
|
-
.de(de_DescribeStreamCommand)
|
|
469
|
+
.sc(DescribeStream)
|
|
565
470
|
.build() {
|
|
566
471
|
}
|
|
567
472
|
|
|
@@ -569,16 +474,11 @@ class GetRecordsCommand extends smithyClient.Command
|
|
|
569
474
|
.classBuilder()
|
|
570
475
|
.ep(commonParams)
|
|
571
476
|
.m(function (Command, cs, config, o) {
|
|
572
|
-
return [
|
|
573
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
574
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
575
|
-
];
|
|
477
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
576
478
|
})
|
|
577
479
|
.s("DynamoDBStreams_20120810", "GetRecords", {})
|
|
578
480
|
.n("DynamoDBStreamsClient", "GetRecordsCommand")
|
|
579
|
-
.
|
|
580
|
-
.ser(se_GetRecordsCommand)
|
|
581
|
-
.de(de_GetRecordsCommand)
|
|
481
|
+
.sc(GetRecords)
|
|
582
482
|
.build() {
|
|
583
483
|
}
|
|
584
484
|
|
|
@@ -586,16 +486,11 @@ class GetShardIteratorCommand extends smithyClient.Command
|
|
|
586
486
|
.classBuilder()
|
|
587
487
|
.ep(commonParams)
|
|
588
488
|
.m(function (Command, cs, config, o) {
|
|
589
|
-
return [
|
|
590
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
591
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
592
|
-
];
|
|
489
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
593
490
|
})
|
|
594
491
|
.s("DynamoDBStreams_20120810", "GetShardIterator", {})
|
|
595
492
|
.n("DynamoDBStreamsClient", "GetShardIteratorCommand")
|
|
596
|
-
.
|
|
597
|
-
.ser(se_GetShardIteratorCommand)
|
|
598
|
-
.de(de_GetShardIteratorCommand)
|
|
493
|
+
.sc(GetShardIterator)
|
|
599
494
|
.build() {
|
|
600
495
|
}
|
|
601
496
|
|
|
@@ -603,16 +498,11 @@ class ListStreamsCommand extends smithyClient.Command
|
|
|
603
498
|
.classBuilder()
|
|
604
499
|
.ep(commonParams)
|
|
605
500
|
.m(function (Command, cs, config, o) {
|
|
606
|
-
return [
|
|
607
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
608
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
609
|
-
];
|
|
501
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
610
502
|
})
|
|
611
503
|
.s("DynamoDBStreams_20120810", "ListStreams", {})
|
|
612
504
|
.n("DynamoDBStreamsClient", "ListStreamsCommand")
|
|
613
|
-
.
|
|
614
|
-
.ser(se_ListStreamsCommand)
|
|
615
|
-
.de(de_ListStreamsCommand)
|
|
505
|
+
.sc(ListStreams)
|
|
616
506
|
.build() {
|
|
617
507
|
}
|
|
618
508
|
|
|
@@ -637,18 +527,18 @@ Object.defineProperty(exports, "__Client", {
|
|
|
637
527
|
exports.DescribeStreamCommand = DescribeStreamCommand;
|
|
638
528
|
exports.DynamoDBStreams = DynamoDBStreams;
|
|
639
529
|
exports.DynamoDBStreamsClient = DynamoDBStreamsClient;
|
|
640
|
-
exports.DynamoDBStreamsServiceException = DynamoDBStreamsServiceException;
|
|
641
|
-
exports.ExpiredIteratorException = ExpiredIteratorException;
|
|
530
|
+
exports.DynamoDBStreamsServiceException = DynamoDBStreamsServiceException$1;
|
|
531
|
+
exports.ExpiredIteratorException = ExpiredIteratorException$1;
|
|
642
532
|
exports.GetRecordsCommand = GetRecordsCommand;
|
|
643
533
|
exports.GetShardIteratorCommand = GetShardIteratorCommand;
|
|
644
|
-
exports.InternalServerError = InternalServerError;
|
|
534
|
+
exports.InternalServerError = InternalServerError$1;
|
|
645
535
|
exports.KeyType = KeyType;
|
|
646
|
-
exports.LimitExceededException = LimitExceededException;
|
|
536
|
+
exports.LimitExceededException = LimitExceededException$1;
|
|
647
537
|
exports.ListStreamsCommand = ListStreamsCommand;
|
|
648
538
|
exports.OperationType = OperationType;
|
|
649
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
539
|
+
exports.ResourceNotFoundException = ResourceNotFoundException$1;
|
|
650
540
|
exports.ShardFilterType = ShardFilterType;
|
|
651
541
|
exports.ShardIteratorType = ShardIteratorType;
|
|
652
542
|
exports.StreamStatus = StreamStatus;
|
|
653
543
|
exports.StreamViewType = StreamViewType;
|
|
654
|
-
exports.TrimmedDataAccessException = TrimmedDataAccessException;
|
|
544
|
+
exports.TrimmedDataAccessException = TrimmedDataAccessException$1;
|