@aws-sdk/client-kinesis 3.1075.0 → 3.1076.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
@@ -1,22 +1,58 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
10
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
11
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
12
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
13
- const { resolveHttpAuthSchemeConfig, defaultKinesisHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
14
- const { getRuntimeConfig } = require("./runtimeConfig");
15
- const { AddTagsToStream$, CreateStream$, DecreaseStreamRetentionPeriod$, DeleteResourcePolicy$, DeleteStream$, DeregisterStreamConsumer$, DescribeAccountSettings$, DescribeLimits$, DescribeStream$, DescribeStreamConsumer$, DescribeStreamSummary$, DisableEnhancedMonitoring$, EnableEnhancedMonitoring$, GetRecords$, GetResourcePolicy$, GetShardIterator$, IncreaseStreamRetentionPeriod$, ListShards$, ListStreamConsumers$, ListStreams$, ListTagsForResource$, ListTagsForStream$, MergeShards$, PutRecord$, PutRecords$, PutResourcePolicy$, RegisterStreamConsumer$, RemoveTagsFromStream$, SplitShard$, StartStreamEncryption$, StopStreamEncryption$, SubscribeToShard$, TagResource$, UntagResource$, UpdateAccountSettings$, UpdateMaxRecordSize$, UpdateShardCount$, UpdateStreamMode$, UpdateStreamWarmThroughput$ } = require("./schemas/schemas_0");
16
- __exportStar(require("./schemas/schemas_0"), exports);
17
- __exportStar(require("./models/errors"), exports);
18
- const { KinesisServiceException } = require("./models/KinesisServiceException");
19
- exports.KinesisServiceException = KinesisServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { eventStreamSerdeProvider, resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
9
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
12
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
13
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
15
+ const { streamCollector, NodeHttp2Handler } = require("@smithy/node-http-handler");
16
+ const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
17
+
18
+ const defaultKinesisHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "kinesis",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultKinesisHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
20
56
 
21
57
  const resolveClientEndpointParameters = (options) => {
22
58
  return Object.assign(options, {
@@ -32,6 +68,1425 @@ const commonParams = {
32
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
33
69
  };
34
70
 
71
+ var version = "3.1075.0";
72
+ var packageInfo = {
73
+ version: version};
74
+
75
+ const U = "ref";
76
+ const a = -1, b = false, c = true, d = "isSet", e = "PartitionResult", f = "stringEquals", g = "substring", h = "coalesce", i = "", j = "-", k = "aws.parseArn", l = (n) => "arn_ssa_" + n + i, m = "isValidHostLabel", n = "getAttr", o = "accountId", p = "region", q = "service", s = "kinesis", t = "resourceId[0]", u = (n) => "arnType_ssa_" + n + i, v = "stream", w = "partition", x = "booleanEquals", y = (n) => "https://{arn_ssa_" + n + "#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", z = (n) => "https://{arn_ssa_" + n + "#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", A = (n) => "https://{arn_ssa_" + n + "#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", B = (n) => "https://{arn_ssa_" + n + "#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}", C = (n) => "Partition: {arn_ssa_" + n + "#partition} from ARN doesn't match with partition name: {PartitionResult#name}.", D = (n) => "Invalid ARN: Kinesis ARNs don't support `{arnType_ssa_" + n + "}` arn types.", E = (n) => "Invalid ARN: The ARN was not for the Kinesis service, found: {arn_ssa_" + n + "#service}.", F = { "fn": n, "argv": [{ [U]: e }, "name"] }, G = { [U]: "StreamId" }, H = { [U]: "Endpoint" }, I = { [U]: "arn_ssa_3" }, J = { [U]: "arnType_ssa_1" }, K = { [U]: "arn_ssa_2" }, L = { [U]: "arnType_ssa_3" }, M = { [U]: "arn_ssa_1" }, N = { [U]: "arnType_ssa_2" }, O = { [U]: e }, P = {}, Q = [{ [U]: "Region" }], R = [{ [U]: "StreamARN" }], S = [{ [U]: "ConsumerARN" }], T = [{ [U]: "ResourceARN" }];
77
+ const _data = {
78
+ conditions: [
79
+ [d, Q],
80
+ ["aws.partition", Q, e],
81
+ [f, [F, "aws-iso-b"]],
82
+ [f, [F, "aws-iso"]],
83
+ [d, [G]],
84
+ [g, [G, 21, 24, b], "StreamIdSuffixValue"],
85
+ [g, [G, 0, 20, b], "StreamIdPrefixValue"],
86
+ [f, [{ fn: h, argv: [{ fn: g, argv: [G, 20, 21, b] }, i] }, j]],
87
+ [f, [{ fn: h, argv: [{ fn: g, argv: [G, 3, 4, c] }, i] }, j]],
88
+ [d, [H]],
89
+ [d, R],
90
+ [k, R, l(3)],
91
+ [m, [{ fn: n, argv: [I, o] }, b]],
92
+ [m, [{ fn: n, argv: [I, p] }, b]],
93
+ [g, [H, 15, 20, b], "HttpsCustomEndpointSuffixValue"],
94
+ [f, [{ fn: h, argv: [{ fn: g, argv: [H, 20, 21, b] }, i] }, "."]],
95
+ [f, [{ fn: h, argv: [{ fn: g, argv: [H, 15, 16, b] }, i] }, j]],
96
+ [g, [H, 7, 12, b], "PlainCustomEndpointSuffixValue"],
97
+ [f, [{ fn: n, argv: [I, q] }, s]],
98
+ [n, [I, t], u(1)],
99
+ [f, [J, i]],
100
+ [f, [J, v]],
101
+ [d, S],
102
+ [d, T],
103
+ [k, T, l(2)],
104
+ [m, [{ fn: n, argv: [K, o] }, b]],
105
+ [m, [{ fn: n, argv: [K, p] }, b]],
106
+ [f, [{ fn: n, argv: [K, q] }, s]],
107
+ [n, [K, t], u(3)],
108
+ [f, [L, i]],
109
+ [f, [L, v]],
110
+ [f, [F, { fn: n, argv: [K, w] }]],
111
+ [k, S, l(1)],
112
+ [m, [{ fn: n, argv: [M, o] }, b]],
113
+ [m, [{ fn: n, argv: [M, p] }, b]],
114
+ [f, [{ fn: n, argv: [M, q] }, s]],
115
+ [n, [M, t], u(2)],
116
+ [f, [N, i]],
117
+ [f, [N, v]],
118
+ [f, [F, { fn: n, argv: [M, w] }]],
119
+ [f, [F, { fn: n, argv: [I, w] }]],
120
+ [d, [{ [U]: "OperationType" }]],
121
+ [x, [{ [U]: "UseFIPS" }, c]],
122
+ [x, [{ fn: n, argv: [O, "supportsFIPS"] }, c]],
123
+ [x, [{ [U]: "UseDualStack" }, c]],
124
+ [x, [{ fn: n, argv: [O, "supportsDualStack"] }, c]],
125
+ [f, [F, "aws-us-gov"]],
126
+ [f, [{ fn: h, argv: [{ fn: g, argv: [H, 7, 8, b] }, i] }, j]],
127
+ [f, [{ fn: h, argv: [{ fn: g, argv: [H, 12, 13, b] }, i] }, "."]]
128
+ ],
129
+ results: [
130
+ [a],
131
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
132
+ [a, "DualStack is enabled, but this partition does not support DualStack."],
133
+ [a, "FIPS is enabled, but this partition does not support FIPS."],
134
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dnsSuffix}", P],
135
+ [a, "FIPS is enabled but this partition does not support FIPS"],
136
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
137
+ [a, "DualStack is enabled but this partition does not support DualStack"],
138
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{HttpsCustomEndpointSuffixValue}.{Region}.{PartitionResult#dnsSuffix}", P],
139
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
140
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}-fips.{Region}.{PartitionResult#dnsSuffix}", P],
141
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
142
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis{PlainCustomEndpointSuffixValue}.{Region}.{PartitionResult#dnsSuffix}", P],
143
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
144
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", P],
145
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
146
+ ["https://{StreamIdPrefixValue}.{StreamIdSuffixValue}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}", P],
147
+ [a, "Operation Type is not set. Please contact service team for resolution."],
148
+ [y(3), P],
149
+ [z(3), P],
150
+ [A(3), P],
151
+ [B(3), P],
152
+ [a, C(3)],
153
+ [a, D(1)],
154
+ [a, "Invalid ARN: No ARN type specified"],
155
+ [a, E(3)],
156
+ [a, "Invalid ARN: Invalid region."],
157
+ [a, "Invalid ARN: Invalid account id."],
158
+ [a, "Invalid ARN: Failed to parse ARN."],
159
+ [y(1), P],
160
+ [z(1), P],
161
+ [A(1), P],
162
+ [B(1), P],
163
+ [a, C(1)],
164
+ [a, D(2)],
165
+ [a, E(1)],
166
+ [y(2), P],
167
+ [z(2), P],
168
+ [A(2), P],
169
+ [B(2), P],
170
+ [a, C(2)],
171
+ [a, D(3)],
172
+ [a, E(2)],
173
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
174
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
175
+ [H, P],
176
+ ["https://kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
177
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
178
+ ["https://kinesis.{Region}.amazonaws.com", P],
179
+ ["https://kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", P],
180
+ ["https://kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", P],
181
+ ["https://kinesis.{Region}.{PartitionResult#dnsSuffix}", P],
182
+ [a, "Invalid Configuration: Missing Region"]
183
+ ]
184
+ };
185
+ const root = 2;
186
+ const r = 100_000_000;
187
+ const nodes = new Int32Array([
188
+ -1, 1, -1,
189
+ 0, 3, 4,
190
+ 1, 5, 4,
191
+ 9, 105, r + 52,
192
+ 2, 96, 6,
193
+ 3, 96, 7,
194
+ 4, 8, 12,
195
+ 5, 9, 12,
196
+ 6, 10, 12,
197
+ 7, 11, 12,
198
+ 8, 61, 12,
199
+ 9, 105, 13,
200
+ 10, 46, 14,
201
+ 22, 31, 15,
202
+ 23, 16, 97,
203
+ 24, 17, r + 28,
204
+ 25, 18, r + 27,
205
+ 26, 19, r + 26,
206
+ 27, 20, r + 42,
207
+ 28, 21, r + 24,
208
+ 29, r + 24, 22,
209
+ 30, 23, r + 41,
210
+ 31, 24, r + 40,
211
+ 41, 25, r + 17,
212
+ 42, 28, 26,
213
+ 44, 27, r + 39,
214
+ 45, r + 38, r + 7,
215
+ 43, 29, 93,
216
+ 44, 30, r + 37,
217
+ 45, r + 36, r + 2,
218
+ 32, 32, r + 28,
219
+ 33, 33, r + 27,
220
+ 34, 34, r + 26,
221
+ 35, 35, r + 35,
222
+ 36, 36, r + 24,
223
+ 37, r + 24, 37,
224
+ 38, 38, r + 34,
225
+ 39, 39, r + 33,
226
+ 41, 40, r + 17,
227
+ 42, 43, 41,
228
+ 44, 42, r + 32,
229
+ 45, r + 31, r + 7,
230
+ 43, 44, 93,
231
+ 44, 45, r + 30,
232
+ 45, r + 29, r + 2,
233
+ 11, 47, r + 28,
234
+ 12, 48, r + 27,
235
+ 13, 49, r + 26,
236
+ 18, 50, r + 25,
237
+ 19, 51, r + 24,
238
+ 20, r + 24, 52,
239
+ 21, 53, r + 23,
240
+ 40, 54, r + 22,
241
+ 41, 55, r + 17,
242
+ 42, 58, 56,
243
+ 44, 57, r + 21,
244
+ 45, r + 20, r + 7,
245
+ 43, 59, 93,
246
+ 44, 60, r + 19,
247
+ 45, r + 18, r + 2,
248
+ 9, 62, 66,
249
+ 14, 63, 65,
250
+ 15, 64, 65,
251
+ 16, 88, 65,
252
+ 17, 73, 66,
253
+ 41, 67, r + 17,
254
+ 42, 70, 68,
255
+ 44, 69, r + 16,
256
+ 45, r + 15, r + 7,
257
+ 43, 71, 93,
258
+ 44, 72, r + 14,
259
+ 45, r + 13, r + 2,
260
+ 41, 74, r + 17,
261
+ 42, 81, 75,
262
+ 44, 78, 76,
263
+ 47, 77, r + 16,
264
+ 48, r + 12, r + 16,
265
+ 45, 79, r + 7,
266
+ 47, 80, r + 15,
267
+ 48, r + 11, r + 15,
268
+ 43, 82, 93,
269
+ 44, 85, 83,
270
+ 47, 84, r + 14,
271
+ 48, r + 10, r + 14,
272
+ 45, 86, r + 2,
273
+ 47, 87, r + 13,
274
+ 48, r + 9, r + 13,
275
+ 41, 89, r + 17,
276
+ 42, 92, 90,
277
+ 44, 91, r + 8,
278
+ 45, r + 6, r + 7,
279
+ 43, 94, 93,
280
+ 44, r + 3, r + 5,
281
+ 44, 95, r + 4,
282
+ 45, r + 1, r + 2,
283
+ 9, 105, 97,
284
+ 42, 100, 98,
285
+ 44, 99, r + 51,
286
+ 45, r + 50, r + 7,
287
+ 43, 102, 101,
288
+ 44, r + 47, r + 5,
289
+ 44, 104, 103,
290
+ 46, r + 48, r + 49,
291
+ 45, r + 46, r + 47,
292
+ 42, r + 43, 106,
293
+ 44, r + 44, r + 45,
294
+ ]);
295
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
296
+
297
+ const cache = new EndpointCache({
298
+ size: 50,
299
+ params: [
300
+ "ConsumerARN",
301
+ "Endpoint",
302
+ "OperationType",
303
+ "Region",
304
+ "ResourceARN",
305
+ "StreamARN",
306
+ "StreamId",
307
+ "UseDualStack",
308
+ "UseFIPS",
309
+ ],
310
+ });
311
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
312
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
313
+ endpointParams: endpointParams,
314
+ logger: context.logger,
315
+ }));
316
+ };
317
+ customEndpointFunctions.aws = awsEndpointFunctions;
318
+
319
+ class KinesisServiceException extends ServiceException {
320
+ constructor(options) {
321
+ super(options);
322
+ Object.setPrototypeOf(this, KinesisServiceException.prototype);
323
+ }
324
+ }
325
+
326
+ class AccessDeniedException extends KinesisServiceException {
327
+ name = "AccessDeniedException";
328
+ $fault = "client";
329
+ constructor(opts) {
330
+ super({
331
+ name: "AccessDeniedException",
332
+ $fault: "client",
333
+ ...opts,
334
+ });
335
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
336
+ }
337
+ }
338
+ class InvalidArgumentException extends KinesisServiceException {
339
+ name = "InvalidArgumentException";
340
+ $fault = "client";
341
+ constructor(opts) {
342
+ super({
343
+ name: "InvalidArgumentException",
344
+ $fault: "client",
345
+ ...opts,
346
+ });
347
+ Object.setPrototypeOf(this, InvalidArgumentException.prototype);
348
+ }
349
+ }
350
+ class LimitExceededException extends KinesisServiceException {
351
+ name = "LimitExceededException";
352
+ $fault = "client";
353
+ constructor(opts) {
354
+ super({
355
+ name: "LimitExceededException",
356
+ $fault: "client",
357
+ ...opts,
358
+ });
359
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
360
+ }
361
+ }
362
+ class ResourceInUseException extends KinesisServiceException {
363
+ name = "ResourceInUseException";
364
+ $fault = "client";
365
+ constructor(opts) {
366
+ super({
367
+ name: "ResourceInUseException",
368
+ $fault: "client",
369
+ ...opts,
370
+ });
371
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
372
+ }
373
+ }
374
+ class ResourceNotFoundException extends KinesisServiceException {
375
+ name = "ResourceNotFoundException";
376
+ $fault = "client";
377
+ constructor(opts) {
378
+ super({
379
+ name: "ResourceNotFoundException",
380
+ $fault: "client",
381
+ ...opts,
382
+ });
383
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
384
+ }
385
+ }
386
+ class ValidationException extends KinesisServiceException {
387
+ name = "ValidationException";
388
+ $fault = "client";
389
+ constructor(opts) {
390
+ super({
391
+ name: "ValidationException",
392
+ $fault: "client",
393
+ ...opts,
394
+ });
395
+ Object.setPrototypeOf(this, ValidationException.prototype);
396
+ }
397
+ }
398
+ class ExpiredIteratorException extends KinesisServiceException {
399
+ name = "ExpiredIteratorException";
400
+ $fault = "client";
401
+ constructor(opts) {
402
+ super({
403
+ name: "ExpiredIteratorException",
404
+ $fault: "client",
405
+ ...opts,
406
+ });
407
+ Object.setPrototypeOf(this, ExpiredIteratorException.prototype);
408
+ }
409
+ }
410
+ class ExpiredNextTokenException extends KinesisServiceException {
411
+ name = "ExpiredNextTokenException";
412
+ $fault = "client";
413
+ constructor(opts) {
414
+ super({
415
+ name: "ExpiredNextTokenException",
416
+ $fault: "client",
417
+ ...opts,
418
+ });
419
+ Object.setPrototypeOf(this, ExpiredNextTokenException.prototype);
420
+ }
421
+ }
422
+ class InternalFailureException extends KinesisServiceException {
423
+ name = "InternalFailureException";
424
+ $fault = "server";
425
+ constructor(opts) {
426
+ super({
427
+ name: "InternalFailureException",
428
+ $fault: "server",
429
+ ...opts,
430
+ });
431
+ Object.setPrototypeOf(this, InternalFailureException.prototype);
432
+ }
433
+ }
434
+ class KMSAccessDeniedException extends KinesisServiceException {
435
+ name = "KMSAccessDeniedException";
436
+ $fault = "client";
437
+ constructor(opts) {
438
+ super({
439
+ name: "KMSAccessDeniedException",
440
+ $fault: "client",
441
+ ...opts,
442
+ });
443
+ Object.setPrototypeOf(this, KMSAccessDeniedException.prototype);
444
+ }
445
+ }
446
+ class KMSDisabledException extends KinesisServiceException {
447
+ name = "KMSDisabledException";
448
+ $fault = "client";
449
+ constructor(opts) {
450
+ super({
451
+ name: "KMSDisabledException",
452
+ $fault: "client",
453
+ ...opts,
454
+ });
455
+ Object.setPrototypeOf(this, KMSDisabledException.prototype);
456
+ }
457
+ }
458
+ class KMSInvalidStateException extends KinesisServiceException {
459
+ name = "KMSInvalidStateException";
460
+ $fault = "client";
461
+ constructor(opts) {
462
+ super({
463
+ name: "KMSInvalidStateException",
464
+ $fault: "client",
465
+ ...opts,
466
+ });
467
+ Object.setPrototypeOf(this, KMSInvalidStateException.prototype);
468
+ }
469
+ }
470
+ class KMSNotFoundException extends KinesisServiceException {
471
+ name = "KMSNotFoundException";
472
+ $fault = "client";
473
+ constructor(opts) {
474
+ super({
475
+ name: "KMSNotFoundException",
476
+ $fault: "client",
477
+ ...opts,
478
+ });
479
+ Object.setPrototypeOf(this, KMSNotFoundException.prototype);
480
+ }
481
+ }
482
+ class KMSOptInRequired extends KinesisServiceException {
483
+ name = "KMSOptInRequired";
484
+ $fault = "client";
485
+ constructor(opts) {
486
+ super({
487
+ name: "KMSOptInRequired",
488
+ $fault: "client",
489
+ ...opts,
490
+ });
491
+ Object.setPrototypeOf(this, KMSOptInRequired.prototype);
492
+ }
493
+ }
494
+ class KMSThrottlingException extends KinesisServiceException {
495
+ name = "KMSThrottlingException";
496
+ $fault = "client";
497
+ constructor(opts) {
498
+ super({
499
+ name: "KMSThrottlingException",
500
+ $fault: "client",
501
+ ...opts,
502
+ });
503
+ Object.setPrototypeOf(this, KMSThrottlingException.prototype);
504
+ }
505
+ }
506
+ class ProvisionedThroughputExceededException extends KinesisServiceException {
507
+ name = "ProvisionedThroughputExceededException";
508
+ $fault = "client";
509
+ constructor(opts) {
510
+ super({
511
+ name: "ProvisionedThroughputExceededException",
512
+ $fault: "client",
513
+ ...opts,
514
+ });
515
+ Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype);
516
+ }
517
+ }
518
+
519
+ const _AAT = "ApproximateArrivalTimestamp";
520
+ const _ADE = "AccessDeniedException";
521
+ const _APSI = "AdjacentParentShardId";
522
+ const _ASTM = "AdjacentShardToMerge";
523
+ const _ATTS = "AddTagsToStream";
524
+ const _ATTSI = "AddTagsToStreamInput";
525
+ const _C = "Consumer";
526
+ const _CARN = "ConsumerARN";
527
+ const _CC = "ConsumerCount";
528
+ const _CCT = "ConsumerCreationTimestamp";
529
+ const _CD = "ConsumerDescription";
530
+ const _CL = "ConsumerList";
531
+ const _CMB = "CurrentMiBps";
532
+ const _CN = "ConsumerName";
533
+ const _CS = "ChildShard";
534
+ const _CSC = "CurrentShardCount";
535
+ const _CSI = "CreateStreamInput";
536
+ const _CSL = "ChildShardList";
537
+ const _CSLM = "CurrentShardLevelMetrics";
538
+ const _CSN = "ContinuationSequenceNumber";
539
+ const _CSh = "ChildShards";
540
+ const _CSo = "ConsumerStatus";
541
+ const _CSr = "CreateStream";
542
+ const _Co = "Consumers";
543
+ const _D = "Data";
544
+ const _DAS = "DescribeAccountSettings";
545
+ const _DASI = "DescribeAccountSettingsInput";
546
+ const _DASO = "DescribeAccountSettingsOutput";
547
+ const _DEM = "DisableEnhancedMonitoring";
548
+ const _DEMI = "DisableEnhancedMonitoringInput";
549
+ const _DL = "DescribeLimits";
550
+ const _DLI = "DescribeLimitsInput";
551
+ const _DLO = "DescribeLimitsOutput";
552
+ const _DRP = "DeleteResourcePolicy";
553
+ const _DRPI = "DeleteResourcePolicyInput";
554
+ const _DS = "DeleteStream";
555
+ const _DSC = "DeregisterStreamConsumer";
556
+ const _DSCI = "DeregisterStreamConsumerInput";
557
+ const _DSCIe = "DescribeStreamConsumerInput";
558
+ const _DSCO = "DescribeStreamConsumerOutput";
559
+ const _DSCe = "DescribeStreamConsumer";
560
+ const _DSI = "DeleteStreamInput";
561
+ const _DSIe = "DescribeStreamInput";
562
+ const _DSLM = "DesiredShardLevelMetrics";
563
+ const _DSO = "DescribeStreamOutput";
564
+ const _DSRP = "DecreaseStreamRetentionPeriod";
565
+ const _DSRPI = "DecreaseStreamRetentionPeriodInput";
566
+ const _DSS = "DescribeStreamSummary";
567
+ const _DSSI = "DescribeStreamSummaryInput";
568
+ const _DSSO = "DescribeStreamSummaryOutput";
569
+ const _DSe = "DescribeStream";
570
+ const _EA = "EndedAt";
571
+ const _EAEA = "EarliestAllowedEndAt";
572
+ const _EC = "ErrorCode";
573
+ const _ECD = "EnforceConsumerDeletion";
574
+ const _EEM = "EnableEnhancedMonitoring";
575
+ const _EEMI = "EnableEnhancedMonitoringInput";
576
+ const _EHK = "EndingHashKey";
577
+ const _EHKx = "ExplicitHashKey";
578
+ const _EIE = "ExpiredIteratorException";
579
+ const _EM = "EnhancedMetrics";
580
+ const _EML = "EnhancedMonitoringList";
581
+ const _EMO = "EnhancedMonitoringOutput";
582
+ const _EMn = "EnhancedMonitoring";
583
+ const _EMr = "ErrorMessage";
584
+ const _ENTE = "ExpiredNextTokenException";
585
+ const _ES = "EventStream";
586
+ const _ESN = "EndingSequenceNumber";
587
+ const _ESSI = "ExclusiveStartShardId";
588
+ const _ESSN = "ExclusiveStartStreamName";
589
+ const _ESTK = "ExclusiveStartTagKey";
590
+ const _ET = "EncryptionType";
591
+ const _FRC = "FailedRecordCount";
592
+ const _GR = "GetRecords";
593
+ const _GRI = "GetRecordsInput";
594
+ const _GRO = "GetRecordsOutput";
595
+ const _GRP = "GetResourcePolicy";
596
+ const _GRPI = "GetResourcePolicyInput";
597
+ const _GRPO = "GetResourcePolicyOutput";
598
+ const _GSI = "GetShardIterator";
599
+ const _GSII = "GetShardIteratorInput";
600
+ const _GSIO = "GetShardIteratorOutput";
601
+ const _HKR = "HashKeyRange";
602
+ const _HMS = "HasMoreStreams";
603
+ const _HMSa = "HasMoreShards";
604
+ const _HMT = "HasMoreTags";
605
+ const _IAE = "InvalidArgumentException";
606
+ const _IFE = "InternalFailureException";
607
+ const _ISRP = "IncreaseStreamRetentionPeriod";
608
+ const _ISRPI = "IncreaseStreamRetentionPeriodInput";
609
+ const _K = "Key";
610
+ const _KI = "KeyId";
611
+ const _KMSADE = "KMSAccessDeniedException";
612
+ const _KMSDE = "KMSDisabledException";
613
+ const _KMSISE = "KMSInvalidStateException";
614
+ const _KMSNFE = "KMSNotFoundException";
615
+ const _KMSOIR = "KMSOptInRequired";
616
+ const _KMSTE = "KMSThrottlingException";
617
+ const _L = "Limit";
618
+ const _LEE = "LimitExceededException";
619
+ const _LS = "ListShards";
620
+ const _LSC = "ListStreamConsumers";
621
+ const _LSCI = "ListStreamConsumersInput";
622
+ const _LSCO = "ListStreamConsumersOutput";
623
+ const _LSI = "ListShardsInput";
624
+ const _LSIi = "ListStreamsInput";
625
+ const _LSO = "ListShardsOutput";
626
+ const _LSOi = "ListStreamsOutput";
627
+ const _LSi = "ListStreams";
628
+ const _LTFR = "ListTagsForResource";
629
+ const _LTFRI = "ListTagsForResourceInput";
630
+ const _LTFRO = "ListTagsForResourceOutput";
631
+ const _LTFS = "ListTagsForStream";
632
+ const _LTFSI = "ListTagsForStreamInput";
633
+ const _LTFSO = "ListTagsForStreamOutput";
634
+ const _MBL = "MillisBehindLatest";
635
+ const _MR = "MaxResults";
636
+ const _MRSIKB = "MaxRecordSizeInKiB";
637
+ const _MS = "MergeShards";
638
+ const _MSI = "MergeShardsInput";
639
+ const _MTBC = "MinimumThroughputBillingCommitment";
640
+ const _MTBCI = "MinimumThroughputBillingCommitmentInput";
641
+ const _MTBCO = "MinimumThroughputBillingCommitmentOutput";
642
+ const _NSHK = "NewStartingHashKey";
643
+ const _NSI = "NextShardIterator";
644
+ const _NT = "NextToken";
645
+ const _ODSC = "OnDemandStreamCount";
646
+ const _ODSCL = "OnDemandStreamCountLimit";
647
+ const _OSC = "OpenShardCount";
648
+ const _P = "Policy";
649
+ const _PK = "PartitionKey";
650
+ const _PR = "PutRecord";
651
+ const _PRI = "PutRecordInput";
652
+ const _PRIu = "PutRecordsInput";
653
+ const _PRO = "PutRecordOutput";
654
+ const _PROu = "PutRecordsOutput";
655
+ const _PRP = "PutResourcePolicy";
656
+ const _PRPI = "PutResourcePolicyInput";
657
+ const _PRRE = "PutRecordsRequestEntry";
658
+ const _PRREL = "PutRecordsRequestEntryList";
659
+ const _PRRELu = "PutRecordsResultEntryList";
660
+ const _PRREu = "PutRecordsResultEntry";
661
+ const _PRu = "PutRecords";
662
+ const _PS = "ParentShards";
663
+ const _PSI = "ParentShardId";
664
+ const _PTEE = "ProvisionedThroughputExceededException";
665
+ const _R = "Records";
666
+ const _RARN = "ResourceARN";
667
+ const _RIUE = "ResourceInUseException";
668
+ const _RL = "RecordList";
669
+ const _RNFE = "ResourceNotFoundException";
670
+ const _RPH = "RetentionPeriodHours";
671
+ const _RSC = "RegisterStreamConsumer";
672
+ const _RSCI = "RegisterStreamConsumerInput";
673
+ const _RSCO = "RegisterStreamConsumerOutput";
674
+ const _RTFS = "RemoveTagsFromStream";
675
+ const _RTFSI = "RemoveTagsFromStreamInput";
676
+ const _Re = "Record";
677
+ const _S = "Shards";
678
+ const _SA = "StartedAt";
679
+ const _SARN = "StreamARN";
680
+ const _SC = "ShardCount";
681
+ const _SCT = "StreamCreationTimestamp";
682
+ const _SD = "StreamDescription";
683
+ const _SDS = "StreamDescriptionSummary";
684
+ const _SF = "ShardFilter";
685
+ const _SHK = "StartingHashKey";
686
+ const _SI = "StreamId";
687
+ const _SIT = "ShardIteratorType";
688
+ const _SIh = "ShardId";
689
+ const _SIha = "ShardIterator";
690
+ const _SL = "ShardLimit";
691
+ const _SLM = "ShardLevelMetrics";
692
+ const _SLh = "ShardList";
693
+ const _SM = "StreamMode";
694
+ const _SMD = "StreamModeDetails";
695
+ const _SN = "StreamName";
696
+ const _SNFO = "SequenceNumberForOrdering";
697
+ const _SNR = "SequenceNumberRange";
698
+ const _SNe = "SequenceNumber";
699
+ const _SNt = "StreamNames";
700
+ const _SP = "StartingPosition";
701
+ const _SS = "StreamSummaries";
702
+ const _SSE = "StartStreamEncryption";
703
+ const _SSEI = "StartStreamEncryptionInput";
704
+ const _SSEIt = "StopStreamEncryptionInput";
705
+ const _SSEt = "StopStreamEncryption";
706
+ const _SSI = "SplitShardInput";
707
+ const _SSL = "StreamSummaryList";
708
+ const _SSN = "StartingSequenceNumber";
709
+ const _SSp = "SplitShard";
710
+ const _SSt = "StreamStatus";
711
+ const _SStr = "StreamSummary";
712
+ const _ST = "ScalingType";
713
+ const _STM = "ShardToMerge";
714
+ const _STS = "ShardToSplit";
715
+ const _STSE = "SubscribeToShardEvent";
716
+ const _STSES = "SubscribeToShardEventStream";
717
+ const _STSI = "SubscribeToShardInput";
718
+ const _STSO = "SubscribeToShardOutput";
719
+ const _STSu = "SubscribeToShard";
720
+ const _Sh = "Shard";
721
+ const _St = "Status";
722
+ const _T = "Tags";
723
+ const _TK = "TagKeys";
724
+ const _TL = "TagList";
725
+ const _TMB = "TargetMiBps";
726
+ const _TR = "TagResource";
727
+ const _TRI = "TagResourceInput";
728
+ const _TSC = "TargetShardCount";
729
+ const _Ta = "Tag";
730
+ const _Ti = "Timestamp";
731
+ const _Ty = "Type";
732
+ const _UAS = "UpdateAccountSettings";
733
+ const _UASI = "UpdateAccountSettingsInput";
734
+ const _UASO = "UpdateAccountSettingsOutput";
735
+ const _UMRS = "UpdateMaxRecordSize";
736
+ const _UMRSI = "UpdateMaxRecordSizeInput";
737
+ const _UR = "UntagResource";
738
+ const _URI = "UntagResourceInput";
739
+ const _USC = "UpdateShardCount";
740
+ const _USCI = "UpdateShardCountInput";
741
+ const _USCO = "UpdateShardCountOutput";
742
+ const _USM = "UpdateStreamMode";
743
+ const _USMI = "UpdateStreamModeInput";
744
+ const _USWT = "UpdateStreamWarmThroughput";
745
+ const _USWTI = "UpdateStreamWarmThroughputInput";
746
+ const _USWTO = "UpdateStreamWarmThroughputOutput";
747
+ const _V = "Value";
748
+ const _VE = "ValidationException";
749
+ const _WT = "WarmThroughput";
750
+ const _WTMB = "WarmThroughputMiBps";
751
+ const _WTO = "WarmThroughputObject";
752
+ const _c = "client";
753
+ const _e = "error";
754
+ const _m = "message";
755
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.kinesis";
756
+ const _se = "server";
757
+ const _st = "streaming";
758
+ const n0 = "com.amazonaws.kinesis";
759
+ const _s_registry = TypeRegistry.for(_s);
760
+ var KinesisServiceException$ = [-3, _s, "KinesisServiceException", 0, [], []];
761
+ _s_registry.registerError(KinesisServiceException$, KinesisServiceException);
762
+ const n0_registry = TypeRegistry.for(n0);
763
+ var AccessDeniedException$ = [-3, n0, _ADE,
764
+ { [_e]: _c },
765
+ [_m],
766
+ [0]
767
+ ];
768
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
769
+ var ExpiredIteratorException$ = [-3, n0, _EIE,
770
+ { [_e]: _c },
771
+ [_m],
772
+ [0]
773
+ ];
774
+ n0_registry.registerError(ExpiredIteratorException$, ExpiredIteratorException);
775
+ var ExpiredNextTokenException$ = [-3, n0, _ENTE,
776
+ { [_e]: _c },
777
+ [_m],
778
+ [0]
779
+ ];
780
+ n0_registry.registerError(ExpiredNextTokenException$, ExpiredNextTokenException);
781
+ var InternalFailureException$ = [-3, n0, _IFE,
782
+ { [_e]: _se },
783
+ [_m],
784
+ [0]
785
+ ];
786
+ n0_registry.registerError(InternalFailureException$, InternalFailureException);
787
+ var InvalidArgumentException$ = [-3, n0, _IAE,
788
+ { [_e]: _c },
789
+ [_m],
790
+ [0]
791
+ ];
792
+ n0_registry.registerError(InvalidArgumentException$, InvalidArgumentException);
793
+ var KMSAccessDeniedException$ = [-3, n0, _KMSADE,
794
+ { [_e]: _c },
795
+ [_m],
796
+ [0]
797
+ ];
798
+ n0_registry.registerError(KMSAccessDeniedException$, KMSAccessDeniedException);
799
+ var KMSDisabledException$ = [-3, n0, _KMSDE,
800
+ { [_e]: _c },
801
+ [_m],
802
+ [0]
803
+ ];
804
+ n0_registry.registerError(KMSDisabledException$, KMSDisabledException);
805
+ var KMSInvalidStateException$ = [-3, n0, _KMSISE,
806
+ { [_e]: _c },
807
+ [_m],
808
+ [0]
809
+ ];
810
+ n0_registry.registerError(KMSInvalidStateException$, KMSInvalidStateException);
811
+ var KMSNotFoundException$ = [-3, n0, _KMSNFE,
812
+ { [_e]: _c },
813
+ [_m],
814
+ [0]
815
+ ];
816
+ n0_registry.registerError(KMSNotFoundException$, KMSNotFoundException);
817
+ var KMSOptInRequired$ = [-3, n0, _KMSOIR,
818
+ { [_e]: _c },
819
+ [_m],
820
+ [0]
821
+ ];
822
+ n0_registry.registerError(KMSOptInRequired$, KMSOptInRequired);
823
+ var KMSThrottlingException$ = [-3, n0, _KMSTE,
824
+ { [_e]: _c },
825
+ [_m],
826
+ [0]
827
+ ];
828
+ n0_registry.registerError(KMSThrottlingException$, KMSThrottlingException);
829
+ var LimitExceededException$ = [-3, n0, _LEE,
830
+ { [_e]: _c },
831
+ [_m],
832
+ [0]
833
+ ];
834
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
835
+ var ProvisionedThroughputExceededException$ = [-3, n0, _PTEE,
836
+ { [_e]: _c },
837
+ [_m],
838
+ [0]
839
+ ];
840
+ n0_registry.registerError(ProvisionedThroughputExceededException$, ProvisionedThroughputExceededException);
841
+ var ResourceInUseException$ = [-3, n0, _RIUE,
842
+ { [_e]: _c },
843
+ [_m],
844
+ [0]
845
+ ];
846
+ n0_registry.registerError(ResourceInUseException$, ResourceInUseException);
847
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
848
+ { [_e]: _c },
849
+ [_m],
850
+ [0]
851
+ ];
852
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
853
+ var ValidationException$ = [-3, n0, _VE,
854
+ { [_e]: _c },
855
+ [_m],
856
+ [0]
857
+ ];
858
+ n0_registry.registerError(ValidationException$, ValidationException);
859
+ const errorTypeRegistries = [
860
+ _s_registry,
861
+ n0_registry,
862
+ ];
863
+ var AddTagsToStreamInput$ = [3, n0, _ATTSI,
864
+ 0,
865
+ [_T, _SN, _SARN, _SI],
866
+ [128 | 0, 0, 0, 0], 1
867
+ ];
868
+ var ChildShard$ = [3, n0, _CS,
869
+ 0,
870
+ [_SIh, _PS, _HKR],
871
+ [0, 64 | 0, () => HashKeyRange$], 3
872
+ ];
873
+ var Consumer$ = [3, n0, _C,
874
+ 0,
875
+ [_CN, _CARN, _CSo, _CCT],
876
+ [0, 0, 0, 4], 4
877
+ ];
878
+ var ConsumerDescription$ = [3, n0, _CD,
879
+ 0,
880
+ [_CN, _CARN, _CSo, _CCT, _SARN],
881
+ [0, 0, 0, 4, 0], 5
882
+ ];
883
+ var CreateStreamInput$ = [3, n0, _CSI,
884
+ 0,
885
+ [_SN, _SC, _SMD, _T, _WTMB, _MRSIKB],
886
+ [0, 1, () => StreamModeDetails$, 128 | 0, 1, 1], 1
887
+ ];
888
+ var DecreaseStreamRetentionPeriodInput$ = [3, n0, _DSRPI,
889
+ 0,
890
+ [_RPH, _SN, _SARN, _SI],
891
+ [1, 0, 0, 0], 1
892
+ ];
893
+ var DeleteResourcePolicyInput$ = [3, n0, _DRPI,
894
+ 0,
895
+ [_RARN, _SI],
896
+ [0, 0], 1
897
+ ];
898
+ var DeleteStreamInput$ = [3, n0, _DSI,
899
+ 0,
900
+ [_SN, _ECD, _SARN, _SI],
901
+ [0, 2, 0, 0]
902
+ ];
903
+ var DeregisterStreamConsumerInput$ = [3, n0, _DSCI,
904
+ 0,
905
+ [_SARN, _CN, _CARN, _SI],
906
+ [0, 0, 0, 0]
907
+ ];
908
+ var DescribeAccountSettingsInput$ = [3, n0, _DASI,
909
+ 0,
910
+ [],
911
+ []
912
+ ];
913
+ var DescribeAccountSettingsOutput$ = [3, n0, _DASO,
914
+ 0,
915
+ [_MTBC],
916
+ [() => MinimumThroughputBillingCommitmentOutput$]
917
+ ];
918
+ var DescribeLimitsInput$ = [3, n0, _DLI,
919
+ 0,
920
+ [],
921
+ []
922
+ ];
923
+ var DescribeLimitsOutput$ = [3, n0, _DLO,
924
+ 0,
925
+ [_SL, _OSC, _ODSC, _ODSCL],
926
+ [1, 1, 1, 1], 4
927
+ ];
928
+ var DescribeStreamConsumerInput$ = [3, n0, _DSCIe,
929
+ 0,
930
+ [_SARN, _CN, _CARN, _SI],
931
+ [0, 0, 0, 0]
932
+ ];
933
+ var DescribeStreamConsumerOutput$ = [3, n0, _DSCO,
934
+ 0,
935
+ [_CD],
936
+ [() => ConsumerDescription$], 1
937
+ ];
938
+ var DescribeStreamInput$ = [3, n0, _DSIe,
939
+ 0,
940
+ [_SN, _L, _ESSI, _SARN, _SI],
941
+ [0, 1, 0, 0, 0]
942
+ ];
943
+ var DescribeStreamOutput$ = [3, n0, _DSO,
944
+ 0,
945
+ [_SD],
946
+ [() => StreamDescription$], 1
947
+ ];
948
+ var DescribeStreamSummaryInput$ = [3, n0, _DSSI,
949
+ 0,
950
+ [_SN, _SARN, _SI],
951
+ [0, 0, 0]
952
+ ];
953
+ var DescribeStreamSummaryOutput$ = [3, n0, _DSSO,
954
+ 0,
955
+ [_SDS],
956
+ [() => StreamDescriptionSummary$], 1
957
+ ];
958
+ var DisableEnhancedMonitoringInput$ = [3, n0, _DEMI,
959
+ 0,
960
+ [_SLM, _SN, _SARN, _SI],
961
+ [64 | 0, 0, 0, 0], 1
962
+ ];
963
+ var EnableEnhancedMonitoringInput$ = [3, n0, _EEMI,
964
+ 0,
965
+ [_SLM, _SN, _SARN, _SI],
966
+ [64 | 0, 0, 0, 0], 1
967
+ ];
968
+ var EnhancedMetrics$ = [3, n0, _EM,
969
+ 0,
970
+ [_SLM],
971
+ [64 | 0]
972
+ ];
973
+ var EnhancedMonitoringOutput$ = [3, n0, _EMO,
974
+ 0,
975
+ [_SN, _CSLM, _DSLM, _SARN],
976
+ [0, 64 | 0, 64 | 0, 0]
977
+ ];
978
+ var GetRecordsInput$ = [3, n0, _GRI,
979
+ 0,
980
+ [_SIha, _L, _SARN, _SI],
981
+ [0, 1, 0, 0], 1
982
+ ];
983
+ var GetRecordsOutput$ = [3, n0, _GRO,
984
+ 0,
985
+ [_R, _NSI, _MBL, _CSh],
986
+ [() => RecordList, 0, 1, () => ChildShardList], 1
987
+ ];
988
+ var GetResourcePolicyInput$ = [3, n0, _GRPI,
989
+ 0,
990
+ [_RARN, _SI],
991
+ [0, 0], 1
992
+ ];
993
+ var GetResourcePolicyOutput$ = [3, n0, _GRPO,
994
+ 0,
995
+ [_P],
996
+ [0], 1
997
+ ];
998
+ var GetShardIteratorInput$ = [3, n0, _GSII,
999
+ 0,
1000
+ [_SIh, _SIT, _SN, _SSN, _Ti, _SARN, _SI],
1001
+ [0, 0, 0, 0, 4, 0, 0], 2
1002
+ ];
1003
+ var GetShardIteratorOutput$ = [3, n0, _GSIO,
1004
+ 0,
1005
+ [_SIha],
1006
+ [0]
1007
+ ];
1008
+ var HashKeyRange$ = [3, n0, _HKR,
1009
+ 0,
1010
+ [_SHK, _EHK],
1011
+ [0, 0], 2
1012
+ ];
1013
+ var IncreaseStreamRetentionPeriodInput$ = [3, n0, _ISRPI,
1014
+ 0,
1015
+ [_RPH, _SN, _SARN, _SI],
1016
+ [1, 0, 0, 0], 1
1017
+ ];
1018
+ var ListShardsInput$ = [3, n0, _LSI,
1019
+ 0,
1020
+ [_SN, _NT, _ESSI, _MR, _SCT, _SF, _SARN, _SI],
1021
+ [0, 0, 0, 1, 4, () => ShardFilter$, 0, 0]
1022
+ ];
1023
+ var ListShardsOutput$ = [3, n0, _LSO,
1024
+ 0,
1025
+ [_S, _NT],
1026
+ [() => ShardList, 0]
1027
+ ];
1028
+ var ListStreamConsumersInput$ = [3, n0, _LSCI,
1029
+ 0,
1030
+ [_SARN, _NT, _MR, _SCT, _SI],
1031
+ [0, 0, 1, 4, 0], 1
1032
+ ];
1033
+ var ListStreamConsumersOutput$ = [3, n0, _LSCO,
1034
+ 0,
1035
+ [_Co, _NT],
1036
+ [() => ConsumerList, 0]
1037
+ ];
1038
+ var ListStreamsInput$ = [3, n0, _LSIi,
1039
+ 0,
1040
+ [_L, _ESSN, _NT],
1041
+ [1, 0, 0]
1042
+ ];
1043
+ var ListStreamsOutput$ = [3, n0, _LSOi,
1044
+ 0,
1045
+ [_SNt, _HMS, _NT, _SS],
1046
+ [64 | 0, 2, 0, () => StreamSummaryList], 2
1047
+ ];
1048
+ var ListTagsForResourceInput$ = [3, n0, _LTFRI,
1049
+ 0,
1050
+ [_RARN, _SI],
1051
+ [0, 0], 1
1052
+ ];
1053
+ var ListTagsForResourceOutput$ = [3, n0, _LTFRO,
1054
+ 0,
1055
+ [_T],
1056
+ [() => TagList]
1057
+ ];
1058
+ var ListTagsForStreamInput$ = [3, n0, _LTFSI,
1059
+ 0,
1060
+ [_SN, _ESTK, _L, _SARN, _SI],
1061
+ [0, 0, 1, 0, 0]
1062
+ ];
1063
+ var ListTagsForStreamOutput$ = [3, n0, _LTFSO,
1064
+ 0,
1065
+ [_T, _HMT],
1066
+ [() => TagList, 2], 2
1067
+ ];
1068
+ var MergeShardsInput$ = [3, n0, _MSI,
1069
+ 0,
1070
+ [_STM, _ASTM, _SN, _SARN, _SI],
1071
+ [0, 0, 0, 0, 0], 2
1072
+ ];
1073
+ var MinimumThroughputBillingCommitmentInput$ = [3, n0, _MTBCI,
1074
+ 0,
1075
+ [_St],
1076
+ [0], 1
1077
+ ];
1078
+ var MinimumThroughputBillingCommitmentOutput$ = [3, n0, _MTBCO,
1079
+ 0,
1080
+ [_St, _SA, _EA, _EAEA],
1081
+ [0, 4, 4, 4], 1
1082
+ ];
1083
+ var PutRecordInput$ = [3, n0, _PRI,
1084
+ 0,
1085
+ [_D, _PK, _SN, _EHKx, _SNFO, _SARN, _SI],
1086
+ [21, 0, 0, 0, 0, 0, 0], 2
1087
+ ];
1088
+ var PutRecordOutput$ = [3, n0, _PRO,
1089
+ 0,
1090
+ [_SIh, _SNe, _ET],
1091
+ [0, 0, 0], 2
1092
+ ];
1093
+ var PutRecordsInput$ = [3, n0, _PRIu,
1094
+ 0,
1095
+ [_R, _SN, _SARN, _SI],
1096
+ [() => PutRecordsRequestEntryList, 0, 0, 0], 1
1097
+ ];
1098
+ var PutRecordsOutput$ = [3, n0, _PROu,
1099
+ 0,
1100
+ [_R, _FRC, _ET],
1101
+ [() => PutRecordsResultEntryList, 1, 0], 1
1102
+ ];
1103
+ var PutRecordsRequestEntry$ = [3, n0, _PRRE,
1104
+ 0,
1105
+ [_D, _PK, _EHKx],
1106
+ [21, 0, 0], 2
1107
+ ];
1108
+ var PutRecordsResultEntry$ = [3, n0, _PRREu,
1109
+ 0,
1110
+ [_SNe, _SIh, _EC, _EMr],
1111
+ [0, 0, 0, 0]
1112
+ ];
1113
+ var PutResourcePolicyInput$ = [3, n0, _PRPI,
1114
+ 0,
1115
+ [_RARN, _P, _SI],
1116
+ [0, 0, 0], 2
1117
+ ];
1118
+ var _Record$ = [3, n0, _Re,
1119
+ 0,
1120
+ [_SNe, _D, _PK, _AAT, _ET],
1121
+ [0, 21, 0, 4, 0], 3
1122
+ ];
1123
+ var RegisterStreamConsumerInput$ = [3, n0, _RSCI,
1124
+ 0,
1125
+ [_SARN, _CN, _SI, _T],
1126
+ [0, 0, 0, 128 | 0], 2
1127
+ ];
1128
+ var RegisterStreamConsumerOutput$ = [3, n0, _RSCO,
1129
+ 0,
1130
+ [_C],
1131
+ [() => Consumer$], 1
1132
+ ];
1133
+ var RemoveTagsFromStreamInput$ = [3, n0, _RTFSI,
1134
+ 0,
1135
+ [_TK, _SN, _SARN, _SI],
1136
+ [64 | 0, 0, 0, 0], 1
1137
+ ];
1138
+ var SequenceNumberRange$ = [3, n0, _SNR,
1139
+ 0,
1140
+ [_SSN, _ESN],
1141
+ [0, 0], 1
1142
+ ];
1143
+ var Shard$ = [3, n0, _Sh,
1144
+ 0,
1145
+ [_SIh, _HKR, _SNR, _PSI, _APSI],
1146
+ [0, () => HashKeyRange$, () => SequenceNumberRange$, 0, 0], 3
1147
+ ];
1148
+ var ShardFilter$ = [3, n0, _SF,
1149
+ 0,
1150
+ [_Ty, _SIh, _Ti],
1151
+ [0, 0, 4], 1
1152
+ ];
1153
+ var SplitShardInput$ = [3, n0, _SSI,
1154
+ 0,
1155
+ [_STS, _NSHK, _SN, _SARN, _SI],
1156
+ [0, 0, 0, 0, 0], 2
1157
+ ];
1158
+ var StartingPosition$ = [3, n0, _SP,
1159
+ 0,
1160
+ [_Ty, _SNe, _Ti],
1161
+ [0, 0, 4], 1
1162
+ ];
1163
+ var StartStreamEncryptionInput$ = [3, n0, _SSEI,
1164
+ 0,
1165
+ [_ET, _KI, _SN, _SARN, _SI],
1166
+ [0, 0, 0, 0, 0], 2
1167
+ ];
1168
+ var StopStreamEncryptionInput$ = [3, n0, _SSEIt,
1169
+ 0,
1170
+ [_ET, _KI, _SN, _SARN, _SI],
1171
+ [0, 0, 0, 0, 0], 2
1172
+ ];
1173
+ var StreamDescription$ = [3, n0, _SD,
1174
+ 0,
1175
+ [_SN, _SARN, _SSt, _S, _HMSa, _RPH, _SCT, _EMn, _SMD, _ET, _KI],
1176
+ [0, 0, 0, () => ShardList, 2, 1, 4, () => EnhancedMonitoringList, () => StreamModeDetails$, 0, 0], 8
1177
+ ];
1178
+ var StreamDescriptionSummary$ = [3, n0, _SDS,
1179
+ 0,
1180
+ [_SN, _SARN, _SSt, _RPH, _SCT, _EMn, _OSC, _SI, _SMD, _ET, _KI, _CC, _WT, _MRSIKB],
1181
+ [0, 0, 0, 1, 4, () => EnhancedMonitoringList, 1, 0, () => StreamModeDetails$, 0, 0, 1, () => WarmThroughputObject$, 1], 7
1182
+ ];
1183
+ var StreamModeDetails$ = [3, n0, _SMD,
1184
+ 0,
1185
+ [_SM],
1186
+ [0], 1
1187
+ ];
1188
+ var StreamSummary$ = [3, n0, _SStr,
1189
+ 0,
1190
+ [_SN, _SARN, _SSt, _SMD, _SCT],
1191
+ [0, 0, 0, () => StreamModeDetails$, 4], 3
1192
+ ];
1193
+ var SubscribeToShardEvent$ = [3, n0, _STSE,
1194
+ 0,
1195
+ [_R, _CSN, _MBL, _CSh],
1196
+ [() => RecordList, 0, 1, () => ChildShardList], 3
1197
+ ];
1198
+ var SubscribeToShardInput$ = [3, n0, _STSI,
1199
+ 0,
1200
+ [_CARN, _SIh, _SP, _SI],
1201
+ [0, 0, () => StartingPosition$, 0], 3
1202
+ ];
1203
+ var SubscribeToShardOutput$ = [3, n0, _STSO,
1204
+ 0,
1205
+ [_ES],
1206
+ [[() => SubscribeToShardEventStream$, 0]], 1
1207
+ ];
1208
+ var Tag$ = [3, n0, _Ta,
1209
+ 0,
1210
+ [_K, _V],
1211
+ [0, 0], 1
1212
+ ];
1213
+ var TagResourceInput$ = [3, n0, _TRI,
1214
+ 0,
1215
+ [_T, _RARN, _SI],
1216
+ [128 | 0, 0, 0], 2
1217
+ ];
1218
+ var UntagResourceInput$ = [3, n0, _URI,
1219
+ 0,
1220
+ [_TK, _RARN, _SI],
1221
+ [64 | 0, 0, 0], 2
1222
+ ];
1223
+ var UpdateAccountSettingsInput$ = [3, n0, _UASI,
1224
+ 0,
1225
+ [_MTBC],
1226
+ [() => MinimumThroughputBillingCommitmentInput$], 1
1227
+ ];
1228
+ var UpdateAccountSettingsOutput$ = [3, n0, _UASO,
1229
+ 0,
1230
+ [_MTBC],
1231
+ [() => MinimumThroughputBillingCommitmentOutput$]
1232
+ ];
1233
+ var UpdateMaxRecordSizeInput$ = [3, n0, _UMRSI,
1234
+ 0,
1235
+ [_MRSIKB, _SARN, _SI],
1236
+ [1, 0, 0], 1
1237
+ ];
1238
+ var UpdateShardCountInput$ = [3, n0, _USCI,
1239
+ 0,
1240
+ [_TSC, _ST, _SN, _SARN, _SI],
1241
+ [1, 0, 0, 0, 0], 2
1242
+ ];
1243
+ var UpdateShardCountOutput$ = [3, n0, _USCO,
1244
+ 0,
1245
+ [_SN, _CSC, _TSC, _SARN],
1246
+ [0, 1, 1, 0]
1247
+ ];
1248
+ var UpdateStreamModeInput$ = [3, n0, _USMI,
1249
+ 0,
1250
+ [_SARN, _SMD, _SI, _WTMB],
1251
+ [0, () => StreamModeDetails$, 0, 1], 2
1252
+ ];
1253
+ var UpdateStreamWarmThroughputInput$ = [3, n0, _USWTI,
1254
+ 0,
1255
+ [_WTMB, _SARN, _SN, _SI],
1256
+ [1, 0, 0, 0], 1
1257
+ ];
1258
+ var UpdateStreamWarmThroughputOutput$ = [3, n0, _USWTO,
1259
+ 0,
1260
+ [_SARN, _SN, _WT],
1261
+ [0, 0, () => WarmThroughputObject$]
1262
+ ];
1263
+ var WarmThroughputObject$ = [3, n0, _WTO,
1264
+ 0,
1265
+ [_TMB, _CMB],
1266
+ [1, 1]
1267
+ ];
1268
+ var __Unit = "unit";
1269
+ var ChildShardList = [1, n0, _CSL,
1270
+ 0, () => ChildShard$
1271
+ ];
1272
+ var ConsumerList = [1, n0, _CL,
1273
+ 0, () => Consumer$
1274
+ ];
1275
+ var EnhancedMonitoringList = [1, n0, _EML,
1276
+ 0, () => EnhancedMetrics$
1277
+ ];
1278
+ var PutRecordsRequestEntryList = [1, n0, _PRREL,
1279
+ 0, () => PutRecordsRequestEntry$
1280
+ ];
1281
+ var PutRecordsResultEntryList = [1, n0, _PRRELu,
1282
+ 0, () => PutRecordsResultEntry$
1283
+ ];
1284
+ var RecordList = [1, n0, _RL,
1285
+ 0, () => _Record$
1286
+ ];
1287
+ var ShardList = [1, n0, _SLh,
1288
+ 0, () => Shard$
1289
+ ];
1290
+ var StreamSummaryList = [1, n0, _SSL,
1291
+ 0, () => StreamSummary$
1292
+ ];
1293
+ var TagList = [1, n0, _TL,
1294
+ 0, () => Tag$
1295
+ ];
1296
+ var SubscribeToShardEventStream$ = [4, n0, _STSES,
1297
+ { [_st]: 1 },
1298
+ [_STSE, _RNFE, _RIUE, _KMSDE, _KMSISE, _KMSADE, _KMSNFE, _KMSOIR, _KMSTE, _IFE],
1299
+ [() => SubscribeToShardEvent$, [() => ResourceNotFoundException$, 0], [() => ResourceInUseException$, 0], [() => KMSDisabledException$, 0], [() => KMSInvalidStateException$, 0], [() => KMSAccessDeniedException$, 0], [() => KMSNotFoundException$, 0], [() => KMSOptInRequired$, 0], [() => KMSThrottlingException$, 0], [() => InternalFailureException$, 0]]
1300
+ ];
1301
+ var AddTagsToStream$ = [9, n0, _ATTS,
1302
+ 0, () => AddTagsToStreamInput$, () => __Unit
1303
+ ];
1304
+ var CreateStream$ = [9, n0, _CSr,
1305
+ 0, () => CreateStreamInput$, () => __Unit
1306
+ ];
1307
+ var DecreaseStreamRetentionPeriod$ = [9, n0, _DSRP,
1308
+ 0, () => DecreaseStreamRetentionPeriodInput$, () => __Unit
1309
+ ];
1310
+ var DeleteResourcePolicy$ = [9, n0, _DRP,
1311
+ 0, () => DeleteResourcePolicyInput$, () => __Unit
1312
+ ];
1313
+ var DeleteStream$ = [9, n0, _DS,
1314
+ 0, () => DeleteStreamInput$, () => __Unit
1315
+ ];
1316
+ var DeregisterStreamConsumer$ = [9, n0, _DSC,
1317
+ 0, () => DeregisterStreamConsumerInput$, () => __Unit
1318
+ ];
1319
+ var DescribeAccountSettings$ = [9, n0, _DAS,
1320
+ 0, () => DescribeAccountSettingsInput$, () => DescribeAccountSettingsOutput$
1321
+ ];
1322
+ var DescribeLimits$ = [9, n0, _DL,
1323
+ 0, () => DescribeLimitsInput$, () => DescribeLimitsOutput$
1324
+ ];
1325
+ var DescribeStream$ = [9, n0, _DSe,
1326
+ 0, () => DescribeStreamInput$, () => DescribeStreamOutput$
1327
+ ];
1328
+ var DescribeStreamConsumer$ = [9, n0, _DSCe,
1329
+ 0, () => DescribeStreamConsumerInput$, () => DescribeStreamConsumerOutput$
1330
+ ];
1331
+ var DescribeStreamSummary$ = [9, n0, _DSS,
1332
+ 0, () => DescribeStreamSummaryInput$, () => DescribeStreamSummaryOutput$
1333
+ ];
1334
+ var DisableEnhancedMonitoring$ = [9, n0, _DEM,
1335
+ 0, () => DisableEnhancedMonitoringInput$, () => EnhancedMonitoringOutput$
1336
+ ];
1337
+ var EnableEnhancedMonitoring$ = [9, n0, _EEM,
1338
+ 0, () => EnableEnhancedMonitoringInput$, () => EnhancedMonitoringOutput$
1339
+ ];
1340
+ var GetRecords$ = [9, n0, _GR,
1341
+ 0, () => GetRecordsInput$, () => GetRecordsOutput$
1342
+ ];
1343
+ var GetResourcePolicy$ = [9, n0, _GRP,
1344
+ 0, () => GetResourcePolicyInput$, () => GetResourcePolicyOutput$
1345
+ ];
1346
+ var GetShardIterator$ = [9, n0, _GSI,
1347
+ 0, () => GetShardIteratorInput$, () => GetShardIteratorOutput$
1348
+ ];
1349
+ var IncreaseStreamRetentionPeriod$ = [9, n0, _ISRP,
1350
+ 0, () => IncreaseStreamRetentionPeriodInput$, () => __Unit
1351
+ ];
1352
+ var ListShards$ = [9, n0, _LS,
1353
+ 0, () => ListShardsInput$, () => ListShardsOutput$
1354
+ ];
1355
+ var ListStreamConsumers$ = [9, n0, _LSC,
1356
+ 0, () => ListStreamConsumersInput$, () => ListStreamConsumersOutput$
1357
+ ];
1358
+ var ListStreams$ = [9, n0, _LSi,
1359
+ 0, () => ListStreamsInput$, () => ListStreamsOutput$
1360
+ ];
1361
+ var ListTagsForResource$ = [9, n0, _LTFR,
1362
+ 0, () => ListTagsForResourceInput$, () => ListTagsForResourceOutput$
1363
+ ];
1364
+ var ListTagsForStream$ = [9, n0, _LTFS,
1365
+ 0, () => ListTagsForStreamInput$, () => ListTagsForStreamOutput$
1366
+ ];
1367
+ var MergeShards$ = [9, n0, _MS,
1368
+ 0, () => MergeShardsInput$, () => __Unit
1369
+ ];
1370
+ var PutRecord$ = [9, n0, _PR,
1371
+ 0, () => PutRecordInput$, () => PutRecordOutput$
1372
+ ];
1373
+ var PutRecords$ = [9, n0, _PRu,
1374
+ 0, () => PutRecordsInput$, () => PutRecordsOutput$
1375
+ ];
1376
+ var PutResourcePolicy$ = [9, n0, _PRP,
1377
+ 0, () => PutResourcePolicyInput$, () => __Unit
1378
+ ];
1379
+ var RegisterStreamConsumer$ = [9, n0, _RSC,
1380
+ 0, () => RegisterStreamConsumerInput$, () => RegisterStreamConsumerOutput$
1381
+ ];
1382
+ var RemoveTagsFromStream$ = [9, n0, _RTFS,
1383
+ 0, () => RemoveTagsFromStreamInput$, () => __Unit
1384
+ ];
1385
+ var SplitShard$ = [9, n0, _SSp,
1386
+ 0, () => SplitShardInput$, () => __Unit
1387
+ ];
1388
+ var StartStreamEncryption$ = [9, n0, _SSE,
1389
+ 0, () => StartStreamEncryptionInput$, () => __Unit
1390
+ ];
1391
+ var StopStreamEncryption$ = [9, n0, _SSEt,
1392
+ 0, () => StopStreamEncryptionInput$, () => __Unit
1393
+ ];
1394
+ var SubscribeToShard$ = [9, n0, _STSu,
1395
+ 0, () => SubscribeToShardInput$, () => SubscribeToShardOutput$
1396
+ ];
1397
+ var TagResource$ = [9, n0, _TR,
1398
+ 0, () => TagResourceInput$, () => __Unit
1399
+ ];
1400
+ var UntagResource$ = [9, n0, _UR,
1401
+ 0, () => UntagResourceInput$, () => __Unit
1402
+ ];
1403
+ var UpdateAccountSettings$ = [9, n0, _UAS,
1404
+ 0, () => UpdateAccountSettingsInput$, () => UpdateAccountSettingsOutput$
1405
+ ];
1406
+ var UpdateMaxRecordSize$ = [9, n0, _UMRS,
1407
+ 0, () => UpdateMaxRecordSizeInput$, () => __Unit
1408
+ ];
1409
+ var UpdateShardCount$ = [9, n0, _USC,
1410
+ 0, () => UpdateShardCountInput$, () => UpdateShardCountOutput$
1411
+ ];
1412
+ var UpdateStreamMode$ = [9, n0, _USM,
1413
+ 0, () => UpdateStreamModeInput$, () => __Unit
1414
+ ];
1415
+ var UpdateStreamWarmThroughput$ = [9, n0, _USWT,
1416
+ 0, () => UpdateStreamWarmThroughputInput$, () => UpdateStreamWarmThroughputOutput$
1417
+ ];
1418
+
1419
+ const getRuntimeConfig$1 = (config) => {
1420
+ return {
1421
+ apiVersion: "2013-12-02",
1422
+ base64Decoder: config?.base64Decoder ?? fromBase64,
1423
+ base64Encoder: config?.base64Encoder ?? toBase64,
1424
+ disableHostPrefix: config?.disableHostPrefix ?? false,
1425
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
1426
+ extensions: config?.extensions ?? [],
1427
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultKinesisHttpAuthSchemeProvider,
1428
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
1429
+ {
1430
+ schemeId: "aws.auth#sigv4",
1431
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
1432
+ signer: new AwsSdkSigV4Signer(),
1433
+ },
1434
+ ],
1435
+ logger: config?.logger ?? new NoOpLogger(),
1436
+ protocol: config?.protocol ?? AwsJson1_1Protocol,
1437
+ protocolSettings: config?.protocolSettings ?? {
1438
+ defaultNamespace: "com.amazonaws.kinesis",
1439
+ errorTypeRegistries,
1440
+ xmlNamespace: "http://kinesis.amazonaws.com/doc/2013-12-02",
1441
+ version: "2013-12-02",
1442
+ serviceTarget: "Kinesis_20131202",
1443
+ },
1444
+ serviceId: config?.serviceId ?? "Kinesis",
1445
+ urlParser: config?.urlParser ?? parseUrl,
1446
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1447
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
1448
+ };
1449
+ };
1450
+
1451
+ const getRuntimeConfig = (config) => {
1452
+ emitWarningIfUnsupportedVersion(process.version);
1453
+ const defaultsMode = resolveDefaultsModeConfig(config);
1454
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
1455
+ const clientSharedValues = getRuntimeConfig$1(config);
1456
+ emitWarningIfUnsupportedVersion$1(process.version);
1457
+ const loaderConfig = {
1458
+ profile: config?.profile,
1459
+ logger: clientSharedValues.logger,
1460
+ };
1461
+ return {
1462
+ ...clientSharedValues,
1463
+ ...config,
1464
+ runtime: "node",
1465
+ defaultsMode,
1466
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
1467
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
1468
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
1469
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
1470
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
1471
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
1472
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
1473
+ requestHandler: NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({
1474
+ ...await defaultConfigProvider(),
1475
+ disableConcurrentStreams: true
1476
+ }))),
1477
+ retryMode: config?.retryMode ??
1478
+ loadConfig({
1479
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1480
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1481
+ }, config),
1482
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1483
+ streamCollector: config?.streamCollector ?? streamCollector,
1484
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1485
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1486
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
1487
+ };
1488
+ };
1489
+
35
1490
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
36
1491
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
37
1492
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -925,57 +2380,213 @@ const ScalingType = {
925
2380
  UNIFORM_SCALING: "UNIFORM_SCALING",
926
2381
  };
927
2382
 
2383
+ exports.AccessDeniedException = AccessDeniedException;
2384
+ exports.AccessDeniedException$ = AccessDeniedException$;
2385
+ exports.AddTagsToStream$ = AddTagsToStream$;
928
2386
  exports.AddTagsToStreamCommand = AddTagsToStreamCommand;
2387
+ exports.AddTagsToStreamInput$ = AddTagsToStreamInput$;
2388
+ exports.ChildShard$ = ChildShard$;
2389
+ exports.Consumer$ = Consumer$;
2390
+ exports.ConsumerDescription$ = ConsumerDescription$;
929
2391
  exports.ConsumerStatus = ConsumerStatus;
2392
+ exports.CreateStream$ = CreateStream$;
930
2393
  exports.CreateStreamCommand = CreateStreamCommand;
2394
+ exports.CreateStreamInput$ = CreateStreamInput$;
2395
+ exports.DecreaseStreamRetentionPeriod$ = DecreaseStreamRetentionPeriod$;
931
2396
  exports.DecreaseStreamRetentionPeriodCommand = DecreaseStreamRetentionPeriodCommand;
2397
+ exports.DecreaseStreamRetentionPeriodInput$ = DecreaseStreamRetentionPeriodInput$;
2398
+ exports.DeleteResourcePolicy$ = DeleteResourcePolicy$;
932
2399
  exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
2400
+ exports.DeleteResourcePolicyInput$ = DeleteResourcePolicyInput$;
2401
+ exports.DeleteStream$ = DeleteStream$;
933
2402
  exports.DeleteStreamCommand = DeleteStreamCommand;
2403
+ exports.DeleteStreamInput$ = DeleteStreamInput$;
2404
+ exports.DeregisterStreamConsumer$ = DeregisterStreamConsumer$;
934
2405
  exports.DeregisterStreamConsumerCommand = DeregisterStreamConsumerCommand;
2406
+ exports.DeregisterStreamConsumerInput$ = DeregisterStreamConsumerInput$;
2407
+ exports.DescribeAccountSettings$ = DescribeAccountSettings$;
935
2408
  exports.DescribeAccountSettingsCommand = DescribeAccountSettingsCommand;
2409
+ exports.DescribeAccountSettingsInput$ = DescribeAccountSettingsInput$;
2410
+ exports.DescribeAccountSettingsOutput$ = DescribeAccountSettingsOutput$;
2411
+ exports.DescribeLimits$ = DescribeLimits$;
936
2412
  exports.DescribeLimitsCommand = DescribeLimitsCommand;
2413
+ exports.DescribeLimitsInput$ = DescribeLimitsInput$;
2414
+ exports.DescribeLimitsOutput$ = DescribeLimitsOutput$;
2415
+ exports.DescribeStream$ = DescribeStream$;
937
2416
  exports.DescribeStreamCommand = DescribeStreamCommand;
2417
+ exports.DescribeStreamConsumer$ = DescribeStreamConsumer$;
938
2418
  exports.DescribeStreamConsumerCommand = DescribeStreamConsumerCommand;
2419
+ exports.DescribeStreamConsumerInput$ = DescribeStreamConsumerInput$;
2420
+ exports.DescribeStreamConsumerOutput$ = DescribeStreamConsumerOutput$;
2421
+ exports.DescribeStreamInput$ = DescribeStreamInput$;
2422
+ exports.DescribeStreamOutput$ = DescribeStreamOutput$;
2423
+ exports.DescribeStreamSummary$ = DescribeStreamSummary$;
939
2424
  exports.DescribeStreamSummaryCommand = DescribeStreamSummaryCommand;
2425
+ exports.DescribeStreamSummaryInput$ = DescribeStreamSummaryInput$;
2426
+ exports.DescribeStreamSummaryOutput$ = DescribeStreamSummaryOutput$;
2427
+ exports.DisableEnhancedMonitoring$ = DisableEnhancedMonitoring$;
940
2428
  exports.DisableEnhancedMonitoringCommand = DisableEnhancedMonitoringCommand;
2429
+ exports.DisableEnhancedMonitoringInput$ = DisableEnhancedMonitoringInput$;
2430
+ exports.EnableEnhancedMonitoring$ = EnableEnhancedMonitoring$;
941
2431
  exports.EnableEnhancedMonitoringCommand = EnableEnhancedMonitoringCommand;
2432
+ exports.EnableEnhancedMonitoringInput$ = EnableEnhancedMonitoringInput$;
942
2433
  exports.EncryptionType = EncryptionType;
2434
+ exports.EnhancedMetrics$ = EnhancedMetrics$;
2435
+ exports.EnhancedMonitoringOutput$ = EnhancedMonitoringOutput$;
2436
+ exports.ExpiredIteratorException = ExpiredIteratorException;
2437
+ exports.ExpiredIteratorException$ = ExpiredIteratorException$;
2438
+ exports.ExpiredNextTokenException = ExpiredNextTokenException;
2439
+ exports.ExpiredNextTokenException$ = ExpiredNextTokenException$;
2440
+ exports.GetRecords$ = GetRecords$;
943
2441
  exports.GetRecordsCommand = GetRecordsCommand;
2442
+ exports.GetRecordsInput$ = GetRecordsInput$;
2443
+ exports.GetRecordsOutput$ = GetRecordsOutput$;
2444
+ exports.GetResourcePolicy$ = GetResourcePolicy$;
944
2445
  exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
2446
+ exports.GetResourcePolicyInput$ = GetResourcePolicyInput$;
2447
+ exports.GetResourcePolicyOutput$ = GetResourcePolicyOutput$;
2448
+ exports.GetShardIterator$ = GetShardIterator$;
945
2449
  exports.GetShardIteratorCommand = GetShardIteratorCommand;
2450
+ exports.GetShardIteratorInput$ = GetShardIteratorInput$;
2451
+ exports.GetShardIteratorOutput$ = GetShardIteratorOutput$;
2452
+ exports.HashKeyRange$ = HashKeyRange$;
2453
+ exports.IncreaseStreamRetentionPeriod$ = IncreaseStreamRetentionPeriod$;
946
2454
  exports.IncreaseStreamRetentionPeriodCommand = IncreaseStreamRetentionPeriodCommand;
2455
+ exports.IncreaseStreamRetentionPeriodInput$ = IncreaseStreamRetentionPeriodInput$;
2456
+ exports.InternalFailureException = InternalFailureException;
2457
+ exports.InternalFailureException$ = InternalFailureException$;
2458
+ exports.InvalidArgumentException = InvalidArgumentException;
2459
+ exports.InvalidArgumentException$ = InvalidArgumentException$;
2460
+ exports.KMSAccessDeniedException = KMSAccessDeniedException;
2461
+ exports.KMSAccessDeniedException$ = KMSAccessDeniedException$;
2462
+ exports.KMSDisabledException = KMSDisabledException;
2463
+ exports.KMSDisabledException$ = KMSDisabledException$;
2464
+ exports.KMSInvalidStateException = KMSInvalidStateException;
2465
+ exports.KMSInvalidStateException$ = KMSInvalidStateException$;
2466
+ exports.KMSNotFoundException = KMSNotFoundException;
2467
+ exports.KMSNotFoundException$ = KMSNotFoundException$;
2468
+ exports.KMSOptInRequired = KMSOptInRequired;
2469
+ exports.KMSOptInRequired$ = KMSOptInRequired$;
2470
+ exports.KMSThrottlingException = KMSThrottlingException;
2471
+ exports.KMSThrottlingException$ = KMSThrottlingException$;
947
2472
  exports.Kinesis = Kinesis;
948
2473
  exports.KinesisClient = KinesisClient;
2474
+ exports.KinesisServiceException = KinesisServiceException;
2475
+ exports.KinesisServiceException$ = KinesisServiceException$;
2476
+ exports.LimitExceededException = LimitExceededException;
2477
+ exports.LimitExceededException$ = LimitExceededException$;
2478
+ exports.ListShards$ = ListShards$;
949
2479
  exports.ListShardsCommand = ListShardsCommand;
2480
+ exports.ListShardsInput$ = ListShardsInput$;
2481
+ exports.ListShardsOutput$ = ListShardsOutput$;
2482
+ exports.ListStreamConsumers$ = ListStreamConsumers$;
950
2483
  exports.ListStreamConsumersCommand = ListStreamConsumersCommand;
2484
+ exports.ListStreamConsumersInput$ = ListStreamConsumersInput$;
2485
+ exports.ListStreamConsumersOutput$ = ListStreamConsumersOutput$;
2486
+ exports.ListStreams$ = ListStreams$;
951
2487
  exports.ListStreamsCommand = ListStreamsCommand;
2488
+ exports.ListStreamsInput$ = ListStreamsInput$;
2489
+ exports.ListStreamsOutput$ = ListStreamsOutput$;
2490
+ exports.ListTagsForResource$ = ListTagsForResource$;
952
2491
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
2492
+ exports.ListTagsForResourceInput$ = ListTagsForResourceInput$;
2493
+ exports.ListTagsForResourceOutput$ = ListTagsForResourceOutput$;
2494
+ exports.ListTagsForStream$ = ListTagsForStream$;
953
2495
  exports.ListTagsForStreamCommand = ListTagsForStreamCommand;
2496
+ exports.ListTagsForStreamInput$ = ListTagsForStreamInput$;
2497
+ exports.ListTagsForStreamOutput$ = ListTagsForStreamOutput$;
2498
+ exports.MergeShards$ = MergeShards$;
954
2499
  exports.MergeShardsCommand = MergeShardsCommand;
2500
+ exports.MergeShardsInput$ = MergeShardsInput$;
955
2501
  exports.MetricsName = MetricsName;
2502
+ exports.MinimumThroughputBillingCommitmentInput$ = MinimumThroughputBillingCommitmentInput$;
956
2503
  exports.MinimumThroughputBillingCommitmentInputStatus = MinimumThroughputBillingCommitmentInputStatus;
2504
+ exports.MinimumThroughputBillingCommitmentOutput$ = MinimumThroughputBillingCommitmentOutput$;
957
2505
  exports.MinimumThroughputBillingCommitmentOutputStatus = MinimumThroughputBillingCommitmentOutputStatus;
2506
+ exports.ProvisionedThroughputExceededException = ProvisionedThroughputExceededException;
2507
+ exports.ProvisionedThroughputExceededException$ = ProvisionedThroughputExceededException$;
2508
+ exports.PutRecord$ = PutRecord$;
958
2509
  exports.PutRecordCommand = PutRecordCommand;
2510
+ exports.PutRecordInput$ = PutRecordInput$;
2511
+ exports.PutRecordOutput$ = PutRecordOutput$;
2512
+ exports.PutRecords$ = PutRecords$;
959
2513
  exports.PutRecordsCommand = PutRecordsCommand;
2514
+ exports.PutRecordsInput$ = PutRecordsInput$;
2515
+ exports.PutRecordsOutput$ = PutRecordsOutput$;
2516
+ exports.PutRecordsRequestEntry$ = PutRecordsRequestEntry$;
2517
+ exports.PutRecordsResultEntry$ = PutRecordsResultEntry$;
2518
+ exports.PutResourcePolicy$ = PutResourcePolicy$;
960
2519
  exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
2520
+ exports.PutResourcePolicyInput$ = PutResourcePolicyInput$;
2521
+ exports.RegisterStreamConsumer$ = RegisterStreamConsumer$;
961
2522
  exports.RegisterStreamConsumerCommand = RegisterStreamConsumerCommand;
2523
+ exports.RegisterStreamConsumerInput$ = RegisterStreamConsumerInput$;
2524
+ exports.RegisterStreamConsumerOutput$ = RegisterStreamConsumerOutput$;
2525
+ exports.RemoveTagsFromStream$ = RemoveTagsFromStream$;
962
2526
  exports.RemoveTagsFromStreamCommand = RemoveTagsFromStreamCommand;
2527
+ exports.RemoveTagsFromStreamInput$ = RemoveTagsFromStreamInput$;
2528
+ exports.ResourceInUseException = ResourceInUseException;
2529
+ exports.ResourceInUseException$ = ResourceInUseException$;
2530
+ exports.ResourceNotFoundException = ResourceNotFoundException;
2531
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
963
2532
  exports.ScalingType = ScalingType;
2533
+ exports.SequenceNumberRange$ = SequenceNumberRange$;
2534
+ exports.Shard$ = Shard$;
2535
+ exports.ShardFilter$ = ShardFilter$;
964
2536
  exports.ShardFilterType = ShardFilterType;
965
2537
  exports.ShardIteratorType = ShardIteratorType;
2538
+ exports.SplitShard$ = SplitShard$;
966
2539
  exports.SplitShardCommand = SplitShardCommand;
2540
+ exports.SplitShardInput$ = SplitShardInput$;
2541
+ exports.StartStreamEncryption$ = StartStreamEncryption$;
967
2542
  exports.StartStreamEncryptionCommand = StartStreamEncryptionCommand;
2543
+ exports.StartStreamEncryptionInput$ = StartStreamEncryptionInput$;
2544
+ exports.StartingPosition$ = StartingPosition$;
2545
+ exports.StopStreamEncryption$ = StopStreamEncryption$;
968
2546
  exports.StopStreamEncryptionCommand = StopStreamEncryptionCommand;
2547
+ exports.StopStreamEncryptionInput$ = StopStreamEncryptionInput$;
2548
+ exports.StreamDescription$ = StreamDescription$;
2549
+ exports.StreamDescriptionSummary$ = StreamDescriptionSummary$;
969
2550
  exports.StreamMode = StreamMode;
2551
+ exports.StreamModeDetails$ = StreamModeDetails$;
970
2552
  exports.StreamStatus = StreamStatus;
2553
+ exports.StreamSummary$ = StreamSummary$;
2554
+ exports.SubscribeToShard$ = SubscribeToShard$;
971
2555
  exports.SubscribeToShardCommand = SubscribeToShardCommand;
2556
+ exports.SubscribeToShardEvent$ = SubscribeToShardEvent$;
2557
+ exports.SubscribeToShardEventStream$ = SubscribeToShardEventStream$;
2558
+ exports.SubscribeToShardInput$ = SubscribeToShardInput$;
2559
+ exports.SubscribeToShardOutput$ = SubscribeToShardOutput$;
2560
+ exports.Tag$ = Tag$;
2561
+ exports.TagResource$ = TagResource$;
972
2562
  exports.TagResourceCommand = TagResourceCommand;
2563
+ exports.TagResourceInput$ = TagResourceInput$;
2564
+ exports.UntagResource$ = UntagResource$;
973
2565
  exports.UntagResourceCommand = UntagResourceCommand;
2566
+ exports.UntagResourceInput$ = UntagResourceInput$;
2567
+ exports.UpdateAccountSettings$ = UpdateAccountSettings$;
974
2568
  exports.UpdateAccountSettingsCommand = UpdateAccountSettingsCommand;
2569
+ exports.UpdateAccountSettingsInput$ = UpdateAccountSettingsInput$;
2570
+ exports.UpdateAccountSettingsOutput$ = UpdateAccountSettingsOutput$;
2571
+ exports.UpdateMaxRecordSize$ = UpdateMaxRecordSize$;
975
2572
  exports.UpdateMaxRecordSizeCommand = UpdateMaxRecordSizeCommand;
2573
+ exports.UpdateMaxRecordSizeInput$ = UpdateMaxRecordSizeInput$;
2574
+ exports.UpdateShardCount$ = UpdateShardCount$;
976
2575
  exports.UpdateShardCountCommand = UpdateShardCountCommand;
2576
+ exports.UpdateShardCountInput$ = UpdateShardCountInput$;
2577
+ exports.UpdateShardCountOutput$ = UpdateShardCountOutput$;
2578
+ exports.UpdateStreamMode$ = UpdateStreamMode$;
977
2579
  exports.UpdateStreamModeCommand = UpdateStreamModeCommand;
2580
+ exports.UpdateStreamModeInput$ = UpdateStreamModeInput$;
2581
+ exports.UpdateStreamWarmThroughput$ = UpdateStreamWarmThroughput$;
978
2582
  exports.UpdateStreamWarmThroughputCommand = UpdateStreamWarmThroughputCommand;
2583
+ exports.UpdateStreamWarmThroughputInput$ = UpdateStreamWarmThroughputInput$;
2584
+ exports.UpdateStreamWarmThroughputOutput$ = UpdateStreamWarmThroughputOutput$;
2585
+ exports.ValidationException = ValidationException;
2586
+ exports.ValidationException$ = ValidationException$;
2587
+ exports.WarmThroughputObject$ = WarmThroughputObject$;
2588
+ exports._Record$ = _Record$;
2589
+ exports.errorTypeRegistries = errorTypeRegistries;
979
2590
  exports.paginateListStreamConsumers = paginateListStreamConsumers;
980
2591
  exports.paginateListStreams = paginateListStreams;
981
2592
  exports.waitForStreamExists = waitForStreamExists;