@aws-sdk/client-kinesis 3.758.0 → 3.772.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.
Files changed (2) hide show
  1. package/dist-cjs/index.js +44 -61
  2. package/package.json +3 -3
package/dist-cjs/index.js CHANGED
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
21
  // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
24
  AccessDeniedException: () => AccessDeniedException,
25
25
  AddTagsToStreamCommand: () => AddTagsToStreamCommand,
26
26
  ConsumerStatus: () => ConsumerStatus,
@@ -91,7 +91,7 @@ __export(src_exports, {
91
91
  waitUntilStreamExists: () => waitUntilStreamExists,
92
92
  waitUntilStreamNotExists: () => waitUntilStreamNotExists
93
93
  });
94
- module.exports = __toCommonJS(src_exports);
94
+ module.exports = __toCommonJS(index_exports);
95
95
 
96
96
  // src/KinesisClient.ts
97
97
  var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
@@ -220,9 +220,9 @@ var KinesisClient = class extends import_smithy_client.Client {
220
220
  this.middlewareStack.use(
221
221
  (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
222
222
  httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultKinesisHttpAuthSchemeParametersProvider,
223
- identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
223
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
224
224
  "aws.auth#sigv4": config.credentials
225
- })
225
+ }), "identityProviderConfigProvider")
226
226
  })
227
227
  );
228
228
  this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
@@ -601,24 +601,18 @@ var ValidationException = class _ValidationException extends KinesisServiceExcep
601
601
  var SubscribeToShardEventStream;
602
602
  ((SubscribeToShardEventStream3) => {
603
603
  SubscribeToShardEventStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
604
- if (value.SubscribeToShardEvent !== void 0)
605
- return visitor.SubscribeToShardEvent(value.SubscribeToShardEvent);
604
+ if (value.SubscribeToShardEvent !== void 0) return visitor.SubscribeToShardEvent(value.SubscribeToShardEvent);
606
605
  if (value.ResourceNotFoundException !== void 0)
607
606
  return visitor.ResourceNotFoundException(value.ResourceNotFoundException);
608
- if (value.ResourceInUseException !== void 0)
609
- return visitor.ResourceInUseException(value.ResourceInUseException);
610
- if (value.KMSDisabledException !== void 0)
611
- return visitor.KMSDisabledException(value.KMSDisabledException);
607
+ if (value.ResourceInUseException !== void 0) return visitor.ResourceInUseException(value.ResourceInUseException);
608
+ if (value.KMSDisabledException !== void 0) return visitor.KMSDisabledException(value.KMSDisabledException);
612
609
  if (value.KMSInvalidStateException !== void 0)
613
610
  return visitor.KMSInvalidStateException(value.KMSInvalidStateException);
614
611
  if (value.KMSAccessDeniedException !== void 0)
615
612
  return visitor.KMSAccessDeniedException(value.KMSAccessDeniedException);
616
- if (value.KMSNotFoundException !== void 0)
617
- return visitor.KMSNotFoundException(value.KMSNotFoundException);
618
- if (value.KMSOptInRequired !== void 0)
619
- return visitor.KMSOptInRequired(value.KMSOptInRequired);
620
- if (value.KMSThrottlingException !== void 0)
621
- return visitor.KMSThrottlingException(value.KMSThrottlingException);
613
+ if (value.KMSNotFoundException !== void 0) return visitor.KMSNotFoundException(value.KMSNotFoundException);
614
+ if (value.KMSOptInRequired !== void 0) return visitor.KMSOptInRequired(value.KMSOptInRequired);
615
+ if (value.KMSThrottlingException !== void 0) return visitor.KMSThrottlingException(value.KMSThrottlingException);
622
616
  if (value.InternalFailureException !== void 0)
623
617
  return visitor.InternalFailureException(value.InternalFailureException);
624
618
  return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -628,28 +622,17 @@ var ScalingType = {
628
622
  UNIFORM_SCALING: "UNIFORM_SCALING"
629
623
  };
630
624
  var SubscribeToShardEventStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
631
- if (obj.SubscribeToShardEvent !== void 0)
632
- return { SubscribeToShardEvent: obj.SubscribeToShardEvent };
633
- if (obj.ResourceNotFoundException !== void 0)
634
- return { ResourceNotFoundException: obj.ResourceNotFoundException };
635
- if (obj.ResourceInUseException !== void 0)
636
- return { ResourceInUseException: obj.ResourceInUseException };
637
- if (obj.KMSDisabledException !== void 0)
638
- return { KMSDisabledException: obj.KMSDisabledException };
639
- if (obj.KMSInvalidStateException !== void 0)
640
- return { KMSInvalidStateException: obj.KMSInvalidStateException };
641
- if (obj.KMSAccessDeniedException !== void 0)
642
- return { KMSAccessDeniedException: obj.KMSAccessDeniedException };
643
- if (obj.KMSNotFoundException !== void 0)
644
- return { KMSNotFoundException: obj.KMSNotFoundException };
645
- if (obj.KMSOptInRequired !== void 0)
646
- return { KMSOptInRequired: obj.KMSOptInRequired };
647
- if (obj.KMSThrottlingException !== void 0)
648
- return { KMSThrottlingException: obj.KMSThrottlingException };
649
- if (obj.InternalFailureException !== void 0)
650
- return { InternalFailureException: obj.InternalFailureException };
651
- if (obj.$unknown !== void 0)
652
- return { [obj.$unknown[0]]: "UNKNOWN" };
625
+ if (obj.SubscribeToShardEvent !== void 0) return { SubscribeToShardEvent: obj.SubscribeToShardEvent };
626
+ if (obj.ResourceNotFoundException !== void 0) return { ResourceNotFoundException: obj.ResourceNotFoundException };
627
+ if (obj.ResourceInUseException !== void 0) return { ResourceInUseException: obj.ResourceInUseException };
628
+ if (obj.KMSDisabledException !== void 0) return { KMSDisabledException: obj.KMSDisabledException };
629
+ if (obj.KMSInvalidStateException !== void 0) return { KMSInvalidStateException: obj.KMSInvalidStateException };
630
+ if (obj.KMSAccessDeniedException !== void 0) return { KMSAccessDeniedException: obj.KMSAccessDeniedException };
631
+ if (obj.KMSNotFoundException !== void 0) return { KMSNotFoundException: obj.KMSNotFoundException };
632
+ if (obj.KMSOptInRequired !== void 0) return { KMSOptInRequired: obj.KMSOptInRequired };
633
+ if (obj.KMSThrottlingException !== void 0) return { KMSThrottlingException: obj.KMSThrottlingException };
634
+ if (obj.InternalFailureException !== void 0) return { InternalFailureException: obj.InternalFailureException };
635
+ if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
653
636
  }, "SubscribeToShardEventStreamFilterSensitiveLog");
654
637
  var SubscribeToShardOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
655
638
  ...obj,
@@ -1560,7 +1543,7 @@ var se_GetShardIteratorInput = /* @__PURE__ */ __name((input, context) => {
1560
1543
  StartingSequenceNumber: [],
1561
1544
  StreamARN: [],
1562
1545
  StreamName: [],
1563
- Timestamp: (_) => _.getTime() / 1e3
1546
+ Timestamp: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "Timestamp")
1564
1547
  });
1565
1548
  }, "se_GetShardIteratorInput");
1566
1549
  var se_ListShardsInput = /* @__PURE__ */ __name((input, context) => {
@@ -1568,9 +1551,9 @@ var se_ListShardsInput = /* @__PURE__ */ __name((input, context) => {
1568
1551
  ExclusiveStartShardId: [],
1569
1552
  MaxResults: [],
1570
1553
  NextToken: [],
1571
- ShardFilter: (_) => se_ShardFilter(_, context),
1554
+ ShardFilter: /* @__PURE__ */ __name((_) => se_ShardFilter(_, context), "ShardFilter"),
1572
1555
  StreamARN: [],
1573
- StreamCreationTimestamp: (_) => _.getTime() / 1e3,
1556
+ StreamCreationTimestamp: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StreamCreationTimestamp"),
1574
1557
  StreamName: []
1575
1558
  });
1576
1559
  }, "se_ListShardsInput");
@@ -1579,7 +1562,7 @@ var se_ListStreamConsumersInput = /* @__PURE__ */ __name((input, context) => {
1579
1562
  MaxResults: [],
1580
1563
  NextToken: [],
1581
1564
  StreamARN: [],
1582
- StreamCreationTimestamp: (_) => _.getTime() / 1e3
1565
+ StreamCreationTimestamp: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StreamCreationTimestamp")
1583
1566
  });
1584
1567
  }, "se_ListStreamConsumersInput");
1585
1568
  var se_PutRecordInput = /* @__PURE__ */ __name((input, context) => {
@@ -1594,7 +1577,7 @@ var se_PutRecordInput = /* @__PURE__ */ __name((input, context) => {
1594
1577
  }, "se_PutRecordInput");
1595
1578
  var se_PutRecordsInput = /* @__PURE__ */ __name((input, context) => {
1596
1579
  return (0, import_smithy_client.take)(input, {
1597
- Records: (_) => se_PutRecordsRequestEntryList(_, context),
1580
+ Records: /* @__PURE__ */ __name((_) => se_PutRecordsRequestEntryList(_, context), "Records"),
1598
1581
  StreamARN: [],
1599
1582
  StreamName: []
1600
1583
  });
@@ -1614,14 +1597,14 @@ var se_PutRecordsRequestEntryList = /* @__PURE__ */ __name((input, context) => {
1614
1597
  var se_ShardFilter = /* @__PURE__ */ __name((input, context) => {
1615
1598
  return (0, import_smithy_client.take)(input, {
1616
1599
  ShardId: [],
1617
- Timestamp: (_) => _.getTime() / 1e3,
1600
+ Timestamp: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "Timestamp"),
1618
1601
  Type: []
1619
1602
  });
1620
1603
  }, "se_ShardFilter");
1621
1604
  var se_StartingPosition = /* @__PURE__ */ __name((input, context) => {
1622
1605
  return (0, import_smithy_client.take)(input, {
1623
1606
  SequenceNumber: [],
1624
- Timestamp: (_) => _.getTime() / 1e3,
1607
+ Timestamp: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "Timestamp"),
1625
1608
  Type: []
1626
1609
  });
1627
1610
  }, "se_StartingPosition");
@@ -1629,13 +1612,13 @@ var se_SubscribeToShardInput = /* @__PURE__ */ __name((input, context) => {
1629
1612
  return (0, import_smithy_client.take)(input, {
1630
1613
  ConsumerARN: [],
1631
1614
  ShardId: [],
1632
- StartingPosition: (_) => se_StartingPosition(_, context)
1615
+ StartingPosition: /* @__PURE__ */ __name((_) => se_StartingPosition(_, context), "StartingPosition")
1633
1616
  });
1634
1617
  }, "se_SubscribeToShardInput");
1635
1618
  var de_Consumer = /* @__PURE__ */ __name((output, context) => {
1636
1619
  return (0, import_smithy_client.take)(output, {
1637
1620
  ConsumerARN: import_smithy_client.expectString,
1638
- ConsumerCreationTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1621
+ ConsumerCreationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ConsumerCreationTimestamp"),
1639
1622
  ConsumerName: import_smithy_client.expectString,
1640
1623
  ConsumerStatus: import_smithy_client.expectString
1641
1624
  });
@@ -1643,7 +1626,7 @@ var de_Consumer = /* @__PURE__ */ __name((output, context) => {
1643
1626
  var de_ConsumerDescription = /* @__PURE__ */ __name((output, context) => {
1644
1627
  return (0, import_smithy_client.take)(output, {
1645
1628
  ConsumerARN: import_smithy_client.expectString,
1646
- ConsumerCreationTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1629
+ ConsumerCreationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ConsumerCreationTimestamp"),
1647
1630
  ConsumerName: import_smithy_client.expectString,
1648
1631
  ConsumerStatus: import_smithy_client.expectString,
1649
1632
  StreamARN: import_smithy_client.expectString
@@ -1657,17 +1640,17 @@ var de_ConsumerList = /* @__PURE__ */ __name((output, context) => {
1657
1640
  }, "de_ConsumerList");
1658
1641
  var de_DescribeStreamConsumerOutput = /* @__PURE__ */ __name((output, context) => {
1659
1642
  return (0, import_smithy_client.take)(output, {
1660
- ConsumerDescription: (_) => de_ConsumerDescription(_, context)
1643
+ ConsumerDescription: /* @__PURE__ */ __name((_) => de_ConsumerDescription(_, context), "ConsumerDescription")
1661
1644
  });
1662
1645
  }, "de_DescribeStreamConsumerOutput");
1663
1646
  var de_DescribeStreamOutput = /* @__PURE__ */ __name((output, context) => {
1664
1647
  return (0, import_smithy_client.take)(output, {
1665
- StreamDescription: (_) => de_StreamDescription(_, context)
1648
+ StreamDescription: /* @__PURE__ */ __name((_) => de_StreamDescription(_, context), "StreamDescription")
1666
1649
  });
1667
1650
  }, "de_DescribeStreamOutput");
1668
1651
  var de_DescribeStreamSummaryOutput = /* @__PURE__ */ __name((output, context) => {
1669
1652
  return (0, import_smithy_client.take)(output, {
1670
- StreamDescriptionSummary: (_) => de_StreamDescriptionSummary(_, context)
1653
+ StreamDescriptionSummary: /* @__PURE__ */ __name((_) => de_StreamDescriptionSummary(_, context), "StreamDescriptionSummary")
1671
1654
  });
1672
1655
  }, "de_DescribeStreamSummaryOutput");
1673
1656
  var de_GetRecordsOutput = /* @__PURE__ */ __name((output, context) => {
@@ -1675,12 +1658,12 @@ var de_GetRecordsOutput = /* @__PURE__ */ __name((output, context) => {
1675
1658
  ChildShards: import_smithy_client._json,
1676
1659
  MillisBehindLatest: import_smithy_client.expectLong,
1677
1660
  NextShardIterator: import_smithy_client.expectString,
1678
- Records: (_) => de_RecordList(_, context)
1661
+ Records: /* @__PURE__ */ __name((_) => de_RecordList(_, context), "Records")
1679
1662
  });
1680
1663
  }, "de_GetRecordsOutput");
1681
1664
  var de_ListStreamConsumersOutput = /* @__PURE__ */ __name((output, context) => {
1682
1665
  return (0, import_smithy_client.take)(output, {
1683
- Consumers: (_) => de_ConsumerList(_, context),
1666
+ Consumers: /* @__PURE__ */ __name((_) => de_ConsumerList(_, context), "Consumers"),
1684
1667
  NextToken: import_smithy_client.expectString
1685
1668
  });
1686
1669
  }, "de_ListStreamConsumersOutput");
@@ -1689,12 +1672,12 @@ var de_ListStreamsOutput = /* @__PURE__ */ __name((output, context) => {
1689
1672
  HasMoreStreams: import_smithy_client.expectBoolean,
1690
1673
  NextToken: import_smithy_client.expectString,
1691
1674
  StreamNames: import_smithy_client._json,
1692
- StreamSummaries: (_) => de_StreamSummaryList(_, context)
1675
+ StreamSummaries: /* @__PURE__ */ __name((_) => de_StreamSummaryList(_, context), "StreamSummaries")
1693
1676
  });
1694
1677
  }, "de_ListStreamsOutput");
1695
1678
  var de__Record = /* @__PURE__ */ __name((output, context) => {
1696
1679
  return (0, import_smithy_client.take)(output, {
1697
- ApproximateArrivalTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1680
+ ApproximateArrivalTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ApproximateArrivalTimestamp"),
1698
1681
  Data: context.base64Decoder,
1699
1682
  EncryptionType: import_smithy_client.expectString,
1700
1683
  PartitionKey: import_smithy_client.expectString,
@@ -1709,7 +1692,7 @@ var de_RecordList = /* @__PURE__ */ __name((output, context) => {
1709
1692
  }, "de_RecordList");
1710
1693
  var de_RegisterStreamConsumerOutput = /* @__PURE__ */ __name((output, context) => {
1711
1694
  return (0, import_smithy_client.take)(output, {
1712
- Consumer: (_) => de_Consumer(_, context)
1695
+ Consumer: /* @__PURE__ */ __name((_) => de_Consumer(_, context), "Consumer")
1713
1696
  });
1714
1697
  }, "de_RegisterStreamConsumerOutput");
1715
1698
  var de_StreamDescription = /* @__PURE__ */ __name((output, context) => {
@@ -1721,7 +1704,7 @@ var de_StreamDescription = /* @__PURE__ */ __name((output, context) => {
1721
1704
  RetentionPeriodHours: import_smithy_client.expectInt32,
1722
1705
  Shards: import_smithy_client._json,
1723
1706
  StreamARN: import_smithy_client.expectString,
1724
- StreamCreationTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1707
+ StreamCreationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StreamCreationTimestamp"),
1725
1708
  StreamModeDetails: import_smithy_client._json,
1726
1709
  StreamName: import_smithy_client.expectString,
1727
1710
  StreamStatus: import_smithy_client.expectString
@@ -1736,7 +1719,7 @@ var de_StreamDescriptionSummary = /* @__PURE__ */ __name((output, context) => {
1736
1719
  OpenShardCount: import_smithy_client.expectInt32,
1737
1720
  RetentionPeriodHours: import_smithy_client.expectInt32,
1738
1721
  StreamARN: import_smithy_client.expectString,
1739
- StreamCreationTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1722
+ StreamCreationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StreamCreationTimestamp"),
1740
1723
  StreamModeDetails: import_smithy_client._json,
1741
1724
  StreamName: import_smithy_client.expectString,
1742
1725
  StreamStatus: import_smithy_client.expectString
@@ -1745,7 +1728,7 @@ var de_StreamDescriptionSummary = /* @__PURE__ */ __name((output, context) => {
1745
1728
  var de_StreamSummary = /* @__PURE__ */ __name((output, context) => {
1746
1729
  return (0, import_smithy_client.take)(output, {
1747
1730
  StreamARN: import_smithy_client.expectString,
1748
- StreamCreationTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1731
+ StreamCreationTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StreamCreationTimestamp"),
1749
1732
  StreamModeDetails: import_smithy_client._json,
1750
1733
  StreamName: import_smithy_client.expectString,
1751
1734
  StreamStatus: import_smithy_client.expectString
@@ -1762,7 +1745,7 @@ var de_SubscribeToShardEvent = /* @__PURE__ */ __name((output, context) => {
1762
1745
  ChildShards: import_smithy_client._json,
1763
1746
  ContinuationSequenceNumber: import_smithy_client.expectString,
1764
1747
  MillisBehindLatest: import_smithy_client.expectLong,
1765
- Records: (_) => de_RecordList(_, context)
1748
+ Records: /* @__PURE__ */ __name((_) => de_RecordList(_, context), "Records")
1766
1749
  });
1767
1750
  }, "de_SubscribeToShardEvent");
1768
1751
  var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kinesis",
3
3
  "description": "AWS SDK for JavaScript Kinesis Client for Node.js, Browser and React Native",
4
- "version": "3.758.0",
4
+ "version": "3.772.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-kinesis",
@@ -23,10 +23,10 @@
23
23
  "@aws-crypto/sha256-browser": "5.2.0",
24
24
  "@aws-crypto/sha256-js": "5.2.0",
25
25
  "@aws-sdk/core": "3.758.0",
26
- "@aws-sdk/credential-provider-node": "3.758.0",
26
+ "@aws-sdk/credential-provider-node": "3.772.0",
27
27
  "@aws-sdk/middleware-host-header": "3.734.0",
28
28
  "@aws-sdk/middleware-logger": "3.734.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.734.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.772.0",
30
30
  "@aws-sdk/middleware-user-agent": "3.758.0",
31
31
  "@aws-sdk/region-config-resolver": "3.734.0",
32
32
  "@aws-sdk/types": "3.734.0",