@aws-sdk/client-kinesis 3.37.0 → 3.41.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 (60) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/commands/index.js +31 -0
  3. package/dist-cjs/endpoints.js +137 -21
  4. package/dist-cjs/index.js +5 -34
  5. package/dist-cjs/pagination/index.js +5 -0
  6. package/dist-cjs/runtimeConfig.browser.js +6 -3
  7. package/dist-cjs/runtimeConfig.js +5 -3
  8. package/dist-cjs/waiters/index.js +5 -0
  9. package/dist-es/commands/index.js +28 -0
  10. package/dist-es/endpoints.js +137 -21
  11. package/dist-es/index.js +5 -34
  12. package/dist-es/pagination/index.js +2 -0
  13. package/dist-es/runtimeConfig.browser.js +3 -2
  14. package/dist-es/runtimeConfig.js +3 -3
  15. package/dist-es/waiters/index.js +2 -0
  16. package/dist-types/KinesisClient.d.ts +8 -0
  17. package/dist-types/commands/AddTagsToStreamCommand.d.ts +1 -1
  18. package/dist-types/commands/CreateStreamCommand.d.ts +1 -1
  19. package/dist-types/commands/DecreaseStreamRetentionPeriodCommand.d.ts +1 -1
  20. package/dist-types/commands/DeleteStreamCommand.d.ts +1 -1
  21. package/dist-types/commands/DeregisterStreamConsumerCommand.d.ts +1 -1
  22. package/dist-types/commands/DescribeLimitsCommand.d.ts +1 -1
  23. package/dist-types/commands/DescribeStreamCommand.d.ts +1 -1
  24. package/dist-types/commands/DescribeStreamConsumerCommand.d.ts +1 -1
  25. package/dist-types/commands/DescribeStreamSummaryCommand.d.ts +1 -1
  26. package/dist-types/commands/DisableEnhancedMonitoringCommand.d.ts +1 -1
  27. package/dist-types/commands/EnableEnhancedMonitoringCommand.d.ts +1 -1
  28. package/dist-types/commands/GetRecordsCommand.d.ts +1 -1
  29. package/dist-types/commands/GetShardIteratorCommand.d.ts +1 -1
  30. package/dist-types/commands/IncreaseStreamRetentionPeriodCommand.d.ts +1 -1
  31. package/dist-types/commands/ListShardsCommand.d.ts +1 -1
  32. package/dist-types/commands/ListStreamConsumersCommand.d.ts +1 -1
  33. package/dist-types/commands/ListStreamsCommand.d.ts +1 -1
  34. package/dist-types/commands/ListTagsForStreamCommand.d.ts +1 -1
  35. package/dist-types/commands/MergeShardsCommand.d.ts +1 -1
  36. package/dist-types/commands/PutRecordCommand.d.ts +1 -1
  37. package/dist-types/commands/PutRecordsCommand.d.ts +1 -1
  38. package/dist-types/commands/RegisterStreamConsumerCommand.d.ts +1 -1
  39. package/dist-types/commands/RemoveTagsFromStreamCommand.d.ts +1 -1
  40. package/dist-types/commands/SplitShardCommand.d.ts +1 -1
  41. package/dist-types/commands/StartStreamEncryptionCommand.d.ts +1 -1
  42. package/dist-types/commands/StopStreamEncryptionCommand.d.ts +1 -1
  43. package/dist-types/commands/SubscribeToShardCommand.d.ts +1 -1
  44. package/dist-types/commands/UpdateShardCountCommand.d.ts +1 -1
  45. package/dist-types/commands/index.d.ts +28 -0
  46. package/dist-types/index.d.ts +5 -34
  47. package/dist-types/pagination/index.d.ts +2 -0
  48. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  49. package/dist-types/runtimeConfig.d.ts +2 -0
  50. package/dist-types/runtimeConfig.native.d.ts +2 -0
  51. package/dist-types/ts3.4/KinesisClient.d.ts +4 -0
  52. package/dist-types/ts3.4/commands/index.d.ts +28 -0
  53. package/dist-types/ts3.4/index.d.ts +5 -34
  54. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  55. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  56. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  57. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  58. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  59. package/dist-types/waiters/index.d.ts +2 -0
  60. package/package.json +30 -30
package/CHANGELOG.md CHANGED
@@ -3,6 +3,48 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
18
+
19
+
20
+ ### Features
21
+
22
+ * **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
23
+
24
+
25
+
26
+
27
+
28
+ # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
29
+
30
+ **Note:** Version bump only for package @aws-sdk/client-kinesis
31
+
32
+
33
+
34
+
35
+
36
+ # [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
37
+
38
+
39
+ ### Features
40
+
41
+ * **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
42
+ * **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
43
+
44
+
45
+
46
+
47
+
6
48
  # [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
7
49
 
8
50
 
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./AddTagsToStreamCommand"), exports);
5
+ tslib_1.__exportStar(require("./CreateStreamCommand"), exports);
6
+ tslib_1.__exportStar(require("./DecreaseStreamRetentionPeriodCommand"), exports);
7
+ tslib_1.__exportStar(require("./DeleteStreamCommand"), exports);
8
+ tslib_1.__exportStar(require("./DeregisterStreamConsumerCommand"), exports);
9
+ tslib_1.__exportStar(require("./DescribeLimitsCommand"), exports);
10
+ tslib_1.__exportStar(require("./DescribeStreamCommand"), exports);
11
+ tslib_1.__exportStar(require("./DescribeStreamConsumerCommand"), exports);
12
+ tslib_1.__exportStar(require("./DescribeStreamSummaryCommand"), exports);
13
+ tslib_1.__exportStar(require("./DisableEnhancedMonitoringCommand"), exports);
14
+ tslib_1.__exportStar(require("./EnableEnhancedMonitoringCommand"), exports);
15
+ tslib_1.__exportStar(require("./GetRecordsCommand"), exports);
16
+ tslib_1.__exportStar(require("./GetShardIteratorCommand"), exports);
17
+ tslib_1.__exportStar(require("./IncreaseStreamRetentionPeriodCommand"), exports);
18
+ tslib_1.__exportStar(require("./ListShardsCommand"), exports);
19
+ tslib_1.__exportStar(require("./ListStreamConsumersCommand"), exports);
20
+ tslib_1.__exportStar(require("./ListStreamsCommand"), exports);
21
+ tslib_1.__exportStar(require("./ListTagsForStreamCommand"), exports);
22
+ tslib_1.__exportStar(require("./MergeShardsCommand"), exports);
23
+ tslib_1.__exportStar(require("./PutRecordCommand"), exports);
24
+ tslib_1.__exportStar(require("./PutRecordsCommand"), exports);
25
+ tslib_1.__exportStar(require("./RegisterStreamConsumerCommand"), exports);
26
+ tslib_1.__exportStar(require("./RemoveTagsFromStreamCommand"), exports);
27
+ tslib_1.__exportStar(require("./SplitShardCommand"), exports);
28
+ tslib_1.__exportStar(require("./StartStreamEncryptionCommand"), exports);
29
+ tslib_1.__exportStar(require("./StopStreamEncryptionCommand"), exports);
30
+ tslib_1.__exportStar(require("./SubscribeToShardCommand"), exports);
31
+ tslib_1.__exportStar(require("./UpdateShardCountCommand"), exports);
@@ -3,30 +3,72 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultRegionInfoProvider = void 0;
4
4
  const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
- "fips-us-east-1": {
7
- hostname: "kinesis-fips.us-east-1.amazonaws.com",
8
- signingRegion: "us-east-1",
9
- },
10
- "fips-us-east-2": {
11
- hostname: "kinesis-fips.us-east-2.amazonaws.com",
12
- signingRegion: "us-east-2",
13
- },
14
- "fips-us-west-1": {
15
- hostname: "kinesis-fips.us-west-1.amazonaws.com",
16
- signingRegion: "us-west-1",
6
+ "us-east-1": {
7
+ variants: [
8
+ {
9
+ hostname: "kinesis.us-east-1.amazonaws.com",
10
+ tags: [],
11
+ },
12
+ {
13
+ hostname: "kinesis-fips.us-east-1.amazonaws.com",
14
+ tags: ["fips"],
15
+ },
16
+ ],
17
17
  },
18
- "fips-us-west-2": {
19
- hostname: "kinesis-fips.us-west-2.amazonaws.com",
20
- signingRegion: "us-west-2",
18
+ "us-east-2": {
19
+ variants: [
20
+ {
21
+ hostname: "kinesis.us-east-2.amazonaws.com",
22
+ tags: [],
23
+ },
24
+ {
25
+ hostname: "kinesis-fips.us-east-2.amazonaws.com",
26
+ tags: ["fips"],
27
+ },
28
+ ],
21
29
  },
22
30
  "us-gov-east-1": {
23
- hostname: "kinesis.us-gov-east-1.amazonaws.com",
31
+ variants: [
32
+ {
33
+ hostname: "kinesis.us-gov-east-1.amazonaws.com",
34
+ tags: [],
35
+ },
36
+ ],
24
37
  signingRegion: "us-gov-east-1",
25
38
  },
26
39
  "us-gov-west-1": {
27
- hostname: "kinesis.us-gov-west-1.amazonaws.com",
40
+ variants: [
41
+ {
42
+ hostname: "kinesis.us-gov-west-1.amazonaws.com",
43
+ tags: [],
44
+ },
45
+ ],
28
46
  signingRegion: "us-gov-west-1",
29
47
  },
48
+ "us-west-1": {
49
+ variants: [
50
+ {
51
+ hostname: "kinesis.us-west-1.amazonaws.com",
52
+ tags: [],
53
+ },
54
+ {
55
+ hostname: "kinesis-fips.us-west-1.amazonaws.com",
56
+ tags: ["fips"],
57
+ },
58
+ ],
59
+ },
60
+ "us-west-2": {
61
+ variants: [
62
+ {
63
+ hostname: "kinesis.us-west-2.amazonaws.com",
64
+ tags: [],
65
+ },
66
+ {
67
+ hostname: "kinesis-fips.us-west-2.amazonaws.com",
68
+ tags: ["fips"],
69
+ },
70
+ ],
71
+ },
30
72
  };
31
73
  const partitionHash = {
32
74
  aws: {
@@ -57,23 +99,97 @@ const partitionHash = {
57
99
  "us-west-1",
58
100
  "us-west-2",
59
101
  ],
60
- hostname: "kinesis.{region}.amazonaws.com",
102
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
103
+ variants: [
104
+ {
105
+ hostname: "kinesis.{region}.amazonaws.com",
106
+ tags: [],
107
+ },
108
+ {
109
+ hostname: "kinesis-fips.{region}.amazonaws.com",
110
+ tags: ["fips"],
111
+ },
112
+ {
113
+ hostname: "kinesis-fips.{region}.api.aws",
114
+ tags: ["dualstack", "fips"],
115
+ },
116
+ {
117
+ hostname: "kinesis.{region}.api.aws",
118
+ tags: ["dualstack"],
119
+ },
120
+ ],
61
121
  },
62
122
  "aws-cn": {
63
123
  regions: ["cn-north-1", "cn-northwest-1"],
64
- hostname: "kinesis.{region}.amazonaws.com.cn",
124
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
125
+ variants: [
126
+ {
127
+ hostname: "kinesis.{region}.amazonaws.com.cn",
128
+ tags: [],
129
+ },
130
+ {
131
+ hostname: "kinesis-fips.{region}.amazonaws.com.cn",
132
+ tags: ["fips"],
133
+ },
134
+ {
135
+ hostname: "kinesis-fips.{region}.api.amazonwebservices.com.cn",
136
+ tags: ["dualstack", "fips"],
137
+ },
138
+ {
139
+ hostname: "kinesis.{region}.api.amazonwebservices.com.cn",
140
+ tags: ["dualstack"],
141
+ },
142
+ ],
65
143
  },
66
144
  "aws-iso": {
67
145
  regions: ["us-iso-east-1", "us-iso-west-1"],
68
- hostname: "kinesis.{region}.c2s.ic.gov",
146
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
147
+ variants: [
148
+ {
149
+ hostname: "kinesis.{region}.c2s.ic.gov",
150
+ tags: [],
151
+ },
152
+ {
153
+ hostname: "kinesis-fips.{region}.c2s.ic.gov",
154
+ tags: ["fips"],
155
+ },
156
+ ],
69
157
  },
70
158
  "aws-iso-b": {
71
159
  regions: ["us-isob-east-1"],
72
- hostname: "kinesis.{region}.sc2s.sgov.gov",
160
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
161
+ variants: [
162
+ {
163
+ hostname: "kinesis.{region}.sc2s.sgov.gov",
164
+ tags: [],
165
+ },
166
+ {
167
+ hostname: "kinesis-fips.{region}.sc2s.sgov.gov",
168
+ tags: ["fips"],
169
+ },
170
+ ],
73
171
  },
74
172
  "aws-us-gov": {
75
173
  regions: ["us-gov-east-1", "us-gov-west-1"],
76
- hostname: "kinesis.{region}.amazonaws.com",
174
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
175
+ variants: [
176
+ {
177
+ hostname: "kinesis.{region}.amazonaws.com",
178
+ tags: [],
179
+ },
180
+ {
181
+ hostname: "kinesis-fips.{region}.amazonaws.com",
182
+ tags: ["fips"],
183
+ },
184
+ {
185
+ hostname: "kinesis-fips.{region}.api.aws",
186
+ tags: ["dualstack", "fips"],
187
+ },
188
+ {
189
+ hostname: "kinesis.{region}.api.aws",
190
+ tags: ["dualstack"],
191
+ },
192
+ ],
77
193
  },
78
194
  };
79
195
  const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
package/dist-cjs/index.js CHANGED
@@ -1,38 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./KinesisClient"), exports);
5
4
  tslib_1.__exportStar(require("./Kinesis"), exports);
6
- tslib_1.__exportStar(require("./commands/AddTagsToStreamCommand"), exports);
7
- tslib_1.__exportStar(require("./commands/CreateStreamCommand"), exports);
8
- tslib_1.__exportStar(require("./commands/DecreaseStreamRetentionPeriodCommand"), exports);
9
- tslib_1.__exportStar(require("./commands/DeleteStreamCommand"), exports);
10
- tslib_1.__exportStar(require("./commands/DeregisterStreamConsumerCommand"), exports);
11
- tslib_1.__exportStar(require("./commands/DescribeLimitsCommand"), exports);
12
- tslib_1.__exportStar(require("./commands/DescribeStreamCommand"), exports);
13
- tslib_1.__exportStar(require("./waiters/waitForStreamExists"), exports);
14
- tslib_1.__exportStar(require("./waiters/waitForStreamNotExists"), exports);
15
- tslib_1.__exportStar(require("./commands/DescribeStreamConsumerCommand"), exports);
16
- tslib_1.__exportStar(require("./commands/DescribeStreamSummaryCommand"), exports);
17
- tslib_1.__exportStar(require("./commands/DisableEnhancedMonitoringCommand"), exports);
18
- tslib_1.__exportStar(require("./commands/EnableEnhancedMonitoringCommand"), exports);
19
- tslib_1.__exportStar(require("./commands/GetRecordsCommand"), exports);
20
- tslib_1.__exportStar(require("./commands/GetShardIteratorCommand"), exports);
21
- tslib_1.__exportStar(require("./commands/IncreaseStreamRetentionPeriodCommand"), exports);
22
- tslib_1.__exportStar(require("./commands/ListShardsCommand"), exports);
23
- tslib_1.__exportStar(require("./commands/ListStreamConsumersCommand"), exports);
24
- tslib_1.__exportStar(require("./pagination/ListStreamConsumersPaginator"), exports);
25
- tslib_1.__exportStar(require("./commands/ListStreamsCommand"), exports);
26
- tslib_1.__exportStar(require("./commands/ListTagsForStreamCommand"), exports);
27
- tslib_1.__exportStar(require("./commands/MergeShardsCommand"), exports);
28
- tslib_1.__exportStar(require("./commands/PutRecordCommand"), exports);
29
- tslib_1.__exportStar(require("./commands/PutRecordsCommand"), exports);
30
- tslib_1.__exportStar(require("./commands/RegisterStreamConsumerCommand"), exports);
31
- tslib_1.__exportStar(require("./commands/RemoveTagsFromStreamCommand"), exports);
32
- tslib_1.__exportStar(require("./commands/SplitShardCommand"), exports);
33
- tslib_1.__exportStar(require("./commands/StartStreamEncryptionCommand"), exports);
34
- tslib_1.__exportStar(require("./commands/StopStreamEncryptionCommand"), exports);
35
- tslib_1.__exportStar(require("./commands/SubscribeToShardCommand"), exports);
36
- tslib_1.__exportStar(require("./commands/UpdateShardCountCommand"), exports);
37
- tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
38
- tslib_1.__exportStar(require("./models/index"), exports);
5
+ tslib_1.__exportStar(require("./KinesisClient"), exports);
6
+ tslib_1.__exportStar(require("./commands"), exports);
7
+ tslib_1.__exportStar(require("./models"), exports);
8
+ tslib_1.__exportStar(require("./pagination"), exports);
9
+ tslib_1.__exportStar(require("./waiters"), exports);
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListStreamConsumersPaginator"), exports);
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
7
8
  const eventstream_serde_browser_1 = require("@aws-sdk/eventstream-serde-browser");
8
9
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
10
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -14,7 +15,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
15
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
16
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
17
  const getRuntimeConfig = (config) => {
17
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
18
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
18
19
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
20
  return {
20
21
  ...clientSharedValues,
@@ -32,8 +33,10 @@ const getRuntimeConfig = (config) => {
32
33
  retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
33
34
  sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : sha256_browser_1.Sha256,
34
35
  streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : fetch_http_handler_1.streamCollector,
35
- utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.fromUtf8,
36
- utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.toUtf8,
36
+ useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
37
+ useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
38
+ utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.fromUtf8,
39
+ utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : util_utf8_browser_1.toUtf8,
37
40
  };
38
41
  };
39
42
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -18,7 +18,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
18
18
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
19
19
  const smithy_client_1 = require("@aws-sdk/smithy-client");
20
20
  const getRuntimeConfig = (config) => {
21
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
21
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
22
22
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
23
23
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
24
24
  return {
@@ -37,8 +37,10 @@ const getRuntimeConfig = (config) => {
37
37
  retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
38
38
  sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : hash_node_1.Hash.bind(null, "sha256"),
39
39
  streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : node_http_handler_1.streamCollector,
40
- utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.fromUtf8,
41
- utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.toUtf8,
40
+ useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
41
+ useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
42
+ utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.fromUtf8,
43
+ utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : util_utf8_node_1.toUtf8,
42
44
  };
43
45
  };
44
46
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./waitForStreamExists"), exports);
5
+ tslib_1.__exportStar(require("./waitForStreamNotExists"), exports);
@@ -0,0 +1,28 @@
1
+ export * from "./AddTagsToStreamCommand";
2
+ export * from "./CreateStreamCommand";
3
+ export * from "./DecreaseStreamRetentionPeriodCommand";
4
+ export * from "./DeleteStreamCommand";
5
+ export * from "./DeregisterStreamConsumerCommand";
6
+ export * from "./DescribeLimitsCommand";
7
+ export * from "./DescribeStreamCommand";
8
+ export * from "./DescribeStreamConsumerCommand";
9
+ export * from "./DescribeStreamSummaryCommand";
10
+ export * from "./DisableEnhancedMonitoringCommand";
11
+ export * from "./EnableEnhancedMonitoringCommand";
12
+ export * from "./GetRecordsCommand";
13
+ export * from "./GetShardIteratorCommand";
14
+ export * from "./IncreaseStreamRetentionPeriodCommand";
15
+ export * from "./ListShardsCommand";
16
+ export * from "./ListStreamConsumersCommand";
17
+ export * from "./ListStreamsCommand";
18
+ export * from "./ListTagsForStreamCommand";
19
+ export * from "./MergeShardsCommand";
20
+ export * from "./PutRecordCommand";
21
+ export * from "./PutRecordsCommand";
22
+ export * from "./RegisterStreamConsumerCommand";
23
+ export * from "./RemoveTagsFromStreamCommand";
24
+ export * from "./SplitShardCommand";
25
+ export * from "./StartStreamEncryptionCommand";
26
+ export * from "./StopStreamEncryptionCommand";
27
+ export * from "./SubscribeToShardCommand";
28
+ export * from "./UpdateShardCountCommand";
@@ -1,30 +1,72 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
- "fips-us-east-1": {
5
- hostname: "kinesis-fips.us-east-1.amazonaws.com",
6
- signingRegion: "us-east-1",
7
- },
8
- "fips-us-east-2": {
9
- hostname: "kinesis-fips.us-east-2.amazonaws.com",
10
- signingRegion: "us-east-2",
11
- },
12
- "fips-us-west-1": {
13
- hostname: "kinesis-fips.us-west-1.amazonaws.com",
14
- signingRegion: "us-west-1",
4
+ "us-east-1": {
5
+ variants: [
6
+ {
7
+ hostname: "kinesis.us-east-1.amazonaws.com",
8
+ tags: [],
9
+ },
10
+ {
11
+ hostname: "kinesis-fips.us-east-1.amazonaws.com",
12
+ tags: ["fips"],
13
+ },
14
+ ],
15
15
  },
16
- "fips-us-west-2": {
17
- hostname: "kinesis-fips.us-west-2.amazonaws.com",
18
- signingRegion: "us-west-2",
16
+ "us-east-2": {
17
+ variants: [
18
+ {
19
+ hostname: "kinesis.us-east-2.amazonaws.com",
20
+ tags: [],
21
+ },
22
+ {
23
+ hostname: "kinesis-fips.us-east-2.amazonaws.com",
24
+ tags: ["fips"],
25
+ },
26
+ ],
19
27
  },
20
28
  "us-gov-east-1": {
21
- hostname: "kinesis.us-gov-east-1.amazonaws.com",
29
+ variants: [
30
+ {
31
+ hostname: "kinesis.us-gov-east-1.amazonaws.com",
32
+ tags: [],
33
+ },
34
+ ],
22
35
  signingRegion: "us-gov-east-1",
23
36
  },
24
37
  "us-gov-west-1": {
25
- hostname: "kinesis.us-gov-west-1.amazonaws.com",
38
+ variants: [
39
+ {
40
+ hostname: "kinesis.us-gov-west-1.amazonaws.com",
41
+ tags: [],
42
+ },
43
+ ],
26
44
  signingRegion: "us-gov-west-1",
27
45
  },
46
+ "us-west-1": {
47
+ variants: [
48
+ {
49
+ hostname: "kinesis.us-west-1.amazonaws.com",
50
+ tags: [],
51
+ },
52
+ {
53
+ hostname: "kinesis-fips.us-west-1.amazonaws.com",
54
+ tags: ["fips"],
55
+ },
56
+ ],
57
+ },
58
+ "us-west-2": {
59
+ variants: [
60
+ {
61
+ hostname: "kinesis.us-west-2.amazonaws.com",
62
+ tags: [],
63
+ },
64
+ {
65
+ hostname: "kinesis-fips.us-west-2.amazonaws.com",
66
+ tags: ["fips"],
67
+ },
68
+ ],
69
+ },
28
70
  };
29
71
  var partitionHash = {
30
72
  aws: {
@@ -55,23 +97,97 @@ var partitionHash = {
55
97
  "us-west-1",
56
98
  "us-west-2",
57
99
  ],
58
- hostname: "kinesis.{region}.amazonaws.com",
100
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
101
+ variants: [
102
+ {
103
+ hostname: "kinesis.{region}.amazonaws.com",
104
+ tags: [],
105
+ },
106
+ {
107
+ hostname: "kinesis-fips.{region}.amazonaws.com",
108
+ tags: ["fips"],
109
+ },
110
+ {
111
+ hostname: "kinesis-fips.{region}.api.aws",
112
+ tags: ["dualstack", "fips"],
113
+ },
114
+ {
115
+ hostname: "kinesis.{region}.api.aws",
116
+ tags: ["dualstack"],
117
+ },
118
+ ],
59
119
  },
60
120
  "aws-cn": {
61
121
  regions: ["cn-north-1", "cn-northwest-1"],
62
- hostname: "kinesis.{region}.amazonaws.com.cn",
122
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
123
+ variants: [
124
+ {
125
+ hostname: "kinesis.{region}.amazonaws.com.cn",
126
+ tags: [],
127
+ },
128
+ {
129
+ hostname: "kinesis-fips.{region}.amazonaws.com.cn",
130
+ tags: ["fips"],
131
+ },
132
+ {
133
+ hostname: "kinesis-fips.{region}.api.amazonwebservices.com.cn",
134
+ tags: ["dualstack", "fips"],
135
+ },
136
+ {
137
+ hostname: "kinesis.{region}.api.amazonwebservices.com.cn",
138
+ tags: ["dualstack"],
139
+ },
140
+ ],
63
141
  },
64
142
  "aws-iso": {
65
143
  regions: ["us-iso-east-1", "us-iso-west-1"],
66
- hostname: "kinesis.{region}.c2s.ic.gov",
144
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
145
+ variants: [
146
+ {
147
+ hostname: "kinesis.{region}.c2s.ic.gov",
148
+ tags: [],
149
+ },
150
+ {
151
+ hostname: "kinesis-fips.{region}.c2s.ic.gov",
152
+ tags: ["fips"],
153
+ },
154
+ ],
67
155
  },
68
156
  "aws-iso-b": {
69
157
  regions: ["us-isob-east-1"],
70
- hostname: "kinesis.{region}.sc2s.sgov.gov",
158
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
159
+ variants: [
160
+ {
161
+ hostname: "kinesis.{region}.sc2s.sgov.gov",
162
+ tags: [],
163
+ },
164
+ {
165
+ hostname: "kinesis-fips.{region}.sc2s.sgov.gov",
166
+ tags: ["fips"],
167
+ },
168
+ ],
71
169
  },
72
170
  "aws-us-gov": {
73
171
  regions: ["us-gov-east-1", "us-gov-west-1"],
74
- hostname: "kinesis.{region}.amazonaws.com",
172
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
173
+ variants: [
174
+ {
175
+ hostname: "kinesis.{region}.amazonaws.com",
176
+ tags: [],
177
+ },
178
+ {
179
+ hostname: "kinesis-fips.{region}.amazonaws.com",
180
+ tags: ["fips"],
181
+ },
182
+ {
183
+ hostname: "kinesis-fips.{region}.api.aws",
184
+ tags: ["dualstack", "fips"],
185
+ },
186
+ {
187
+ hostname: "kinesis.{region}.api.aws",
188
+ tags: ["dualstack"],
189
+ },
190
+ ],
75
191
  },
76
192
  };
77
193
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
package/dist-es/index.js CHANGED
@@ -1,35 +1,6 @@
1
- export * from "./KinesisClient";
2
1
  export * from "./Kinesis";
3
- export * from "./commands/AddTagsToStreamCommand";
4
- export * from "./commands/CreateStreamCommand";
5
- export * from "./commands/DecreaseStreamRetentionPeriodCommand";
6
- export * from "./commands/DeleteStreamCommand";
7
- export * from "./commands/DeregisterStreamConsumerCommand";
8
- export * from "./commands/DescribeLimitsCommand";
9
- export * from "./commands/DescribeStreamCommand";
10
- export * from "./waiters/waitForStreamExists";
11
- export * from "./waiters/waitForStreamNotExists";
12
- export * from "./commands/DescribeStreamConsumerCommand";
13
- export * from "./commands/DescribeStreamSummaryCommand";
14
- export * from "./commands/DisableEnhancedMonitoringCommand";
15
- export * from "./commands/EnableEnhancedMonitoringCommand";
16
- export * from "./commands/GetRecordsCommand";
17
- export * from "./commands/GetShardIteratorCommand";
18
- export * from "./commands/IncreaseStreamRetentionPeriodCommand";
19
- export * from "./commands/ListShardsCommand";
20
- export * from "./commands/ListStreamConsumersCommand";
21
- export * from "./pagination/ListStreamConsumersPaginator";
22
- export * from "./commands/ListStreamsCommand";
23
- export * from "./commands/ListTagsForStreamCommand";
24
- export * from "./commands/MergeShardsCommand";
25
- export * from "./commands/PutRecordCommand";
26
- export * from "./commands/PutRecordsCommand";
27
- export * from "./commands/RegisterStreamConsumerCommand";
28
- export * from "./commands/RemoveTagsFromStreamCommand";
29
- export * from "./commands/SplitShardCommand";
30
- export * from "./commands/StartStreamEncryptionCommand";
31
- export * from "./commands/StopStreamEncryptionCommand";
32
- export * from "./commands/SubscribeToShardCommand";
33
- export * from "./commands/UpdateShardCountCommand";
34
- export * from "./pagination/Interfaces";
35
- export * from "./models/index";
2
+ export * from "./KinesisClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
6
+ export * from "./waiters";
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListStreamConsumersPaginator";