@aws-sdk/client-keyspacesstreams 3.956.0 → 3.958.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/README.md CHANGED
@@ -9,10 +9,8 @@ AWS SDK for JavaScript KeyspacesStreams Client for Node.js, Browser and React Na
9
9
  <p>Amazon Keyspaces (for Apache Cassandra) change data capture (CDC) records change events for Amazon Keyspaces tables. The change events captured in a stream are time-ordered and de-duplicated write operations. Using stream data you can build event driven applications that incorporate near-real time change events from Amazon Keyspaces tables. </p> <p>Amazon Keyspaces CDC is serverless and scales the infrastructure for change events automatically based on the volume of changes on your table. </p> <p> This API reference describes the Amazon Keyspaces CDC stream API in detail. </p> <p>For more information about Amazon Keyspaces CDC, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/cdc.html">Working with change data capture (CDC) streams in Amazon Keyspaces</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p> <p>To learn how Amazon Keyspaces CDC API actions are recorded with CloudTrail, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/logging-using-cloudtrail.html#service-name-info-in-cloudtrail">Amazon Keyspaces information in CloudTrail</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p> <p>To see the metrics Amazon Keyspaces CDC sends to Amazon CloudWatch, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/metrics-dimensions.html#keyspaces-cdc-metrics">Amazon Keyspaces change data capture (CDC) CloudWatch metrics</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p>
10
10
 
11
11
  ## Installing
12
-
13
12
  To install this package, simply type add or install @aws-sdk/client-keyspacesstreams
14
13
  using your favorite package manager:
15
-
16
14
  - `npm install @aws-sdk/client-keyspacesstreams`
17
15
  - `yarn add @aws-sdk/client-keyspacesstreams`
18
16
  - `pnpm add @aws-sdk/client-keyspacesstreams`
@@ -48,9 +46,7 @@ To send a request, you:
48
46
  // a client can be shared by different commands.
49
47
  const client = new KeyspacesStreamsClient({ region: "REGION" });
50
48
 
51
- const params = {
52
- /** input parameters */
53
- };
49
+ const params = { /** input parameters */ };
54
50
  const command = new ListStreamsCommand(params);
55
51
  ```
56
52
 
@@ -209,7 +205,6 @@ GetRecords
209
205
  </summary>
210
206
 
211
207
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/keyspacesstreams/command/GetRecordsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-keyspacesstreams/Interface/GetRecordsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-keyspacesstreams/Interface/GetRecordsCommandOutput/)
212
-
213
208
  </details>
214
209
  <details>
215
210
  <summary>
@@ -217,7 +212,6 @@ GetShardIterator
217
212
  </summary>
218
213
 
219
214
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/keyspacesstreams/command/GetShardIteratorCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-keyspacesstreams/Interface/GetShardIteratorCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-keyspacesstreams/Interface/GetShardIteratorCommandOutput/)
220
-
221
215
  </details>
222
216
  <details>
223
217
  <summary>
@@ -225,7 +219,6 @@ GetStream
225
219
  </summary>
226
220
 
227
221
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/keyspacesstreams/command/GetStreamCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-keyspacesstreams/Interface/GetStreamCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-keyspacesstreams/Interface/GetStreamCommandOutput/)
228
-
229
222
  </details>
230
223
  <details>
231
224
  <summary>
@@ -233,5 +226,4 @@ ListStreams
233
226
  </summary>
234
227
 
235
228
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/keyspacesstreams/command/ListStreamsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-keyspacesstreams/Interface/ListStreamsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-keyspacesstreams/Interface/ListStreamsCommandOutput/)
236
-
237
229
  </details>
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
6
6
  const defaultKeyspacesStreamsHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
7
  return {
8
8
  operation: (0, util_middleware_1.getSmithyContext)(context).operation,
9
- region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
10
- (() => {
11
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
12
- })(),
9
+ region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
10
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
+ })(),
13
12
  };
14
13
  };
15
14
  exports.defaultKeyspacesStreamsHttpAuthSchemeParametersProvider = defaultKeyspacesStreamsHttpAuthSchemeParametersProvider;
package/dist-cjs/index.js CHANGED
@@ -285,198 +285,164 @@ const _vT = "varcharT";
285
285
  const _vTa = "varintT";
286
286
  const _wT = "writeTime";
287
287
  const n0 = "com.amazonaws.keyspacesstreams";
288
- var AccessDeniedException$ = [
289
- -3,
290
- n0,
291
- _ADE,
288
+ var AccessDeniedException$ = [-3, n0, _ADE,
292
289
  { [_aQE]: [`AccessDeniedException`, 403], [_e]: _c, [_hE]: 403 },
293
290
  [_m],
294
- [0],
291
+ [0]
295
292
  ];
296
293
  schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
297
- var GetRecordsInput$ = [3, n0, _GRI, 0, [_sI, _mR], [0, 1]];
298
- var GetRecordsOutput$ = [3, n0, _GRO, 0, [_cR, _nSI], [() => RecordList, 0]];
299
- var GetShardIteratorInput$ = [3, n0, _GSII, 0, [_sA, _sIh, _sIT, _sN], [0, 0, 0, 0]];
300
- var GetShardIteratorOutput$ = [3, n0, _GSIO, 0, [_sI], [0]];
301
- var GetStreamInput$ = [
302
- 3,
303
- n0,
304
- _GSI,
294
+ var GetRecordsInput$ = [3, n0, _GRI,
295
+ 0,
296
+ [_sI, _mR],
297
+ [0, 1]
298
+ ];
299
+ var GetRecordsOutput$ = [3, n0, _GRO,
300
+ 0,
301
+ [_cR, _nSI],
302
+ [() => RecordList, 0]
303
+ ];
304
+ var GetShardIteratorInput$ = [3, n0, _GSII,
305
+ 0,
306
+ [_sA, _sIh, _sIT, _sN],
307
+ [0, 0, 0, 0]
308
+ ];
309
+ var GetShardIteratorOutput$ = [3, n0, _GSIO,
310
+ 0,
311
+ [_sI],
312
+ [0]
313
+ ];
314
+ var GetStreamInput$ = [3, n0, _GSI,
305
315
  0,
306
316
  [_sA, _mR, _sF, _nT],
307
- [0, 1, () => ShardFilter$, 0],
317
+ [0, 1, () => ShardFilter$, 0]
308
318
  ];
309
- var GetStreamOutput$ = [
310
- 3,
311
- n0,
312
- _GSO,
319
+ var GetStreamOutput$ = [3, n0, _GSO,
313
320
  0,
314
321
  [_sA, _sL, _sS, _sVT, _cRDT, _kN, _tN, _s, _nT],
315
- [0, 0, 0, 0, 4, 0, 0, () => ShardDescriptionList, 0],
322
+ [0, 0, 0, 0, 4, 0, 0, () => ShardDescriptionList, 0]
316
323
  ];
317
- var InternalServerException$ = [
318
- -3,
319
- n0,
320
- _ISE,
324
+ var InternalServerException$ = [-3, n0, _ISE,
321
325
  { [_aQE]: [`InternalServerException`, 500], [_e]: _se, [_hE]: 500 },
322
326
  [_m],
323
- [0],
327
+ [0]
324
328
  ];
325
329
  schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
326
- var KeyspacesCell$ = [
327
- 3,
328
- n0,
329
- _KC,
330
+ var KeyspacesCell$ = [3, n0, _KC,
330
331
  0,
331
332
  [_v, _me],
332
- [() => KeyspacesCellValue$, () => KeyspacesMetadata$],
333
+ [() => KeyspacesCellValue$, () => KeyspacesMetadata$]
333
334
  ];
334
- var KeyspacesCellMapDefinition$ = [
335
- 3,
336
- n0,
337
- _KCMD,
335
+ var KeyspacesCellMapDefinition$ = [3, n0, _KCMD,
338
336
  0,
339
337
  [_k, _v, _me],
340
- [() => KeyspacesCellValue$, () => KeyspacesCellValue$, () => KeyspacesMetadata$],
338
+ [() => KeyspacesCellValue$, () => KeyspacesCellValue$, () => KeyspacesMetadata$]
339
+ ];
340
+ var KeyspacesMetadata$ = [3, n0, _KM,
341
+ 0,
342
+ [_eT, _wT],
343
+ [0, 0]
341
344
  ];
342
- var KeyspacesMetadata$ = [3, n0, _KM, 0, [_eT, _wT], [0, 0]];
343
- var KeyspacesRow$ = [
344
- 3,
345
- n0,
346
- _KR,
345
+ var KeyspacesRow$ = [3, n0, _KR,
347
346
  0,
348
347
  [_vC, _sC, _rM],
349
- [() => KeyspacesCells, () => KeyspacesCells, () => KeyspacesMetadata$],
350
- ];
351
- var ListStreamsInput$ = [3, n0, _LSI, 0, [_kN, _tN, _mR, _nT], [0, 0, 1, 0]];
352
- var ListStreamsOutput$ = [3, n0, _LSO, 0, [_st, _nT], [() => StreamList, 0]];
353
- var _Record$ = [
354
- 3,
355
- n0,
356
- _R,
348
+ [() => KeyspacesCells, () => KeyspacesCells, () => KeyspacesMetadata$]
349
+ ];
350
+ var ListStreamsInput$ = [3, n0, _LSI,
351
+ 0,
352
+ [_kN, _tN, _mR, _nT],
353
+ [0, 0, 1, 0]
354
+ ];
355
+ var ListStreamsOutput$ = [3, n0, _LSO,
356
+ 0,
357
+ [_st, _nT],
358
+ [() => StreamList, 0]
359
+ ];
360
+ var _Record$ = [3, n0, _R,
357
361
  0,
358
362
  [_eV, _cA, _o, _pK, _cK, _nI, _oI, _sN],
359
- [0, 4, 0, () => KeyspacesKeysMap, () => KeyspacesKeysMap, () => KeyspacesRow$, () => KeyspacesRow$, 0],
363
+ [0, 4, 0, () => KeyspacesKeysMap, () => KeyspacesKeysMap, () => KeyspacesRow$, () => KeyspacesRow$, 0]
360
364
  ];
361
- var ResourceNotFoundException$ = [
362
- -3,
363
- n0,
364
- _RNFE,
365
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
365
366
  { [_aQE]: [`ResourceNotFoundException`, 404], [_e]: _c, [_hE]: 404 },
366
367
  [_m],
367
- [0],
368
+ [0]
368
369
  ];
369
370
  schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
370
- var SequenceNumberRange$ = [3, n0, _SNR, 0, [_sSN, _eSN], [0, 0]];
371
- var Shard$ = [3, n0, _S, 0, [_sIh, _sNR, _pSI], [0, () => SequenceNumberRange$, 64 | 0]];
372
- var ShardFilter$ = [3, n0, _SF, 0, [_t, _sIh], [0, 0]];
373
- var _Stream$ = [3, n0, _St, 0, [_sA, _kN, _tN, _sL], [0, 0, 0, 0]];
374
- var ThrottlingException$ = [
375
- -3,
376
- n0,
377
- _TE,
371
+ var SequenceNumberRange$ = [3, n0, _SNR,
372
+ 0,
373
+ [_sSN, _eSN],
374
+ [0, 0]
375
+ ];
376
+ var Shard$ = [3, n0, _S,
377
+ 0,
378
+ [_sIh, _sNR, _pSI],
379
+ [0, () => SequenceNumberRange$, 64 | 0]
380
+ ];
381
+ var ShardFilter$ = [3, n0, _SF,
382
+ 0,
383
+ [_t, _sIh],
384
+ [0, 0]
385
+ ];
386
+ var _Stream$ = [3, n0, _St,
387
+ 0,
388
+ [_sA, _kN, _tN, _sL],
389
+ [0, 0, 0, 0]
390
+ ];
391
+ var ThrottlingException$ = [-3, n0, _TE,
378
392
  { [_aQE]: [`ThrottlingException`, 429], [_e]: _c, [_hE]: 429 },
379
393
  [_m],
380
- [0],
394
+ [0]
381
395
  ];
382
396
  schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
383
- var ValidationException$ = [
384
- -3,
385
- n0,
386
- _VE,
397
+ var ValidationException$ = [-3, n0, _VE,
387
398
  { [_aQE]: [`ValidationException`, 400], [_e]: _c, [_hE]: 400 },
388
399
  [_m, _eC],
389
- [0, 0],
400
+ [0, 0]
390
401
  ];
391
402
  schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
392
- var KeyspacesStreamsServiceException$ = [
393
- -3,
394
- _sm,
395
- "KeyspacesStreamsServiceException",
396
- 0,
397
- [],
398
- [],
399
- ];
403
+ var KeyspacesStreamsServiceException$ = [-3, _sm, "KeyspacesStreamsServiceException", 0, [], []];
400
404
  schema.TypeRegistry.for(_sm).registerError(KeyspacesStreamsServiceException$, KeyspacesStreamsServiceException);
401
- var KeyspacesCellList = [1, n0, _KCL, 0, () => KeyspacesCell$];
402
- var KeyspacesCellMap = [1, n0, _KCM, 0, () => KeyspacesCellMapDefinition$];
403
- var RecordList = [1, n0, _RL, 0, () => _Record$];
404
- var ShardDescriptionList = [1, n0, _SDL, 0, () => Shard$];
405
- var StreamList = [1, n0, _SL, 0, () => _Stream$];
406
- var KeyspacesCells = [2, n0, _KCe, 0, 0, () => KeyspacesCell$];
407
- var KeyspacesKeysMap = [2, n0, _KKM, 0, 0, () => KeyspacesCellValue$];
408
- var KeyspacesUdtMap = [2, n0, _KUM, 0, 0, () => KeyspacesCell$];
409
- var KeyspacesCellValue$ = [
410
- 4,
411
- n0,
412
- _KCV,
413
- 0,
414
- [
415
- _aT,
416
- _bT,
417
- _bTl,
418
- _bTo,
419
- _cT,
420
- _dT,
421
- _dTe,
422
- _dTo,
423
- _fT,
424
- _iT,
425
- _iTn,
426
- _lT,
427
- _mT,
428
- _sT,
429
- _sTm,
430
- _tT,
431
- _tTi,
432
- _tTim,
433
- _tTime,
434
- _tTin,
435
- _tTu,
436
- _uT,
437
- _vT,
438
- _vTa,
439
- _uTd,
440
- ],
441
- [
442
- 0,
443
- 0,
444
- 21,
445
- 2,
446
- 0,
447
- 0,
448
- 0,
449
- 0,
450
- 0,
451
- 0,
452
- 0,
453
- () => KeyspacesCellList,
454
- () => KeyspacesCellMap,
455
- () => KeyspacesCellList,
456
- 0,
457
- 0,
458
- 0,
459
- 0,
460
- 0,
461
- 0,
462
- () => KeyspacesCellList,
463
- 0,
464
- 0,
465
- 0,
466
- () => KeyspacesUdtMap,
467
- ],
468
- ];
469
- var GetRecords$ = [9, n0, _GR, 0, () => GetRecordsInput$, () => GetRecordsOutput$];
470
- var GetShardIterator$ = [
471
- 9,
472
- n0,
473
- _GSIe,
405
+ var KeyspacesCellList = [1, n0, _KCL,
406
+ 0, () => KeyspacesCell$
407
+ ];
408
+ var KeyspacesCellMap = [1, n0, _KCM,
409
+ 0, () => KeyspacesCellMapDefinition$
410
+ ];
411
+ var RecordList = [1, n0, _RL,
412
+ 0, () => _Record$
413
+ ];
414
+ var ShardDescriptionList = [1, n0, _SDL,
415
+ 0, () => Shard$
416
+ ];
417
+ var StreamList = [1, n0, _SL,
418
+ 0, () => _Stream$
419
+ ];
420
+ var KeyspacesCells = [2, n0, _KCe,
421
+ 0, 0, () => KeyspacesCell$
422
+ ];
423
+ var KeyspacesKeysMap = [2, n0, _KKM,
424
+ 0, 0, () => KeyspacesCellValue$
425
+ ];
426
+ var KeyspacesUdtMap = [2, n0, _KUM,
427
+ 0, 0, () => KeyspacesCell$
428
+ ];
429
+ var KeyspacesCellValue$ = [4, n0, _KCV,
474
430
  0,
475
- () => GetShardIteratorInput$,
476
- () => GetShardIteratorOutput$,
431
+ [_aT, _bT, _bTl, _bTo, _cT, _dT, _dTe, _dTo, _fT, _iT, _iTn, _lT, _mT, _sT, _sTm, _tT, _tTi, _tTim, _tTime, _tTin, _tTu, _uT, _vT, _vTa, _uTd],
432
+ [0, 0, 21, 2, 0, 0, 0, 0, 0, 0, 0, () => KeyspacesCellList, () => KeyspacesCellMap, () => KeyspacesCellList, 0, 0, 0, 0, 0, 0, () => KeyspacesCellList, 0, 0, 0, () => KeyspacesUdtMap]
433
+ ];
434
+ var GetRecords$ = [9, n0, _GR,
435
+ 0, () => GetRecordsInput$, () => GetRecordsOutput$
436
+ ];
437
+ var GetShardIterator$ = [9, n0, _GSIe,
438
+ 0, () => GetShardIteratorInput$, () => GetShardIteratorOutput$
439
+ ];
440
+ var GetStream$ = [9, n0, _GS,
441
+ 0, () => GetStreamInput$, () => GetStreamOutput$
442
+ ];
443
+ var ListStreams$ = [9, n0, _LS,
444
+ 0, () => ListStreamsInput$, () => ListStreamsOutput$
477
445
  ];
478
- var GetStream$ = [9, n0, _GS, 0, () => GetStreamInput$, () => GetStreamOutput$];
479
- var ListStreams$ = [9, n0, _LS, 0, () => ListStreamsInput$, () => ListStreamsOutput$];
480
446
 
481
447
  class GetRecordsCommand extends smithyClient.Command
482
448
  .classBuilder()
@@ -24,8 +24,7 @@ const getRuntimeConfig = (config) => {
24
24
  defaultsMode,
25
25
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
26
26
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
- (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
29
28
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
30
29
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
31
30
  requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -34,11 +34,9 @@ const getRuntimeConfig = (config) => {
34
34
  authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
35
35
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
36
36
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
37
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
38
- (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
39
38
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
40
- region: config?.region ??
41
- (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
39
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
42
40
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
43
41
  retryMode: config?.retryMode ??
44
42
  (0, node_config_provider_1.loadConfig)({
@@ -3,10 +3,9 @@ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
3
  export const defaultKeyspacesStreamsHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
4
  return {
5
5
  operation: getSmithyContext(context).operation,
6
- region: (await normalizeProvider(config.region)()) ||
7
- (() => {
8
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
9
- })(),
6
+ region: await normalizeProvider(config.region)() || (() => {
7
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
+ })(),
10
9
  };
11
10
  };
12
11
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
@@ -1,3 +1,3 @@
1
- export * from "./GetStreamPaginator";
2
1
  export * from "./Interfaces";
2
+ export * from "./GetStreamPaginator";
3
3
  export * from "./ListStreamsPaginator";
@@ -20,8 +20,7 @@ export const getRuntimeConfig = (config) => {
20
20
  defaultsMode,
21
21
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
22
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
23
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
24
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
25
  region: config?.region ?? invalidProvider("Region is missing"),
27
26
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -1,7 +1,7 @@
1
1
  import packageInfo from "../package.json";
2
- import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
2
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core";
3
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
- import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
4
+ import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
5
5
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
6
6
  import { Hash } from "@smithy/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
@@ -30,11 +30,9 @@ export const getRuntimeConfig = (config) => {
30
30
  authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
31
31
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
32
32
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
33
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
34
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
35
34
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
36
- region: config?.region ??
37
- loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
35
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
38
36
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
39
37
  retryMode: config?.retryMode ??
40
38
  loadNodeConfig({
@@ -108,196 +108,162 @@ const n0 = "com.amazonaws.keyspacesstreams";
108
108
  import { TypeRegistry } from "@smithy/core/schema";
109
109
  import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/errors";
110
110
  import { KeyspacesStreamsServiceException } from "../models/KeyspacesStreamsServiceException";
111
- export var AccessDeniedException$ = [
112
- -3,
113
- n0,
114
- _ADE,
111
+ export var AccessDeniedException$ = [-3, n0, _ADE,
115
112
  { [_aQE]: [`AccessDeniedException`, 403], [_e]: _c, [_hE]: 403 },
116
113
  [_m],
117
- [0],
114
+ [0]
118
115
  ];
119
116
  TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
120
- export var GetRecordsInput$ = [3, n0, _GRI, 0, [_sI, _mR], [0, 1]];
121
- export var GetRecordsOutput$ = [3, n0, _GRO, 0, [_cR, _nSI], [() => RecordList, 0]];
122
- export var GetShardIteratorInput$ = [3, n0, _GSII, 0, [_sA, _sIh, _sIT, _sN], [0, 0, 0, 0]];
123
- export var GetShardIteratorOutput$ = [3, n0, _GSIO, 0, [_sI], [0]];
124
- export var GetStreamInput$ = [
125
- 3,
126
- n0,
127
- _GSI,
117
+ export var GetRecordsInput$ = [3, n0, _GRI,
118
+ 0,
119
+ [_sI, _mR],
120
+ [0, 1]
121
+ ];
122
+ export var GetRecordsOutput$ = [3, n0, _GRO,
123
+ 0,
124
+ [_cR, _nSI],
125
+ [() => RecordList, 0]
126
+ ];
127
+ export var GetShardIteratorInput$ = [3, n0, _GSII,
128
+ 0,
129
+ [_sA, _sIh, _sIT, _sN],
130
+ [0, 0, 0, 0]
131
+ ];
132
+ export var GetShardIteratorOutput$ = [3, n0, _GSIO,
133
+ 0,
134
+ [_sI],
135
+ [0]
136
+ ];
137
+ export var GetStreamInput$ = [3, n0, _GSI,
128
138
  0,
129
139
  [_sA, _mR, _sF, _nT],
130
- [0, 1, () => ShardFilter$, 0],
140
+ [0, 1, () => ShardFilter$, 0]
131
141
  ];
132
- export var GetStreamOutput$ = [
133
- 3,
134
- n0,
135
- _GSO,
142
+ export var GetStreamOutput$ = [3, n0, _GSO,
136
143
  0,
137
144
  [_sA, _sL, _sS, _sVT, _cRDT, _kN, _tN, _s, _nT],
138
- [0, 0, 0, 0, 4, 0, 0, () => ShardDescriptionList, 0],
145
+ [0, 0, 0, 0, 4, 0, 0, () => ShardDescriptionList, 0]
139
146
  ];
140
- export var InternalServerException$ = [
141
- -3,
142
- n0,
143
- _ISE,
147
+ export var InternalServerException$ = [-3, n0, _ISE,
144
148
  { [_aQE]: [`InternalServerException`, 500], [_e]: _se, [_hE]: 500 },
145
149
  [_m],
146
- [0],
150
+ [0]
147
151
  ];
148
152
  TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
149
- export var KeyspacesCell$ = [
150
- 3,
151
- n0,
152
- _KC,
153
+ export var KeyspacesCell$ = [3, n0, _KC,
153
154
  0,
154
155
  [_v, _me],
155
- [() => KeyspacesCellValue$, () => KeyspacesMetadata$],
156
+ [() => KeyspacesCellValue$, () => KeyspacesMetadata$]
156
157
  ];
157
- export var KeyspacesCellMapDefinition$ = [
158
- 3,
159
- n0,
160
- _KCMD,
158
+ export var KeyspacesCellMapDefinition$ = [3, n0, _KCMD,
161
159
  0,
162
160
  [_k, _v, _me],
163
- [() => KeyspacesCellValue$, () => KeyspacesCellValue$, () => KeyspacesMetadata$],
161
+ [() => KeyspacesCellValue$, () => KeyspacesCellValue$, () => KeyspacesMetadata$]
162
+ ];
163
+ export var KeyspacesMetadata$ = [3, n0, _KM,
164
+ 0,
165
+ [_eT, _wT],
166
+ [0, 0]
164
167
  ];
165
- export var KeyspacesMetadata$ = [3, n0, _KM, 0, [_eT, _wT], [0, 0]];
166
- export var KeyspacesRow$ = [
167
- 3,
168
- n0,
169
- _KR,
168
+ export var KeyspacesRow$ = [3, n0, _KR,
170
169
  0,
171
170
  [_vC, _sC, _rM],
172
- [() => KeyspacesCells, () => KeyspacesCells, () => KeyspacesMetadata$],
173
- ];
174
- export var ListStreamsInput$ = [3, n0, _LSI, 0, [_kN, _tN, _mR, _nT], [0, 0, 1, 0]];
175
- export var ListStreamsOutput$ = [3, n0, _LSO, 0, [_st, _nT], [() => StreamList, 0]];
176
- export var _Record$ = [
177
- 3,
178
- n0,
179
- _R,
171
+ [() => KeyspacesCells, () => KeyspacesCells, () => KeyspacesMetadata$]
172
+ ];
173
+ export var ListStreamsInput$ = [3, n0, _LSI,
174
+ 0,
175
+ [_kN, _tN, _mR, _nT],
176
+ [0, 0, 1, 0]
177
+ ];
178
+ export var ListStreamsOutput$ = [3, n0, _LSO,
179
+ 0,
180
+ [_st, _nT],
181
+ [() => StreamList, 0]
182
+ ];
183
+ export var _Record$ = [3, n0, _R,
180
184
  0,
181
185
  [_eV, _cA, _o, _pK, _cK, _nI, _oI, _sN],
182
- [0, 4, 0, () => KeyspacesKeysMap, () => KeyspacesKeysMap, () => KeyspacesRow$, () => KeyspacesRow$, 0],
186
+ [0, 4, 0, () => KeyspacesKeysMap, () => KeyspacesKeysMap, () => KeyspacesRow$, () => KeyspacesRow$, 0]
183
187
  ];
184
- export var ResourceNotFoundException$ = [
185
- -3,
186
- n0,
187
- _RNFE,
188
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
188
189
  { [_aQE]: [`ResourceNotFoundException`, 404], [_e]: _c, [_hE]: 404 },
189
190
  [_m],
190
- [0],
191
+ [0]
191
192
  ];
192
193
  TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
193
- export var SequenceNumberRange$ = [3, n0, _SNR, 0, [_sSN, _eSN], [0, 0]];
194
- export var Shard$ = [3, n0, _S, 0, [_sIh, _sNR, _pSI], [0, () => SequenceNumberRange$, 64 | 0]];
195
- export var ShardFilter$ = [3, n0, _SF, 0, [_t, _sIh], [0, 0]];
196
- export var _Stream$ = [3, n0, _St, 0, [_sA, _kN, _tN, _sL], [0, 0, 0, 0]];
197
- export var ThrottlingException$ = [
198
- -3,
199
- n0,
200
- _TE,
194
+ export var SequenceNumberRange$ = [3, n0, _SNR,
195
+ 0,
196
+ [_sSN, _eSN],
197
+ [0, 0]
198
+ ];
199
+ export var Shard$ = [3, n0, _S,
200
+ 0,
201
+ [_sIh, _sNR, _pSI],
202
+ [0, () => SequenceNumberRange$, 64 | 0]
203
+ ];
204
+ export var ShardFilter$ = [3, n0, _SF,
205
+ 0,
206
+ [_t, _sIh],
207
+ [0, 0]
208
+ ];
209
+ export var _Stream$ = [3, n0, _St,
210
+ 0,
211
+ [_sA, _kN, _tN, _sL],
212
+ [0, 0, 0, 0]
213
+ ];
214
+ export var ThrottlingException$ = [-3, n0, _TE,
201
215
  { [_aQE]: [`ThrottlingException`, 429], [_e]: _c, [_hE]: 429 },
202
216
  [_m],
203
- [0],
217
+ [0]
204
218
  ];
205
219
  TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
206
- export var ValidationException$ = [
207
- -3,
208
- n0,
209
- _VE,
220
+ export var ValidationException$ = [-3, n0, _VE,
210
221
  { [_aQE]: [`ValidationException`, 400], [_e]: _c, [_hE]: 400 },
211
222
  [_m, _eC],
212
- [0, 0],
223
+ [0, 0]
213
224
  ];
214
225
  TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
215
- export var KeyspacesStreamsServiceException$ = [
216
- -3,
217
- _sm,
218
- "KeyspacesStreamsServiceException",
219
- 0,
220
- [],
221
- [],
222
- ];
226
+ export var KeyspacesStreamsServiceException$ = [-3, _sm, "KeyspacesStreamsServiceException", 0, [], []];
223
227
  TypeRegistry.for(_sm).registerError(KeyspacesStreamsServiceException$, KeyspacesStreamsServiceException);
224
- var KeyspacesCellList = [1, n0, _KCL, 0, () => KeyspacesCell$];
225
- var KeyspacesCellMap = [1, n0, _KCM, 0, () => KeyspacesCellMapDefinition$];
226
- var RecordList = [1, n0, _RL, 0, () => _Record$];
227
- var ShardDescriptionList = [1, n0, _SDL, 0, () => Shard$];
228
+ var KeyspacesCellList = [1, n0, _KCL,
229
+ 0, () => KeyspacesCell$
230
+ ];
231
+ var KeyspacesCellMap = [1, n0, _KCM,
232
+ 0, () => KeyspacesCellMapDefinition$
233
+ ];
234
+ var RecordList = [1, n0, _RL,
235
+ 0, () => _Record$
236
+ ];
237
+ var ShardDescriptionList = [1, n0, _SDL,
238
+ 0, () => Shard$
239
+ ];
228
240
  var ShardIdList = 64 | 0;
229
- var StreamList = [1, n0, _SL, 0, () => _Stream$];
230
- var KeyspacesCells = [2, n0, _KCe, 0, 0, () => KeyspacesCell$];
231
- var KeyspacesKeysMap = [2, n0, _KKM, 0, 0, () => KeyspacesCellValue$];
232
- var KeyspacesUdtMap = [2, n0, _KUM, 0, 0, () => KeyspacesCell$];
233
- export var KeyspacesCellValue$ = [
234
- 4,
235
- n0,
236
- _KCV,
237
- 0,
238
- [
239
- _aT,
240
- _bT,
241
- _bTl,
242
- _bTo,
243
- _cT,
244
- _dT,
245
- _dTe,
246
- _dTo,
247
- _fT,
248
- _iT,
249
- _iTn,
250
- _lT,
251
- _mT,
252
- _sT,
253
- _sTm,
254
- _tT,
255
- _tTi,
256
- _tTim,
257
- _tTime,
258
- _tTin,
259
- _tTu,
260
- _uT,
261
- _vT,
262
- _vTa,
263
- _uTd,
264
- ],
265
- [
266
- 0,
267
- 0,
268
- 21,
269
- 2,
270
- 0,
271
- 0,
272
- 0,
273
- 0,
274
- 0,
275
- 0,
276
- 0,
277
- () => KeyspacesCellList,
278
- () => KeyspacesCellMap,
279
- () => KeyspacesCellList,
280
- 0,
281
- 0,
282
- 0,
283
- 0,
284
- 0,
285
- 0,
286
- () => KeyspacesCellList,
287
- 0,
288
- 0,
289
- 0,
290
- () => KeyspacesUdtMap,
291
- ],
292
- ];
293
- export var GetRecords$ = [9, n0, _GR, 0, () => GetRecordsInput$, () => GetRecordsOutput$];
294
- export var GetShardIterator$ = [
295
- 9,
296
- n0,
297
- _GSIe,
241
+ var StreamList = [1, n0, _SL,
242
+ 0, () => _Stream$
243
+ ];
244
+ var KeyspacesCells = [2, n0, _KCe,
245
+ 0, 0, () => KeyspacesCell$
246
+ ];
247
+ var KeyspacesKeysMap = [2, n0, _KKM,
248
+ 0, 0, () => KeyspacesCellValue$
249
+ ];
250
+ var KeyspacesUdtMap = [2, n0, _KUM,
251
+ 0, 0, () => KeyspacesCell$
252
+ ];
253
+ export var KeyspacesCellValue$ = [4, n0, _KCV,
298
254
  0,
299
- () => GetShardIteratorInput$,
300
- () => GetShardIteratorOutput$,
255
+ [_aT, _bT, _bTl, _bTo, _cT, _dT, _dTe, _dTo, _fT, _iT, _iTn, _lT, _mT, _sT, _sTm, _tT, _tTi, _tTim, _tTime, _tTin, _tTu, _uT, _vT, _vTa, _uTd],
256
+ [0, 0, 21, 2, 0, 0, 0, 0, 0, 0, 0, () => KeyspacesCellList, () => KeyspacesCellMap, () => KeyspacesCellList, 0, 0, 0, 0, 0, 0, () => KeyspacesCellList, 0, 0, 0, () => KeyspacesUdtMap]
257
+ ];
258
+ export var GetRecords$ = [9, n0, _GR,
259
+ 0, () => GetRecordsInput$, () => GetRecordsOutput$
260
+ ];
261
+ export var GetShardIterator$ = [9, n0, _GSIe,
262
+ 0, () => GetShardIteratorInput$, () => GetShardIteratorOutput$
263
+ ];
264
+ export var GetStream$ = [9, n0, _GS,
265
+ 0, () => GetStreamInput$, () => GetStreamOutput$
266
+ ];
267
+ export var ListStreams$ = [9, n0, _LS,
268
+ 0, () => ListStreamsInput$, () => ListStreamsOutput$
301
269
  ];
302
- export var GetStream$ = [9, n0, _GS, 0, () => GetStreamInput$, () => GetStreamOutput$];
303
- export var ListStreams$ = [9, n0, _LS, 0, () => ListStreamsInput$, () => ListStreamsOutput$];
@@ -1,3 +1,3 @@
1
- export * from "./GetStreamPaginator";
2
1
  export * from "./Interfaces";
2
+ export * from "./GetStreamPaginator";
3
3
  export * from "./ListStreamsPaginator";
@@ -1,3 +1,3 @@
1
- export * from "./GetStreamPaginator";
2
1
  export * from "./Interfaces";
2
+ export * from "./GetStreamPaginator";
3
3
  export * from "./ListStreamsPaginator";
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-keyspacesstreams",
3
3
  "description": "AWS SDK for JavaScript Keyspacesstreams Client for Node.js, Browser and React Native",
4
- "version": "3.956.0",
4
+ "version": "3.958.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-keyspacesstreams",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
- "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
9
+ "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
12
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
@@ -21,17 +21,17 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "3.956.0",
25
- "@aws-sdk/credential-provider-node": "3.956.0",
26
- "@aws-sdk/middleware-host-header": "3.956.0",
27
- "@aws-sdk/middleware-logger": "3.956.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.956.0",
29
- "@aws-sdk/middleware-user-agent": "3.956.0",
30
- "@aws-sdk/region-config-resolver": "3.956.0",
31
- "@aws-sdk/types": "3.956.0",
32
- "@aws-sdk/util-endpoints": "3.956.0",
33
- "@aws-sdk/util-user-agent-browser": "3.956.0",
34
- "@aws-sdk/util-user-agent-node": "3.956.0",
24
+ "@aws-sdk/core": "3.957.0",
25
+ "@aws-sdk/credential-provider-node": "3.958.0",
26
+ "@aws-sdk/middleware-host-header": "3.957.0",
27
+ "@aws-sdk/middleware-logger": "3.957.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.957.0",
29
+ "@aws-sdk/middleware-user-agent": "3.957.0",
30
+ "@aws-sdk/region-config-resolver": "3.957.0",
31
+ "@aws-sdk/types": "3.957.0",
32
+ "@aws-sdk/util-endpoints": "3.957.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.957.0",
34
+ "@aws-sdk/util-user-agent-node": "3.957.0",
35
35
  "@smithy/config-resolver": "^4.4.5",
36
36
  "@smithy/core": "^3.20.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.8",