@aws-sdk/client-lambda 3.35.0 → 3.36.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 (421) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/Lambda.js +0 -1
  3. package/dist-cjs/LambdaClient.js +0 -1
  4. package/dist-cjs/commands/AddLayerVersionPermissionCommand.js +0 -1
  5. package/dist-cjs/commands/AddPermissionCommand.js +0 -1
  6. package/dist-cjs/commands/CreateAliasCommand.js +0 -1
  7. package/dist-cjs/commands/CreateCodeSigningConfigCommand.js +0 -1
  8. package/dist-cjs/commands/CreateEventSourceMappingCommand.js +0 -1
  9. package/dist-cjs/commands/CreateFunctionCommand.js +0 -1
  10. package/dist-cjs/commands/DeleteAliasCommand.js +0 -1
  11. package/dist-cjs/commands/DeleteCodeSigningConfigCommand.js +0 -1
  12. package/dist-cjs/commands/DeleteEventSourceMappingCommand.js +0 -1
  13. package/dist-cjs/commands/DeleteFunctionCodeSigningConfigCommand.js +0 -1
  14. package/dist-cjs/commands/DeleteFunctionCommand.js +0 -1
  15. package/dist-cjs/commands/DeleteFunctionConcurrencyCommand.js +0 -1
  16. package/dist-cjs/commands/DeleteFunctionEventInvokeConfigCommand.js +0 -1
  17. package/dist-cjs/commands/DeleteLayerVersionCommand.js +0 -1
  18. package/dist-cjs/commands/DeleteProvisionedConcurrencyConfigCommand.js +0 -1
  19. package/dist-cjs/commands/GetAccountSettingsCommand.js +0 -1
  20. package/dist-cjs/commands/GetAliasCommand.js +0 -1
  21. package/dist-cjs/commands/GetCodeSigningConfigCommand.js +0 -1
  22. package/dist-cjs/commands/GetEventSourceMappingCommand.js +0 -1
  23. package/dist-cjs/commands/GetFunctionCodeSigningConfigCommand.js +0 -1
  24. package/dist-cjs/commands/GetFunctionCommand.js +0 -1
  25. package/dist-cjs/commands/GetFunctionConcurrencyCommand.js +0 -1
  26. package/dist-cjs/commands/GetFunctionConfigurationCommand.js +0 -1
  27. package/dist-cjs/commands/GetFunctionEventInvokeConfigCommand.js +0 -1
  28. package/dist-cjs/commands/GetLayerVersionByArnCommand.js +0 -1
  29. package/dist-cjs/commands/GetLayerVersionCommand.js +0 -1
  30. package/dist-cjs/commands/GetLayerVersionPolicyCommand.js +0 -1
  31. package/dist-cjs/commands/GetPolicyCommand.js +0 -1
  32. package/dist-cjs/commands/GetProvisionedConcurrencyConfigCommand.js +0 -1
  33. package/dist-cjs/commands/InvokeAsyncCommand.js +0 -1
  34. package/dist-cjs/commands/InvokeCommand.js +0 -1
  35. package/dist-cjs/commands/ListAliasesCommand.js +0 -1
  36. package/dist-cjs/commands/ListCodeSigningConfigsCommand.js +0 -1
  37. package/dist-cjs/commands/ListEventSourceMappingsCommand.js +0 -1
  38. package/dist-cjs/commands/ListFunctionEventInvokeConfigsCommand.js +0 -1
  39. package/dist-cjs/commands/ListFunctionsByCodeSigningConfigCommand.js +0 -1
  40. package/dist-cjs/commands/ListFunctionsCommand.js +0 -1
  41. package/dist-cjs/commands/ListLayerVersionsCommand.js +0 -1
  42. package/dist-cjs/commands/ListLayersCommand.js +0 -1
  43. package/dist-cjs/commands/ListProvisionedConcurrencyConfigsCommand.js +0 -1
  44. package/dist-cjs/commands/ListTagsCommand.js +0 -1
  45. package/dist-cjs/commands/ListVersionsByFunctionCommand.js +0 -1
  46. package/dist-cjs/commands/PublishLayerVersionCommand.js +0 -1
  47. package/dist-cjs/commands/PublishVersionCommand.js +0 -1
  48. package/dist-cjs/commands/PutFunctionCodeSigningConfigCommand.js +0 -1
  49. package/dist-cjs/commands/PutFunctionConcurrencyCommand.js +0 -1
  50. package/dist-cjs/commands/PutFunctionEventInvokeConfigCommand.js +0 -1
  51. package/dist-cjs/commands/PutProvisionedConcurrencyConfigCommand.js +0 -1
  52. package/dist-cjs/commands/RemoveLayerVersionPermissionCommand.js +0 -1
  53. package/dist-cjs/commands/RemovePermissionCommand.js +0 -1
  54. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  55. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  56. package/dist-cjs/commands/UpdateAliasCommand.js +0 -1
  57. package/dist-cjs/commands/UpdateCodeSigningConfigCommand.js +0 -1
  58. package/dist-cjs/commands/UpdateEventSourceMappingCommand.js +0 -1
  59. package/dist-cjs/commands/UpdateFunctionCodeCommand.js +0 -1
  60. package/dist-cjs/commands/UpdateFunctionConfigurationCommand.js +0 -1
  61. package/dist-cjs/commands/UpdateFunctionEventInvokeConfigCommand.js +0 -1
  62. package/dist-cjs/endpoints.js +0 -1
  63. package/dist-cjs/index.js +0 -1
  64. package/dist-cjs/models/index.js +0 -1
  65. package/dist-cjs/models/models_0.js +0 -1
  66. package/dist-cjs/pagination/Interfaces.js +0 -1
  67. package/dist-cjs/pagination/ListAliasesPaginator.js +0 -1
  68. package/dist-cjs/pagination/ListCodeSigningConfigsPaginator.js +0 -1
  69. package/dist-cjs/pagination/ListEventSourceMappingsPaginator.js +0 -1
  70. package/dist-cjs/pagination/ListFunctionEventInvokeConfigsPaginator.js +0 -1
  71. package/dist-cjs/pagination/ListFunctionsByCodeSigningConfigPaginator.js +0 -1
  72. package/dist-cjs/pagination/ListFunctionsPaginator.js +0 -1
  73. package/dist-cjs/pagination/ListLayerVersionsPaginator.js +0 -1
  74. package/dist-cjs/pagination/ListLayersPaginator.js +0 -1
  75. package/dist-cjs/pagination/ListProvisionedConcurrencyConfigsPaginator.js +0 -1
  76. package/dist-cjs/pagination/ListVersionsByFunctionPaginator.js +0 -1
  77. package/dist-cjs/protocols/Aws_restJson1.js +0 -1
  78. package/dist-cjs/runtimeConfig.browser.js +2 -3
  79. package/dist-cjs/runtimeConfig.js +3 -4
  80. package/dist-cjs/runtimeConfig.native.js +0 -1
  81. package/dist-cjs/runtimeConfig.shared.js +0 -1
  82. package/dist-cjs/waiters/waitForFunctionActive.js +0 -1
  83. package/dist-cjs/waiters/waitForFunctionExists.js +0 -1
  84. package/dist-cjs/waiters/waitForFunctionUpdated.js +0 -1
  85. package/dist-es/Lambda.js +0 -1
  86. package/dist-es/LambdaClient.js +0 -1
  87. package/dist-es/commands/AddLayerVersionPermissionCommand.js +0 -1
  88. package/dist-es/commands/AddPermissionCommand.js +0 -1
  89. package/dist-es/commands/CreateAliasCommand.js +0 -1
  90. package/dist-es/commands/CreateCodeSigningConfigCommand.js +0 -1
  91. package/dist-es/commands/CreateEventSourceMappingCommand.js +0 -1
  92. package/dist-es/commands/CreateFunctionCommand.js +0 -1
  93. package/dist-es/commands/DeleteAliasCommand.js +0 -1
  94. package/dist-es/commands/DeleteCodeSigningConfigCommand.js +0 -1
  95. package/dist-es/commands/DeleteEventSourceMappingCommand.js +0 -1
  96. package/dist-es/commands/DeleteFunctionCodeSigningConfigCommand.js +0 -1
  97. package/dist-es/commands/DeleteFunctionCommand.js +0 -1
  98. package/dist-es/commands/DeleteFunctionConcurrencyCommand.js +0 -1
  99. package/dist-es/commands/DeleteFunctionEventInvokeConfigCommand.js +0 -1
  100. package/dist-es/commands/DeleteLayerVersionCommand.js +0 -1
  101. package/dist-es/commands/DeleteProvisionedConcurrencyConfigCommand.js +0 -1
  102. package/dist-es/commands/GetAccountSettingsCommand.js +0 -1
  103. package/dist-es/commands/GetAliasCommand.js +0 -1
  104. package/dist-es/commands/GetCodeSigningConfigCommand.js +0 -1
  105. package/dist-es/commands/GetEventSourceMappingCommand.js +0 -1
  106. package/dist-es/commands/GetFunctionCodeSigningConfigCommand.js +0 -1
  107. package/dist-es/commands/GetFunctionCommand.js +0 -1
  108. package/dist-es/commands/GetFunctionConcurrencyCommand.js +0 -1
  109. package/dist-es/commands/GetFunctionConfigurationCommand.js +0 -1
  110. package/dist-es/commands/GetFunctionEventInvokeConfigCommand.js +0 -1
  111. package/dist-es/commands/GetLayerVersionByArnCommand.js +0 -1
  112. package/dist-es/commands/GetLayerVersionCommand.js +0 -1
  113. package/dist-es/commands/GetLayerVersionPolicyCommand.js +0 -1
  114. package/dist-es/commands/GetPolicyCommand.js +0 -1
  115. package/dist-es/commands/GetProvisionedConcurrencyConfigCommand.js +0 -1
  116. package/dist-es/commands/InvokeAsyncCommand.js +0 -1
  117. package/dist-es/commands/InvokeCommand.js +0 -1
  118. package/dist-es/commands/ListAliasesCommand.js +0 -1
  119. package/dist-es/commands/ListCodeSigningConfigsCommand.js +0 -1
  120. package/dist-es/commands/ListEventSourceMappingsCommand.js +0 -1
  121. package/dist-es/commands/ListFunctionEventInvokeConfigsCommand.js +0 -1
  122. package/dist-es/commands/ListFunctionsByCodeSigningConfigCommand.js +0 -1
  123. package/dist-es/commands/ListFunctionsCommand.js +0 -1
  124. package/dist-es/commands/ListLayerVersionsCommand.js +0 -1
  125. package/dist-es/commands/ListLayersCommand.js +0 -1
  126. package/dist-es/commands/ListProvisionedConcurrencyConfigsCommand.js +0 -1
  127. package/dist-es/commands/ListTagsCommand.js +0 -1
  128. package/dist-es/commands/ListVersionsByFunctionCommand.js +0 -1
  129. package/dist-es/commands/PublishLayerVersionCommand.js +0 -1
  130. package/dist-es/commands/PublishVersionCommand.js +0 -1
  131. package/dist-es/commands/PutFunctionCodeSigningConfigCommand.js +0 -1
  132. package/dist-es/commands/PutFunctionConcurrencyCommand.js +0 -1
  133. package/dist-es/commands/PutFunctionEventInvokeConfigCommand.js +0 -1
  134. package/dist-es/commands/PutProvisionedConcurrencyConfigCommand.js +0 -1
  135. package/dist-es/commands/RemoveLayerVersionPermissionCommand.js +0 -1
  136. package/dist-es/commands/RemovePermissionCommand.js +0 -1
  137. package/dist-es/commands/TagResourceCommand.js +0 -1
  138. package/dist-es/commands/UntagResourceCommand.js +0 -1
  139. package/dist-es/commands/UpdateAliasCommand.js +0 -1
  140. package/dist-es/commands/UpdateCodeSigningConfigCommand.js +0 -1
  141. package/dist-es/commands/UpdateEventSourceMappingCommand.js +0 -1
  142. package/dist-es/commands/UpdateFunctionCodeCommand.js +0 -1
  143. package/dist-es/commands/UpdateFunctionConfigurationCommand.js +0 -1
  144. package/dist-es/commands/UpdateFunctionEventInvokeConfigCommand.js +0 -1
  145. package/dist-es/endpoints.js +0 -1
  146. package/dist-es/index.js +0 -1
  147. package/dist-es/models/index.js +0 -1
  148. package/dist-es/models/models_0.js +0 -1
  149. package/dist-es/pagination/Interfaces.js +0 -1
  150. package/dist-es/pagination/ListAliasesPaginator.js +0 -1
  151. package/dist-es/pagination/ListCodeSigningConfigsPaginator.js +0 -1
  152. package/dist-es/pagination/ListEventSourceMappingsPaginator.js +0 -1
  153. package/dist-es/pagination/ListFunctionEventInvokeConfigsPaginator.js +0 -1
  154. package/dist-es/pagination/ListFunctionsByCodeSigningConfigPaginator.js +0 -1
  155. package/dist-es/pagination/ListFunctionsPaginator.js +0 -1
  156. package/dist-es/pagination/ListLayerVersionsPaginator.js +0 -1
  157. package/dist-es/pagination/ListLayersPaginator.js +0 -1
  158. package/dist-es/pagination/ListProvisionedConcurrencyConfigsPaginator.js +0 -1
  159. package/dist-es/pagination/ListVersionsByFunctionPaginator.js +0 -1
  160. package/dist-es/protocols/Aws_restJson1.js +0 -1
  161. package/dist-es/runtimeConfig.browser.js +1 -2
  162. package/dist-es/runtimeConfig.js +2 -3
  163. package/dist-es/runtimeConfig.native.js +0 -1
  164. package/dist-es/runtimeConfig.shared.js +0 -1
  165. package/dist-es/waiters/waitForFunctionActive.js +0 -1
  166. package/dist-es/waiters/waitForFunctionExists.js +0 -1
  167. package/dist-es/waiters/waitForFunctionUpdated.js +0 -1
  168. package/package.json +34 -31
  169. package/dist-cjs/Lambda.js.map +0 -1
  170. package/dist-cjs/LambdaClient.js.map +0 -1
  171. package/dist-cjs/commands/AddLayerVersionPermissionCommand.js.map +0 -1
  172. package/dist-cjs/commands/AddPermissionCommand.js.map +0 -1
  173. package/dist-cjs/commands/CreateAliasCommand.js.map +0 -1
  174. package/dist-cjs/commands/CreateCodeSigningConfigCommand.js.map +0 -1
  175. package/dist-cjs/commands/CreateEventSourceMappingCommand.js.map +0 -1
  176. package/dist-cjs/commands/CreateFunctionCommand.js.map +0 -1
  177. package/dist-cjs/commands/DeleteAliasCommand.js.map +0 -1
  178. package/dist-cjs/commands/DeleteCodeSigningConfigCommand.js.map +0 -1
  179. package/dist-cjs/commands/DeleteEventSourceMappingCommand.js.map +0 -1
  180. package/dist-cjs/commands/DeleteFunctionCodeSigningConfigCommand.js.map +0 -1
  181. package/dist-cjs/commands/DeleteFunctionCommand.js.map +0 -1
  182. package/dist-cjs/commands/DeleteFunctionConcurrencyCommand.js.map +0 -1
  183. package/dist-cjs/commands/DeleteFunctionEventInvokeConfigCommand.js.map +0 -1
  184. package/dist-cjs/commands/DeleteLayerVersionCommand.js.map +0 -1
  185. package/dist-cjs/commands/DeleteProvisionedConcurrencyConfigCommand.js.map +0 -1
  186. package/dist-cjs/commands/GetAccountSettingsCommand.js.map +0 -1
  187. package/dist-cjs/commands/GetAliasCommand.js.map +0 -1
  188. package/dist-cjs/commands/GetCodeSigningConfigCommand.js.map +0 -1
  189. package/dist-cjs/commands/GetEventSourceMappingCommand.js.map +0 -1
  190. package/dist-cjs/commands/GetFunctionCodeSigningConfigCommand.js.map +0 -1
  191. package/dist-cjs/commands/GetFunctionCommand.js.map +0 -1
  192. package/dist-cjs/commands/GetFunctionConcurrencyCommand.js.map +0 -1
  193. package/dist-cjs/commands/GetFunctionConfigurationCommand.js.map +0 -1
  194. package/dist-cjs/commands/GetFunctionEventInvokeConfigCommand.js.map +0 -1
  195. package/dist-cjs/commands/GetLayerVersionByArnCommand.js.map +0 -1
  196. package/dist-cjs/commands/GetLayerVersionCommand.js.map +0 -1
  197. package/dist-cjs/commands/GetLayerVersionPolicyCommand.js.map +0 -1
  198. package/dist-cjs/commands/GetPolicyCommand.js.map +0 -1
  199. package/dist-cjs/commands/GetProvisionedConcurrencyConfigCommand.js.map +0 -1
  200. package/dist-cjs/commands/InvokeAsyncCommand.js.map +0 -1
  201. package/dist-cjs/commands/InvokeCommand.js.map +0 -1
  202. package/dist-cjs/commands/ListAliasesCommand.js.map +0 -1
  203. package/dist-cjs/commands/ListCodeSigningConfigsCommand.js.map +0 -1
  204. package/dist-cjs/commands/ListEventSourceMappingsCommand.js.map +0 -1
  205. package/dist-cjs/commands/ListFunctionEventInvokeConfigsCommand.js.map +0 -1
  206. package/dist-cjs/commands/ListFunctionsByCodeSigningConfigCommand.js.map +0 -1
  207. package/dist-cjs/commands/ListFunctionsCommand.js.map +0 -1
  208. package/dist-cjs/commands/ListLayerVersionsCommand.js.map +0 -1
  209. package/dist-cjs/commands/ListLayersCommand.js.map +0 -1
  210. package/dist-cjs/commands/ListProvisionedConcurrencyConfigsCommand.js.map +0 -1
  211. package/dist-cjs/commands/ListTagsCommand.js.map +0 -1
  212. package/dist-cjs/commands/ListVersionsByFunctionCommand.js.map +0 -1
  213. package/dist-cjs/commands/PublishLayerVersionCommand.js.map +0 -1
  214. package/dist-cjs/commands/PublishVersionCommand.js.map +0 -1
  215. package/dist-cjs/commands/PutFunctionCodeSigningConfigCommand.js.map +0 -1
  216. package/dist-cjs/commands/PutFunctionConcurrencyCommand.js.map +0 -1
  217. package/dist-cjs/commands/PutFunctionEventInvokeConfigCommand.js.map +0 -1
  218. package/dist-cjs/commands/PutProvisionedConcurrencyConfigCommand.js.map +0 -1
  219. package/dist-cjs/commands/RemoveLayerVersionPermissionCommand.js.map +0 -1
  220. package/dist-cjs/commands/RemovePermissionCommand.js.map +0 -1
  221. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  222. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  223. package/dist-cjs/commands/UpdateAliasCommand.js.map +0 -1
  224. package/dist-cjs/commands/UpdateCodeSigningConfigCommand.js.map +0 -1
  225. package/dist-cjs/commands/UpdateEventSourceMappingCommand.js.map +0 -1
  226. package/dist-cjs/commands/UpdateFunctionCodeCommand.js.map +0 -1
  227. package/dist-cjs/commands/UpdateFunctionConfigurationCommand.js.map +0 -1
  228. package/dist-cjs/commands/UpdateFunctionEventInvokeConfigCommand.js.map +0 -1
  229. package/dist-cjs/endpoints.js.map +0 -1
  230. package/dist-cjs/index.js.map +0 -1
  231. package/dist-cjs/models/index.js.map +0 -1
  232. package/dist-cjs/models/models_0.js.map +0 -1
  233. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  234. package/dist-cjs/pagination/ListAliasesPaginator.js.map +0 -1
  235. package/dist-cjs/pagination/ListCodeSigningConfigsPaginator.js.map +0 -1
  236. package/dist-cjs/pagination/ListEventSourceMappingsPaginator.js.map +0 -1
  237. package/dist-cjs/pagination/ListFunctionEventInvokeConfigsPaginator.js.map +0 -1
  238. package/dist-cjs/pagination/ListFunctionsByCodeSigningConfigPaginator.js.map +0 -1
  239. package/dist-cjs/pagination/ListFunctionsPaginator.js.map +0 -1
  240. package/dist-cjs/pagination/ListLayerVersionsPaginator.js.map +0 -1
  241. package/dist-cjs/pagination/ListLayersPaginator.js.map +0 -1
  242. package/dist-cjs/pagination/ListProvisionedConcurrencyConfigsPaginator.js.map +0 -1
  243. package/dist-cjs/pagination/ListVersionsByFunctionPaginator.js.map +0 -1
  244. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  245. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  246. package/dist-cjs/runtimeConfig.js.map +0 -1
  247. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  248. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  249. package/dist-cjs/waiters/waitForFunctionActive.js.map +0 -1
  250. package/dist-cjs/waiters/waitForFunctionExists.js.map +0 -1
  251. package/dist-cjs/waiters/waitForFunctionUpdated.js.map +0 -1
  252. package/dist-es/Lambda.js.map +0 -1
  253. package/dist-es/LambdaClient.js.map +0 -1
  254. package/dist-es/commands/AddLayerVersionPermissionCommand.js.map +0 -1
  255. package/dist-es/commands/AddPermissionCommand.js.map +0 -1
  256. package/dist-es/commands/CreateAliasCommand.js.map +0 -1
  257. package/dist-es/commands/CreateCodeSigningConfigCommand.js.map +0 -1
  258. package/dist-es/commands/CreateEventSourceMappingCommand.js.map +0 -1
  259. package/dist-es/commands/CreateFunctionCommand.js.map +0 -1
  260. package/dist-es/commands/DeleteAliasCommand.js.map +0 -1
  261. package/dist-es/commands/DeleteCodeSigningConfigCommand.js.map +0 -1
  262. package/dist-es/commands/DeleteEventSourceMappingCommand.js.map +0 -1
  263. package/dist-es/commands/DeleteFunctionCodeSigningConfigCommand.js.map +0 -1
  264. package/dist-es/commands/DeleteFunctionCommand.js.map +0 -1
  265. package/dist-es/commands/DeleteFunctionConcurrencyCommand.js.map +0 -1
  266. package/dist-es/commands/DeleteFunctionEventInvokeConfigCommand.js.map +0 -1
  267. package/dist-es/commands/DeleteLayerVersionCommand.js.map +0 -1
  268. package/dist-es/commands/DeleteProvisionedConcurrencyConfigCommand.js.map +0 -1
  269. package/dist-es/commands/GetAccountSettingsCommand.js.map +0 -1
  270. package/dist-es/commands/GetAliasCommand.js.map +0 -1
  271. package/dist-es/commands/GetCodeSigningConfigCommand.js.map +0 -1
  272. package/dist-es/commands/GetEventSourceMappingCommand.js.map +0 -1
  273. package/dist-es/commands/GetFunctionCodeSigningConfigCommand.js.map +0 -1
  274. package/dist-es/commands/GetFunctionCommand.js.map +0 -1
  275. package/dist-es/commands/GetFunctionConcurrencyCommand.js.map +0 -1
  276. package/dist-es/commands/GetFunctionConfigurationCommand.js.map +0 -1
  277. package/dist-es/commands/GetFunctionEventInvokeConfigCommand.js.map +0 -1
  278. package/dist-es/commands/GetLayerVersionByArnCommand.js.map +0 -1
  279. package/dist-es/commands/GetLayerVersionCommand.js.map +0 -1
  280. package/dist-es/commands/GetLayerVersionPolicyCommand.js.map +0 -1
  281. package/dist-es/commands/GetPolicyCommand.js.map +0 -1
  282. package/dist-es/commands/GetProvisionedConcurrencyConfigCommand.js.map +0 -1
  283. package/dist-es/commands/InvokeAsyncCommand.js.map +0 -1
  284. package/dist-es/commands/InvokeCommand.js.map +0 -1
  285. package/dist-es/commands/ListAliasesCommand.js.map +0 -1
  286. package/dist-es/commands/ListCodeSigningConfigsCommand.js.map +0 -1
  287. package/dist-es/commands/ListEventSourceMappingsCommand.js.map +0 -1
  288. package/dist-es/commands/ListFunctionEventInvokeConfigsCommand.js.map +0 -1
  289. package/dist-es/commands/ListFunctionsByCodeSigningConfigCommand.js.map +0 -1
  290. package/dist-es/commands/ListFunctionsCommand.js.map +0 -1
  291. package/dist-es/commands/ListLayerVersionsCommand.js.map +0 -1
  292. package/dist-es/commands/ListLayersCommand.js.map +0 -1
  293. package/dist-es/commands/ListProvisionedConcurrencyConfigsCommand.js.map +0 -1
  294. package/dist-es/commands/ListTagsCommand.js.map +0 -1
  295. package/dist-es/commands/ListVersionsByFunctionCommand.js.map +0 -1
  296. package/dist-es/commands/PublishLayerVersionCommand.js.map +0 -1
  297. package/dist-es/commands/PublishVersionCommand.js.map +0 -1
  298. package/dist-es/commands/PutFunctionCodeSigningConfigCommand.js.map +0 -1
  299. package/dist-es/commands/PutFunctionConcurrencyCommand.js.map +0 -1
  300. package/dist-es/commands/PutFunctionEventInvokeConfigCommand.js.map +0 -1
  301. package/dist-es/commands/PutProvisionedConcurrencyConfigCommand.js.map +0 -1
  302. package/dist-es/commands/RemoveLayerVersionPermissionCommand.js.map +0 -1
  303. package/dist-es/commands/RemovePermissionCommand.js.map +0 -1
  304. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  305. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  306. package/dist-es/commands/UpdateAliasCommand.js.map +0 -1
  307. package/dist-es/commands/UpdateCodeSigningConfigCommand.js.map +0 -1
  308. package/dist-es/commands/UpdateEventSourceMappingCommand.js.map +0 -1
  309. package/dist-es/commands/UpdateFunctionCodeCommand.js.map +0 -1
  310. package/dist-es/commands/UpdateFunctionConfigurationCommand.js.map +0 -1
  311. package/dist-es/commands/UpdateFunctionEventInvokeConfigCommand.js.map +0 -1
  312. package/dist-es/endpoints.js.map +0 -1
  313. package/dist-es/index.js.map +0 -1
  314. package/dist-es/models/index.js.map +0 -1
  315. package/dist-es/models/models_0.js.map +0 -1
  316. package/dist-es/pagination/Interfaces.js.map +0 -1
  317. package/dist-es/pagination/ListAliasesPaginator.js.map +0 -1
  318. package/dist-es/pagination/ListCodeSigningConfigsPaginator.js.map +0 -1
  319. package/dist-es/pagination/ListEventSourceMappingsPaginator.js.map +0 -1
  320. package/dist-es/pagination/ListFunctionEventInvokeConfigsPaginator.js.map +0 -1
  321. package/dist-es/pagination/ListFunctionsByCodeSigningConfigPaginator.js.map +0 -1
  322. package/dist-es/pagination/ListFunctionsPaginator.js.map +0 -1
  323. package/dist-es/pagination/ListLayerVersionsPaginator.js.map +0 -1
  324. package/dist-es/pagination/ListLayersPaginator.js.map +0 -1
  325. package/dist-es/pagination/ListProvisionedConcurrencyConfigsPaginator.js.map +0 -1
  326. package/dist-es/pagination/ListVersionsByFunctionPaginator.js.map +0 -1
  327. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  328. package/dist-es/runtimeConfig.browser.js.map +0 -1
  329. package/dist-es/runtimeConfig.js.map +0 -1
  330. package/dist-es/runtimeConfig.native.js.map +0 -1
  331. package/dist-es/runtimeConfig.shared.js.map +0 -1
  332. package/dist-es/waiters/waitForFunctionActive.js.map +0 -1
  333. package/dist-es/waiters/waitForFunctionExists.js.map +0 -1
  334. package/dist-es/waiters/waitForFunctionUpdated.js.map +0 -1
  335. package/jest.config.js +0 -4
  336. package/src/Lambda.ts +0 -2335
  337. package/src/LambdaClient.ts +0 -518
  338. package/src/commands/AddLayerVersionPermissionCommand.ts +0 -103
  339. package/src/commands/AddPermissionCommand.ts +0 -107
  340. package/src/commands/CreateAliasCommand.ts +0 -100
  341. package/src/commands/CreateCodeSigningConfigCommand.ts +0 -97
  342. package/src/commands/CreateEventSourceMappingCommand.ts +0 -159
  343. package/src/commands/CreateFunctionCommand.ts +0 -141
  344. package/src/commands/DeleteAliasCommand.ts +0 -95
  345. package/src/commands/DeleteCodeSigningConfigCommand.ts +0 -96
  346. package/src/commands/DeleteEventSourceMappingCommand.ts +0 -98
  347. package/src/commands/DeleteFunctionCodeSigningConfigCommand.ts +0 -101
  348. package/src/commands/DeleteFunctionCommand.ts +0 -100
  349. package/src/commands/DeleteFunctionConcurrencyCommand.ts +0 -98
  350. package/src/commands/DeleteFunctionEventInvokeConfigCommand.ts +0 -102
  351. package/src/commands/DeleteLayerVersionCommand.ts +0 -97
  352. package/src/commands/DeleteProvisionedConcurrencyConfigCommand.ts +0 -101
  353. package/src/commands/GetAccountSettingsCommand.ts +0 -95
  354. package/src/commands/GetAliasCommand.ts +0 -91
  355. package/src/commands/GetCodeSigningConfigCommand.ts +0 -95
  356. package/src/commands/GetEventSourceMappingCommand.ts +0 -96
  357. package/src/commands/GetFunctionCodeSigningConfigCommand.ts +0 -100
  358. package/src/commands/GetFunctionCommand.ts +0 -97
  359. package/src/commands/GetFunctionConcurrencyCommand.ts +0 -96
  360. package/src/commands/GetFunctionConfigurationCommand.ts +0 -97
  361. package/src/commands/GetFunctionEventInvokeConfigCommand.ts +0 -99
  362. package/src/commands/GetLayerVersionByArnCommand.ts +0 -97
  363. package/src/commands/GetLayerVersionCommand.ts +0 -97
  364. package/src/commands/GetLayerVersionPolicyCommand.ts +0 -96
  365. package/src/commands/GetPolicyCommand.ts +0 -95
  366. package/src/commands/GetProvisionedConcurrencyConfigCommand.ts +0 -103
  367. package/src/commands/InvokeAsyncCommand.ts +0 -109
  368. package/src/commands/InvokeCommand.ts +0 -114
  369. package/src/commands/ListAliasesCommand.ts +0 -96
  370. package/src/commands/ListCodeSigningConfigsCommand.ts +0 -97
  371. package/src/commands/ListEventSourceMappingsCommand.ts +0 -96
  372. package/src/commands/ListFunctionEventInvokeConfigsCommand.ts +0 -104
  373. package/src/commands/ListFunctionsByCodeSigningConfigCommand.ts +0 -104
  374. package/src/commands/ListFunctionsCommand.ts +0 -103
  375. package/src/commands/ListLayerVersionsCommand.ts +0 -98
  376. package/src/commands/ListLayersCommand.ts +0 -100
  377. package/src/commands/ListProvisionedConcurrencyConfigsCommand.ts +0 -106
  378. package/src/commands/ListTagsCommand.ts +0 -92
  379. package/src/commands/ListVersionsByFunctionCommand.ts +0 -96
  380. package/src/commands/PublishLayerVersionCommand.ts +0 -98
  381. package/src/commands/PublishVersionCommand.ts +0 -103
  382. package/src/commands/PutFunctionCodeSigningConfigCommand.ts +0 -101
  383. package/src/commands/PutFunctionConcurrencyCommand.ts +0 -103
  384. package/src/commands/PutFunctionEventInvokeConfigCommand.ts +0 -108
  385. package/src/commands/PutProvisionedConcurrencyConfigCommand.ts +0 -103
  386. package/src/commands/RemoveLayerVersionPermissionCommand.ts +0 -100
  387. package/src/commands/RemovePermissionCommand.ts +0 -96
  388. package/src/commands/TagResourceCommand.ts +0 -95
  389. package/src/commands/UntagResourceCommand.ts +0 -95
  390. package/src/commands/UpdateAliasCommand.ts +0 -95
  391. package/src/commands/UpdateCodeSigningConfigCommand.ts +0 -96
  392. package/src/commands/UpdateEventSourceMappingCommand.ts +0 -120
  393. package/src/commands/UpdateFunctionCodeCommand.ts +0 -103
  394. package/src/commands/UpdateFunctionConfigurationCommand.ts +0 -112
  395. package/src/commands/UpdateFunctionEventInvokeConfigCommand.ts +0 -102
  396. package/src/endpoints.ts +0 -86
  397. package/src/index.ts +0 -75
  398. package/src/models/index.ts +0 -1
  399. package/src/models/models_0.ts +0 -5703
  400. package/src/pagination/Interfaces.ts +0 -8
  401. package/src/pagination/ListAliasesPaginator.ts +0 -55
  402. package/src/pagination/ListCodeSigningConfigsPaginator.ts +0 -59
  403. package/src/pagination/ListEventSourceMappingsPaginator.ts +0 -59
  404. package/src/pagination/ListFunctionEventInvokeConfigsPaginator.ts +0 -59
  405. package/src/pagination/ListFunctionsByCodeSigningConfigPaginator.ts +0 -59
  406. package/src/pagination/ListFunctionsPaginator.ts +0 -59
  407. package/src/pagination/ListLayerVersionsPaginator.ts +0 -59
  408. package/src/pagination/ListLayersPaginator.ts +0 -55
  409. package/src/pagination/ListProvisionedConcurrencyConfigsPaginator.ts +0 -59
  410. package/src/pagination/ListVersionsByFunctionPaginator.ts +0 -59
  411. package/src/protocols/Aws_restJson1.ts +0 -10745
  412. package/src/runtimeConfig.browser.ts +0 -41
  413. package/src/runtimeConfig.native.ts +0 -17
  414. package/src/runtimeConfig.shared.ts +0 -17
  415. package/src/runtimeConfig.ts +0 -46
  416. package/src/waiters/waitForFunctionActive.ts +0 -66
  417. package/src/waiters/waitForFunctionExists.ts +0 -43
  418. package/src/waiters/waitForFunctionUpdated.ts +0 -66
  419. package/tsconfig.es.json +0 -10
  420. package/tsconfig.json +0 -33
  421. package/tsconfig.types.json +0 -9
package/src/Lambda.ts DELETED
@@ -1,2335 +0,0 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
-
3
- import {
4
- AddLayerVersionPermissionCommand,
5
- AddLayerVersionPermissionCommandInput,
6
- AddLayerVersionPermissionCommandOutput,
7
- } from "./commands/AddLayerVersionPermissionCommand";
8
- import {
9
- AddPermissionCommand,
10
- AddPermissionCommandInput,
11
- AddPermissionCommandOutput,
12
- } from "./commands/AddPermissionCommand";
13
- import { CreateAliasCommand, CreateAliasCommandInput, CreateAliasCommandOutput } from "./commands/CreateAliasCommand";
14
- import {
15
- CreateCodeSigningConfigCommand,
16
- CreateCodeSigningConfigCommandInput,
17
- CreateCodeSigningConfigCommandOutput,
18
- } from "./commands/CreateCodeSigningConfigCommand";
19
- import {
20
- CreateEventSourceMappingCommand,
21
- CreateEventSourceMappingCommandInput,
22
- CreateEventSourceMappingCommandOutput,
23
- } from "./commands/CreateEventSourceMappingCommand";
24
- import {
25
- CreateFunctionCommand,
26
- CreateFunctionCommandInput,
27
- CreateFunctionCommandOutput,
28
- } from "./commands/CreateFunctionCommand";
29
- import { DeleteAliasCommand, DeleteAliasCommandInput, DeleteAliasCommandOutput } from "./commands/DeleteAliasCommand";
30
- import {
31
- DeleteCodeSigningConfigCommand,
32
- DeleteCodeSigningConfigCommandInput,
33
- DeleteCodeSigningConfigCommandOutput,
34
- } from "./commands/DeleteCodeSigningConfigCommand";
35
- import {
36
- DeleteEventSourceMappingCommand,
37
- DeleteEventSourceMappingCommandInput,
38
- DeleteEventSourceMappingCommandOutput,
39
- } from "./commands/DeleteEventSourceMappingCommand";
40
- import {
41
- DeleteFunctionCodeSigningConfigCommand,
42
- DeleteFunctionCodeSigningConfigCommandInput,
43
- DeleteFunctionCodeSigningConfigCommandOutput,
44
- } from "./commands/DeleteFunctionCodeSigningConfigCommand";
45
- import {
46
- DeleteFunctionCommand,
47
- DeleteFunctionCommandInput,
48
- DeleteFunctionCommandOutput,
49
- } from "./commands/DeleteFunctionCommand";
50
- import {
51
- DeleteFunctionConcurrencyCommand,
52
- DeleteFunctionConcurrencyCommandInput,
53
- DeleteFunctionConcurrencyCommandOutput,
54
- } from "./commands/DeleteFunctionConcurrencyCommand";
55
- import {
56
- DeleteFunctionEventInvokeConfigCommand,
57
- DeleteFunctionEventInvokeConfigCommandInput,
58
- DeleteFunctionEventInvokeConfigCommandOutput,
59
- } from "./commands/DeleteFunctionEventInvokeConfigCommand";
60
- import {
61
- DeleteLayerVersionCommand,
62
- DeleteLayerVersionCommandInput,
63
- DeleteLayerVersionCommandOutput,
64
- } from "./commands/DeleteLayerVersionCommand";
65
- import {
66
- DeleteProvisionedConcurrencyConfigCommand,
67
- DeleteProvisionedConcurrencyConfigCommandInput,
68
- DeleteProvisionedConcurrencyConfigCommandOutput,
69
- } from "./commands/DeleteProvisionedConcurrencyConfigCommand";
70
- import {
71
- GetAccountSettingsCommand,
72
- GetAccountSettingsCommandInput,
73
- GetAccountSettingsCommandOutput,
74
- } from "./commands/GetAccountSettingsCommand";
75
- import { GetAliasCommand, GetAliasCommandInput, GetAliasCommandOutput } from "./commands/GetAliasCommand";
76
- import {
77
- GetCodeSigningConfigCommand,
78
- GetCodeSigningConfigCommandInput,
79
- GetCodeSigningConfigCommandOutput,
80
- } from "./commands/GetCodeSigningConfigCommand";
81
- import {
82
- GetEventSourceMappingCommand,
83
- GetEventSourceMappingCommandInput,
84
- GetEventSourceMappingCommandOutput,
85
- } from "./commands/GetEventSourceMappingCommand";
86
- import {
87
- GetFunctionCodeSigningConfigCommand,
88
- GetFunctionCodeSigningConfigCommandInput,
89
- GetFunctionCodeSigningConfigCommandOutput,
90
- } from "./commands/GetFunctionCodeSigningConfigCommand";
91
- import { GetFunctionCommand, GetFunctionCommandInput, GetFunctionCommandOutput } from "./commands/GetFunctionCommand";
92
- import {
93
- GetFunctionConcurrencyCommand,
94
- GetFunctionConcurrencyCommandInput,
95
- GetFunctionConcurrencyCommandOutput,
96
- } from "./commands/GetFunctionConcurrencyCommand";
97
- import {
98
- GetFunctionConfigurationCommand,
99
- GetFunctionConfigurationCommandInput,
100
- GetFunctionConfigurationCommandOutput,
101
- } from "./commands/GetFunctionConfigurationCommand";
102
- import {
103
- GetFunctionEventInvokeConfigCommand,
104
- GetFunctionEventInvokeConfigCommandInput,
105
- GetFunctionEventInvokeConfigCommandOutput,
106
- } from "./commands/GetFunctionEventInvokeConfigCommand";
107
- import {
108
- GetLayerVersionByArnCommand,
109
- GetLayerVersionByArnCommandInput,
110
- GetLayerVersionByArnCommandOutput,
111
- } from "./commands/GetLayerVersionByArnCommand";
112
- import {
113
- GetLayerVersionCommand,
114
- GetLayerVersionCommandInput,
115
- GetLayerVersionCommandOutput,
116
- } from "./commands/GetLayerVersionCommand";
117
- import {
118
- GetLayerVersionPolicyCommand,
119
- GetLayerVersionPolicyCommandInput,
120
- GetLayerVersionPolicyCommandOutput,
121
- } from "./commands/GetLayerVersionPolicyCommand";
122
- import { GetPolicyCommand, GetPolicyCommandInput, GetPolicyCommandOutput } from "./commands/GetPolicyCommand";
123
- import {
124
- GetProvisionedConcurrencyConfigCommand,
125
- GetProvisionedConcurrencyConfigCommandInput,
126
- GetProvisionedConcurrencyConfigCommandOutput,
127
- } from "./commands/GetProvisionedConcurrencyConfigCommand";
128
- import { InvokeAsyncCommand, InvokeAsyncCommandInput, InvokeAsyncCommandOutput } from "./commands/InvokeAsyncCommand";
129
- import { InvokeCommand, InvokeCommandInput, InvokeCommandOutput } from "./commands/InvokeCommand";
130
- import { ListAliasesCommand, ListAliasesCommandInput, ListAliasesCommandOutput } from "./commands/ListAliasesCommand";
131
- import {
132
- ListCodeSigningConfigsCommand,
133
- ListCodeSigningConfigsCommandInput,
134
- ListCodeSigningConfigsCommandOutput,
135
- } from "./commands/ListCodeSigningConfigsCommand";
136
- import {
137
- ListEventSourceMappingsCommand,
138
- ListEventSourceMappingsCommandInput,
139
- ListEventSourceMappingsCommandOutput,
140
- } from "./commands/ListEventSourceMappingsCommand";
141
- import {
142
- ListFunctionEventInvokeConfigsCommand,
143
- ListFunctionEventInvokeConfigsCommandInput,
144
- ListFunctionEventInvokeConfigsCommandOutput,
145
- } from "./commands/ListFunctionEventInvokeConfigsCommand";
146
- import {
147
- ListFunctionsByCodeSigningConfigCommand,
148
- ListFunctionsByCodeSigningConfigCommandInput,
149
- ListFunctionsByCodeSigningConfigCommandOutput,
150
- } from "./commands/ListFunctionsByCodeSigningConfigCommand";
151
- import {
152
- ListFunctionsCommand,
153
- ListFunctionsCommandInput,
154
- ListFunctionsCommandOutput,
155
- } from "./commands/ListFunctionsCommand";
156
- import { ListLayersCommand, ListLayersCommandInput, ListLayersCommandOutput } from "./commands/ListLayersCommand";
157
- import {
158
- ListLayerVersionsCommand,
159
- ListLayerVersionsCommandInput,
160
- ListLayerVersionsCommandOutput,
161
- } from "./commands/ListLayerVersionsCommand";
162
- import {
163
- ListProvisionedConcurrencyConfigsCommand,
164
- ListProvisionedConcurrencyConfigsCommandInput,
165
- ListProvisionedConcurrencyConfigsCommandOutput,
166
- } from "./commands/ListProvisionedConcurrencyConfigsCommand";
167
- import { ListTagsCommand, ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand";
168
- import {
169
- ListVersionsByFunctionCommand,
170
- ListVersionsByFunctionCommandInput,
171
- ListVersionsByFunctionCommandOutput,
172
- } from "./commands/ListVersionsByFunctionCommand";
173
- import {
174
- PublishLayerVersionCommand,
175
- PublishLayerVersionCommandInput,
176
- PublishLayerVersionCommandOutput,
177
- } from "./commands/PublishLayerVersionCommand";
178
- import {
179
- PublishVersionCommand,
180
- PublishVersionCommandInput,
181
- PublishVersionCommandOutput,
182
- } from "./commands/PublishVersionCommand";
183
- import {
184
- PutFunctionCodeSigningConfigCommand,
185
- PutFunctionCodeSigningConfigCommandInput,
186
- PutFunctionCodeSigningConfigCommandOutput,
187
- } from "./commands/PutFunctionCodeSigningConfigCommand";
188
- import {
189
- PutFunctionConcurrencyCommand,
190
- PutFunctionConcurrencyCommandInput,
191
- PutFunctionConcurrencyCommandOutput,
192
- } from "./commands/PutFunctionConcurrencyCommand";
193
- import {
194
- PutFunctionEventInvokeConfigCommand,
195
- PutFunctionEventInvokeConfigCommandInput,
196
- PutFunctionEventInvokeConfigCommandOutput,
197
- } from "./commands/PutFunctionEventInvokeConfigCommand";
198
- import {
199
- PutProvisionedConcurrencyConfigCommand,
200
- PutProvisionedConcurrencyConfigCommandInput,
201
- PutProvisionedConcurrencyConfigCommandOutput,
202
- } from "./commands/PutProvisionedConcurrencyConfigCommand";
203
- import {
204
- RemoveLayerVersionPermissionCommand,
205
- RemoveLayerVersionPermissionCommandInput,
206
- RemoveLayerVersionPermissionCommandOutput,
207
- } from "./commands/RemoveLayerVersionPermissionCommand";
208
- import {
209
- RemovePermissionCommand,
210
- RemovePermissionCommandInput,
211
- RemovePermissionCommandOutput,
212
- } from "./commands/RemovePermissionCommand";
213
- import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
214
- import {
215
- UntagResourceCommand,
216
- UntagResourceCommandInput,
217
- UntagResourceCommandOutput,
218
- } from "./commands/UntagResourceCommand";
219
- import { UpdateAliasCommand, UpdateAliasCommandInput, UpdateAliasCommandOutput } from "./commands/UpdateAliasCommand";
220
- import {
221
- UpdateCodeSigningConfigCommand,
222
- UpdateCodeSigningConfigCommandInput,
223
- UpdateCodeSigningConfigCommandOutput,
224
- } from "./commands/UpdateCodeSigningConfigCommand";
225
- import {
226
- UpdateEventSourceMappingCommand,
227
- UpdateEventSourceMappingCommandInput,
228
- UpdateEventSourceMappingCommandOutput,
229
- } from "./commands/UpdateEventSourceMappingCommand";
230
- import {
231
- UpdateFunctionCodeCommand,
232
- UpdateFunctionCodeCommandInput,
233
- UpdateFunctionCodeCommandOutput,
234
- } from "./commands/UpdateFunctionCodeCommand";
235
- import {
236
- UpdateFunctionConfigurationCommand,
237
- UpdateFunctionConfigurationCommandInput,
238
- UpdateFunctionConfigurationCommandOutput,
239
- } from "./commands/UpdateFunctionConfigurationCommand";
240
- import {
241
- UpdateFunctionEventInvokeConfigCommand,
242
- UpdateFunctionEventInvokeConfigCommandInput,
243
- UpdateFunctionEventInvokeConfigCommandOutput,
244
- } from "./commands/UpdateFunctionEventInvokeConfigCommand";
245
- import { LambdaClient } from "./LambdaClient";
246
-
247
- /**
248
- * <fullname>Lambda</fullname>
249
- * <p>
250
- * <b>Overview</b>
251
- * </p>
252
- * <p>This is the <i>Lambda API Reference</i>. The Lambda Developer Guide provides additional
253
- * information. For the service overview, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is
254
- * Lambda</a>, and for information about how the service works, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html">Lambda: How it Works</a> in the <b>Lambda Developer Guide</b>.</p>
255
- */
256
- export class Lambda extends LambdaClient {
257
- /**
258
- * <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
259
- * layer</a>. Use this action to grant layer
260
- * usage permission to other accounts. You can grant permission to a single account, all accounts in an organization,
261
- * or all Amazon Web Services accounts. </p>
262
- * <p>To revoke permission, call <a>RemoveLayerVersionPermission</a> with the statement ID that you
263
- * specified when you added it.</p>
264
- */
265
- public addLayerVersionPermission(
266
- args: AddLayerVersionPermissionCommandInput,
267
- options?: __HttpHandlerOptions
268
- ): Promise<AddLayerVersionPermissionCommandOutput>;
269
- public addLayerVersionPermission(
270
- args: AddLayerVersionPermissionCommandInput,
271
- cb: (err: any, data?: AddLayerVersionPermissionCommandOutput) => void
272
- ): void;
273
- public addLayerVersionPermission(
274
- args: AddLayerVersionPermissionCommandInput,
275
- options: __HttpHandlerOptions,
276
- cb: (err: any, data?: AddLayerVersionPermissionCommandOutput) => void
277
- ): void;
278
- public addLayerVersionPermission(
279
- args: AddLayerVersionPermissionCommandInput,
280
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AddLayerVersionPermissionCommandOutput) => void),
281
- cb?: (err: any, data?: AddLayerVersionPermissionCommandOutput) => void
282
- ): Promise<AddLayerVersionPermissionCommandOutput> | void {
283
- const command = new AddLayerVersionPermissionCommand(args);
284
- if (typeof optionsOrCb === "function") {
285
- this.send(command, optionsOrCb);
286
- } else if (typeof cb === "function") {
287
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
288
- this.send(command, optionsOrCb || {}, cb);
289
- } else {
290
- return this.send(command, optionsOrCb);
291
- }
292
- }
293
-
294
- /**
295
- * <p>Grants an Amazon Web Services service or another account permission to use a function. You can apply the policy at the
296
- * function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier,
297
- * the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function.
298
- * Note: Lambda does not support adding policies to version $LATEST.</p>
299
- *
300
- * <p>To grant permission to another account, specify the account ID as the <code>Principal</code>. For Amazon Web Services
301
- * services, the principal is a domain-style identifier defined by the service, like <code>s3.amazonaws.com</code> or
302
- * <code>sns.amazonaws.com</code>. For Amazon Web Services services, you can also specify the ARN of the associated resource as the
303
- * <code>SourceArn</code>. If you grant permission to a service principal without specifying the source, other
304
- * accounts could potentially configure resources in their account to invoke your Lambda function.</p>
305
- *
306
- * <p>This action adds a statement to a resource-based permissions policy for the function. For more information
307
- * about function policies, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">Lambda Function Policies</a>. </p>
308
- */
309
- public addPermission(
310
- args: AddPermissionCommandInput,
311
- options?: __HttpHandlerOptions
312
- ): Promise<AddPermissionCommandOutput>;
313
- public addPermission(
314
- args: AddPermissionCommandInput,
315
- cb: (err: any, data?: AddPermissionCommandOutput) => void
316
- ): void;
317
- public addPermission(
318
- args: AddPermissionCommandInput,
319
- options: __HttpHandlerOptions,
320
- cb: (err: any, data?: AddPermissionCommandOutput) => void
321
- ): void;
322
- public addPermission(
323
- args: AddPermissionCommandInput,
324
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AddPermissionCommandOutput) => void),
325
- cb?: (err: any, data?: AddPermissionCommandOutput) => void
326
- ): Promise<AddPermissionCommandOutput> | void {
327
- const command = new AddPermissionCommand(args);
328
- if (typeof optionsOrCb === "function") {
329
- this.send(command, optionsOrCb);
330
- } else if (typeof cb === "function") {
331
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
332
- this.send(command, optionsOrCb || {}, cb);
333
- } else {
334
- return this.send(command, optionsOrCb);
335
- }
336
- }
337
-
338
- /**
339
- * <p>Creates an <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">alias</a> for a
340
- * Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a
341
- * different version.</p>
342
- * <p>You can also map an alias to split invocation requests between two versions. Use the
343
- * <code>RoutingConfig</code> parameter to specify a second version and the percentage of invocation requests that
344
- * it receives.</p>
345
- */
346
- public createAlias(args: CreateAliasCommandInput, options?: __HttpHandlerOptions): Promise<CreateAliasCommandOutput>;
347
- public createAlias(args: CreateAliasCommandInput, cb: (err: any, data?: CreateAliasCommandOutput) => void): void;
348
- public createAlias(
349
- args: CreateAliasCommandInput,
350
- options: __HttpHandlerOptions,
351
- cb: (err: any, data?: CreateAliasCommandOutput) => void
352
- ): void;
353
- public createAlias(
354
- args: CreateAliasCommandInput,
355
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateAliasCommandOutput) => void),
356
- cb?: (err: any, data?: CreateAliasCommandOutput) => void
357
- ): Promise<CreateAliasCommandOutput> | void {
358
- const command = new CreateAliasCommand(args);
359
- if (typeof optionsOrCb === "function") {
360
- this.send(command, optionsOrCb);
361
- } else if (typeof cb === "function") {
362
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
363
- this.send(command, optionsOrCb || {}, cb);
364
- } else {
365
- return this.send(command, optionsOrCb);
366
- }
367
- }
368
-
369
- /**
370
- * <p>Creates a code signing configuration. A <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-trustedcode.html">code signing configuration</a> defines a list of
371
- * allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment
372
- * validation checks fail). </p>
373
- */
374
- public createCodeSigningConfig(
375
- args: CreateCodeSigningConfigCommandInput,
376
- options?: __HttpHandlerOptions
377
- ): Promise<CreateCodeSigningConfigCommandOutput>;
378
- public createCodeSigningConfig(
379
- args: CreateCodeSigningConfigCommandInput,
380
- cb: (err: any, data?: CreateCodeSigningConfigCommandOutput) => void
381
- ): void;
382
- public createCodeSigningConfig(
383
- args: CreateCodeSigningConfigCommandInput,
384
- options: __HttpHandlerOptions,
385
- cb: (err: any, data?: CreateCodeSigningConfigCommandOutput) => void
386
- ): void;
387
- public createCodeSigningConfig(
388
- args: CreateCodeSigningConfigCommandInput,
389
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateCodeSigningConfigCommandOutput) => void),
390
- cb?: (err: any, data?: CreateCodeSigningConfigCommandOutput) => void
391
- ): Promise<CreateCodeSigningConfigCommandOutput> | void {
392
- const command = new CreateCodeSigningConfigCommand(args);
393
- if (typeof optionsOrCb === "function") {
394
- this.send(command, optionsOrCb);
395
- } else if (typeof cb === "function") {
396
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
397
- this.send(command, optionsOrCb || {}, cb);
398
- } else {
399
- return this.send(command, optionsOrCb);
400
- }
401
- }
402
-
403
- /**
404
- * <p>Creates a mapping between an event source and an Lambda function. Lambda reads items from the
405
- * event source and triggers the function.</p>
406
- * <p>For details about each event source type, see the following topics. </p>
407
- * <ul>
408
- * <li>
409
- * <p>
410
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping">
411
- * Configuring a Dynamo DB stream as an event source</a>
412
- * </p>
413
- * </li>
414
- * <li>
415
- * <p>
416
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping">
417
- * Configuring a Kinesis stream as an event source</a>
418
- * </p>
419
- * </li>
420
- * <li>
421
- * <p>
422
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource"> Configuring an
423
- * Amazon SQS queue as an event source</a>
424
- * </p>
425
- * </li>
426
- * <li>
427
- * <p>
428
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping">
429
- * Configuring an MQ broker as an event source</a>
430
- * </p>
431
- * </li>
432
- * <li>
433
- * <p>
434
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html"> Configuring MSK as an event
435
- * source</a>
436
- * </p>
437
- * </li>
438
- * <li>
439
- * <p>
440
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html"> Configuring Self-Managed Apache Kafka
441
- * as an event source</a>
442
- * </p>
443
- * </li>
444
- * </ul>
445
- *
446
- * <p>The following error handling options are only available for stream sources (DynamoDB and Kinesis):</p>
447
- * <ul>
448
- * <li>
449
- * <p>
450
- * <code>BisectBatchOnFunctionError</code> - If the function returns an error, split the batch in two and retry.</p>
451
- * </li>
452
- * <li>
453
- * <p>
454
- * <code>DestinationConfig</code> - Send discarded records to an Amazon SQS queue or Amazon SNS topic.</p>
455
- * </li>
456
- * <li>
457
- * <p>
458
- * <code>MaximumRecordAgeInSeconds</code> - Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires</p>
459
- * </li>
460
- * <li>
461
- * <p>
462
- * <code>MaximumRetryAttempts</code> - Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p>
463
- * </li>
464
- * <li>
465
- * <p>
466
- * <code>ParallelizationFactor</code> - Process multiple batches from each shard concurrently.</p>
467
- * </li>
468
- * </ul>
469
- */
470
- public createEventSourceMapping(
471
- args: CreateEventSourceMappingCommandInput,
472
- options?: __HttpHandlerOptions
473
- ): Promise<CreateEventSourceMappingCommandOutput>;
474
- public createEventSourceMapping(
475
- args: CreateEventSourceMappingCommandInput,
476
- cb: (err: any, data?: CreateEventSourceMappingCommandOutput) => void
477
- ): void;
478
- public createEventSourceMapping(
479
- args: CreateEventSourceMappingCommandInput,
480
- options: __HttpHandlerOptions,
481
- cb: (err: any, data?: CreateEventSourceMappingCommandOutput) => void
482
- ): void;
483
- public createEventSourceMapping(
484
- args: CreateEventSourceMappingCommandInput,
485
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateEventSourceMappingCommandOutput) => void),
486
- cb?: (err: any, data?: CreateEventSourceMappingCommandOutput) => void
487
- ): Promise<CreateEventSourceMappingCommandOutput> | void {
488
- const command = new CreateEventSourceMappingCommand(args);
489
- if (typeof optionsOrCb === "function") {
490
- this.send(command, optionsOrCb);
491
- } else if (typeof cb === "function") {
492
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
493
- this.send(command, optionsOrCb || {}, cb);
494
- } else {
495
- return this.send(command, optionsOrCb);
496
- }
497
- }
498
-
499
- /**
500
- * <p>Creates a Lambda function. To create a function, you need a <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html">deployment package</a> and an <a href="https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role">execution role</a>. The
501
- * deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services
502
- * services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.</p>
503
- *
504
- * <p>You set the package type to <code>Image</code> if the deployment package is a
505
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html">container image</a>. For a container image,
506
- * the code property must include the URI of a container image in the Amazon ECR registry.
507
- * You do not need to specify the handler and runtime properties. </p>
508
- *
509
- * <p>You set the package type to <code>Zip</code> if the deployment package is a <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html#gettingstarted-package-zip">.zip file
510
- * archive</a>. For a .zip file archive, the code property specifies the location of the
511
- * .zip file. You must also specify the handler and runtime properties. The code in the
512
- * deployment package must be compatible with the target instruction set architecture of the
513
- * function (<code>x86-64</code> or <code>arm64</code>). If you do not specify the architecture, the default value is
514
- * <code>x86-64</code>.</p>
515
- *
516
- * <p>When you create a function, Lambda provisions an instance of the function and its supporting resources. If
517
- * your function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or
518
- * modify the function. The <code>State</code>, <code>StateReason</code>, and <code>StateReasonCode</code> fields in
519
- * the response from <a>GetFunctionConfiguration</a> indicate when the function is ready to invoke. For
520
- * more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html">Function
521
- * States</a>.</p>
522
- *
523
- * <p>A function has an unpublished version, and can have published versions and aliases. The unpublished version
524
- * changes when you update your function's code and configuration. A published version is a snapshot of your function
525
- * code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be
526
- * changed to map to a different version. Use the <code>Publish</code> parameter to create version <code>1</code> of
527
- * your function from its initial configuration.</p>
528
- *
529
- * <p>The other parameters let you configure version-specific and function-level settings. You can modify
530
- * version-specific settings later with <a>UpdateFunctionConfiguration</a>. Function-level settings apply
531
- * to both the unpublished and published versions of the function, and include tags (<a>TagResource</a>)
532
- * and per-function concurrency limits (<a>PutFunctionConcurrency</a>).</p>
533
- *
534
- * <p>You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function,
535
- * specify the ARN of a code-signing configuration. When a user
536
- * attempts to deploy a code package with <a>UpdateFunctionCode</a>, Lambda checks that the code
537
- * package has a valid signature from a trusted publisher. The code-signing configuration
538
- * includes set set of signing profiles, which define the trusted publishers for this function.</p>
539
- *
540
- * <p>If another account or an Amazon Web Services service invokes your function, use <a>AddPermission</a> to grant
541
- * permission by creating a resource-based IAM policy. You can grant permissions at the function level, on a version,
542
- * or on an alias.</p>
543
- *
544
- * <p>To invoke your function directly, use <a>Invoke</a>. To invoke your function in response to events
545
- * in other Amazon Web Services services, create an event source mapping (<a>CreateEventSourceMapping</a>), or configure a
546
- * function trigger in the other service. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html">Invoking Functions</a>.</p>
547
- */
548
- public createFunction(
549
- args: CreateFunctionCommandInput,
550
- options?: __HttpHandlerOptions
551
- ): Promise<CreateFunctionCommandOutput>;
552
- public createFunction(
553
- args: CreateFunctionCommandInput,
554
- cb: (err: any, data?: CreateFunctionCommandOutput) => void
555
- ): void;
556
- public createFunction(
557
- args: CreateFunctionCommandInput,
558
- options: __HttpHandlerOptions,
559
- cb: (err: any, data?: CreateFunctionCommandOutput) => void
560
- ): void;
561
- public createFunction(
562
- args: CreateFunctionCommandInput,
563
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateFunctionCommandOutput) => void),
564
- cb?: (err: any, data?: CreateFunctionCommandOutput) => void
565
- ): Promise<CreateFunctionCommandOutput> | void {
566
- const command = new CreateFunctionCommand(args);
567
- if (typeof optionsOrCb === "function") {
568
- this.send(command, optionsOrCb);
569
- } else if (typeof cb === "function") {
570
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
571
- this.send(command, optionsOrCb || {}, cb);
572
- } else {
573
- return this.send(command, optionsOrCb);
574
- }
575
- }
576
-
577
- /**
578
- * <p>Deletes a Lambda function <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">alias</a>.</p>
579
- */
580
- public deleteAlias(args: DeleteAliasCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAliasCommandOutput>;
581
- public deleteAlias(args: DeleteAliasCommandInput, cb: (err: any, data?: DeleteAliasCommandOutput) => void): void;
582
- public deleteAlias(
583
- args: DeleteAliasCommandInput,
584
- options: __HttpHandlerOptions,
585
- cb: (err: any, data?: DeleteAliasCommandOutput) => void
586
- ): void;
587
- public deleteAlias(
588
- args: DeleteAliasCommandInput,
589
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteAliasCommandOutput) => void),
590
- cb?: (err: any, data?: DeleteAliasCommandOutput) => void
591
- ): Promise<DeleteAliasCommandOutput> | void {
592
- const command = new DeleteAliasCommand(args);
593
- if (typeof optionsOrCb === "function") {
594
- this.send(command, optionsOrCb);
595
- } else if (typeof cb === "function") {
596
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
597
- this.send(command, optionsOrCb || {}, cb);
598
- } else {
599
- return this.send(command, optionsOrCb);
600
- }
601
- }
602
-
603
- /**
604
- * <p>Deletes the code signing configuration. You can delete the code signing configuration only if no function is
605
- * using it. </p>
606
- */
607
- public deleteCodeSigningConfig(
608
- args: DeleteCodeSigningConfigCommandInput,
609
- options?: __HttpHandlerOptions
610
- ): Promise<DeleteCodeSigningConfigCommandOutput>;
611
- public deleteCodeSigningConfig(
612
- args: DeleteCodeSigningConfigCommandInput,
613
- cb: (err: any, data?: DeleteCodeSigningConfigCommandOutput) => void
614
- ): void;
615
- public deleteCodeSigningConfig(
616
- args: DeleteCodeSigningConfigCommandInput,
617
- options: __HttpHandlerOptions,
618
- cb: (err: any, data?: DeleteCodeSigningConfigCommandOutput) => void
619
- ): void;
620
- public deleteCodeSigningConfig(
621
- args: DeleteCodeSigningConfigCommandInput,
622
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteCodeSigningConfigCommandOutput) => void),
623
- cb?: (err: any, data?: DeleteCodeSigningConfigCommandOutput) => void
624
- ): Promise<DeleteCodeSigningConfigCommandOutput> | void {
625
- const command = new DeleteCodeSigningConfigCommand(args);
626
- if (typeof optionsOrCb === "function") {
627
- this.send(command, optionsOrCb);
628
- } else if (typeof cb === "function") {
629
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
630
- this.send(command, optionsOrCb || {}, cb);
631
- } else {
632
- return this.send(command, optionsOrCb);
633
- }
634
- }
635
-
636
- /**
637
- * <p>Deletes an <a href="https://docs.aws.amazon.com/lambda/latest/dg/intro-invocation-modes.html">event source
638
- * mapping</a>. You can get the identifier of a mapping from the output of <a>ListEventSourceMappings</a>.</p>
639
- * <p>When you delete an event source mapping, it enters a <code>Deleting</code> state and might not be completely
640
- * deleted for several seconds.</p>
641
- */
642
- public deleteEventSourceMapping(
643
- args: DeleteEventSourceMappingCommandInput,
644
- options?: __HttpHandlerOptions
645
- ): Promise<DeleteEventSourceMappingCommandOutput>;
646
- public deleteEventSourceMapping(
647
- args: DeleteEventSourceMappingCommandInput,
648
- cb: (err: any, data?: DeleteEventSourceMappingCommandOutput) => void
649
- ): void;
650
- public deleteEventSourceMapping(
651
- args: DeleteEventSourceMappingCommandInput,
652
- options: __HttpHandlerOptions,
653
- cb: (err: any, data?: DeleteEventSourceMappingCommandOutput) => void
654
- ): void;
655
- public deleteEventSourceMapping(
656
- args: DeleteEventSourceMappingCommandInput,
657
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteEventSourceMappingCommandOutput) => void),
658
- cb?: (err: any, data?: DeleteEventSourceMappingCommandOutput) => void
659
- ): Promise<DeleteEventSourceMappingCommandOutput> | void {
660
- const command = new DeleteEventSourceMappingCommand(args);
661
- if (typeof optionsOrCb === "function") {
662
- this.send(command, optionsOrCb);
663
- } else if (typeof cb === "function") {
664
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
665
- this.send(command, optionsOrCb || {}, cb);
666
- } else {
667
- return this.send(command, optionsOrCb);
668
- }
669
- }
670
-
671
- /**
672
- * <p>Deletes a Lambda function. To delete a specific function version, use the <code>Qualifier</code> parameter.
673
- * Otherwise, all versions and aliases are deleted.</p>
674
- *
675
- * <p>To delete Lambda event source mappings that invoke a function, use <a>DeleteEventSourceMapping</a>.
676
- * For Amazon Web Services services and resources that invoke your function directly, delete the trigger in the service where you
677
- * originally configured it.</p>
678
- */
679
- public deleteFunction(
680
- args: DeleteFunctionCommandInput,
681
- options?: __HttpHandlerOptions
682
- ): Promise<DeleteFunctionCommandOutput>;
683
- public deleteFunction(
684
- args: DeleteFunctionCommandInput,
685
- cb: (err: any, data?: DeleteFunctionCommandOutput) => void
686
- ): void;
687
- public deleteFunction(
688
- args: DeleteFunctionCommandInput,
689
- options: __HttpHandlerOptions,
690
- cb: (err: any, data?: DeleteFunctionCommandOutput) => void
691
- ): void;
692
- public deleteFunction(
693
- args: DeleteFunctionCommandInput,
694
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteFunctionCommandOutput) => void),
695
- cb?: (err: any, data?: DeleteFunctionCommandOutput) => void
696
- ): Promise<DeleteFunctionCommandOutput> | void {
697
- const command = new DeleteFunctionCommand(args);
698
- if (typeof optionsOrCb === "function") {
699
- this.send(command, optionsOrCb);
700
- } else if (typeof cb === "function") {
701
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
702
- this.send(command, optionsOrCb || {}, cb);
703
- } else {
704
- return this.send(command, optionsOrCb);
705
- }
706
- }
707
-
708
- /**
709
- * <p>Removes the code signing configuration from the function.</p>
710
- */
711
- public deleteFunctionCodeSigningConfig(
712
- args: DeleteFunctionCodeSigningConfigCommandInput,
713
- options?: __HttpHandlerOptions
714
- ): Promise<DeleteFunctionCodeSigningConfigCommandOutput>;
715
- public deleteFunctionCodeSigningConfig(
716
- args: DeleteFunctionCodeSigningConfigCommandInput,
717
- cb: (err: any, data?: DeleteFunctionCodeSigningConfigCommandOutput) => void
718
- ): void;
719
- public deleteFunctionCodeSigningConfig(
720
- args: DeleteFunctionCodeSigningConfigCommandInput,
721
- options: __HttpHandlerOptions,
722
- cb: (err: any, data?: DeleteFunctionCodeSigningConfigCommandOutput) => void
723
- ): void;
724
- public deleteFunctionCodeSigningConfig(
725
- args: DeleteFunctionCodeSigningConfigCommandInput,
726
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteFunctionCodeSigningConfigCommandOutput) => void),
727
- cb?: (err: any, data?: DeleteFunctionCodeSigningConfigCommandOutput) => void
728
- ): Promise<DeleteFunctionCodeSigningConfigCommandOutput> | void {
729
- const command = new DeleteFunctionCodeSigningConfigCommand(args);
730
- if (typeof optionsOrCb === "function") {
731
- this.send(command, optionsOrCb);
732
- } else if (typeof cb === "function") {
733
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
734
- this.send(command, optionsOrCb || {}, cb);
735
- } else {
736
- return this.send(command, optionsOrCb);
737
- }
738
- }
739
-
740
- /**
741
- * <p>Removes a concurrent execution limit from a function.</p>
742
- */
743
- public deleteFunctionConcurrency(
744
- args: DeleteFunctionConcurrencyCommandInput,
745
- options?: __HttpHandlerOptions
746
- ): Promise<DeleteFunctionConcurrencyCommandOutput>;
747
- public deleteFunctionConcurrency(
748
- args: DeleteFunctionConcurrencyCommandInput,
749
- cb: (err: any, data?: DeleteFunctionConcurrencyCommandOutput) => void
750
- ): void;
751
- public deleteFunctionConcurrency(
752
- args: DeleteFunctionConcurrencyCommandInput,
753
- options: __HttpHandlerOptions,
754
- cb: (err: any, data?: DeleteFunctionConcurrencyCommandOutput) => void
755
- ): void;
756
- public deleteFunctionConcurrency(
757
- args: DeleteFunctionConcurrencyCommandInput,
758
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteFunctionConcurrencyCommandOutput) => void),
759
- cb?: (err: any, data?: DeleteFunctionConcurrencyCommandOutput) => void
760
- ): Promise<DeleteFunctionConcurrencyCommandOutput> | void {
761
- const command = new DeleteFunctionConcurrencyCommand(args);
762
- if (typeof optionsOrCb === "function") {
763
- this.send(command, optionsOrCb);
764
- } else if (typeof cb === "function") {
765
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
766
- this.send(command, optionsOrCb || {}, cb);
767
- } else {
768
- return this.send(command, optionsOrCb);
769
- }
770
- }
771
-
772
- /**
773
- * <p>Deletes the configuration for asynchronous invocation for a function, version, or alias.</p>
774
- * <p>To configure options for asynchronous invocation, use <a>PutFunctionEventInvokeConfig</a>.</p>
775
- */
776
- public deleteFunctionEventInvokeConfig(
777
- args: DeleteFunctionEventInvokeConfigCommandInput,
778
- options?: __HttpHandlerOptions
779
- ): Promise<DeleteFunctionEventInvokeConfigCommandOutput>;
780
- public deleteFunctionEventInvokeConfig(
781
- args: DeleteFunctionEventInvokeConfigCommandInput,
782
- cb: (err: any, data?: DeleteFunctionEventInvokeConfigCommandOutput) => void
783
- ): void;
784
- public deleteFunctionEventInvokeConfig(
785
- args: DeleteFunctionEventInvokeConfigCommandInput,
786
- options: __HttpHandlerOptions,
787
- cb: (err: any, data?: DeleteFunctionEventInvokeConfigCommandOutput) => void
788
- ): void;
789
- public deleteFunctionEventInvokeConfig(
790
- args: DeleteFunctionEventInvokeConfigCommandInput,
791
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteFunctionEventInvokeConfigCommandOutput) => void),
792
- cb?: (err: any, data?: DeleteFunctionEventInvokeConfigCommandOutput) => void
793
- ): Promise<DeleteFunctionEventInvokeConfigCommandOutput> | void {
794
- const command = new DeleteFunctionEventInvokeConfigCommand(args);
795
- if (typeof optionsOrCb === "function") {
796
- this.send(command, optionsOrCb);
797
- } else if (typeof cb === "function") {
798
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
799
- this.send(command, optionsOrCb || {}, cb);
800
- } else {
801
- return this.send(command, optionsOrCb);
802
- }
803
- }
804
-
805
- /**
806
- * <p>Deletes a version of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda
807
- * layer</a>. Deleted versions can no longer be viewed or added to functions. To avoid
808
- * breaking functions, a copy of the version remains in Lambda until no functions refer to it.</p>
809
- */
810
- public deleteLayerVersion(
811
- args: DeleteLayerVersionCommandInput,
812
- options?: __HttpHandlerOptions
813
- ): Promise<DeleteLayerVersionCommandOutput>;
814
- public deleteLayerVersion(
815
- args: DeleteLayerVersionCommandInput,
816
- cb: (err: any, data?: DeleteLayerVersionCommandOutput) => void
817
- ): void;
818
- public deleteLayerVersion(
819
- args: DeleteLayerVersionCommandInput,
820
- options: __HttpHandlerOptions,
821
- cb: (err: any, data?: DeleteLayerVersionCommandOutput) => void
822
- ): void;
823
- public deleteLayerVersion(
824
- args: DeleteLayerVersionCommandInput,
825
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteLayerVersionCommandOutput) => void),
826
- cb?: (err: any, data?: DeleteLayerVersionCommandOutput) => void
827
- ): Promise<DeleteLayerVersionCommandOutput> | void {
828
- const command = new DeleteLayerVersionCommand(args);
829
- if (typeof optionsOrCb === "function") {
830
- this.send(command, optionsOrCb);
831
- } else if (typeof cb === "function") {
832
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
833
- this.send(command, optionsOrCb || {}, cb);
834
- } else {
835
- return this.send(command, optionsOrCb);
836
- }
837
- }
838
-
839
- /**
840
- * <p>Deletes the provisioned concurrency configuration for a function.</p>
841
- */
842
- public deleteProvisionedConcurrencyConfig(
843
- args: DeleteProvisionedConcurrencyConfigCommandInput,
844
- options?: __HttpHandlerOptions
845
- ): Promise<DeleteProvisionedConcurrencyConfigCommandOutput>;
846
- public deleteProvisionedConcurrencyConfig(
847
- args: DeleteProvisionedConcurrencyConfigCommandInput,
848
- cb: (err: any, data?: DeleteProvisionedConcurrencyConfigCommandOutput) => void
849
- ): void;
850
- public deleteProvisionedConcurrencyConfig(
851
- args: DeleteProvisionedConcurrencyConfigCommandInput,
852
- options: __HttpHandlerOptions,
853
- cb: (err: any, data?: DeleteProvisionedConcurrencyConfigCommandOutput) => void
854
- ): void;
855
- public deleteProvisionedConcurrencyConfig(
856
- args: DeleteProvisionedConcurrencyConfigCommandInput,
857
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteProvisionedConcurrencyConfigCommandOutput) => void),
858
- cb?: (err: any, data?: DeleteProvisionedConcurrencyConfigCommandOutput) => void
859
- ): Promise<DeleteProvisionedConcurrencyConfigCommandOutput> | void {
860
- const command = new DeleteProvisionedConcurrencyConfigCommand(args);
861
- if (typeof optionsOrCb === "function") {
862
- this.send(command, optionsOrCb);
863
- } else if (typeof cb === "function") {
864
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
865
- this.send(command, optionsOrCb || {}, cb);
866
- } else {
867
- return this.send(command, optionsOrCb);
868
- }
869
- }
870
-
871
- /**
872
- * <p>Retrieves details about your account's <a href="https://docs.aws.amazon.com/lambda/latest/dg/limits.html">limits</a> and usage in an Amazon Web Services Region.</p>
873
- */
874
- public getAccountSettings(
875
- args: GetAccountSettingsCommandInput,
876
- options?: __HttpHandlerOptions
877
- ): Promise<GetAccountSettingsCommandOutput>;
878
- public getAccountSettings(
879
- args: GetAccountSettingsCommandInput,
880
- cb: (err: any, data?: GetAccountSettingsCommandOutput) => void
881
- ): void;
882
- public getAccountSettings(
883
- args: GetAccountSettingsCommandInput,
884
- options: __HttpHandlerOptions,
885
- cb: (err: any, data?: GetAccountSettingsCommandOutput) => void
886
- ): void;
887
- public getAccountSettings(
888
- args: GetAccountSettingsCommandInput,
889
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetAccountSettingsCommandOutput) => void),
890
- cb?: (err: any, data?: GetAccountSettingsCommandOutput) => void
891
- ): Promise<GetAccountSettingsCommandOutput> | void {
892
- const command = new GetAccountSettingsCommand(args);
893
- if (typeof optionsOrCb === "function") {
894
- this.send(command, optionsOrCb);
895
- } else if (typeof cb === "function") {
896
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
897
- this.send(command, optionsOrCb || {}, cb);
898
- } else {
899
- return this.send(command, optionsOrCb);
900
- }
901
- }
902
-
903
- /**
904
- * <p>Returns details about a Lambda function <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">alias</a>.</p>
905
- */
906
- public getAlias(args: GetAliasCommandInput, options?: __HttpHandlerOptions): Promise<GetAliasCommandOutput>;
907
- public getAlias(args: GetAliasCommandInput, cb: (err: any, data?: GetAliasCommandOutput) => void): void;
908
- public getAlias(
909
- args: GetAliasCommandInput,
910
- options: __HttpHandlerOptions,
911
- cb: (err: any, data?: GetAliasCommandOutput) => void
912
- ): void;
913
- public getAlias(
914
- args: GetAliasCommandInput,
915
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetAliasCommandOutput) => void),
916
- cb?: (err: any, data?: GetAliasCommandOutput) => void
917
- ): Promise<GetAliasCommandOutput> | void {
918
- const command = new GetAliasCommand(args);
919
- if (typeof optionsOrCb === "function") {
920
- this.send(command, optionsOrCb);
921
- } else if (typeof cb === "function") {
922
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
923
- this.send(command, optionsOrCb || {}, cb);
924
- } else {
925
- return this.send(command, optionsOrCb);
926
- }
927
- }
928
-
929
- /**
930
- * <p>Returns information about the specified code signing configuration.</p>
931
- */
932
- public getCodeSigningConfig(
933
- args: GetCodeSigningConfigCommandInput,
934
- options?: __HttpHandlerOptions
935
- ): Promise<GetCodeSigningConfigCommandOutput>;
936
- public getCodeSigningConfig(
937
- args: GetCodeSigningConfigCommandInput,
938
- cb: (err: any, data?: GetCodeSigningConfigCommandOutput) => void
939
- ): void;
940
- public getCodeSigningConfig(
941
- args: GetCodeSigningConfigCommandInput,
942
- options: __HttpHandlerOptions,
943
- cb: (err: any, data?: GetCodeSigningConfigCommandOutput) => void
944
- ): void;
945
- public getCodeSigningConfig(
946
- args: GetCodeSigningConfigCommandInput,
947
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetCodeSigningConfigCommandOutput) => void),
948
- cb?: (err: any, data?: GetCodeSigningConfigCommandOutput) => void
949
- ): Promise<GetCodeSigningConfigCommandOutput> | void {
950
- const command = new GetCodeSigningConfigCommand(args);
951
- if (typeof optionsOrCb === "function") {
952
- this.send(command, optionsOrCb);
953
- } else if (typeof cb === "function") {
954
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
955
- this.send(command, optionsOrCb || {}, cb);
956
- } else {
957
- return this.send(command, optionsOrCb);
958
- }
959
- }
960
-
961
- /**
962
- * <p>Returns details about an event source mapping. You can get the identifier of a mapping from the output of
963
- * <a>ListEventSourceMappings</a>.</p>
964
- */
965
- public getEventSourceMapping(
966
- args: GetEventSourceMappingCommandInput,
967
- options?: __HttpHandlerOptions
968
- ): Promise<GetEventSourceMappingCommandOutput>;
969
- public getEventSourceMapping(
970
- args: GetEventSourceMappingCommandInput,
971
- cb: (err: any, data?: GetEventSourceMappingCommandOutput) => void
972
- ): void;
973
- public getEventSourceMapping(
974
- args: GetEventSourceMappingCommandInput,
975
- options: __HttpHandlerOptions,
976
- cb: (err: any, data?: GetEventSourceMappingCommandOutput) => void
977
- ): void;
978
- public getEventSourceMapping(
979
- args: GetEventSourceMappingCommandInput,
980
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetEventSourceMappingCommandOutput) => void),
981
- cb?: (err: any, data?: GetEventSourceMappingCommandOutput) => void
982
- ): Promise<GetEventSourceMappingCommandOutput> | void {
983
- const command = new GetEventSourceMappingCommand(args);
984
- if (typeof optionsOrCb === "function") {
985
- this.send(command, optionsOrCb);
986
- } else if (typeof cb === "function") {
987
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
988
- this.send(command, optionsOrCb || {}, cb);
989
- } else {
990
- return this.send(command, optionsOrCb);
991
- }
992
- }
993
-
994
- /**
995
- * <p>Returns information about the function or function version, with a link to download the deployment package
996
- * that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are
997
- * returned.</p>
998
- */
999
- public getFunction(args: GetFunctionCommandInput, options?: __HttpHandlerOptions): Promise<GetFunctionCommandOutput>;
1000
- public getFunction(args: GetFunctionCommandInput, cb: (err: any, data?: GetFunctionCommandOutput) => void): void;
1001
- public getFunction(
1002
- args: GetFunctionCommandInput,
1003
- options: __HttpHandlerOptions,
1004
- cb: (err: any, data?: GetFunctionCommandOutput) => void
1005
- ): void;
1006
- public getFunction(
1007
- args: GetFunctionCommandInput,
1008
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetFunctionCommandOutput) => void),
1009
- cb?: (err: any, data?: GetFunctionCommandOutput) => void
1010
- ): Promise<GetFunctionCommandOutput> | void {
1011
- const command = new GetFunctionCommand(args);
1012
- if (typeof optionsOrCb === "function") {
1013
- this.send(command, optionsOrCb);
1014
- } else if (typeof cb === "function") {
1015
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1016
- this.send(command, optionsOrCb || {}, cb);
1017
- } else {
1018
- return this.send(command, optionsOrCb);
1019
- }
1020
- }
1021
-
1022
- /**
1023
- * <p>Returns the code signing configuration for the specified function.</p>
1024
- */
1025
- public getFunctionCodeSigningConfig(
1026
- args: GetFunctionCodeSigningConfigCommandInput,
1027
- options?: __HttpHandlerOptions
1028
- ): Promise<GetFunctionCodeSigningConfigCommandOutput>;
1029
- public getFunctionCodeSigningConfig(
1030
- args: GetFunctionCodeSigningConfigCommandInput,
1031
- cb: (err: any, data?: GetFunctionCodeSigningConfigCommandOutput) => void
1032
- ): void;
1033
- public getFunctionCodeSigningConfig(
1034
- args: GetFunctionCodeSigningConfigCommandInput,
1035
- options: __HttpHandlerOptions,
1036
- cb: (err: any, data?: GetFunctionCodeSigningConfigCommandOutput) => void
1037
- ): void;
1038
- public getFunctionCodeSigningConfig(
1039
- args: GetFunctionCodeSigningConfigCommandInput,
1040
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetFunctionCodeSigningConfigCommandOutput) => void),
1041
- cb?: (err: any, data?: GetFunctionCodeSigningConfigCommandOutput) => void
1042
- ): Promise<GetFunctionCodeSigningConfigCommandOutput> | void {
1043
- const command = new GetFunctionCodeSigningConfigCommand(args);
1044
- if (typeof optionsOrCb === "function") {
1045
- this.send(command, optionsOrCb);
1046
- } else if (typeof cb === "function") {
1047
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1048
- this.send(command, optionsOrCb || {}, cb);
1049
- } else {
1050
- return this.send(command, optionsOrCb);
1051
- }
1052
- }
1053
-
1054
- /**
1055
- * <p>Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a
1056
- * function, use <a>PutFunctionConcurrency</a>.</p>
1057
- */
1058
- public getFunctionConcurrency(
1059
- args: GetFunctionConcurrencyCommandInput,
1060
- options?: __HttpHandlerOptions
1061
- ): Promise<GetFunctionConcurrencyCommandOutput>;
1062
- public getFunctionConcurrency(
1063
- args: GetFunctionConcurrencyCommandInput,
1064
- cb: (err: any, data?: GetFunctionConcurrencyCommandOutput) => void
1065
- ): void;
1066
- public getFunctionConcurrency(
1067
- args: GetFunctionConcurrencyCommandInput,
1068
- options: __HttpHandlerOptions,
1069
- cb: (err: any, data?: GetFunctionConcurrencyCommandOutput) => void
1070
- ): void;
1071
- public getFunctionConcurrency(
1072
- args: GetFunctionConcurrencyCommandInput,
1073
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetFunctionConcurrencyCommandOutput) => void),
1074
- cb?: (err: any, data?: GetFunctionConcurrencyCommandOutput) => void
1075
- ): Promise<GetFunctionConcurrencyCommandOutput> | void {
1076
- const command = new GetFunctionConcurrencyCommand(args);
1077
- if (typeof optionsOrCb === "function") {
1078
- this.send(command, optionsOrCb);
1079
- } else if (typeof cb === "function") {
1080
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1081
- this.send(command, optionsOrCb || {}, cb);
1082
- } else {
1083
- return this.send(command, optionsOrCb);
1084
- }
1085
- }
1086
-
1087
- /**
1088
- * <p>Returns the version-specific settings of a Lambda function or version. The output includes only options that
1089
- * can vary between versions of a function. To modify these settings, use <a>UpdateFunctionConfiguration</a>.</p>
1090
- * <p>To get all of a function's details, including function-level settings, use <a>GetFunction</a>.</p>
1091
- */
1092
- public getFunctionConfiguration(
1093
- args: GetFunctionConfigurationCommandInput,
1094
- options?: __HttpHandlerOptions
1095
- ): Promise<GetFunctionConfigurationCommandOutput>;
1096
- public getFunctionConfiguration(
1097
- args: GetFunctionConfigurationCommandInput,
1098
- cb: (err: any, data?: GetFunctionConfigurationCommandOutput) => void
1099
- ): void;
1100
- public getFunctionConfiguration(
1101
- args: GetFunctionConfigurationCommandInput,
1102
- options: __HttpHandlerOptions,
1103
- cb: (err: any, data?: GetFunctionConfigurationCommandOutput) => void
1104
- ): void;
1105
- public getFunctionConfiguration(
1106
- args: GetFunctionConfigurationCommandInput,
1107
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetFunctionConfigurationCommandOutput) => void),
1108
- cb?: (err: any, data?: GetFunctionConfigurationCommandOutput) => void
1109
- ): Promise<GetFunctionConfigurationCommandOutput> | void {
1110
- const command = new GetFunctionConfigurationCommand(args);
1111
- if (typeof optionsOrCb === "function") {
1112
- this.send(command, optionsOrCb);
1113
- } else if (typeof cb === "function") {
1114
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1115
- this.send(command, optionsOrCb || {}, cb);
1116
- } else {
1117
- return this.send(command, optionsOrCb);
1118
- }
1119
- }
1120
-
1121
- /**
1122
- * <p>Retrieves the configuration for asynchronous invocation for a function, version, or alias.</p>
1123
- * <p>To configure options for asynchronous invocation, use <a>PutFunctionEventInvokeConfig</a>.</p>
1124
- */
1125
- public getFunctionEventInvokeConfig(
1126
- args: GetFunctionEventInvokeConfigCommandInput,
1127
- options?: __HttpHandlerOptions
1128
- ): Promise<GetFunctionEventInvokeConfigCommandOutput>;
1129
- public getFunctionEventInvokeConfig(
1130
- args: GetFunctionEventInvokeConfigCommandInput,
1131
- cb: (err: any, data?: GetFunctionEventInvokeConfigCommandOutput) => void
1132
- ): void;
1133
- public getFunctionEventInvokeConfig(
1134
- args: GetFunctionEventInvokeConfigCommandInput,
1135
- options: __HttpHandlerOptions,
1136
- cb: (err: any, data?: GetFunctionEventInvokeConfigCommandOutput) => void
1137
- ): void;
1138
- public getFunctionEventInvokeConfig(
1139
- args: GetFunctionEventInvokeConfigCommandInput,
1140
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetFunctionEventInvokeConfigCommandOutput) => void),
1141
- cb?: (err: any, data?: GetFunctionEventInvokeConfigCommandOutput) => void
1142
- ): Promise<GetFunctionEventInvokeConfigCommandOutput> | void {
1143
- const command = new GetFunctionEventInvokeConfigCommand(args);
1144
- if (typeof optionsOrCb === "function") {
1145
- this.send(command, optionsOrCb);
1146
- } else if (typeof cb === "function") {
1147
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1148
- this.send(command, optionsOrCb || {}, cb);
1149
- } else {
1150
- return this.send(command, optionsOrCb);
1151
- }
1152
- }
1153
-
1154
- /**
1155
- * <p>Returns information about a version of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda
1156
- * layer</a>, with a link to download the layer archive
1157
- * that's valid for 10 minutes.</p>
1158
- */
1159
- public getLayerVersion(
1160
- args: GetLayerVersionCommandInput,
1161
- options?: __HttpHandlerOptions
1162
- ): Promise<GetLayerVersionCommandOutput>;
1163
- public getLayerVersion(
1164
- args: GetLayerVersionCommandInput,
1165
- cb: (err: any, data?: GetLayerVersionCommandOutput) => void
1166
- ): void;
1167
- public getLayerVersion(
1168
- args: GetLayerVersionCommandInput,
1169
- options: __HttpHandlerOptions,
1170
- cb: (err: any, data?: GetLayerVersionCommandOutput) => void
1171
- ): void;
1172
- public getLayerVersion(
1173
- args: GetLayerVersionCommandInput,
1174
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetLayerVersionCommandOutput) => void),
1175
- cb?: (err: any, data?: GetLayerVersionCommandOutput) => void
1176
- ): Promise<GetLayerVersionCommandOutput> | void {
1177
- const command = new GetLayerVersionCommand(args);
1178
- if (typeof optionsOrCb === "function") {
1179
- this.send(command, optionsOrCb);
1180
- } else if (typeof cb === "function") {
1181
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1182
- this.send(command, optionsOrCb || {}, cb);
1183
- } else {
1184
- return this.send(command, optionsOrCb);
1185
- }
1186
- }
1187
-
1188
- /**
1189
- * <p>Returns information about a version of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda
1190
- * layer</a>, with a link to download the layer archive
1191
- * that's valid for 10 minutes.</p>
1192
- */
1193
- public getLayerVersionByArn(
1194
- args: GetLayerVersionByArnCommandInput,
1195
- options?: __HttpHandlerOptions
1196
- ): Promise<GetLayerVersionByArnCommandOutput>;
1197
- public getLayerVersionByArn(
1198
- args: GetLayerVersionByArnCommandInput,
1199
- cb: (err: any, data?: GetLayerVersionByArnCommandOutput) => void
1200
- ): void;
1201
- public getLayerVersionByArn(
1202
- args: GetLayerVersionByArnCommandInput,
1203
- options: __HttpHandlerOptions,
1204
- cb: (err: any, data?: GetLayerVersionByArnCommandOutput) => void
1205
- ): void;
1206
- public getLayerVersionByArn(
1207
- args: GetLayerVersionByArnCommandInput,
1208
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetLayerVersionByArnCommandOutput) => void),
1209
- cb?: (err: any, data?: GetLayerVersionByArnCommandOutput) => void
1210
- ): Promise<GetLayerVersionByArnCommandOutput> | void {
1211
- const command = new GetLayerVersionByArnCommand(args);
1212
- if (typeof optionsOrCb === "function") {
1213
- this.send(command, optionsOrCb);
1214
- } else if (typeof cb === "function") {
1215
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1216
- this.send(command, optionsOrCb || {}, cb);
1217
- } else {
1218
- return this.send(command, optionsOrCb);
1219
- }
1220
- }
1221
-
1222
- /**
1223
- * <p>Returns the permission policy for a version of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda
1224
- * layer</a>. For more information, see <a>AddLayerVersionPermission</a>.</p>
1225
- */
1226
- public getLayerVersionPolicy(
1227
- args: GetLayerVersionPolicyCommandInput,
1228
- options?: __HttpHandlerOptions
1229
- ): Promise<GetLayerVersionPolicyCommandOutput>;
1230
- public getLayerVersionPolicy(
1231
- args: GetLayerVersionPolicyCommandInput,
1232
- cb: (err: any, data?: GetLayerVersionPolicyCommandOutput) => void
1233
- ): void;
1234
- public getLayerVersionPolicy(
1235
- args: GetLayerVersionPolicyCommandInput,
1236
- options: __HttpHandlerOptions,
1237
- cb: (err: any, data?: GetLayerVersionPolicyCommandOutput) => void
1238
- ): void;
1239
- public getLayerVersionPolicy(
1240
- args: GetLayerVersionPolicyCommandInput,
1241
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetLayerVersionPolicyCommandOutput) => void),
1242
- cb?: (err: any, data?: GetLayerVersionPolicyCommandOutput) => void
1243
- ): Promise<GetLayerVersionPolicyCommandOutput> | void {
1244
- const command = new GetLayerVersionPolicyCommand(args);
1245
- if (typeof optionsOrCb === "function") {
1246
- this.send(command, optionsOrCb);
1247
- } else if (typeof cb === "function") {
1248
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1249
- this.send(command, optionsOrCb || {}, cb);
1250
- } else {
1251
- return this.send(command, optionsOrCb);
1252
- }
1253
- }
1254
-
1255
- /**
1256
- * <p>Returns the <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">resource-based IAM policy</a> for a function, version, or alias.</p>
1257
- */
1258
- public getPolicy(args: GetPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetPolicyCommandOutput>;
1259
- public getPolicy(args: GetPolicyCommandInput, cb: (err: any, data?: GetPolicyCommandOutput) => void): void;
1260
- public getPolicy(
1261
- args: GetPolicyCommandInput,
1262
- options: __HttpHandlerOptions,
1263
- cb: (err: any, data?: GetPolicyCommandOutput) => void
1264
- ): void;
1265
- public getPolicy(
1266
- args: GetPolicyCommandInput,
1267
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetPolicyCommandOutput) => void),
1268
- cb?: (err: any, data?: GetPolicyCommandOutput) => void
1269
- ): Promise<GetPolicyCommandOutput> | void {
1270
- const command = new GetPolicyCommand(args);
1271
- if (typeof optionsOrCb === "function") {
1272
- this.send(command, optionsOrCb);
1273
- } else if (typeof cb === "function") {
1274
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1275
- this.send(command, optionsOrCb || {}, cb);
1276
- } else {
1277
- return this.send(command, optionsOrCb);
1278
- }
1279
- }
1280
-
1281
- /**
1282
- * <p>Retrieves the provisioned concurrency configuration for a function's alias or version.</p>
1283
- */
1284
- public getProvisionedConcurrencyConfig(
1285
- args: GetProvisionedConcurrencyConfigCommandInput,
1286
- options?: __HttpHandlerOptions
1287
- ): Promise<GetProvisionedConcurrencyConfigCommandOutput>;
1288
- public getProvisionedConcurrencyConfig(
1289
- args: GetProvisionedConcurrencyConfigCommandInput,
1290
- cb: (err: any, data?: GetProvisionedConcurrencyConfigCommandOutput) => void
1291
- ): void;
1292
- public getProvisionedConcurrencyConfig(
1293
- args: GetProvisionedConcurrencyConfigCommandInput,
1294
- options: __HttpHandlerOptions,
1295
- cb: (err: any, data?: GetProvisionedConcurrencyConfigCommandOutput) => void
1296
- ): void;
1297
- public getProvisionedConcurrencyConfig(
1298
- args: GetProvisionedConcurrencyConfigCommandInput,
1299
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetProvisionedConcurrencyConfigCommandOutput) => void),
1300
- cb?: (err: any, data?: GetProvisionedConcurrencyConfigCommandOutput) => void
1301
- ): Promise<GetProvisionedConcurrencyConfigCommandOutput> | void {
1302
- const command = new GetProvisionedConcurrencyConfigCommand(args);
1303
- if (typeof optionsOrCb === "function") {
1304
- this.send(command, optionsOrCb);
1305
- } else if (typeof cb === "function") {
1306
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1307
- this.send(command, optionsOrCb || {}, cb);
1308
- } else {
1309
- return this.send(command, optionsOrCb);
1310
- }
1311
- }
1312
-
1313
- /**
1314
- * <p>Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or
1315
- * asynchronously. To invoke a function asynchronously, set <code>InvocationType</code> to <code>Event</code>.</p>
1316
- *
1317
- * <p>For <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-sync.html">synchronous invocation</a>,
1318
- * details about the function response, including errors, are included in the response body and headers. For either
1319
- * invocation type, you can find more information in the <a href="https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions.html">execution log</a> and <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-x-ray.html">trace</a>.</p>
1320
- *
1321
- * <p>When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type,
1322
- * client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an
1323
- * error, Lambda executes the function up to two more times. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/retries-on-errors.html">Retry Behavior</a>.</p>
1324
- *
1325
- * <p>For <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html">asynchronous invocation</a>,
1326
- * Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity
1327
- * to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple
1328
- * times, even if no error occurs. To retain events that were not processed, configure your function with a <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq">dead-letter queue</a>.</p>
1329
- *
1330
- * <p>The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that
1331
- * prevent your function from executing, such as permissions errors, <a href="https://docs.aws.amazon.com/lambda/latest/dg/limits.html">limit errors</a>, or issues with your function's code and configuration.
1332
- * For example, Lambda returns <code>TooManyRequestsException</code> if executing the function would cause you to
1333
- * exceed a concurrency limit at either the account level (<code>ConcurrentInvocationLimitExceeded</code>) or
1334
- * function level (<code>ReservedFunctionConcurrentInvocationLimitExceeded</code>).</p>
1335
- *
1336
- * <p>For functions with a long timeout, your client might be disconnected during synchronous invocation while it
1337
- * waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long
1338
- * connections with timeout or keep-alive settings.</p>
1339
- *
1340
- * <p>This operation requires permission for the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awslambda.html">lambda:InvokeFunction</a> action.</p>
1341
- */
1342
- public invoke(args: InvokeCommandInput, options?: __HttpHandlerOptions): Promise<InvokeCommandOutput>;
1343
- public invoke(args: InvokeCommandInput, cb: (err: any, data?: InvokeCommandOutput) => void): void;
1344
- public invoke(
1345
- args: InvokeCommandInput,
1346
- options: __HttpHandlerOptions,
1347
- cb: (err: any, data?: InvokeCommandOutput) => void
1348
- ): void;
1349
- public invoke(
1350
- args: InvokeCommandInput,
1351
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: InvokeCommandOutput) => void),
1352
- cb?: (err: any, data?: InvokeCommandOutput) => void
1353
- ): Promise<InvokeCommandOutput> | void {
1354
- const command = new InvokeCommand(args);
1355
- if (typeof optionsOrCb === "function") {
1356
- this.send(command, optionsOrCb);
1357
- } else if (typeof cb === "function") {
1358
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1359
- this.send(command, optionsOrCb || {}, cb);
1360
- } else {
1361
- return this.send(command, optionsOrCb);
1362
- }
1363
- }
1364
-
1365
- /**
1366
- * @deprecated
1367
- *
1368
- * <important>
1369
- * <p>For asynchronous function invocation, use <a>Invoke</a>.</p>
1370
- * </important>
1371
- * <p>Invokes a function asynchronously.</p>
1372
- */
1373
- public invokeAsync(args: InvokeAsyncCommandInput, options?: __HttpHandlerOptions): Promise<InvokeAsyncCommandOutput>;
1374
- public invokeAsync(args: InvokeAsyncCommandInput, cb: (err: any, data?: InvokeAsyncCommandOutput) => void): void;
1375
- public invokeAsync(
1376
- args: InvokeAsyncCommandInput,
1377
- options: __HttpHandlerOptions,
1378
- cb: (err: any, data?: InvokeAsyncCommandOutput) => void
1379
- ): void;
1380
- public invokeAsync(
1381
- args: InvokeAsyncCommandInput,
1382
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: InvokeAsyncCommandOutput) => void),
1383
- cb?: (err: any, data?: InvokeAsyncCommandOutput) => void
1384
- ): Promise<InvokeAsyncCommandOutput> | void {
1385
- const command = new InvokeAsyncCommand(args);
1386
- if (typeof optionsOrCb === "function") {
1387
- this.send(command, optionsOrCb);
1388
- } else if (typeof cb === "function") {
1389
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1390
- this.send(command, optionsOrCb || {}, cb);
1391
- } else {
1392
- return this.send(command, optionsOrCb);
1393
- }
1394
- }
1395
-
1396
- /**
1397
- * <p>Returns a list of <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">aliases</a>
1398
- * for a Lambda function.</p>
1399
- */
1400
- public listAliases(args: ListAliasesCommandInput, options?: __HttpHandlerOptions): Promise<ListAliasesCommandOutput>;
1401
- public listAliases(args: ListAliasesCommandInput, cb: (err: any, data?: ListAliasesCommandOutput) => void): void;
1402
- public listAliases(
1403
- args: ListAliasesCommandInput,
1404
- options: __HttpHandlerOptions,
1405
- cb: (err: any, data?: ListAliasesCommandOutput) => void
1406
- ): void;
1407
- public listAliases(
1408
- args: ListAliasesCommandInput,
1409
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListAliasesCommandOutput) => void),
1410
- cb?: (err: any, data?: ListAliasesCommandOutput) => void
1411
- ): Promise<ListAliasesCommandOutput> | void {
1412
- const command = new ListAliasesCommand(args);
1413
- if (typeof optionsOrCb === "function") {
1414
- this.send(command, optionsOrCb);
1415
- } else if (typeof cb === "function") {
1416
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1417
- this.send(command, optionsOrCb || {}, cb);
1418
- } else {
1419
- return this.send(command, optionsOrCb);
1420
- }
1421
- }
1422
-
1423
- /**
1424
- * <p>Returns a list of <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuring-codesigning.html">code
1425
- * signing configurations</a>. A request returns up to 10,000 configurations per
1426
- * call. You can use the <code>MaxItems</code> parameter to return fewer configurations per call. </p>
1427
- */
1428
- public listCodeSigningConfigs(
1429
- args: ListCodeSigningConfigsCommandInput,
1430
- options?: __HttpHandlerOptions
1431
- ): Promise<ListCodeSigningConfigsCommandOutput>;
1432
- public listCodeSigningConfigs(
1433
- args: ListCodeSigningConfigsCommandInput,
1434
- cb: (err: any, data?: ListCodeSigningConfigsCommandOutput) => void
1435
- ): void;
1436
- public listCodeSigningConfigs(
1437
- args: ListCodeSigningConfigsCommandInput,
1438
- options: __HttpHandlerOptions,
1439
- cb: (err: any, data?: ListCodeSigningConfigsCommandOutput) => void
1440
- ): void;
1441
- public listCodeSigningConfigs(
1442
- args: ListCodeSigningConfigsCommandInput,
1443
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListCodeSigningConfigsCommandOutput) => void),
1444
- cb?: (err: any, data?: ListCodeSigningConfigsCommandOutput) => void
1445
- ): Promise<ListCodeSigningConfigsCommandOutput> | void {
1446
- const command = new ListCodeSigningConfigsCommand(args);
1447
- if (typeof optionsOrCb === "function") {
1448
- this.send(command, optionsOrCb);
1449
- } else if (typeof cb === "function") {
1450
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1451
- this.send(command, optionsOrCb || {}, cb);
1452
- } else {
1453
- return this.send(command, optionsOrCb);
1454
- }
1455
- }
1456
-
1457
- /**
1458
- * <p>Lists event source mappings. Specify an <code>EventSourceArn</code> to only show event source mappings for a
1459
- * single event source.</p>
1460
- */
1461
- public listEventSourceMappings(
1462
- args: ListEventSourceMappingsCommandInput,
1463
- options?: __HttpHandlerOptions
1464
- ): Promise<ListEventSourceMappingsCommandOutput>;
1465
- public listEventSourceMappings(
1466
- args: ListEventSourceMappingsCommandInput,
1467
- cb: (err: any, data?: ListEventSourceMappingsCommandOutput) => void
1468
- ): void;
1469
- public listEventSourceMappings(
1470
- args: ListEventSourceMappingsCommandInput,
1471
- options: __HttpHandlerOptions,
1472
- cb: (err: any, data?: ListEventSourceMappingsCommandOutput) => void
1473
- ): void;
1474
- public listEventSourceMappings(
1475
- args: ListEventSourceMappingsCommandInput,
1476
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListEventSourceMappingsCommandOutput) => void),
1477
- cb?: (err: any, data?: ListEventSourceMappingsCommandOutput) => void
1478
- ): Promise<ListEventSourceMappingsCommandOutput> | void {
1479
- const command = new ListEventSourceMappingsCommand(args);
1480
- if (typeof optionsOrCb === "function") {
1481
- this.send(command, optionsOrCb);
1482
- } else if (typeof cb === "function") {
1483
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1484
- this.send(command, optionsOrCb || {}, cb);
1485
- } else {
1486
- return this.send(command, optionsOrCb);
1487
- }
1488
- }
1489
-
1490
- /**
1491
- * <p>Retrieves a list of configurations for asynchronous invocation for a function.</p>
1492
- * <p>To configure options for asynchronous invocation, use <a>PutFunctionEventInvokeConfig</a>.</p>
1493
- */
1494
- public listFunctionEventInvokeConfigs(
1495
- args: ListFunctionEventInvokeConfigsCommandInput,
1496
- options?: __HttpHandlerOptions
1497
- ): Promise<ListFunctionEventInvokeConfigsCommandOutput>;
1498
- public listFunctionEventInvokeConfigs(
1499
- args: ListFunctionEventInvokeConfigsCommandInput,
1500
- cb: (err: any, data?: ListFunctionEventInvokeConfigsCommandOutput) => void
1501
- ): void;
1502
- public listFunctionEventInvokeConfigs(
1503
- args: ListFunctionEventInvokeConfigsCommandInput,
1504
- options: __HttpHandlerOptions,
1505
- cb: (err: any, data?: ListFunctionEventInvokeConfigsCommandOutput) => void
1506
- ): void;
1507
- public listFunctionEventInvokeConfigs(
1508
- args: ListFunctionEventInvokeConfigsCommandInput,
1509
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListFunctionEventInvokeConfigsCommandOutput) => void),
1510
- cb?: (err: any, data?: ListFunctionEventInvokeConfigsCommandOutput) => void
1511
- ): Promise<ListFunctionEventInvokeConfigsCommandOutput> | void {
1512
- const command = new ListFunctionEventInvokeConfigsCommand(args);
1513
- if (typeof optionsOrCb === "function") {
1514
- this.send(command, optionsOrCb);
1515
- } else if (typeof cb === "function") {
1516
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1517
- this.send(command, optionsOrCb || {}, cb);
1518
- } else {
1519
- return this.send(command, optionsOrCb);
1520
- }
1521
- }
1522
-
1523
- /**
1524
- * <p>Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50
1525
- * functions per call.</p>
1526
- * <p>Set <code>FunctionVersion</code> to <code>ALL</code> to include all published versions of each function in
1527
- * addition to the unpublished version. </p>
1528
- * <note>
1529
- * <p>The <code>ListFunctions</code> action returns a subset of the <a>FunctionConfiguration</a> fields.
1530
- * To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode)
1531
- * for a function or version, use <a>GetFunction</a>.</p>
1532
- * </note>
1533
- */
1534
- public listFunctions(
1535
- args: ListFunctionsCommandInput,
1536
- options?: __HttpHandlerOptions
1537
- ): Promise<ListFunctionsCommandOutput>;
1538
- public listFunctions(
1539
- args: ListFunctionsCommandInput,
1540
- cb: (err: any, data?: ListFunctionsCommandOutput) => void
1541
- ): void;
1542
- public listFunctions(
1543
- args: ListFunctionsCommandInput,
1544
- options: __HttpHandlerOptions,
1545
- cb: (err: any, data?: ListFunctionsCommandOutput) => void
1546
- ): void;
1547
- public listFunctions(
1548
- args: ListFunctionsCommandInput,
1549
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListFunctionsCommandOutput) => void),
1550
- cb?: (err: any, data?: ListFunctionsCommandOutput) => void
1551
- ): Promise<ListFunctionsCommandOutput> | void {
1552
- const command = new ListFunctionsCommand(args);
1553
- if (typeof optionsOrCb === "function") {
1554
- this.send(command, optionsOrCb);
1555
- } else if (typeof cb === "function") {
1556
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1557
- this.send(command, optionsOrCb || {}, cb);
1558
- } else {
1559
- return this.send(command, optionsOrCb);
1560
- }
1561
- }
1562
-
1563
- /**
1564
- * <p>List the functions that use the specified code signing configuration. You can use this method prior to deleting a
1565
- * code signing configuration, to verify that no functions are using it.</p>
1566
- */
1567
- public listFunctionsByCodeSigningConfig(
1568
- args: ListFunctionsByCodeSigningConfigCommandInput,
1569
- options?: __HttpHandlerOptions
1570
- ): Promise<ListFunctionsByCodeSigningConfigCommandOutput>;
1571
- public listFunctionsByCodeSigningConfig(
1572
- args: ListFunctionsByCodeSigningConfigCommandInput,
1573
- cb: (err: any, data?: ListFunctionsByCodeSigningConfigCommandOutput) => void
1574
- ): void;
1575
- public listFunctionsByCodeSigningConfig(
1576
- args: ListFunctionsByCodeSigningConfigCommandInput,
1577
- options: __HttpHandlerOptions,
1578
- cb: (err: any, data?: ListFunctionsByCodeSigningConfigCommandOutput) => void
1579
- ): void;
1580
- public listFunctionsByCodeSigningConfig(
1581
- args: ListFunctionsByCodeSigningConfigCommandInput,
1582
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListFunctionsByCodeSigningConfigCommandOutput) => void),
1583
- cb?: (err: any, data?: ListFunctionsByCodeSigningConfigCommandOutput) => void
1584
- ): Promise<ListFunctionsByCodeSigningConfigCommandOutput> | void {
1585
- const command = new ListFunctionsByCodeSigningConfigCommand(args);
1586
- if (typeof optionsOrCb === "function") {
1587
- this.send(command, optionsOrCb);
1588
- } else if (typeof cb === "function") {
1589
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1590
- this.send(command, optionsOrCb || {}, cb);
1591
- } else {
1592
- return this.send(command, optionsOrCb);
1593
- }
1594
- }
1595
-
1596
- /**
1597
- * <p>Lists <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-layers.html">Lambda
1598
- * layers</a> and shows information about the latest version of each. Specify a
1599
- * <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">runtime
1600
- * identifier</a> to list only layers that indicate that they're compatible with that
1601
- * runtime. Specify a compatible architecture to include only layers that are compatible with
1602
- * that <a href="https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html">instruction set architecture</a>.</p>
1603
- */
1604
- public listLayers(args: ListLayersCommandInput, options?: __HttpHandlerOptions): Promise<ListLayersCommandOutput>;
1605
- public listLayers(args: ListLayersCommandInput, cb: (err: any, data?: ListLayersCommandOutput) => void): void;
1606
- public listLayers(
1607
- args: ListLayersCommandInput,
1608
- options: __HttpHandlerOptions,
1609
- cb: (err: any, data?: ListLayersCommandOutput) => void
1610
- ): void;
1611
- public listLayers(
1612
- args: ListLayersCommandInput,
1613
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListLayersCommandOutput) => void),
1614
- cb?: (err: any, data?: ListLayersCommandOutput) => void
1615
- ): Promise<ListLayersCommandOutput> | void {
1616
- const command = new ListLayersCommand(args);
1617
- if (typeof optionsOrCb === "function") {
1618
- this.send(command, optionsOrCb);
1619
- } else if (typeof cb === "function") {
1620
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1621
- this.send(command, optionsOrCb || {}, cb);
1622
- } else {
1623
- return this.send(command, optionsOrCb);
1624
- }
1625
- }
1626
-
1627
- /**
1628
- * <p>Lists the versions of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda
1629
- * layer</a>. Versions that have been deleted aren't listed. Specify a <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html">runtime identifier</a> to list only
1630
- * versions that indicate that they're compatible with that runtime. Specify a compatible architecture to include only
1631
- * layer versions that are compatible with that architecture.</p>
1632
- */
1633
- public listLayerVersions(
1634
- args: ListLayerVersionsCommandInput,
1635
- options?: __HttpHandlerOptions
1636
- ): Promise<ListLayerVersionsCommandOutput>;
1637
- public listLayerVersions(
1638
- args: ListLayerVersionsCommandInput,
1639
- cb: (err: any, data?: ListLayerVersionsCommandOutput) => void
1640
- ): void;
1641
- public listLayerVersions(
1642
- args: ListLayerVersionsCommandInput,
1643
- options: __HttpHandlerOptions,
1644
- cb: (err: any, data?: ListLayerVersionsCommandOutput) => void
1645
- ): void;
1646
- public listLayerVersions(
1647
- args: ListLayerVersionsCommandInput,
1648
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListLayerVersionsCommandOutput) => void),
1649
- cb?: (err: any, data?: ListLayerVersionsCommandOutput) => void
1650
- ): Promise<ListLayerVersionsCommandOutput> | void {
1651
- const command = new ListLayerVersionsCommand(args);
1652
- if (typeof optionsOrCb === "function") {
1653
- this.send(command, optionsOrCb);
1654
- } else if (typeof cb === "function") {
1655
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1656
- this.send(command, optionsOrCb || {}, cb);
1657
- } else {
1658
- return this.send(command, optionsOrCb);
1659
- }
1660
- }
1661
-
1662
- /**
1663
- * <p>Retrieves a list of provisioned concurrency configurations for a function.</p>
1664
- */
1665
- public listProvisionedConcurrencyConfigs(
1666
- args: ListProvisionedConcurrencyConfigsCommandInput,
1667
- options?: __HttpHandlerOptions
1668
- ): Promise<ListProvisionedConcurrencyConfigsCommandOutput>;
1669
- public listProvisionedConcurrencyConfigs(
1670
- args: ListProvisionedConcurrencyConfigsCommandInput,
1671
- cb: (err: any, data?: ListProvisionedConcurrencyConfigsCommandOutput) => void
1672
- ): void;
1673
- public listProvisionedConcurrencyConfigs(
1674
- args: ListProvisionedConcurrencyConfigsCommandInput,
1675
- options: __HttpHandlerOptions,
1676
- cb: (err: any, data?: ListProvisionedConcurrencyConfigsCommandOutput) => void
1677
- ): void;
1678
- public listProvisionedConcurrencyConfigs(
1679
- args: ListProvisionedConcurrencyConfigsCommandInput,
1680
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListProvisionedConcurrencyConfigsCommandOutput) => void),
1681
- cb?: (err: any, data?: ListProvisionedConcurrencyConfigsCommandOutput) => void
1682
- ): Promise<ListProvisionedConcurrencyConfigsCommandOutput> | void {
1683
- const command = new ListProvisionedConcurrencyConfigsCommand(args);
1684
- if (typeof optionsOrCb === "function") {
1685
- this.send(command, optionsOrCb);
1686
- } else if (typeof cb === "function") {
1687
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1688
- this.send(command, optionsOrCb || {}, cb);
1689
- } else {
1690
- return this.send(command, optionsOrCb);
1691
- }
1692
- }
1693
-
1694
- /**
1695
- * <p>Returns a function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a>. You can
1696
- * also view tags with <a>GetFunction</a>.</p>
1697
- */
1698
- public listTags(args: ListTagsCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsCommandOutput>;
1699
- public listTags(args: ListTagsCommandInput, cb: (err: any, data?: ListTagsCommandOutput) => void): void;
1700
- public listTags(
1701
- args: ListTagsCommandInput,
1702
- options: __HttpHandlerOptions,
1703
- cb: (err: any, data?: ListTagsCommandOutput) => void
1704
- ): void;
1705
- public listTags(
1706
- args: ListTagsCommandInput,
1707
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsCommandOutput) => void),
1708
- cb?: (err: any, data?: ListTagsCommandOutput) => void
1709
- ): Promise<ListTagsCommandOutput> | void {
1710
- const command = new ListTagsCommand(args);
1711
- if (typeof optionsOrCb === "function") {
1712
- this.send(command, optionsOrCb);
1713
- } else if (typeof cb === "function") {
1714
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1715
- this.send(command, optionsOrCb || {}, cb);
1716
- } else {
1717
- return this.send(command, optionsOrCb);
1718
- }
1719
- }
1720
-
1721
- /**
1722
- * <p>Returns a list of <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">versions</a>,
1723
- * with the version-specific configuration of each. Lambda returns up to 50 versions per call.</p>
1724
- */
1725
- public listVersionsByFunction(
1726
- args: ListVersionsByFunctionCommandInput,
1727
- options?: __HttpHandlerOptions
1728
- ): Promise<ListVersionsByFunctionCommandOutput>;
1729
- public listVersionsByFunction(
1730
- args: ListVersionsByFunctionCommandInput,
1731
- cb: (err: any, data?: ListVersionsByFunctionCommandOutput) => void
1732
- ): void;
1733
- public listVersionsByFunction(
1734
- args: ListVersionsByFunctionCommandInput,
1735
- options: __HttpHandlerOptions,
1736
- cb: (err: any, data?: ListVersionsByFunctionCommandOutput) => void
1737
- ): void;
1738
- public listVersionsByFunction(
1739
- args: ListVersionsByFunctionCommandInput,
1740
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListVersionsByFunctionCommandOutput) => void),
1741
- cb?: (err: any, data?: ListVersionsByFunctionCommandOutput) => void
1742
- ): Promise<ListVersionsByFunctionCommandOutput> | void {
1743
- const command = new ListVersionsByFunctionCommand(args);
1744
- if (typeof optionsOrCb === "function") {
1745
- this.send(command, optionsOrCb);
1746
- } else if (typeof cb === "function") {
1747
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1748
- this.send(command, optionsOrCb || {}, cb);
1749
- } else {
1750
- return this.send(command, optionsOrCb);
1751
- }
1752
- }
1753
-
1754
- /**
1755
- * <p>Creates an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda
1756
- * layer</a> from a ZIP archive. Each time you call <code>PublishLayerVersion</code> with the same
1757
- * layer name, a new version is created.</p>
1758
- * <p>Add layers to your function with <a>CreateFunction</a> or <a>UpdateFunctionConfiguration</a>.</p>
1759
- */
1760
- public publishLayerVersion(
1761
- args: PublishLayerVersionCommandInput,
1762
- options?: __HttpHandlerOptions
1763
- ): Promise<PublishLayerVersionCommandOutput>;
1764
- public publishLayerVersion(
1765
- args: PublishLayerVersionCommandInput,
1766
- cb: (err: any, data?: PublishLayerVersionCommandOutput) => void
1767
- ): void;
1768
- public publishLayerVersion(
1769
- args: PublishLayerVersionCommandInput,
1770
- options: __HttpHandlerOptions,
1771
- cb: (err: any, data?: PublishLayerVersionCommandOutput) => void
1772
- ): void;
1773
- public publishLayerVersion(
1774
- args: PublishLayerVersionCommandInput,
1775
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PublishLayerVersionCommandOutput) => void),
1776
- cb?: (err: any, data?: PublishLayerVersionCommandOutput) => void
1777
- ): Promise<PublishLayerVersionCommandOutput> | void {
1778
- const command = new PublishLayerVersionCommand(args);
1779
- if (typeof optionsOrCb === "function") {
1780
- this.send(command, optionsOrCb);
1781
- } else if (typeof cb === "function") {
1782
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1783
- this.send(command, optionsOrCb || {}, cb);
1784
- } else {
1785
- return this.send(command, optionsOrCb);
1786
- }
1787
- }
1788
-
1789
- /**
1790
- * <p>Creates a <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">version</a> from the
1791
- * current code and configuration of a function. Use versions to create a snapshot of your function code and
1792
- * configuration that doesn't change.</p>
1793
- *
1794
- * <p>Lambda doesn't publish a version if the function's configuration and code haven't changed since the last
1795
- * version. Use <a>UpdateFunctionCode</a> or <a>UpdateFunctionConfiguration</a> to update the
1796
- * function before publishing a version.</p>
1797
- *
1798
- * <p>Clients can invoke versions directly or with an alias. To create an alias, use <a>CreateAlias</a>.</p>
1799
- */
1800
- public publishVersion(
1801
- args: PublishVersionCommandInput,
1802
- options?: __HttpHandlerOptions
1803
- ): Promise<PublishVersionCommandOutput>;
1804
- public publishVersion(
1805
- args: PublishVersionCommandInput,
1806
- cb: (err: any, data?: PublishVersionCommandOutput) => void
1807
- ): void;
1808
- public publishVersion(
1809
- args: PublishVersionCommandInput,
1810
- options: __HttpHandlerOptions,
1811
- cb: (err: any, data?: PublishVersionCommandOutput) => void
1812
- ): void;
1813
- public publishVersion(
1814
- args: PublishVersionCommandInput,
1815
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PublishVersionCommandOutput) => void),
1816
- cb?: (err: any, data?: PublishVersionCommandOutput) => void
1817
- ): Promise<PublishVersionCommandOutput> | void {
1818
- const command = new PublishVersionCommand(args);
1819
- if (typeof optionsOrCb === "function") {
1820
- this.send(command, optionsOrCb);
1821
- } else if (typeof cb === "function") {
1822
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1823
- this.send(command, optionsOrCb || {}, cb);
1824
- } else {
1825
- return this.send(command, optionsOrCb);
1826
- }
1827
- }
1828
-
1829
- /**
1830
- * <p>Update the code signing configuration for the function. Changes to the code signing configuration take effect the
1831
- * next time a user tries to deploy a code package to the function. </p>
1832
- */
1833
- public putFunctionCodeSigningConfig(
1834
- args: PutFunctionCodeSigningConfigCommandInput,
1835
- options?: __HttpHandlerOptions
1836
- ): Promise<PutFunctionCodeSigningConfigCommandOutput>;
1837
- public putFunctionCodeSigningConfig(
1838
- args: PutFunctionCodeSigningConfigCommandInput,
1839
- cb: (err: any, data?: PutFunctionCodeSigningConfigCommandOutput) => void
1840
- ): void;
1841
- public putFunctionCodeSigningConfig(
1842
- args: PutFunctionCodeSigningConfigCommandInput,
1843
- options: __HttpHandlerOptions,
1844
- cb: (err: any, data?: PutFunctionCodeSigningConfigCommandOutput) => void
1845
- ): void;
1846
- public putFunctionCodeSigningConfig(
1847
- args: PutFunctionCodeSigningConfigCommandInput,
1848
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutFunctionCodeSigningConfigCommandOutput) => void),
1849
- cb?: (err: any, data?: PutFunctionCodeSigningConfigCommandOutput) => void
1850
- ): Promise<PutFunctionCodeSigningConfigCommandOutput> | void {
1851
- const command = new PutFunctionCodeSigningConfigCommand(args);
1852
- if (typeof optionsOrCb === "function") {
1853
- this.send(command, optionsOrCb);
1854
- } else if (typeof cb === "function") {
1855
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1856
- this.send(command, optionsOrCb || {}, cb);
1857
- } else {
1858
- return this.send(command, optionsOrCb);
1859
- }
1860
- }
1861
-
1862
- /**
1863
- * <p>Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency
1864
- * level.</p>
1865
- * <p>Concurrency settings apply to the function as a whole, including all published versions and the unpublished
1866
- * version. Reserving concurrency both ensures that your function has capacity to process the specified number of
1867
- * events simultaneously, and prevents it from scaling beyond that level. Use <a>GetFunction</a> to see
1868
- * the current setting for a function.</p>
1869
- * <p>Use <a>GetAccountSettings</a> to see your Regional concurrency limit. You can reserve concurrency
1870
- * for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for
1871
- * functions that aren't configured with a per-function limit. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html">Managing Concurrency</a>.</p>
1872
- */
1873
- public putFunctionConcurrency(
1874
- args: PutFunctionConcurrencyCommandInput,
1875
- options?: __HttpHandlerOptions
1876
- ): Promise<PutFunctionConcurrencyCommandOutput>;
1877
- public putFunctionConcurrency(
1878
- args: PutFunctionConcurrencyCommandInput,
1879
- cb: (err: any, data?: PutFunctionConcurrencyCommandOutput) => void
1880
- ): void;
1881
- public putFunctionConcurrency(
1882
- args: PutFunctionConcurrencyCommandInput,
1883
- options: __HttpHandlerOptions,
1884
- cb: (err: any, data?: PutFunctionConcurrencyCommandOutput) => void
1885
- ): void;
1886
- public putFunctionConcurrency(
1887
- args: PutFunctionConcurrencyCommandInput,
1888
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutFunctionConcurrencyCommandOutput) => void),
1889
- cb?: (err: any, data?: PutFunctionConcurrencyCommandOutput) => void
1890
- ): Promise<PutFunctionConcurrencyCommandOutput> | void {
1891
- const command = new PutFunctionConcurrencyCommand(args);
1892
- if (typeof optionsOrCb === "function") {
1893
- this.send(command, optionsOrCb);
1894
- } else if (typeof cb === "function") {
1895
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1896
- this.send(command, optionsOrCb || {}, cb);
1897
- } else {
1898
- return this.send(command, optionsOrCb);
1899
- }
1900
- }
1901
-
1902
- /**
1903
- * <p>Configures options for <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html">asynchronous
1904
- * invocation</a> on a function, version, or alias. If a configuration already exists for a function, version,
1905
- * or alias, this operation overwrites it. If you exclude any settings, they are removed. To set one option without
1906
- * affecting existing settings for other options, use <a>UpdateFunctionEventInvokeConfig</a>.</p>
1907
- * <p>By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains
1908
- * events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous
1909
- * invocation queue for too long, Lambda discards it. To retain discarded events, configure a dead-letter queue with
1910
- * <a>UpdateFunctionConfiguration</a>.</p>
1911
- * <p>To send an invocation record to a queue, topic, function, or event bus, specify a <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations">destination</a>. You can configure separate destinations for successful invocations (on-success) and events
1912
- * that fail all processing attempts (on-failure). You can configure destinations in addition to or instead of a
1913
- * dead-letter queue.</p>
1914
- */
1915
- public putFunctionEventInvokeConfig(
1916
- args: PutFunctionEventInvokeConfigCommandInput,
1917
- options?: __HttpHandlerOptions
1918
- ): Promise<PutFunctionEventInvokeConfigCommandOutput>;
1919
- public putFunctionEventInvokeConfig(
1920
- args: PutFunctionEventInvokeConfigCommandInput,
1921
- cb: (err: any, data?: PutFunctionEventInvokeConfigCommandOutput) => void
1922
- ): void;
1923
- public putFunctionEventInvokeConfig(
1924
- args: PutFunctionEventInvokeConfigCommandInput,
1925
- options: __HttpHandlerOptions,
1926
- cb: (err: any, data?: PutFunctionEventInvokeConfigCommandOutput) => void
1927
- ): void;
1928
- public putFunctionEventInvokeConfig(
1929
- args: PutFunctionEventInvokeConfigCommandInput,
1930
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutFunctionEventInvokeConfigCommandOutput) => void),
1931
- cb?: (err: any, data?: PutFunctionEventInvokeConfigCommandOutput) => void
1932
- ): Promise<PutFunctionEventInvokeConfigCommandOutput> | void {
1933
- const command = new PutFunctionEventInvokeConfigCommand(args);
1934
- if (typeof optionsOrCb === "function") {
1935
- this.send(command, optionsOrCb);
1936
- } else if (typeof cb === "function") {
1937
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1938
- this.send(command, optionsOrCb || {}, cb);
1939
- } else {
1940
- return this.send(command, optionsOrCb);
1941
- }
1942
- }
1943
-
1944
- /**
1945
- * <p>Adds a provisioned concurrency configuration to a function's alias or version.</p>
1946
- */
1947
- public putProvisionedConcurrencyConfig(
1948
- args: PutProvisionedConcurrencyConfigCommandInput,
1949
- options?: __HttpHandlerOptions
1950
- ): Promise<PutProvisionedConcurrencyConfigCommandOutput>;
1951
- public putProvisionedConcurrencyConfig(
1952
- args: PutProvisionedConcurrencyConfigCommandInput,
1953
- cb: (err: any, data?: PutProvisionedConcurrencyConfigCommandOutput) => void
1954
- ): void;
1955
- public putProvisionedConcurrencyConfig(
1956
- args: PutProvisionedConcurrencyConfigCommandInput,
1957
- options: __HttpHandlerOptions,
1958
- cb: (err: any, data?: PutProvisionedConcurrencyConfigCommandOutput) => void
1959
- ): void;
1960
- public putProvisionedConcurrencyConfig(
1961
- args: PutProvisionedConcurrencyConfigCommandInput,
1962
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutProvisionedConcurrencyConfigCommandOutput) => void),
1963
- cb?: (err: any, data?: PutProvisionedConcurrencyConfigCommandOutput) => void
1964
- ): Promise<PutProvisionedConcurrencyConfigCommandOutput> | void {
1965
- const command = new PutProvisionedConcurrencyConfigCommand(args);
1966
- if (typeof optionsOrCb === "function") {
1967
- this.send(command, optionsOrCb);
1968
- } else if (typeof cb === "function") {
1969
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1970
- this.send(command, optionsOrCb || {}, cb);
1971
- } else {
1972
- return this.send(command, optionsOrCb);
1973
- }
1974
- }
1975
-
1976
- /**
1977
- * <p>Removes a statement from the permissions policy for a version of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda
1978
- * layer</a>. For more information, see
1979
- * <a>AddLayerVersionPermission</a>.</p>
1980
- */
1981
- public removeLayerVersionPermission(
1982
- args: RemoveLayerVersionPermissionCommandInput,
1983
- options?: __HttpHandlerOptions
1984
- ): Promise<RemoveLayerVersionPermissionCommandOutput>;
1985
- public removeLayerVersionPermission(
1986
- args: RemoveLayerVersionPermissionCommandInput,
1987
- cb: (err: any, data?: RemoveLayerVersionPermissionCommandOutput) => void
1988
- ): void;
1989
- public removeLayerVersionPermission(
1990
- args: RemoveLayerVersionPermissionCommandInput,
1991
- options: __HttpHandlerOptions,
1992
- cb: (err: any, data?: RemoveLayerVersionPermissionCommandOutput) => void
1993
- ): void;
1994
- public removeLayerVersionPermission(
1995
- args: RemoveLayerVersionPermissionCommandInput,
1996
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RemoveLayerVersionPermissionCommandOutput) => void),
1997
- cb?: (err: any, data?: RemoveLayerVersionPermissionCommandOutput) => void
1998
- ): Promise<RemoveLayerVersionPermissionCommandOutput> | void {
1999
- const command = new RemoveLayerVersionPermissionCommand(args);
2000
- if (typeof optionsOrCb === "function") {
2001
- this.send(command, optionsOrCb);
2002
- } else if (typeof cb === "function") {
2003
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2004
- this.send(command, optionsOrCb || {}, cb);
2005
- } else {
2006
- return this.send(command, optionsOrCb);
2007
- }
2008
- }
2009
-
2010
- /**
2011
- * <p>Revokes function-use permission from an Amazon Web Services service or another account. You can get the ID of the statement
2012
- * from the output of <a>GetPolicy</a>.</p>
2013
- */
2014
- public removePermission(
2015
- args: RemovePermissionCommandInput,
2016
- options?: __HttpHandlerOptions
2017
- ): Promise<RemovePermissionCommandOutput>;
2018
- public removePermission(
2019
- args: RemovePermissionCommandInput,
2020
- cb: (err: any, data?: RemovePermissionCommandOutput) => void
2021
- ): void;
2022
- public removePermission(
2023
- args: RemovePermissionCommandInput,
2024
- options: __HttpHandlerOptions,
2025
- cb: (err: any, data?: RemovePermissionCommandOutput) => void
2026
- ): void;
2027
- public removePermission(
2028
- args: RemovePermissionCommandInput,
2029
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RemovePermissionCommandOutput) => void),
2030
- cb?: (err: any, data?: RemovePermissionCommandOutput) => void
2031
- ): Promise<RemovePermissionCommandOutput> | void {
2032
- const command = new RemovePermissionCommand(args);
2033
- if (typeof optionsOrCb === "function") {
2034
- this.send(command, optionsOrCb);
2035
- } else if (typeof cb === "function") {
2036
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2037
- this.send(command, optionsOrCb || {}, cb);
2038
- } else {
2039
- return this.send(command, optionsOrCb);
2040
- }
2041
- }
2042
-
2043
- /**
2044
- * <p>Adds <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a> to a function.</p>
2045
- */
2046
- public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
2047
- public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
2048
- public tagResource(
2049
- args: TagResourceCommandInput,
2050
- options: __HttpHandlerOptions,
2051
- cb: (err: any, data?: TagResourceCommandOutput) => void
2052
- ): void;
2053
- public tagResource(
2054
- args: TagResourceCommandInput,
2055
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
2056
- cb?: (err: any, data?: TagResourceCommandOutput) => void
2057
- ): Promise<TagResourceCommandOutput> | void {
2058
- const command = new TagResourceCommand(args);
2059
- if (typeof optionsOrCb === "function") {
2060
- this.send(command, optionsOrCb);
2061
- } else if (typeof cb === "function") {
2062
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2063
- this.send(command, optionsOrCb || {}, cb);
2064
- } else {
2065
- return this.send(command, optionsOrCb);
2066
- }
2067
- }
2068
-
2069
- /**
2070
- * <p>Removes <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a> from a function.</p>
2071
- */
2072
- public untagResource(
2073
- args: UntagResourceCommandInput,
2074
- options?: __HttpHandlerOptions
2075
- ): Promise<UntagResourceCommandOutput>;
2076
- public untagResource(
2077
- args: UntagResourceCommandInput,
2078
- cb: (err: any, data?: UntagResourceCommandOutput) => void
2079
- ): void;
2080
- public untagResource(
2081
- args: UntagResourceCommandInput,
2082
- options: __HttpHandlerOptions,
2083
- cb: (err: any, data?: UntagResourceCommandOutput) => void
2084
- ): void;
2085
- public untagResource(
2086
- args: UntagResourceCommandInput,
2087
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
2088
- cb?: (err: any, data?: UntagResourceCommandOutput) => void
2089
- ): Promise<UntagResourceCommandOutput> | void {
2090
- const command = new UntagResourceCommand(args);
2091
- if (typeof optionsOrCb === "function") {
2092
- this.send(command, optionsOrCb);
2093
- } else if (typeof cb === "function") {
2094
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2095
- this.send(command, optionsOrCb || {}, cb);
2096
- } else {
2097
- return this.send(command, optionsOrCb);
2098
- }
2099
- }
2100
-
2101
- /**
2102
- * <p>Updates the configuration of a Lambda function <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">alias</a>.</p>
2103
- */
2104
- public updateAlias(args: UpdateAliasCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAliasCommandOutput>;
2105
- public updateAlias(args: UpdateAliasCommandInput, cb: (err: any, data?: UpdateAliasCommandOutput) => void): void;
2106
- public updateAlias(
2107
- args: UpdateAliasCommandInput,
2108
- options: __HttpHandlerOptions,
2109
- cb: (err: any, data?: UpdateAliasCommandOutput) => void
2110
- ): void;
2111
- public updateAlias(
2112
- args: UpdateAliasCommandInput,
2113
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateAliasCommandOutput) => void),
2114
- cb?: (err: any, data?: UpdateAliasCommandOutput) => void
2115
- ): Promise<UpdateAliasCommandOutput> | void {
2116
- const command = new UpdateAliasCommand(args);
2117
- if (typeof optionsOrCb === "function") {
2118
- this.send(command, optionsOrCb);
2119
- } else if (typeof cb === "function") {
2120
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2121
- this.send(command, optionsOrCb || {}, cb);
2122
- } else {
2123
- return this.send(command, optionsOrCb);
2124
- }
2125
- }
2126
-
2127
- /**
2128
- * <p>Update the code signing configuration. Changes to the code signing configuration take effect the next time a
2129
- * user tries to deploy a code package to the function. </p>
2130
- */
2131
- public updateCodeSigningConfig(
2132
- args: UpdateCodeSigningConfigCommandInput,
2133
- options?: __HttpHandlerOptions
2134
- ): Promise<UpdateCodeSigningConfigCommandOutput>;
2135
- public updateCodeSigningConfig(
2136
- args: UpdateCodeSigningConfigCommandInput,
2137
- cb: (err: any, data?: UpdateCodeSigningConfigCommandOutput) => void
2138
- ): void;
2139
- public updateCodeSigningConfig(
2140
- args: UpdateCodeSigningConfigCommandInput,
2141
- options: __HttpHandlerOptions,
2142
- cb: (err: any, data?: UpdateCodeSigningConfigCommandOutput) => void
2143
- ): void;
2144
- public updateCodeSigningConfig(
2145
- args: UpdateCodeSigningConfigCommandInput,
2146
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateCodeSigningConfigCommandOutput) => void),
2147
- cb?: (err: any, data?: UpdateCodeSigningConfigCommandOutput) => void
2148
- ): Promise<UpdateCodeSigningConfigCommandOutput> | void {
2149
- const command = new UpdateCodeSigningConfigCommand(args);
2150
- if (typeof optionsOrCb === "function") {
2151
- this.send(command, optionsOrCb);
2152
- } else if (typeof cb === "function") {
2153
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2154
- this.send(command, optionsOrCb || {}, cb);
2155
- } else {
2156
- return this.send(command, optionsOrCb);
2157
- }
2158
- }
2159
-
2160
- /**
2161
- * <p>Updates an event source mapping. You can change the function that Lambda invokes, or pause
2162
- * invocation and resume later from the same location.</p>
2163
- *
2164
- * <p>The following error handling options are only available for stream sources (DynamoDB and Kinesis):</p>
2165
- * <ul>
2166
- * <li>
2167
- * <p>
2168
- * <code>BisectBatchOnFunctionError</code> - If the function returns an error, split the batch in two and retry.</p>
2169
- * </li>
2170
- * <li>
2171
- * <p>
2172
- * <code>DestinationConfig</code> - Send discarded records to an Amazon SQS queue or Amazon SNS topic.</p>
2173
- * </li>
2174
- * <li>
2175
- * <p>
2176
- * <code>MaximumRecordAgeInSeconds</code> - Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires</p>
2177
- * </li>
2178
- * <li>
2179
- * <p>
2180
- * <code>MaximumRetryAttempts</code> - Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p>
2181
- * </li>
2182
- * <li>
2183
- * <p>
2184
- * <code>ParallelizationFactor</code> - Process multiple batches from each shard concurrently.</p>
2185
- * </li>
2186
- * </ul>
2187
- */
2188
- public updateEventSourceMapping(
2189
- args: UpdateEventSourceMappingCommandInput,
2190
- options?: __HttpHandlerOptions
2191
- ): Promise<UpdateEventSourceMappingCommandOutput>;
2192
- public updateEventSourceMapping(
2193
- args: UpdateEventSourceMappingCommandInput,
2194
- cb: (err: any, data?: UpdateEventSourceMappingCommandOutput) => void
2195
- ): void;
2196
- public updateEventSourceMapping(
2197
- args: UpdateEventSourceMappingCommandInput,
2198
- options: __HttpHandlerOptions,
2199
- cb: (err: any, data?: UpdateEventSourceMappingCommandOutput) => void
2200
- ): void;
2201
- public updateEventSourceMapping(
2202
- args: UpdateEventSourceMappingCommandInput,
2203
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateEventSourceMappingCommandOutput) => void),
2204
- cb?: (err: any, data?: UpdateEventSourceMappingCommandOutput) => void
2205
- ): Promise<UpdateEventSourceMappingCommandOutput> | void {
2206
- const command = new UpdateEventSourceMappingCommand(args);
2207
- if (typeof optionsOrCb === "function") {
2208
- this.send(command, optionsOrCb);
2209
- } else if (typeof cb === "function") {
2210
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2211
- this.send(command, optionsOrCb || {}, cb);
2212
- } else {
2213
- return this.send(command, optionsOrCb);
2214
- }
2215
- }
2216
-
2217
- /**
2218
- * <p>Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed
2219
- * by a trusted publisher. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-trustedcode.html">Configuring code signing</a>.</p>
2220
- *
2221
- * <p>The function's code is locked when you publish a version. You can't modify the code of a published version,
2222
- * only the unpublished version.</p>
2223
- * <note>
2224
- * <p>For a function defined as a container image, Lambda resolves the image tag to an image digest. In Amazon ECR, if
2225
- * you update the image tag to a new image, Lambda does not automatically update the function.</p>
2226
- * </note>
2227
- */
2228
- public updateFunctionCode(
2229
- args: UpdateFunctionCodeCommandInput,
2230
- options?: __HttpHandlerOptions
2231
- ): Promise<UpdateFunctionCodeCommandOutput>;
2232
- public updateFunctionCode(
2233
- args: UpdateFunctionCodeCommandInput,
2234
- cb: (err: any, data?: UpdateFunctionCodeCommandOutput) => void
2235
- ): void;
2236
- public updateFunctionCode(
2237
- args: UpdateFunctionCodeCommandInput,
2238
- options: __HttpHandlerOptions,
2239
- cb: (err: any, data?: UpdateFunctionCodeCommandOutput) => void
2240
- ): void;
2241
- public updateFunctionCode(
2242
- args: UpdateFunctionCodeCommandInput,
2243
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateFunctionCodeCommandOutput) => void),
2244
- cb?: (err: any, data?: UpdateFunctionCodeCommandOutput) => void
2245
- ): Promise<UpdateFunctionCodeCommandOutput> | void {
2246
- const command = new UpdateFunctionCodeCommand(args);
2247
- if (typeof optionsOrCb === "function") {
2248
- this.send(command, optionsOrCb);
2249
- } else if (typeof cb === "function") {
2250
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2251
- this.send(command, optionsOrCb || {}, cb);
2252
- } else {
2253
- return this.send(command, optionsOrCb);
2254
- }
2255
- }
2256
-
2257
- /**
2258
- * <p>Modify the version-specific settings of a Lambda function.</p>
2259
- *
2260
- * <p>When you update a function, Lambda provisions an instance of the function and its supporting resources. If
2261
- * your function connects to a VPC, this process can take a minute. During this time, you can't modify the function,
2262
- * but you can still invoke it. The <code>LastUpdateStatus</code>, <code>LastUpdateStatusReason</code>, and
2263
- * <code>LastUpdateStatusReasonCode</code> fields in the response from <a>GetFunctionConfiguration</a>
2264
- * indicate when the update is complete and the function is processing events with the new configuration. For more
2265
- * information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html">Function
2266
- * States</a>.</p>
2267
- *
2268
- * <p>These settings can vary between versions of a function and are locked when you publish a version. You can't
2269
- * modify the configuration of a published version, only the unpublished version.</p>
2270
- *
2271
- * <p>To configure function concurrency, use <a>PutFunctionConcurrency</a>. To grant invoke permissions
2272
- * to an account or Amazon Web Services service, use <a>AddPermission</a>.</p>
2273
- */
2274
- public updateFunctionConfiguration(
2275
- args: UpdateFunctionConfigurationCommandInput,
2276
- options?: __HttpHandlerOptions
2277
- ): Promise<UpdateFunctionConfigurationCommandOutput>;
2278
- public updateFunctionConfiguration(
2279
- args: UpdateFunctionConfigurationCommandInput,
2280
- cb: (err: any, data?: UpdateFunctionConfigurationCommandOutput) => void
2281
- ): void;
2282
- public updateFunctionConfiguration(
2283
- args: UpdateFunctionConfigurationCommandInput,
2284
- options: __HttpHandlerOptions,
2285
- cb: (err: any, data?: UpdateFunctionConfigurationCommandOutput) => void
2286
- ): void;
2287
- public updateFunctionConfiguration(
2288
- args: UpdateFunctionConfigurationCommandInput,
2289
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateFunctionConfigurationCommandOutput) => void),
2290
- cb?: (err: any, data?: UpdateFunctionConfigurationCommandOutput) => void
2291
- ): Promise<UpdateFunctionConfigurationCommandOutput> | void {
2292
- const command = new UpdateFunctionConfigurationCommand(args);
2293
- if (typeof optionsOrCb === "function") {
2294
- this.send(command, optionsOrCb);
2295
- } else if (typeof cb === "function") {
2296
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2297
- this.send(command, optionsOrCb || {}, cb);
2298
- } else {
2299
- return this.send(command, optionsOrCb);
2300
- }
2301
- }
2302
-
2303
- /**
2304
- * <p>Updates the configuration for asynchronous invocation for a function, version, or alias.</p>
2305
- * <p>To configure options for asynchronous invocation, use <a>PutFunctionEventInvokeConfig</a>.</p>
2306
- */
2307
- public updateFunctionEventInvokeConfig(
2308
- args: UpdateFunctionEventInvokeConfigCommandInput,
2309
- options?: __HttpHandlerOptions
2310
- ): Promise<UpdateFunctionEventInvokeConfigCommandOutput>;
2311
- public updateFunctionEventInvokeConfig(
2312
- args: UpdateFunctionEventInvokeConfigCommandInput,
2313
- cb: (err: any, data?: UpdateFunctionEventInvokeConfigCommandOutput) => void
2314
- ): void;
2315
- public updateFunctionEventInvokeConfig(
2316
- args: UpdateFunctionEventInvokeConfigCommandInput,
2317
- options: __HttpHandlerOptions,
2318
- cb: (err: any, data?: UpdateFunctionEventInvokeConfigCommandOutput) => void
2319
- ): void;
2320
- public updateFunctionEventInvokeConfig(
2321
- args: UpdateFunctionEventInvokeConfigCommandInput,
2322
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateFunctionEventInvokeConfigCommandOutput) => void),
2323
- cb?: (err: any, data?: UpdateFunctionEventInvokeConfigCommandOutput) => void
2324
- ): Promise<UpdateFunctionEventInvokeConfigCommandOutput> | void {
2325
- const command = new UpdateFunctionEventInvokeConfigCommand(args);
2326
- if (typeof optionsOrCb === "function") {
2327
- this.send(command, optionsOrCb);
2328
- } else if (typeof cb === "function") {
2329
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2330
- this.send(command, optionsOrCb || {}, cb);
2331
- } else {
2332
- return this.send(command, optionsOrCb);
2333
- }
2334
- }
2335
- }