@aws-sdk/client-keyspacesstreams 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, {
@@ -89,6 +88,7 @@ class KeyspacesStreamsClient extends smithyClient.Client {
89
88
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
90
89
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
91
90
  this.config = _config_8;
91
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
92
92
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
93
93
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
94
94
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -108,14 +108,14 @@ class KeyspacesStreamsClient extends smithyClient.Client {
108
108
  }
109
109
  }
110
110
 
111
- class KeyspacesStreamsServiceException extends smithyClient.ServiceException {
111
+ let KeyspacesStreamsServiceException$1 = class KeyspacesStreamsServiceException extends smithyClient.ServiceException {
112
112
  constructor(options) {
113
113
  super(options);
114
114
  Object.setPrototypeOf(this, KeyspacesStreamsServiceException.prototype);
115
115
  }
116
- }
116
+ };
117
117
 
118
- class AccessDeniedException extends KeyspacesStreamsServiceException {
118
+ let AccessDeniedException$1 = class AccessDeniedException extends KeyspacesStreamsServiceException$1 {
119
119
  name = "AccessDeniedException";
120
120
  $fault = "client";
121
121
  constructor(opts) {
@@ -126,13 +126,13 @@ class AccessDeniedException extends KeyspacesStreamsServiceException {
126
126
  });
127
127
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
128
128
  }
129
- }
129
+ };
130
130
  const OriginType = {
131
131
  REPLICATION: "REPLICATION",
132
132
  TTL: "TTL",
133
133
  USER: "USER",
134
134
  };
135
- class InternalServerException extends KeyspacesStreamsServiceException {
135
+ let InternalServerException$1 = class InternalServerException extends KeyspacesStreamsServiceException$1 {
136
136
  name = "InternalServerException";
137
137
  $fault = "server";
138
138
  constructor(opts) {
@@ -143,8 +143,8 @@ class InternalServerException extends KeyspacesStreamsServiceException {
143
143
  });
144
144
  Object.setPrototypeOf(this, InternalServerException.prototype);
145
145
  }
146
- }
147
- class ResourceNotFoundException extends KeyspacesStreamsServiceException {
146
+ };
147
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends KeyspacesStreamsServiceException$1 {
148
148
  name = "ResourceNotFoundException";
149
149
  $fault = "client";
150
150
  constructor(opts) {
@@ -155,8 +155,8 @@ class ResourceNotFoundException extends KeyspacesStreamsServiceException {
155
155
  });
156
156
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
157
157
  }
158
- }
159
- class ThrottlingException extends KeyspacesStreamsServiceException {
158
+ };
159
+ let ThrottlingException$1 = class ThrottlingException extends KeyspacesStreamsServiceException$1 {
160
160
  name = "ThrottlingException";
161
161
  $fault = "client";
162
162
  constructor(opts) {
@@ -167,14 +167,14 @@ class ThrottlingException extends KeyspacesStreamsServiceException {
167
167
  });
168
168
  Object.setPrototypeOf(this, ThrottlingException.prototype);
169
169
  }
170
- }
170
+ };
171
171
  const ValidationExceptionType = {
172
172
  ExpiredIterator: "ExpiredIterator",
173
173
  ExpiredNextToken: "ExpiredNextToken",
174
174
  InvalidFormat: "InvalidFormat",
175
175
  TrimmedDataAccess: "TrimmedDataAccess",
176
176
  };
177
- class ValidationException extends KeyspacesStreamsServiceException {
177
+ let ValidationException$1 = class ValidationException extends KeyspacesStreamsServiceException$1 {
178
178
  name = "ValidationException";
179
179
  $fault = "client";
180
180
  errorCode;
@@ -187,7 +187,7 @@ class ValidationException extends KeyspacesStreamsServiceException {
187
187
  Object.setPrototypeOf(this, ValidationException.prototype);
188
188
  this.errorCode = opts.errorCode;
189
189
  }
190
- }
190
+ };
191
191
  const ShardIteratorType = {
192
192
  AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER",
193
193
  AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER",
@@ -266,393 +266,328 @@ exports.KeyspacesCellValue = void 0;
266
266
  };
267
267
  })(exports.KeyspacesCellValue || (exports.KeyspacesCellValue = {}));
268
268
 
269
- const se_GetRecordsCommand = async (input, context) => {
270
- const headers = sharedHeaders("GetRecords");
271
- let body;
272
- body = JSON.stringify(smithyClient._json(input));
273
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
- };
275
- const se_GetShardIteratorCommand = async (input, context) => {
276
- const headers = sharedHeaders("GetShardIterator");
277
- let body;
278
- body = JSON.stringify(smithyClient._json(input));
279
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
280
- };
281
- const se_GetStreamCommand = async (input, context) => {
282
- const headers = sharedHeaders("GetStream");
283
- let body;
284
- body = JSON.stringify(smithyClient._json(input));
285
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
286
- };
287
- const se_ListStreamsCommand = async (input, context) => {
288
- const headers = sharedHeaders("ListStreams");
289
- let body;
290
- body = JSON.stringify(smithyClient._json(input));
291
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
292
- };
293
- const de_GetRecordsCommand = async (output, context) => {
294
- if (output.statusCode >= 300) {
295
- return de_CommandError(output, context);
296
- }
297
- const data = await core$1.parseJsonBody(output.body, context);
298
- let contents = {};
299
- contents = de_GetRecordsOutput(data, context);
300
- const response = {
301
- $metadata: deserializeMetadata(output),
302
- ...contents,
303
- };
304
- return response;
305
- };
306
- const de_GetShardIteratorCommand = async (output, context) => {
307
- if (output.statusCode >= 300) {
308
- return de_CommandError(output, context);
309
- }
310
- const data = await core$1.parseJsonBody(output.body, context);
311
- let contents = {};
312
- contents = smithyClient._json(data);
313
- const response = {
314
- $metadata: deserializeMetadata(output),
315
- ...contents,
316
- };
317
- return response;
318
- };
319
- const de_GetStreamCommand = async (output, context) => {
320
- if (output.statusCode >= 300) {
321
- return de_CommandError(output, context);
322
- }
323
- const data = await core$1.parseJsonBody(output.body, context);
324
- let contents = {};
325
- contents = de_GetStreamOutput(data);
326
- const response = {
327
- $metadata: deserializeMetadata(output),
328
- ...contents,
329
- };
330
- return response;
331
- };
332
- const de_ListStreamsCommand = async (output, context) => {
333
- if (output.statusCode >= 300) {
334
- return de_CommandError(output, context);
335
- }
336
- const data = await core$1.parseJsonBody(output.body, context);
337
- let contents = {};
338
- contents = smithyClient._json(data);
339
- const response = {
340
- $metadata: deserializeMetadata(output),
341
- ...contents,
342
- };
343
- return response;
344
- };
345
- const de_CommandError = async (output, context) => {
346
- const parsedOutput = {
347
- ...output,
348
- body: await core$1.parseJsonErrorBody(output.body, context),
349
- };
350
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
351
- switch (errorCode) {
352
- case "AccessDeniedException":
353
- case "com.amazonaws.keyspacesstreams#AccessDeniedException":
354
- throw await de_AccessDeniedExceptionRes(parsedOutput);
355
- case "InternalServerException":
356
- case "com.amazonaws.keyspacesstreams#InternalServerException":
357
- throw await de_InternalServerExceptionRes(parsedOutput);
358
- case "ResourceNotFoundException":
359
- case "com.amazonaws.keyspacesstreams#ResourceNotFoundException":
360
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
361
- case "ThrottlingException":
362
- case "com.amazonaws.keyspacesstreams#ThrottlingException":
363
- throw await de_ThrottlingExceptionRes(parsedOutput);
364
- case "ValidationException":
365
- case "com.amazonaws.keyspacesstreams#ValidationException":
366
- throw await de_ValidationExceptionRes(parsedOutput);
367
- default:
368
- const parsedBody = parsedOutput.body;
369
- return throwDefaultError({
370
- output,
371
- parsedBody,
372
- errorCode,
373
- });
374
- }
375
- };
376
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
377
- const body = parsedOutput.body;
378
- const deserialized = smithyClient._json(body);
379
- const exception = new AccessDeniedException({
380
- $metadata: deserializeMetadata(parsedOutput),
381
- ...deserialized,
382
- });
383
- return smithyClient.decorateServiceException(exception, body);
384
- };
385
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
386
- const body = parsedOutput.body;
387
- const deserialized = smithyClient._json(body);
388
- const exception = new InternalServerException({
389
- $metadata: deserializeMetadata(parsedOutput),
390
- ...deserialized,
391
- });
392
- return smithyClient.decorateServiceException(exception, body);
393
- };
394
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
395
- const body = parsedOutput.body;
396
- const deserialized = smithyClient._json(body);
397
- const exception = new ResourceNotFoundException({
398
- $metadata: deserializeMetadata(parsedOutput),
399
- ...deserialized,
400
- });
401
- return smithyClient.decorateServiceException(exception, body);
402
- };
403
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
404
- const body = parsedOutput.body;
405
- const deserialized = smithyClient._json(body);
406
- const exception = new ThrottlingException({
407
- $metadata: deserializeMetadata(parsedOutput),
408
- ...deserialized,
409
- });
410
- return smithyClient.decorateServiceException(exception, body);
411
- };
412
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
413
- const body = parsedOutput.body;
414
- const deserialized = smithyClient._json(body);
415
- const exception = new ValidationException({
416
- $metadata: deserializeMetadata(parsedOutput),
417
- ...deserialized,
418
- });
419
- return smithyClient.decorateServiceException(exception, body);
420
- };
421
- const de_GetRecordsOutput = (output, context) => {
422
- return smithyClient.take(output, {
423
- changeRecords: (_) => de_RecordList(_, context),
424
- nextShardIterator: smithyClient.expectString,
425
- });
426
- };
427
- const de_GetStreamOutput = (output, context) => {
428
- return smithyClient.take(output, {
429
- creationRequestDateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
430
- keyspaceName: smithyClient.expectString,
431
- nextToken: smithyClient.expectString,
432
- shards: smithyClient._json,
433
- streamArn: smithyClient.expectString,
434
- streamLabel: smithyClient.expectString,
435
- streamStatus: smithyClient.expectString,
436
- streamViewType: smithyClient.expectString,
437
- tableName: smithyClient.expectString,
438
- });
439
- };
440
- const de_KeyspacesCell = (output, context) => {
441
- return smithyClient.take(output, {
442
- metadata: smithyClient._json,
443
- value: (_) => de_KeyspacesCellValue(core$1.awsExpectUnion(_), context),
444
- });
445
- };
446
- const de_KeyspacesCellList = (output, context) => {
447
- const retVal = (output || [])
448
- .filter((e) => e != null)
449
- .map((entry) => {
450
- return de_KeyspacesCell(entry, context);
451
- });
452
- return retVal;
453
- };
454
- const de_KeyspacesCellMap = (output, context) => {
455
- const retVal = (output || [])
456
- .filter((e) => e != null)
457
- .map((entry) => {
458
- return de_KeyspacesCellMapDefinition(entry, context);
459
- });
460
- return retVal;
461
- };
462
- const de_KeyspacesCellMapDefinition = (output, context) => {
463
- return smithyClient.take(output, {
464
- key: (_) => de_KeyspacesCellValue(core$1.awsExpectUnion(_), context),
465
- metadata: smithyClient._json,
466
- value: (_) => de_KeyspacesCellValue(core$1.awsExpectUnion(_), context),
467
- });
468
- };
469
- const de_KeyspacesCells = (output, context) => {
470
- return Object.entries(output).reduce((acc, [key, value]) => {
471
- if (value === null) {
472
- return acc;
473
- }
474
- acc[key] = de_KeyspacesCell(value, context);
475
- return acc;
476
- }, {});
477
- };
478
- const de_KeyspacesCellValue = (output, context) => {
479
- if (smithyClient.expectString(output.asciiT) !== undefined) {
480
- return { asciiT: smithyClient.expectString(output.asciiT) };
481
- }
482
- if (smithyClient.expectString(output.bigintT) !== undefined) {
483
- return { bigintT: smithyClient.expectString(output.bigintT) };
484
- }
485
- if (output.blobT != null) {
486
- return {
487
- blobT: context.base64Decoder(output.blobT),
488
- };
489
- }
490
- if (smithyClient.expectBoolean(output.boolT) !== undefined) {
491
- return { boolT: smithyClient.expectBoolean(output.boolT) };
492
- }
493
- if (smithyClient.expectString(output.counterT) !== undefined) {
494
- return { counterT: smithyClient.expectString(output.counterT) };
495
- }
496
- if (smithyClient.expectString(output.dateT) !== undefined) {
497
- return { dateT: smithyClient.expectString(output.dateT) };
498
- }
499
- if (smithyClient.expectString(output.decimalT) !== undefined) {
500
- return { decimalT: smithyClient.expectString(output.decimalT) };
501
- }
502
- if (smithyClient.expectString(output.doubleT) !== undefined) {
503
- return { doubleT: smithyClient.expectString(output.doubleT) };
504
- }
505
- if (smithyClient.expectString(output.floatT) !== undefined) {
506
- return { floatT: smithyClient.expectString(output.floatT) };
507
- }
508
- if (smithyClient.expectString(output.inetT) !== undefined) {
509
- return { inetT: smithyClient.expectString(output.inetT) };
510
- }
511
- if (smithyClient.expectString(output.intT) !== undefined) {
512
- return { intT: smithyClient.expectString(output.intT) };
513
- }
514
- if (output.listT != null) {
515
- return {
516
- listT: de_KeyspacesCellList(output.listT, context),
517
- };
518
- }
519
- if (output.mapT != null) {
520
- return {
521
- mapT: de_KeyspacesCellMap(output.mapT, context),
522
- };
523
- }
524
- if (output.setT != null) {
525
- return {
526
- setT: de_KeyspacesCellList(output.setT, context),
527
- };
528
- }
529
- if (smithyClient.expectString(output.smallintT) !== undefined) {
530
- return { smallintT: smithyClient.expectString(output.smallintT) };
531
- }
532
- if (smithyClient.expectString(output.textT) !== undefined) {
533
- return { textT: smithyClient.expectString(output.textT) };
534
- }
535
- if (smithyClient.expectString(output.timeT) !== undefined) {
536
- return { timeT: smithyClient.expectString(output.timeT) };
537
- }
538
- if (smithyClient.expectString(output.timestampT) !== undefined) {
539
- return { timestampT: smithyClient.expectString(output.timestampT) };
540
- }
541
- if (smithyClient.expectString(output.timeuuidT) !== undefined) {
542
- return { timeuuidT: smithyClient.expectString(output.timeuuidT) };
543
- }
544
- if (smithyClient.expectString(output.tinyintT) !== undefined) {
545
- return { tinyintT: smithyClient.expectString(output.tinyintT) };
546
- }
547
- if (output.tupleT != null) {
548
- return {
549
- tupleT: de_KeyspacesCellList(output.tupleT, context),
550
- };
551
- }
552
- if (output.udtT != null) {
553
- return {
554
- udtT: de_KeyspacesUdtMap(output.udtT, context),
555
- };
556
- }
557
- if (smithyClient.expectString(output.uuidT) !== undefined) {
558
- return { uuidT: smithyClient.expectString(output.uuidT) };
559
- }
560
- if (smithyClient.expectString(output.varcharT) !== undefined) {
561
- return { varcharT: smithyClient.expectString(output.varcharT) };
562
- }
563
- if (smithyClient.expectString(output.varintT) !== undefined) {
564
- return { varintT: smithyClient.expectString(output.varintT) };
565
- }
566
- return { $unknown: Object.entries(output)[0] };
567
- };
568
- const de_KeyspacesKeysMap = (output, context) => {
569
- return Object.entries(output).reduce((acc, [key, value]) => {
570
- if (value === null) {
571
- return acc;
572
- }
573
- acc[key] = de_KeyspacesCellValue(core$1.awsExpectUnion(value), context);
574
- return acc;
575
- }, {});
576
- };
577
- const de_KeyspacesRow = (output, context) => {
578
- return smithyClient.take(output, {
579
- rowMetadata: smithyClient._json,
580
- staticCells: (_) => de_KeyspacesCells(_, context),
581
- valueCells: (_) => de_KeyspacesCells(_, context),
582
- });
583
- };
584
- const de_KeyspacesUdtMap = (output, context) => {
585
- return Object.entries(output).reduce((acc, [key, value]) => {
586
- if (value === null) {
587
- return acc;
588
- }
589
- acc[key] = de_KeyspacesCell(value, context);
590
- return acc;
591
- }, {});
592
- };
593
- const de__Record = (output, context) => {
594
- return smithyClient.take(output, {
595
- clusteringKeys: (_) => de_KeyspacesKeysMap(_, context),
596
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
597
- eventVersion: smithyClient.expectString,
598
- newImage: (_) => de_KeyspacesRow(_, context),
599
- oldImage: (_) => de_KeyspacesRow(_, context),
600
- origin: smithyClient.expectString,
601
- partitionKeys: (_) => de_KeyspacesKeysMap(_, context),
602
- sequenceNumber: smithyClient.expectString,
603
- });
604
- };
605
- const de_RecordList = (output, context) => {
606
- const retVal = (output || [])
607
- .filter((e) => e != null)
608
- .map((entry) => {
609
- return de__Record(entry, context);
610
- });
611
- return retVal;
612
- };
613
- const deserializeMetadata = (output) => ({
614
- httpStatusCode: output.statusCode,
615
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
616
- extendedRequestId: output.headers["x-amz-id-2"],
617
- cfId: output.headers["x-amz-cf-id"],
618
- });
619
- const throwDefaultError = smithyClient.withBaseException(KeyspacesStreamsServiceException);
620
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
621
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
622
- const contents = {
623
- protocol,
624
- hostname,
625
- port,
626
- method: "POST",
627
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
628
- headers,
629
- };
630
- if (body !== undefined) {
631
- contents.body = body;
632
- }
633
- return new protocolHttp.HttpRequest(contents);
634
- };
635
- function sharedHeaders(operation) {
636
- return {
637
- "content-type": "application/x-amz-json-1.0",
638
- "x-amz-target": `KeyspacesStreams.${operation}`,
639
- };
640
- }
269
+ const _ADE = "AccessDeniedException";
270
+ const _GR = "GetRecords";
271
+ const _GRI = "GetRecordsInput";
272
+ const _GRO = "GetRecordsOutput";
273
+ const _GS = "GetStream";
274
+ const _GSI = "GetStreamInput";
275
+ const _GSII = "GetShardIteratorInput";
276
+ const _GSIO = "GetShardIteratorOutput";
277
+ const _GSIe = "GetShardIterator";
278
+ const _GSO = "GetStreamOutput";
279
+ const _ISE = "InternalServerException";
280
+ const _KC = "KeyspacesCell";
281
+ const _KCL = "KeyspacesCellList";
282
+ const _KCM = "KeyspacesCellMap";
283
+ const _KCMD = "KeyspacesCellMapDefinition";
284
+ const _KCV = "KeyspacesCellValue";
285
+ const _KCe = "KeyspacesCells";
286
+ const _KKM = "KeyspacesKeysMap";
287
+ const _KM = "KeyspacesMetadata";
288
+ const _KR = "KeyspacesRow";
289
+ const _KUM = "KeyspacesUdtMap";
290
+ const _LS = "ListStreams";
291
+ const _LSI = "ListStreamsInput";
292
+ const _LSO = "ListStreamsOutput";
293
+ const _R = "Record";
294
+ const _RL = "RecordList";
295
+ const _RNFE = "ResourceNotFoundException";
296
+ const _S = "Shard";
297
+ const _SDL = "ShardDescriptionList";
298
+ const _SF = "ShardFilter";
299
+ const _SL = "StreamList";
300
+ const _SNR = "SequenceNumberRange";
301
+ const _St = "Stream";
302
+ const _TE = "ThrottlingException";
303
+ const _VE = "ValidationException";
304
+ const _aQE = "awsQueryError";
305
+ const _aT = "asciiT";
306
+ const _bT = "bigintT";
307
+ const _bTl = "blobT";
308
+ const _bTo = "boolT";
309
+ const _c = "client";
310
+ const _cA = "createdAt";
311
+ const _cK = "clusteringKeys";
312
+ const _cR = "changeRecords";
313
+ const _cRDT = "creationRequestDateTime";
314
+ const _cT = "counterT";
315
+ const _dT = "dateT";
316
+ const _dTe = "decimalT";
317
+ const _dTo = "doubleT";
318
+ const _e = "error";
319
+ const _eC = "errorCode";
320
+ const _eSN = "endingSequenceNumber";
321
+ const _eT = "expirationTime";
322
+ const _eV = "eventVersion";
323
+ const _fT = "floatT";
324
+ const _hE = "httpError";
325
+ const _iT = "inetT";
326
+ const _iTn = "intT";
327
+ const _k = "key";
328
+ const _kN = "keyspaceName";
329
+ const _lT = "listT";
330
+ const _m = "message";
331
+ const _mR = "maxResults";
332
+ const _mT = "mapT";
333
+ const _me = "metadata";
334
+ const _nI = "newImage";
335
+ const _nSI = "nextShardIterator";
336
+ const _nT = "nextToken";
337
+ const _o = "origin";
338
+ const _oI = "oldImage";
339
+ const _pK = "partitionKeys";
340
+ const _pSI = "parentShardIds";
341
+ const _rM = "rowMetadata";
342
+ const _s = "shards";
343
+ const _sA = "streamArn";
344
+ const _sC = "staticCells";
345
+ const _sF = "shardFilter";
346
+ const _sI = "shardIterator";
347
+ const _sIT = "shardIteratorType";
348
+ const _sIh = "shardId";
349
+ const _sL = "streamLabel";
350
+ const _sN = "sequenceNumber";
351
+ const _sNR = "sequenceNumberRange";
352
+ const _sS = "streamStatus";
353
+ const _sSN = "startingSequenceNumber";
354
+ const _sT = "setT";
355
+ const _sTm = "smallintT";
356
+ const _sVT = "streamViewType";
357
+ const _se = "server";
358
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.keyspacesstreams";
359
+ const _st = "streams";
360
+ const _t = "type";
361
+ const _tN = "tableName";
362
+ const _tT = "textT";
363
+ const _tTi = "timeT";
364
+ const _tTim = "timestampT";
365
+ const _tTime = "timeuuidT";
366
+ const _tTin = "tinyintT";
367
+ const _tTu = "tupleT";
368
+ const _uT = "uuidT";
369
+ const _uTd = "udtT";
370
+ const _v = "value";
371
+ const _vC = "valueCells";
372
+ const _vT = "varcharT";
373
+ const _vTa = "varintT";
374
+ const _wT = "writeTime";
375
+ const n0 = "com.amazonaws.keyspacesstreams";
376
+ var AccessDeniedException = [
377
+ -3,
378
+ n0,
379
+ _ADE,
380
+ {
381
+ [_e]: _c,
382
+ [_hE]: 403,
383
+ [_aQE]: [`AccessDeniedException`, 403],
384
+ },
385
+ [_m],
386
+ [0],
387
+ ];
388
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
389
+ var GetRecordsInput = [3, n0, _GRI, 0, [_sI, _mR], [0, 1]];
390
+ var GetRecordsOutput = [3, n0, _GRO, 0, [_cR, _nSI], [() => RecordList, 0]];
391
+ var GetShardIteratorInput = [3, n0, _GSII, 0, [_sA, _sIh, _sIT, _sN], [0, 0, 0, 0]];
392
+ var GetShardIteratorOutput = [3, n0, _GSIO, 0, [_sI], [0]];
393
+ var GetStreamInput = [3, n0, _GSI, 0, [_sA, _mR, _sF, _nT], [0, 1, () => ShardFilter, 0]];
394
+ var GetStreamOutput = [
395
+ 3,
396
+ n0,
397
+ _GSO,
398
+ 0,
399
+ [_sA, _sL, _sS, _sVT, _cRDT, _kN, _tN, _s, _nT],
400
+ [0, 0, 0, 0, 4, 0, 0, () => ShardDescriptionList, 0],
401
+ ];
402
+ var InternalServerException = [
403
+ -3,
404
+ n0,
405
+ _ISE,
406
+ {
407
+ [_e]: _se,
408
+ [_hE]: 500,
409
+ [_aQE]: [`InternalServerException`, 500],
410
+ },
411
+ [_m],
412
+ [0],
413
+ ];
414
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
415
+ var KeyspacesCell = [
416
+ 3,
417
+ n0,
418
+ _KC,
419
+ 0,
420
+ [_v, _me],
421
+ [() => KeyspacesCellValue, () => KeyspacesMetadata],
422
+ ];
423
+ var KeyspacesCellMapDefinition = [
424
+ 3,
425
+ n0,
426
+ _KCMD,
427
+ 0,
428
+ [_k, _v, _me],
429
+ [() => KeyspacesCellValue, () => KeyspacesCellValue, () => KeyspacesMetadata],
430
+ ];
431
+ var KeyspacesMetadata = [3, n0, _KM, 0, [_eT, _wT], [0, 0]];
432
+ var KeyspacesRow = [
433
+ 3,
434
+ n0,
435
+ _KR,
436
+ 0,
437
+ [_vC, _sC, _rM],
438
+ [() => KeyspacesCells, () => KeyspacesCells, () => KeyspacesMetadata],
439
+ ];
440
+ var ListStreamsInput = [3, n0, _LSI, 0, [_kN, _tN, _mR, _nT], [0, 0, 1, 0]];
441
+ var ListStreamsOutput = [3, n0, _LSO, 0, [_st, _nT], [() => StreamList, 0]];
442
+ var _Record = [
443
+ 3,
444
+ n0,
445
+ _R,
446
+ 0,
447
+ [_eV, _cA, _o, _pK, _cK, _nI, _oI, _sN],
448
+ [0, 4, 0, () => KeyspacesKeysMap, () => KeyspacesKeysMap, () => KeyspacesRow, () => KeyspacesRow, 0],
449
+ ];
450
+ var ResourceNotFoundException = [
451
+ -3,
452
+ n0,
453
+ _RNFE,
454
+ {
455
+ [_e]: _c,
456
+ [_hE]: 404,
457
+ [_aQE]: [`ResourceNotFoundException`, 404],
458
+ },
459
+ [_m],
460
+ [0],
461
+ ];
462
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
463
+ var SequenceNumberRange = [3, n0, _SNR, 0, [_sSN, _eSN], [0, 0]];
464
+ var Shard = [3, n0, _S, 0, [_sIh, _sNR, _pSI], [0, () => SequenceNumberRange, 64 | 0]];
465
+ var ShardFilter = [3, n0, _SF, 0, [_t, _sIh], [0, 0]];
466
+ var _Stream = [3, n0, _St, 0, [_sA, _kN, _tN, _sL], [0, 0, 0, 0]];
467
+ var ThrottlingException = [
468
+ -3,
469
+ n0,
470
+ _TE,
471
+ {
472
+ [_e]: _c,
473
+ [_hE]: 429,
474
+ [_aQE]: [`ThrottlingException`, 429],
475
+ },
476
+ [_m],
477
+ [0],
478
+ ];
479
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
480
+ var ValidationException = [
481
+ -3,
482
+ n0,
483
+ _VE,
484
+ {
485
+ [_e]: _c,
486
+ [_hE]: 400,
487
+ [_aQE]: [`ValidationException`, 400],
488
+ },
489
+ [_m, _eC],
490
+ [0, 0],
491
+ ];
492
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
493
+ var KeyspacesStreamsServiceException = [
494
+ -3,
495
+ _sm,
496
+ "KeyspacesStreamsServiceException",
497
+ 0,
498
+ [],
499
+ [],
500
+ ];
501
+ schema.TypeRegistry.for(_sm).registerError(KeyspacesStreamsServiceException, KeyspacesStreamsServiceException$1);
502
+ var KeyspacesCellList = [1, n0, _KCL, 0, () => KeyspacesCell];
503
+ var KeyspacesCellMap = [1, n0, _KCM, 0, () => KeyspacesCellMapDefinition];
504
+ var RecordList = [1, n0, _RL, 0, () => _Record];
505
+ var ShardDescriptionList = [1, n0, _SDL, 0, () => Shard];
506
+ var StreamList = [1, n0, _SL, 0, () => _Stream];
507
+ var KeyspacesCells = [2, n0, _KCe, 0, 0, () => KeyspacesCell];
508
+ var KeyspacesKeysMap = [2, n0, _KKM, 0, 0, () => KeyspacesCellValue];
509
+ var KeyspacesUdtMap = [2, n0, _KUM, 0, 0, () => KeyspacesCell];
510
+ var KeyspacesCellValue = [
511
+ 3,
512
+ n0,
513
+ _KCV,
514
+ 0,
515
+ [
516
+ _aT,
517
+ _bT,
518
+ _bTl,
519
+ _bTo,
520
+ _cT,
521
+ _dT,
522
+ _dTe,
523
+ _dTo,
524
+ _fT,
525
+ _iT,
526
+ _iTn,
527
+ _lT,
528
+ _mT,
529
+ _sT,
530
+ _sTm,
531
+ _tT,
532
+ _tTi,
533
+ _tTim,
534
+ _tTime,
535
+ _tTin,
536
+ _tTu,
537
+ _uT,
538
+ _vT,
539
+ _vTa,
540
+ _uTd,
541
+ ],
542
+ [
543
+ 0,
544
+ 0,
545
+ 21,
546
+ 2,
547
+ 0,
548
+ 0,
549
+ 0,
550
+ 0,
551
+ 0,
552
+ 0,
553
+ 0,
554
+ () => KeyspacesCellList,
555
+ () => KeyspacesCellMap,
556
+ () => KeyspacesCellList,
557
+ 0,
558
+ 0,
559
+ 0,
560
+ 0,
561
+ 0,
562
+ 0,
563
+ () => KeyspacesCellList,
564
+ 0,
565
+ 0,
566
+ 0,
567
+ () => KeyspacesUdtMap,
568
+ ],
569
+ ];
570
+ var GetRecords = [9, n0, _GR, 0, () => GetRecordsInput, () => GetRecordsOutput];
571
+ var GetShardIterator = [
572
+ 9,
573
+ n0,
574
+ _GSIe,
575
+ 0,
576
+ () => GetShardIteratorInput,
577
+ () => GetShardIteratorOutput,
578
+ ];
579
+ var GetStream = [9, n0, _GS, 0, () => GetStreamInput, () => GetStreamOutput];
580
+ var ListStreams = [9, n0, _LS, 0, () => ListStreamsInput, () => ListStreamsOutput];
641
581
 
642
582
  class GetRecordsCommand extends smithyClient.Command
643
583
  .classBuilder()
644
584
  .ep(commonParams)
645
585
  .m(function (Command, cs, config, o) {
646
- return [
647
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
648
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
649
- ];
586
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
650
587
  })
651
588
  .s("KeyspacesStreams", "GetRecords", {})
652
589
  .n("KeyspacesStreamsClient", "GetRecordsCommand")
653
- .f(void 0, void 0)
654
- .ser(se_GetRecordsCommand)
655
- .de(de_GetRecordsCommand)
590
+ .sc(GetRecords)
656
591
  .build() {
657
592
  }
658
593
 
@@ -660,16 +595,11 @@ class GetShardIteratorCommand extends smithyClient.Command
660
595
  .classBuilder()
661
596
  .ep(commonParams)
662
597
  .m(function (Command, cs, config, o) {
663
- return [
664
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
665
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
666
- ];
598
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
667
599
  })
668
600
  .s("KeyspacesStreams", "GetShardIterator", {})
669
601
  .n("KeyspacesStreamsClient", "GetShardIteratorCommand")
670
- .f(void 0, void 0)
671
- .ser(se_GetShardIteratorCommand)
672
- .de(de_GetShardIteratorCommand)
602
+ .sc(GetShardIterator)
673
603
  .build() {
674
604
  }
675
605
 
@@ -677,16 +607,11 @@ class GetStreamCommand extends smithyClient.Command
677
607
  .classBuilder()
678
608
  .ep(commonParams)
679
609
  .m(function (Command, cs, config, o) {
680
- return [
681
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
682
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
683
- ];
610
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
684
611
  })
685
612
  .s("KeyspacesStreams", "GetStream", {})
686
613
  .n("KeyspacesStreamsClient", "GetStreamCommand")
687
- .f(void 0, void 0)
688
- .ser(se_GetStreamCommand)
689
- .de(de_GetStreamCommand)
614
+ .sc(GetStream)
690
615
  .build() {
691
616
  }
692
617
 
@@ -694,16 +619,11 @@ class ListStreamsCommand extends smithyClient.Command
694
619
  .classBuilder()
695
620
  .ep(commonParams)
696
621
  .m(function (Command, cs, config, o) {
697
- return [
698
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
699
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
700
- ];
622
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
701
623
  })
702
624
  .s("KeyspacesStreams", "ListStreams", {})
703
625
  .n("KeyspacesStreamsClient", "ListStreamsCommand")
704
- .f(void 0, void 0)
705
- .ser(se_ListStreamsCommand)
706
- .de(de_ListStreamsCommand)
626
+ .sc(ListStreams)
707
627
  .build() {
708
628
  }
709
629
 
@@ -729,23 +649,23 @@ Object.defineProperty(exports, "__Client", {
729
649
  enumerable: true,
730
650
  get: function () { return smithyClient.Client; }
731
651
  });
732
- exports.AccessDeniedException = AccessDeniedException;
652
+ exports.AccessDeniedException = AccessDeniedException$1;
733
653
  exports.GetRecordsCommand = GetRecordsCommand;
734
654
  exports.GetShardIteratorCommand = GetShardIteratorCommand;
735
655
  exports.GetStreamCommand = GetStreamCommand;
736
- exports.InternalServerException = InternalServerException;
656
+ exports.InternalServerException = InternalServerException$1;
737
657
  exports.KeyspacesStreams = KeyspacesStreams;
738
658
  exports.KeyspacesStreamsClient = KeyspacesStreamsClient;
739
- exports.KeyspacesStreamsServiceException = KeyspacesStreamsServiceException;
659
+ exports.KeyspacesStreamsServiceException = KeyspacesStreamsServiceException$1;
740
660
  exports.ListStreamsCommand = ListStreamsCommand;
741
661
  exports.OriginType = OriginType;
742
- exports.ResourceNotFoundException = ResourceNotFoundException;
662
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
743
663
  exports.ShardFilterType = ShardFilterType;
744
664
  exports.ShardIteratorType = ShardIteratorType;
745
665
  exports.StreamStatus = StreamStatus;
746
666
  exports.StreamViewType = StreamViewType;
747
- exports.ThrottlingException = ThrottlingException;
748
- exports.ValidationException = ValidationException;
667
+ exports.ThrottlingException = ThrottlingException$1;
668
+ exports.ValidationException = ValidationException$1;
749
669
  exports.ValidationExceptionType = ValidationExceptionType;
750
670
  exports.paginateGetStream = paginateGetStream;
751
671
  exports.paginateListStreams = paginateListStreams;