@aws-sdk/client-elastic-load-balancing 3.35.0 → 3.38.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 (272) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/ElasticLoadBalancing.js +0 -24
  3. package/dist-cjs/ElasticLoadBalancingClient.js +0 -29
  4. package/dist-cjs/commands/AddTagsCommand.js +0 -31
  5. package/dist-cjs/commands/ApplySecurityGroupsToLoadBalancerCommand.js +0 -27
  6. package/dist-cjs/commands/AttachLoadBalancerToSubnetsCommand.js +0 -28
  7. package/dist-cjs/commands/ConfigureHealthCheckCommand.js +0 -27
  8. package/dist-cjs/commands/CreateAppCookieStickinessPolicyCommand.js +0 -33
  9. package/dist-cjs/commands/CreateLBCookieStickinessPolicyCommand.js +0 -31
  10. package/dist-cjs/commands/CreateLoadBalancerCommand.js +0 -38
  11. package/dist-cjs/commands/CreateLoadBalancerListenersCommand.js +0 -27
  12. package/dist-cjs/commands/CreateLoadBalancerPolicyCommand.js +0 -26
  13. package/dist-cjs/commands/DeleteLoadBalancerCommand.js +0 -28
  14. package/dist-cjs/commands/DeleteLoadBalancerListenersCommand.js +0 -25
  15. package/dist-cjs/commands/DeleteLoadBalancerPolicyCommand.js +0 -25
  16. package/dist-cjs/commands/DeregisterInstancesFromLoadBalancerCommand.js +0 -30
  17. package/dist-cjs/commands/DescribeAccountLimitsCommand.js +0 -27
  18. package/dist-cjs/commands/DescribeInstanceHealthCommand.js +0 -25
  19. package/dist-cjs/commands/DescribeLoadBalancerAttributesCommand.js +0 -25
  20. package/dist-cjs/commands/DescribeLoadBalancerPoliciesCommand.js +0 -29
  21. package/dist-cjs/commands/DescribeLoadBalancerPolicyTypesCommand.js +0 -32
  22. package/dist-cjs/commands/DescribeLoadBalancersCommand.js +0 -25
  23. package/dist-cjs/commands/DescribeTagsCommand.js +0 -25
  24. package/dist-cjs/commands/DetachLoadBalancerFromSubnetsCommand.js +0 -28
  25. package/dist-cjs/commands/DisableAvailabilityZonesForLoadBalancerCommand.js +0 -33
  26. package/dist-cjs/commands/EnableAvailabilityZonesForLoadBalancerCommand.js +0 -30
  27. package/dist-cjs/commands/ModifyLoadBalancerAttributesCommand.js +0 -51
  28. package/dist-cjs/commands/RegisterInstancesWithLoadBalancerCommand.js +0 -43
  29. package/dist-cjs/commands/RemoveTagsCommand.js +0 -25
  30. package/dist-cjs/commands/SetLoadBalancerListenerSSLCertificateCommand.js +0 -29
  31. package/dist-cjs/commands/SetLoadBalancerPoliciesForBackendServerCommand.js +0 -35
  32. package/dist-cjs/commands/SetLoadBalancerPoliciesOfListenerCommand.js +0 -31
  33. package/dist-cjs/commands/index.js +32 -0
  34. package/dist-cjs/endpoints.js +1 -2
  35. package/dist-cjs/index.js +5 -35
  36. package/dist-cjs/models/index.js +0 -1
  37. package/dist-cjs/models/models_0.js +0 -319
  38. package/dist-cjs/pagination/DescribeLoadBalancersPaginator.js +0 -11
  39. package/dist-cjs/pagination/Interfaces.js +0 -1
  40. package/dist-cjs/pagination/index.js +5 -0
  41. package/dist-cjs/protocols/Aws_query.js +0 -3
  42. package/dist-cjs/runtimeConfig.browser.js +1 -6
  43. package/dist-cjs/runtimeConfig.js +2 -7
  44. package/dist-cjs/runtimeConfig.native.js +0 -4
  45. package/dist-cjs/runtimeConfig.shared.js +0 -4
  46. package/dist-cjs/waiters/index.js +4 -0
  47. package/dist-cjs/waiters/waitForAnyInstanceInService.js +0 -10
  48. package/dist-es/ElasticLoadBalancing.js +0 -1
  49. package/dist-es/ElasticLoadBalancingClient.js +0 -1
  50. package/dist-es/commands/AddTagsCommand.js +0 -1
  51. package/dist-es/commands/ApplySecurityGroupsToLoadBalancerCommand.js +0 -1
  52. package/dist-es/commands/AttachLoadBalancerToSubnetsCommand.js +0 -1
  53. package/dist-es/commands/ConfigureHealthCheckCommand.js +0 -1
  54. package/dist-es/commands/CreateAppCookieStickinessPolicyCommand.js +0 -1
  55. package/dist-es/commands/CreateLBCookieStickinessPolicyCommand.js +0 -1
  56. package/dist-es/commands/CreateLoadBalancerCommand.js +0 -1
  57. package/dist-es/commands/CreateLoadBalancerListenersCommand.js +0 -1
  58. package/dist-es/commands/CreateLoadBalancerPolicyCommand.js +0 -1
  59. package/dist-es/commands/DeleteLoadBalancerCommand.js +0 -1
  60. package/dist-es/commands/DeleteLoadBalancerListenersCommand.js +0 -1
  61. package/dist-es/commands/DeleteLoadBalancerPolicyCommand.js +0 -1
  62. package/dist-es/commands/DeregisterInstancesFromLoadBalancerCommand.js +0 -1
  63. package/dist-es/commands/DescribeAccountLimitsCommand.js +0 -1
  64. package/dist-es/commands/DescribeInstanceHealthCommand.js +0 -1
  65. package/dist-es/commands/DescribeLoadBalancerAttributesCommand.js +0 -1
  66. package/dist-es/commands/DescribeLoadBalancerPoliciesCommand.js +0 -1
  67. package/dist-es/commands/DescribeLoadBalancerPolicyTypesCommand.js +0 -1
  68. package/dist-es/commands/DescribeLoadBalancersCommand.js +0 -1
  69. package/dist-es/commands/DescribeTagsCommand.js +0 -1
  70. package/dist-es/commands/DetachLoadBalancerFromSubnetsCommand.js +0 -1
  71. package/dist-es/commands/DisableAvailabilityZonesForLoadBalancerCommand.js +0 -1
  72. package/dist-es/commands/EnableAvailabilityZonesForLoadBalancerCommand.js +0 -1
  73. package/dist-es/commands/ModifyLoadBalancerAttributesCommand.js +0 -1
  74. package/dist-es/commands/RegisterInstancesWithLoadBalancerCommand.js +0 -1
  75. package/dist-es/commands/RemoveTagsCommand.js +0 -1
  76. package/dist-es/commands/SetLoadBalancerListenerSSLCertificateCommand.js +0 -1
  77. package/dist-es/commands/SetLoadBalancerPoliciesForBackendServerCommand.js +0 -1
  78. package/dist-es/commands/SetLoadBalancerPoliciesOfListenerCommand.js +0 -1
  79. package/dist-es/commands/index.js +29 -0
  80. package/dist-es/endpoints.js +1 -2
  81. package/dist-es/index.js +5 -35
  82. package/dist-es/models/index.js +0 -1
  83. package/dist-es/models/models_0.js +0 -1
  84. package/dist-es/pagination/DescribeLoadBalancersPaginator.js +0 -1
  85. package/dist-es/pagination/Interfaces.js +0 -1
  86. package/dist-es/pagination/index.js +2 -0
  87. package/dist-es/protocols/Aws_query.js +0 -1
  88. package/dist-es/runtimeConfig.browser.js +1 -2
  89. package/dist-es/runtimeConfig.js +2 -3
  90. package/dist-es/runtimeConfig.native.js +0 -1
  91. package/dist-es/runtimeConfig.shared.js +0 -1
  92. package/dist-es/waiters/index.js +1 -0
  93. package/dist-es/waiters/waitForAnyInstanceInService.js +0 -1
  94. package/dist-types/commands/index.d.ts +29 -0
  95. package/dist-types/index.d.ts +5 -34
  96. package/dist-types/pagination/index.d.ts +2 -0
  97. package/dist-types/ts3.4/ElasticLoadBalancing.d.ts +30 -254
  98. package/dist-types/ts3.4/ElasticLoadBalancingClient.d.ts +24 -109
  99. package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +2 -26
  100. package/dist-types/ts3.4/commands/ApplySecurityGroupsToLoadBalancerCommand.d.ts +2 -22
  101. package/dist-types/ts3.4/commands/AttachLoadBalancerToSubnetsCommand.d.ts +2 -23
  102. package/dist-types/ts3.4/commands/ConfigureHealthCheckCommand.d.ts +2 -22
  103. package/dist-types/ts3.4/commands/CreateAppCookieStickinessPolicyCommand.d.ts +2 -28
  104. package/dist-types/ts3.4/commands/CreateLBCookieStickinessPolicyCommand.d.ts +2 -26
  105. package/dist-types/ts3.4/commands/CreateLoadBalancerCommand.d.ts +2 -33
  106. package/dist-types/ts3.4/commands/CreateLoadBalancerListenersCommand.d.ts +2 -22
  107. package/dist-types/ts3.4/commands/CreateLoadBalancerPolicyCommand.d.ts +2 -21
  108. package/dist-types/ts3.4/commands/DeleteLoadBalancerCommand.d.ts +2 -23
  109. package/dist-types/ts3.4/commands/DeleteLoadBalancerListenersCommand.d.ts +2 -20
  110. package/dist-types/ts3.4/commands/DeleteLoadBalancerPolicyCommand.d.ts +2 -20
  111. package/dist-types/ts3.4/commands/DeregisterInstancesFromLoadBalancerCommand.d.ts +2 -25
  112. package/dist-types/ts3.4/commands/DescribeAccountLimitsCommand.d.ts +2 -22
  113. package/dist-types/ts3.4/commands/DescribeInstanceHealthCommand.d.ts +2 -20
  114. package/dist-types/ts3.4/commands/DescribeLoadBalancerAttributesCommand.d.ts +2 -20
  115. package/dist-types/ts3.4/commands/DescribeLoadBalancerPoliciesCommand.d.ts +2 -24
  116. package/dist-types/ts3.4/commands/DescribeLoadBalancerPolicyTypesCommand.d.ts +2 -27
  117. package/dist-types/ts3.4/commands/DescribeLoadBalancersCommand.d.ts +2 -20
  118. package/dist-types/ts3.4/commands/DescribeTagsCommand.d.ts +2 -20
  119. package/dist-types/ts3.4/commands/DetachLoadBalancerFromSubnetsCommand.d.ts +2 -23
  120. package/dist-types/ts3.4/commands/DisableAvailabilityZonesForLoadBalancerCommand.d.ts +2 -28
  121. package/dist-types/ts3.4/commands/EnableAvailabilityZonesForLoadBalancerCommand.d.ts +2 -25
  122. package/dist-types/ts3.4/commands/ModifyLoadBalancerAttributesCommand.d.ts +2 -46
  123. package/dist-types/ts3.4/commands/RegisterInstancesWithLoadBalancerCommand.d.ts +2 -38
  124. package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +2 -20
  125. package/dist-types/ts3.4/commands/SetLoadBalancerListenerSSLCertificateCommand.d.ts +2 -24
  126. package/dist-types/ts3.4/commands/SetLoadBalancerPoliciesForBackendServerCommand.d.ts +2 -30
  127. package/dist-types/ts3.4/commands/SetLoadBalancerPoliciesOfListenerCommand.d.ts +2 -26
  128. package/dist-types/ts3.4/commands/index.d.ts +29 -0
  129. package/dist-types/ts3.4/index.d.ts +5 -34
  130. package/dist-types/ts3.4/models/models_0.d.ts +378 -1283
  131. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  132. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  133. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  134. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  135. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  136. package/dist-types/ts3.4/waiters/index.d.ts +1 -0
  137. package/dist-types/ts3.4/waiters/waitForAnyInstanceInService.d.ts +2 -9
  138. package/dist-types/waiters/index.d.ts +1 -0
  139. package/package.json +34 -31
  140. package/dist-cjs/ElasticLoadBalancing.js.map +0 -1
  141. package/dist-cjs/ElasticLoadBalancingClient.js.map +0 -1
  142. package/dist-cjs/commands/AddTagsCommand.js.map +0 -1
  143. package/dist-cjs/commands/ApplySecurityGroupsToLoadBalancerCommand.js.map +0 -1
  144. package/dist-cjs/commands/AttachLoadBalancerToSubnetsCommand.js.map +0 -1
  145. package/dist-cjs/commands/ConfigureHealthCheckCommand.js.map +0 -1
  146. package/dist-cjs/commands/CreateAppCookieStickinessPolicyCommand.js.map +0 -1
  147. package/dist-cjs/commands/CreateLBCookieStickinessPolicyCommand.js.map +0 -1
  148. package/dist-cjs/commands/CreateLoadBalancerCommand.js.map +0 -1
  149. package/dist-cjs/commands/CreateLoadBalancerListenersCommand.js.map +0 -1
  150. package/dist-cjs/commands/CreateLoadBalancerPolicyCommand.js.map +0 -1
  151. package/dist-cjs/commands/DeleteLoadBalancerCommand.js.map +0 -1
  152. package/dist-cjs/commands/DeleteLoadBalancerListenersCommand.js.map +0 -1
  153. package/dist-cjs/commands/DeleteLoadBalancerPolicyCommand.js.map +0 -1
  154. package/dist-cjs/commands/DeregisterInstancesFromLoadBalancerCommand.js.map +0 -1
  155. package/dist-cjs/commands/DescribeAccountLimitsCommand.js.map +0 -1
  156. package/dist-cjs/commands/DescribeInstanceHealthCommand.js.map +0 -1
  157. package/dist-cjs/commands/DescribeLoadBalancerAttributesCommand.js.map +0 -1
  158. package/dist-cjs/commands/DescribeLoadBalancerPoliciesCommand.js.map +0 -1
  159. package/dist-cjs/commands/DescribeLoadBalancerPolicyTypesCommand.js.map +0 -1
  160. package/dist-cjs/commands/DescribeLoadBalancersCommand.js.map +0 -1
  161. package/dist-cjs/commands/DescribeTagsCommand.js.map +0 -1
  162. package/dist-cjs/commands/DetachLoadBalancerFromSubnetsCommand.js.map +0 -1
  163. package/dist-cjs/commands/DisableAvailabilityZonesForLoadBalancerCommand.js.map +0 -1
  164. package/dist-cjs/commands/EnableAvailabilityZonesForLoadBalancerCommand.js.map +0 -1
  165. package/dist-cjs/commands/ModifyLoadBalancerAttributesCommand.js.map +0 -1
  166. package/dist-cjs/commands/RegisterInstancesWithLoadBalancerCommand.js.map +0 -1
  167. package/dist-cjs/commands/RemoveTagsCommand.js.map +0 -1
  168. package/dist-cjs/commands/SetLoadBalancerListenerSSLCertificateCommand.js.map +0 -1
  169. package/dist-cjs/commands/SetLoadBalancerPoliciesForBackendServerCommand.js.map +0 -1
  170. package/dist-cjs/commands/SetLoadBalancerPoliciesOfListenerCommand.js.map +0 -1
  171. package/dist-cjs/endpoints.js.map +0 -1
  172. package/dist-cjs/index.js.map +0 -1
  173. package/dist-cjs/models/index.js.map +0 -1
  174. package/dist-cjs/models/models_0.js.map +0 -1
  175. package/dist-cjs/pagination/DescribeLoadBalancersPaginator.js.map +0 -1
  176. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  177. package/dist-cjs/protocols/Aws_query.js.map +0 -1
  178. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  179. package/dist-cjs/runtimeConfig.js.map +0 -1
  180. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  181. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  182. package/dist-cjs/waiters/waitForAnyInstanceInService.js.map +0 -1
  183. package/dist-es/ElasticLoadBalancing.js.map +0 -1
  184. package/dist-es/ElasticLoadBalancingClient.js.map +0 -1
  185. package/dist-es/commands/AddTagsCommand.js.map +0 -1
  186. package/dist-es/commands/ApplySecurityGroupsToLoadBalancerCommand.js.map +0 -1
  187. package/dist-es/commands/AttachLoadBalancerToSubnetsCommand.js.map +0 -1
  188. package/dist-es/commands/ConfigureHealthCheckCommand.js.map +0 -1
  189. package/dist-es/commands/CreateAppCookieStickinessPolicyCommand.js.map +0 -1
  190. package/dist-es/commands/CreateLBCookieStickinessPolicyCommand.js.map +0 -1
  191. package/dist-es/commands/CreateLoadBalancerCommand.js.map +0 -1
  192. package/dist-es/commands/CreateLoadBalancerListenersCommand.js.map +0 -1
  193. package/dist-es/commands/CreateLoadBalancerPolicyCommand.js.map +0 -1
  194. package/dist-es/commands/DeleteLoadBalancerCommand.js.map +0 -1
  195. package/dist-es/commands/DeleteLoadBalancerListenersCommand.js.map +0 -1
  196. package/dist-es/commands/DeleteLoadBalancerPolicyCommand.js.map +0 -1
  197. package/dist-es/commands/DeregisterInstancesFromLoadBalancerCommand.js.map +0 -1
  198. package/dist-es/commands/DescribeAccountLimitsCommand.js.map +0 -1
  199. package/dist-es/commands/DescribeInstanceHealthCommand.js.map +0 -1
  200. package/dist-es/commands/DescribeLoadBalancerAttributesCommand.js.map +0 -1
  201. package/dist-es/commands/DescribeLoadBalancerPoliciesCommand.js.map +0 -1
  202. package/dist-es/commands/DescribeLoadBalancerPolicyTypesCommand.js.map +0 -1
  203. package/dist-es/commands/DescribeLoadBalancersCommand.js.map +0 -1
  204. package/dist-es/commands/DescribeTagsCommand.js.map +0 -1
  205. package/dist-es/commands/DetachLoadBalancerFromSubnetsCommand.js.map +0 -1
  206. package/dist-es/commands/DisableAvailabilityZonesForLoadBalancerCommand.js.map +0 -1
  207. package/dist-es/commands/EnableAvailabilityZonesForLoadBalancerCommand.js.map +0 -1
  208. package/dist-es/commands/ModifyLoadBalancerAttributesCommand.js.map +0 -1
  209. package/dist-es/commands/RegisterInstancesWithLoadBalancerCommand.js.map +0 -1
  210. package/dist-es/commands/RemoveTagsCommand.js.map +0 -1
  211. package/dist-es/commands/SetLoadBalancerListenerSSLCertificateCommand.js.map +0 -1
  212. package/dist-es/commands/SetLoadBalancerPoliciesForBackendServerCommand.js.map +0 -1
  213. package/dist-es/commands/SetLoadBalancerPoliciesOfListenerCommand.js.map +0 -1
  214. package/dist-es/endpoints.js.map +0 -1
  215. package/dist-es/index.js.map +0 -1
  216. package/dist-es/models/index.js.map +0 -1
  217. package/dist-es/models/models_0.js.map +0 -1
  218. package/dist-es/pagination/DescribeLoadBalancersPaginator.js.map +0 -1
  219. package/dist-es/pagination/Interfaces.js.map +0 -1
  220. package/dist-es/protocols/Aws_query.js.map +0 -1
  221. package/dist-es/runtimeConfig.browser.js.map +0 -1
  222. package/dist-es/runtimeConfig.js.map +0 -1
  223. package/dist-es/runtimeConfig.native.js.map +0 -1
  224. package/dist-es/runtimeConfig.shared.js.map +0 -1
  225. package/dist-es/waiters/waitForAnyInstanceInService.js.map +0 -1
  226. package/jest.config.js +0 -4
  227. package/src/ElasticLoadBalancing.ts +0 -1230
  228. package/src/ElasticLoadBalancingClient.ts +0 -415
  229. package/src/commands/AddTagsCommand.ts +0 -102
  230. package/src/commands/ApplySecurityGroupsToLoadBalancerCommand.ts +0 -109
  231. package/src/commands/AttachLoadBalancerToSubnetsCommand.ts +0 -105
  232. package/src/commands/ConfigureHealthCheckCommand.ts +0 -101
  233. package/src/commands/CreateAppCookieStickinessPolicyCommand.ts +0 -115
  234. package/src/commands/CreateLBCookieStickinessPolicyCommand.ts +0 -113
  235. package/src/commands/CreateLoadBalancerCommand.ts +0 -112
  236. package/src/commands/CreateLoadBalancerListenersCommand.ts +0 -104
  237. package/src/commands/CreateLoadBalancerPolicyCommand.ts +0 -100
  238. package/src/commands/DeleteLoadBalancerCommand.ts +0 -102
  239. package/src/commands/DeleteLoadBalancerListenersCommand.ts +0 -102
  240. package/src/commands/DeleteLoadBalancerPolicyCommand.ts +0 -99
  241. package/src/commands/DeregisterInstancesFromLoadBalancerCommand.ts +0 -110
  242. package/src/commands/DescribeAccountLimitsCommand.ts +0 -101
  243. package/src/commands/DescribeInstanceHealthCommand.ts +0 -99
  244. package/src/commands/DescribeLoadBalancerAttributesCommand.ts +0 -107
  245. package/src/commands/DescribeLoadBalancerPoliciesCommand.ts +0 -108
  246. package/src/commands/DescribeLoadBalancerPolicyTypesCommand.ts +0 -114
  247. package/src/commands/DescribeLoadBalancersCommand.ts +0 -99
  248. package/src/commands/DescribeTagsCommand.ts +0 -96
  249. package/src/commands/DetachLoadBalancerFromSubnetsCommand.ts +0 -107
  250. package/src/commands/DisableAvailabilityZonesForLoadBalancerCommand.ts +0 -118
  251. package/src/commands/EnableAvailabilityZonesForLoadBalancerCommand.ts +0 -112
  252. package/src/commands/ModifyLoadBalancerAttributesCommand.ts +0 -130
  253. package/src/commands/RegisterInstancesWithLoadBalancerCommand.ts +0 -123
  254. package/src/commands/RemoveTagsCommand.ts +0 -96
  255. package/src/commands/SetLoadBalancerListenerSSLCertificateCommand.ts +0 -114
  256. package/src/commands/SetLoadBalancerPoliciesForBackendServerCommand.ts +0 -124
  257. package/src/commands/SetLoadBalancerPoliciesOfListenerCommand.ts +0 -113
  258. package/src/endpoints.ts +0 -86
  259. package/src/index.ts +0 -35
  260. package/src/models/index.ts +0 -1
  261. package/src/models/models_0.ts +0 -2556
  262. package/src/pagination/DescribeLoadBalancersPaginator.ts +0 -58
  263. package/src/pagination/Interfaces.ts +0 -8
  264. package/src/protocols/Aws_query.ts +0 -5445
  265. package/src/runtimeConfig.browser.ts +0 -41
  266. package/src/runtimeConfig.native.ts +0 -17
  267. package/src/runtimeConfig.shared.ts +0 -17
  268. package/src/runtimeConfig.ts +0 -46
  269. package/src/waiters/waitForAnyInstanceInService.ts +0 -59
  270. package/tsconfig.es.json +0 -10
  271. package/tsconfig.json +0 -33
  272. package/tsconfig.types.json +0 -9
@@ -1,107 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import {
15
- ElasticLoadBalancingClientResolvedConfig,
16
- ServiceInputTypes,
17
- ServiceOutputTypes,
18
- } from "../ElasticLoadBalancingClient";
19
- import { DetachLoadBalancerFromSubnetsInput, DetachLoadBalancerFromSubnetsOutput } from "../models/models_0";
20
- import {
21
- deserializeAws_queryDetachLoadBalancerFromSubnetsCommand,
22
- serializeAws_queryDetachLoadBalancerFromSubnetsCommand,
23
- } from "../protocols/Aws_query";
24
-
25
- export interface DetachLoadBalancerFromSubnetsCommandInput extends DetachLoadBalancerFromSubnetsInput {}
26
- export interface DetachLoadBalancerFromSubnetsCommandOutput
27
- extends DetachLoadBalancerFromSubnetsOutput,
28
- __MetadataBearer {}
29
-
30
- /**
31
- * <p>Removes the specified subnets from the set of configured subnets for the load balancer.</p>
32
- * <p>After a subnet is removed, all EC2 instances registered with the load balancer
33
- * in the removed subnet go into the <code>OutOfService</code> state. Then,
34
- * the load balancer balances the traffic among the remaining routable subnets.</p>
35
- * @example
36
- * Use a bare-bones client and the command you need to make an API call.
37
- * ```javascript
38
- * import { ElasticLoadBalancingClient, DetachLoadBalancerFromSubnetsCommand } from "@aws-sdk/client-elastic-load-balancing"; // ES Modules import
39
- * // const { ElasticLoadBalancingClient, DetachLoadBalancerFromSubnetsCommand } = require("@aws-sdk/client-elastic-load-balancing"); // CommonJS import
40
- * const client = new ElasticLoadBalancingClient(config);
41
- * const command = new DetachLoadBalancerFromSubnetsCommand(input);
42
- * const response = await client.send(command);
43
- * ```
44
- *
45
- * @see {@link DetachLoadBalancerFromSubnetsCommandInput} for command's `input` shape.
46
- * @see {@link DetachLoadBalancerFromSubnetsCommandOutput} for command's `response` shape.
47
- * @see {@link ElasticLoadBalancingClientResolvedConfig | config} for command's `input` shape.
48
- *
49
- */
50
- export class DetachLoadBalancerFromSubnetsCommand extends $Command<
51
- DetachLoadBalancerFromSubnetsCommandInput,
52
- DetachLoadBalancerFromSubnetsCommandOutput,
53
- ElasticLoadBalancingClientResolvedConfig
54
- > {
55
- // Start section: command_properties
56
- // End section: command_properties
57
-
58
- constructor(readonly input: DetachLoadBalancerFromSubnetsCommandInput) {
59
- // Start section: command_constructor
60
- super();
61
- // End section: command_constructor
62
- }
63
-
64
- /**
65
- * @internal
66
- */
67
- resolveMiddleware(
68
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
69
- configuration: ElasticLoadBalancingClientResolvedConfig,
70
- options?: __HttpHandlerOptions
71
- ): Handler<DetachLoadBalancerFromSubnetsCommandInput, DetachLoadBalancerFromSubnetsCommandOutput> {
72
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
73
-
74
- const stack = clientStack.concat(this.middlewareStack);
75
-
76
- const { logger } = configuration;
77
- const clientName = "ElasticLoadBalancingClient";
78
- const commandName = "DetachLoadBalancerFromSubnetsCommand";
79
- const handlerExecutionContext: HandlerExecutionContext = {
80
- logger,
81
- clientName,
82
- commandName,
83
- inputFilterSensitiveLog: DetachLoadBalancerFromSubnetsInput.filterSensitiveLog,
84
- outputFilterSensitiveLog: DetachLoadBalancerFromSubnetsOutput.filterSensitiveLog,
85
- };
86
- const { requestHandler } = configuration;
87
- return stack.resolve(
88
- (request: FinalizeHandlerArguments<any>) =>
89
- requestHandler.handle(request.request as __HttpRequest, options || {}),
90
- handlerExecutionContext
91
- );
92
- }
93
-
94
- private serialize(input: DetachLoadBalancerFromSubnetsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
95
- return serializeAws_queryDetachLoadBalancerFromSubnetsCommand(input, context);
96
- }
97
-
98
- private deserialize(
99
- output: __HttpResponse,
100
- context: __SerdeContext
101
- ): Promise<DetachLoadBalancerFromSubnetsCommandOutput> {
102
- return deserializeAws_queryDetachLoadBalancerFromSubnetsCommand(output, context);
103
- }
104
-
105
- // Start section: command_body_extra
106
- // End section: command_body_extra
107
- }
@@ -1,118 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import {
15
- ElasticLoadBalancingClientResolvedConfig,
16
- ServiceInputTypes,
17
- ServiceOutputTypes,
18
- } from "../ElasticLoadBalancingClient";
19
- import { RemoveAvailabilityZonesInput, RemoveAvailabilityZonesOutput } from "../models/models_0";
20
- import {
21
- deserializeAws_queryDisableAvailabilityZonesForLoadBalancerCommand,
22
- serializeAws_queryDisableAvailabilityZonesForLoadBalancerCommand,
23
- } from "../protocols/Aws_query";
24
-
25
- export interface DisableAvailabilityZonesForLoadBalancerCommandInput extends RemoveAvailabilityZonesInput {}
26
- export interface DisableAvailabilityZonesForLoadBalancerCommandOutput
27
- extends RemoveAvailabilityZonesOutput,
28
- __MetadataBearer {}
29
-
30
- /**
31
- * <p>Removes the specified Availability Zones from the set of Availability Zones for the specified load balancer
32
- * in EC2-Classic or a default VPC.</p>
33
- * <p>For load balancers in a non-default VPC, use <a>DetachLoadBalancerFromSubnets</a>.</p>
34
- * <p>There must be at least one Availability Zone registered with a load balancer at all times.
35
- * After an Availability Zone is removed, all instances registered with the load balancer that are in the removed
36
- * Availability Zone go into the <code>OutOfService</code> state. Then, the load balancer attempts to equally balance
37
- * the traffic among its remaining Availability Zones.</p>
38
- * <p>For more information, see <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-az.html">Add or Remove Availability Zones</a>
39
- * in the <i>Classic Load Balancers Guide</i>.</p>
40
- * @example
41
- * Use a bare-bones client and the command you need to make an API call.
42
- * ```javascript
43
- * import { ElasticLoadBalancingClient, DisableAvailabilityZonesForLoadBalancerCommand } from "@aws-sdk/client-elastic-load-balancing"; // ES Modules import
44
- * // const { ElasticLoadBalancingClient, DisableAvailabilityZonesForLoadBalancerCommand } = require("@aws-sdk/client-elastic-load-balancing"); // CommonJS import
45
- * const client = new ElasticLoadBalancingClient(config);
46
- * const command = new DisableAvailabilityZonesForLoadBalancerCommand(input);
47
- * const response = await client.send(command);
48
- * ```
49
- *
50
- * @see {@link DisableAvailabilityZonesForLoadBalancerCommandInput} for command's `input` shape.
51
- * @see {@link DisableAvailabilityZonesForLoadBalancerCommandOutput} for command's `response` shape.
52
- * @see {@link ElasticLoadBalancingClientResolvedConfig | config} for command's `input` shape.
53
- *
54
- */
55
- export class DisableAvailabilityZonesForLoadBalancerCommand extends $Command<
56
- DisableAvailabilityZonesForLoadBalancerCommandInput,
57
- DisableAvailabilityZonesForLoadBalancerCommandOutput,
58
- ElasticLoadBalancingClientResolvedConfig
59
- > {
60
- // Start section: command_properties
61
- // End section: command_properties
62
-
63
- constructor(readonly input: DisableAvailabilityZonesForLoadBalancerCommandInput) {
64
- // Start section: command_constructor
65
- super();
66
- // End section: command_constructor
67
- }
68
-
69
- /**
70
- * @internal
71
- */
72
- resolveMiddleware(
73
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
74
- configuration: ElasticLoadBalancingClientResolvedConfig,
75
- options?: __HttpHandlerOptions
76
- ): Handler<
77
- DisableAvailabilityZonesForLoadBalancerCommandInput,
78
- DisableAvailabilityZonesForLoadBalancerCommandOutput
79
- > {
80
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
81
-
82
- const stack = clientStack.concat(this.middlewareStack);
83
-
84
- const { logger } = configuration;
85
- const clientName = "ElasticLoadBalancingClient";
86
- const commandName = "DisableAvailabilityZonesForLoadBalancerCommand";
87
- const handlerExecutionContext: HandlerExecutionContext = {
88
- logger,
89
- clientName,
90
- commandName,
91
- inputFilterSensitiveLog: RemoveAvailabilityZonesInput.filterSensitiveLog,
92
- outputFilterSensitiveLog: RemoveAvailabilityZonesOutput.filterSensitiveLog,
93
- };
94
- const { requestHandler } = configuration;
95
- return stack.resolve(
96
- (request: FinalizeHandlerArguments<any>) =>
97
- requestHandler.handle(request.request as __HttpRequest, options || {}),
98
- handlerExecutionContext
99
- );
100
- }
101
-
102
- private serialize(
103
- input: DisableAvailabilityZonesForLoadBalancerCommandInput,
104
- context: __SerdeContext
105
- ): Promise<__HttpRequest> {
106
- return serializeAws_queryDisableAvailabilityZonesForLoadBalancerCommand(input, context);
107
- }
108
-
109
- private deserialize(
110
- output: __HttpResponse,
111
- context: __SerdeContext
112
- ): Promise<DisableAvailabilityZonesForLoadBalancerCommandOutput> {
113
- return deserializeAws_queryDisableAvailabilityZonesForLoadBalancerCommand(output, context);
114
- }
115
-
116
- // Start section: command_body_extra
117
- // End section: command_body_extra
118
- }
@@ -1,112 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import {
15
- ElasticLoadBalancingClientResolvedConfig,
16
- ServiceInputTypes,
17
- ServiceOutputTypes,
18
- } from "../ElasticLoadBalancingClient";
19
- import { AddAvailabilityZonesInput, AddAvailabilityZonesOutput } from "../models/models_0";
20
- import {
21
- deserializeAws_queryEnableAvailabilityZonesForLoadBalancerCommand,
22
- serializeAws_queryEnableAvailabilityZonesForLoadBalancerCommand,
23
- } from "../protocols/Aws_query";
24
-
25
- export interface EnableAvailabilityZonesForLoadBalancerCommandInput extends AddAvailabilityZonesInput {}
26
- export interface EnableAvailabilityZonesForLoadBalancerCommandOutput
27
- extends AddAvailabilityZonesOutput,
28
- __MetadataBearer {}
29
-
30
- /**
31
- * <p>Adds the specified Availability Zones to the set of Availability Zones for the specified load balancer
32
- * in EC2-Classic or a default VPC.</p>
33
- * <p>For load balancers in a non-default VPC, use <a>AttachLoadBalancerToSubnets</a>.</p>
34
- * <p>The load balancer evenly distributes requests across all its registered Availability Zones
35
- * that contain instances. For more information, see <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-az.html">Add or Remove Availability Zones</a>
36
- * in the <i>Classic Load Balancers Guide</i>.</p>
37
- * @example
38
- * Use a bare-bones client and the command you need to make an API call.
39
- * ```javascript
40
- * import { ElasticLoadBalancingClient, EnableAvailabilityZonesForLoadBalancerCommand } from "@aws-sdk/client-elastic-load-balancing"; // ES Modules import
41
- * // const { ElasticLoadBalancingClient, EnableAvailabilityZonesForLoadBalancerCommand } = require("@aws-sdk/client-elastic-load-balancing"); // CommonJS import
42
- * const client = new ElasticLoadBalancingClient(config);
43
- * const command = new EnableAvailabilityZonesForLoadBalancerCommand(input);
44
- * const response = await client.send(command);
45
- * ```
46
- *
47
- * @see {@link EnableAvailabilityZonesForLoadBalancerCommandInput} for command's `input` shape.
48
- * @see {@link EnableAvailabilityZonesForLoadBalancerCommandOutput} for command's `response` shape.
49
- * @see {@link ElasticLoadBalancingClientResolvedConfig | config} for command's `input` shape.
50
- *
51
- */
52
- export class EnableAvailabilityZonesForLoadBalancerCommand extends $Command<
53
- EnableAvailabilityZonesForLoadBalancerCommandInput,
54
- EnableAvailabilityZonesForLoadBalancerCommandOutput,
55
- ElasticLoadBalancingClientResolvedConfig
56
- > {
57
- // Start section: command_properties
58
- // End section: command_properties
59
-
60
- constructor(readonly input: EnableAvailabilityZonesForLoadBalancerCommandInput) {
61
- // Start section: command_constructor
62
- super();
63
- // End section: command_constructor
64
- }
65
-
66
- /**
67
- * @internal
68
- */
69
- resolveMiddleware(
70
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
71
- configuration: ElasticLoadBalancingClientResolvedConfig,
72
- options?: __HttpHandlerOptions
73
- ): Handler<EnableAvailabilityZonesForLoadBalancerCommandInput, EnableAvailabilityZonesForLoadBalancerCommandOutput> {
74
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
75
-
76
- const stack = clientStack.concat(this.middlewareStack);
77
-
78
- const { logger } = configuration;
79
- const clientName = "ElasticLoadBalancingClient";
80
- const commandName = "EnableAvailabilityZonesForLoadBalancerCommand";
81
- const handlerExecutionContext: HandlerExecutionContext = {
82
- logger,
83
- clientName,
84
- commandName,
85
- inputFilterSensitiveLog: AddAvailabilityZonesInput.filterSensitiveLog,
86
- outputFilterSensitiveLog: AddAvailabilityZonesOutput.filterSensitiveLog,
87
- };
88
- const { requestHandler } = configuration;
89
- return stack.resolve(
90
- (request: FinalizeHandlerArguments<any>) =>
91
- requestHandler.handle(request.request as __HttpRequest, options || {}),
92
- handlerExecutionContext
93
- );
94
- }
95
-
96
- private serialize(
97
- input: EnableAvailabilityZonesForLoadBalancerCommandInput,
98
- context: __SerdeContext
99
- ): Promise<__HttpRequest> {
100
- return serializeAws_queryEnableAvailabilityZonesForLoadBalancerCommand(input, context);
101
- }
102
-
103
- private deserialize(
104
- output: __HttpResponse,
105
- context: __SerdeContext
106
- ): Promise<EnableAvailabilityZonesForLoadBalancerCommandOutput> {
107
- return deserializeAws_queryEnableAvailabilityZonesForLoadBalancerCommand(output, context);
108
- }
109
-
110
- // Start section: command_body_extra
111
- // End section: command_body_extra
112
- }
@@ -1,130 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import {
15
- ElasticLoadBalancingClientResolvedConfig,
16
- ServiceInputTypes,
17
- ServiceOutputTypes,
18
- } from "../ElasticLoadBalancingClient";
19
- import { ModifyLoadBalancerAttributesInput, ModifyLoadBalancerAttributesOutput } from "../models/models_0";
20
- import {
21
- deserializeAws_queryModifyLoadBalancerAttributesCommand,
22
- serializeAws_queryModifyLoadBalancerAttributesCommand,
23
- } from "../protocols/Aws_query";
24
-
25
- export interface ModifyLoadBalancerAttributesCommandInput extends ModifyLoadBalancerAttributesInput {}
26
- export interface ModifyLoadBalancerAttributesCommandOutput
27
- extends ModifyLoadBalancerAttributesOutput,
28
- __MetadataBearer {}
29
-
30
- /**
31
- * <p>Modifies the attributes of the specified load balancer.</p>
32
- * <p>You can modify the load balancer attributes, such as <code>AccessLogs</code>, <code>ConnectionDraining</code>, and
33
- * <code>CrossZoneLoadBalancing</code> by either enabling or disabling them. Or, you can modify the load balancer attribute
34
- * <code>ConnectionSettings</code> by specifying an idle connection timeout value for your load balancer.</p>
35
- * <p>For more information, see the following in the <i>Classic Load Balancers Guide</i>:</p>
36
- * <ul>
37
- * <li>
38
- * <p>
39
- * <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html">Cross-Zone Load Balancing</a>
40
- * </p>
41
- * </li>
42
- * <li>
43
- * <p>
44
- * <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-conn-drain.html">Connection Draining</a>
45
- * </p>
46
- * </li>
47
- * <li>
48
- * <p>
49
- * <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/access-log-collection.html">Access Logs</a>
50
- * </p>
51
- * </li>
52
- * <li>
53
- * <p>
54
- * <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html">Idle Connection Timeout</a>
55
- * </p>
56
- * </li>
57
- * </ul>
58
- * @example
59
- * Use a bare-bones client and the command you need to make an API call.
60
- * ```javascript
61
- * import { ElasticLoadBalancingClient, ModifyLoadBalancerAttributesCommand } from "@aws-sdk/client-elastic-load-balancing"; // ES Modules import
62
- * // const { ElasticLoadBalancingClient, ModifyLoadBalancerAttributesCommand } = require("@aws-sdk/client-elastic-load-balancing"); // CommonJS import
63
- * const client = new ElasticLoadBalancingClient(config);
64
- * const command = new ModifyLoadBalancerAttributesCommand(input);
65
- * const response = await client.send(command);
66
- * ```
67
- *
68
- * @see {@link ModifyLoadBalancerAttributesCommandInput} for command's `input` shape.
69
- * @see {@link ModifyLoadBalancerAttributesCommandOutput} for command's `response` shape.
70
- * @see {@link ElasticLoadBalancingClientResolvedConfig | config} for command's `input` shape.
71
- *
72
- */
73
- export class ModifyLoadBalancerAttributesCommand extends $Command<
74
- ModifyLoadBalancerAttributesCommandInput,
75
- ModifyLoadBalancerAttributesCommandOutput,
76
- ElasticLoadBalancingClientResolvedConfig
77
- > {
78
- // Start section: command_properties
79
- // End section: command_properties
80
-
81
- constructor(readonly input: ModifyLoadBalancerAttributesCommandInput) {
82
- // Start section: command_constructor
83
- super();
84
- // End section: command_constructor
85
- }
86
-
87
- /**
88
- * @internal
89
- */
90
- resolveMiddleware(
91
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
92
- configuration: ElasticLoadBalancingClientResolvedConfig,
93
- options?: __HttpHandlerOptions
94
- ): Handler<ModifyLoadBalancerAttributesCommandInput, ModifyLoadBalancerAttributesCommandOutput> {
95
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
96
-
97
- const stack = clientStack.concat(this.middlewareStack);
98
-
99
- const { logger } = configuration;
100
- const clientName = "ElasticLoadBalancingClient";
101
- const commandName = "ModifyLoadBalancerAttributesCommand";
102
- const handlerExecutionContext: HandlerExecutionContext = {
103
- logger,
104
- clientName,
105
- commandName,
106
- inputFilterSensitiveLog: ModifyLoadBalancerAttributesInput.filterSensitiveLog,
107
- outputFilterSensitiveLog: ModifyLoadBalancerAttributesOutput.filterSensitiveLog,
108
- };
109
- const { requestHandler } = configuration;
110
- return stack.resolve(
111
- (request: FinalizeHandlerArguments<any>) =>
112
- requestHandler.handle(request.request as __HttpRequest, options || {}),
113
- handlerExecutionContext
114
- );
115
- }
116
-
117
- private serialize(input: ModifyLoadBalancerAttributesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
118
- return serializeAws_queryModifyLoadBalancerAttributesCommand(input, context);
119
- }
120
-
121
- private deserialize(
122
- output: __HttpResponse,
123
- context: __SerdeContext
124
- ): Promise<ModifyLoadBalancerAttributesCommandOutput> {
125
- return deserializeAws_queryModifyLoadBalancerAttributesCommand(output, context);
126
- }
127
-
128
- // Start section: command_body_extra
129
- // End section: command_body_extra
130
- }
@@ -1,123 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import {
15
- ElasticLoadBalancingClientResolvedConfig,
16
- ServiceInputTypes,
17
- ServiceOutputTypes,
18
- } from "../ElasticLoadBalancingClient";
19
- import { RegisterEndPointsInput, RegisterEndPointsOutput } from "../models/models_0";
20
- import {
21
- deserializeAws_queryRegisterInstancesWithLoadBalancerCommand,
22
- serializeAws_queryRegisterInstancesWithLoadBalancerCommand,
23
- } from "../protocols/Aws_query";
24
-
25
- export interface RegisterInstancesWithLoadBalancerCommandInput extends RegisterEndPointsInput {}
26
- export interface RegisterInstancesWithLoadBalancerCommandOutput extends RegisterEndPointsOutput, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Adds the specified instances to the specified load balancer.</p>
30
- *
31
- * <p>The instance must be a running instance in the same network as the load balancer (EC2-Classic or the same VPC). If you have EC2-Classic instances and a load balancer in a VPC with ClassicLink enabled, you can link the EC2-Classic instances to that VPC and then register the linked EC2-Classic instances with the load balancer in the VPC.</p>
32
- *
33
- * <p>Note that <code>RegisterInstanceWithLoadBalancer</code> completes when the request has been registered.
34
- * Instance registration takes a little time to complete. To check the state of the registered instances, use
35
- * <a>DescribeLoadBalancers</a> or <a>DescribeInstanceHealth</a>.</p>
36
- *
37
- * <p>After the instance is registered, it starts receiving traffic
38
- * and requests from the load balancer. Any instance that is not
39
- * in one of the Availability Zones registered for the load balancer
40
- * is moved to the <code>OutOfService</code> state. If an Availability Zone
41
- * is added to the load balancer later, any instances registered with the
42
- * load balancer move to the <code>InService</code> state.</p>
43
- *
44
- * <p>To deregister instances from a load balancer, use <a>DeregisterInstancesFromLoadBalancer</a>.</p>
45
- *
46
- * <p>For more information, see <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-deregister-register-instances.html">Register or De-Register EC2 Instances</a>
47
- * in the <i>Classic Load Balancers Guide</i>.</p>
48
- * @example
49
- * Use a bare-bones client and the command you need to make an API call.
50
- * ```javascript
51
- * import { ElasticLoadBalancingClient, RegisterInstancesWithLoadBalancerCommand } from "@aws-sdk/client-elastic-load-balancing"; // ES Modules import
52
- * // const { ElasticLoadBalancingClient, RegisterInstancesWithLoadBalancerCommand } = require("@aws-sdk/client-elastic-load-balancing"); // CommonJS import
53
- * const client = new ElasticLoadBalancingClient(config);
54
- * const command = new RegisterInstancesWithLoadBalancerCommand(input);
55
- * const response = await client.send(command);
56
- * ```
57
- *
58
- * @see {@link RegisterInstancesWithLoadBalancerCommandInput} for command's `input` shape.
59
- * @see {@link RegisterInstancesWithLoadBalancerCommandOutput} for command's `response` shape.
60
- * @see {@link ElasticLoadBalancingClientResolvedConfig | config} for command's `input` shape.
61
- *
62
- */
63
- export class RegisterInstancesWithLoadBalancerCommand extends $Command<
64
- RegisterInstancesWithLoadBalancerCommandInput,
65
- RegisterInstancesWithLoadBalancerCommandOutput,
66
- ElasticLoadBalancingClientResolvedConfig
67
- > {
68
- // Start section: command_properties
69
- // End section: command_properties
70
-
71
- constructor(readonly input: RegisterInstancesWithLoadBalancerCommandInput) {
72
- // Start section: command_constructor
73
- super();
74
- // End section: command_constructor
75
- }
76
-
77
- /**
78
- * @internal
79
- */
80
- resolveMiddleware(
81
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
82
- configuration: ElasticLoadBalancingClientResolvedConfig,
83
- options?: __HttpHandlerOptions
84
- ): Handler<RegisterInstancesWithLoadBalancerCommandInput, RegisterInstancesWithLoadBalancerCommandOutput> {
85
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
86
-
87
- const stack = clientStack.concat(this.middlewareStack);
88
-
89
- const { logger } = configuration;
90
- const clientName = "ElasticLoadBalancingClient";
91
- const commandName = "RegisterInstancesWithLoadBalancerCommand";
92
- const handlerExecutionContext: HandlerExecutionContext = {
93
- logger,
94
- clientName,
95
- commandName,
96
- inputFilterSensitiveLog: RegisterEndPointsInput.filterSensitiveLog,
97
- outputFilterSensitiveLog: RegisterEndPointsOutput.filterSensitiveLog,
98
- };
99
- const { requestHandler } = configuration;
100
- return stack.resolve(
101
- (request: FinalizeHandlerArguments<any>) =>
102
- requestHandler.handle(request.request as __HttpRequest, options || {}),
103
- handlerExecutionContext
104
- );
105
- }
106
-
107
- private serialize(
108
- input: RegisterInstancesWithLoadBalancerCommandInput,
109
- context: __SerdeContext
110
- ): Promise<__HttpRequest> {
111
- return serializeAws_queryRegisterInstancesWithLoadBalancerCommand(input, context);
112
- }
113
-
114
- private deserialize(
115
- output: __HttpResponse,
116
- context: __SerdeContext
117
- ): Promise<RegisterInstancesWithLoadBalancerCommandOutput> {
118
- return deserializeAws_queryRegisterInstancesWithLoadBalancerCommand(output, context);
119
- }
120
-
121
- // Start section: command_body_extra
122
- // End section: command_body_extra
123
- }