@aws-sdk/client-lambda 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 (313) hide show
  1. package/dist-cjs/commands/AddLayerVersionPermissionCommand.js +18 -41
  2. package/dist-cjs/commands/AddPermissionCommand.js +18 -41
  3. package/dist-cjs/commands/CreateAliasCommand.js +18 -41
  4. package/dist-cjs/commands/CreateCodeSigningConfigCommand.js +18 -41
  5. package/dist-cjs/commands/CreateEventSourceMappingCommand.js +18 -41
  6. package/dist-cjs/commands/CreateFunctionCommand.js +18 -41
  7. package/dist-cjs/commands/CreateFunctionUrlConfigCommand.js +18 -41
  8. package/dist-cjs/commands/DeleteAliasCommand.js +18 -41
  9. package/dist-cjs/commands/DeleteCodeSigningConfigCommand.js +18 -41
  10. package/dist-cjs/commands/DeleteEventSourceMappingCommand.js +18 -41
  11. package/dist-cjs/commands/DeleteFunctionCodeSigningConfigCommand.js +18 -41
  12. package/dist-cjs/commands/DeleteFunctionCommand.js +18 -41
  13. package/dist-cjs/commands/DeleteFunctionConcurrencyCommand.js +18 -41
  14. package/dist-cjs/commands/DeleteFunctionEventInvokeConfigCommand.js +18 -41
  15. package/dist-cjs/commands/DeleteFunctionUrlConfigCommand.js +18 -41
  16. package/dist-cjs/commands/DeleteLayerVersionCommand.js +18 -41
  17. package/dist-cjs/commands/DeleteProvisionedConcurrencyConfigCommand.js +18 -41
  18. package/dist-cjs/commands/GetAccountSettingsCommand.js +18 -41
  19. package/dist-cjs/commands/GetAliasCommand.js +18 -41
  20. package/dist-cjs/commands/GetCodeSigningConfigCommand.js +18 -41
  21. package/dist-cjs/commands/GetEventSourceMappingCommand.js +18 -41
  22. package/dist-cjs/commands/GetFunctionCodeSigningConfigCommand.js +18 -41
  23. package/dist-cjs/commands/GetFunctionCommand.js +18 -41
  24. package/dist-cjs/commands/GetFunctionConcurrencyCommand.js +18 -41
  25. package/dist-cjs/commands/GetFunctionConfigurationCommand.js +18 -41
  26. package/dist-cjs/commands/GetFunctionEventInvokeConfigCommand.js +18 -41
  27. package/dist-cjs/commands/GetFunctionUrlConfigCommand.js +18 -41
  28. package/dist-cjs/commands/GetLayerVersionByArnCommand.js +18 -41
  29. package/dist-cjs/commands/GetLayerVersionCommand.js +18 -41
  30. package/dist-cjs/commands/GetLayerVersionPolicyCommand.js +18 -41
  31. package/dist-cjs/commands/GetPolicyCommand.js +18 -41
  32. package/dist-cjs/commands/GetProvisionedConcurrencyConfigCommand.js +18 -41
  33. package/dist-cjs/commands/GetRuntimeManagementConfigCommand.js +18 -41
  34. package/dist-cjs/commands/InvokeAsyncCommand.js +18 -41
  35. package/dist-cjs/commands/InvokeCommand.js +18 -41
  36. package/dist-cjs/commands/InvokeWithResponseStreamCommand.js +22 -44
  37. package/dist-cjs/commands/ListAliasesCommand.js +18 -41
  38. package/dist-cjs/commands/ListCodeSigningConfigsCommand.js +18 -41
  39. package/dist-cjs/commands/ListEventSourceMappingsCommand.js +18 -41
  40. package/dist-cjs/commands/ListFunctionEventInvokeConfigsCommand.js +18 -41
  41. package/dist-cjs/commands/ListFunctionUrlConfigsCommand.js +18 -41
  42. package/dist-cjs/commands/ListFunctionsByCodeSigningConfigCommand.js +18 -41
  43. package/dist-cjs/commands/ListFunctionsCommand.js +18 -41
  44. package/dist-cjs/commands/ListLayerVersionsCommand.js +18 -41
  45. package/dist-cjs/commands/ListLayersCommand.js +18 -41
  46. package/dist-cjs/commands/ListProvisionedConcurrencyConfigsCommand.js +18 -41
  47. package/dist-cjs/commands/ListTagsCommand.js +18 -41
  48. package/dist-cjs/commands/ListVersionsByFunctionCommand.js +18 -41
  49. package/dist-cjs/commands/PublishLayerVersionCommand.js +18 -41
  50. package/dist-cjs/commands/PublishVersionCommand.js +18 -41
  51. package/dist-cjs/commands/PutFunctionCodeSigningConfigCommand.js +18 -41
  52. package/dist-cjs/commands/PutFunctionConcurrencyCommand.js +18 -41
  53. package/dist-cjs/commands/PutFunctionEventInvokeConfigCommand.js +18 -41
  54. package/dist-cjs/commands/PutProvisionedConcurrencyConfigCommand.js +18 -41
  55. package/dist-cjs/commands/PutRuntimeManagementConfigCommand.js +18 -41
  56. package/dist-cjs/commands/RemoveLayerVersionPermissionCommand.js +18 -41
  57. package/dist-cjs/commands/RemovePermissionCommand.js +18 -41
  58. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  59. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  60. package/dist-cjs/commands/UpdateAliasCommand.js +18 -41
  61. package/dist-cjs/commands/UpdateCodeSigningConfigCommand.js +18 -41
  62. package/dist-cjs/commands/UpdateEventSourceMappingCommand.js +18 -41
  63. package/dist-cjs/commands/UpdateFunctionCodeCommand.js +18 -41
  64. package/dist-cjs/commands/UpdateFunctionConfigurationCommand.js +18 -41
  65. package/dist-cjs/commands/UpdateFunctionEventInvokeConfigCommand.js +18 -41
  66. package/dist-cjs/commands/UpdateFunctionUrlConfigCommand.js +18 -41
  67. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  68. package/dist-cjs/pagination/ListAliasesPaginator.js +2 -24
  69. package/dist-cjs/pagination/ListCodeSigningConfigsPaginator.js +2 -24
  70. package/dist-cjs/pagination/ListEventSourceMappingsPaginator.js +2 -24
  71. package/dist-cjs/pagination/ListFunctionEventInvokeConfigsPaginator.js +2 -24
  72. package/dist-cjs/pagination/ListFunctionUrlConfigsPaginator.js +2 -24
  73. package/dist-cjs/pagination/ListFunctionsByCodeSigningConfigPaginator.js +2 -24
  74. package/dist-cjs/pagination/ListFunctionsPaginator.js +2 -24
  75. package/dist-cjs/pagination/ListLayerVersionsPaginator.js +2 -24
  76. package/dist-cjs/pagination/ListLayersPaginator.js +2 -24
  77. package/dist-cjs/pagination/ListProvisionedConcurrencyConfigsPaginator.js +2 -24
  78. package/dist-cjs/pagination/ListVersionsByFunctionPaginator.js +2 -24
  79. package/dist-es/commands/AddLayerVersionPermissionCommand.js +18 -41
  80. package/dist-es/commands/AddPermissionCommand.js +18 -41
  81. package/dist-es/commands/CreateAliasCommand.js +18 -41
  82. package/dist-es/commands/CreateCodeSigningConfigCommand.js +18 -41
  83. package/dist-es/commands/CreateEventSourceMappingCommand.js +18 -41
  84. package/dist-es/commands/CreateFunctionCommand.js +18 -41
  85. package/dist-es/commands/CreateFunctionUrlConfigCommand.js +18 -41
  86. package/dist-es/commands/DeleteAliasCommand.js +18 -41
  87. package/dist-es/commands/DeleteCodeSigningConfigCommand.js +18 -41
  88. package/dist-es/commands/DeleteEventSourceMappingCommand.js +18 -41
  89. package/dist-es/commands/DeleteFunctionCodeSigningConfigCommand.js +18 -41
  90. package/dist-es/commands/DeleteFunctionCommand.js +18 -41
  91. package/dist-es/commands/DeleteFunctionConcurrencyCommand.js +18 -41
  92. package/dist-es/commands/DeleteFunctionEventInvokeConfigCommand.js +18 -41
  93. package/dist-es/commands/DeleteFunctionUrlConfigCommand.js +18 -41
  94. package/dist-es/commands/DeleteLayerVersionCommand.js +18 -41
  95. package/dist-es/commands/DeleteProvisionedConcurrencyConfigCommand.js +18 -41
  96. package/dist-es/commands/GetAccountSettingsCommand.js +18 -41
  97. package/dist-es/commands/GetAliasCommand.js +18 -41
  98. package/dist-es/commands/GetCodeSigningConfigCommand.js +18 -41
  99. package/dist-es/commands/GetEventSourceMappingCommand.js +18 -41
  100. package/dist-es/commands/GetFunctionCodeSigningConfigCommand.js +18 -41
  101. package/dist-es/commands/GetFunctionCommand.js +18 -41
  102. package/dist-es/commands/GetFunctionConcurrencyCommand.js +18 -41
  103. package/dist-es/commands/GetFunctionConfigurationCommand.js +18 -41
  104. package/dist-es/commands/GetFunctionEventInvokeConfigCommand.js +18 -41
  105. package/dist-es/commands/GetFunctionUrlConfigCommand.js +18 -41
  106. package/dist-es/commands/GetLayerVersionByArnCommand.js +18 -41
  107. package/dist-es/commands/GetLayerVersionCommand.js +18 -41
  108. package/dist-es/commands/GetLayerVersionPolicyCommand.js +18 -41
  109. package/dist-es/commands/GetPolicyCommand.js +18 -41
  110. package/dist-es/commands/GetProvisionedConcurrencyConfigCommand.js +18 -41
  111. package/dist-es/commands/GetRuntimeManagementConfigCommand.js +18 -41
  112. package/dist-es/commands/InvokeAsyncCommand.js +18 -41
  113. package/dist-es/commands/InvokeCommand.js +18 -41
  114. package/dist-es/commands/InvokeWithResponseStreamCommand.js +22 -44
  115. package/dist-es/commands/ListAliasesCommand.js +18 -41
  116. package/dist-es/commands/ListCodeSigningConfigsCommand.js +18 -41
  117. package/dist-es/commands/ListEventSourceMappingsCommand.js +18 -41
  118. package/dist-es/commands/ListFunctionEventInvokeConfigsCommand.js +18 -41
  119. package/dist-es/commands/ListFunctionUrlConfigsCommand.js +18 -41
  120. package/dist-es/commands/ListFunctionsByCodeSigningConfigCommand.js +18 -41
  121. package/dist-es/commands/ListFunctionsCommand.js +18 -41
  122. package/dist-es/commands/ListLayerVersionsCommand.js +18 -41
  123. package/dist-es/commands/ListLayersCommand.js +18 -41
  124. package/dist-es/commands/ListProvisionedConcurrencyConfigsCommand.js +18 -41
  125. package/dist-es/commands/ListTagsCommand.js +18 -41
  126. package/dist-es/commands/ListVersionsByFunctionCommand.js +18 -41
  127. package/dist-es/commands/PublishLayerVersionCommand.js +18 -41
  128. package/dist-es/commands/PublishVersionCommand.js +18 -41
  129. package/dist-es/commands/PutFunctionCodeSigningConfigCommand.js +18 -41
  130. package/dist-es/commands/PutFunctionConcurrencyCommand.js +18 -41
  131. package/dist-es/commands/PutFunctionEventInvokeConfigCommand.js +18 -41
  132. package/dist-es/commands/PutProvisionedConcurrencyConfigCommand.js +18 -41
  133. package/dist-es/commands/PutRuntimeManagementConfigCommand.js +18 -41
  134. package/dist-es/commands/RemoveLayerVersionPermissionCommand.js +18 -41
  135. package/dist-es/commands/RemovePermissionCommand.js +18 -41
  136. package/dist-es/commands/TagResourceCommand.js +18 -41
  137. package/dist-es/commands/UntagResourceCommand.js +18 -41
  138. package/dist-es/commands/UpdateAliasCommand.js +18 -41
  139. package/dist-es/commands/UpdateCodeSigningConfigCommand.js +18 -41
  140. package/dist-es/commands/UpdateEventSourceMappingCommand.js +18 -41
  141. package/dist-es/commands/UpdateFunctionCodeCommand.js +18 -41
  142. package/dist-es/commands/UpdateFunctionConfigurationCommand.js +18 -41
  143. package/dist-es/commands/UpdateFunctionEventInvokeConfigCommand.js +18 -41
  144. package/dist-es/commands/UpdateFunctionUrlConfigCommand.js +18 -41
  145. package/dist-es/endpoint/EndpointParameters.js +6 -0
  146. package/dist-es/pagination/ListAliasesPaginator.js +2 -23
  147. package/dist-es/pagination/ListCodeSigningConfigsPaginator.js +2 -23
  148. package/dist-es/pagination/ListEventSourceMappingsPaginator.js +2 -23
  149. package/dist-es/pagination/ListFunctionEventInvokeConfigsPaginator.js +2 -23
  150. package/dist-es/pagination/ListFunctionUrlConfigsPaginator.js +2 -23
  151. package/dist-es/pagination/ListFunctionsByCodeSigningConfigPaginator.js +2 -23
  152. package/dist-es/pagination/ListFunctionsPaginator.js +2 -23
  153. package/dist-es/pagination/ListLayerVersionsPaginator.js +2 -23
  154. package/dist-es/pagination/ListLayersPaginator.js +2 -23
  155. package/dist-es/pagination/ListProvisionedConcurrencyConfigsPaginator.js +2 -23
  156. package/dist-es/pagination/ListVersionsByFunctionPaginator.js +2 -23
  157. package/dist-types/commands/AddLayerVersionPermissionCommand.d.ts +6 -21
  158. package/dist-types/commands/AddPermissionCommand.d.ts +6 -21
  159. package/dist-types/commands/CreateAliasCommand.d.ts +6 -21
  160. package/dist-types/commands/CreateCodeSigningConfigCommand.d.ts +6 -21
  161. package/dist-types/commands/CreateEventSourceMappingCommand.d.ts +6 -21
  162. package/dist-types/commands/CreateFunctionCommand.d.ts +6 -21
  163. package/dist-types/commands/CreateFunctionUrlConfigCommand.d.ts +6 -21
  164. package/dist-types/commands/DeleteAliasCommand.d.ts +6 -21
  165. package/dist-types/commands/DeleteCodeSigningConfigCommand.d.ts +6 -21
  166. package/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +6 -21
  167. package/dist-types/commands/DeleteFunctionCodeSigningConfigCommand.d.ts +6 -21
  168. package/dist-types/commands/DeleteFunctionCommand.d.ts +6 -21
  169. package/dist-types/commands/DeleteFunctionConcurrencyCommand.d.ts +6 -21
  170. package/dist-types/commands/DeleteFunctionEventInvokeConfigCommand.d.ts +6 -21
  171. package/dist-types/commands/DeleteFunctionUrlConfigCommand.d.ts +6 -21
  172. package/dist-types/commands/DeleteLayerVersionCommand.d.ts +6 -21
  173. package/dist-types/commands/DeleteProvisionedConcurrencyConfigCommand.d.ts +6 -21
  174. package/dist-types/commands/GetAccountSettingsCommand.d.ts +6 -21
  175. package/dist-types/commands/GetAliasCommand.d.ts +6 -21
  176. package/dist-types/commands/GetCodeSigningConfigCommand.d.ts +6 -21
  177. package/dist-types/commands/GetEventSourceMappingCommand.d.ts +6 -21
  178. package/dist-types/commands/GetFunctionCodeSigningConfigCommand.d.ts +6 -21
  179. package/dist-types/commands/GetFunctionCommand.d.ts +6 -21
  180. package/dist-types/commands/GetFunctionConcurrencyCommand.d.ts +6 -21
  181. package/dist-types/commands/GetFunctionConfigurationCommand.d.ts +6 -21
  182. package/dist-types/commands/GetFunctionEventInvokeConfigCommand.d.ts +6 -21
  183. package/dist-types/commands/GetFunctionUrlConfigCommand.d.ts +6 -21
  184. package/dist-types/commands/GetLayerVersionByArnCommand.d.ts +6 -21
  185. package/dist-types/commands/GetLayerVersionCommand.d.ts +6 -21
  186. package/dist-types/commands/GetLayerVersionPolicyCommand.d.ts +6 -21
  187. package/dist-types/commands/GetPolicyCommand.d.ts +6 -21
  188. package/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +6 -21
  189. package/dist-types/commands/GetRuntimeManagementConfigCommand.d.ts +6 -21
  190. package/dist-types/commands/InvokeAsyncCommand.d.ts +6 -21
  191. package/dist-types/commands/InvokeCommand.d.ts +6 -21
  192. package/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +6 -21
  193. package/dist-types/commands/ListAliasesCommand.d.ts +6 -21
  194. package/dist-types/commands/ListCodeSigningConfigsCommand.d.ts +6 -21
  195. package/dist-types/commands/ListEventSourceMappingsCommand.d.ts +6 -21
  196. package/dist-types/commands/ListFunctionEventInvokeConfigsCommand.d.ts +6 -21
  197. package/dist-types/commands/ListFunctionUrlConfigsCommand.d.ts +6 -21
  198. package/dist-types/commands/ListFunctionsByCodeSigningConfigCommand.d.ts +6 -21
  199. package/dist-types/commands/ListFunctionsCommand.d.ts +6 -21
  200. package/dist-types/commands/ListLayerVersionsCommand.d.ts +6 -21
  201. package/dist-types/commands/ListLayersCommand.d.ts +6 -21
  202. package/dist-types/commands/ListProvisionedConcurrencyConfigsCommand.d.ts +6 -21
  203. package/dist-types/commands/ListTagsCommand.d.ts +6 -21
  204. package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +6 -21
  205. package/dist-types/commands/PublishLayerVersionCommand.d.ts +6 -21
  206. package/dist-types/commands/PublishVersionCommand.d.ts +6 -21
  207. package/dist-types/commands/PutFunctionCodeSigningConfigCommand.d.ts +6 -21
  208. package/dist-types/commands/PutFunctionConcurrencyCommand.d.ts +6 -21
  209. package/dist-types/commands/PutFunctionEventInvokeConfigCommand.d.ts +6 -21
  210. package/dist-types/commands/PutProvisionedConcurrencyConfigCommand.d.ts +6 -21
  211. package/dist-types/commands/PutRuntimeManagementConfigCommand.d.ts +6 -21
  212. package/dist-types/commands/RemoveLayerVersionPermissionCommand.d.ts +6 -21
  213. package/dist-types/commands/RemovePermissionCommand.d.ts +6 -21
  214. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  215. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  216. package/dist-types/commands/UpdateAliasCommand.d.ts +6 -21
  217. package/dist-types/commands/UpdateCodeSigningConfigCommand.d.ts +6 -21
  218. package/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +6 -21
  219. package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +6 -21
  220. package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +6 -21
  221. package/dist-types/commands/UpdateFunctionEventInvokeConfigCommand.d.ts +6 -21
  222. package/dist-types/commands/UpdateFunctionUrlConfigCommand.d.ts +6 -21
  223. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  224. package/dist-types/pagination/ListAliasesPaginator.d.ts +1 -1
  225. package/dist-types/pagination/ListCodeSigningConfigsPaginator.d.ts +1 -1
  226. package/dist-types/pagination/ListEventSourceMappingsPaginator.d.ts +1 -1
  227. package/dist-types/pagination/ListFunctionEventInvokeConfigsPaginator.d.ts +1 -1
  228. package/dist-types/pagination/ListFunctionUrlConfigsPaginator.d.ts +1 -1
  229. package/dist-types/pagination/ListFunctionsByCodeSigningConfigPaginator.d.ts +1 -1
  230. package/dist-types/pagination/ListFunctionsPaginator.d.ts +1 -1
  231. package/dist-types/pagination/ListLayerVersionsPaginator.d.ts +1 -1
  232. package/dist-types/pagination/ListLayersPaginator.d.ts +1 -1
  233. package/dist-types/pagination/ListProvisionedConcurrencyConfigsPaginator.d.ts +1 -1
  234. package/dist-types/pagination/ListVersionsByFunctionPaginator.d.ts +1 -1
  235. package/dist-types/ts3.4/commands/AddLayerVersionPermissionCommand.d.ts +12 -24
  236. package/dist-types/ts3.4/commands/AddPermissionCommand.d.ts +14 -23
  237. package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +14 -23
  238. package/dist-types/ts3.4/commands/CreateCodeSigningConfigCommand.d.ts +12 -24
  239. package/dist-types/ts3.4/commands/CreateEventSourceMappingCommand.d.ts +12 -24
  240. package/dist-types/ts3.4/commands/CreateFunctionCommand.d.ts +14 -23
  241. package/dist-types/ts3.4/commands/CreateFunctionUrlConfigCommand.d.ts +12 -24
  242. package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +14 -23
  243. package/dist-types/ts3.4/commands/DeleteCodeSigningConfigCommand.d.ts +12 -24
  244. package/dist-types/ts3.4/commands/DeleteEventSourceMappingCommand.d.ts +12 -24
  245. package/dist-types/ts3.4/commands/DeleteFunctionCodeSigningConfigCommand.d.ts +12 -24
  246. package/dist-types/ts3.4/commands/DeleteFunctionCommand.d.ts +14 -23
  247. package/dist-types/ts3.4/commands/DeleteFunctionConcurrencyCommand.d.ts +12 -24
  248. package/dist-types/ts3.4/commands/DeleteFunctionEventInvokeConfigCommand.d.ts +12 -24
  249. package/dist-types/ts3.4/commands/DeleteFunctionUrlConfigCommand.d.ts +12 -24
  250. package/dist-types/ts3.4/commands/DeleteLayerVersionCommand.d.ts +14 -23
  251. package/dist-types/ts3.4/commands/DeleteProvisionedConcurrencyConfigCommand.d.ts +12 -24
  252. package/dist-types/ts3.4/commands/GetAccountSettingsCommand.d.ts +14 -23
  253. package/dist-types/ts3.4/commands/GetAliasCommand.d.ts +14 -23
  254. package/dist-types/ts3.4/commands/GetCodeSigningConfigCommand.d.ts +12 -24
  255. package/dist-types/ts3.4/commands/GetEventSourceMappingCommand.d.ts +12 -24
  256. package/dist-types/ts3.4/commands/GetFunctionCodeSigningConfigCommand.d.ts +12 -24
  257. package/dist-types/ts3.4/commands/GetFunctionCommand.d.ts +14 -23
  258. package/dist-types/ts3.4/commands/GetFunctionConcurrencyCommand.d.ts +12 -24
  259. package/dist-types/ts3.4/commands/GetFunctionConfigurationCommand.d.ts +12 -24
  260. package/dist-types/ts3.4/commands/GetFunctionEventInvokeConfigCommand.d.ts +12 -24
  261. package/dist-types/ts3.4/commands/GetFunctionUrlConfigCommand.d.ts +12 -24
  262. package/dist-types/ts3.4/commands/GetLayerVersionByArnCommand.d.ts +12 -24
  263. package/dist-types/ts3.4/commands/GetLayerVersionCommand.d.ts +14 -23
  264. package/dist-types/ts3.4/commands/GetLayerVersionPolicyCommand.d.ts +12 -24
  265. package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +14 -23
  266. package/dist-types/ts3.4/commands/GetProvisionedConcurrencyConfigCommand.d.ts +12 -24
  267. package/dist-types/ts3.4/commands/GetRuntimeManagementConfigCommand.d.ts +12 -24
  268. package/dist-types/ts3.4/commands/InvokeAsyncCommand.d.ts +13 -20
  269. package/dist-types/ts3.4/commands/InvokeCommand.d.ts +11 -20
  270. package/dist-types/ts3.4/commands/InvokeWithResponseStreamCommand.d.ts +11 -21
  271. package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +14 -23
  272. package/dist-types/ts3.4/commands/ListCodeSigningConfigsCommand.d.ts +12 -24
  273. package/dist-types/ts3.4/commands/ListEventSourceMappingsCommand.d.ts +12 -24
  274. package/dist-types/ts3.4/commands/ListFunctionEventInvokeConfigsCommand.d.ts +12 -24
  275. package/dist-types/ts3.4/commands/ListFunctionUrlConfigsCommand.d.ts +12 -24
  276. package/dist-types/ts3.4/commands/ListFunctionsByCodeSigningConfigCommand.d.ts +12 -24
  277. package/dist-types/ts3.4/commands/ListFunctionsCommand.d.ts +14 -23
  278. package/dist-types/ts3.4/commands/ListLayerVersionsCommand.d.ts +14 -23
  279. package/dist-types/ts3.4/commands/ListLayersCommand.d.ts +14 -23
  280. package/dist-types/ts3.4/commands/ListProvisionedConcurrencyConfigsCommand.d.ts +12 -24
  281. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +14 -23
  282. package/dist-types/ts3.4/commands/ListVersionsByFunctionCommand.d.ts +12 -24
  283. package/dist-types/ts3.4/commands/PublishLayerVersionCommand.d.ts +14 -23
  284. package/dist-types/ts3.4/commands/PublishVersionCommand.d.ts +14 -23
  285. package/dist-types/ts3.4/commands/PutFunctionCodeSigningConfigCommand.d.ts +12 -24
  286. package/dist-types/ts3.4/commands/PutFunctionConcurrencyCommand.d.ts +12 -24
  287. package/dist-types/ts3.4/commands/PutFunctionEventInvokeConfigCommand.d.ts +12 -24
  288. package/dist-types/ts3.4/commands/PutProvisionedConcurrencyConfigCommand.d.ts +12 -24
  289. package/dist-types/ts3.4/commands/PutRuntimeManagementConfigCommand.d.ts +12 -24
  290. package/dist-types/ts3.4/commands/RemoveLayerVersionPermissionCommand.d.ts +12 -24
  291. package/dist-types/ts3.4/commands/RemovePermissionCommand.d.ts +14 -23
  292. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  293. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  294. package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +14 -23
  295. package/dist-types/ts3.4/commands/UpdateCodeSigningConfigCommand.d.ts +12 -24
  296. package/dist-types/ts3.4/commands/UpdateEventSourceMappingCommand.d.ts +12 -24
  297. package/dist-types/ts3.4/commands/UpdateFunctionCodeCommand.d.ts +14 -23
  298. package/dist-types/ts3.4/commands/UpdateFunctionConfigurationCommand.d.ts +12 -24
  299. package/dist-types/ts3.4/commands/UpdateFunctionEventInvokeConfigCommand.d.ts +12 -24
  300. package/dist-types/ts3.4/commands/UpdateFunctionUrlConfigCommand.d.ts +12 -24
  301. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  302. package/dist-types/ts3.4/pagination/ListAliasesPaginator.d.ts +3 -3
  303. package/dist-types/ts3.4/pagination/ListCodeSigningConfigsPaginator.d.ts +3 -3
  304. package/dist-types/ts3.4/pagination/ListEventSourceMappingsPaginator.d.ts +3 -3
  305. package/dist-types/ts3.4/pagination/ListFunctionEventInvokeConfigsPaginator.d.ts +3 -3
  306. package/dist-types/ts3.4/pagination/ListFunctionUrlConfigsPaginator.d.ts +3 -3
  307. package/dist-types/ts3.4/pagination/ListFunctionsByCodeSigningConfigPaginator.d.ts +3 -3
  308. package/dist-types/ts3.4/pagination/ListFunctionsPaginator.d.ts +3 -3
  309. package/dist-types/ts3.4/pagination/ListLayerVersionsPaginator.d.ts +3 -3
  310. package/dist-types/ts3.4/pagination/ListLayersPaginator.d.ts +3 -3
  311. package/dist-types/ts3.4/pagination/ListProvisionedConcurrencyConfigsPaginator.d.ts +3 -3
  312. package/dist-types/ts3.4/pagination/ListVersionsByFunctionPaginator.d.ts +3 -3
  313. package/package.json +11 -11
@@ -1,48 +1,25 @@
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 { FunctionConfigurationFilterSensitiveLog, UpdateFunctionConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_UpdateFunctionConfigurationCommand, se_UpdateFunctionConfigurationCommand, } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class UpdateFunctionConfigurationCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateFunctionConfigurationCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "LambdaClient";
27
- const commandName = "UpdateFunctionConfigurationCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: UpdateFunctionConfigurationRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: FunctionConfigurationFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AWSGirApiService",
36
- operation: "UpdateFunctionConfiguration",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_UpdateFunctionConfigurationCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_UpdateFunctionConfigurationCommand(output, context);
47
- }
8
+ export class UpdateFunctionConfigurationCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AWSGirApiService", "UpdateFunctionConfiguration", {})
20
+ .n("LambdaClient", "UpdateFunctionConfigurationCommand")
21
+ .f(UpdateFunctionConfigurationRequestFilterSensitiveLog, FunctionConfigurationFilterSensitiveLog)
22
+ .ser(se_UpdateFunctionConfigurationCommand)
23
+ .de(de_UpdateFunctionConfigurationCommand)
24
+ .build() {
48
25
  }
@@ -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_UpdateFunctionEventInvokeConfigCommand, se_UpdateFunctionEventInvokeConfigCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateFunctionEventInvokeConfigCommand 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, UpdateFunctionEventInvokeConfigCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "LambdaClient";
26
- const commandName = "UpdateFunctionEventInvokeConfigCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSGirApiService",
35
- operation: "UpdateFunctionEventInvokeConfig",
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_UpdateFunctionEventInvokeConfigCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateFunctionEventInvokeConfigCommand(output, context);
46
- }
7
+ export class UpdateFunctionEventInvokeConfigCommand 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("AWSGirApiService", "UpdateFunctionEventInvokeConfig", {})
19
+ .n("LambdaClient", "UpdateFunctionEventInvokeConfigCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateFunctionEventInvokeConfigCommand)
22
+ .de(de_UpdateFunctionEventInvokeConfigCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateFunctionUrlConfigCommand, se_UpdateFunctionUrlConfigCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateFunctionUrlConfigCommand 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, UpdateFunctionUrlConfigCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "LambdaClient";
26
- const commandName = "UpdateFunctionUrlConfigCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSGirApiService",
35
- operation: "UpdateFunctionUrlConfig",
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_UpdateFunctionUrlConfigCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateFunctionUrlConfigCommand(output, context);
46
- }
7
+ export class UpdateFunctionUrlConfigCommand 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("AWSGirApiService", "UpdateFunctionUrlConfig", {})
19
+ .n("LambdaClient", "UpdateFunctionUrlConfigCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateFunctionUrlConfigCommand)
22
+ .de(de_UpdateFunctionUrlConfigCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "lambda",
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 { ListAliasesCommand } from "../commands/ListAliasesCommand";
2
3
  import { LambdaClient } from "../LambdaClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAliasesCommand(input), ...args);
5
- };
6
- export async function* paginateListAliases(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.Marker = token;
12
- input["MaxItems"] = config.pageSize;
13
- if (config.client instanceof LambdaClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Lambda | LambdaClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextMarker;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListAliases = createPaginator(LambdaClient, ListAliasesCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListCodeSigningConfigsCommand, } from "../commands/ListCodeSigningConfigsCommand";
2
3
  import { LambdaClient } from "../LambdaClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListCodeSigningConfigsCommand(input), ...args);
5
- };
6
- export async function* paginateListCodeSigningConfigs(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.Marker = token;
12
- input["MaxItems"] = config.pageSize;
13
- if (config.client instanceof LambdaClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Lambda | LambdaClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextMarker;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListCodeSigningConfigs = createPaginator(LambdaClient, ListCodeSigningConfigsCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListEventSourceMappingsCommand, } from "../commands/ListEventSourceMappingsCommand";
2
3
  import { LambdaClient } from "../LambdaClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListEventSourceMappingsCommand(input), ...args);
5
- };
6
- export async function* paginateListEventSourceMappings(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.Marker = token;
12
- input["MaxItems"] = config.pageSize;
13
- if (config.client instanceof LambdaClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Lambda | LambdaClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextMarker;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListEventSourceMappings = createPaginator(LambdaClient, ListEventSourceMappingsCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListFunctionEventInvokeConfigsCommand, } from "../commands/ListFunctionEventInvokeConfigsCommand";
2
3
  import { LambdaClient } from "../LambdaClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListFunctionEventInvokeConfigsCommand(input), ...args);
5
- };
6
- export async function* paginateListFunctionEventInvokeConfigs(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.Marker = token;
12
- input["MaxItems"] = config.pageSize;
13
- if (config.client instanceof LambdaClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Lambda | LambdaClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextMarker;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListFunctionEventInvokeConfigs = createPaginator(LambdaClient, ListFunctionEventInvokeConfigsCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListFunctionUrlConfigsCommand, } from "../commands/ListFunctionUrlConfigsCommand";
2
3
  import { LambdaClient } from "../LambdaClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListFunctionUrlConfigsCommand(input), ...args);
5
- };
6
- export async function* paginateListFunctionUrlConfigs(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.Marker = token;
12
- input["MaxItems"] = config.pageSize;
13
- if (config.client instanceof LambdaClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Lambda | LambdaClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextMarker;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListFunctionUrlConfigs = createPaginator(LambdaClient, ListFunctionUrlConfigsCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListFunctionsByCodeSigningConfigCommand, } from "../commands/ListFunctionsByCodeSigningConfigCommand";
2
3
  import { LambdaClient } from "../LambdaClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListFunctionsByCodeSigningConfigCommand(input), ...args);
5
- };
6
- export async function* paginateListFunctionsByCodeSigningConfig(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.Marker = token;
12
- input["MaxItems"] = config.pageSize;
13
- if (config.client instanceof LambdaClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Lambda | LambdaClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextMarker;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListFunctionsByCodeSigningConfig = createPaginator(LambdaClient, ListFunctionsByCodeSigningConfigCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListFunctionsCommand, } from "../commands/ListFunctionsCommand";
2
3
  import { LambdaClient } from "../LambdaClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListFunctionsCommand(input), ...args);
5
- };
6
- export async function* paginateListFunctions(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.Marker = token;
12
- input["MaxItems"] = config.pageSize;
13
- if (config.client instanceof LambdaClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Lambda | LambdaClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextMarker;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListFunctions = createPaginator(LambdaClient, ListFunctionsCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListLayerVersionsCommand, } from "../commands/ListLayerVersionsCommand";
2
3
  import { LambdaClient } from "../LambdaClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListLayerVersionsCommand(input), ...args);
5
- };
6
- export async function* paginateListLayerVersions(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.Marker = token;
12
- input["MaxItems"] = config.pageSize;
13
- if (config.client instanceof LambdaClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Lambda | LambdaClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextMarker;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListLayerVersions = createPaginator(LambdaClient, ListLayerVersionsCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListLayersCommand } from "../commands/ListLayersCommand";
2
3
  import { LambdaClient } from "../LambdaClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListLayersCommand(input), ...args);
5
- };
6
- export async function* paginateListLayers(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.Marker = token;
12
- input["MaxItems"] = config.pageSize;
13
- if (config.client instanceof LambdaClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Lambda | LambdaClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextMarker;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListLayers = createPaginator(LambdaClient, ListLayersCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListProvisionedConcurrencyConfigsCommand, } from "../commands/ListProvisionedConcurrencyConfigsCommand";
2
3
  import { LambdaClient } from "../LambdaClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListProvisionedConcurrencyConfigsCommand(input), ...args);
5
- };
6
- export async function* paginateListProvisionedConcurrencyConfigs(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.Marker = token;
12
- input["MaxItems"] = config.pageSize;
13
- if (config.client instanceof LambdaClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Lambda | LambdaClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextMarker;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListProvisionedConcurrencyConfigs = createPaginator(LambdaClient, ListProvisionedConcurrencyConfigsCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListVersionsByFunctionCommand, } from "../commands/ListVersionsByFunctionCommand";
2
3
  import { LambdaClient } from "../LambdaClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListVersionsByFunctionCommand(input), ...args);
5
- };
6
- export async function* paginateListVersionsByFunction(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.Marker = token;
12
- input["MaxItems"] = config.pageSize;
13
- if (config.client instanceof LambdaClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Lambda | LambdaClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextMarker;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListVersionsByFunction = createPaginator(LambdaClient, ListVersionsByFunctionCommand, "Marker", "NextMarker", "MaxItems");
@@ -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 { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
5
4
  import { AddLayerVersionPermissionRequest, AddLayerVersionPermissionResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AddLayerVersionPermissionCommandInput extends AddLayerVersionPe
21
20
  */
22
21
  export interface AddLayerVersionPermissionCommandOutput extends AddLayerVersionPermissionResponse, __MetadataBearer {
23
22
  }
23
+ declare const AddLayerVersionPermissionCommand_base: {
24
+ new (input: AddLayerVersionPermissionCommandInput): import("@smithy/smithy-client").CommandImpl<AddLayerVersionPermissionCommandInput, AddLayerVersionPermissionCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Adds permissions to the resource-based policy of a version of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda
@@ -85,23 +88,5 @@ export interface AddLayerVersionPermissionCommandOutput extends AddLayerVersionP
85
88
  * <p>Base exception class for all service exceptions from Lambda service.</p>
86
89
  *
87
90
  */
88
- export declare class AddLayerVersionPermissionCommand extends $Command<AddLayerVersionPermissionCommandInput, AddLayerVersionPermissionCommandOutput, LambdaClientResolvedConfig> {
89
- readonly input: AddLayerVersionPermissionCommandInput;
90
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
91
- /**
92
- * @public
93
- */
94
- constructor(input: AddLayerVersionPermissionCommandInput);
95
- /**
96
- * @internal
97
- */
98
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AddLayerVersionPermissionCommandInput, AddLayerVersionPermissionCommandOutput>;
99
- /**
100
- * @internal
101
- */
102
- private serialize;
103
- /**
104
- * @internal
105
- */
106
- private deserialize;
91
+ export declare class AddLayerVersionPermissionCommand extends AddLayerVersionPermissionCommand_base {
107
92
  }
@@ -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 { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
5
4
  import { AddPermissionRequest, AddPermissionResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AddPermissionCommandInput extends AddPermissionRequest {
21
20
  */
22
21
  export interface AddPermissionCommandOutput extends AddPermissionResponse, __MetadataBearer {
23
22
  }
23
+ declare const AddPermissionCommand_base: {
24
+ new (input: AddPermissionCommandInput): import("@smithy/smithy-client").CommandImpl<AddPermissionCommandInput, AddPermissionCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Grants an Amazon Web Service, Amazon Web Services account, or Amazon Web Services organization
@@ -95,23 +98,5 @@ export interface AddPermissionCommandOutput extends AddPermissionResponse, __Met
95
98
  * <p>Base exception class for all service exceptions from Lambda service.</p>
96
99
  *
97
100
  */
98
- export declare class AddPermissionCommand extends $Command<AddPermissionCommandInput, AddPermissionCommandOutput, LambdaClientResolvedConfig> {
99
- readonly input: AddPermissionCommandInput;
100
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
101
- /**
102
- * @public
103
- */
104
- constructor(input: AddPermissionCommandInput);
105
- /**
106
- * @internal
107
- */
108
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AddPermissionCommandInput, AddPermissionCommandOutput>;
109
- /**
110
- * @internal
111
- */
112
- private serialize;
113
- /**
114
- * @internal
115
- */
116
- private deserialize;
101
+ export declare class AddPermissionCommand extends AddPermissionCommand_base {
117
102
  }