@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
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { EnableEnhancedMonitoringInputFilterSensitiveLog, EnhancedMonitoringOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1EnableEnhancedMonitoringCommand, serializeAws_json1_1EnableEnhancedMonitoringCommand, } from "../protocols/Aws_json1_1";
5
- export class EnableEnhancedMonitoringCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var EnableEnhancedMonitoringCommand = (function (_super) {
7
+ __extends(EnableEnhancedMonitoringCommand, _super);
8
+ function EnableEnhancedMonitoringCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ EnableEnhancedMonitoringCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "KinesisClient";
15
- const commandName = "EnableEnhancedMonitoringCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KinesisClient";
18
+ var commandName = "EnableEnhancedMonitoringCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: EnableEnhancedMonitoringInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: EnhancedMonitoringOutputFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ EnableEnhancedMonitoringCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1EnableEnhancedMonitoringCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ EnableEnhancedMonitoringCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1EnableEnhancedMonitoringCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return EnableEnhancedMonitoringCommand;
38
+ }($Command));
39
+ export { EnableEnhancedMonitoringCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetRecordsInputFilterSensitiveLog, GetRecordsOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1GetRecordsCommand, serializeAws_json1_1GetRecordsCommand, } from "../protocols/Aws_json1_1";
5
- export class GetRecordsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetRecordsCommand = (function (_super) {
7
+ __extends(GetRecordsCommand, _super);
8
+ function GetRecordsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetRecordsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "KinesisClient";
15
- const commandName = "GetRecordsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KinesisClient";
18
+ var commandName = "GetRecordsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetRecordsInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetRecordsOutputFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetRecordsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1GetRecordsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetRecordsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1GetRecordsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetRecordsCommand;
38
+ }($Command));
39
+ export { GetRecordsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetShardIteratorInputFilterSensitiveLog, GetShardIteratorOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1GetShardIteratorCommand, serializeAws_json1_1GetShardIteratorCommand, } from "../protocols/Aws_json1_1";
5
- export class GetShardIteratorCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetShardIteratorCommand = (function (_super) {
7
+ __extends(GetShardIteratorCommand, _super);
8
+ function GetShardIteratorCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetShardIteratorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "KinesisClient";
15
- const commandName = "GetShardIteratorCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KinesisClient";
18
+ var commandName = "GetShardIteratorCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetShardIteratorInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetShardIteratorOutputFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetShardIteratorCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1GetShardIteratorCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetShardIteratorCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1GetShardIteratorCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetShardIteratorCommand;
38
+ }($Command));
39
+ export { GetShardIteratorCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { IncreaseStreamRetentionPeriodInputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1IncreaseStreamRetentionPeriodCommand, serializeAws_json1_1IncreaseStreamRetentionPeriodCommand, } from "../protocols/Aws_json1_1";
5
- export class IncreaseStreamRetentionPeriodCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var IncreaseStreamRetentionPeriodCommand = (function (_super) {
7
+ __extends(IncreaseStreamRetentionPeriodCommand, _super);
8
+ function IncreaseStreamRetentionPeriodCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ IncreaseStreamRetentionPeriodCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "KinesisClient";
15
- const commandName = "IncreaseStreamRetentionPeriodCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KinesisClient";
18
+ var commandName = "IncreaseStreamRetentionPeriodCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: IncreaseStreamRetentionPeriodInputFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ IncreaseStreamRetentionPeriodCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1IncreaseStreamRetentionPeriodCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ IncreaseStreamRetentionPeriodCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1IncreaseStreamRetentionPeriodCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return IncreaseStreamRetentionPeriodCommand;
38
+ }($Command));
39
+ export { IncreaseStreamRetentionPeriodCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListShardsInputFilterSensitiveLog, ListShardsOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListShardsCommand, serializeAws_json1_1ListShardsCommand, } from "../protocols/Aws_json1_1";
5
- export class ListShardsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListShardsCommand = (function (_super) {
7
+ __extends(ListShardsCommand, _super);
8
+ function ListShardsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListShardsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "KinesisClient";
15
- const commandName = "ListShardsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KinesisClient";
18
+ var commandName = "ListShardsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListShardsInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListShardsOutputFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListShardsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListShardsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListShardsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListShardsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListShardsCommand;
38
+ }($Command));
39
+ export { ListShardsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListStreamConsumersInputFilterSensitiveLog, ListStreamConsumersOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListStreamConsumersCommand, serializeAws_json1_1ListStreamConsumersCommand, } from "../protocols/Aws_json1_1";
5
- export class ListStreamConsumersCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListStreamConsumersCommand = (function (_super) {
7
+ __extends(ListStreamConsumersCommand, _super);
8
+ function ListStreamConsumersCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListStreamConsumersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "KinesisClient";
15
- const commandName = "ListStreamConsumersCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KinesisClient";
18
+ var commandName = "ListStreamConsumersCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListStreamConsumersInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListStreamConsumersOutputFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListStreamConsumersCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListStreamConsumersCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListStreamConsumersCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListStreamConsumersCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListStreamConsumersCommand;
38
+ }($Command));
39
+ export { ListStreamConsumersCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListStreamsInputFilterSensitiveLog, ListStreamsOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListStreamsCommand, serializeAws_json1_1ListStreamsCommand, } from "../protocols/Aws_json1_1";
5
- export class ListStreamsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListStreamsCommand = (function (_super) {
7
+ __extends(ListStreamsCommand, _super);
8
+ function ListStreamsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListStreamsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "KinesisClient";
15
- const commandName = "ListStreamsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KinesisClient";
18
+ var commandName = "ListStreamsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListStreamsInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListStreamsOutputFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListStreamsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListStreamsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListStreamsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListStreamsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListStreamsCommand;
38
+ }($Command));
39
+ export { ListStreamsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListTagsForStreamInputFilterSensitiveLog, ListTagsForStreamOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListTagsForStreamCommand, serializeAws_json1_1ListTagsForStreamCommand, } from "../protocols/Aws_json1_1";
5
- export class ListTagsForStreamCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListTagsForStreamCommand = (function (_super) {
7
+ __extends(ListTagsForStreamCommand, _super);
8
+ function ListTagsForStreamCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListTagsForStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "KinesisClient";
15
- const commandName = "ListTagsForStreamCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KinesisClient";
18
+ var commandName = "ListTagsForStreamCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListTagsForStreamInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListTagsForStreamOutputFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListTagsForStreamCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListTagsForStreamCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListTagsForStreamCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListTagsForStreamCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListTagsForStreamCommand;
38
+ }($Command));
39
+ export { ListTagsForStreamCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { MergeShardsInputFilterSensitiveLog } from "../models/models_0";
4
5
  import { deserializeAws_json1_1MergeShardsCommand, serializeAws_json1_1MergeShardsCommand, } from "../protocols/Aws_json1_1";
5
- export class MergeShardsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var MergeShardsCommand = (function (_super) {
7
+ __extends(MergeShardsCommand, _super);
8
+ function MergeShardsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ MergeShardsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "KinesisClient";
15
- const commandName = "MergeShardsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KinesisClient";
18
+ var commandName = "MergeShardsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: MergeShardsInputFilterSensitiveLog,
21
- outputFilterSensitiveLog: (output) => output,
24
+ outputFilterSensitiveLog: function (output) { return output; },
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ MergeShardsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1MergeShardsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ MergeShardsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1MergeShardsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return MergeShardsCommand;
38
+ }($Command));
39
+ export { MergeShardsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { PutRecordInputFilterSensitiveLog, PutRecordOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1PutRecordCommand, serializeAws_json1_1PutRecordCommand } from "../protocols/Aws_json1_1";
5
- export class PutRecordCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var PutRecordCommand = (function (_super) {
7
+ __extends(PutRecordCommand, _super);
8
+ function PutRecordCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ PutRecordCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "KinesisClient";
15
- const commandName = "PutRecordCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "KinesisClient";
18
+ var commandName = "PutRecordCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: PutRecordInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: PutRecordOutputFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ PutRecordCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1PutRecordCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ PutRecordCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1PutRecordCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return PutRecordCommand;
38
+ }($Command));
39
+ export { PutRecordCommand };