@aws-sdk/client-auto-scaling 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 (317) hide show
  1. package/dist-cjs/commands/AttachInstancesCommand.js +18 -41
  2. package/dist-cjs/commands/AttachLoadBalancerTargetGroupsCommand.js +18 -41
  3. package/dist-cjs/commands/AttachLoadBalancersCommand.js +18 -41
  4. package/dist-cjs/commands/AttachTrafficSourcesCommand.js +18 -41
  5. package/dist-cjs/commands/BatchDeleteScheduledActionCommand.js +18 -41
  6. package/dist-cjs/commands/BatchPutScheduledUpdateGroupActionCommand.js +18 -41
  7. package/dist-cjs/commands/CancelInstanceRefreshCommand.js +18 -41
  8. package/dist-cjs/commands/CompleteLifecycleActionCommand.js +18 -41
  9. package/dist-cjs/commands/CreateAutoScalingGroupCommand.js +18 -41
  10. package/dist-cjs/commands/CreateLaunchConfigurationCommand.js +18 -41
  11. package/dist-cjs/commands/CreateOrUpdateTagsCommand.js +18 -41
  12. package/dist-cjs/commands/DeleteAutoScalingGroupCommand.js +18 -41
  13. package/dist-cjs/commands/DeleteLaunchConfigurationCommand.js +18 -41
  14. package/dist-cjs/commands/DeleteLifecycleHookCommand.js +18 -41
  15. package/dist-cjs/commands/DeleteNotificationConfigurationCommand.js +18 -41
  16. package/dist-cjs/commands/DeletePolicyCommand.js +18 -41
  17. package/dist-cjs/commands/DeleteScheduledActionCommand.js +18 -41
  18. package/dist-cjs/commands/DeleteTagsCommand.js +18 -41
  19. package/dist-cjs/commands/DeleteWarmPoolCommand.js +18 -41
  20. package/dist-cjs/commands/DescribeAccountLimitsCommand.js +18 -41
  21. package/dist-cjs/commands/DescribeAdjustmentTypesCommand.js +18 -41
  22. package/dist-cjs/commands/DescribeAutoScalingGroupsCommand.js +18 -41
  23. package/dist-cjs/commands/DescribeAutoScalingInstancesCommand.js +18 -41
  24. package/dist-cjs/commands/DescribeAutoScalingNotificationTypesCommand.js +18 -41
  25. package/dist-cjs/commands/DescribeInstanceRefreshesCommand.js +18 -41
  26. package/dist-cjs/commands/DescribeLaunchConfigurationsCommand.js +18 -41
  27. package/dist-cjs/commands/DescribeLifecycleHookTypesCommand.js +18 -41
  28. package/dist-cjs/commands/DescribeLifecycleHooksCommand.js +18 -41
  29. package/dist-cjs/commands/DescribeLoadBalancerTargetGroupsCommand.js +18 -41
  30. package/dist-cjs/commands/DescribeLoadBalancersCommand.js +18 -41
  31. package/dist-cjs/commands/DescribeMetricCollectionTypesCommand.js +18 -41
  32. package/dist-cjs/commands/DescribeNotificationConfigurationsCommand.js +18 -41
  33. package/dist-cjs/commands/DescribePoliciesCommand.js +18 -41
  34. package/dist-cjs/commands/DescribeScalingActivitiesCommand.js +18 -41
  35. package/dist-cjs/commands/DescribeScalingProcessTypesCommand.js +18 -41
  36. package/dist-cjs/commands/DescribeScheduledActionsCommand.js +18 -41
  37. package/dist-cjs/commands/DescribeTagsCommand.js +18 -41
  38. package/dist-cjs/commands/DescribeTerminationPolicyTypesCommand.js +18 -41
  39. package/dist-cjs/commands/DescribeTrafficSourcesCommand.js +18 -41
  40. package/dist-cjs/commands/DescribeWarmPoolCommand.js +18 -41
  41. package/dist-cjs/commands/DetachInstancesCommand.js +18 -41
  42. package/dist-cjs/commands/DetachLoadBalancerTargetGroupsCommand.js +18 -41
  43. package/dist-cjs/commands/DetachLoadBalancersCommand.js +18 -41
  44. package/dist-cjs/commands/DetachTrafficSourcesCommand.js +18 -41
  45. package/dist-cjs/commands/DisableMetricsCollectionCommand.js +18 -41
  46. package/dist-cjs/commands/EnableMetricsCollectionCommand.js +18 -41
  47. package/dist-cjs/commands/EnterStandbyCommand.js +18 -41
  48. package/dist-cjs/commands/ExecutePolicyCommand.js +18 -41
  49. package/dist-cjs/commands/ExitStandbyCommand.js +18 -41
  50. package/dist-cjs/commands/GetPredictiveScalingForecastCommand.js +18 -41
  51. package/dist-cjs/commands/PutLifecycleHookCommand.js +18 -41
  52. package/dist-cjs/commands/PutNotificationConfigurationCommand.js +18 -41
  53. package/dist-cjs/commands/PutScalingPolicyCommand.js +18 -41
  54. package/dist-cjs/commands/PutScheduledUpdateGroupActionCommand.js +18 -41
  55. package/dist-cjs/commands/PutWarmPoolCommand.js +18 -41
  56. package/dist-cjs/commands/RecordLifecycleActionHeartbeatCommand.js +18 -41
  57. package/dist-cjs/commands/ResumeProcessesCommand.js +18 -41
  58. package/dist-cjs/commands/RollbackInstanceRefreshCommand.js +18 -41
  59. package/dist-cjs/commands/SetDesiredCapacityCommand.js +18 -41
  60. package/dist-cjs/commands/SetInstanceHealthCommand.js +18 -41
  61. package/dist-cjs/commands/SetInstanceProtectionCommand.js +18 -41
  62. package/dist-cjs/commands/StartInstanceRefreshCommand.js +18 -41
  63. package/dist-cjs/commands/SuspendProcessesCommand.js +18 -41
  64. package/dist-cjs/commands/TerminateInstanceInAutoScalingGroupCommand.js +18 -41
  65. package/dist-cjs/commands/UpdateAutoScalingGroupCommand.js +18 -41
  66. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  67. package/dist-cjs/pagination/DescribeAutoScalingGroupsPaginator.js +2 -24
  68. package/dist-cjs/pagination/DescribeAutoScalingInstancesPaginator.js +2 -24
  69. package/dist-cjs/pagination/DescribeInstanceRefreshesPaginator.js +2 -24
  70. package/dist-cjs/pagination/DescribeLaunchConfigurationsPaginator.js +2 -24
  71. package/dist-cjs/pagination/DescribeLoadBalancerTargetGroupsPaginator.js +2 -24
  72. package/dist-cjs/pagination/DescribeLoadBalancersPaginator.js +2 -24
  73. package/dist-cjs/pagination/DescribeNotificationConfigurationsPaginator.js +2 -24
  74. package/dist-cjs/pagination/DescribePoliciesPaginator.js +2 -24
  75. package/dist-cjs/pagination/DescribeScalingActivitiesPaginator.js +2 -24
  76. package/dist-cjs/pagination/DescribeScheduledActionsPaginator.js +2 -24
  77. package/dist-cjs/pagination/DescribeTagsPaginator.js +2 -24
  78. package/dist-cjs/pagination/DescribeTrafficSourcesPaginator.js +2 -24
  79. package/dist-cjs/pagination/DescribeWarmPoolPaginator.js +2 -24
  80. package/dist-es/commands/AttachInstancesCommand.js +18 -41
  81. package/dist-es/commands/AttachLoadBalancerTargetGroupsCommand.js +18 -41
  82. package/dist-es/commands/AttachLoadBalancersCommand.js +18 -41
  83. package/dist-es/commands/AttachTrafficSourcesCommand.js +18 -41
  84. package/dist-es/commands/BatchDeleteScheduledActionCommand.js +18 -41
  85. package/dist-es/commands/BatchPutScheduledUpdateGroupActionCommand.js +18 -41
  86. package/dist-es/commands/CancelInstanceRefreshCommand.js +18 -41
  87. package/dist-es/commands/CompleteLifecycleActionCommand.js +18 -41
  88. package/dist-es/commands/CreateAutoScalingGroupCommand.js +18 -41
  89. package/dist-es/commands/CreateLaunchConfigurationCommand.js +18 -41
  90. package/dist-es/commands/CreateOrUpdateTagsCommand.js +18 -41
  91. package/dist-es/commands/DeleteAutoScalingGroupCommand.js +18 -41
  92. package/dist-es/commands/DeleteLaunchConfigurationCommand.js +18 -41
  93. package/dist-es/commands/DeleteLifecycleHookCommand.js +18 -41
  94. package/dist-es/commands/DeleteNotificationConfigurationCommand.js +18 -41
  95. package/dist-es/commands/DeletePolicyCommand.js +18 -41
  96. package/dist-es/commands/DeleteScheduledActionCommand.js +18 -41
  97. package/dist-es/commands/DeleteTagsCommand.js +18 -41
  98. package/dist-es/commands/DeleteWarmPoolCommand.js +18 -41
  99. package/dist-es/commands/DescribeAccountLimitsCommand.js +18 -41
  100. package/dist-es/commands/DescribeAdjustmentTypesCommand.js +18 -41
  101. package/dist-es/commands/DescribeAutoScalingGroupsCommand.js +18 -41
  102. package/dist-es/commands/DescribeAutoScalingInstancesCommand.js +18 -41
  103. package/dist-es/commands/DescribeAutoScalingNotificationTypesCommand.js +18 -41
  104. package/dist-es/commands/DescribeInstanceRefreshesCommand.js +18 -41
  105. package/dist-es/commands/DescribeLaunchConfigurationsCommand.js +18 -41
  106. package/dist-es/commands/DescribeLifecycleHookTypesCommand.js +18 -41
  107. package/dist-es/commands/DescribeLifecycleHooksCommand.js +18 -41
  108. package/dist-es/commands/DescribeLoadBalancerTargetGroupsCommand.js +18 -41
  109. package/dist-es/commands/DescribeLoadBalancersCommand.js +18 -41
  110. package/dist-es/commands/DescribeMetricCollectionTypesCommand.js +18 -41
  111. package/dist-es/commands/DescribeNotificationConfigurationsCommand.js +18 -41
  112. package/dist-es/commands/DescribePoliciesCommand.js +18 -41
  113. package/dist-es/commands/DescribeScalingActivitiesCommand.js +18 -41
  114. package/dist-es/commands/DescribeScalingProcessTypesCommand.js +18 -41
  115. package/dist-es/commands/DescribeScheduledActionsCommand.js +18 -41
  116. package/dist-es/commands/DescribeTagsCommand.js +18 -41
  117. package/dist-es/commands/DescribeTerminationPolicyTypesCommand.js +18 -41
  118. package/dist-es/commands/DescribeTrafficSourcesCommand.js +18 -41
  119. package/dist-es/commands/DescribeWarmPoolCommand.js +18 -41
  120. package/dist-es/commands/DetachInstancesCommand.js +18 -41
  121. package/dist-es/commands/DetachLoadBalancerTargetGroupsCommand.js +18 -41
  122. package/dist-es/commands/DetachLoadBalancersCommand.js +18 -41
  123. package/dist-es/commands/DetachTrafficSourcesCommand.js +18 -41
  124. package/dist-es/commands/DisableMetricsCollectionCommand.js +18 -41
  125. package/dist-es/commands/EnableMetricsCollectionCommand.js +18 -41
  126. package/dist-es/commands/EnterStandbyCommand.js +18 -41
  127. package/dist-es/commands/ExecutePolicyCommand.js +18 -41
  128. package/dist-es/commands/ExitStandbyCommand.js +18 -41
  129. package/dist-es/commands/GetPredictiveScalingForecastCommand.js +18 -41
  130. package/dist-es/commands/PutLifecycleHookCommand.js +18 -41
  131. package/dist-es/commands/PutNotificationConfigurationCommand.js +18 -41
  132. package/dist-es/commands/PutScalingPolicyCommand.js +18 -41
  133. package/dist-es/commands/PutScheduledUpdateGroupActionCommand.js +18 -41
  134. package/dist-es/commands/PutWarmPoolCommand.js +18 -41
  135. package/dist-es/commands/RecordLifecycleActionHeartbeatCommand.js +18 -41
  136. package/dist-es/commands/ResumeProcessesCommand.js +18 -41
  137. package/dist-es/commands/RollbackInstanceRefreshCommand.js +18 -41
  138. package/dist-es/commands/SetDesiredCapacityCommand.js +18 -41
  139. package/dist-es/commands/SetInstanceHealthCommand.js +18 -41
  140. package/dist-es/commands/SetInstanceProtectionCommand.js +18 -41
  141. package/dist-es/commands/StartInstanceRefreshCommand.js +18 -41
  142. package/dist-es/commands/SuspendProcessesCommand.js +18 -41
  143. package/dist-es/commands/TerminateInstanceInAutoScalingGroupCommand.js +18 -41
  144. package/dist-es/commands/UpdateAutoScalingGroupCommand.js +18 -41
  145. package/dist-es/endpoint/EndpointParameters.js +6 -0
  146. package/dist-es/pagination/DescribeAutoScalingGroupsPaginator.js +2 -23
  147. package/dist-es/pagination/DescribeAutoScalingInstancesPaginator.js +2 -23
  148. package/dist-es/pagination/DescribeInstanceRefreshesPaginator.js +2 -23
  149. package/dist-es/pagination/DescribeLaunchConfigurationsPaginator.js +2 -23
  150. package/dist-es/pagination/DescribeLoadBalancerTargetGroupsPaginator.js +2 -23
  151. package/dist-es/pagination/DescribeLoadBalancersPaginator.js +2 -23
  152. package/dist-es/pagination/DescribeNotificationConfigurationsPaginator.js +2 -23
  153. package/dist-es/pagination/DescribePoliciesPaginator.js +2 -23
  154. package/dist-es/pagination/DescribeScalingActivitiesPaginator.js +2 -23
  155. package/dist-es/pagination/DescribeScheduledActionsPaginator.js +2 -23
  156. package/dist-es/pagination/DescribeTagsPaginator.js +2 -23
  157. package/dist-es/pagination/DescribeTrafficSourcesPaginator.js +2 -23
  158. package/dist-es/pagination/DescribeWarmPoolPaginator.js +2 -23
  159. package/dist-types/commands/AttachInstancesCommand.d.ts +6 -21
  160. package/dist-types/commands/AttachLoadBalancerTargetGroupsCommand.d.ts +6 -21
  161. package/dist-types/commands/AttachLoadBalancersCommand.d.ts +6 -21
  162. package/dist-types/commands/AttachTrafficSourcesCommand.d.ts +6 -21
  163. package/dist-types/commands/BatchDeleteScheduledActionCommand.d.ts +6 -21
  164. package/dist-types/commands/BatchPutScheduledUpdateGroupActionCommand.d.ts +6 -21
  165. package/dist-types/commands/CancelInstanceRefreshCommand.d.ts +6 -21
  166. package/dist-types/commands/CompleteLifecycleActionCommand.d.ts +6 -21
  167. package/dist-types/commands/CreateAutoScalingGroupCommand.d.ts +6 -21
  168. package/dist-types/commands/CreateLaunchConfigurationCommand.d.ts +6 -21
  169. package/dist-types/commands/CreateOrUpdateTagsCommand.d.ts +6 -21
  170. package/dist-types/commands/DeleteAutoScalingGroupCommand.d.ts +6 -21
  171. package/dist-types/commands/DeleteLaunchConfigurationCommand.d.ts +6 -21
  172. package/dist-types/commands/DeleteLifecycleHookCommand.d.ts +6 -21
  173. package/dist-types/commands/DeleteNotificationConfigurationCommand.d.ts +6 -21
  174. package/dist-types/commands/DeletePolicyCommand.d.ts +6 -21
  175. package/dist-types/commands/DeleteScheduledActionCommand.d.ts +6 -21
  176. package/dist-types/commands/DeleteTagsCommand.d.ts +6 -21
  177. package/dist-types/commands/DeleteWarmPoolCommand.d.ts +6 -21
  178. package/dist-types/commands/DescribeAccountLimitsCommand.d.ts +6 -21
  179. package/dist-types/commands/DescribeAdjustmentTypesCommand.d.ts +6 -21
  180. package/dist-types/commands/DescribeAutoScalingGroupsCommand.d.ts +6 -21
  181. package/dist-types/commands/DescribeAutoScalingInstancesCommand.d.ts +6 -21
  182. package/dist-types/commands/DescribeAutoScalingNotificationTypesCommand.d.ts +6 -21
  183. package/dist-types/commands/DescribeInstanceRefreshesCommand.d.ts +6 -21
  184. package/dist-types/commands/DescribeLaunchConfigurationsCommand.d.ts +6 -21
  185. package/dist-types/commands/DescribeLifecycleHookTypesCommand.d.ts +6 -21
  186. package/dist-types/commands/DescribeLifecycleHooksCommand.d.ts +6 -21
  187. package/dist-types/commands/DescribeLoadBalancerTargetGroupsCommand.d.ts +6 -21
  188. package/dist-types/commands/DescribeLoadBalancersCommand.d.ts +6 -21
  189. package/dist-types/commands/DescribeMetricCollectionTypesCommand.d.ts +6 -21
  190. package/dist-types/commands/DescribeNotificationConfigurationsCommand.d.ts +6 -21
  191. package/dist-types/commands/DescribePoliciesCommand.d.ts +6 -21
  192. package/dist-types/commands/DescribeScalingActivitiesCommand.d.ts +6 -21
  193. package/dist-types/commands/DescribeScalingProcessTypesCommand.d.ts +6 -21
  194. package/dist-types/commands/DescribeScheduledActionsCommand.d.ts +6 -21
  195. package/dist-types/commands/DescribeTagsCommand.d.ts +6 -21
  196. package/dist-types/commands/DescribeTerminationPolicyTypesCommand.d.ts +6 -21
  197. package/dist-types/commands/DescribeTrafficSourcesCommand.d.ts +6 -21
  198. package/dist-types/commands/DescribeWarmPoolCommand.d.ts +6 -21
  199. package/dist-types/commands/DetachInstancesCommand.d.ts +6 -21
  200. package/dist-types/commands/DetachLoadBalancerTargetGroupsCommand.d.ts +6 -21
  201. package/dist-types/commands/DetachLoadBalancersCommand.d.ts +6 -21
  202. package/dist-types/commands/DetachTrafficSourcesCommand.d.ts +6 -21
  203. package/dist-types/commands/DisableMetricsCollectionCommand.d.ts +6 -21
  204. package/dist-types/commands/EnableMetricsCollectionCommand.d.ts +6 -21
  205. package/dist-types/commands/EnterStandbyCommand.d.ts +6 -21
  206. package/dist-types/commands/ExecutePolicyCommand.d.ts +6 -21
  207. package/dist-types/commands/ExitStandbyCommand.d.ts +6 -21
  208. package/dist-types/commands/GetPredictiveScalingForecastCommand.d.ts +6 -21
  209. package/dist-types/commands/PutLifecycleHookCommand.d.ts +6 -21
  210. package/dist-types/commands/PutNotificationConfigurationCommand.d.ts +6 -21
  211. package/dist-types/commands/PutScalingPolicyCommand.d.ts +6 -21
  212. package/dist-types/commands/PutScheduledUpdateGroupActionCommand.d.ts +6 -21
  213. package/dist-types/commands/PutWarmPoolCommand.d.ts +6 -21
  214. package/dist-types/commands/RecordLifecycleActionHeartbeatCommand.d.ts +6 -21
  215. package/dist-types/commands/ResumeProcessesCommand.d.ts +6 -21
  216. package/dist-types/commands/RollbackInstanceRefreshCommand.d.ts +6 -21
  217. package/dist-types/commands/SetDesiredCapacityCommand.d.ts +6 -21
  218. package/dist-types/commands/SetInstanceHealthCommand.d.ts +6 -21
  219. package/dist-types/commands/SetInstanceProtectionCommand.d.ts +6 -21
  220. package/dist-types/commands/StartInstanceRefreshCommand.d.ts +6 -21
  221. package/dist-types/commands/SuspendProcessesCommand.d.ts +6 -21
  222. package/dist-types/commands/TerminateInstanceInAutoScalingGroupCommand.d.ts +6 -21
  223. package/dist-types/commands/UpdateAutoScalingGroupCommand.d.ts +6 -21
  224. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  225. package/dist-types/pagination/DescribeAutoScalingGroupsPaginator.d.ts +1 -1
  226. package/dist-types/pagination/DescribeAutoScalingInstancesPaginator.d.ts +1 -1
  227. package/dist-types/pagination/DescribeInstanceRefreshesPaginator.d.ts +1 -1
  228. package/dist-types/pagination/DescribeLaunchConfigurationsPaginator.d.ts +1 -1
  229. package/dist-types/pagination/DescribeLoadBalancerTargetGroupsPaginator.d.ts +1 -1
  230. package/dist-types/pagination/DescribeLoadBalancersPaginator.d.ts +1 -1
  231. package/dist-types/pagination/DescribeNotificationConfigurationsPaginator.d.ts +1 -1
  232. package/dist-types/pagination/DescribePoliciesPaginator.d.ts +1 -1
  233. package/dist-types/pagination/DescribeScalingActivitiesPaginator.d.ts +1 -1
  234. package/dist-types/pagination/DescribeScheduledActionsPaginator.d.ts +1 -1
  235. package/dist-types/pagination/DescribeTagsPaginator.d.ts +1 -1
  236. package/dist-types/pagination/DescribeTrafficSourcesPaginator.d.ts +1 -1
  237. package/dist-types/pagination/DescribeWarmPoolPaginator.d.ts +1 -1
  238. package/dist-types/ts3.4/commands/AttachInstancesCommand.d.ts +14 -23
  239. package/dist-types/ts3.4/commands/AttachLoadBalancerTargetGroupsCommand.d.ts +12 -24
  240. package/dist-types/ts3.4/commands/AttachLoadBalancersCommand.d.ts +14 -23
  241. package/dist-types/ts3.4/commands/AttachTrafficSourcesCommand.d.ts +12 -24
  242. package/dist-types/ts3.4/commands/BatchDeleteScheduledActionCommand.d.ts +12 -24
  243. package/dist-types/ts3.4/commands/BatchPutScheduledUpdateGroupActionCommand.d.ts +12 -24
  244. package/dist-types/ts3.4/commands/CancelInstanceRefreshCommand.d.ts +12 -24
  245. package/dist-types/ts3.4/commands/CompleteLifecycleActionCommand.d.ts +12 -24
  246. package/dist-types/ts3.4/commands/CreateAutoScalingGroupCommand.d.ts +12 -24
  247. package/dist-types/ts3.4/commands/CreateLaunchConfigurationCommand.d.ts +12 -24
  248. package/dist-types/ts3.4/commands/CreateOrUpdateTagsCommand.d.ts +14 -23
  249. package/dist-types/ts3.4/commands/DeleteAutoScalingGroupCommand.d.ts +12 -24
  250. package/dist-types/ts3.4/commands/DeleteLaunchConfigurationCommand.d.ts +12 -24
  251. package/dist-types/ts3.4/commands/DeleteLifecycleHookCommand.d.ts +14 -23
  252. package/dist-types/ts3.4/commands/DeleteNotificationConfigurationCommand.d.ts +12 -24
  253. package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +14 -23
  254. package/dist-types/ts3.4/commands/DeleteScheduledActionCommand.d.ts +12 -24
  255. package/dist-types/ts3.4/commands/DeleteTagsCommand.d.ts +14 -23
  256. package/dist-types/ts3.4/commands/DeleteWarmPoolCommand.d.ts +14 -23
  257. package/dist-types/ts3.4/commands/DescribeAccountLimitsCommand.d.ts +12 -24
  258. package/dist-types/ts3.4/commands/DescribeAdjustmentTypesCommand.d.ts +12 -24
  259. package/dist-types/ts3.4/commands/DescribeAutoScalingGroupsCommand.d.ts +12 -24
  260. package/dist-types/ts3.4/commands/DescribeAutoScalingInstancesCommand.d.ts +12 -24
  261. package/dist-types/ts3.4/commands/DescribeAutoScalingNotificationTypesCommand.d.ts +12 -24
  262. package/dist-types/ts3.4/commands/DescribeInstanceRefreshesCommand.d.ts +12 -24
  263. package/dist-types/ts3.4/commands/DescribeLaunchConfigurationsCommand.d.ts +12 -24
  264. package/dist-types/ts3.4/commands/DescribeLifecycleHookTypesCommand.d.ts +12 -24
  265. package/dist-types/ts3.4/commands/DescribeLifecycleHooksCommand.d.ts +12 -24
  266. package/dist-types/ts3.4/commands/DescribeLoadBalancerTargetGroupsCommand.d.ts +12 -24
  267. package/dist-types/ts3.4/commands/DescribeLoadBalancersCommand.d.ts +12 -24
  268. package/dist-types/ts3.4/commands/DescribeMetricCollectionTypesCommand.d.ts +12 -24
  269. package/dist-types/ts3.4/commands/DescribeNotificationConfigurationsCommand.d.ts +12 -24
  270. package/dist-types/ts3.4/commands/DescribePoliciesCommand.d.ts +14 -23
  271. package/dist-types/ts3.4/commands/DescribeScalingActivitiesCommand.d.ts +12 -24
  272. package/dist-types/ts3.4/commands/DescribeScalingProcessTypesCommand.d.ts +12 -24
  273. package/dist-types/ts3.4/commands/DescribeScheduledActionsCommand.d.ts +12 -24
  274. package/dist-types/ts3.4/commands/DescribeTagsCommand.d.ts +14 -23
  275. package/dist-types/ts3.4/commands/DescribeTerminationPolicyTypesCommand.d.ts +12 -24
  276. package/dist-types/ts3.4/commands/DescribeTrafficSourcesCommand.d.ts +12 -24
  277. package/dist-types/ts3.4/commands/DescribeWarmPoolCommand.d.ts +14 -23
  278. package/dist-types/ts3.4/commands/DetachInstancesCommand.d.ts +14 -23
  279. package/dist-types/ts3.4/commands/DetachLoadBalancerTargetGroupsCommand.d.ts +12 -24
  280. package/dist-types/ts3.4/commands/DetachLoadBalancersCommand.d.ts +14 -23
  281. package/dist-types/ts3.4/commands/DetachTrafficSourcesCommand.d.ts +12 -24
  282. package/dist-types/ts3.4/commands/DisableMetricsCollectionCommand.d.ts +12 -24
  283. package/dist-types/ts3.4/commands/EnableMetricsCollectionCommand.d.ts +12 -24
  284. package/dist-types/ts3.4/commands/EnterStandbyCommand.d.ts +14 -23
  285. package/dist-types/ts3.4/commands/ExecutePolicyCommand.d.ts +14 -23
  286. package/dist-types/ts3.4/commands/ExitStandbyCommand.d.ts +14 -23
  287. package/dist-types/ts3.4/commands/GetPredictiveScalingForecastCommand.d.ts +12 -24
  288. package/dist-types/ts3.4/commands/PutLifecycleHookCommand.d.ts +14 -23
  289. package/dist-types/ts3.4/commands/PutNotificationConfigurationCommand.d.ts +12 -24
  290. package/dist-types/ts3.4/commands/PutScalingPolicyCommand.d.ts +14 -23
  291. package/dist-types/ts3.4/commands/PutScheduledUpdateGroupActionCommand.d.ts +12 -24
  292. package/dist-types/ts3.4/commands/PutWarmPoolCommand.d.ts +14 -23
  293. package/dist-types/ts3.4/commands/RecordLifecycleActionHeartbeatCommand.d.ts +12 -24
  294. package/dist-types/ts3.4/commands/ResumeProcessesCommand.d.ts +14 -23
  295. package/dist-types/ts3.4/commands/RollbackInstanceRefreshCommand.d.ts +12 -24
  296. package/dist-types/ts3.4/commands/SetDesiredCapacityCommand.d.ts +14 -23
  297. package/dist-types/ts3.4/commands/SetInstanceHealthCommand.d.ts +14 -23
  298. package/dist-types/ts3.4/commands/SetInstanceProtectionCommand.d.ts +12 -24
  299. package/dist-types/ts3.4/commands/StartInstanceRefreshCommand.d.ts +12 -24
  300. package/dist-types/ts3.4/commands/SuspendProcessesCommand.d.ts +14 -23
  301. package/dist-types/ts3.4/commands/TerminateInstanceInAutoScalingGroupCommand.d.ts +12 -24
  302. package/dist-types/ts3.4/commands/UpdateAutoScalingGroupCommand.d.ts +12 -24
  303. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  304. package/dist-types/ts3.4/pagination/DescribeAutoScalingGroupsPaginator.d.ts +3 -3
  305. package/dist-types/ts3.4/pagination/DescribeAutoScalingInstancesPaginator.d.ts +3 -3
  306. package/dist-types/ts3.4/pagination/DescribeInstanceRefreshesPaginator.d.ts +3 -3
  307. package/dist-types/ts3.4/pagination/DescribeLaunchConfigurationsPaginator.d.ts +3 -3
  308. package/dist-types/ts3.4/pagination/DescribeLoadBalancerTargetGroupsPaginator.d.ts +3 -3
  309. package/dist-types/ts3.4/pagination/DescribeLoadBalancersPaginator.d.ts +3 -3
  310. package/dist-types/ts3.4/pagination/DescribeNotificationConfigurationsPaginator.d.ts +3 -3
  311. package/dist-types/ts3.4/pagination/DescribePoliciesPaginator.d.ts +3 -3
  312. package/dist-types/ts3.4/pagination/DescribeScalingActivitiesPaginator.d.ts +3 -3
  313. package/dist-types/ts3.4/pagination/DescribeScheduledActionsPaginator.d.ts +3 -3
  314. package/dist-types/ts3.4/pagination/DescribeTagsPaginator.d.ts +3 -3
  315. package/dist-types/ts3.4/pagination/DescribeTrafficSourcesPaginator.d.ts +3 -3
  316. package/dist-types/ts3.4/pagination/DescribeWarmPoolPaginator.d.ts +3 -3
  317. package/package.json +11 -10
@@ -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_UpdateAutoScalingGroupCommand, se_UpdateAutoScalingGroupCommand } from "../protocols/Aws_query";
6
6
  export { $Command };
7
- export class UpdateAutoScalingGroupCommand 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, UpdateAutoScalingGroupCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AutoScalingClient";
26
- const commandName = "UpdateAutoScalingGroupCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AutoScaling_2011_01_01",
35
- operation: "UpdateAutoScalingGroup",
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_UpdateAutoScalingGroupCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateAutoScalingGroupCommand(output, context);
46
- }
7
+ export class UpdateAutoScalingGroupCommand 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("AutoScaling_2011_01_01", "UpdateAutoScalingGroup", {})
19
+ .n("AutoScalingClient", "UpdateAutoScalingGroupCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateAutoScalingGroupCommand)
22
+ .de(de_UpdateAutoScalingGroupCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "autoscaling",
7
7
  };
8
8
  };
9
+ export const commonParams = {
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
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { AutoScalingClient } from "../AutoScalingClient";
2
3
  import { DescribeAutoScalingGroupsCommand, } from "../commands/DescribeAutoScalingGroupsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeAutoScalingGroupsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeAutoScalingGroups(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxRecords"] = config.pageSize;
13
- if (config.client instanceof AutoScalingClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeAutoScalingGroups = createPaginator(AutoScalingClient, DescribeAutoScalingGroupsCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { AutoScalingClient } from "../AutoScalingClient";
2
3
  import { DescribeAutoScalingInstancesCommand, } from "../commands/DescribeAutoScalingInstancesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeAutoScalingInstancesCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeAutoScalingInstances(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxRecords"] = config.pageSize;
13
- if (config.client instanceof AutoScalingClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeAutoScalingInstances = createPaginator(AutoScalingClient, DescribeAutoScalingInstancesCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { AutoScalingClient } from "../AutoScalingClient";
2
3
  import { DescribeInstanceRefreshesCommand, } from "../commands/DescribeInstanceRefreshesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeInstanceRefreshesCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeInstanceRefreshes(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxRecords"] = config.pageSize;
13
- if (config.client instanceof AutoScalingClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeInstanceRefreshes = createPaginator(AutoScalingClient, DescribeInstanceRefreshesCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { AutoScalingClient } from "../AutoScalingClient";
2
3
  import { DescribeLaunchConfigurationsCommand, } from "../commands/DescribeLaunchConfigurationsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeLaunchConfigurationsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeLaunchConfigurations(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxRecords"] = config.pageSize;
13
- if (config.client instanceof AutoScalingClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeLaunchConfigurations = createPaginator(AutoScalingClient, DescribeLaunchConfigurationsCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { AutoScalingClient } from "../AutoScalingClient";
2
3
  import { DescribeLoadBalancerTargetGroupsCommand, } from "../commands/DescribeLoadBalancerTargetGroupsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeLoadBalancerTargetGroupsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeLoadBalancerTargetGroups(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxRecords"] = config.pageSize;
13
- if (config.client instanceof AutoScalingClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeLoadBalancerTargetGroups = createPaginator(AutoScalingClient, DescribeLoadBalancerTargetGroupsCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { AutoScalingClient } from "../AutoScalingClient";
2
3
  import { DescribeLoadBalancersCommand, } from "../commands/DescribeLoadBalancersCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeLoadBalancersCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeLoadBalancers(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxRecords"] = config.pageSize;
13
- if (config.client instanceof AutoScalingClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeLoadBalancers = createPaginator(AutoScalingClient, DescribeLoadBalancersCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { AutoScalingClient } from "../AutoScalingClient";
2
3
  import { DescribeNotificationConfigurationsCommand, } from "../commands/DescribeNotificationConfigurationsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeNotificationConfigurationsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeNotificationConfigurations(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxRecords"] = config.pageSize;
13
- if (config.client instanceof AutoScalingClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeNotificationConfigurations = createPaginator(AutoScalingClient, DescribeNotificationConfigurationsCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { AutoScalingClient } from "../AutoScalingClient";
2
3
  import { DescribePoliciesCommand, } from "../commands/DescribePoliciesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribePoliciesCommand(input), ...args);
5
- };
6
- export async function* paginateDescribePolicies(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxRecords"] = config.pageSize;
13
- if (config.client instanceof AutoScalingClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribePolicies = createPaginator(AutoScalingClient, DescribePoliciesCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { AutoScalingClient } from "../AutoScalingClient";
2
3
  import { DescribeScalingActivitiesCommand, } from "../commands/DescribeScalingActivitiesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeScalingActivitiesCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeScalingActivities(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxRecords"] = config.pageSize;
13
- if (config.client instanceof AutoScalingClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeScalingActivities = createPaginator(AutoScalingClient, DescribeScalingActivitiesCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { AutoScalingClient } from "../AutoScalingClient";
2
3
  import { DescribeScheduledActionsCommand, } from "../commands/DescribeScheduledActionsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeScheduledActionsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeScheduledActions(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxRecords"] = config.pageSize;
13
- if (config.client instanceof AutoScalingClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeScheduledActions = createPaginator(AutoScalingClient, DescribeScheduledActionsCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { AutoScalingClient } from "../AutoScalingClient";
2
3
  import { DescribeTagsCommand, } from "../commands/DescribeTagsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeTagsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeTags(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxRecords"] = config.pageSize;
13
- if (config.client instanceof AutoScalingClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeTags = createPaginator(AutoScalingClient, DescribeTagsCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { AutoScalingClient } from "../AutoScalingClient";
2
3
  import { DescribeTrafficSourcesCommand, } from "../commands/DescribeTrafficSourcesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeTrafficSourcesCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeTrafficSources(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxRecords"] = config.pageSize;
13
- if (config.client instanceof AutoScalingClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeTrafficSources = createPaginator(AutoScalingClient, DescribeTrafficSourcesCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { AutoScalingClient } from "../AutoScalingClient";
2
3
  import { DescribeWarmPoolCommand, } from "../commands/DescribeWarmPoolCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeWarmPoolCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeWarmPool(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxRecords"] = config.pageSize;
13
- if (config.client instanceof AutoScalingClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeWarmPool = createPaginator(AutoScalingClient, DescribeWarmPoolCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { AutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AutoScalingClient";
5
4
  import { AttachInstancesQuery } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AttachInstancesCommandInput extends AttachInstancesQuery {
21
20
  */
22
21
  export interface AttachInstancesCommandOutput extends __MetadataBearer {
23
22
  }
23
+ declare const AttachInstancesCommand_base: {
24
+ new (input: AttachInstancesCommandInput): import("@smithy/smithy-client").CommandImpl<AttachInstancesCommandInput, AttachInstancesCommandOutput, AutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Attaches one or more EC2 instances to the specified Auto Scaling group.</p>
@@ -82,23 +85,5 @@ export interface AttachInstancesCommandOutput extends __MetadataBearer {
82
85
  * ```
83
86
  *
84
87
  */
85
- export declare class AttachInstancesCommand extends $Command<AttachInstancesCommandInput, AttachInstancesCommandOutput, AutoScalingClientResolvedConfig> {
86
- readonly input: AttachInstancesCommandInput;
87
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
88
- /**
89
- * @public
90
- */
91
- constructor(input: AttachInstancesCommandInput);
92
- /**
93
- * @internal
94
- */
95
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AttachInstancesCommandInput, AttachInstancesCommandOutput>;
96
- /**
97
- * @internal
98
- */
99
- private serialize;
100
- /**
101
- * @internal
102
- */
103
- private deserialize;
88
+ export declare class AttachInstancesCommand extends AttachInstancesCommand_base {
104
89
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { AutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AutoScalingClient";
5
4
  import { AttachLoadBalancerTargetGroupsResultType, AttachLoadBalancerTargetGroupsType } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AttachLoadBalancerTargetGroupsCommandInput extends AttachLoadBa
21
20
  */
22
21
  export interface AttachLoadBalancerTargetGroupsCommandOutput extends AttachLoadBalancerTargetGroupsResultType, __MetadataBearer {
23
22
  }
23
+ declare const AttachLoadBalancerTargetGroupsCommand_base: {
24
+ new (input: AttachLoadBalancerTargetGroupsCommandInput): import("@smithy/smithy-client").CommandImpl<AttachLoadBalancerTargetGroupsCommandInput, AttachLoadBalancerTargetGroupsCommandOutput, AutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <note>
@@ -102,23 +105,5 @@ export interface AttachLoadBalancerTargetGroupsCommandOutput extends AttachLoadB
102
105
  * ```
103
106
  *
104
107
  */
105
- export declare class AttachLoadBalancerTargetGroupsCommand extends $Command<AttachLoadBalancerTargetGroupsCommandInput, AttachLoadBalancerTargetGroupsCommandOutput, AutoScalingClientResolvedConfig> {
106
- readonly input: AttachLoadBalancerTargetGroupsCommandInput;
107
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
108
- /**
109
- * @public
110
- */
111
- constructor(input: AttachLoadBalancerTargetGroupsCommandInput);
112
- /**
113
- * @internal
114
- */
115
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AttachLoadBalancerTargetGroupsCommandInput, AttachLoadBalancerTargetGroupsCommandOutput>;
116
- /**
117
- * @internal
118
- */
119
- private serialize;
120
- /**
121
- * @internal
122
- */
123
- private deserialize;
108
+ export declare class AttachLoadBalancerTargetGroupsCommand extends AttachLoadBalancerTargetGroupsCommand_base {
124
109
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { AutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AutoScalingClient";
5
4
  import { AttachLoadBalancersResultType, AttachLoadBalancersType } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AttachLoadBalancersCommandInput extends AttachLoadBalancersType
21
20
  */
22
21
  export interface AttachLoadBalancersCommandOutput extends AttachLoadBalancersResultType, __MetadataBearer {
23
22
  }
23
+ declare const AttachLoadBalancersCommand_base: {
24
+ new (input: AttachLoadBalancersCommandInput): import("@smithy/smithy-client").CommandImpl<AttachLoadBalancersCommandInput, AttachLoadBalancersCommandOutput, AutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <note>
@@ -89,23 +92,5 @@ export interface AttachLoadBalancersCommandOutput extends AttachLoadBalancersRes
89
92
  * ```
90
93
  *
91
94
  */
92
- export declare class AttachLoadBalancersCommand extends $Command<AttachLoadBalancersCommandInput, AttachLoadBalancersCommandOutput, AutoScalingClientResolvedConfig> {
93
- readonly input: AttachLoadBalancersCommandInput;
94
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
95
- /**
96
- * @public
97
- */
98
- constructor(input: AttachLoadBalancersCommandInput);
99
- /**
100
- * @internal
101
- */
102
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AttachLoadBalancersCommandInput, AttachLoadBalancersCommandOutput>;
103
- /**
104
- * @internal
105
- */
106
- private serialize;
107
- /**
108
- * @internal
109
- */
110
- private deserialize;
95
+ export declare class AttachLoadBalancersCommand extends AttachLoadBalancersCommand_base {
111
96
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { AutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AutoScalingClient";
5
4
  import { AttachTrafficSourcesResultType, AttachTrafficSourcesType } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AttachTrafficSourcesCommandInput extends AttachTrafficSourcesTy
21
20
  */
22
21
  export interface AttachTrafficSourcesCommandOutput extends AttachTrafficSourcesResultType, __MetadataBearer {
23
22
  }
23
+ declare const AttachTrafficSourcesCommand_base: {
24
+ new (input: AttachTrafficSourcesCommandInput): import("@smithy/smithy-client").CommandImpl<AttachTrafficSourcesCommandInput, AttachTrafficSourcesCommandOutput, AutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Attaches one or more traffic sources to the specified Auto Scaling group.</p>
@@ -101,23 +104,5 @@ export interface AttachTrafficSourcesCommandOutput extends AttachTrafficSourcesR
101
104
  * ```
102
105
  *
103
106
  */
104
- export declare class AttachTrafficSourcesCommand extends $Command<AttachTrafficSourcesCommandInput, AttachTrafficSourcesCommandOutput, AutoScalingClientResolvedConfig> {
105
- readonly input: AttachTrafficSourcesCommandInput;
106
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
107
- /**
108
- * @public
109
- */
110
- constructor(input: AttachTrafficSourcesCommandInput);
111
- /**
112
- * @internal
113
- */
114
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AutoScalingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AttachTrafficSourcesCommandInput, AttachTrafficSourcesCommandOutput>;
115
- /**
116
- * @internal
117
- */
118
- private serialize;
119
- /**
120
- * @internal
121
- */
122
- private deserialize;
107
+ export declare class AttachTrafficSourcesCommand extends AttachTrafficSourcesCommand_base {
123
108
  }