@aws-sdk/client-dynamodb-streams 3.927.0 → 3.928.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 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 se_DescribeStreamCommand = async (input, context) => {
238
- const headers = sharedHeaders("DescribeStream");
239
- let body;
240
- body = JSON.stringify(smithyClient._json(input));
241
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
242
- };
243
- const se_GetRecordsCommand = async (input, context) => {
244
- const headers = sharedHeaders("GetRecords");
245
- let body;
246
- body = JSON.stringify(smithyClient._json(input));
247
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
248
- };
249
- const se_GetShardIteratorCommand = async (input, context) => {
250
- const headers = sharedHeaders("GetShardIterator");
251
- let body;
252
- body = JSON.stringify(smithyClient._json(input));
253
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
254
- };
255
- const se_ListStreamsCommand = async (input, context) => {
256
- const headers = sharedHeaders("ListStreams");
257
- let body;
258
- body = JSON.stringify(smithyClient._json(input));
259
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
260
- };
261
- const de_DescribeStreamCommand = async (output, context) => {
262
- if (output.statusCode >= 300) {
263
- return de_CommandError(output, context);
264
- }
265
- const data = await core$1.parseJsonBody(output.body, context);
266
- let contents = {};
267
- contents = de_DescribeStreamOutput(data);
268
- const response = {
269
- $metadata: deserializeMetadata(output),
270
- ...contents,
271
- };
272
- return response;
273
- };
274
- const de_GetRecordsCommand = async (output, context) => {
275
- if (output.statusCode >= 300) {
276
- return de_CommandError(output, context);
277
- }
278
- const data = await core$1.parseJsonBody(output.body, context);
279
- let contents = {};
280
- contents = de_GetRecordsOutput(data, context);
281
- const response = {
282
- $metadata: deserializeMetadata(output),
283
- ...contents,
284
- };
285
- return response;
286
- };
287
- const de_GetShardIteratorCommand = async (output, context) => {
288
- if (output.statusCode >= 300) {
289
- return de_CommandError(output, context);
290
- }
291
- const data = await core$1.parseJsonBody(output.body, context);
292
- let contents = {};
293
- contents = smithyClient._json(data);
294
- const response = {
295
- $metadata: deserializeMetadata(output),
296
- ...contents,
297
- };
298
- return response;
299
- };
300
- const de_ListStreamsCommand = async (output, context) => {
301
- if (output.statusCode >= 300) {
302
- return de_CommandError(output, context);
303
- }
304
- const data = await core$1.parseJsonBody(output.body, context);
305
- let contents = {};
306
- contents = smithyClient._json(data);
307
- const response = {
308
- $metadata: deserializeMetadata(output),
309
- ...contents,
310
- };
311
- return response;
312
- };
313
- const de_CommandError = async (output, context) => {
314
- const parsedOutput = {
315
- ...output,
316
- body: await core$1.parseJsonErrorBody(output.body, context),
317
- };
318
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
319
- switch (errorCode) {
320
- case "InternalServerError":
321
- case "com.amazonaws.dynamodbstreams#InternalServerError":
322
- throw await de_InternalServerErrorRes(parsedOutput);
323
- case "ResourceNotFoundException":
324
- case "com.amazonaws.dynamodbstreams#ResourceNotFoundException":
325
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
326
- case "ExpiredIteratorException":
327
- case "com.amazonaws.dynamodbstreams#ExpiredIteratorException":
328
- throw await de_ExpiredIteratorExceptionRes(parsedOutput);
329
- case "LimitExceededException":
330
- case "com.amazonaws.dynamodbstreams#LimitExceededException":
331
- throw await de_LimitExceededExceptionRes(parsedOutput);
332
- case "TrimmedDataAccessException":
333
- case "com.amazonaws.dynamodbstreams#TrimmedDataAccessException":
334
- throw await de_TrimmedDataAccessExceptionRes(parsedOutput);
335
- default:
336
- const parsedBody = parsedOutput.body;
337
- return throwDefaultError({
338
- output,
339
- parsedBody,
340
- errorCode,
341
- });
342
- }
343
- };
344
- const de_ExpiredIteratorExceptionRes = async (parsedOutput, context) => {
345
- const body = parsedOutput.body;
346
- const deserialized = smithyClient._json(body);
347
- const exception = new ExpiredIteratorException({
348
- $metadata: deserializeMetadata(parsedOutput),
349
- ...deserialized,
350
- });
351
- return smithyClient.decorateServiceException(exception, body);
352
- };
353
- const de_InternalServerErrorRes = async (parsedOutput, context) => {
354
- const body = parsedOutput.body;
355
- const deserialized = smithyClient._json(body);
356
- const exception = new InternalServerError({
357
- $metadata: deserializeMetadata(parsedOutput),
358
- ...deserialized,
359
- });
360
- return smithyClient.decorateServiceException(exception, body);
361
- };
362
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
363
- const body = parsedOutput.body;
364
- const deserialized = smithyClient._json(body);
365
- const exception = new LimitExceededException({
366
- $metadata: deserializeMetadata(parsedOutput),
367
- ...deserialized,
368
- });
369
- return smithyClient.decorateServiceException(exception, body);
370
- };
371
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
372
- const body = parsedOutput.body;
373
- const deserialized = smithyClient._json(body);
374
- const exception = new ResourceNotFoundException({
375
- $metadata: deserializeMetadata(parsedOutput),
376
- ...deserialized,
377
- });
378
- return smithyClient.decorateServiceException(exception, body);
379
- };
380
- const de_TrimmedDataAccessExceptionRes = async (parsedOutput, context) => {
381
- const body = parsedOutput.body;
382
- const deserialized = smithyClient._json(body);
383
- const exception = new TrimmedDataAccessException({
384
- $metadata: deserializeMetadata(parsedOutput),
385
- ...deserialized,
386
- });
387
- return smithyClient.decorateServiceException(exception, body);
388
- };
389
- const de_AttributeMap = (output, context) => {
390
- return Object.entries(output).reduce((acc, [key, value]) => {
391
- if (value === null) {
392
- return acc;
393
- }
394
- acc[key] = de_AttributeValue(core$1.awsExpectUnion(value), context);
395
- return acc;
396
- }, {});
397
- };
398
- const de_AttributeValue = (output, context) => {
399
- if (output.B != null) {
400
- return {
401
- B: context.base64Decoder(output.B),
402
- };
403
- }
404
- if (smithyClient.expectBoolean(output.BOOL) !== undefined) {
405
- return { BOOL: smithyClient.expectBoolean(output.BOOL) };
406
- }
407
- if (output.BS != null) {
408
- return {
409
- BS: de_BinarySetAttributeValue(output.BS, context),
410
- };
411
- }
412
- if (output.L != null) {
413
- return {
414
- L: de_ListAttributeValue(output.L, context),
415
- };
416
- }
417
- if (output.M != null) {
418
- return {
419
- M: de_MapAttributeValue(output.M, context),
420
- };
421
- }
422
- if (smithyClient.expectString(output.N) !== undefined) {
423
- return { N: smithyClient.expectString(output.N) };
424
- }
425
- if (output.NS != null) {
426
- return {
427
- NS: smithyClient._json(output.NS),
428
- };
429
- }
430
- if (smithyClient.expectBoolean(output.NULL) !== undefined) {
431
- return { NULL: smithyClient.expectBoolean(output.NULL) };
432
- }
433
- if (smithyClient.expectString(output.S) !== undefined) {
434
- return { S: smithyClient.expectString(output.S) };
435
- }
436
- if (output.SS != null) {
437
- return {
438
- SS: smithyClient._json(output.SS),
439
- };
440
- }
441
- return { $unknown: Object.entries(output)[0] };
442
- };
443
- const de_BinarySetAttributeValue = (output, context) => {
444
- const retVal = (output || [])
445
- .filter((e) => e != null)
446
- .map((entry) => {
447
- return context.base64Decoder(entry);
448
- });
449
- return retVal;
450
- };
451
- const de_DescribeStreamOutput = (output, context) => {
452
- return smithyClient.take(output, {
453
- StreamDescription: (_) => de_StreamDescription(_),
454
- });
455
- };
456
- const de_GetRecordsOutput = (output, context) => {
457
- return smithyClient.take(output, {
458
- NextShardIterator: smithyClient.expectString,
459
- Records: (_) => de_RecordList(_, context),
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
- .f(void 0, void 0)
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
- .f(void 0, void 0)
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
- .f(void 0, void 0)
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
- .f(void 0, void 0)
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;