@aws-sdk/client-kinesis 3.183.0 → 3.185.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 (45) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/Kinesis.js +125 -118
  4. package/dist-es/KinesisClient.js +29 -23
  5. package/dist-es/commands/AddTagsToStreamCommand.js +29 -22
  6. package/dist-es/commands/CreateStreamCommand.js +29 -22
  7. package/dist-es/commands/DecreaseStreamRetentionPeriodCommand.js +29 -22
  8. package/dist-es/commands/DeleteStreamCommand.js +29 -22
  9. package/dist-es/commands/DeregisterStreamConsumerCommand.js +29 -22
  10. package/dist-es/commands/DescribeLimitsCommand.js +28 -21
  11. package/dist-es/commands/DescribeStreamCommand.js +28 -21
  12. package/dist-es/commands/DescribeStreamConsumerCommand.js +28 -21
  13. package/dist-es/commands/DescribeStreamSummaryCommand.js +28 -21
  14. package/dist-es/commands/DisableEnhancedMonitoringCommand.js +28 -21
  15. package/dist-es/commands/EnableEnhancedMonitoringCommand.js +28 -21
  16. package/dist-es/commands/GetRecordsCommand.js +28 -21
  17. package/dist-es/commands/GetShardIteratorCommand.js +28 -21
  18. package/dist-es/commands/IncreaseStreamRetentionPeriodCommand.js +29 -22
  19. package/dist-es/commands/ListShardsCommand.js +28 -21
  20. package/dist-es/commands/ListStreamConsumersCommand.js +28 -21
  21. package/dist-es/commands/ListStreamsCommand.js +28 -21
  22. package/dist-es/commands/ListTagsForStreamCommand.js +28 -21
  23. package/dist-es/commands/MergeShardsCommand.js +29 -22
  24. package/dist-es/commands/PutRecordCommand.js +28 -21
  25. package/dist-es/commands/PutRecordsCommand.js +28 -21
  26. package/dist-es/commands/RegisterStreamConsumerCommand.js +28 -21
  27. package/dist-es/commands/RemoveTagsFromStreamCommand.js +29 -22
  28. package/dist-es/commands/SplitShardCommand.js +29 -22
  29. package/dist-es/commands/StartStreamEncryptionCommand.js +29 -22
  30. package/dist-es/commands/StopStreamEncryptionCommand.js +29 -22
  31. package/dist-es/commands/SubscribeToShardCommand.js +28 -21
  32. package/dist-es/commands/UpdateShardCountCommand.js +28 -21
  33. package/dist-es/commands/UpdateStreamModeCommand.js +29 -22
  34. package/dist-es/endpoints.js +8 -8
  35. package/dist-es/models/KinesisServiceException.js +10 -5
  36. package/dist-es/models/models_0.js +232 -355
  37. package/dist-es/pagination/ListStreamConsumersPaginator.js +68 -25
  38. package/dist-es/protocols/Aws_json1_1.js +2778 -2071
  39. package/dist-es/runtimeConfig.browser.js +12 -27
  40. package/dist-es/runtimeConfig.js +19 -32
  41. package/dist-es/runtimeConfig.native.js +5 -8
  42. package/dist-es/runtimeConfig.shared.js +11 -8
  43. package/dist-es/waiters/waitForStreamExists.js +48 -28
  44. package/dist-es/waiters/waitForStreamNotExists.js +42 -22
  45. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-kinesis
@@ -2489,10 +2489,10 @@ const deserializeAws_json1_1ValidationException = (output, context) => {
2489
2489
  };
2490
2490
  };
2491
2491
  const deserializeMetadata = (output) => {
2492
- var _a;
2492
+ var _a, _b;
2493
2493
  return ({
2494
2494
  httpStatusCode: output.statusCode,
2495
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
2495
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
2496
2496
  extendedRequestId: output.headers["x-amz-id-2"],
2497
2497
  cfId: output.headers["x-amz-cf-id"],
2498
2498
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { AddTagsToStreamCommand, } from "./commands/AddTagsToStreamCommand";
2
3
  import { CreateStreamCommand, } from "./commands/CreateStreamCommand";
3
4
  import { DecreaseStreamRetentionPeriodCommand, } from "./commands/DecreaseStreamRetentionPeriodCommand";
@@ -28,411 +29,417 @@ import { SubscribeToShardCommand, } from "./commands/SubscribeToShardCommand";
28
29
  import { UpdateShardCountCommand, } from "./commands/UpdateShardCountCommand";
29
30
  import { UpdateStreamModeCommand, } from "./commands/UpdateStreamModeCommand";
30
31
  import { KinesisClient } from "./KinesisClient";
31
- export class Kinesis extends KinesisClient {
32
- addTagsToStream(args, optionsOrCb, cb) {
33
- const command = new AddTagsToStreamCommand(args);
32
+ var Kinesis = (function (_super) {
33
+ __extends(Kinesis, _super);
34
+ function Kinesis() {
35
+ return _super !== null && _super.apply(this, arguments) || this;
36
+ }
37
+ Kinesis.prototype.addTagsToStream = function (args, optionsOrCb, cb) {
38
+ var command = new AddTagsToStreamCommand(args);
34
39
  if (typeof optionsOrCb === "function") {
35
40
  this.send(command, optionsOrCb);
36
41
  }
37
42
  else if (typeof cb === "function") {
38
43
  if (typeof optionsOrCb !== "object")
39
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
44
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
40
45
  this.send(command, optionsOrCb || {}, cb);
41
46
  }
42
47
  else {
43
48
  return this.send(command, optionsOrCb);
44
49
  }
45
- }
46
- createStream(args, optionsOrCb, cb) {
47
- const command = new CreateStreamCommand(args);
50
+ };
51
+ Kinesis.prototype.createStream = function (args, optionsOrCb, cb) {
52
+ var command = new CreateStreamCommand(args);
48
53
  if (typeof optionsOrCb === "function") {
49
54
  this.send(command, optionsOrCb);
50
55
  }
51
56
  else if (typeof cb === "function") {
52
57
  if (typeof optionsOrCb !== "object")
53
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
58
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
54
59
  this.send(command, optionsOrCb || {}, cb);
55
60
  }
56
61
  else {
57
62
  return this.send(command, optionsOrCb);
58
63
  }
59
- }
60
- decreaseStreamRetentionPeriod(args, optionsOrCb, cb) {
61
- const command = new DecreaseStreamRetentionPeriodCommand(args);
64
+ };
65
+ Kinesis.prototype.decreaseStreamRetentionPeriod = function (args, optionsOrCb, cb) {
66
+ var command = new DecreaseStreamRetentionPeriodCommand(args);
62
67
  if (typeof optionsOrCb === "function") {
63
68
  this.send(command, optionsOrCb);
64
69
  }
65
70
  else if (typeof cb === "function") {
66
71
  if (typeof optionsOrCb !== "object")
67
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
72
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
68
73
  this.send(command, optionsOrCb || {}, cb);
69
74
  }
70
75
  else {
71
76
  return this.send(command, optionsOrCb);
72
77
  }
73
- }
74
- deleteStream(args, optionsOrCb, cb) {
75
- const command = new DeleteStreamCommand(args);
78
+ };
79
+ Kinesis.prototype.deleteStream = function (args, optionsOrCb, cb) {
80
+ var command = new DeleteStreamCommand(args);
76
81
  if (typeof optionsOrCb === "function") {
77
82
  this.send(command, optionsOrCb);
78
83
  }
79
84
  else if (typeof cb === "function") {
80
85
  if (typeof optionsOrCb !== "object")
81
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
86
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
82
87
  this.send(command, optionsOrCb || {}, cb);
83
88
  }
84
89
  else {
85
90
  return this.send(command, optionsOrCb);
86
91
  }
87
- }
88
- deregisterStreamConsumer(args, optionsOrCb, cb) {
89
- const command = new DeregisterStreamConsumerCommand(args);
92
+ };
93
+ Kinesis.prototype.deregisterStreamConsumer = function (args, optionsOrCb, cb) {
94
+ var command = new DeregisterStreamConsumerCommand(args);
90
95
  if (typeof optionsOrCb === "function") {
91
96
  this.send(command, optionsOrCb);
92
97
  }
93
98
  else if (typeof cb === "function") {
94
99
  if (typeof optionsOrCb !== "object")
95
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
100
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
96
101
  this.send(command, optionsOrCb || {}, cb);
97
102
  }
98
103
  else {
99
104
  return this.send(command, optionsOrCb);
100
105
  }
101
- }
102
- describeLimits(args, optionsOrCb, cb) {
103
- const command = new DescribeLimitsCommand(args);
106
+ };
107
+ Kinesis.prototype.describeLimits = function (args, optionsOrCb, cb) {
108
+ var command = new DescribeLimitsCommand(args);
104
109
  if (typeof optionsOrCb === "function") {
105
110
  this.send(command, optionsOrCb);
106
111
  }
107
112
  else if (typeof cb === "function") {
108
113
  if (typeof optionsOrCb !== "object")
109
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
114
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
110
115
  this.send(command, optionsOrCb || {}, cb);
111
116
  }
112
117
  else {
113
118
  return this.send(command, optionsOrCb);
114
119
  }
115
- }
116
- describeStream(args, optionsOrCb, cb) {
117
- const command = new DescribeStreamCommand(args);
120
+ };
121
+ Kinesis.prototype.describeStream = function (args, optionsOrCb, cb) {
122
+ var command = new DescribeStreamCommand(args);
118
123
  if (typeof optionsOrCb === "function") {
119
124
  this.send(command, optionsOrCb);
120
125
  }
121
126
  else if (typeof cb === "function") {
122
127
  if (typeof optionsOrCb !== "object")
123
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
128
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
124
129
  this.send(command, optionsOrCb || {}, cb);
125
130
  }
126
131
  else {
127
132
  return this.send(command, optionsOrCb);
128
133
  }
129
- }
130
- describeStreamConsumer(args, optionsOrCb, cb) {
131
- const command = new DescribeStreamConsumerCommand(args);
134
+ };
135
+ Kinesis.prototype.describeStreamConsumer = function (args, optionsOrCb, cb) {
136
+ var command = new DescribeStreamConsumerCommand(args);
132
137
  if (typeof optionsOrCb === "function") {
133
138
  this.send(command, optionsOrCb);
134
139
  }
135
140
  else if (typeof cb === "function") {
136
141
  if (typeof optionsOrCb !== "object")
137
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
142
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
138
143
  this.send(command, optionsOrCb || {}, cb);
139
144
  }
140
145
  else {
141
146
  return this.send(command, optionsOrCb);
142
147
  }
143
- }
144
- describeStreamSummary(args, optionsOrCb, cb) {
145
- const command = new DescribeStreamSummaryCommand(args);
148
+ };
149
+ Kinesis.prototype.describeStreamSummary = function (args, optionsOrCb, cb) {
150
+ var command = new DescribeStreamSummaryCommand(args);
146
151
  if (typeof optionsOrCb === "function") {
147
152
  this.send(command, optionsOrCb);
148
153
  }
149
154
  else if (typeof cb === "function") {
150
155
  if (typeof optionsOrCb !== "object")
151
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
156
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
152
157
  this.send(command, optionsOrCb || {}, cb);
153
158
  }
154
159
  else {
155
160
  return this.send(command, optionsOrCb);
156
161
  }
157
- }
158
- disableEnhancedMonitoring(args, optionsOrCb, cb) {
159
- const command = new DisableEnhancedMonitoringCommand(args);
162
+ };
163
+ Kinesis.prototype.disableEnhancedMonitoring = function (args, optionsOrCb, cb) {
164
+ var command = new DisableEnhancedMonitoringCommand(args);
160
165
  if (typeof optionsOrCb === "function") {
161
166
  this.send(command, optionsOrCb);
162
167
  }
163
168
  else if (typeof cb === "function") {
164
169
  if (typeof optionsOrCb !== "object")
165
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
170
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
166
171
  this.send(command, optionsOrCb || {}, cb);
167
172
  }
168
173
  else {
169
174
  return this.send(command, optionsOrCb);
170
175
  }
171
- }
172
- enableEnhancedMonitoring(args, optionsOrCb, cb) {
173
- const command = new EnableEnhancedMonitoringCommand(args);
176
+ };
177
+ Kinesis.prototype.enableEnhancedMonitoring = function (args, optionsOrCb, cb) {
178
+ var command = new EnableEnhancedMonitoringCommand(args);
174
179
  if (typeof optionsOrCb === "function") {
175
180
  this.send(command, optionsOrCb);
176
181
  }
177
182
  else if (typeof cb === "function") {
178
183
  if (typeof optionsOrCb !== "object")
179
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
184
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
180
185
  this.send(command, optionsOrCb || {}, cb);
181
186
  }
182
187
  else {
183
188
  return this.send(command, optionsOrCb);
184
189
  }
185
- }
186
- getRecords(args, optionsOrCb, cb) {
187
- const command = new GetRecordsCommand(args);
190
+ };
191
+ Kinesis.prototype.getRecords = function (args, optionsOrCb, cb) {
192
+ var command = new GetRecordsCommand(args);
188
193
  if (typeof optionsOrCb === "function") {
189
194
  this.send(command, optionsOrCb);
190
195
  }
191
196
  else if (typeof cb === "function") {
192
197
  if (typeof optionsOrCb !== "object")
193
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
198
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
194
199
  this.send(command, optionsOrCb || {}, cb);
195
200
  }
196
201
  else {
197
202
  return this.send(command, optionsOrCb);
198
203
  }
199
- }
200
- getShardIterator(args, optionsOrCb, cb) {
201
- const command = new GetShardIteratorCommand(args);
204
+ };
205
+ Kinesis.prototype.getShardIterator = function (args, optionsOrCb, cb) {
206
+ var command = new GetShardIteratorCommand(args);
202
207
  if (typeof optionsOrCb === "function") {
203
208
  this.send(command, optionsOrCb);
204
209
  }
205
210
  else if (typeof cb === "function") {
206
211
  if (typeof optionsOrCb !== "object")
207
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
212
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
208
213
  this.send(command, optionsOrCb || {}, cb);
209
214
  }
210
215
  else {
211
216
  return this.send(command, optionsOrCb);
212
217
  }
213
- }
214
- increaseStreamRetentionPeriod(args, optionsOrCb, cb) {
215
- const command = new IncreaseStreamRetentionPeriodCommand(args);
218
+ };
219
+ Kinesis.prototype.increaseStreamRetentionPeriod = function (args, optionsOrCb, cb) {
220
+ var command = new IncreaseStreamRetentionPeriodCommand(args);
216
221
  if (typeof optionsOrCb === "function") {
217
222
  this.send(command, optionsOrCb);
218
223
  }
219
224
  else if (typeof cb === "function") {
220
225
  if (typeof optionsOrCb !== "object")
221
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
226
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
222
227
  this.send(command, optionsOrCb || {}, cb);
223
228
  }
224
229
  else {
225
230
  return this.send(command, optionsOrCb);
226
231
  }
227
- }
228
- listShards(args, optionsOrCb, cb) {
229
- const command = new ListShardsCommand(args);
232
+ };
233
+ Kinesis.prototype.listShards = function (args, optionsOrCb, cb) {
234
+ var command = new ListShardsCommand(args);
230
235
  if (typeof optionsOrCb === "function") {
231
236
  this.send(command, optionsOrCb);
232
237
  }
233
238
  else if (typeof cb === "function") {
234
239
  if (typeof optionsOrCb !== "object")
235
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
240
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
236
241
  this.send(command, optionsOrCb || {}, cb);
237
242
  }
238
243
  else {
239
244
  return this.send(command, optionsOrCb);
240
245
  }
241
- }
242
- listStreamConsumers(args, optionsOrCb, cb) {
243
- const command = new ListStreamConsumersCommand(args);
246
+ };
247
+ Kinesis.prototype.listStreamConsumers = function (args, optionsOrCb, cb) {
248
+ var command = new ListStreamConsumersCommand(args);
244
249
  if (typeof optionsOrCb === "function") {
245
250
  this.send(command, optionsOrCb);
246
251
  }
247
252
  else if (typeof cb === "function") {
248
253
  if (typeof optionsOrCb !== "object")
249
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
254
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
250
255
  this.send(command, optionsOrCb || {}, cb);
251
256
  }
252
257
  else {
253
258
  return this.send(command, optionsOrCb);
254
259
  }
255
- }
256
- listStreams(args, optionsOrCb, cb) {
257
- const command = new ListStreamsCommand(args);
260
+ };
261
+ Kinesis.prototype.listStreams = function (args, optionsOrCb, cb) {
262
+ var command = new ListStreamsCommand(args);
258
263
  if (typeof optionsOrCb === "function") {
259
264
  this.send(command, optionsOrCb);
260
265
  }
261
266
  else if (typeof cb === "function") {
262
267
  if (typeof optionsOrCb !== "object")
263
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
268
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
264
269
  this.send(command, optionsOrCb || {}, cb);
265
270
  }
266
271
  else {
267
272
  return this.send(command, optionsOrCb);
268
273
  }
269
- }
270
- listTagsForStream(args, optionsOrCb, cb) {
271
- const command = new ListTagsForStreamCommand(args);
274
+ };
275
+ Kinesis.prototype.listTagsForStream = function (args, optionsOrCb, cb) {
276
+ var command = new ListTagsForStreamCommand(args);
272
277
  if (typeof optionsOrCb === "function") {
273
278
  this.send(command, optionsOrCb);
274
279
  }
275
280
  else if (typeof cb === "function") {
276
281
  if (typeof optionsOrCb !== "object")
277
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
282
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
278
283
  this.send(command, optionsOrCb || {}, cb);
279
284
  }
280
285
  else {
281
286
  return this.send(command, optionsOrCb);
282
287
  }
283
- }
284
- mergeShards(args, optionsOrCb, cb) {
285
- const command = new MergeShardsCommand(args);
288
+ };
289
+ Kinesis.prototype.mergeShards = function (args, optionsOrCb, cb) {
290
+ var command = new MergeShardsCommand(args);
286
291
  if (typeof optionsOrCb === "function") {
287
292
  this.send(command, optionsOrCb);
288
293
  }
289
294
  else if (typeof cb === "function") {
290
295
  if (typeof optionsOrCb !== "object")
291
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
296
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
292
297
  this.send(command, optionsOrCb || {}, cb);
293
298
  }
294
299
  else {
295
300
  return this.send(command, optionsOrCb);
296
301
  }
297
- }
298
- putRecord(args, optionsOrCb, cb) {
299
- const command = new PutRecordCommand(args);
302
+ };
303
+ Kinesis.prototype.putRecord = function (args, optionsOrCb, cb) {
304
+ var command = new PutRecordCommand(args);
300
305
  if (typeof optionsOrCb === "function") {
301
306
  this.send(command, optionsOrCb);
302
307
  }
303
308
  else if (typeof cb === "function") {
304
309
  if (typeof optionsOrCb !== "object")
305
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
310
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
306
311
  this.send(command, optionsOrCb || {}, cb);
307
312
  }
308
313
  else {
309
314
  return this.send(command, optionsOrCb);
310
315
  }
311
- }
312
- putRecords(args, optionsOrCb, cb) {
313
- const command = new PutRecordsCommand(args);
316
+ };
317
+ Kinesis.prototype.putRecords = function (args, optionsOrCb, cb) {
318
+ var command = new PutRecordsCommand(args);
314
319
  if (typeof optionsOrCb === "function") {
315
320
  this.send(command, optionsOrCb);
316
321
  }
317
322
  else if (typeof cb === "function") {
318
323
  if (typeof optionsOrCb !== "object")
319
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
324
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
320
325
  this.send(command, optionsOrCb || {}, cb);
321
326
  }
322
327
  else {
323
328
  return this.send(command, optionsOrCb);
324
329
  }
325
- }
326
- registerStreamConsumer(args, optionsOrCb, cb) {
327
- const command = new RegisterStreamConsumerCommand(args);
330
+ };
331
+ Kinesis.prototype.registerStreamConsumer = function (args, optionsOrCb, cb) {
332
+ var command = new RegisterStreamConsumerCommand(args);
328
333
  if (typeof optionsOrCb === "function") {
329
334
  this.send(command, optionsOrCb);
330
335
  }
331
336
  else if (typeof cb === "function") {
332
337
  if (typeof optionsOrCb !== "object")
333
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
338
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
334
339
  this.send(command, optionsOrCb || {}, cb);
335
340
  }
336
341
  else {
337
342
  return this.send(command, optionsOrCb);
338
343
  }
339
- }
340
- removeTagsFromStream(args, optionsOrCb, cb) {
341
- const command = new RemoveTagsFromStreamCommand(args);
344
+ };
345
+ Kinesis.prototype.removeTagsFromStream = function (args, optionsOrCb, cb) {
346
+ var command = new RemoveTagsFromStreamCommand(args);
342
347
  if (typeof optionsOrCb === "function") {
343
348
  this.send(command, optionsOrCb);
344
349
  }
345
350
  else if (typeof cb === "function") {
346
351
  if (typeof optionsOrCb !== "object")
347
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
352
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
348
353
  this.send(command, optionsOrCb || {}, cb);
349
354
  }
350
355
  else {
351
356
  return this.send(command, optionsOrCb);
352
357
  }
353
- }
354
- splitShard(args, optionsOrCb, cb) {
355
- const command = new SplitShardCommand(args);
358
+ };
359
+ Kinesis.prototype.splitShard = function (args, optionsOrCb, cb) {
360
+ var command = new SplitShardCommand(args);
356
361
  if (typeof optionsOrCb === "function") {
357
362
  this.send(command, optionsOrCb);
358
363
  }
359
364
  else if (typeof cb === "function") {
360
365
  if (typeof optionsOrCb !== "object")
361
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
366
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
362
367
  this.send(command, optionsOrCb || {}, cb);
363
368
  }
364
369
  else {
365
370
  return this.send(command, optionsOrCb);
366
371
  }
367
- }
368
- startStreamEncryption(args, optionsOrCb, cb) {
369
- const command = new StartStreamEncryptionCommand(args);
372
+ };
373
+ Kinesis.prototype.startStreamEncryption = function (args, optionsOrCb, cb) {
374
+ var command = new StartStreamEncryptionCommand(args);
370
375
  if (typeof optionsOrCb === "function") {
371
376
  this.send(command, optionsOrCb);
372
377
  }
373
378
  else if (typeof cb === "function") {
374
379
  if (typeof optionsOrCb !== "object")
375
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
380
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
376
381
  this.send(command, optionsOrCb || {}, cb);
377
382
  }
378
383
  else {
379
384
  return this.send(command, optionsOrCb);
380
385
  }
381
- }
382
- stopStreamEncryption(args, optionsOrCb, cb) {
383
- const command = new StopStreamEncryptionCommand(args);
386
+ };
387
+ Kinesis.prototype.stopStreamEncryption = function (args, optionsOrCb, cb) {
388
+ var command = new StopStreamEncryptionCommand(args);
384
389
  if (typeof optionsOrCb === "function") {
385
390
  this.send(command, optionsOrCb);
386
391
  }
387
392
  else if (typeof cb === "function") {
388
393
  if (typeof optionsOrCb !== "object")
389
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
394
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
390
395
  this.send(command, optionsOrCb || {}, cb);
391
396
  }
392
397
  else {
393
398
  return this.send(command, optionsOrCb);
394
399
  }
395
- }
396
- subscribeToShard(args, optionsOrCb, cb) {
397
- const command = new SubscribeToShardCommand(args);
400
+ };
401
+ Kinesis.prototype.subscribeToShard = function (args, optionsOrCb, cb) {
402
+ var command = new SubscribeToShardCommand(args);
398
403
  if (typeof optionsOrCb === "function") {
399
404
  this.send(command, optionsOrCb);
400
405
  }
401
406
  else if (typeof cb === "function") {
402
407
  if (typeof optionsOrCb !== "object")
403
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
408
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
404
409
  this.send(command, optionsOrCb || {}, cb);
405
410
  }
406
411
  else {
407
412
  return this.send(command, optionsOrCb);
408
413
  }
409
- }
410
- updateShardCount(args, optionsOrCb, cb) {
411
- const command = new UpdateShardCountCommand(args);
414
+ };
415
+ Kinesis.prototype.updateShardCount = function (args, optionsOrCb, cb) {
416
+ var command = new UpdateShardCountCommand(args);
412
417
  if (typeof optionsOrCb === "function") {
413
418
  this.send(command, optionsOrCb);
414
419
  }
415
420
  else if (typeof cb === "function") {
416
421
  if (typeof optionsOrCb !== "object")
417
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
422
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
418
423
  this.send(command, optionsOrCb || {}, cb);
419
424
  }
420
425
  else {
421
426
  return this.send(command, optionsOrCb);
422
427
  }
423
- }
424
- updateStreamMode(args, optionsOrCb, cb) {
425
- const command = new UpdateStreamModeCommand(args);
428
+ };
429
+ Kinesis.prototype.updateStreamMode = function (args, optionsOrCb, cb) {
430
+ var command = new UpdateStreamModeCommand(args);
426
431
  if (typeof optionsOrCb === "function") {
427
432
  this.send(command, optionsOrCb);
428
433
  }
429
434
  else if (typeof cb === "function") {
430
435
  if (typeof optionsOrCb !== "object")
431
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
436
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
432
437
  this.send(command, optionsOrCb || {}, cb);
433
438
  }
434
439
  else {
435
440
  return this.send(command, optionsOrCb);
436
441
  }
437
- }
438
- }
442
+ };
443
+ return Kinesis;
444
+ }(KinesisClient));
445
+ export { Kinesis };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { resolveEventStreamSerdeConfig, } from "@aws-sdk/eventstream-serde-config-resolver";
3
4
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
@@ -9,27 +10,32 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
10
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
11
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
12
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- export class KinesisClient extends __Client {
13
- constructor(configuration) {
14
- const _config_0 = __getRuntimeConfig(configuration);
15
- const _config_1 = resolveRegionConfig(_config_0);
16
- const _config_2 = resolveEndpointsConfig(_config_1);
17
- const _config_3 = resolveRetryConfig(_config_2);
18
- const _config_4 = resolveHostHeaderConfig(_config_3);
19
- const _config_5 = resolveAwsAuthConfig(_config_4);
20
- const _config_6 = resolveUserAgentConfig(_config_5);
21
- const _config_7 = resolveEventStreamSerdeConfig(_config_6);
22
- super(_config_7);
23
- this.config = _config_7;
24
- this.middlewareStack.use(getRetryPlugin(this.config));
25
- this.middlewareStack.use(getContentLengthPlugin(this.config));
26
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
27
- this.middlewareStack.use(getLoggerPlugin(this.config));
28
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
29
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
30
- this.middlewareStack.use(getUserAgentPlugin(this.config));
13
+ var KinesisClient = (function (_super) {
14
+ __extends(KinesisClient, _super);
15
+ function KinesisClient(configuration) {
16
+ var _this = this;
17
+ var _config_0 = __getRuntimeConfig(configuration);
18
+ var _config_1 = resolveRegionConfig(_config_0);
19
+ var _config_2 = resolveEndpointsConfig(_config_1);
20
+ var _config_3 = resolveRetryConfig(_config_2);
21
+ var _config_4 = resolveHostHeaderConfig(_config_3);
22
+ var _config_5 = resolveAwsAuthConfig(_config_4);
23
+ var _config_6 = resolveUserAgentConfig(_config_5);
24
+ var _config_7 = resolveEventStreamSerdeConfig(_config_6);
25
+ _this = _super.call(this, _config_7) || this;
26
+ _this.config = _config_7;
27
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
28
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
29
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
30
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
31
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
32
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
33
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
34
+ return _this;
31
35
  }
32
- destroy() {
33
- super.destroy();
34
- }
35
- }
36
+ KinesisClient.prototype.destroy = function () {
37
+ _super.prototype.destroy.call(this);
38
+ };
39
+ return KinesisClient;
40
+ }(__Client));
41
+ export { KinesisClient };