@aws-sdk/client-kinesis 3.477.0 → 3.481.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 (141) hide show
  1. package/dist-cjs/commands/AddTagsToStreamCommand.js +20 -43
  2. package/dist-cjs/commands/CreateStreamCommand.js +18 -41
  3. package/dist-cjs/commands/DecreaseStreamRetentionPeriodCommand.js +20 -43
  4. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +20 -43
  5. package/dist-cjs/commands/DeleteStreamCommand.js +20 -43
  6. package/dist-cjs/commands/DeregisterStreamConsumerCommand.js +21 -44
  7. package/dist-cjs/commands/DescribeLimitsCommand.js +18 -41
  8. package/dist-cjs/commands/DescribeStreamCommand.js +20 -43
  9. package/dist-cjs/commands/DescribeStreamConsumerCommand.js +21 -44
  10. package/dist-cjs/commands/DescribeStreamSummaryCommand.js +20 -43
  11. package/dist-cjs/commands/DisableEnhancedMonitoringCommand.js +20 -43
  12. package/dist-cjs/commands/EnableEnhancedMonitoringCommand.js +20 -43
  13. package/dist-cjs/commands/GetRecordsCommand.js +20 -43
  14. package/dist-cjs/commands/GetResourcePolicyCommand.js +20 -43
  15. package/dist-cjs/commands/GetShardIteratorCommand.js +20 -43
  16. package/dist-cjs/commands/IncreaseStreamRetentionPeriodCommand.js +20 -43
  17. package/dist-cjs/commands/ListShardsCommand.js +20 -43
  18. package/dist-cjs/commands/ListStreamConsumersCommand.js +20 -43
  19. package/dist-cjs/commands/ListStreamsCommand.js +18 -41
  20. package/dist-cjs/commands/ListTagsForStreamCommand.js +20 -43
  21. package/dist-cjs/commands/MergeShardsCommand.js +20 -43
  22. package/dist-cjs/commands/PutRecordCommand.js +20 -43
  23. package/dist-cjs/commands/PutRecordsCommand.js +20 -43
  24. package/dist-cjs/commands/PutResourcePolicyCommand.js +20 -43
  25. package/dist-cjs/commands/RegisterStreamConsumerCommand.js +20 -43
  26. package/dist-cjs/commands/RemoveTagsFromStreamCommand.js +20 -43
  27. package/dist-cjs/commands/SplitShardCommand.js +20 -43
  28. package/dist-cjs/commands/StartStreamEncryptionCommand.js +20 -43
  29. package/dist-cjs/commands/StopStreamEncryptionCommand.js +20 -43
  30. package/dist-cjs/commands/SubscribeToShardCommand.js +24 -46
  31. package/dist-cjs/commands/UpdateShardCountCommand.js +20 -43
  32. package/dist-cjs/commands/UpdateStreamModeCommand.js +20 -43
  33. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  34. package/dist-cjs/pagination/ListStreamConsumersPaginator.js +2 -24
  35. package/dist-cjs/pagination/ListStreamsPaginator.js +2 -24
  36. package/dist-es/commands/AddTagsToStreamCommand.js +20 -43
  37. package/dist-es/commands/CreateStreamCommand.js +18 -41
  38. package/dist-es/commands/DecreaseStreamRetentionPeriodCommand.js +20 -43
  39. package/dist-es/commands/DeleteResourcePolicyCommand.js +20 -43
  40. package/dist-es/commands/DeleteStreamCommand.js +20 -43
  41. package/dist-es/commands/DeregisterStreamConsumerCommand.js +21 -44
  42. package/dist-es/commands/DescribeLimitsCommand.js +18 -41
  43. package/dist-es/commands/DescribeStreamCommand.js +20 -43
  44. package/dist-es/commands/DescribeStreamConsumerCommand.js +21 -44
  45. package/dist-es/commands/DescribeStreamSummaryCommand.js +20 -43
  46. package/dist-es/commands/DisableEnhancedMonitoringCommand.js +20 -43
  47. package/dist-es/commands/EnableEnhancedMonitoringCommand.js +20 -43
  48. package/dist-es/commands/GetRecordsCommand.js +20 -43
  49. package/dist-es/commands/GetResourcePolicyCommand.js +20 -43
  50. package/dist-es/commands/GetShardIteratorCommand.js +20 -43
  51. package/dist-es/commands/IncreaseStreamRetentionPeriodCommand.js +20 -43
  52. package/dist-es/commands/ListShardsCommand.js +20 -43
  53. package/dist-es/commands/ListStreamConsumersCommand.js +20 -43
  54. package/dist-es/commands/ListStreamsCommand.js +18 -41
  55. package/dist-es/commands/ListTagsForStreamCommand.js +20 -43
  56. package/dist-es/commands/MergeShardsCommand.js +20 -43
  57. package/dist-es/commands/PutRecordCommand.js +20 -43
  58. package/dist-es/commands/PutRecordsCommand.js +20 -43
  59. package/dist-es/commands/PutResourcePolicyCommand.js +20 -43
  60. package/dist-es/commands/RegisterStreamConsumerCommand.js +20 -43
  61. package/dist-es/commands/RemoveTagsFromStreamCommand.js +20 -43
  62. package/dist-es/commands/SplitShardCommand.js +20 -43
  63. package/dist-es/commands/StartStreamEncryptionCommand.js +20 -43
  64. package/dist-es/commands/StopStreamEncryptionCommand.js +20 -43
  65. package/dist-es/commands/SubscribeToShardCommand.js +24 -46
  66. package/dist-es/commands/UpdateShardCountCommand.js +20 -43
  67. package/dist-es/commands/UpdateStreamModeCommand.js +20 -43
  68. package/dist-es/endpoint/EndpointParameters.js +6 -0
  69. package/dist-es/pagination/ListStreamConsumersPaginator.js +2 -23
  70. package/dist-es/pagination/ListStreamsPaginator.js +2 -23
  71. package/dist-types/commands/AddTagsToStreamCommand.d.ts +6 -21
  72. package/dist-types/commands/CreateStreamCommand.d.ts +6 -21
  73. package/dist-types/commands/DecreaseStreamRetentionPeriodCommand.d.ts +6 -21
  74. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +6 -21
  75. package/dist-types/commands/DeleteStreamCommand.d.ts +6 -21
  76. package/dist-types/commands/DeregisterStreamConsumerCommand.d.ts +6 -21
  77. package/dist-types/commands/DescribeLimitsCommand.d.ts +6 -21
  78. package/dist-types/commands/DescribeStreamCommand.d.ts +6 -21
  79. package/dist-types/commands/DescribeStreamConsumerCommand.d.ts +6 -21
  80. package/dist-types/commands/DescribeStreamSummaryCommand.d.ts +6 -21
  81. package/dist-types/commands/DisableEnhancedMonitoringCommand.d.ts +6 -21
  82. package/dist-types/commands/EnableEnhancedMonitoringCommand.d.ts +6 -21
  83. package/dist-types/commands/GetRecordsCommand.d.ts +6 -21
  84. package/dist-types/commands/GetResourcePolicyCommand.d.ts +6 -21
  85. package/dist-types/commands/GetShardIteratorCommand.d.ts +6 -21
  86. package/dist-types/commands/IncreaseStreamRetentionPeriodCommand.d.ts +6 -21
  87. package/dist-types/commands/ListShardsCommand.d.ts +6 -21
  88. package/dist-types/commands/ListStreamConsumersCommand.d.ts +6 -21
  89. package/dist-types/commands/ListStreamsCommand.d.ts +6 -21
  90. package/dist-types/commands/ListTagsForStreamCommand.d.ts +6 -21
  91. package/dist-types/commands/MergeShardsCommand.d.ts +6 -21
  92. package/dist-types/commands/PutRecordCommand.d.ts +6 -21
  93. package/dist-types/commands/PutRecordsCommand.d.ts +6 -21
  94. package/dist-types/commands/PutResourcePolicyCommand.d.ts +6 -21
  95. package/dist-types/commands/RegisterStreamConsumerCommand.d.ts +6 -21
  96. package/dist-types/commands/RemoveTagsFromStreamCommand.d.ts +6 -21
  97. package/dist-types/commands/SplitShardCommand.d.ts +6 -21
  98. package/dist-types/commands/StartStreamEncryptionCommand.d.ts +6 -21
  99. package/dist-types/commands/StopStreamEncryptionCommand.d.ts +6 -21
  100. package/dist-types/commands/SubscribeToShardCommand.d.ts +6 -21
  101. package/dist-types/commands/UpdateShardCountCommand.d.ts +6 -21
  102. package/dist-types/commands/UpdateStreamModeCommand.d.ts +6 -21
  103. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  104. package/dist-types/pagination/ListStreamConsumersPaginator.d.ts +1 -1
  105. package/dist-types/pagination/ListStreamsPaginator.d.ts +1 -1
  106. package/dist-types/ts3.4/commands/AddTagsToStreamCommand.d.ts +14 -23
  107. package/dist-types/ts3.4/commands/CreateStreamCommand.d.ts +14 -23
  108. package/dist-types/ts3.4/commands/DecreaseStreamRetentionPeriodCommand.d.ts +12 -24
  109. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +12 -24
  110. package/dist-types/ts3.4/commands/DeleteStreamCommand.d.ts +14 -23
  111. package/dist-types/ts3.4/commands/DeregisterStreamConsumerCommand.d.ts +12 -24
  112. package/dist-types/ts3.4/commands/DescribeLimitsCommand.d.ts +14 -23
  113. package/dist-types/ts3.4/commands/DescribeStreamCommand.d.ts +14 -23
  114. package/dist-types/ts3.4/commands/DescribeStreamConsumerCommand.d.ts +12 -24
  115. package/dist-types/ts3.4/commands/DescribeStreamSummaryCommand.d.ts +12 -24
  116. package/dist-types/ts3.4/commands/DisableEnhancedMonitoringCommand.d.ts +12 -24
  117. package/dist-types/ts3.4/commands/EnableEnhancedMonitoringCommand.d.ts +12 -24
  118. package/dist-types/ts3.4/commands/GetRecordsCommand.d.ts +14 -23
  119. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +14 -23
  120. package/dist-types/ts3.4/commands/GetShardIteratorCommand.d.ts +14 -23
  121. package/dist-types/ts3.4/commands/IncreaseStreamRetentionPeriodCommand.d.ts +12 -24
  122. package/dist-types/ts3.4/commands/ListShardsCommand.d.ts +14 -23
  123. package/dist-types/ts3.4/commands/ListStreamConsumersCommand.d.ts +14 -23
  124. package/dist-types/ts3.4/commands/ListStreamsCommand.d.ts +14 -23
  125. package/dist-types/ts3.4/commands/ListTagsForStreamCommand.d.ts +14 -23
  126. package/dist-types/ts3.4/commands/MergeShardsCommand.d.ts +14 -23
  127. package/dist-types/ts3.4/commands/PutRecordCommand.d.ts +14 -23
  128. package/dist-types/ts3.4/commands/PutRecordsCommand.d.ts +14 -23
  129. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +14 -23
  130. package/dist-types/ts3.4/commands/RegisterStreamConsumerCommand.d.ts +12 -24
  131. package/dist-types/ts3.4/commands/RemoveTagsFromStreamCommand.d.ts +12 -24
  132. package/dist-types/ts3.4/commands/SplitShardCommand.d.ts +14 -23
  133. package/dist-types/ts3.4/commands/StartStreamEncryptionCommand.d.ts +12 -24
  134. package/dist-types/ts3.4/commands/StopStreamEncryptionCommand.d.ts +12 -24
  135. package/dist-types/ts3.4/commands/SubscribeToShardCommand.d.ts +14 -23
  136. package/dist-types/ts3.4/commands/UpdateShardCountCommand.d.ts +14 -23
  137. package/dist-types/ts3.4/commands/UpdateStreamModeCommand.d.ts +14 -23
  138. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  139. package/dist-types/ts3.4/pagination/ListStreamConsumersPaginator.d.ts +3 -3
  140. package/dist-types/ts3.4/pagination/ListStreamsPaginator.d.ts +3 -3
  141. package/package.json +11 -10
@@ -5,49 +5,26 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
- class RemoveTagsFromStreamCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- OperationType: { type: "staticContextParams", value: `control` },
14
- StreamARN: { type: "contextParams", name: "StreamARN" },
15
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
16
- Endpoint: { type: "builtInParams", name: "endpoint" },
17
- Region: { type: "builtInParams", name: "region" },
18
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
19
- };
20
- }
21
- constructor(input) {
22
- super();
23
- this.input = input;
24
- }
25
- resolveMiddleware(clientStack, configuration, options) {
26
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
27
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RemoveTagsFromStreamCommand.getEndpointParameterInstructions()));
28
- const stack = clientStack.concat(this.middlewareStack);
29
- const { logger } = configuration;
30
- const clientName = "KinesisClient";
31
- const commandName = "RemoveTagsFromStreamCommand";
32
- const handlerExecutionContext = {
33
- logger,
34
- clientName,
35
- commandName,
36
- inputFilterSensitiveLog: (_) => _,
37
- outputFilterSensitiveLog: (_) => _,
38
- [types_1.SMITHY_CONTEXT_KEY]: {
39
- service: "Kinesis_20131202",
40
- operation: "RemoveTagsFromStream",
41
- },
42
- };
43
- const { requestHandler } = configuration;
44
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
45
- }
46
- serialize(input, context) {
47
- return (0, Aws_json1_1_1.se_RemoveTagsFromStreamCommand)(input, context);
48
- }
49
- deserialize(output, context) {
50
- return (0, Aws_json1_1_1.de_RemoveTagsFromStreamCommand)(output, context);
51
- }
10
+ class RemoveTagsFromStreamCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ OperationType: { type: "staticContextParams", value: `control` },
15
+ StreamARN: { type: "contextParams", name: "StreamARN" },
16
+ })
17
+ .m(function (Command, cs, config, o) {
18
+ return [
19
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
20
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
21
+ ];
22
+ })
23
+ .s("Kinesis_20131202", "RemoveTagsFromStream", {})
24
+ .n("KinesisClient", "RemoveTagsFromStreamCommand")
25
+ .f(void 0, void 0)
26
+ .ser(Aws_json1_1_1.se_RemoveTagsFromStreamCommand)
27
+ .de(Aws_json1_1_1.de_RemoveTagsFromStreamCommand)
28
+ .build() {
52
29
  }
53
30
  exports.RemoveTagsFromStreamCommand = RemoveTagsFromStreamCommand;
@@ -5,49 +5,26 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
- class SplitShardCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- OperationType: { type: "staticContextParams", value: `control` },
14
- StreamARN: { type: "contextParams", name: "StreamARN" },
15
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
16
- Endpoint: { type: "builtInParams", name: "endpoint" },
17
- Region: { type: "builtInParams", name: "region" },
18
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
19
- };
20
- }
21
- constructor(input) {
22
- super();
23
- this.input = input;
24
- }
25
- resolveMiddleware(clientStack, configuration, options) {
26
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
27
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SplitShardCommand.getEndpointParameterInstructions()));
28
- const stack = clientStack.concat(this.middlewareStack);
29
- const { logger } = configuration;
30
- const clientName = "KinesisClient";
31
- const commandName = "SplitShardCommand";
32
- const handlerExecutionContext = {
33
- logger,
34
- clientName,
35
- commandName,
36
- inputFilterSensitiveLog: (_) => _,
37
- outputFilterSensitiveLog: (_) => _,
38
- [types_1.SMITHY_CONTEXT_KEY]: {
39
- service: "Kinesis_20131202",
40
- operation: "SplitShard",
41
- },
42
- };
43
- const { requestHandler } = configuration;
44
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
45
- }
46
- serialize(input, context) {
47
- return (0, Aws_json1_1_1.se_SplitShardCommand)(input, context);
48
- }
49
- deserialize(output, context) {
50
- return (0, Aws_json1_1_1.de_SplitShardCommand)(output, context);
51
- }
10
+ class SplitShardCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ OperationType: { type: "staticContextParams", value: `control` },
15
+ StreamARN: { type: "contextParams", name: "StreamARN" },
16
+ })
17
+ .m(function (Command, cs, config, o) {
18
+ return [
19
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
20
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
21
+ ];
22
+ })
23
+ .s("Kinesis_20131202", "SplitShard", {})
24
+ .n("KinesisClient", "SplitShardCommand")
25
+ .f(void 0, void 0)
26
+ .ser(Aws_json1_1_1.se_SplitShardCommand)
27
+ .de(Aws_json1_1_1.de_SplitShardCommand)
28
+ .build() {
52
29
  }
53
30
  exports.SplitShardCommand = SplitShardCommand;
@@ -5,49 +5,26 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
- class StartStreamEncryptionCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- OperationType: { type: "staticContextParams", value: `control` },
14
- StreamARN: { type: "contextParams", name: "StreamARN" },
15
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
16
- Endpoint: { type: "builtInParams", name: "endpoint" },
17
- Region: { type: "builtInParams", name: "region" },
18
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
19
- };
20
- }
21
- constructor(input) {
22
- super();
23
- this.input = input;
24
- }
25
- resolveMiddleware(clientStack, configuration, options) {
26
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
27
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartStreamEncryptionCommand.getEndpointParameterInstructions()));
28
- const stack = clientStack.concat(this.middlewareStack);
29
- const { logger } = configuration;
30
- const clientName = "KinesisClient";
31
- const commandName = "StartStreamEncryptionCommand";
32
- const handlerExecutionContext = {
33
- logger,
34
- clientName,
35
- commandName,
36
- inputFilterSensitiveLog: (_) => _,
37
- outputFilterSensitiveLog: (_) => _,
38
- [types_1.SMITHY_CONTEXT_KEY]: {
39
- service: "Kinesis_20131202",
40
- operation: "StartStreamEncryption",
41
- },
42
- };
43
- const { requestHandler } = configuration;
44
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
45
- }
46
- serialize(input, context) {
47
- return (0, Aws_json1_1_1.se_StartStreamEncryptionCommand)(input, context);
48
- }
49
- deserialize(output, context) {
50
- return (0, Aws_json1_1_1.de_StartStreamEncryptionCommand)(output, context);
51
- }
10
+ class StartStreamEncryptionCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ OperationType: { type: "staticContextParams", value: `control` },
15
+ StreamARN: { type: "contextParams", name: "StreamARN" },
16
+ })
17
+ .m(function (Command, cs, config, o) {
18
+ return [
19
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
20
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
21
+ ];
22
+ })
23
+ .s("Kinesis_20131202", "StartStreamEncryption", {})
24
+ .n("KinesisClient", "StartStreamEncryptionCommand")
25
+ .f(void 0, void 0)
26
+ .ser(Aws_json1_1_1.se_StartStreamEncryptionCommand)
27
+ .de(Aws_json1_1_1.de_StartStreamEncryptionCommand)
28
+ .build() {
52
29
  }
53
30
  exports.StartStreamEncryptionCommand = StartStreamEncryptionCommand;
@@ -5,49 +5,26 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
- class StopStreamEncryptionCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- OperationType: { type: "staticContextParams", value: `control` },
14
- StreamARN: { type: "contextParams", name: "StreamARN" },
15
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
16
- Endpoint: { type: "builtInParams", name: "endpoint" },
17
- Region: { type: "builtInParams", name: "region" },
18
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
19
- };
20
- }
21
- constructor(input) {
22
- super();
23
- this.input = input;
24
- }
25
- resolveMiddleware(clientStack, configuration, options) {
26
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
27
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StopStreamEncryptionCommand.getEndpointParameterInstructions()));
28
- const stack = clientStack.concat(this.middlewareStack);
29
- const { logger } = configuration;
30
- const clientName = "KinesisClient";
31
- const commandName = "StopStreamEncryptionCommand";
32
- const handlerExecutionContext = {
33
- logger,
34
- clientName,
35
- commandName,
36
- inputFilterSensitiveLog: (_) => _,
37
- outputFilterSensitiveLog: (_) => _,
38
- [types_1.SMITHY_CONTEXT_KEY]: {
39
- service: "Kinesis_20131202",
40
- operation: "StopStreamEncryption",
41
- },
42
- };
43
- const { requestHandler } = configuration;
44
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
45
- }
46
- serialize(input, context) {
47
- return (0, Aws_json1_1_1.se_StopStreamEncryptionCommand)(input, context);
48
- }
49
- deserialize(output, context) {
50
- return (0, Aws_json1_1_1.de_StopStreamEncryptionCommand)(output, context);
51
- }
10
+ class StopStreamEncryptionCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ OperationType: { type: "staticContextParams", value: `control` },
15
+ StreamARN: { type: "contextParams", name: "StreamARN" },
16
+ })
17
+ .m(function (Command, cs, config, o) {
18
+ return [
19
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
20
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
21
+ ];
22
+ })
23
+ .s("Kinesis_20131202", "StopStreamEncryption", {})
24
+ .n("KinesisClient", "StopStreamEncryptionCommand")
25
+ .f(void 0, void 0)
26
+ .ser(Aws_json1_1_1.se_StopStreamEncryptionCommand)
27
+ .de(Aws_json1_1_1.de_StopStreamEncryptionCommand)
28
+ .build() {
52
29
  }
53
30
  exports.StopStreamEncryptionCommand = StopStreamEncryptionCommand;
@@ -5,53 +5,31 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
11
- class SubscribeToShardCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- OperationType: { type: "staticContextParams", value: `data` },
15
- ConsumerARN: { type: "contextParams", name: "ConsumerARN" },
16
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
- Endpoint: { type: "builtInParams", name: "endpoint" },
18
- Region: { type: "builtInParams", name: "region" },
19
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
- };
21
- }
22
- constructor(input) {
23
- super();
24
- this.input = input;
25
- }
26
- resolveMiddleware(clientStack, configuration, options) {
27
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
28
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SubscribeToShardCommand.getEndpointParameterInstructions()));
29
- const stack = clientStack.concat(this.middlewareStack);
30
- const { logger } = configuration;
31
- const clientName = "KinesisClient";
32
- const commandName = "SubscribeToShardCommand";
33
- const handlerExecutionContext = {
34
- logger,
35
- clientName,
36
- commandName,
37
- inputFilterSensitiveLog: (_) => _,
38
- outputFilterSensitiveLog: models_0_1.SubscribeToShardOutputFilterSensitiveLog,
39
- [types_1.SMITHY_CONTEXT_KEY]: {
40
- service: "Kinesis_20131202",
41
- operation: "SubscribeToShard",
42
- eventStream: {
43
- output: true,
44
- },
45
- },
46
- };
47
- const { requestHandler } = configuration;
48
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
49
- }
50
- serialize(input, context) {
51
- return (0, Aws_json1_1_1.se_SubscribeToShardCommand)(input, context);
52
- }
53
- deserialize(output, context) {
54
- return (0, Aws_json1_1_1.de_SubscribeToShardCommand)(output, context);
55
- }
11
+ class SubscribeToShardCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ OperationType: { type: "staticContextParams", value: `data` },
16
+ ConsumerARN: { type: "contextParams", name: "ConsumerARN" },
17
+ })
18
+ .m(function (Command, cs, config, o) {
19
+ return [
20
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
21
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
22
+ ];
23
+ })
24
+ .s("Kinesis_20131202", "SubscribeToShard", {
25
+ eventStream: {
26
+ output: true,
27
+ },
28
+ })
29
+ .n("KinesisClient", "SubscribeToShardCommand")
30
+ .f(void 0, models_0_1.SubscribeToShardOutputFilterSensitiveLog)
31
+ .ser(Aws_json1_1_1.se_SubscribeToShardCommand)
32
+ .de(Aws_json1_1_1.de_SubscribeToShardCommand)
33
+ .build() {
56
34
  }
57
35
  exports.SubscribeToShardCommand = SubscribeToShardCommand;
@@ -5,49 +5,26 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
- class UpdateShardCountCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- OperationType: { type: "staticContextParams", value: `control` },
14
- StreamARN: { type: "contextParams", name: "StreamARN" },
15
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
16
- Endpoint: { type: "builtInParams", name: "endpoint" },
17
- Region: { type: "builtInParams", name: "region" },
18
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
19
- };
20
- }
21
- constructor(input) {
22
- super();
23
- this.input = input;
24
- }
25
- resolveMiddleware(clientStack, configuration, options) {
26
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
27
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateShardCountCommand.getEndpointParameterInstructions()));
28
- const stack = clientStack.concat(this.middlewareStack);
29
- const { logger } = configuration;
30
- const clientName = "KinesisClient";
31
- const commandName = "UpdateShardCountCommand";
32
- const handlerExecutionContext = {
33
- logger,
34
- clientName,
35
- commandName,
36
- inputFilterSensitiveLog: (_) => _,
37
- outputFilterSensitiveLog: (_) => _,
38
- [types_1.SMITHY_CONTEXT_KEY]: {
39
- service: "Kinesis_20131202",
40
- operation: "UpdateShardCount",
41
- },
42
- };
43
- const { requestHandler } = configuration;
44
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
45
- }
46
- serialize(input, context) {
47
- return (0, Aws_json1_1_1.se_UpdateShardCountCommand)(input, context);
48
- }
49
- deserialize(output, context) {
50
- return (0, Aws_json1_1_1.de_UpdateShardCountCommand)(output, context);
51
- }
10
+ class UpdateShardCountCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ OperationType: { type: "staticContextParams", value: `control` },
15
+ StreamARN: { type: "contextParams", name: "StreamARN" },
16
+ })
17
+ .m(function (Command, cs, config, o) {
18
+ return [
19
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
20
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
21
+ ];
22
+ })
23
+ .s("Kinesis_20131202", "UpdateShardCount", {})
24
+ .n("KinesisClient", "UpdateShardCountCommand")
25
+ .f(void 0, void 0)
26
+ .ser(Aws_json1_1_1.se_UpdateShardCountCommand)
27
+ .de(Aws_json1_1_1.de_UpdateShardCountCommand)
28
+ .build() {
52
29
  }
53
30
  exports.UpdateShardCountCommand = UpdateShardCountCommand;
@@ -5,49 +5,26 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
- class UpdateStreamModeCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- OperationType: { type: "staticContextParams", value: `control` },
14
- StreamARN: { type: "contextParams", name: "StreamARN" },
15
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
16
- Endpoint: { type: "builtInParams", name: "endpoint" },
17
- Region: { type: "builtInParams", name: "region" },
18
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
19
- };
20
- }
21
- constructor(input) {
22
- super();
23
- this.input = input;
24
- }
25
- resolveMiddleware(clientStack, configuration, options) {
26
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
27
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateStreamModeCommand.getEndpointParameterInstructions()));
28
- const stack = clientStack.concat(this.middlewareStack);
29
- const { logger } = configuration;
30
- const clientName = "KinesisClient";
31
- const commandName = "UpdateStreamModeCommand";
32
- const handlerExecutionContext = {
33
- logger,
34
- clientName,
35
- commandName,
36
- inputFilterSensitiveLog: (_) => _,
37
- outputFilterSensitiveLog: (_) => _,
38
- [types_1.SMITHY_CONTEXT_KEY]: {
39
- service: "Kinesis_20131202",
40
- operation: "UpdateStreamMode",
41
- },
42
- };
43
- const { requestHandler } = configuration;
44
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
45
- }
46
- serialize(input, context) {
47
- return (0, Aws_json1_1_1.se_UpdateStreamModeCommand)(input, context);
48
- }
49
- deserialize(output, context) {
50
- return (0, Aws_json1_1_1.de_UpdateStreamModeCommand)(output, context);
51
- }
10
+ class UpdateStreamModeCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ OperationType: { type: "staticContextParams", value: `control` },
15
+ StreamARN: { type: "contextParams", name: "StreamARN" },
16
+ })
17
+ .m(function (Command, cs, config, o) {
18
+ return [
19
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
20
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
21
+ ];
22
+ })
23
+ .s("Kinesis_20131202", "UpdateStreamMode", {})
24
+ .n("KinesisClient", "UpdateStreamModeCommand")
25
+ .f(void 0, void 0)
26
+ .ser(Aws_json1_1_1.se_UpdateStreamModeCommand)
27
+ .de(Aws_json1_1_1.de_UpdateStreamModeCommand)
28
+ .build() {
52
29
  }
53
30
  exports.UpdateStreamModeCommand = UpdateStreamModeCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
10
10
  };
11
11
  };
12
12
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListStreamConsumers = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListStreamConsumersCommand_1 = require("../commands/ListStreamConsumersCommand");
5
6
  const KinesisClient_1 = require("../KinesisClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListStreamConsumersCommand_1.ListStreamConsumersCommand(input), ...args);
8
- };
9
- async function* paginateListStreamConsumers(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof KinesisClient_1.KinesisClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Kinesis | KinesisClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListStreamConsumers = paginateListStreamConsumers;
7
+ exports.paginateListStreamConsumers = (0, core_1.createPaginator)(KinesisClient_1.KinesisClient, ListStreamConsumersCommand_1.ListStreamConsumersCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListStreams = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListStreamsCommand_1 = require("../commands/ListStreamsCommand");
5
6
  const KinesisClient_1 = require("../KinesisClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListStreamsCommand_1.ListStreamsCommand(input), ...args);
8
- };
9
- async function* paginateListStreams(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["Limit"] = config.pageSize;
16
- if (config.client instanceof KinesisClient_1.KinesisClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Kinesis | KinesisClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListStreams = paginateListStreams;
7
+ exports.paginateListStreams = (0, core_1.createPaginator)(KinesisClient_1.KinesisClient, ListStreamsCommand_1.ListStreamsCommand, "NextToken", "NextToken", "Limit");