@aws-sdk/client-kafka 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 (261) hide show
  1. package/dist-cjs/commands/BatchAssociateScramSecretCommand.js +18 -41
  2. package/dist-cjs/commands/BatchDisassociateScramSecretCommand.js +18 -41
  3. package/dist-cjs/commands/CreateClusterCommand.js +18 -41
  4. package/dist-cjs/commands/CreateClusterV2Command.js +18 -41
  5. package/dist-cjs/commands/CreateConfigurationCommand.js +18 -41
  6. package/dist-cjs/commands/CreateReplicatorCommand.js +18 -41
  7. package/dist-cjs/commands/CreateVpcConnectionCommand.js +18 -41
  8. package/dist-cjs/commands/DeleteClusterCommand.js +18 -41
  9. package/dist-cjs/commands/DeleteClusterPolicyCommand.js +18 -41
  10. package/dist-cjs/commands/DeleteConfigurationCommand.js +18 -41
  11. package/dist-cjs/commands/DeleteReplicatorCommand.js +18 -41
  12. package/dist-cjs/commands/DeleteVpcConnectionCommand.js +18 -41
  13. package/dist-cjs/commands/DescribeClusterCommand.js +18 -41
  14. package/dist-cjs/commands/DescribeClusterOperationCommand.js +18 -41
  15. package/dist-cjs/commands/DescribeClusterOperationV2Command.js +18 -41
  16. package/dist-cjs/commands/DescribeClusterV2Command.js +18 -41
  17. package/dist-cjs/commands/DescribeConfigurationCommand.js +18 -41
  18. package/dist-cjs/commands/DescribeConfigurationRevisionCommand.js +18 -41
  19. package/dist-cjs/commands/DescribeReplicatorCommand.js +18 -41
  20. package/dist-cjs/commands/DescribeVpcConnectionCommand.js +18 -41
  21. package/dist-cjs/commands/GetBootstrapBrokersCommand.js +18 -41
  22. package/dist-cjs/commands/GetClusterPolicyCommand.js +18 -41
  23. package/dist-cjs/commands/GetCompatibleKafkaVersionsCommand.js +18 -41
  24. package/dist-cjs/commands/ListClientVpcConnectionsCommand.js +18 -41
  25. package/dist-cjs/commands/ListClusterOperationsCommand.js +18 -41
  26. package/dist-cjs/commands/ListClusterOperationsV2Command.js +18 -41
  27. package/dist-cjs/commands/ListClustersCommand.js +18 -41
  28. package/dist-cjs/commands/ListClustersV2Command.js +18 -41
  29. package/dist-cjs/commands/ListConfigurationRevisionsCommand.js +18 -41
  30. package/dist-cjs/commands/ListConfigurationsCommand.js +18 -41
  31. package/dist-cjs/commands/ListKafkaVersionsCommand.js +18 -41
  32. package/dist-cjs/commands/ListNodesCommand.js +18 -41
  33. package/dist-cjs/commands/ListReplicatorsCommand.js +18 -41
  34. package/dist-cjs/commands/ListScramSecretsCommand.js +18 -41
  35. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  36. package/dist-cjs/commands/ListVpcConnectionsCommand.js +18 -41
  37. package/dist-cjs/commands/PutClusterPolicyCommand.js +18 -41
  38. package/dist-cjs/commands/RebootBrokerCommand.js +18 -41
  39. package/dist-cjs/commands/RejectClientVpcConnectionCommand.js +18 -41
  40. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  41. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  42. package/dist-cjs/commands/UpdateBrokerCountCommand.js +18 -41
  43. package/dist-cjs/commands/UpdateBrokerStorageCommand.js +18 -41
  44. package/dist-cjs/commands/UpdateBrokerTypeCommand.js +18 -41
  45. package/dist-cjs/commands/UpdateClusterConfigurationCommand.js +18 -41
  46. package/dist-cjs/commands/UpdateClusterKafkaVersionCommand.js +18 -41
  47. package/dist-cjs/commands/UpdateConfigurationCommand.js +18 -41
  48. package/dist-cjs/commands/UpdateConnectivityCommand.js +18 -41
  49. package/dist-cjs/commands/UpdateMonitoringCommand.js +18 -41
  50. package/dist-cjs/commands/UpdateReplicationInfoCommand.js +18 -41
  51. package/dist-cjs/commands/UpdateSecurityCommand.js +18 -41
  52. package/dist-cjs/commands/UpdateStorageCommand.js +18 -41
  53. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  54. package/dist-cjs/pagination/ListClientVpcConnectionsPaginator.js +2 -24
  55. package/dist-cjs/pagination/ListClusterOperationsPaginator.js +2 -24
  56. package/dist-cjs/pagination/ListClusterOperationsV2Paginator.js +2 -24
  57. package/dist-cjs/pagination/ListClustersPaginator.js +2 -24
  58. package/dist-cjs/pagination/ListClustersV2Paginator.js +2 -24
  59. package/dist-cjs/pagination/ListConfigurationRevisionsPaginator.js +2 -24
  60. package/dist-cjs/pagination/ListConfigurationsPaginator.js +2 -24
  61. package/dist-cjs/pagination/ListKafkaVersionsPaginator.js +2 -24
  62. package/dist-cjs/pagination/ListNodesPaginator.js +2 -24
  63. package/dist-cjs/pagination/ListReplicatorsPaginator.js +2 -24
  64. package/dist-cjs/pagination/ListScramSecretsPaginator.js +2 -24
  65. package/dist-cjs/pagination/ListVpcConnectionsPaginator.js +2 -24
  66. package/dist-es/commands/BatchAssociateScramSecretCommand.js +18 -41
  67. package/dist-es/commands/BatchDisassociateScramSecretCommand.js +18 -41
  68. package/dist-es/commands/CreateClusterCommand.js +18 -41
  69. package/dist-es/commands/CreateClusterV2Command.js +18 -41
  70. package/dist-es/commands/CreateConfigurationCommand.js +18 -41
  71. package/dist-es/commands/CreateReplicatorCommand.js +18 -41
  72. package/dist-es/commands/CreateVpcConnectionCommand.js +18 -41
  73. package/dist-es/commands/DeleteClusterCommand.js +18 -41
  74. package/dist-es/commands/DeleteClusterPolicyCommand.js +18 -41
  75. package/dist-es/commands/DeleteConfigurationCommand.js +18 -41
  76. package/dist-es/commands/DeleteReplicatorCommand.js +18 -41
  77. package/dist-es/commands/DeleteVpcConnectionCommand.js +18 -41
  78. package/dist-es/commands/DescribeClusterCommand.js +18 -41
  79. package/dist-es/commands/DescribeClusterOperationCommand.js +18 -41
  80. package/dist-es/commands/DescribeClusterOperationV2Command.js +18 -41
  81. package/dist-es/commands/DescribeClusterV2Command.js +18 -41
  82. package/dist-es/commands/DescribeConfigurationCommand.js +18 -41
  83. package/dist-es/commands/DescribeConfigurationRevisionCommand.js +18 -41
  84. package/dist-es/commands/DescribeReplicatorCommand.js +18 -41
  85. package/dist-es/commands/DescribeVpcConnectionCommand.js +18 -41
  86. package/dist-es/commands/GetBootstrapBrokersCommand.js +18 -41
  87. package/dist-es/commands/GetClusterPolicyCommand.js +18 -41
  88. package/dist-es/commands/GetCompatibleKafkaVersionsCommand.js +18 -41
  89. package/dist-es/commands/ListClientVpcConnectionsCommand.js +18 -41
  90. package/dist-es/commands/ListClusterOperationsCommand.js +18 -41
  91. package/dist-es/commands/ListClusterOperationsV2Command.js +18 -41
  92. package/dist-es/commands/ListClustersCommand.js +18 -41
  93. package/dist-es/commands/ListClustersV2Command.js +18 -41
  94. package/dist-es/commands/ListConfigurationRevisionsCommand.js +18 -41
  95. package/dist-es/commands/ListConfigurationsCommand.js +18 -41
  96. package/dist-es/commands/ListKafkaVersionsCommand.js +18 -41
  97. package/dist-es/commands/ListNodesCommand.js +18 -41
  98. package/dist-es/commands/ListReplicatorsCommand.js +18 -41
  99. package/dist-es/commands/ListScramSecretsCommand.js +18 -41
  100. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  101. package/dist-es/commands/ListVpcConnectionsCommand.js +18 -41
  102. package/dist-es/commands/PutClusterPolicyCommand.js +18 -41
  103. package/dist-es/commands/RebootBrokerCommand.js +18 -41
  104. package/dist-es/commands/RejectClientVpcConnectionCommand.js +18 -41
  105. package/dist-es/commands/TagResourceCommand.js +18 -41
  106. package/dist-es/commands/UntagResourceCommand.js +18 -41
  107. package/dist-es/commands/UpdateBrokerCountCommand.js +18 -41
  108. package/dist-es/commands/UpdateBrokerStorageCommand.js +18 -41
  109. package/dist-es/commands/UpdateBrokerTypeCommand.js +18 -41
  110. package/dist-es/commands/UpdateClusterConfigurationCommand.js +18 -41
  111. package/dist-es/commands/UpdateClusterKafkaVersionCommand.js +18 -41
  112. package/dist-es/commands/UpdateConfigurationCommand.js +18 -41
  113. package/dist-es/commands/UpdateConnectivityCommand.js +18 -41
  114. package/dist-es/commands/UpdateMonitoringCommand.js +18 -41
  115. package/dist-es/commands/UpdateReplicationInfoCommand.js +18 -41
  116. package/dist-es/commands/UpdateSecurityCommand.js +18 -41
  117. package/dist-es/commands/UpdateStorageCommand.js +18 -41
  118. package/dist-es/endpoint/EndpointParameters.js +6 -0
  119. package/dist-es/pagination/ListClientVpcConnectionsPaginator.js +2 -23
  120. package/dist-es/pagination/ListClusterOperationsPaginator.js +2 -23
  121. package/dist-es/pagination/ListClusterOperationsV2Paginator.js +2 -23
  122. package/dist-es/pagination/ListClustersPaginator.js +2 -23
  123. package/dist-es/pagination/ListClustersV2Paginator.js +2 -23
  124. package/dist-es/pagination/ListConfigurationRevisionsPaginator.js +2 -23
  125. package/dist-es/pagination/ListConfigurationsPaginator.js +2 -23
  126. package/dist-es/pagination/ListKafkaVersionsPaginator.js +2 -23
  127. package/dist-es/pagination/ListNodesPaginator.js +2 -23
  128. package/dist-es/pagination/ListReplicatorsPaginator.js +2 -23
  129. package/dist-es/pagination/ListScramSecretsPaginator.js +2 -23
  130. package/dist-es/pagination/ListVpcConnectionsPaginator.js +2 -23
  131. package/dist-types/commands/BatchAssociateScramSecretCommand.d.ts +6 -21
  132. package/dist-types/commands/BatchDisassociateScramSecretCommand.d.ts +6 -21
  133. package/dist-types/commands/CreateClusterCommand.d.ts +6 -21
  134. package/dist-types/commands/CreateClusterV2Command.d.ts +6 -21
  135. package/dist-types/commands/CreateConfigurationCommand.d.ts +6 -21
  136. package/dist-types/commands/CreateReplicatorCommand.d.ts +6 -21
  137. package/dist-types/commands/CreateVpcConnectionCommand.d.ts +6 -21
  138. package/dist-types/commands/DeleteClusterCommand.d.ts +6 -21
  139. package/dist-types/commands/DeleteClusterPolicyCommand.d.ts +6 -21
  140. package/dist-types/commands/DeleteConfigurationCommand.d.ts +6 -21
  141. package/dist-types/commands/DeleteReplicatorCommand.d.ts +6 -21
  142. package/dist-types/commands/DeleteVpcConnectionCommand.d.ts +6 -21
  143. package/dist-types/commands/DescribeClusterCommand.d.ts +6 -21
  144. package/dist-types/commands/DescribeClusterOperationCommand.d.ts +6 -21
  145. package/dist-types/commands/DescribeClusterOperationV2Command.d.ts +6 -21
  146. package/dist-types/commands/DescribeClusterV2Command.d.ts +6 -21
  147. package/dist-types/commands/DescribeConfigurationCommand.d.ts +6 -21
  148. package/dist-types/commands/DescribeConfigurationRevisionCommand.d.ts +6 -21
  149. package/dist-types/commands/DescribeReplicatorCommand.d.ts +6 -21
  150. package/dist-types/commands/DescribeVpcConnectionCommand.d.ts +6 -21
  151. package/dist-types/commands/GetBootstrapBrokersCommand.d.ts +6 -21
  152. package/dist-types/commands/GetClusterPolicyCommand.d.ts +6 -21
  153. package/dist-types/commands/GetCompatibleKafkaVersionsCommand.d.ts +6 -21
  154. package/dist-types/commands/ListClientVpcConnectionsCommand.d.ts +6 -21
  155. package/dist-types/commands/ListClusterOperationsCommand.d.ts +6 -21
  156. package/dist-types/commands/ListClusterOperationsV2Command.d.ts +6 -21
  157. package/dist-types/commands/ListClustersCommand.d.ts +6 -21
  158. package/dist-types/commands/ListClustersV2Command.d.ts +6 -21
  159. package/dist-types/commands/ListConfigurationRevisionsCommand.d.ts +6 -21
  160. package/dist-types/commands/ListConfigurationsCommand.d.ts +6 -21
  161. package/dist-types/commands/ListKafkaVersionsCommand.d.ts +6 -21
  162. package/dist-types/commands/ListNodesCommand.d.ts +6 -21
  163. package/dist-types/commands/ListReplicatorsCommand.d.ts +6 -21
  164. package/dist-types/commands/ListScramSecretsCommand.d.ts +6 -21
  165. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  166. package/dist-types/commands/ListVpcConnectionsCommand.d.ts +6 -21
  167. package/dist-types/commands/PutClusterPolicyCommand.d.ts +6 -21
  168. package/dist-types/commands/RebootBrokerCommand.d.ts +6 -21
  169. package/dist-types/commands/RejectClientVpcConnectionCommand.d.ts +6 -21
  170. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  171. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  172. package/dist-types/commands/UpdateBrokerCountCommand.d.ts +6 -21
  173. package/dist-types/commands/UpdateBrokerStorageCommand.d.ts +6 -21
  174. package/dist-types/commands/UpdateBrokerTypeCommand.d.ts +6 -21
  175. package/dist-types/commands/UpdateClusterConfigurationCommand.d.ts +6 -21
  176. package/dist-types/commands/UpdateClusterKafkaVersionCommand.d.ts +6 -21
  177. package/dist-types/commands/UpdateConfigurationCommand.d.ts +6 -21
  178. package/dist-types/commands/UpdateConnectivityCommand.d.ts +6 -21
  179. package/dist-types/commands/UpdateMonitoringCommand.d.ts +6 -21
  180. package/dist-types/commands/UpdateReplicationInfoCommand.d.ts +6 -21
  181. package/dist-types/commands/UpdateSecurityCommand.d.ts +6 -21
  182. package/dist-types/commands/UpdateStorageCommand.d.ts +6 -21
  183. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  184. package/dist-types/pagination/ListClientVpcConnectionsPaginator.d.ts +1 -1
  185. package/dist-types/pagination/ListClusterOperationsPaginator.d.ts +1 -1
  186. package/dist-types/pagination/ListClusterOperationsV2Paginator.d.ts +1 -1
  187. package/dist-types/pagination/ListClustersPaginator.d.ts +1 -1
  188. package/dist-types/pagination/ListClustersV2Paginator.d.ts +1 -1
  189. package/dist-types/pagination/ListConfigurationRevisionsPaginator.d.ts +1 -1
  190. package/dist-types/pagination/ListConfigurationsPaginator.d.ts +1 -1
  191. package/dist-types/pagination/ListKafkaVersionsPaginator.d.ts +1 -1
  192. package/dist-types/pagination/ListNodesPaginator.d.ts +1 -1
  193. package/dist-types/pagination/ListReplicatorsPaginator.d.ts +1 -1
  194. package/dist-types/pagination/ListScramSecretsPaginator.d.ts +1 -1
  195. package/dist-types/pagination/ListVpcConnectionsPaginator.d.ts +1 -1
  196. package/dist-types/ts3.4/commands/BatchAssociateScramSecretCommand.d.ts +12 -24
  197. package/dist-types/ts3.4/commands/BatchDisassociateScramSecretCommand.d.ts +12 -24
  198. package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +14 -23
  199. package/dist-types/ts3.4/commands/CreateClusterV2Command.d.ts +14 -23
  200. package/dist-types/ts3.4/commands/CreateConfigurationCommand.d.ts +14 -23
  201. package/dist-types/ts3.4/commands/CreateReplicatorCommand.d.ts +14 -23
  202. package/dist-types/ts3.4/commands/CreateVpcConnectionCommand.d.ts +14 -23
  203. package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +14 -23
  204. package/dist-types/ts3.4/commands/DeleteClusterPolicyCommand.d.ts +14 -23
  205. package/dist-types/ts3.4/commands/DeleteConfigurationCommand.d.ts +14 -23
  206. package/dist-types/ts3.4/commands/DeleteReplicatorCommand.d.ts +14 -23
  207. package/dist-types/ts3.4/commands/DeleteVpcConnectionCommand.d.ts +14 -23
  208. package/dist-types/ts3.4/commands/DescribeClusterCommand.d.ts +14 -23
  209. package/dist-types/ts3.4/commands/DescribeClusterOperationCommand.d.ts +12 -24
  210. package/dist-types/ts3.4/commands/DescribeClusterOperationV2Command.d.ts +12 -24
  211. package/dist-types/ts3.4/commands/DescribeClusterV2Command.d.ts +14 -23
  212. package/dist-types/ts3.4/commands/DescribeConfigurationCommand.d.ts +12 -24
  213. package/dist-types/ts3.4/commands/DescribeConfigurationRevisionCommand.d.ts +12 -24
  214. package/dist-types/ts3.4/commands/DescribeReplicatorCommand.d.ts +14 -23
  215. package/dist-types/ts3.4/commands/DescribeVpcConnectionCommand.d.ts +12 -24
  216. package/dist-types/ts3.4/commands/GetBootstrapBrokersCommand.d.ts +14 -23
  217. package/dist-types/ts3.4/commands/GetClusterPolicyCommand.d.ts +14 -23
  218. package/dist-types/ts3.4/commands/GetCompatibleKafkaVersionsCommand.d.ts +12 -24
  219. package/dist-types/ts3.4/commands/ListClientVpcConnectionsCommand.d.ts +12 -24
  220. package/dist-types/ts3.4/commands/ListClusterOperationsCommand.d.ts +12 -24
  221. package/dist-types/ts3.4/commands/ListClusterOperationsV2Command.d.ts +12 -24
  222. package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +14 -23
  223. package/dist-types/ts3.4/commands/ListClustersV2Command.d.ts +14 -23
  224. package/dist-types/ts3.4/commands/ListConfigurationRevisionsCommand.d.ts +12 -24
  225. package/dist-types/ts3.4/commands/ListConfigurationsCommand.d.ts +14 -23
  226. package/dist-types/ts3.4/commands/ListKafkaVersionsCommand.d.ts +14 -23
  227. package/dist-types/ts3.4/commands/ListNodesCommand.d.ts +14 -23
  228. package/dist-types/ts3.4/commands/ListReplicatorsCommand.d.ts +14 -23
  229. package/dist-types/ts3.4/commands/ListScramSecretsCommand.d.ts +14 -23
  230. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  231. package/dist-types/ts3.4/commands/ListVpcConnectionsCommand.d.ts +14 -23
  232. package/dist-types/ts3.4/commands/PutClusterPolicyCommand.d.ts +14 -23
  233. package/dist-types/ts3.4/commands/RebootBrokerCommand.d.ts +14 -23
  234. package/dist-types/ts3.4/commands/RejectClientVpcConnectionCommand.d.ts +12 -24
  235. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  236. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  237. package/dist-types/ts3.4/commands/UpdateBrokerCountCommand.d.ts +14 -23
  238. package/dist-types/ts3.4/commands/UpdateBrokerStorageCommand.d.ts +14 -23
  239. package/dist-types/ts3.4/commands/UpdateBrokerTypeCommand.d.ts +14 -23
  240. package/dist-types/ts3.4/commands/UpdateClusterConfigurationCommand.d.ts +12 -24
  241. package/dist-types/ts3.4/commands/UpdateClusterKafkaVersionCommand.d.ts +12 -24
  242. package/dist-types/ts3.4/commands/UpdateConfigurationCommand.d.ts +14 -23
  243. package/dist-types/ts3.4/commands/UpdateConnectivityCommand.d.ts +14 -23
  244. package/dist-types/ts3.4/commands/UpdateMonitoringCommand.d.ts +14 -23
  245. package/dist-types/ts3.4/commands/UpdateReplicationInfoCommand.d.ts +12 -24
  246. package/dist-types/ts3.4/commands/UpdateSecurityCommand.d.ts +14 -23
  247. package/dist-types/ts3.4/commands/UpdateStorageCommand.d.ts +14 -23
  248. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  249. package/dist-types/ts3.4/pagination/ListClientVpcConnectionsPaginator.d.ts +3 -3
  250. package/dist-types/ts3.4/pagination/ListClusterOperationsPaginator.d.ts +3 -3
  251. package/dist-types/ts3.4/pagination/ListClusterOperationsV2Paginator.d.ts +3 -3
  252. package/dist-types/ts3.4/pagination/ListClustersPaginator.d.ts +3 -3
  253. package/dist-types/ts3.4/pagination/ListClustersV2Paginator.d.ts +3 -3
  254. package/dist-types/ts3.4/pagination/ListConfigurationRevisionsPaginator.d.ts +3 -3
  255. package/dist-types/ts3.4/pagination/ListConfigurationsPaginator.d.ts +3 -3
  256. package/dist-types/ts3.4/pagination/ListKafkaVersionsPaginator.d.ts +3 -3
  257. package/dist-types/ts3.4/pagination/ListNodesPaginator.d.ts +3 -3
  258. package/dist-types/ts3.4/pagination/ListReplicatorsPaginator.d.ts +3 -3
  259. package/dist-types/ts3.4/pagination/ListScramSecretsPaginator.d.ts +3 -3
  260. package/dist-types/ts3.4/pagination/ListVpcConnectionsPaginator.d.ts +3 -3
  261. package/package.json +11 -11
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListClustersV2 = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListClustersV2Command_1 = require("../commands/ListClustersV2Command");
5
6
  const KafkaClient_1 = require("../KafkaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListClustersV2Command_1.ListClustersV2Command(input), ...args);
8
- };
9
- async function* paginateListClustersV2(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 KafkaClient_1.KafkaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Kafka | KafkaClient");
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.paginateListClustersV2 = paginateListClustersV2;
7
+ exports.paginateListClustersV2 = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListClustersV2Command_1.ListClustersV2Command, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListConfigurationRevisions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListConfigurationRevisionsCommand_1 = require("../commands/ListConfigurationRevisionsCommand");
5
6
  const KafkaClient_1 = require("../KafkaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListConfigurationRevisionsCommand_1.ListConfigurationRevisionsCommand(input), ...args);
8
- };
9
- async function* paginateListConfigurationRevisions(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 KafkaClient_1.KafkaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Kafka | KafkaClient");
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.paginateListConfigurationRevisions = paginateListConfigurationRevisions;
7
+ exports.paginateListConfigurationRevisions = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListConfigurationRevisionsCommand_1.ListConfigurationRevisionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListConfigurations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListConfigurationsCommand_1 = require("../commands/ListConfigurationsCommand");
5
6
  const KafkaClient_1 = require("../KafkaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListConfigurationsCommand_1.ListConfigurationsCommand(input), ...args);
8
- };
9
- async function* paginateListConfigurations(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 KafkaClient_1.KafkaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Kafka | KafkaClient");
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.paginateListConfigurations = paginateListConfigurations;
7
+ exports.paginateListConfigurations = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListConfigurationsCommand_1.ListConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListKafkaVersions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListKafkaVersionsCommand_1 = require("../commands/ListKafkaVersionsCommand");
5
6
  const KafkaClient_1 = require("../KafkaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListKafkaVersionsCommand_1.ListKafkaVersionsCommand(input), ...args);
8
- };
9
- async function* paginateListKafkaVersions(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 KafkaClient_1.KafkaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Kafka | KafkaClient");
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.paginateListKafkaVersions = paginateListKafkaVersions;
7
+ exports.paginateListKafkaVersions = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListKafkaVersionsCommand_1.ListKafkaVersionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListNodes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListNodesCommand_1 = require("../commands/ListNodesCommand");
5
6
  const KafkaClient_1 = require("../KafkaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListNodesCommand_1.ListNodesCommand(input), ...args);
8
- };
9
- async function* paginateListNodes(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 KafkaClient_1.KafkaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Kafka | KafkaClient");
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.paginateListNodes = paginateListNodes;
7
+ exports.paginateListNodes = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListNodesCommand_1.ListNodesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListReplicators = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListReplicatorsCommand_1 = require("../commands/ListReplicatorsCommand");
5
6
  const KafkaClient_1 = require("../KafkaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListReplicatorsCommand_1.ListReplicatorsCommand(input), ...args);
8
- };
9
- async function* paginateListReplicators(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 KafkaClient_1.KafkaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Kafka | KafkaClient");
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.paginateListReplicators = paginateListReplicators;
7
+ exports.paginateListReplicators = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListReplicatorsCommand_1.ListReplicatorsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListScramSecrets = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListScramSecretsCommand_1 = require("../commands/ListScramSecretsCommand");
5
6
  const KafkaClient_1 = require("../KafkaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListScramSecretsCommand_1.ListScramSecretsCommand(input), ...args);
8
- };
9
- async function* paginateListScramSecrets(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 KafkaClient_1.KafkaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Kafka | KafkaClient");
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.paginateListScramSecrets = paginateListScramSecrets;
7
+ exports.paginateListScramSecrets = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListScramSecretsCommand_1.ListScramSecretsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListVpcConnections = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListVpcConnectionsCommand_1 = require("../commands/ListVpcConnectionsCommand");
5
6
  const KafkaClient_1 = require("../KafkaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListVpcConnectionsCommand_1.ListVpcConnectionsCommand(input), ...args);
8
- };
9
- async function* paginateListVpcConnections(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 KafkaClient_1.KafkaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Kafka | KafkaClient");
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.paginateListVpcConnections = paginateListVpcConnections;
7
+ exports.paginateListVpcConnections = (0, core_1.createPaginator)(KafkaClient_1.KafkaClient, ListVpcConnectionsCommand_1.ListVpcConnectionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_BatchAssociateScramSecretCommand, se_BatchAssociateScramSecretCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class BatchAssociateScramSecretCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, BatchAssociateScramSecretCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "KafkaClient";
26
- const commandName = "BatchAssociateScramSecretCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Kafka",
35
- operation: "BatchAssociateScramSecret",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_BatchAssociateScramSecretCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_BatchAssociateScramSecretCommand(output, context);
46
- }
7
+ export class BatchAssociateScramSecretCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Kafka", "BatchAssociateScramSecret", {})
19
+ .n("KafkaClient", "BatchAssociateScramSecretCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_BatchAssociateScramSecretCommand)
22
+ .de(de_BatchAssociateScramSecretCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_BatchDisassociateScramSecretCommand, se_BatchDisassociateScramSecretCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class BatchDisassociateScramSecretCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, BatchDisassociateScramSecretCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "KafkaClient";
26
- const commandName = "BatchDisassociateScramSecretCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Kafka",
35
- operation: "BatchDisassociateScramSecret",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_BatchDisassociateScramSecretCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_BatchDisassociateScramSecretCommand(output, context);
46
- }
7
+ export class BatchDisassociateScramSecretCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Kafka", "BatchDisassociateScramSecret", {})
19
+ .n("KafkaClient", "BatchDisassociateScramSecretCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_BatchDisassociateScramSecretCommand)
22
+ .de(de_BatchDisassociateScramSecretCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateClusterCommand, se_CreateClusterCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateClusterCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateClusterCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "KafkaClient";
26
- const commandName = "CreateClusterCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Kafka",
35
- operation: "CreateCluster",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateClusterCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateClusterCommand(output, context);
46
- }
7
+ export class CreateClusterCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Kafka", "CreateCluster", {})
19
+ .n("KafkaClient", "CreateClusterCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateClusterCommand)
22
+ .de(de_CreateClusterCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateClusterV2Command, se_CreateClusterV2Command } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateClusterV2Command extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateClusterV2Command.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "KafkaClient";
26
- const commandName = "CreateClusterV2Command";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Kafka",
35
- operation: "CreateClusterV2",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateClusterV2Command(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateClusterV2Command(output, context);
46
- }
7
+ export class CreateClusterV2Command extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Kafka", "CreateClusterV2", {})
19
+ .n("KafkaClient", "CreateClusterV2Command")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateClusterV2Command)
22
+ .de(de_CreateClusterV2Command)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateConfigurationCommand, se_CreateConfigurationCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateConfigurationCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateConfigurationCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "KafkaClient";
26
- const commandName = "CreateConfigurationCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Kafka",
35
- operation: "CreateConfiguration",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateConfigurationCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateConfigurationCommand(output, context);
46
- }
7
+ export class CreateConfigurationCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Kafka", "CreateConfiguration", {})
19
+ .n("KafkaClient", "CreateConfigurationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateConfigurationCommand)
22
+ .de(de_CreateConfigurationCommand)
23
+ .build() {
47
24
  }