@aws-sdk/client-elastic-load-balancing-v2 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 (205) hide show
  1. package/dist-cjs/commands/AddListenerCertificatesCommand.js +18 -41
  2. package/dist-cjs/commands/AddTagsCommand.js +18 -41
  3. package/dist-cjs/commands/AddTrustStoreRevocationsCommand.js +18 -41
  4. package/dist-cjs/commands/CreateListenerCommand.js +18 -41
  5. package/dist-cjs/commands/CreateLoadBalancerCommand.js +18 -41
  6. package/dist-cjs/commands/CreateRuleCommand.js +18 -41
  7. package/dist-cjs/commands/CreateTargetGroupCommand.js +18 -41
  8. package/dist-cjs/commands/CreateTrustStoreCommand.js +18 -41
  9. package/dist-cjs/commands/DeleteListenerCommand.js +18 -41
  10. package/dist-cjs/commands/DeleteLoadBalancerCommand.js +18 -41
  11. package/dist-cjs/commands/DeleteRuleCommand.js +18 -41
  12. package/dist-cjs/commands/DeleteTargetGroupCommand.js +18 -41
  13. package/dist-cjs/commands/DeleteTrustStoreCommand.js +18 -41
  14. package/dist-cjs/commands/DeregisterTargetsCommand.js +18 -41
  15. package/dist-cjs/commands/DescribeAccountLimitsCommand.js +18 -41
  16. package/dist-cjs/commands/DescribeListenerCertificatesCommand.js +18 -41
  17. package/dist-cjs/commands/DescribeListenersCommand.js +18 -41
  18. package/dist-cjs/commands/DescribeLoadBalancerAttributesCommand.js +18 -41
  19. package/dist-cjs/commands/DescribeLoadBalancersCommand.js +18 -41
  20. package/dist-cjs/commands/DescribeRulesCommand.js +18 -41
  21. package/dist-cjs/commands/DescribeSSLPoliciesCommand.js +18 -41
  22. package/dist-cjs/commands/DescribeTagsCommand.js +18 -41
  23. package/dist-cjs/commands/DescribeTargetGroupAttributesCommand.js +18 -41
  24. package/dist-cjs/commands/DescribeTargetGroupsCommand.js +18 -41
  25. package/dist-cjs/commands/DescribeTargetHealthCommand.js +18 -41
  26. package/dist-cjs/commands/DescribeTrustStoreAssociationsCommand.js +18 -41
  27. package/dist-cjs/commands/DescribeTrustStoreRevocationsCommand.js +18 -41
  28. package/dist-cjs/commands/DescribeTrustStoresCommand.js +18 -41
  29. package/dist-cjs/commands/GetTrustStoreCaCertificatesBundleCommand.js +18 -41
  30. package/dist-cjs/commands/GetTrustStoreRevocationContentCommand.js +18 -41
  31. package/dist-cjs/commands/ModifyListenerCommand.js +18 -41
  32. package/dist-cjs/commands/ModifyLoadBalancerAttributesCommand.js +18 -41
  33. package/dist-cjs/commands/ModifyRuleCommand.js +18 -41
  34. package/dist-cjs/commands/ModifyTargetGroupAttributesCommand.js +18 -41
  35. package/dist-cjs/commands/ModifyTargetGroupCommand.js +18 -41
  36. package/dist-cjs/commands/ModifyTrustStoreCommand.js +18 -41
  37. package/dist-cjs/commands/RegisterTargetsCommand.js +18 -41
  38. package/dist-cjs/commands/RemoveListenerCertificatesCommand.js +18 -41
  39. package/dist-cjs/commands/RemoveTagsCommand.js +18 -41
  40. package/dist-cjs/commands/RemoveTrustStoreRevocationsCommand.js +18 -41
  41. package/dist-cjs/commands/SetIpAddressTypeCommand.js +18 -41
  42. package/dist-cjs/commands/SetRulePrioritiesCommand.js +18 -41
  43. package/dist-cjs/commands/SetSecurityGroupsCommand.js +18 -41
  44. package/dist-cjs/commands/SetSubnetsCommand.js +18 -41
  45. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  46. package/dist-cjs/pagination/DescribeListenersPaginator.js +2 -23
  47. package/dist-cjs/pagination/DescribeLoadBalancersPaginator.js +2 -23
  48. package/dist-cjs/pagination/DescribeTargetGroupsPaginator.js +2 -23
  49. package/dist-cjs/pagination/DescribeTrustStoreAssociationsPaginator.js +2 -24
  50. package/dist-cjs/pagination/DescribeTrustStoreRevocationsPaginator.js +2 -24
  51. package/dist-cjs/pagination/DescribeTrustStoresPaginator.js +2 -24
  52. package/dist-es/commands/AddListenerCertificatesCommand.js +18 -41
  53. package/dist-es/commands/AddTagsCommand.js +18 -41
  54. package/dist-es/commands/AddTrustStoreRevocationsCommand.js +18 -41
  55. package/dist-es/commands/CreateListenerCommand.js +18 -41
  56. package/dist-es/commands/CreateLoadBalancerCommand.js +18 -41
  57. package/dist-es/commands/CreateRuleCommand.js +18 -41
  58. package/dist-es/commands/CreateTargetGroupCommand.js +18 -41
  59. package/dist-es/commands/CreateTrustStoreCommand.js +18 -41
  60. package/dist-es/commands/DeleteListenerCommand.js +18 -41
  61. package/dist-es/commands/DeleteLoadBalancerCommand.js +18 -41
  62. package/dist-es/commands/DeleteRuleCommand.js +18 -41
  63. package/dist-es/commands/DeleteTargetGroupCommand.js +18 -41
  64. package/dist-es/commands/DeleteTrustStoreCommand.js +18 -41
  65. package/dist-es/commands/DeregisterTargetsCommand.js +18 -41
  66. package/dist-es/commands/DescribeAccountLimitsCommand.js +18 -41
  67. package/dist-es/commands/DescribeListenerCertificatesCommand.js +18 -41
  68. package/dist-es/commands/DescribeListenersCommand.js +18 -41
  69. package/dist-es/commands/DescribeLoadBalancerAttributesCommand.js +18 -41
  70. package/dist-es/commands/DescribeLoadBalancersCommand.js +18 -41
  71. package/dist-es/commands/DescribeRulesCommand.js +18 -41
  72. package/dist-es/commands/DescribeSSLPoliciesCommand.js +18 -41
  73. package/dist-es/commands/DescribeTagsCommand.js +18 -41
  74. package/dist-es/commands/DescribeTargetGroupAttributesCommand.js +18 -41
  75. package/dist-es/commands/DescribeTargetGroupsCommand.js +18 -41
  76. package/dist-es/commands/DescribeTargetHealthCommand.js +18 -41
  77. package/dist-es/commands/DescribeTrustStoreAssociationsCommand.js +18 -41
  78. package/dist-es/commands/DescribeTrustStoreRevocationsCommand.js +18 -41
  79. package/dist-es/commands/DescribeTrustStoresCommand.js +18 -41
  80. package/dist-es/commands/GetTrustStoreCaCertificatesBundleCommand.js +18 -41
  81. package/dist-es/commands/GetTrustStoreRevocationContentCommand.js +18 -41
  82. package/dist-es/commands/ModifyListenerCommand.js +18 -41
  83. package/dist-es/commands/ModifyLoadBalancerAttributesCommand.js +18 -41
  84. package/dist-es/commands/ModifyRuleCommand.js +18 -41
  85. package/dist-es/commands/ModifyTargetGroupAttributesCommand.js +18 -41
  86. package/dist-es/commands/ModifyTargetGroupCommand.js +18 -41
  87. package/dist-es/commands/ModifyTrustStoreCommand.js +18 -41
  88. package/dist-es/commands/RegisterTargetsCommand.js +18 -41
  89. package/dist-es/commands/RemoveListenerCertificatesCommand.js +18 -41
  90. package/dist-es/commands/RemoveTagsCommand.js +18 -41
  91. package/dist-es/commands/RemoveTrustStoreRevocationsCommand.js +18 -41
  92. package/dist-es/commands/SetIpAddressTypeCommand.js +18 -41
  93. package/dist-es/commands/SetRulePrioritiesCommand.js +18 -41
  94. package/dist-es/commands/SetSecurityGroupsCommand.js +18 -41
  95. package/dist-es/commands/SetSubnetsCommand.js +18 -41
  96. package/dist-es/endpoint/EndpointParameters.js +6 -0
  97. package/dist-es/pagination/DescribeListenersPaginator.js +2 -22
  98. package/dist-es/pagination/DescribeLoadBalancersPaginator.js +2 -22
  99. package/dist-es/pagination/DescribeTargetGroupsPaginator.js +2 -22
  100. package/dist-es/pagination/DescribeTrustStoreAssociationsPaginator.js +2 -23
  101. package/dist-es/pagination/DescribeTrustStoreRevocationsPaginator.js +2 -23
  102. package/dist-es/pagination/DescribeTrustStoresPaginator.js +2 -23
  103. package/dist-types/commands/AddListenerCertificatesCommand.d.ts +6 -21
  104. package/dist-types/commands/AddTagsCommand.d.ts +6 -21
  105. package/dist-types/commands/AddTrustStoreRevocationsCommand.d.ts +6 -21
  106. package/dist-types/commands/CreateListenerCommand.d.ts +6 -21
  107. package/dist-types/commands/CreateLoadBalancerCommand.d.ts +6 -21
  108. package/dist-types/commands/CreateRuleCommand.d.ts +6 -21
  109. package/dist-types/commands/CreateTargetGroupCommand.d.ts +6 -21
  110. package/dist-types/commands/CreateTrustStoreCommand.d.ts +6 -21
  111. package/dist-types/commands/DeleteListenerCommand.d.ts +6 -21
  112. package/dist-types/commands/DeleteLoadBalancerCommand.d.ts +6 -21
  113. package/dist-types/commands/DeleteRuleCommand.d.ts +6 -21
  114. package/dist-types/commands/DeleteTargetGroupCommand.d.ts +6 -21
  115. package/dist-types/commands/DeleteTrustStoreCommand.d.ts +6 -21
  116. package/dist-types/commands/DeregisterTargetsCommand.d.ts +6 -21
  117. package/dist-types/commands/DescribeAccountLimitsCommand.d.ts +6 -21
  118. package/dist-types/commands/DescribeListenerCertificatesCommand.d.ts +6 -21
  119. package/dist-types/commands/DescribeListenersCommand.d.ts +6 -21
  120. package/dist-types/commands/DescribeLoadBalancerAttributesCommand.d.ts +6 -21
  121. package/dist-types/commands/DescribeLoadBalancersCommand.d.ts +6 -21
  122. package/dist-types/commands/DescribeRulesCommand.d.ts +6 -21
  123. package/dist-types/commands/DescribeSSLPoliciesCommand.d.ts +6 -21
  124. package/dist-types/commands/DescribeTagsCommand.d.ts +6 -21
  125. package/dist-types/commands/DescribeTargetGroupAttributesCommand.d.ts +6 -21
  126. package/dist-types/commands/DescribeTargetGroupsCommand.d.ts +6 -21
  127. package/dist-types/commands/DescribeTargetHealthCommand.d.ts +6 -21
  128. package/dist-types/commands/DescribeTrustStoreAssociationsCommand.d.ts +6 -21
  129. package/dist-types/commands/DescribeTrustStoreRevocationsCommand.d.ts +6 -21
  130. package/dist-types/commands/DescribeTrustStoresCommand.d.ts +6 -21
  131. package/dist-types/commands/GetTrustStoreCaCertificatesBundleCommand.d.ts +6 -21
  132. package/dist-types/commands/GetTrustStoreRevocationContentCommand.d.ts +6 -21
  133. package/dist-types/commands/ModifyListenerCommand.d.ts +6 -21
  134. package/dist-types/commands/ModifyLoadBalancerAttributesCommand.d.ts +6 -21
  135. package/dist-types/commands/ModifyRuleCommand.d.ts +6 -21
  136. package/dist-types/commands/ModifyTargetGroupAttributesCommand.d.ts +6 -21
  137. package/dist-types/commands/ModifyTargetGroupCommand.d.ts +6 -21
  138. package/dist-types/commands/ModifyTrustStoreCommand.d.ts +6 -21
  139. package/dist-types/commands/RegisterTargetsCommand.d.ts +6 -21
  140. package/dist-types/commands/RemoveListenerCertificatesCommand.d.ts +6 -21
  141. package/dist-types/commands/RemoveTagsCommand.d.ts +6 -21
  142. package/dist-types/commands/RemoveTrustStoreRevocationsCommand.d.ts +6 -21
  143. package/dist-types/commands/SetIpAddressTypeCommand.d.ts +6 -21
  144. package/dist-types/commands/SetRulePrioritiesCommand.d.ts +6 -21
  145. package/dist-types/commands/SetSecurityGroupsCommand.d.ts +6 -21
  146. package/dist-types/commands/SetSubnetsCommand.d.ts +6 -21
  147. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  148. package/dist-types/pagination/DescribeListenersPaginator.d.ts +1 -1
  149. package/dist-types/pagination/DescribeLoadBalancersPaginator.d.ts +1 -1
  150. package/dist-types/pagination/DescribeTargetGroupsPaginator.d.ts +1 -1
  151. package/dist-types/pagination/DescribeTrustStoreAssociationsPaginator.d.ts +1 -1
  152. package/dist-types/pagination/DescribeTrustStoreRevocationsPaginator.d.ts +1 -1
  153. package/dist-types/pagination/DescribeTrustStoresPaginator.d.ts +1 -1
  154. package/dist-types/ts3.4/commands/AddListenerCertificatesCommand.d.ts +12 -24
  155. package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +12 -23
  156. package/dist-types/ts3.4/commands/AddTrustStoreRevocationsCommand.d.ts +12 -24
  157. package/dist-types/ts3.4/commands/CreateListenerCommand.d.ts +14 -23
  158. package/dist-types/ts3.4/commands/CreateLoadBalancerCommand.d.ts +14 -23
  159. package/dist-types/ts3.4/commands/CreateRuleCommand.d.ts +14 -23
  160. package/dist-types/ts3.4/commands/CreateTargetGroupCommand.d.ts +14 -23
  161. package/dist-types/ts3.4/commands/CreateTrustStoreCommand.d.ts +14 -23
  162. package/dist-types/ts3.4/commands/DeleteListenerCommand.d.ts +14 -23
  163. package/dist-types/ts3.4/commands/DeleteLoadBalancerCommand.d.ts +14 -23
  164. package/dist-types/ts3.4/commands/DeleteRuleCommand.d.ts +14 -23
  165. package/dist-types/ts3.4/commands/DeleteTargetGroupCommand.d.ts +14 -23
  166. package/dist-types/ts3.4/commands/DeleteTrustStoreCommand.d.ts +14 -23
  167. package/dist-types/ts3.4/commands/DeregisterTargetsCommand.d.ts +14 -23
  168. package/dist-types/ts3.4/commands/DescribeAccountLimitsCommand.d.ts +12 -24
  169. package/dist-types/ts3.4/commands/DescribeListenerCertificatesCommand.d.ts +12 -24
  170. package/dist-types/ts3.4/commands/DescribeListenersCommand.d.ts +14 -23
  171. package/dist-types/ts3.4/commands/DescribeLoadBalancerAttributesCommand.d.ts +12 -24
  172. package/dist-types/ts3.4/commands/DescribeLoadBalancersCommand.d.ts +12 -24
  173. package/dist-types/ts3.4/commands/DescribeRulesCommand.d.ts +14 -23
  174. package/dist-types/ts3.4/commands/DescribeSSLPoliciesCommand.d.ts +14 -23
  175. package/dist-types/ts3.4/commands/DescribeTagsCommand.d.ts +14 -23
  176. package/dist-types/ts3.4/commands/DescribeTargetGroupAttributesCommand.d.ts +12 -24
  177. package/dist-types/ts3.4/commands/DescribeTargetGroupsCommand.d.ts +12 -24
  178. package/dist-types/ts3.4/commands/DescribeTargetHealthCommand.d.ts +12 -24
  179. package/dist-types/ts3.4/commands/DescribeTrustStoreAssociationsCommand.d.ts +12 -24
  180. package/dist-types/ts3.4/commands/DescribeTrustStoreRevocationsCommand.d.ts +12 -24
  181. package/dist-types/ts3.4/commands/DescribeTrustStoresCommand.d.ts +14 -23
  182. package/dist-types/ts3.4/commands/GetTrustStoreCaCertificatesBundleCommand.d.ts +12 -24
  183. package/dist-types/ts3.4/commands/GetTrustStoreRevocationContentCommand.d.ts +12 -24
  184. package/dist-types/ts3.4/commands/ModifyListenerCommand.d.ts +14 -23
  185. package/dist-types/ts3.4/commands/ModifyLoadBalancerAttributesCommand.d.ts +12 -24
  186. package/dist-types/ts3.4/commands/ModifyRuleCommand.d.ts +14 -23
  187. package/dist-types/ts3.4/commands/ModifyTargetGroupAttributesCommand.d.ts +12 -24
  188. package/dist-types/ts3.4/commands/ModifyTargetGroupCommand.d.ts +14 -23
  189. package/dist-types/ts3.4/commands/ModifyTrustStoreCommand.d.ts +14 -23
  190. package/dist-types/ts3.4/commands/RegisterTargetsCommand.d.ts +14 -23
  191. package/dist-types/ts3.4/commands/RemoveListenerCertificatesCommand.d.ts +12 -24
  192. package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +14 -23
  193. package/dist-types/ts3.4/commands/RemoveTrustStoreRevocationsCommand.d.ts +12 -24
  194. package/dist-types/ts3.4/commands/SetIpAddressTypeCommand.d.ts +14 -23
  195. package/dist-types/ts3.4/commands/SetRulePrioritiesCommand.d.ts +14 -23
  196. package/dist-types/ts3.4/commands/SetSecurityGroupsCommand.d.ts +14 -23
  197. package/dist-types/ts3.4/commands/SetSubnetsCommand.d.ts +14 -23
  198. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  199. package/dist-types/ts3.4/pagination/DescribeListenersPaginator.d.ts +3 -3
  200. package/dist-types/ts3.4/pagination/DescribeLoadBalancersPaginator.d.ts +3 -3
  201. package/dist-types/ts3.4/pagination/DescribeTargetGroupsPaginator.d.ts +3 -3
  202. package/dist-types/ts3.4/pagination/DescribeTrustStoreAssociationsPaginator.d.ts +3 -3
  203. package/dist-types/ts3.4/pagination/DescribeTrustStoreRevocationsPaginator.d.ts +3 -3
  204. package/dist-types/ts3.4/pagination/DescribeTrustStoresPaginator.d.ts +3 -3
  205. package/package.json +11 -10
@@ -5,47 +5,24 @@ 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_query_1 = require("../protocols/Aws_query");
10
- class RegisterTargetsCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RegisterTargetsCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ElasticLoadBalancingV2Client";
29
- const commandName = "RegisterTargetsCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "ElasticLoadBalancing_v10",
38
- operation: "RegisterTargets",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_query_1.se_RegisterTargetsCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_query_1.de_RegisterTargetsCommand)(output, context);
49
- }
10
+ class RegisterTargetsCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("ElasticLoadBalancing_v10", "RegisterTargets", {})
22
+ .n("ElasticLoadBalancingV2Client", "RegisterTargetsCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_query_1.se_RegisterTargetsCommand)
25
+ .de(Aws_query_1.de_RegisterTargetsCommand)
26
+ .build() {
50
27
  }
51
28
  exports.RegisterTargetsCommand = RegisterTargetsCommand;
@@ -5,47 +5,24 @@ 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_query_1 = require("../protocols/Aws_query");
10
- class RemoveListenerCertificatesCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RemoveListenerCertificatesCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ElasticLoadBalancingV2Client";
29
- const commandName = "RemoveListenerCertificatesCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "ElasticLoadBalancing_v10",
38
- operation: "RemoveListenerCertificates",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_query_1.se_RemoveListenerCertificatesCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_query_1.de_RemoveListenerCertificatesCommand)(output, context);
49
- }
10
+ class RemoveListenerCertificatesCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("ElasticLoadBalancing_v10", "RemoveListenerCertificates", {})
22
+ .n("ElasticLoadBalancingV2Client", "RemoveListenerCertificatesCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_query_1.se_RemoveListenerCertificatesCommand)
25
+ .de(Aws_query_1.de_RemoveListenerCertificatesCommand)
26
+ .build() {
50
27
  }
51
28
  exports.RemoveListenerCertificatesCommand = RemoveListenerCertificatesCommand;
@@ -5,47 +5,24 @@ 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_query_1 = require("../protocols/Aws_query");
10
- class RemoveTagsCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RemoveTagsCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ElasticLoadBalancingV2Client";
29
- const commandName = "RemoveTagsCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "ElasticLoadBalancing_v10",
38
- operation: "RemoveTags",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_query_1.se_RemoveTagsCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_query_1.de_RemoveTagsCommand)(output, context);
49
- }
10
+ class RemoveTagsCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("ElasticLoadBalancing_v10", "RemoveTags", {})
22
+ .n("ElasticLoadBalancingV2Client", "RemoveTagsCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_query_1.se_RemoveTagsCommand)
25
+ .de(Aws_query_1.de_RemoveTagsCommand)
26
+ .build() {
50
27
  }
51
28
  exports.RemoveTagsCommand = RemoveTagsCommand;
@@ -5,47 +5,24 @@ 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_query_1 = require("../protocols/Aws_query");
10
- class RemoveTrustStoreRevocationsCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RemoveTrustStoreRevocationsCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ElasticLoadBalancingV2Client";
29
- const commandName = "RemoveTrustStoreRevocationsCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "ElasticLoadBalancing_v10",
38
- operation: "RemoveTrustStoreRevocations",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_query_1.se_RemoveTrustStoreRevocationsCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_query_1.de_RemoveTrustStoreRevocationsCommand)(output, context);
49
- }
10
+ class RemoveTrustStoreRevocationsCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("ElasticLoadBalancing_v10", "RemoveTrustStoreRevocations", {})
22
+ .n("ElasticLoadBalancingV2Client", "RemoveTrustStoreRevocationsCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_query_1.se_RemoveTrustStoreRevocationsCommand)
25
+ .de(Aws_query_1.de_RemoveTrustStoreRevocationsCommand)
26
+ .build() {
50
27
  }
51
28
  exports.RemoveTrustStoreRevocationsCommand = RemoveTrustStoreRevocationsCommand;
@@ -5,47 +5,24 @@ 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_query_1 = require("../protocols/Aws_query");
10
- class SetIpAddressTypeCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SetIpAddressTypeCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ElasticLoadBalancingV2Client";
29
- const commandName = "SetIpAddressTypeCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "ElasticLoadBalancing_v10",
38
- operation: "SetIpAddressType",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_query_1.se_SetIpAddressTypeCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_query_1.de_SetIpAddressTypeCommand)(output, context);
49
- }
10
+ class SetIpAddressTypeCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("ElasticLoadBalancing_v10", "SetIpAddressType", {})
22
+ .n("ElasticLoadBalancingV2Client", "SetIpAddressTypeCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_query_1.se_SetIpAddressTypeCommand)
25
+ .de(Aws_query_1.de_SetIpAddressTypeCommand)
26
+ .build() {
50
27
  }
51
28
  exports.SetIpAddressTypeCommand = SetIpAddressTypeCommand;
@@ -5,47 +5,24 @@ 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_query_1 = require("../protocols/Aws_query");
10
- class SetRulePrioritiesCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SetRulePrioritiesCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ElasticLoadBalancingV2Client";
29
- const commandName = "SetRulePrioritiesCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "ElasticLoadBalancing_v10",
38
- operation: "SetRulePriorities",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_query_1.se_SetRulePrioritiesCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_query_1.de_SetRulePrioritiesCommand)(output, context);
49
- }
10
+ class SetRulePrioritiesCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("ElasticLoadBalancing_v10", "SetRulePriorities", {})
22
+ .n("ElasticLoadBalancingV2Client", "SetRulePrioritiesCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_query_1.se_SetRulePrioritiesCommand)
25
+ .de(Aws_query_1.de_SetRulePrioritiesCommand)
26
+ .build() {
50
27
  }
51
28
  exports.SetRulePrioritiesCommand = SetRulePrioritiesCommand;
@@ -5,47 +5,24 @@ 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_query_1 = require("../protocols/Aws_query");
10
- class SetSecurityGroupsCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SetSecurityGroupsCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ElasticLoadBalancingV2Client";
29
- const commandName = "SetSecurityGroupsCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "ElasticLoadBalancing_v10",
38
- operation: "SetSecurityGroups",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_query_1.se_SetSecurityGroupsCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_query_1.de_SetSecurityGroupsCommand)(output, context);
49
- }
10
+ class SetSecurityGroupsCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("ElasticLoadBalancing_v10", "SetSecurityGroups", {})
22
+ .n("ElasticLoadBalancingV2Client", "SetSecurityGroupsCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_query_1.se_SetSecurityGroupsCommand)
25
+ .de(Aws_query_1.de_SetSecurityGroupsCommand)
26
+ .build() {
50
27
  }
51
28
  exports.SetSecurityGroupsCommand = SetSecurityGroupsCommand;
@@ -5,47 +5,24 @@ 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_query_1 = require("../protocols/Aws_query");
10
- class SetSubnetsCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SetSubnetsCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ElasticLoadBalancingV2Client";
29
- const commandName = "SetSubnetsCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "ElasticLoadBalancing_v10",
38
- operation: "SetSubnets",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_query_1.se_SetSubnetsCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_query_1.de_SetSubnetsCommand)(output, context);
49
- }
10
+ class SetSubnetsCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("ElasticLoadBalancing_v10", "SetSubnets", {})
22
+ .n("ElasticLoadBalancingV2Client", "SetSubnetsCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_query_1.se_SetSubnetsCommand)
25
+ .de(Aws_query_1.de_SetSubnetsCommand)
26
+ .build() {
50
27
  }
51
28
  exports.SetSubnetsCommand = SetSubnetsCommand;
@@ -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,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeListeners = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeListenersCommand_1 = require("../commands/DescribeListenersCommand");
5
6
  const ElasticLoadBalancingV2Client_1 = require("../ElasticLoadBalancingV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeListenersCommand_1.DescribeListenersCommand(input), ...args);
8
- };
9
- async function* paginateDescribeListeners(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- if (config.client instanceof ElasticLoadBalancingV2Client_1.ElasticLoadBalancingV2Client) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected ElasticLoadBalancingV2 | ElasticLoadBalancingV2Client");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.NextMarker;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateDescribeListeners = paginateDescribeListeners;
7
+ exports.paginateDescribeListeners = (0, core_1.createPaginator)(ElasticLoadBalancingV2Client_1.ElasticLoadBalancingV2Client, DescribeListenersCommand_1.DescribeListenersCommand, "Marker", "NextMarker", "");
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeLoadBalancers = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeLoadBalancersCommand_1 = require("../commands/DescribeLoadBalancersCommand");
5
6
  const ElasticLoadBalancingV2Client_1 = require("../ElasticLoadBalancingV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeLoadBalancersCommand_1.DescribeLoadBalancersCommand(input), ...args);
8
- };
9
- async function* paginateDescribeLoadBalancers(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- if (config.client instanceof ElasticLoadBalancingV2Client_1.ElasticLoadBalancingV2Client) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected ElasticLoadBalancingV2 | ElasticLoadBalancingV2Client");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.NextMarker;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateDescribeLoadBalancers = paginateDescribeLoadBalancers;
7
+ exports.paginateDescribeLoadBalancers = (0, core_1.createPaginator)(ElasticLoadBalancingV2Client_1.ElasticLoadBalancingV2Client, DescribeLoadBalancersCommand_1.DescribeLoadBalancersCommand, "Marker", "NextMarker", "");