@aws-sdk/client-kinesis 3.180.0 → 3.183.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 +20 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +35 -29
  3. package/dist-es/Kinesis.js +118 -125
  4. package/dist-es/KinesisClient.js +23 -29
  5. package/dist-es/commands/AddTagsToStreamCommand.js +22 -29
  6. package/dist-es/commands/CreateStreamCommand.js +22 -29
  7. package/dist-es/commands/DecreaseStreamRetentionPeriodCommand.js +22 -29
  8. package/dist-es/commands/DeleteStreamCommand.js +22 -29
  9. package/dist-es/commands/DeregisterStreamConsumerCommand.js +22 -29
  10. package/dist-es/commands/DescribeLimitsCommand.js +21 -28
  11. package/dist-es/commands/DescribeStreamCommand.js +21 -28
  12. package/dist-es/commands/DescribeStreamConsumerCommand.js +21 -28
  13. package/dist-es/commands/DescribeStreamSummaryCommand.js +21 -28
  14. package/dist-es/commands/DisableEnhancedMonitoringCommand.js +21 -28
  15. package/dist-es/commands/EnableEnhancedMonitoringCommand.js +21 -28
  16. package/dist-es/commands/GetRecordsCommand.js +21 -28
  17. package/dist-es/commands/GetShardIteratorCommand.js +21 -28
  18. package/dist-es/commands/IncreaseStreamRetentionPeriodCommand.js +22 -29
  19. package/dist-es/commands/ListShardsCommand.js +21 -28
  20. package/dist-es/commands/ListStreamConsumersCommand.js +21 -28
  21. package/dist-es/commands/ListStreamsCommand.js +21 -28
  22. package/dist-es/commands/ListTagsForStreamCommand.js +21 -28
  23. package/dist-es/commands/MergeShardsCommand.js +22 -29
  24. package/dist-es/commands/PutRecordCommand.js +21 -28
  25. package/dist-es/commands/PutRecordsCommand.js +21 -28
  26. package/dist-es/commands/RegisterStreamConsumerCommand.js +21 -28
  27. package/dist-es/commands/RemoveTagsFromStreamCommand.js +22 -29
  28. package/dist-es/commands/SplitShardCommand.js +22 -29
  29. package/dist-es/commands/StartStreamEncryptionCommand.js +22 -29
  30. package/dist-es/commands/StopStreamEncryptionCommand.js +22 -29
  31. package/dist-es/commands/SubscribeToShardCommand.js +21 -28
  32. package/dist-es/commands/UpdateShardCountCommand.js +21 -28
  33. package/dist-es/commands/UpdateStreamModeCommand.js +22 -29
  34. package/dist-es/endpoints.js +8 -8
  35. package/dist-es/models/KinesisServiceException.js +5 -10
  36. package/dist-es/models/models_0.js +355 -232
  37. package/dist-es/pagination/ListStreamConsumersPaginator.js +25 -68
  38. package/dist-es/protocols/Aws_json1_1.js +2071 -2765
  39. package/dist-es/runtimeConfig.browser.js +27 -12
  40. package/dist-es/runtimeConfig.js +32 -19
  41. package/dist-es/runtimeConfig.native.js +8 -5
  42. package/dist-es/runtimeConfig.shared.js +8 -11
  43. package/dist-es/waiters/waitForStreamExists.js +28 -48
  44. package/dist-es/waiters/waitForStreamNotExists.js +22 -42
  45. package/package.json +37 -37
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { PutRecordsInputFilterSensitiveLog, PutRecordsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PutRecordsCommand, serializeAws_json1_1PutRecordsCommand, } from "../protocols/Aws_json1_1";
6
- var PutRecordsCommand = (function (_super) {
7
- __extends(PutRecordsCommand, _super);
8
- function PutRecordsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutRecordsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutRecordsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KinesisClient";
18
- var commandName = "PutRecordsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KinesisClient";
15
+ const commandName = "PutRecordsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutRecordsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutRecordsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutRecordsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1PutRecordsCommand(input, context);
33
- };
34
- PutRecordsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PutRecordsCommand(output, context);
36
- };
37
- return PutRecordsCommand;
38
- }($Command));
39
- export { PutRecordsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { RegisterStreamConsumerInputFilterSensitiveLog, RegisterStreamConsumerOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1RegisterStreamConsumerCommand, serializeAws_json1_1RegisterStreamConsumerCommand, } from "../protocols/Aws_json1_1";
6
- var RegisterStreamConsumerCommand = (function (_super) {
7
- __extends(RegisterStreamConsumerCommand, _super);
8
- function RegisterStreamConsumerCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RegisterStreamConsumerCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RegisterStreamConsumerCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KinesisClient";
18
- var commandName = "RegisterStreamConsumerCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KinesisClient";
15
+ const commandName = "RegisterStreamConsumerCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RegisterStreamConsumerInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: RegisterStreamConsumerOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- RegisterStreamConsumerCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1RegisterStreamConsumerCommand(input, context);
33
- };
34
- RegisterStreamConsumerCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1RegisterStreamConsumerCommand(output, context);
36
- };
37
- return RegisterStreamConsumerCommand;
38
- }($Command));
39
- export { RegisterStreamConsumerCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { RemoveTagsFromStreamInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1RemoveTagsFromStreamCommand, serializeAws_json1_1RemoveTagsFromStreamCommand, } from "../protocols/Aws_json1_1";
6
- var RemoveTagsFromStreamCommand = (function (_super) {
7
- __extends(RemoveTagsFromStreamCommand, _super);
8
- function RemoveTagsFromStreamCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RemoveTagsFromStreamCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RemoveTagsFromStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KinesisClient";
18
- var commandName = "RemoveTagsFromStreamCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KinesisClient";
15
+ const commandName = "RemoveTagsFromStreamCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RemoveTagsFromStreamInputFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- RemoveTagsFromStreamCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1RemoveTagsFromStreamCommand(input, context);
33
- };
34
- RemoveTagsFromStreamCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1RemoveTagsFromStreamCommand(output, context);
36
- };
37
- return RemoveTagsFromStreamCommand;
38
- }($Command));
39
- export { RemoveTagsFromStreamCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { SplitShardInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1SplitShardCommand, serializeAws_json1_1SplitShardCommand, } from "../protocols/Aws_json1_1";
6
- var SplitShardCommand = (function (_super) {
7
- __extends(SplitShardCommand, _super);
8
- function SplitShardCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SplitShardCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SplitShardCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KinesisClient";
18
- var commandName = "SplitShardCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KinesisClient";
15
+ const commandName = "SplitShardCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SplitShardInputFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- SplitShardCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1SplitShardCommand(input, context);
33
- };
34
- SplitShardCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1SplitShardCommand(output, context);
36
- };
37
- return SplitShardCommand;
38
- }($Command));
39
- export { SplitShardCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { StartStreamEncryptionInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StartStreamEncryptionCommand, serializeAws_json1_1StartStreamEncryptionCommand, } from "../protocols/Aws_json1_1";
6
- var StartStreamEncryptionCommand = (function (_super) {
7
- __extends(StartStreamEncryptionCommand, _super);
8
- function StartStreamEncryptionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StartStreamEncryptionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StartStreamEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KinesisClient";
18
- var commandName = "StartStreamEncryptionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KinesisClient";
15
+ const commandName = "StartStreamEncryptionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StartStreamEncryptionInputFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StartStreamEncryptionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1StartStreamEncryptionCommand(input, context);
33
- };
34
- StartStreamEncryptionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StartStreamEncryptionCommand(output, context);
36
- };
37
- return StartStreamEncryptionCommand;
38
- }($Command));
39
- export { StartStreamEncryptionCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { StopStreamEncryptionInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StopStreamEncryptionCommand, serializeAws_json1_1StopStreamEncryptionCommand, } from "../protocols/Aws_json1_1";
6
- var StopStreamEncryptionCommand = (function (_super) {
7
- __extends(StopStreamEncryptionCommand, _super);
8
- function StopStreamEncryptionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StopStreamEncryptionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopStreamEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KinesisClient";
18
- var commandName = "StopStreamEncryptionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KinesisClient";
15
+ const commandName = "StopStreamEncryptionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StopStreamEncryptionInputFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StopStreamEncryptionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1StopStreamEncryptionCommand(input, context);
33
- };
34
- StopStreamEncryptionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StopStreamEncryptionCommand(output, context);
36
- };
37
- return StopStreamEncryptionCommand;
38
- }($Command));
39
- export { StopStreamEncryptionCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { SubscribeToShardInputFilterSensitiveLog, SubscribeToShardOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1SubscribeToShardCommand, serializeAws_json1_1SubscribeToShardCommand, } from "../protocols/Aws_json1_1";
6
- var SubscribeToShardCommand = (function (_super) {
7
- __extends(SubscribeToShardCommand, _super);
8
- function SubscribeToShardCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SubscribeToShardCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SubscribeToShardCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KinesisClient";
18
- var commandName = "SubscribeToShardCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KinesisClient";
15
+ const commandName = "SubscribeToShardCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SubscribeToShardInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: SubscribeToShardOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- SubscribeToShardCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1SubscribeToShardCommand(input, context);
33
- };
34
- SubscribeToShardCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1SubscribeToShardCommand(output, context);
36
- };
37
- return SubscribeToShardCommand;
38
- }($Command));
39
- export { SubscribeToShardCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateShardCountInputFilterSensitiveLog, UpdateShardCountOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateShardCountCommand, serializeAws_json1_1UpdateShardCountCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateShardCountCommand = (function (_super) {
7
- __extends(UpdateShardCountCommand, _super);
8
- function UpdateShardCountCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateShardCountCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateShardCountCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KinesisClient";
18
- var commandName = "UpdateShardCountCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KinesisClient";
15
+ const commandName = "UpdateShardCountCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateShardCountInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateShardCountOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateShardCountCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdateShardCountCommand(input, context);
33
- };
34
- UpdateShardCountCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateShardCountCommand(output, context);
36
- };
37
- return UpdateShardCountCommand;
38
- }($Command));
39
- export { UpdateShardCountCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateStreamModeInputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateStreamModeCommand, serializeAws_json1_1UpdateStreamModeCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateStreamModeCommand = (function (_super) {
7
- __extends(UpdateStreamModeCommand, _super);
8
- function UpdateStreamModeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateStreamModeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateStreamModeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "KinesisClient";
18
- var commandName = "UpdateStreamModeCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "KinesisClient";
15
+ const commandName = "UpdateStreamModeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateStreamModeInputFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateStreamModeCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdateStreamModeCommand(input, context);
33
- };
34
- UpdateStreamModeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateStreamModeCommand(output, context);
36
- };
37
- return UpdateStreamModeCommand;
38
- }($Command));
39
- export { UpdateStreamModeCommand };
31
+ }
32
+ }
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "us-east-1": {
5
4
  variants: [
6
5
  {
@@ -52,7 +51,7 @@ var regionHash = {
52
51
  ],
53
52
  },
54
53
  };
55
- var partitionHash = {
54
+ const partitionHash = {
56
55
  aws: {
57
56
  regions: [
58
57
  "af-south-1",
@@ -176,8 +175,9 @@ var partitionHash = {
176
175
  ],
177
176
  },
178
177
  };
179
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
180
- return __generator(this, function (_a) {
181
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "kinesis", regionHash: regionHash, partitionHash: partitionHash }))];
182
- });
183
- }); };
178
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
179
+ ...options,
180
+ signingService: "kinesis",
181
+ regionHash,
182
+ partitionHash,
183
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var KinesisServiceException = (function (_super) {
4
- __extends(KinesisServiceException, _super);
5
- function KinesisServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, KinesisServiceException.prototype);
8
- return _this;
2
+ export class KinesisServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, KinesisServiceException.prototype);
9
6
  }
10
- return KinesisServiceException;
11
- }(__ServiceException));
12
- export { KinesisServiceException };
7
+ }