@sst-community/sst 4.21.1 → 5.0.0-alpha.2

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 (832) hide show
  1. package/README.md +86 -52
  2. package/package.json +35 -11
  3. package/platform/js/chunks/chunk-HIZZCEDS.js +328 -0
  4. package/platform/js/chunks/chunk-HIZZCEDS.js.map +6 -0
  5. package/platform/js/chunks/chunk-KOKHGKJ2.js +639 -0
  6. package/platform/js/chunks/chunk-KOKHGKJ2.js.map +6 -0
  7. package/platform/js/chunks/chunk-MR4XM5XA.js +473 -0
  8. package/platform/js/chunks/chunk-MR4XM5XA.js.map +6 -0
  9. package/platform/js/chunks/chunk-ONNI4XNK.js +367 -0
  10. package/platform/js/chunks/chunk-ONNI4XNK.js.map +6 -0
  11. package/platform/js/chunks/chunk-VIFHC73J.js +108 -0
  12. package/platform/js/chunks/chunk-VIFHC73J.js.map +6 -0
  13. package/platform/js/chunks/chunk-WJ6BVA46.js +10 -0
  14. package/platform/js/chunks/chunk-WJ6BVA46.js.map +6 -0
  15. package/platform/js/chunks/component-32FCLIRK.js +26 -0
  16. package/platform/js/chunks/component-32FCLIRK.js.map +6 -0
  17. package/platform/js/chunks/config-CRGKEDQW.js +10 -0
  18. package/platform/js/chunks/config-CRGKEDQW.js.map +6 -0
  19. package/platform/js/chunks/link-OJ3RNGQ3.js +9 -0
  20. package/platform/js/chunks/link-OJ3RNGQ3.js.map +6 -0
  21. package/platform/js/components/aws/index.js +35399 -0
  22. package/platform/js/components/aws/index.js.map +6 -0
  23. package/platform/js/components/cloudflare/index.js +3246 -0
  24. package/platform/js/components/cloudflare/index.js.map +6 -0
  25. package/platform/js/components/core.js +114 -0
  26. package/platform/js/components/core.js.map +6 -0
  27. package/platform/js/components/vercel/index.js +120 -0
  28. package/platform/js/components/vercel/index.js.map +6 -0
  29. package/platform/js/testing/index.js +569 -0
  30. package/platform/js/testing/index.js.map +6 -0
  31. package/platform/package.json +25 -0
  32. package/platform/src/ast/add.mjs +190 -0
  33. package/platform/src/auto/run.ts +109 -0
  34. package/platform/src/components/README.md +652 -0
  35. package/platform/src/components/args.ts +133 -0
  36. package/platform/src/components/aws/alb.ts +577 -0
  37. package/platform/src/components/aws/analog.ts +462 -0
  38. package/platform/src/components/aws/apigateway-websocket-route.ts +206 -0
  39. package/platform/src/components/aws/apigateway-websocket.ts +894 -0
  40. package/platform/src/components/aws/apigatewayv1-api-key.ts +90 -0
  41. package/platform/src/components/aws/apigatewayv1-authorizer.ts +178 -0
  42. package/platform/src/components/aws/apigatewayv1-base-route.ts +78 -0
  43. package/platform/src/components/aws/apigatewayv1-integration-route.ts +92 -0
  44. package/platform/src/components/aws/apigatewayv1-lambda-route.ts +152 -0
  45. package/platform/src/components/aws/apigatewayv1-usage-plan.ts +109 -0
  46. package/platform/src/components/aws/apigatewayv1.ts +1691 -0
  47. package/platform/src/components/aws/apigatewayv2-authorizer.ts +199 -0
  48. package/platform/src/components/aws/apigatewayv2-base-route.ts +69 -0
  49. package/platform/src/components/aws/apigatewayv2-lambda-route.ts +141 -0
  50. package/platform/src/components/aws/apigatewayv2-private-route.ts +101 -0
  51. package/platform/src/components/aws/apigatewayv2-url-route.ts +90 -0
  52. package/platform/src/components/aws/apigatewayv2.ts +1439 -0
  53. package/platform/src/components/aws/app-sync-data-source.ts +264 -0
  54. package/platform/src/components/aws/app-sync-function.ts +79 -0
  55. package/platform/src/components/aws/app-sync-resolver.ts +110 -0
  56. package/platform/src/components/aws/app-sync.ts +849 -0
  57. package/platform/src/components/aws/astro.ts +580 -0
  58. package/platform/src/components/aws/aurora.ts +1356 -0
  59. package/platform/src/components/aws/auth-v1.ts +69 -0
  60. package/platform/src/components/aws/auth.ts +417 -0
  61. package/platform/src/components/aws/bucket-lambda-subscriber.ts +162 -0
  62. package/platform/src/components/aws/bucket-notification.ts +254 -0
  63. package/platform/src/components/aws/bucket-queue-subscriber.ts +122 -0
  64. package/platform/src/components/aws/bucket-topic-subscriber.ts +144 -0
  65. package/platform/src/components/aws/bucket.ts +2046 -0
  66. package/platform/src/components/aws/bus-base-subscriber.ts +52 -0
  67. package/platform/src/components/aws/bus-lambda-subscriber.ts +125 -0
  68. package/platform/src/components/aws/bus-queue-subscriber.ts +88 -0
  69. package/platform/src/components/aws/bus.ts +630 -0
  70. package/platform/src/components/aws/cdn.ts +561 -0
  71. package/platform/src/components/aws/cluster-v1.ts +932 -0
  72. package/platform/src/components/aws/cluster.ts +584 -0
  73. package/platform/src/components/aws/cognito-identity-pool.ts +433 -0
  74. package/platform/src/components/aws/cognito-identity-provider.ts +96 -0
  75. package/platform/src/components/aws/cognito-user-pool-client.ts +114 -0
  76. package/platform/src/components/aws/cognito-user-pool.ts +1089 -0
  77. package/platform/src/components/aws/cron-v2.ts +555 -0
  78. package/platform/src/components/aws/cron.ts +435 -0
  79. package/platform/src/components/aws/dns-validated-certificate.ts +108 -0
  80. package/platform/src/components/aws/dns.ts +221 -0
  81. package/platform/src/components/aws/dsql.ts +741 -0
  82. package/platform/src/components/aws/dynamo-lambda-subscriber.ts +124 -0
  83. package/platform/src/components/aws/dynamo.ts +929 -0
  84. package/platform/src/components/aws/efs.ts +410 -0
  85. package/platform/src/components/aws/email.ts +673 -0
  86. package/platform/src/components/aws/fargate.ts +1279 -0
  87. package/platform/src/components/aws/function.ts +3280 -0
  88. package/platform/src/components/aws/helpers/apigateway-account.ts +78 -0
  89. package/platform/src/components/aws/helpers/apigatewayv2-domain.ts +144 -0
  90. package/platform/src/components/aws/helpers/arn.ts +182 -0
  91. package/platform/src/components/aws/helpers/bootstrap.ts +16 -0
  92. package/platform/src/components/aws/helpers/client.ts +76 -0
  93. package/platform/src/components/aws/helpers/container-builder.ts +33 -0
  94. package/platform/src/components/aws/helpers/custom-domain.ts +128 -0
  95. package/platform/src/components/aws/helpers/event-source.ts +41 -0
  96. package/platform/src/components/aws/helpers/fargate.ts +727 -0
  97. package/platform/src/components/aws/helpers/function-builder.ts +133 -0
  98. package/platform/src/components/aws/helpers/function-code.ts +224 -0
  99. package/platform/src/components/aws/helpers/function-part.ts +212 -0
  100. package/platform/src/components/aws/helpers/function-permission.ts +29 -0
  101. package/platform/src/components/aws/helpers/load-balancer-args.ts +88 -0
  102. package/platform/src/components/aws/helpers/load-balancer.ts +17 -0
  103. package/platform/src/components/aws/helpers/provider.ts +36 -0
  104. package/platform/src/components/aws/helpers/queue-policy.ts +33 -0
  105. package/platform/src/components/aws/helpers/rds.ts +212 -0
  106. package/platform/src/components/aws/helpers/site-builder.ts +41 -0
  107. package/platform/src/components/aws/helpers/subscriber.ts +23 -0
  108. package/platform/src/components/aws/helpers/vpc.ts +27 -0
  109. package/platform/src/components/aws/https-redirect.ts +216 -0
  110. package/platform/src/components/aws/iam-edit.ts +50 -0
  111. package/platform/src/components/aws/index.ts +61 -0
  112. package/platform/src/components/aws/kinesis-stream-lambda-subscriber.ts +122 -0
  113. package/platform/src/components/aws/kinesis-stream.ts +416 -0
  114. package/platform/src/components/aws/linkable.ts +32 -0
  115. package/platform/src/components/aws/logging.ts +25 -0
  116. package/platform/src/components/aws/microvm.ts +988 -0
  117. package/platform/src/components/aws/mysql.ts +1050 -0
  118. package/platform/src/components/aws/nextjs.ts +1052 -0
  119. package/platform/src/components/aws/nuxt.ts +527 -0
  120. package/platform/src/components/aws/open-search.ts +603 -0
  121. package/platform/src/components/aws/opencontrol.ts +235 -0
  122. package/platform/src/components/aws/permission.ts +80 -0
  123. package/platform/src/components/aws/postgres-v1.ts +537 -0
  124. package/platform/src/components/aws/postgres.ts +1074 -0
  125. package/platform/src/components/aws/providers/bucket-files.ts +32 -0
  126. package/platform/src/components/aws/providers/distribution-deployment-waiter.ts +27 -0
  127. package/platform/src/components/aws/providers/distribution-invalidation.ts +24 -0
  128. package/platform/src/components/aws/providers/function-environment-update.ts +46 -0
  129. package/platform/src/components/aws/providers/hosted-zone-lookup.ts +25 -0
  130. package/platform/src/components/aws/providers/kv-keys.ts +15 -0
  131. package/platform/src/components/aws/providers/kv-routes-update.ts +24 -0
  132. package/platform/src/components/aws/providers/microvm-image-prune.ts +48 -0
  133. package/platform/src/components/aws/providers/origin-access-control.ts +21 -0
  134. package/platform/src/components/aws/providers/rds-role-lookup.ts +21 -0
  135. package/platform/src/components/aws/providers/vector-table.ts +25 -0
  136. package/platform/src/components/aws/queue-lambda-subscriber.ts +135 -0
  137. package/platform/src/components/aws/queue.ts +712 -0
  138. package/platform/src/components/aws/react.ts +510 -0
  139. package/platform/src/components/aws/realtime-lambda-subscriber.ts +129 -0
  140. package/platform/src/components/aws/realtime.ts +345 -0
  141. package/platform/src/components/aws/redis-v1.ts +595 -0
  142. package/platform/src/components/aws/redis.ts +1078 -0
  143. package/platform/src/components/aws/remix.ts +576 -0
  144. package/platform/src/components/aws/router-base-route.ts +83 -0
  145. package/platform/src/components/aws/router-bucket-route.ts +63 -0
  146. package/platform/src/components/aws/router-url-route.ts +75 -0
  147. package/platform/src/components/aws/router.ts +3294 -0
  148. package/platform/src/components/aws/service-v1.ts +876 -0
  149. package/platform/src/components/aws/service.ts +2994 -0
  150. package/platform/src/components/aws/sns-topic-lambda-subscriber.ts +127 -0
  151. package/platform/src/components/aws/sns-topic-queue-subscriber.ts +105 -0
  152. package/platform/src/components/aws/sns-topic.ts +700 -0
  153. package/platform/src/components/aws/solid-start.ts +467 -0
  154. package/platform/src/components/aws/ssr-site.ts +2204 -0
  155. package/platform/src/components/aws/static-site.ts +1389 -0
  156. package/platform/src/components/aws/step-functions/choice.ts +123 -0
  157. package/platform/src/components/aws/step-functions/fail.ts +69 -0
  158. package/platform/src/components/aws/step-functions/map.ts +264 -0
  159. package/platform/src/components/aws/step-functions/parallel.ts +170 -0
  160. package/platform/src/components/aws/step-functions/pass.ts +48 -0
  161. package/platform/src/components/aws/step-functions/state.ts +376 -0
  162. package/platform/src/components/aws/step-functions/succeed.ts +31 -0
  163. package/platform/src/components/aws/step-functions/task.ts +538 -0
  164. package/platform/src/components/aws/step-functions/wait.ts +105 -0
  165. package/platform/src/components/aws/step-functions.ts +804 -0
  166. package/platform/src/components/aws/svelte-kit.ts +563 -0
  167. package/platform/src/components/aws/takeover/alb.ts +9 -0
  168. package/platform/src/components/aws/takeover/apigatewayv2.ts +43 -0
  169. package/platform/src/components/aws/takeover/app-sync.ts +45 -0
  170. package/platform/src/components/aws/takeover/aurora.ts +19 -0
  171. package/platform/src/components/aws/takeover/bucket.ts +94 -0
  172. package/platform/src/components/aws/takeover/bus.ts +43 -0
  173. package/platform/src/components/aws/takeover/cognito-user-pool.ts +21 -0
  174. package/platform/src/components/aws/takeover/cron-v2.ts +9 -0
  175. package/platform/src/components/aws/takeover/dsql.ts +12 -0
  176. package/platform/src/components/aws/takeover/dynamo.ts +31 -0
  177. package/platform/src/components/aws/takeover/efs.ts +9 -0
  178. package/platform/src/components/aws/takeover/function.ts +21 -0
  179. package/platform/src/components/aws/takeover/helpers.ts +26 -0
  180. package/platform/src/components/aws/takeover/index.ts +27 -0
  181. package/platform/src/components/aws/takeover/mysql.ts +17 -0
  182. package/platform/src/components/aws/takeover/postgres.ts +17 -0
  183. package/platform/src/components/aws/takeover/queue.ts +21 -0
  184. package/platform/src/components/aws/takeover/redis.ts +10 -0
  185. package/platform/src/components/aws/takeover/service.ts +22 -0
  186. package/platform/src/components/aws/takeover/sns-topic.ts +27 -0
  187. package/platform/src/components/aws/takeover/task.ts +13 -0
  188. package/platform/src/components/aws/tan-stack-start.ts +479 -0
  189. package/platform/src/components/aws/task.ts +571 -0
  190. package/platform/src/components/aws/v5/alb.ts +310 -0
  191. package/platform/src/components/aws/v5/apigatewayv2.ts +845 -0
  192. package/platform/src/components/aws/v5/app-sync.ts +673 -0
  193. package/platform/src/components/aws/v5/aurora.ts +855 -0
  194. package/platform/src/components/aws/v5/bucket.ts +1001 -0
  195. package/platform/src/components/aws/v5/bus.ts +321 -0
  196. package/platform/src/components/aws/v5/cluster.ts +230 -0
  197. package/platform/src/components/aws/v5/cognito-user-pool-client.ts +100 -0
  198. package/platform/src/components/aws/v5/cognito-user-pool.ts +693 -0
  199. package/platform/src/components/aws/v5/cron-v2.ts +316 -0
  200. package/platform/src/components/aws/v5/dsql.ts +665 -0
  201. package/platform/src/components/aws/v5/dynamo.ts +477 -0
  202. package/platform/src/components/aws/v5/efs.ts +311 -0
  203. package/platform/src/components/aws/v5/function.ts +1546 -0
  204. package/platform/src/components/aws/v5/index.ts +26 -0
  205. package/platform/src/components/aws/v5/mysql.ts +604 -0
  206. package/platform/src/components/aws/v5/postgres.ts +612 -0
  207. package/platform/src/components/aws/v5/queue.ts +271 -0
  208. package/platform/src/components/aws/v5/redis.ts +550 -0
  209. package/platform/src/components/aws/v5/service.ts +2209 -0
  210. package/platform/src/components/aws/v5/sns-topic.ts +284 -0
  211. package/platform/src/components/aws/v5/task.ts +549 -0
  212. package/platform/src/components/aws/vector.ts +316 -0
  213. package/platform/src/components/aws/vpc-v1.ts +580 -0
  214. package/platform/src/components/aws/vpc.ts +1641 -0
  215. package/platform/src/components/aws/workflow.ts +421 -0
  216. package/platform/src/components/base/base-site.ts +101 -0
  217. package/platform/src/components/base/base-ssr-site.ts +120 -0
  218. package/platform/src/components/base/base-static-site.ts +314 -0
  219. package/platform/src/components/cloudflare/account-id.ts +1 -0
  220. package/platform/src/components/cloudflare/ai.ts +77 -0
  221. package/platform/src/components/cloudflare/astro.ts +355 -0
  222. package/platform/src/components/cloudflare/auth.ts +69 -0
  223. package/platform/src/components/cloudflare/binding.ts +132 -0
  224. package/platform/src/components/cloudflare/bucket.ts +142 -0
  225. package/platform/src/components/cloudflare/cron.ts +207 -0
  226. package/platform/src/components/cloudflare/d1.ts +230 -0
  227. package/platform/src/components/cloudflare/dns.ts +253 -0
  228. package/platform/src/components/cloudflare/durable-object.ts +144 -0
  229. package/platform/src/components/cloudflare/experimental/index.ts +3 -0
  230. package/platform/src/components/cloudflare/experimental/solid-start.ts +288 -0
  231. package/platform/src/components/cloudflare/experimental/static-site.ts +4 -0
  232. package/platform/src/components/cloudflare/helpers/compatibility.ts +44 -0
  233. package/platform/src/components/cloudflare/helpers/fetch.ts +81 -0
  234. package/platform/src/components/cloudflare/helpers/validation.ts +74 -0
  235. package/platform/src/components/cloudflare/helpers/worker-builder.ts +57 -0
  236. package/platform/src/components/cloudflare/helpers/wrangler.ts +222 -0
  237. package/platform/src/components/cloudflare/hyperdrive.ts +402 -0
  238. package/platform/src/components/cloudflare/index.ts +25 -0
  239. package/platform/src/components/cloudflare/kv.ts +218 -0
  240. package/platform/src/components/cloudflare/providers/dns-record.ts +43 -0
  241. package/platform/src/components/cloudflare/providers/kv-data.ts +107 -0
  242. package/platform/src/components/cloudflare/providers/worker-assets.ts +41 -0
  243. package/platform/src/components/cloudflare/providers/worker-placement.ts +93 -0
  244. package/platform/src/components/cloudflare/providers/worker-script.ts +47 -0
  245. package/platform/src/components/cloudflare/providers/worker-url.ts +109 -0
  246. package/platform/src/components/cloudflare/providers/zone-lookup.ts +85 -0
  247. package/platform/src/components/cloudflare/queue-worker-subscriber.ts +192 -0
  248. package/platform/src/components/cloudflare/queue.ts +310 -0
  249. package/platform/src/components/cloudflare/rate-limit.ts +178 -0
  250. package/platform/src/components/cloudflare/react-router.ts +322 -0
  251. package/platform/src/components/cloudflare/ssr-site.ts +293 -0
  252. package/platform/src/components/cloudflare/static-site-v2.ts +428 -0
  253. package/platform/src/components/cloudflare/static-site.ts +470 -0
  254. package/platform/src/components/cloudflare/tan-stack-start.ts +408 -0
  255. package/platform/src/components/cloudflare/worker.ts +1080 -0
  256. package/platform/src/components/cloudflare/workflow.ts +319 -0
  257. package/platform/src/components/component.ts +242 -0
  258. package/platform/src/components/core.ts +43 -0
  259. package/platform/src/components/cpu.ts +10 -0
  260. package/platform/src/components/dns.ts +82 -0
  261. package/platform/src/components/duration.ts +67 -0
  262. package/platform/src/components/error.ts +5 -0
  263. package/platform/src/components/esbuild.ts +15 -0
  264. package/platform/src/components/experimental/dev-command.ts +127 -0
  265. package/platform/src/components/experimental/index.ts +1 -0
  266. package/platform/src/components/groups.ts +9 -0
  267. package/platform/src/components/index.ts +9 -0
  268. package/platform/src/components/input.ts +2 -0
  269. package/platform/src/components/link.ts +201 -0
  270. package/platform/src/components/linkable.ts +360 -0
  271. package/platform/src/components/naming-rules.ts +299 -0
  272. package/platform/src/components/naming.ts +189 -0
  273. package/platform/src/components/parts-component.ts +662 -0
  274. package/platform/src/components/parts.ts +299 -0
  275. package/platform/src/components/path.ts +5 -0
  276. package/platform/src/components/rpc/rpc.ts +110 -0
  277. package/platform/src/components/secret.ts +159 -0
  278. package/platform/src/components/size.ts +28 -0
  279. package/platform/src/components/takeover.ts +131 -0
  280. package/platform/src/components/transform.ts +107 -0
  281. package/platform/src/components/vercel/account-id.ts +1 -0
  282. package/platform/src/components/vercel/dns.ts +171 -0
  283. package/platform/src/components/vercel/index.ts +2 -0
  284. package/platform/src/components/vercel/providers/dns-record.ts +34 -0
  285. package/platform/src/config.ts +1463 -0
  286. package/platform/src/global-aliases.d.ts +37 -0
  287. package/platform/src/global.d.ts +374 -0
  288. package/platform/src/internal.d.ts +18 -0
  289. package/platform/src/runtime/worker/unenv.d.ts +14 -0
  290. package/platform/src/runtime/worker/unenv.mjs +26 -0
  291. package/platform/src/shim/run.js +25 -0
  292. package/platform/src/testing/global.ts +83 -0
  293. package/platform/src/testing/index.ts +103 -0
  294. package/platform/src/testing/mock.ts +646 -0
  295. package/platform/src/testing/vitest.ts +36 -0
  296. package/platform/src/util/compare-semver.ts +23 -0
  297. package/platform/src/util/fs.ts +49 -0
  298. package/platform/src/util/lazy.ts +12 -0
  299. package/platform/src/util/minify.ts +10 -0
  300. package/platform/src/util/package.ts +29 -0
  301. package/platform/src/util/semaphore.ts +29 -0
  302. package/platform/src/util/warn.ts +7 -0
  303. package/platform/types/auto/run.d.ts +9 -0
  304. package/platform/types/auto/run.d.ts.map +1 -0
  305. package/platform/types/components/args.d.ts +77 -0
  306. package/platform/types/components/args.d.ts.map +1 -0
  307. package/platform/types/components/aws/alb.d.ts +283 -0
  308. package/platform/types/components/aws/alb.d.ts.map +1 -0
  309. package/platform/types/components/aws/analog.d.ts +408 -0
  310. package/platform/types/components/aws/analog.d.ts.map +1 -0
  311. package/platform/types/components/aws/apigateway-websocket-route.d.ts +74 -0
  312. package/platform/types/components/aws/apigateway-websocket-route.d.ts.map +1 -0
  313. package/platform/types/components/aws/apigateway-websocket.d.ts +560 -0
  314. package/platform/types/components/aws/apigateway-websocket.d.ts.map +1 -0
  315. package/platform/types/components/aws/apigatewayv1-api-key.d.ts +48 -0
  316. package/platform/types/components/aws/apigatewayv1-api-key.d.ts.map +1 -0
  317. package/platform/types/components/aws/apigatewayv1-authorizer.d.ts +55 -0
  318. package/platform/types/components/aws/apigatewayv1-authorizer.d.ts.map +1 -0
  319. package/platform/types/components/aws/apigatewayv1-base-route.d.ts +36 -0
  320. package/platform/types/components/aws/apigatewayv1-base-route.d.ts.map +1 -0
  321. package/platform/types/components/aws/apigatewayv1-integration-route.d.ts +39 -0
  322. package/platform/types/components/aws/apigatewayv1-integration-route.d.ts.map +1 -0
  323. package/platform/types/components/aws/apigatewayv1-lambda-route.d.ts +53 -0
  324. package/platform/types/components/aws/apigatewayv1-lambda-route.d.ts.map +1 -0
  325. package/platform/types/components/aws/apigatewayv1-usage-plan.d.ts +53 -0
  326. package/platform/types/components/aws/apigatewayv1-usage-plan.d.ts.map +1 -0
  327. package/platform/types/components/aws/apigatewayv1.d.ts +1028 -0
  328. package/platform/types/components/aws/apigatewayv1.d.ts.map +1 -0
  329. package/platform/types/components/aws/apigatewayv2-authorizer.d.ts +54 -0
  330. package/platform/types/components/aws/apigatewayv2-authorizer.d.ts.map +1 -0
  331. package/platform/types/components/aws/apigatewayv2-base-route.d.ts +28 -0
  332. package/platform/types/components/aws/apigatewayv2-base-route.d.ts.map +1 -0
  333. package/platform/types/components/aws/apigatewayv2-lambda-route.d.ts +59 -0
  334. package/platform/types/components/aws/apigatewayv2-lambda-route.d.ts.map +1 -0
  335. package/platform/types/components/aws/apigatewayv2-private-route.d.ts +54 -0
  336. package/platform/types/components/aws/apigatewayv2-private-route.d.ts.map +1 -0
  337. package/platform/types/components/aws/apigatewayv2-url-route.d.ts +44 -0
  338. package/platform/types/components/aws/apigatewayv2-url-route.d.ts.map +1 -0
  339. package/platform/types/components/aws/apigatewayv2.d.ts +955 -0
  340. package/platform/types/components/aws/apigatewayv2.d.ts.map +1 -0
  341. package/platform/types/components/aws/app-sync-data-source.d.ts +52 -0
  342. package/platform/types/components/aws/app-sync-data-source.d.ts.map +1 -0
  343. package/platform/types/components/aws/app-sync-function.d.ts +33 -0
  344. package/platform/types/components/aws/app-sync-function.d.ts.map +1 -0
  345. package/platform/types/components/aws/app-sync-resolver.d.ts +41 -0
  346. package/platform/types/components/aws/app-sync-resolver.d.ts.map +1 -0
  347. package/platform/types/components/aws/app-sync.d.ts +638 -0
  348. package/platform/types/components/aws/app-sync.d.ts.map +1 -0
  349. package/platform/types/components/aws/astro.d.ts +409 -0
  350. package/platform/types/components/aws/astro.d.ts.map +1 -0
  351. package/platform/types/components/aws/aurora.d.ts +720 -0
  352. package/platform/types/components/aws/aurora.d.ts.map +1 -0
  353. package/platform/types/components/aws/auth-v1.d.ts +26 -0
  354. package/platform/types/components/aws/auth-v1.d.ts.map +1 -0
  355. package/platform/types/components/aws/auth.d.ts +295 -0
  356. package/platform/types/components/aws/auth.d.ts.map +1 -0
  357. package/platform/types/components/aws/bucket-lambda-subscriber.d.ts +61 -0
  358. package/platform/types/components/aws/bucket-lambda-subscriber.d.ts.map +1 -0
  359. package/platform/types/components/aws/bucket-notification.d.ts +47 -0
  360. package/platform/types/components/aws/bucket-notification.d.ts.map +1 -0
  361. package/platform/types/components/aws/bucket-queue-subscriber.d.ts +55 -0
  362. package/platform/types/components/aws/bucket-queue-subscriber.d.ts.map +1 -0
  363. package/platform/types/components/aws/bucket-topic-subscriber.d.ts +55 -0
  364. package/platform/types/components/aws/bucket-topic-subscriber.d.ts.map +1 -0
  365. package/platform/types/components/aws/bucket.d.ts +1356 -0
  366. package/platform/types/components/aws/bucket.d.ts.map +1 -0
  367. package/platform/types/components/aws/bus-base-subscriber.d.ts +20 -0
  368. package/platform/types/components/aws/bus-base-subscriber.d.ts.map +1 -0
  369. package/platform/types/components/aws/bus-lambda-subscriber.d.ts +50 -0
  370. package/platform/types/components/aws/bus-lambda-subscriber.d.ts.map +1 -0
  371. package/platform/types/components/aws/bus-queue-subscriber.d.ts +44 -0
  372. package/platform/types/components/aws/bus-queue-subscriber.d.ts.map +1 -0
  373. package/platform/types/components/aws/bus.d.ts +447 -0
  374. package/platform/types/components/aws/bus.d.ts.map +1 -0
  375. package/platform/types/components/aws/cdn.d.ts +310 -0
  376. package/platform/types/components/aws/cdn.d.ts.map +1 -0
  377. package/platform/types/components/aws/cluster-v1.d.ts +885 -0
  378. package/platform/types/components/aws/cluster-v1.d.ts.map +1 -0
  379. package/platform/types/components/aws/cluster.d.ts +364 -0
  380. package/platform/types/components/aws/cluster.d.ts.map +1 -0
  381. package/platform/types/components/aws/cognito-identity-pool.d.ts +199 -0
  382. package/platform/types/components/aws/cognito-identity-pool.d.ts.map +1 -0
  383. package/platform/types/components/aws/cognito-identity-provider.d.ts +38 -0
  384. package/platform/types/components/aws/cognito-identity-provider.d.ts.map +1 -0
  385. package/platform/types/components/aws/cognito-user-pool-client.d.ts +50 -0
  386. package/platform/types/components/aws/cognito-user-pool-client.d.ts.map +1 -0
  387. package/platform/types/components/aws/cognito-user-pool.d.ts +703 -0
  388. package/platform/types/components/aws/cognito-user-pool.d.ts.map +1 -0
  389. package/platform/types/components/aws/cron-v2.d.ts +325 -0
  390. package/platform/types/components/aws/cron-v2.d.ts.map +1 -0
  391. package/platform/types/components/aws/cron.d.ts +259 -0
  392. package/platform/types/components/aws/cron.d.ts.map +1 -0
  393. package/platform/types/components/aws/dns-validated-certificate.d.ts +27 -0
  394. package/platform/types/components/aws/dns-validated-certificate.d.ts.map +1 -0
  395. package/platform/types/components/aws/dns.d.ts +94 -0
  396. package/platform/types/components/aws/dns.d.ts.map +1 -0
  397. package/platform/types/components/aws/dsql.d.ts +369 -0
  398. package/platform/types/components/aws/dsql.d.ts.map +1 -0
  399. package/platform/types/components/aws/dynamo-lambda-subscriber.d.ts +55 -0
  400. package/platform/types/components/aws/dynamo-lambda-subscriber.d.ts.map +1 -0
  401. package/platform/types/components/aws/dynamo.d.ts +628 -0
  402. package/platform/types/components/aws/dynamo.d.ts.map +1 -0
  403. package/platform/types/components/aws/efs.d.ts +217 -0
  404. package/platform/types/components/aws/efs.d.ts.map +1 -0
  405. package/platform/types/components/aws/email.d.ts +370 -0
  406. package/platform/types/components/aws/email.d.ts.map +1 -0
  407. package/platform/types/components/aws/fargate.d.ts +894 -0
  408. package/platform/types/components/aws/fargate.d.ts.map +1 -0
  409. package/platform/types/components/aws/function.d.ts +1780 -0
  410. package/platform/types/components/aws/function.d.ts.map +1 -0
  411. package/platform/types/components/aws/helpers/apigateway-account.d.ts +3 -0
  412. package/platform/types/components/aws/helpers/apigateway-account.d.ts.map +1 -0
  413. package/platform/types/components/aws/helpers/apigatewayv2-domain.d.ts +144 -0
  414. package/platform/types/components/aws/helpers/apigatewayv2-domain.d.ts.map +1 -0
  415. package/platform/types/components/aws/helpers/arn.d.ts +51 -0
  416. package/platform/types/components/aws/helpers/arn.d.ts.map +1 -0
  417. package/platform/types/components/aws/helpers/bootstrap.d.ts +13 -0
  418. package/platform/types/components/aws/helpers/bootstrap.d.ts.map +1 -0
  419. package/platform/types/components/aws/helpers/client.d.ts +7 -0
  420. package/platform/types/components/aws/helpers/client.d.ts.map +1 -0
  421. package/platform/types/components/aws/helpers/container-builder.d.ts +4 -0
  422. package/platform/types/components/aws/helpers/container-builder.d.ts.map +1 -0
  423. package/platform/types/components/aws/helpers/custom-domain.d.ts +111 -0
  424. package/platform/types/components/aws/helpers/custom-domain.d.ts.map +1 -0
  425. package/platform/types/components/aws/helpers/event-source.d.ts +26 -0
  426. package/platform/types/components/aws/helpers/event-source.d.ts.map +1 -0
  427. package/platform/types/components/aws/helpers/fargate.d.ts +225 -0
  428. package/platform/types/components/aws/helpers/fargate.d.ts.map +1 -0
  429. package/platform/types/components/aws/helpers/function-builder.d.ts +14 -0
  430. package/platform/types/components/aws/helpers/function-builder.d.ts.map +1 -0
  431. package/platform/types/components/aws/helpers/function-code.d.ts +80 -0
  432. package/platform/types/components/aws/helpers/function-code.d.ts.map +1 -0
  433. package/platform/types/components/aws/helpers/function-part.d.ts +61 -0
  434. package/platform/types/components/aws/helpers/function-part.d.ts.map +1 -0
  435. package/platform/types/components/aws/helpers/function-permission.d.ts +17 -0
  436. package/platform/types/components/aws/helpers/function-permission.d.ts.map +1 -0
  437. package/platform/types/components/aws/helpers/load-balancer-args.d.ts +40 -0
  438. package/platform/types/components/aws/helpers/load-balancer-args.d.ts.map +1 -0
  439. package/platform/types/components/aws/helpers/load-balancer.d.ts +9 -0
  440. package/platform/types/components/aws/helpers/load-balancer.d.ts.map +1 -0
  441. package/platform/types/components/aws/helpers/provider.d.ts +3 -0
  442. package/platform/types/components/aws/helpers/provider.d.ts.map +1 -0
  443. package/platform/types/components/aws/helpers/queue-policy.d.ts +11 -0
  444. package/platform/types/components/aws/helpers/queue-policy.d.ts.map +1 -0
  445. package/platform/types/components/aws/helpers/rds.d.ts +98 -0
  446. package/platform/types/components/aws/helpers/rds.d.ts.map +1 -0
  447. package/platform/types/components/aws/helpers/site-builder.d.ts +4 -0
  448. package/platform/types/components/aws/helpers/site-builder.d.ts.map +1 -0
  449. package/platform/types/components/aws/helpers/subscriber.d.ts +6 -0
  450. package/platform/types/components/aws/helpers/subscriber.d.ts.map +1 -0
  451. package/platform/types/components/aws/helpers/vpc.d.ts +14 -0
  452. package/platform/types/components/aws/helpers/vpc.d.ts.map +1 -0
  453. package/platform/types/components/aws/https-redirect.d.ts +38 -0
  454. package/platform/types/components/aws/https-redirect.d.ts.map +1 -0
  455. package/platform/types/components/aws/iam-edit.d.ts +39 -0
  456. package/platform/types/components/aws/iam-edit.d.ts.map +1 -0
  457. package/platform/types/components/aws/index.d.ts +56 -0
  458. package/platform/types/components/aws/index.d.ts.map +1 -0
  459. package/platform/types/components/aws/kinesis-stream-lambda-subscriber.d.ts +49 -0
  460. package/platform/types/components/aws/kinesis-stream-lambda-subscriber.d.ts.map +1 -0
  461. package/platform/types/components/aws/kinesis-stream.d.ts +254 -0
  462. package/platform/types/components/aws/kinesis-stream.d.ts.map +1 -0
  463. package/platform/types/components/aws/linkable.d.ts +17 -0
  464. package/platform/types/components/aws/linkable.d.ts.map +1 -0
  465. package/platform/types/components/aws/logging.d.ts +26 -0
  466. package/platform/types/components/aws/logging.d.ts.map +1 -0
  467. package/platform/types/components/aws/microvm.d.ts +439 -0
  468. package/platform/types/components/aws/microvm.d.ts.map +1 -0
  469. package/platform/types/components/aws/mysql.d.ts +528 -0
  470. package/platform/types/components/aws/mysql.d.ts.map +1 -0
  471. package/platform/types/components/aws/nextjs.d.ts +534 -0
  472. package/platform/types/components/aws/nextjs.d.ts.map +1 -0
  473. package/platform/types/components/aws/nuxt.d.ts +480 -0
  474. package/platform/types/components/aws/nuxt.d.ts.map +1 -0
  475. package/platform/types/components/aws/open-search.d.ts +306 -0
  476. package/platform/types/components/aws/open-search.d.ts.map +1 -0
  477. package/platform/types/components/aws/opencontrol.d.ts +169 -0
  478. package/platform/types/components/aws/opencontrol.d.ts.map +1 -0
  479. package/platform/types/components/aws/permission.d.ts +80 -0
  480. package/platform/types/components/aws/permission.d.ts.map +1 -0
  481. package/platform/types/components/aws/postgres-v1.d.ts +328 -0
  482. package/platform/types/components/aws/postgres-v1.d.ts.map +1 -0
  483. package/platform/types/components/aws/postgres.d.ts +529 -0
  484. package/platform/types/components/aws/postgres.d.ts.map +1 -0
  485. package/platform/types/components/aws/providers/bucket-files.d.ts +18 -0
  486. package/platform/types/components/aws/providers/bucket-files.d.ts.map +1 -0
  487. package/platform/types/components/aws/providers/distribution-deployment-waiter.d.ts +13 -0
  488. package/platform/types/components/aws/providers/distribution-deployment-waiter.d.ts.map +1 -0
  489. package/platform/types/components/aws/providers/distribution-invalidation.d.ts +11 -0
  490. package/platform/types/components/aws/providers/distribution-invalidation.d.ts.map +1 -0
  491. package/platform/types/components/aws/providers/function-environment-update.d.ts +33 -0
  492. package/platform/types/components/aws/providers/function-environment-update.d.ts.map +1 -0
  493. package/platform/types/components/aws/providers/hosted-zone-lookup.d.ts +11 -0
  494. package/platform/types/components/aws/providers/hosted-zone-lookup.d.ts.map +1 -0
  495. package/platform/types/components/aws/providers/kv-keys.d.ts +11 -0
  496. package/platform/types/components/aws/providers/kv-keys.d.ts.map +1 -0
  497. package/platform/types/components/aws/providers/kv-routes-update.d.ts +11 -0
  498. package/platform/types/components/aws/providers/kv-routes-update.d.ts.map +1 -0
  499. package/platform/types/components/aws/providers/microvm-image-prune.d.ts +35 -0
  500. package/platform/types/components/aws/providers/microvm-image-prune.d.ts.map +1 -0
  501. package/platform/types/components/aws/providers/origin-access-control.d.ts +8 -0
  502. package/platform/types/components/aws/providers/origin-access-control.d.ts.map +1 -0
  503. package/platform/types/components/aws/providers/rds-role-lookup.d.ts +8 -0
  504. package/platform/types/components/aws/providers/rds-role-lookup.d.ts.map +1 -0
  505. package/platform/types/components/aws/providers/vector-table.d.ts +12 -0
  506. package/platform/types/components/aws/providers/vector-table.d.ts.map +1 -0
  507. package/platform/types/components/aws/queue-lambda-subscriber.d.ts +53 -0
  508. package/platform/types/components/aws/queue-lambda-subscriber.d.ts.map +1 -0
  509. package/platform/types/components/aws/queue.d.ts +494 -0
  510. package/platform/types/components/aws/queue.d.ts.map +1 -0
  511. package/platform/types/components/aws/react.d.ts +407 -0
  512. package/platform/types/components/aws/react.d.ts.map +1 -0
  513. package/platform/types/components/aws/realtime-lambda-subscriber.d.ts +53 -0
  514. package/platform/types/components/aws/realtime-lambda-subscriber.d.ts.map +1 -0
  515. package/platform/types/components/aws/realtime.d.ts +237 -0
  516. package/platform/types/components/aws/realtime.d.ts.map +1 -0
  517. package/platform/types/components/aws/redis-v1.d.ts +348 -0
  518. package/platform/types/components/aws/redis-v1.d.ts.map +1 -0
  519. package/platform/types/components/aws/redis.d.ts +545 -0
  520. package/platform/types/components/aws/redis.d.ts.map +1 -0
  521. package/platform/types/components/aws/remix.d.ts +408 -0
  522. package/platform/types/components/aws/remix.d.ts.map +1 -0
  523. package/platform/types/components/aws/router-base-route.d.ts +28 -0
  524. package/platform/types/components/aws/router-base-route.d.ts.map +1 -0
  525. package/platform/types/components/aws/router-bucket-route.d.ts +29 -0
  526. package/platform/types/components/aws/router-bucket-route.d.ts.map +1 -0
  527. package/platform/types/components/aws/router-url-route.d.ts +28 -0
  528. package/platform/types/components/aws/router-url-route.d.ts.map +1 -0
  529. package/platform/types/components/aws/router.d.ts +1767 -0
  530. package/platform/types/components/aws/router.d.ts.map +1 -0
  531. package/platform/types/components/aws/service-v1.d.ts +78 -0
  532. package/platform/types/components/aws/service-v1.d.ts.map +1 -0
  533. package/platform/types/components/aws/service.d.ts +1756 -0
  534. package/platform/types/components/aws/service.d.ts.map +1 -0
  535. package/platform/types/components/aws/sns-topic-lambda-subscriber.d.ts +53 -0
  536. package/platform/types/components/aws/sns-topic-lambda-subscriber.d.ts.map +1 -0
  537. package/platform/types/components/aws/sns-topic-queue-subscriber.d.ts +55 -0
  538. package/platform/types/components/aws/sns-topic-queue-subscriber.d.ts.map +1 -0
  539. package/platform/types/components/aws/sns-topic.d.ts +394 -0
  540. package/platform/types/components/aws/sns-topic.d.ts.map +1 -0
  541. package/platform/types/components/aws/solid-start.d.ts +399 -0
  542. package/platform/types/components/aws/solid-start.d.ts.map +1 -0
  543. package/platform/types/components/aws/ssr-site.d.ts +895 -0
  544. package/platform/types/components/aws/ssr-site.d.ts.map +1 -0
  545. package/platform/types/components/aws/static-site.d.ts +744 -0
  546. package/platform/types/components/aws/static-site.d.ts.map +1 -0
  547. package/platform/types/components/aws/step-functions/choice.d.ts +73 -0
  548. package/platform/types/components/aws/step-functions/choice.d.ts.map +1 -0
  549. package/platform/types/components/aws/step-functions/fail.d.ts +63 -0
  550. package/platform/types/components/aws/step-functions/fail.d.ts.map +1 -0
  551. package/platform/types/components/aws/step-functions/map.d.ts +236 -0
  552. package/platform/types/components/aws/step-functions/map.d.ts.map +1 -0
  553. package/platform/types/components/aws/step-functions/parallel.d.ts +127 -0
  554. package/platform/types/components/aws/step-functions/parallel.d.ts.map +1 -0
  555. package/platform/types/components/aws/step-functions/pass.d.ts +39 -0
  556. package/platform/types/components/aws/step-functions/pass.d.ts.map +1 -0
  557. package/platform/types/components/aws/step-functions/state.d.ts +231 -0
  558. package/platform/types/components/aws/step-functions/state.d.ts.map +1 -0
  559. package/platform/types/components/aws/step-functions/succeed.d.ts +26 -0
  560. package/platform/types/components/aws/step-functions/succeed.d.ts.map +1 -0
  561. package/platform/types/components/aws/step-functions/task.d.ts +485 -0
  562. package/platform/types/components/aws/step-functions/task.d.ts.map +1 -0
  563. package/platform/types/components/aws/step-functions/wait.d.ts +91 -0
  564. package/platform/types/components/aws/step-functions/wait.d.ts.map +1 -0
  565. package/platform/types/components/aws/step-functions.d.ts +478 -0
  566. package/platform/types/components/aws/step-functions.d.ts.map +1 -0
  567. package/platform/types/components/aws/svelte-kit.d.ts +456 -0
  568. package/platform/types/components/aws/svelte-kit.d.ts.map +1 -0
  569. package/platform/types/components/aws/takeover/alb.d.ts +2 -0
  570. package/platform/types/components/aws/takeover/alb.d.ts.map +1 -0
  571. package/platform/types/components/aws/takeover/apigatewayv2.d.ts +2 -0
  572. package/platform/types/components/aws/takeover/apigatewayv2.d.ts.map +1 -0
  573. package/platform/types/components/aws/takeover/app-sync.d.ts +2 -0
  574. package/platform/types/components/aws/takeover/app-sync.d.ts.map +1 -0
  575. package/platform/types/components/aws/takeover/aurora.d.ts +2 -0
  576. package/platform/types/components/aws/takeover/aurora.d.ts.map +1 -0
  577. package/platform/types/components/aws/takeover/bucket.d.ts +2 -0
  578. package/platform/types/components/aws/takeover/bucket.d.ts.map +1 -0
  579. package/platform/types/components/aws/takeover/bus.d.ts +2 -0
  580. package/platform/types/components/aws/takeover/bus.d.ts.map +1 -0
  581. package/platform/types/components/aws/takeover/cognito-user-pool.d.ts +2 -0
  582. package/platform/types/components/aws/takeover/cognito-user-pool.d.ts.map +1 -0
  583. package/platform/types/components/aws/takeover/cron-v2.d.ts +2 -0
  584. package/platform/types/components/aws/takeover/cron-v2.d.ts.map +1 -0
  585. package/platform/types/components/aws/takeover/dsql.d.ts +2 -0
  586. package/platform/types/components/aws/takeover/dsql.d.ts.map +1 -0
  587. package/platform/types/components/aws/takeover/dynamo.d.ts +2 -0
  588. package/platform/types/components/aws/takeover/dynamo.d.ts.map +1 -0
  589. package/platform/types/components/aws/takeover/efs.d.ts +2 -0
  590. package/platform/types/components/aws/takeover/efs.d.ts.map +1 -0
  591. package/platform/types/components/aws/takeover/function.d.ts +2 -0
  592. package/platform/types/components/aws/takeover/function.d.ts.map +1 -0
  593. package/platform/types/components/aws/takeover/helpers.d.ts +16 -0
  594. package/platform/types/components/aws/takeover/helpers.d.ts.map +1 -0
  595. package/platform/types/components/aws/takeover/index.d.ts +28 -0
  596. package/platform/types/components/aws/takeover/index.d.ts.map +1 -0
  597. package/platform/types/components/aws/takeover/mysql.d.ts +2 -0
  598. package/platform/types/components/aws/takeover/mysql.d.ts.map +1 -0
  599. package/platform/types/components/aws/takeover/postgres.d.ts +2 -0
  600. package/platform/types/components/aws/takeover/postgres.d.ts.map +1 -0
  601. package/platform/types/components/aws/takeover/queue.d.ts +2 -0
  602. package/platform/types/components/aws/takeover/queue.d.ts.map +1 -0
  603. package/platform/types/components/aws/takeover/redis.d.ts +2 -0
  604. package/platform/types/components/aws/takeover/redis.d.ts.map +1 -0
  605. package/platform/types/components/aws/takeover/service.d.ts +2 -0
  606. package/platform/types/components/aws/takeover/service.d.ts.map +1 -0
  607. package/platform/types/components/aws/takeover/sns-topic.d.ts +2 -0
  608. package/platform/types/components/aws/takeover/sns-topic.d.ts.map +1 -0
  609. package/platform/types/components/aws/takeover/task.d.ts +2 -0
  610. package/platform/types/components/aws/takeover/task.d.ts.map +1 -0
  611. package/platform/types/components/aws/tan-stack-start.d.ts +359 -0
  612. package/platform/types/components/aws/tan-stack-start.d.ts.map +1 -0
  613. package/platform/types/components/aws/task.d.ts +342 -0
  614. package/platform/types/components/aws/task.d.ts.map +1 -0
  615. package/platform/types/components/aws/v5/alb.d.ts +177 -0
  616. package/platform/types/components/aws/v5/alb.d.ts.map +1 -0
  617. package/platform/types/components/aws/v5/apigatewayv2.d.ts +482 -0
  618. package/platform/types/components/aws/v5/apigatewayv2.d.ts.map +1 -0
  619. package/platform/types/components/aws/v5/app-sync.d.ts +424 -0
  620. package/platform/types/components/aws/v5/app-sync.d.ts.map +1 -0
  621. package/platform/types/components/aws/v5/aurora.d.ts +459 -0
  622. package/platform/types/components/aws/v5/aurora.d.ts.map +1 -0
  623. package/platform/types/components/aws/v5/bucket.d.ts +578 -0
  624. package/platform/types/components/aws/v5/bucket.d.ts.map +1 -0
  625. package/platform/types/components/aws/v5/bus.d.ts +255 -0
  626. package/platform/types/components/aws/v5/bus.d.ts.map +1 -0
  627. package/platform/types/components/aws/v5/cluster.d.ts +167 -0
  628. package/platform/types/components/aws/v5/cluster.d.ts.map +1 -0
  629. package/platform/types/components/aws/v5/cognito-user-pool-client.d.ts +69 -0
  630. package/platform/types/components/aws/v5/cognito-user-pool-client.d.ts.map +1 -0
  631. package/platform/types/components/aws/v5/cognito-user-pool.d.ts +396 -0
  632. package/platform/types/components/aws/v5/cognito-user-pool.d.ts.map +1 -0
  633. package/platform/types/components/aws/v5/cron-v2.d.ts +206 -0
  634. package/platform/types/components/aws/v5/cron-v2.d.ts.map +1 -0
  635. package/platform/types/components/aws/v5/dsql.d.ts +453 -0
  636. package/platform/types/components/aws/v5/dsql.d.ts.map +1 -0
  637. package/platform/types/components/aws/v5/dynamo.d.ts +328 -0
  638. package/platform/types/components/aws/v5/dynamo.d.ts.map +1 -0
  639. package/platform/types/components/aws/v5/efs.d.ts +178 -0
  640. package/platform/types/components/aws/v5/efs.d.ts.map +1 -0
  641. package/platform/types/components/aws/v5/function.d.ts +586 -0
  642. package/platform/types/components/aws/v5/function.d.ts.map +1 -0
  643. package/platform/types/components/aws/v5/index.d.ts +27 -0
  644. package/platform/types/components/aws/v5/index.d.ts.map +1 -0
  645. package/platform/types/components/aws/v5/mysql.d.ts +347 -0
  646. package/platform/types/components/aws/v5/mysql.d.ts.map +1 -0
  647. package/platform/types/components/aws/v5/postgres.d.ts +348 -0
  648. package/platform/types/components/aws/v5/postgres.d.ts.map +1 -0
  649. package/platform/types/components/aws/v5/queue.d.ts +190 -0
  650. package/platform/types/components/aws/v5/queue.d.ts.map +1 -0
  651. package/platform/types/components/aws/v5/redis.d.ts +214 -0
  652. package/platform/types/components/aws/v5/redis.d.ts.map +1 -0
  653. package/platform/types/components/aws/v5/service.d.ts +1347 -0
  654. package/platform/types/components/aws/v5/service.d.ts.map +1 -0
  655. package/platform/types/components/aws/v5/sns-topic.d.ts +226 -0
  656. package/platform/types/components/aws/v5/sns-topic.d.ts.map +1 -0
  657. package/platform/types/components/aws/v5/task.d.ts +346 -0
  658. package/platform/types/components/aws/v5/task.d.ts.map +1 -0
  659. package/platform/types/components/aws/vector.d.ts +163 -0
  660. package/platform/types/components/aws/vector.d.ts.map +1 -0
  661. package/platform/types/components/aws/vpc-v1.d.ts +208 -0
  662. package/platform/types/components/aws/vpc-v1.d.ts.map +1 -0
  663. package/platform/types/components/aws/vpc.d.ts +491 -0
  664. package/platform/types/components/aws/vpc.d.ts.map +1 -0
  665. package/platform/types/components/aws/workflow.d.ts +331 -0
  666. package/platform/types/components/aws/workflow.d.ts.map +1 -0
  667. package/platform/types/components/base/base-site.d.ts +53 -0
  668. package/platform/types/components/base/base-site.d.ts.map +1 -0
  669. package/platform/types/components/base/base-ssr-site.d.ts +13 -0
  670. package/platform/types/components/base/base-ssr-site.d.ts.map +1 -0
  671. package/platform/types/components/base/base-static-site.d.ts +199 -0
  672. package/platform/types/components/base/base-static-site.d.ts.map +1 -0
  673. package/platform/types/components/cloudflare/account-id.d.ts +2 -0
  674. package/platform/types/components/cloudflare/account-id.d.ts.map +1 -0
  675. package/platform/types/components/cloudflare/ai.d.ts +68 -0
  676. package/platform/types/components/cloudflare/ai.d.ts.map +1 -0
  677. package/platform/types/components/cloudflare/astro.d.ts +249 -0
  678. package/platform/types/components/cloudflare/astro.d.ts.map +1 -0
  679. package/platform/types/components/cloudflare/auth.d.ts +22 -0
  680. package/platform/types/components/cloudflare/auth.d.ts.map +1 -0
  681. package/platform/types/components/cloudflare/binding.d.ts +109 -0
  682. package/platform/types/components/cloudflare/binding.d.ts.map +1 -0
  683. package/platform/types/components/cloudflare/bucket.d.ts +98 -0
  684. package/platform/types/components/cloudflare/bucket.d.ts.map +1 -0
  685. package/platform/types/components/cloudflare/cron.d.ts +151 -0
  686. package/platform/types/components/cloudflare/cron.d.ts.map +1 -0
  687. package/platform/types/components/cloudflare/d1.d.ts +142 -0
  688. package/platform/types/components/cloudflare/d1.d.ts.map +1 -0
  689. package/platform/types/components/cloudflare/dns.d.ts +100 -0
  690. package/platform/types/components/cloudflare/dns.d.ts.map +1 -0
  691. package/platform/types/components/cloudflare/durable-object.d.ts +125 -0
  692. package/platform/types/components/cloudflare/durable-object.d.ts.map +1 -0
  693. package/platform/types/components/cloudflare/experimental/index.d.ts +4 -0
  694. package/platform/types/components/cloudflare/experimental/index.d.ts.map +1 -0
  695. package/platform/types/components/cloudflare/experimental/solid-start.d.ts +219 -0
  696. package/platform/types/components/cloudflare/experimental/solid-start.d.ts.map +1 -0
  697. package/platform/types/components/cloudflare/experimental/static-site.d.ts +3 -0
  698. package/platform/types/components/cloudflare/experimental/static-site.d.ts.map +1 -0
  699. package/platform/types/components/cloudflare/helpers/compatibility.d.ts +21 -0
  700. package/platform/types/components/cloudflare/helpers/compatibility.d.ts.map +1 -0
  701. package/platform/types/components/cloudflare/helpers/fetch.d.ts +19 -0
  702. package/platform/types/components/cloudflare/helpers/fetch.d.ts.map +1 -0
  703. package/platform/types/components/cloudflare/helpers/validation.d.ts +15 -0
  704. package/platform/types/components/cloudflare/helpers/validation.d.ts.map +1 -0
  705. package/platform/types/components/cloudflare/helpers/worker-builder.d.ts +10 -0
  706. package/platform/types/components/cloudflare/helpers/worker-builder.d.ts.map +1 -0
  707. package/platform/types/components/cloudflare/helpers/wrangler.d.ts +31 -0
  708. package/platform/types/components/cloudflare/helpers/wrangler.d.ts.map +1 -0
  709. package/platform/types/components/cloudflare/hyperdrive.d.ts +302 -0
  710. package/platform/types/components/cloudflare/hyperdrive.d.ts.map +1 -0
  711. package/platform/types/components/cloudflare/index.d.ts +25 -0
  712. package/platform/types/components/cloudflare/index.d.ts.map +1 -0
  713. package/platform/types/components/cloudflare/kv.d.ts +140 -0
  714. package/platform/types/components/cloudflare/kv.d.ts.map +1 -0
  715. package/platform/types/components/cloudflare/providers/dns-record.d.ts +21 -0
  716. package/platform/types/components/cloudflare/providers/dns-record.d.ts.map +1 -0
  717. package/platform/types/components/cloudflare/providers/kv-data.d.ts +23 -0
  718. package/platform/types/components/cloudflare/providers/kv-data.d.ts.map +1 -0
  719. package/platform/types/components/cloudflare/providers/worker-assets.d.ts +19 -0
  720. package/platform/types/components/cloudflare/providers/worker-assets.d.ts.map +1 -0
  721. package/platform/types/components/cloudflare/providers/worker-placement.d.ts +27 -0
  722. package/platform/types/components/cloudflare/providers/worker-placement.d.ts.map +1 -0
  723. package/platform/types/components/cloudflare/providers/worker-script.d.ts +23 -0
  724. package/platform/types/components/cloudflare/providers/worker-script.d.ts.map +1 -0
  725. package/platform/types/components/cloudflare/providers/worker-url.d.ts +24 -0
  726. package/platform/types/components/cloudflare/providers/worker-url.d.ts.map +1 -0
  727. package/platform/types/components/cloudflare/providers/zone-lookup.d.ts +22 -0
  728. package/platform/types/components/cloudflare/providers/zone-lookup.d.ts.map +1 -0
  729. package/platform/types/components/cloudflare/queue-worker-subscriber.d.ts +122 -0
  730. package/platform/types/components/cloudflare/queue-worker-subscriber.d.ts.map +1 -0
  731. package/platform/types/components/cloudflare/queue.d.ts +235 -0
  732. package/platform/types/components/cloudflare/queue.d.ts.map +1 -0
  733. package/platform/types/components/cloudflare/rate-limit.d.ts +117 -0
  734. package/platform/types/components/cloudflare/rate-limit.d.ts.map +1 -0
  735. package/platform/types/components/cloudflare/react-router.d.ts +262 -0
  736. package/platform/types/components/cloudflare/react-router.d.ts.map +1 -0
  737. package/platform/types/components/cloudflare/ssr-site.d.ts +60 -0
  738. package/platform/types/components/cloudflare/ssr-site.d.ts.map +1 -0
  739. package/platform/types/components/cloudflare/static-site-v2.d.ts +302 -0
  740. package/platform/types/components/cloudflare/static-site-v2.d.ts.map +1 -0
  741. package/platform/types/components/cloudflare/static-site.d.ts +270 -0
  742. package/platform/types/components/cloudflare/static-site.d.ts.map +1 -0
  743. package/platform/types/components/cloudflare/tan-stack-start.d.ts +259 -0
  744. package/platform/types/components/cloudflare/tan-stack-start.d.ts.map +1 -0
  745. package/platform/types/components/cloudflare/worker.d.ts +483 -0
  746. package/platform/types/components/cloudflare/worker.d.ts.map +1 -0
  747. package/platform/types/components/cloudflare/workflow.d.ts +248 -0
  748. package/platform/types/components/cloudflare/workflow.d.ts.map +1 -0
  749. package/platform/types/components/component.d.ts +67 -0
  750. package/platform/types/components/component.d.ts.map +1 -0
  751. package/platform/types/components/core.d.ts +16 -0
  752. package/platform/types/components/core.d.ts.map +1 -0
  753. package/platform/types/components/cpu.d.ts +3 -0
  754. package/platform/types/components/cpu.d.ts.map +1 -0
  755. package/platform/types/components/dns.d.ts +63 -0
  756. package/platform/types/components/dns.d.ts.map +1 -0
  757. package/platform/types/components/duration.d.ts +9 -0
  758. package/platform/types/components/duration.d.ts.map +1 -0
  759. package/platform/types/components/error.d.ts +4 -0
  760. package/platform/types/components/error.d.ts.map +1 -0
  761. package/platform/types/components/esbuild.d.ts +3 -0
  762. package/platform/types/components/esbuild.d.ts.map +1 -0
  763. package/platform/types/components/experimental/dev-command.d.ts +99 -0
  764. package/platform/types/components/experimental/dev-command.d.ts.map +1 -0
  765. package/platform/types/components/experimental/index.d.ts +2 -0
  766. package/platform/types/components/experimental/index.d.ts.map +1 -0
  767. package/platform/types/components/groups.d.ts +6 -0
  768. package/platform/types/components/groups.d.ts.map +1 -0
  769. package/platform/types/components/index.d.ts +5 -0
  770. package/platform/types/components/index.d.ts.map +1 -0
  771. package/platform/types/components/input.d.ts +3 -0
  772. package/platform/types/components/input.d.ts.map +1 -0
  773. package/platform/types/components/link.d.ts +41 -0
  774. package/platform/types/components/link.d.ts.map +1 -0
  775. package/platform/types/components/linkable.d.ts +301 -0
  776. package/platform/types/components/linkable.d.ts.map +1 -0
  777. package/platform/types/components/naming-rules.d.ts +32 -0
  778. package/platform/types/components/naming-rules.d.ts.map +1 -0
  779. package/platform/types/components/naming.d.ts +21 -0
  780. package/platform/types/components/naming.d.ts.map +1 -0
  781. package/platform/types/components/parts-component.d.ts +242 -0
  782. package/platform/types/components/parts-component.d.ts.map +1 -0
  783. package/platform/types/components/parts.d.ts +194 -0
  784. package/platform/types/components/parts.d.ts.map +1 -0
  785. package/platform/types/components/path.d.ts +2 -0
  786. package/platform/types/components/path.d.ts.map +1 -0
  787. package/platform/types/components/rpc/rpc.d.ts +19 -0
  788. package/platform/types/components/rpc/rpc.d.ts.map +1 -0
  789. package/platform/types/components/secret.d.ts +123 -0
  790. package/platform/types/components/secret.d.ts.map +1 -0
  791. package/platform/types/components/size.d.ts +5 -0
  792. package/platform/types/components/size.d.ts.map +1 -0
  793. package/platform/types/components/takeover.d.ts +88 -0
  794. package/platform/types/components/takeover.d.ts.map +1 -0
  795. package/platform/types/components/transform.d.ts +34 -0
  796. package/platform/types/components/transform.d.ts.map +1 -0
  797. package/platform/types/components/vercel/account-id.d.ts +2 -0
  798. package/platform/types/components/vercel/account-id.d.ts.map +1 -0
  799. package/platform/types/components/vercel/dns.d.ts +73 -0
  800. package/platform/types/components/vercel/dns.d.ts.map +1 -0
  801. package/platform/types/components/vercel/index.d.ts +3 -0
  802. package/platform/types/components/vercel/index.d.ts.map +1 -0
  803. package/platform/types/components/vercel/providers/dns-record.d.ts +15 -0
  804. package/platform/types/components/vercel/providers/dns-record.d.ts.map +1 -0
  805. package/platform/types/config.d.ts +1440 -0
  806. package/platform/types/config.d.ts.map +1 -0
  807. package/platform/types/global-aliases.d.ts +37 -0
  808. package/platform/types/global.d.ts +374 -0
  809. package/platform/types/internal.d.ts +18 -0
  810. package/platform/types/runtime/worker/unenv.d.ts +14 -0
  811. package/platform/types/testing/global.d.ts +11 -0
  812. package/platform/types/testing/global.d.ts.map +1 -0
  813. package/platform/types/testing/index.d.ts +80 -0
  814. package/platform/types/testing/index.d.ts.map +1 -0
  815. package/platform/types/testing/mock.d.ts +136 -0
  816. package/platform/types/testing/mock.d.ts.map +1 -0
  817. package/platform/types/testing/vitest.d.ts +19 -0
  818. package/platform/types/testing/vitest.d.ts.map +1 -0
  819. package/platform/types/util/compare-semver.d.ts +4 -0
  820. package/platform/types/util/compare-semver.d.ts.map +1 -0
  821. package/platform/types/util/fs.d.ts +5 -0
  822. package/platform/types/util/fs.d.ts.map +1 -0
  823. package/platform/types/util/lazy.d.ts +2 -0
  824. package/platform/types/util/lazy.d.ts.map +1 -0
  825. package/platform/types/util/minify.d.ts +2 -0
  826. package/platform/types/util/minify.d.ts.map +1 -0
  827. package/platform/types/util/package.d.ts +10 -0
  828. package/platform/types/util/package.d.ts.map +1 -0
  829. package/platform/types/util/semaphore.d.ts +9 -0
  830. package/platform/types/util/semaphore.d.ts.map +1 -0
  831. package/platform/types/util/warn.d.ts +2 -0
  832. package/platform/types/util/warn.d.ts.map +1 -0
@@ -0,0 +1,1780 @@
1
+ import type { Loader } from "esbuild";
2
+ import type { EsbuildOptions } from "../esbuild.js";
3
+ import { ComponentResourceOptions, Output } from "@pulumi/pulumi";
4
+ import { Duration, DurationDays, DurationMinutes } from "../duration.js";
5
+ import { Size } from "../size.js";
6
+ import { Component, Prettify, Transform } from "../component.js";
7
+ import { Link } from "../link.js";
8
+ import type { Input } from "../input.js";
9
+ import { RETENTION } from "./logging.js";
10
+ import { cloudwatch, iam, lambda } from "@pulumi/aws";
11
+ import { Vpc } from "./vpc.js";
12
+ import { Efs } from "./efs.js";
13
+ import { FunctionEnvironmentUpdate } from "./providers/function-environment-update.js";
14
+ import { RouterRouteArgs, RouterRouteArgsDeprecated } from "./router.js";
15
+ /**
16
+ * Helper type to define function ARN type
17
+ */
18
+ export type FunctionArn = `arn:${string}` & {};
19
+ export type FunctionPermissionArgs = {
20
+ /**
21
+ * Configures whether the permission is allowed or denied.
22
+ * @default `"allow"`
23
+ * @example
24
+ * ```ts
25
+ * {
26
+ * effect: "deny"
27
+ * }
28
+ * ```
29
+ */
30
+ effect?: "allow" | "deny";
31
+ /**
32
+ * The [IAM actions](https://docs.aws.amazon.com/service-authorization/latest/reference/reference_policies_actions-resources-contextkeys.html#actions_table) that can be performed.
33
+ * @example
34
+ * ```js
35
+ * {
36
+ * actions: ["s3:*"]
37
+ * }
38
+ * ```
39
+ */
40
+ actions: string[];
41
+ /**
42
+ * The resourcess specified using the [IAM ARN format](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html).
43
+ * @example
44
+ * ```js
45
+ * {
46
+ * resources: ["arn:aws:s3:::my-bucket/*"]
47
+ * }
48
+ * ```
49
+ */
50
+ resources: Input<Input<string>[]>;
51
+ /**
52
+ * Configure specific conditions for when the policy is in effect.
53
+ *
54
+ * @example
55
+ * ```js
56
+ * {
57
+ * conditions: [
58
+ * {
59
+ * test: "StringEquals",
60
+ * variable: "s3:x-amz-server-side-encryption",
61
+ * values: ["AES256"]
62
+ * },
63
+ * {
64
+ * test: "IpAddress",
65
+ * variable: "aws:SourceIp",
66
+ * values: ["10.0.0.0/16"]
67
+ * }
68
+ * ]
69
+ * }
70
+ * ```
71
+ */
72
+ conditions?: Input<Input<{
73
+ /**
74
+ * Name of the [IAM condition operator](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html) to evaluate.
75
+ */
76
+ test: Input<string>;
77
+ /**
78
+ * Name of a [Context Variable](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html#AvailableKeys) to apply the condition to. Context variables may either be standard AWS variables starting with `aws:` or service-specific variables prefixed with the service name.
79
+ */
80
+ variable: Input<string>;
81
+ /**
82
+ * The values to evaluate the condition against. If multiple values are provided, the condition matches if at least one of them applies. That is, AWS evaluates multiple values as though using an "OR" boolean operation.
83
+ */
84
+ values: Input<Input<string>[]>;
85
+ }>[]>;
86
+ };
87
+ interface FunctionUrlCorsArgs {
88
+ /**
89
+ * Allow cookies or other credentials in requests to the function URL.
90
+ * @default `false`
91
+ * @example
92
+ * ```js
93
+ * {
94
+ * url: {
95
+ * cors: {
96
+ * allowCredentials: true
97
+ * }
98
+ * }
99
+ * }
100
+ * ```
101
+ */
102
+ allowCredentials?: Input<boolean>;
103
+ /**
104
+ * The HTTP headers that origins can include in requests to the function URL.
105
+ * @default `["*"]`
106
+ * @example
107
+ * ```js
108
+ * {
109
+ * url: {
110
+ * cors: {
111
+ * allowHeaders: ["date", "keep-alive", "x-custom-header"]
112
+ * }
113
+ * }
114
+ * }
115
+ * ```
116
+ */
117
+ allowHeaders?: Input<Input<string>[]>;
118
+ /**
119
+ * The origins that can access the function URL.
120
+ * @default `["*"]`
121
+ * @example
122
+ * ```js
123
+ * {
124
+ * url: {
125
+ * cors: {
126
+ * allowOrigins: ["https://www.example.com", "http://localhost:60905"]
127
+ * }
128
+ * }
129
+ * }
130
+ * ```
131
+ * Or the wildcard for all origins.
132
+ * ```js
133
+ * {
134
+ * url: {
135
+ * cors: {
136
+ * allowOrigins: ["*"]
137
+ * }
138
+ * }
139
+ * }
140
+ * ```
141
+ */
142
+ allowOrigins?: Input<Input<string>[]>;
143
+ /**
144
+ * The HTTP methods that are allowed when calling the function URL.
145
+ * @default `["*"]`
146
+ * @example
147
+ * ```js
148
+ * {
149
+ * url: {
150
+ * cors: {
151
+ * allowMethods: ["GET", "POST", "DELETE"]
152
+ * }
153
+ * }
154
+ * }
155
+ * ```
156
+ * Or the wildcard for all methods.
157
+ * ```js
158
+ * {
159
+ * url: {
160
+ * cors: {
161
+ * allowMethods: ["*"]
162
+ * }
163
+ * }
164
+ * }
165
+ * ```
166
+ */
167
+ allowMethods?: Input<Input<"*" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT">[]>;
168
+ /**
169
+ * The HTTP headers you want to expose in your function to an origin that calls the function URL.
170
+ * @default `[]`
171
+ * @example
172
+ * ```js
173
+ * {
174
+ * url: {
175
+ * cors: {
176
+ * exposeHeaders: ["date", "keep-alive", "x-custom-header"]
177
+ * }
178
+ * }
179
+ * }
180
+ * ```
181
+ */
182
+ exposeHeaders?: Input<Input<string>[]>;
183
+ /**
184
+ * The maximum amount of time the browser can cache results of a preflight request. By
185
+ * default the browser doesn't cache the results. The maximum value is `86400 seconds` or `1 day`.
186
+ * @default `"0 seconds"`
187
+ * @example
188
+ * ```js
189
+ * {
190
+ * url: {
191
+ * cors: {
192
+ * maxAge: "1 day"
193
+ * }
194
+ * }
195
+ * }
196
+ * ```
197
+ */
198
+ maxAge?: Input<Duration>;
199
+ }
200
+ export interface FunctionArgs {
201
+ /**
202
+ * Disable running this function [Live](/docs/live/) in `sst dev`.
203
+ * @deprecated Use `dev` instead.
204
+ * @default `true`
205
+ * @example
206
+ * ```js
207
+ * {
208
+ * live: false
209
+ * }
210
+ * ```
211
+ */
212
+ live?: Input<false>;
213
+ /**
214
+ * Disable running this function [_Live_](/docs/live/) in `sst dev`.
215
+ *
216
+ * By default, the functions in your app are run locally in `sst dev`. To do this, a _stub_
217
+ * version of your function is deployed, instead of the real function.
218
+ *
219
+ * :::note
220
+ * In `sst dev` a _stub_ version of your function is deployed.
221
+ * :::
222
+ *
223
+ * In `sst dev` the role that SST creates for the function also trusts the root of your AWS
224
+ * account, so you can assume it from your machine. A deployed role trusts only Lambda. If
225
+ * you run `sst dev` on a stage that is also deployed, the account root is added back to
226
+ * the role until the next `sst deploy`, so each switch updates the role.
227
+ *
228
+ * This shows under the **Functions** tab in the multiplexer sidebar where your invocations
229
+ * are logged. You can turn this off by setting `dev` to `false`.
230
+ *
231
+ * Read more about [Live](/docs/live/) and [`sst dev`](/docs/reference/cli/#dev).
232
+ *
233
+ * @default `true`
234
+ * @example
235
+ * ```js
236
+ * {
237
+ * dev: false
238
+ * }
239
+ * ```
240
+ */
241
+ dev?: Input<false>;
242
+ /**
243
+ * Configure the maximum number of retry attempts for this function when invoked
244
+ * asynchronously.
245
+ *
246
+ * This only affects asynchronous invocations of the function, ie. when subscribed to
247
+ * Topics, EventBuses, or Buckets. And not when directly invoking the function.
248
+ *
249
+ * Valid values are between 0 and 2.
250
+ *
251
+ * @default `2`
252
+ * @example
253
+ * ```js
254
+ * {
255
+ * retries: 0
256
+ * }
257
+ * ```
258
+ */
259
+ retries?: Input<number>;
260
+ /**
261
+ * The name for the function.
262
+ *
263
+ * By default, the name is generated from the app name, stage name, and component name. This
264
+ * is displayed in the AWS Console for this function.
265
+ *
266
+ * :::caution
267
+ * To avoid the name from thrashing, you want to make sure that it includes the app and stage
268
+ * name.
269
+ * :::
270
+ *
271
+ * If you are going to set the name, you need to make sure:
272
+ * 1. It's unique across your app.
273
+ * 2. Uses the app and stage name, so it doesn't thrash when you deploy to different stages.
274
+ *
275
+ * Also, changing the name after your've deployed it once will create a new function and delete
276
+ * the old one.
277
+ *
278
+ * @example
279
+ * ```js
280
+ * {
281
+ * name: `${$app.name}-${$app.stage}-my-function`
282
+ * }
283
+ * ```
284
+ */
285
+ name?: Input<string>;
286
+ /**
287
+ * A description for the function. This is displayed in the AWS Console.
288
+ * @example
289
+ * ```js
290
+ * {
291
+ * description: "Handler function for my nightly cron job."
292
+ * }
293
+ * ```
294
+ */
295
+ description?: Input<string>;
296
+ /**
297
+ * The language runtime for the function.
298
+ *
299
+ * Node.js and Golang are officially supported. While, Python and Rust are
300
+ * community supported. Support for other runtimes are on the roadmap.
301
+ *
302
+ * A later release can move the default to a newer Node.js, and says so in its notes.
303
+ * A function that uses the default is then updated on its next deploy. Set `runtime`
304
+ * to keep it on one version.
305
+ *
306
+ * @default `"nodejs24.x"`
307
+ *
308
+ * @example
309
+ * ```js
310
+ * {
311
+ * runtime: "nodejs24.x"
312
+ * }
313
+ * ```
314
+ */
315
+ runtime?: Input<"nodejs18.x" | "nodejs20.x" | "nodejs22.x" | "nodejs24.x" | "go" | "rust" | "provided.al2" | "provided.al2023" | "python3.9" | "python3.10" | "python3.11" | "python3.12" | "python3.13" | "python3.14">;
316
+ /**
317
+ * Path to the source code directory for the function. By default, the handler is
318
+ * bundled with [esbuild](https://esbuild.github.io/). Use `bundle` to skip bundling.
319
+ *
320
+ * :::caution
321
+ * Use `bundle` only when you want to bundle the function yourself.
322
+ * :::
323
+ *
324
+ * If the `bundle` option is specified, the `handler` needs to be in the root of the bundle.
325
+ *
326
+ * :::note
327
+ * SST writes the linked resources of each function to `.sst/<function name>/resource.enc`
328
+ * inside the bundle directory, so functions that share a bundle don't overwrite each
329
+ * other. Each function's zip only includes its own folder from `.sst`. Don't keep your
330
+ * own files in a `.sst` folder or a `resource.enc` file at the root of the bundle, they are
331
+ * left out of the zip.
332
+ * :::
333
+ *
334
+ * @example
335
+ *
336
+ * Here, the entire `packages/functions/src` directory is zipped, except for the
337
+ * `.sst` folders of other functions and any `resource.enc` at the root. And the handler is
338
+ * in the `src` directory.
339
+ *
340
+ * ```js
341
+ * {
342
+ * bundle: "packages/functions/src",
343
+ * handler: "index.handler"
344
+ * }
345
+ * ```
346
+ */
347
+ bundle?: Input<string>;
348
+ /**
349
+ * Path to the handler for the function.
350
+ *
351
+ * - For Node.js this is in the format `{path}/{file}.{method}`.
352
+ * - For Python this is also `{path}/{file}.{method}`.
353
+ * - For Golang this is `{path}` to the Go module.
354
+ * - For Rust this is `{path}` to the Rust crate.
355
+ *
356
+ * @example
357
+ *
358
+ * ##### Node.js
359
+ *
360
+ * For example with Node.js you might have.
361
+ *
362
+ * ```js
363
+ * {
364
+ * handler: "packages/functions/src/main.handler"
365
+ * }
366
+ * ```
367
+ *
368
+ * Where `packages/functions/src` is the path. And `main` is the file, where you might have
369
+ * a `main.ts` or `main.js`. And `handler` is the method exported in that file.
370
+ *
371
+ * :::note
372
+ * You don't need to specify the file extension.
373
+ * :::
374
+ *
375
+ * If `bundle` is specified, the handler needs to be in the root of the bundle directory.
376
+ *
377
+ * ```js
378
+ * {
379
+ * bundle: "packages/functions/src",
380
+ * handler: "index.handler"
381
+ * }
382
+ * ```
383
+ *
384
+ * ##### Python
385
+ *
386
+ * SST uses [uv](https://docs.astral.sh/uv/) to package the function.
387
+ * You need to have it installed.
388
+ *
389
+ * :::note
390
+ * You need uv installed for Python functions.
391
+ * :::
392
+ *
393
+ * Your handler must live in a [uv workspace](https://docs.astral.sh/uv/concepts/projects/workspaces/)
394
+ * with a `pyproject.toml`. Match the Python version to your Lambda runtime.
395
+ *
396
+ * ```toml title="pyproject.toml"
397
+ * [project]
398
+ * name = "my-project"
399
+ * requires-python = "==3.11.*"
400
+ * ```
401
+ *
402
+ * Install your packages before starting `sst dev`:
403
+ *
404
+ * ```bash
405
+ * uv sync --all-packages
406
+ * ```
407
+ *
408
+ * Use absolute imports within your package.
409
+ *
410
+ * ```python
411
+ * from mypackage.utils import helper
412
+ * ```
413
+ *
414
+ * Avoid relative imports — they can fail in Lambda. Make sure package directories have `__init__.py`.
415
+ *
416
+ * Access static files relative to `__file__`.
417
+ *
418
+ * ```python
419
+ * from pathlib import Path
420
+ * config = Path(__file__).parent / "config.json"
421
+ * ```
422
+ *
423
+ * For large dependencies like numpy or pandas, deploy as a container. See [`python.container`](#python-container).
424
+ *
425
+ * For common project layouts, check out the [Python examples](https://github.com/sst/sst/tree/dev/examples/python-layouts).
426
+ *
427
+ * ##### Golang
428
+ *
429
+ * For Golang the handler looks like.
430
+ *
431
+ * ```js
432
+ * {
433
+ * handler: "packages/functions/go/some_module"
434
+ * }
435
+ * ```
436
+ *
437
+ * Where `packages/functions/go/some_module` is the path to the Go module. This
438
+ * includes the name of the module in your `go.mod`. So in this case your `go.mod`
439
+ * might be in `packages/functions/go` and `some_module` is the name of the
440
+ * module.
441
+ *
442
+ * You can refer to [this example of deploying a Go function](/docs/examples/#aws-lambda-go).
443
+ *
444
+ * ##### Rust
445
+ *
446
+ * For Rust, the handler looks like.
447
+ *
448
+ * ```js
449
+ * {
450
+ * handler: "crates/api"
451
+ * }
452
+ * ```
453
+ *
454
+ * Where `crates/api` is the path to the Rust crate. This means there is a
455
+ * `Cargo.toml` file in `crates/api`, and the main() function handles the lambda.
456
+ */
457
+ handler: Input<string>;
458
+ /**
459
+ * The maximum amount of time the function can run. The minimum timeout is 1 second and the maximum is 900 seconds or 15 minutes.
460
+ *
461
+ * :::note
462
+ * If a function is connected to another service, the request will time out based on the service's limits.
463
+ * :::
464
+ *
465
+ * While the maximum timeout is 15 minutes, if a function is connected to other
466
+ * services, it'll time out based on those limits.
467
+ *
468
+ * - API Gateway has a timeout of 30 seconds. So even if the function has a
469
+ * timeout of 15 minutes, the API request will time out after 30 seconds.
470
+ * - CloudFront has a default timeout of 60 seconds. You can have this limit
471
+ * increased by [contacting AWS Support](https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase).
472
+ *
473
+ * @default `"20 seconds"`
474
+ * @example
475
+ * ```js
476
+ * {
477
+ * timeout: "900 seconds"
478
+ * }
479
+ * ```
480
+ */
481
+ timeout?: Input<DurationMinutes>;
482
+ /**
483
+ * The amount of memory allocated for the function. Takes values between 128 MB
484
+ * and 10240 MB in 1 MB increments. The amount of memory affects the amount of
485
+ * virtual CPU available to the function.
486
+ *
487
+ * :::tip
488
+ * While functions with less memory are cheaper, larger functions can process faster.
489
+ * And might end up being more [cost effective](https://docs.aws.amazon.com/lambda/latest/operatorguide/computing-power.html).
490
+ * :::
491
+ *
492
+ * @default `"1024 MB"`
493
+ * @example
494
+ * ```js
495
+ * {
496
+ * memory: "10240 MB"
497
+ * }
498
+ * ```
499
+ */
500
+ memory?: Input<Size>;
501
+ /**
502
+ * The amount of ephemeral storage allocated for the function. This sets the ephemeral
503
+ * storage of the lambda function (/tmp). Must be between "512 MB" and "10240 MB" ("10 GB")
504
+ * in 1 MB increments.
505
+ *
506
+ * @default `"512 MB"`
507
+ * @example
508
+ * ```js
509
+ * {
510
+ * storage: "5 GB"
511
+ * }
512
+ * ```
513
+ */
514
+ storage?: Input<Size>;
515
+ /**
516
+ * Key-value pairs of values that are set as [Lambda environment variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html).
517
+ * The keys need to:
518
+ * - Start with a letter
519
+ * - Be at least 2 characters long
520
+ * - Contain only letters, numbers, or underscores
521
+ *
522
+ * They can be accessed in your function using `process.env.<key>`.
523
+ *
524
+ * :::note
525
+ * The total size of the environment variables cannot exceed 4 KB.
526
+ * :::
527
+ *
528
+ * @example
529
+ *
530
+ * ```js
531
+ * {
532
+ * environment: {
533
+ * DEBUG: "true"
534
+ * }
535
+ * }
536
+ * ```
537
+ */
538
+ environment?: Input<Record<string, Input<string>>>;
539
+ /**
540
+ * Permissions and the resources that the function needs to access. These permissions are
541
+ * used to create the function's IAM role.
542
+ *
543
+ * :::tip
544
+ * If you `link` the function to a resource, the permissions to access it are
545
+ * automatically added.
546
+ * :::
547
+ *
548
+ * @example
549
+ * Allow the function to read and write to an S3 bucket called `my-bucket`.
550
+ * ```js
551
+ * {
552
+ * permissions: [
553
+ * {
554
+ * actions: ["s3:GetObject", "s3:PutObject"],
555
+ * resources: ["arn:aws:s3:::my-bucket/*"]
556
+ * }
557
+ * ]
558
+ * }
559
+ * ```
560
+ *
561
+ * Allow the function to perform all actions on an S3 bucket called `my-bucket`.
562
+ *
563
+ * ```js
564
+ * {
565
+ * permissions: [
566
+ * {
567
+ * actions: ["s3:*"],
568
+ * resources: ["arn:aws:s3:::my-bucket/*"]
569
+ * }
570
+ * ]
571
+ * }
572
+ * ```
573
+ *
574
+ * Granting the function permissions to access all resources.
575
+ *
576
+ * ```js
577
+ * {
578
+ * permissions: [
579
+ * {
580
+ * actions: ["*"],
581
+ * resources: ["*"]
582
+ * }
583
+ * ]
584
+ * }
585
+ * ```
586
+ */
587
+ permissions?: Input<Prettify<FunctionPermissionArgs>[]>;
588
+ /**
589
+ * Policies to attach to the function. These policies will be added to the
590
+ * function's IAM role.
591
+ *
592
+ * Attaching policies lets you grant a set of predefined permissions to the
593
+ * function without having to specify the permissions in the `permissions` prop.
594
+ *
595
+ * @example
596
+ * For example, allow the function to have read-only access to all resources.
597
+ * ```js
598
+ * {
599
+ * policies: ["arn:aws:iam::aws:policy/ReadOnlyAccess"]
600
+ * }
601
+ * ```
602
+ */
603
+ policies?: Input<string[]>;
604
+ /**
605
+ * [Link resources](/docs/linking/) to your function. This will:
606
+ *
607
+ * 1. Grant the permissions needed to access the resources.
608
+ * 2. Allow you to access it in your function using the [SDK](/docs/reference/sdk/).
609
+ *
610
+ * @example
611
+ *
612
+ * Takes a list of components to link to the function.
613
+ *
614
+ * ```js
615
+ * {
616
+ * link: [bucket, stripeKey]
617
+ * }
618
+ * ```
619
+ */
620
+ link?: Input<any[]>;
621
+ /**
622
+ * Enable streaming for the function.
623
+ *
624
+ * Streaming is supported with both Function URLs and API Gateway REST API (V1). It is
625
+ * not supported with API Gateway HTTP API (V2).
626
+ *
627
+ * You'll also need to [wrap your handler](https://docs.aws.amazon.com/lambda/latest/dg/configuration-response-streaming.html) with `awslambda.streamifyResponse` to enable streaming.
628
+ *
629
+ * Check out the [AWS Lambda streaming example](/docs/examples/#aws-lambda-streaming) for more
630
+ * details.
631
+ *
632
+ * @default `false`
633
+ * @example
634
+ * ```js
635
+ * {
636
+ * streaming: true
637
+ * }
638
+ * ```
639
+ */
640
+ streaming?: Input<boolean>;
641
+ /**
642
+ * @internal
643
+ */
644
+ injections?: Input<string[]>;
645
+ /**
646
+ * Configure the function logs in CloudWatch. Or pass in `false` to disable writing logs.
647
+ * @default `{retention: "1 month", format: "text"}`
648
+ * @example
649
+ * ```js
650
+ * {
651
+ * logging: false
652
+ * }
653
+ * ```
654
+ * When set to `false`, the function is not given permissions to write to CloudWatch.
655
+ * Logs.
656
+ */
657
+ logging?: Input<false | {
658
+ /**
659
+ * The duration the function logs are kept in CloudWatch.
660
+ *
661
+ * Not application when an existing log group is provided.
662
+ *
663
+ * @default `1 month`
664
+ * @example
665
+ * ```js
666
+ * {
667
+ * logging: {
668
+ * retention: "forever"
669
+ * }
670
+ * }
671
+ * ```
672
+ */
673
+ retention?: Input<keyof typeof RETENTION>;
674
+ /**
675
+ * Assigns the given CloudWatch log group name to the function. This allows you to pass in a previously created log group.
676
+ *
677
+ * By default, the function creates a new log group when it's created.
678
+ *
679
+ * @default Creates a log group
680
+ * @example
681
+ * ```js
682
+ * {
683
+ * logging: {
684
+ * logGroup: "/existing/log-group"
685
+ * }
686
+ * }
687
+ * ```
688
+ */
689
+ logGroup?: Input<string>;
690
+ /**
691
+ * The [log format](https://docs.aws.amazon.com/lambda/latest/dg/monitoring-cloudwatchlogs-advanced.html)
692
+ * of the Lambda function.
693
+ * @default `"text"`
694
+ * @example
695
+ * ```js
696
+ * {
697
+ * logging: {
698
+ * format: "json"
699
+ * }
700
+ * }
701
+ * ```
702
+ */
703
+ format?: Input<"text" | "json">;
704
+ }>;
705
+ /**
706
+ * The [architecture](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html)
707
+ * of the Lambda function.
708
+ *
709
+ * @default `"x86_64"`
710
+ * @example
711
+ * ```js
712
+ * {
713
+ * architecture: "arm64"
714
+ * }
715
+ * ```
716
+ */
717
+ architecture?: Input<"x86_64" | "arm64">;
718
+ /**
719
+ * Assigns the given IAM role ARN to the function. This allows you to pass in a previously created role.
720
+ *
721
+ * :::caution
722
+ * When you pass in a role, the function will not update it if you add `permissions` or `link` resources.
723
+ * :::
724
+ *
725
+ * By default, the function creates a new IAM role when it's created. It'll update this role if you add `permissions` or `link` resources.
726
+ *
727
+ * However, if you pass in a role, you'll need to update it manually if you add `permissions` or `link` resources.
728
+ *
729
+ * SST does not read the role on each deploy. If the role is deleted, a deploy of an
730
+ * existing function still succeeds, and the function fails when it runs because
731
+ * Lambda can no longer assume the role.
732
+ *
733
+ * @default Creates a new role
734
+ * @example
735
+ * ```js
736
+ * {
737
+ * role: "arn:aws:iam::123456789012:role/my-role"
738
+ * }
739
+ * ```
740
+ */
741
+ role?: Input<string>;
742
+ /**
743
+ * Enable [Lambda function URLs](https://docs.aws.amazon.com/lambda/latest/dg/lambda-urls.html).
744
+ * These are dedicated endpoints for your Lambda functions.
745
+ * @default `false`
746
+ * @example
747
+ * Enable it with the default options.
748
+ * ```js
749
+ * {
750
+ * url: true
751
+ * }
752
+ * ```
753
+ *
754
+ * Configure the authorization and CORS settings for the endpoint.
755
+ * ```js
756
+ * {
757
+ * url: {
758
+ * authorization: "iam",
759
+ * cors: {
760
+ * allowOrigins: ['https://example.com']
761
+ * }
762
+ * }
763
+ * }
764
+ * ```
765
+ */
766
+ url?: Input<boolean | {
767
+ /**
768
+ * @deprecated The `url.router` prop is now the recommended way to serve your
769
+ * function URL through a `Router` component.
770
+ */
771
+ route?: Prettify<RouterRouteArgsDeprecated>;
772
+ /**
773
+ * Serve your function URL through a `Router` instead of a standalone Function URL.
774
+ *
775
+ * By default, this component creates a direct function URL endpoint. But you might
776
+ * want to serve it through the distribution of your `Router` as a:
777
+ *
778
+ * - A path like `/api/users`
779
+ * - A subdomain like `api.example.com`
780
+ * - Or a combined pattern like `dev.example.com/api`
781
+ *
782
+ * @example
783
+ *
784
+ * To serve your function **from a path**, you'll need to configure the root domain
785
+ * in your `Router` component.
786
+ *
787
+ * ```ts title="sst.config.ts" {2}
788
+ * const router = new sst.aws.Router("Router", {
789
+ * domain: "example.com"
790
+ * });
791
+ * ```
792
+ *
793
+ * Now set the `router` and the `path` in the `url` prop.
794
+ *
795
+ * ```ts {4,5}
796
+ * {
797
+ * url: {
798
+ * router: {
799
+ * instance: router,
800
+ * path: "/api/users"
801
+ * }
802
+ * }
803
+ * }
804
+ * ```
805
+ *
806
+ * To serve your function **from a subdomain**, you'll need to configure the
807
+ * domain in your `Router` component to match both the root and the subdomain.
808
+ *
809
+ * ```ts title="sst.config.ts" {3,4}
810
+ * const router = new sst.aws.Router("Router", {
811
+ * domain: {
812
+ * name: "example.com",
813
+ * aliases: ["*.example.com"]
814
+ * }
815
+ * });
816
+ * ```
817
+ *
818
+ * Now set the `domain` in the `router` prop.
819
+ *
820
+ * ```ts {5}
821
+ * {
822
+ * url: {
823
+ * router: {
824
+ * instance: router,
825
+ * domain: "api.example.com"
826
+ * }
827
+ * }
828
+ * }
829
+ * ```
830
+ *
831
+ * Finally, to serve your function **from a combined pattern** like
832
+ * `dev.example.com/api`, you'll need to configure the domain in your `Router` to
833
+ * match the subdomain.
834
+ *
835
+ * ```ts title="sst.config.ts" {3,4}
836
+ * const router = new sst.aws.Router("Router", {
837
+ * domain: {
838
+ * name: "example.com",
839
+ * aliases: ["*.example.com"]
840
+ * }
841
+ * });
842
+ * ```
843
+ *
844
+ * And set the `domain` and the `path`.
845
+ *
846
+ * ```ts {5,6}
847
+ * {
848
+ * url: {
849
+ * router: {
850
+ * instance: router,
851
+ * domain: "dev.example.com",
852
+ * path: "/api/users"
853
+ * }
854
+ * }
855
+ * }
856
+ * ```
857
+ */
858
+ router?: Prettify<RouterRouteArgs>;
859
+ /**
860
+ * The authorization used for the function URL. Supports [IAM authorization](https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html).
861
+ * @default `"none"`
862
+ * @example
863
+ * ```js
864
+ * {
865
+ * url: {
866
+ * authorization: "iam"
867
+ * }
868
+ * }
869
+ * ```
870
+ */
871
+ authorization?: Input<"none" | "iam">;
872
+ /**
873
+ * Customize the CORS (Cross-origin resource sharing) settings for the function URL.
874
+ * @default `true`
875
+ * @example
876
+ * Disable CORS.
877
+ * ```js
878
+ * {
879
+ * url: {
880
+ * cors: false
881
+ * }
882
+ * }
883
+ * ```
884
+ * Only enable the `GET` and `POST` methods for `https://example.com`.
885
+ * ```js
886
+ * {
887
+ * url: {
888
+ * cors: {
889
+ * allowMethods: ["GET", "POST"],
890
+ * allowOrigins: ["https://example.com"]
891
+ * }
892
+ * }
893
+ * }
894
+ * ```
895
+ */
896
+ cors?: Input<boolean | Prettify<FunctionUrlCorsArgs>>;
897
+ }>;
898
+ /**
899
+ * Configure how your function is bundled.
900
+ *
901
+ * By default, SST will bundle your function
902
+ * code using [esbuild](https://esbuild.github.io/). This tree shakes your code to
903
+ * only include what's used; reducing the size of your function package and improving
904
+ * cold starts.
905
+ */
906
+ nodejs?: Input<{
907
+ /**
908
+ * @internal
909
+ * Point to a file that exports a list of esbuild plugins to use.
910
+ *
911
+ * @example
912
+ * ```js
913
+ * {
914
+ * nodejs: {
915
+ * plugins: "./plugins.mjs"
916
+ * }
917
+ * }
918
+ * ```
919
+ *
920
+ * The path is relative to the location of the `sst.config.ts`.
921
+ *
922
+ * ```js title="plugins.mjs"
923
+ * import { somePlugin } from "some-plugin";
924
+ *
925
+ * export default [
926
+ * somePlugin()
927
+ * ];
928
+ * ```
929
+ *
930
+ * You'll also need to install the npm package of the plugin.
931
+ */
932
+ plugins?: Input<string>;
933
+ /**
934
+ * Configure additional esbuild loaders for other file extensions. This is useful
935
+ * when your code is importing non-JS files like `.png`, `.css`, etc.
936
+ *
937
+ * @example
938
+ * ```js
939
+ * {
940
+ * nodejs: {
941
+ * loader: {
942
+ * ".png": "file"
943
+ * }
944
+ * }
945
+ * }
946
+ * ```
947
+ */
948
+ loader?: Input<Record<string, Loader>>;
949
+ /**
950
+ * Dependencies that need to be excluded from the function package.
951
+ *
952
+ * Certain npm packages cannot be bundled using esbuild. This allows you to exclude them
953
+ * from the bundle. Instead they'll be moved into a `node_modules/` directory in the
954
+ * function package.
955
+ *
956
+ * :::tip
957
+ * If esbuild is giving you an error about a package, try adding it to `install`.
958
+ * :::
959
+ *
960
+ * This will allow your functions to be able to use these dependencies when deployed. They
961
+ * just won't be tree shaken.
962
+ *
963
+ * :::caution
964
+ * If you don't specify a version, the package still needs to be in your `package.json`.
965
+ * :::
966
+ *
967
+ * Esbuild will ignore them while traversing the imports in your code. So these are the
968
+ * **package names as seen in the imports**. It also works on packages that are not directly
969
+ * imported by your code.
970
+ *
971
+ * @example
972
+ * ```js
973
+ * {
974
+ * nodejs: {
975
+ * install: { pg: "8.13.1" }
976
+ * }
977
+ * }
978
+ * ```
979
+ *
980
+ * Passing `["packageName"]` is the same as passing `{ packageName: "*" }`.
981
+ */
982
+ install?: Input<string[] | Record<string, string>>;
983
+ /**
984
+ * Use this to insert a string at the beginning of the generated JS file.
985
+ *
986
+ * @example
987
+ * ```js
988
+ * {
989
+ * nodejs: {
990
+ * banner: "console.log('Function starting')"
991
+ * }
992
+ * }
993
+ * ```
994
+ */
995
+ banner?: Input<string>;
996
+ /**
997
+ * This allows you to customize esbuild config that is used.
998
+ *
999
+ * :::tip
1000
+ * Check out the _JS tab_ in the code snippets in the esbuild docs for the
1001
+ * [`BuildOptions`](https://esbuild.github.io/api/#build).
1002
+ * :::
1003
+ *
1004
+ * For example, a function builds faster in `sst dev` when the AWS SDK is left out of
1005
+ * its bundle there. It's loaded from your `node_modules` instead, so the packages you
1006
+ * import have to be installed. A deploy still bundles them.
1007
+ *
1008
+ * @example
1009
+ * ```js
1010
+ * {
1011
+ * nodejs: {
1012
+ * esbuild: {
1013
+ * external: $dev ? ["@aws-sdk/*", "@smithy/*"] : []
1014
+ * }
1015
+ * }
1016
+ * }
1017
+ * ```
1018
+ */
1019
+ esbuild?: Input<EsbuildOptions>;
1020
+ /**
1021
+ * Disable if the function code is minified when bundled.
1022
+ *
1023
+ * @default `true`
1024
+ *
1025
+ * @example
1026
+ * ```js
1027
+ * {
1028
+ * nodejs: {
1029
+ * minify: false
1030
+ * }
1031
+ * }
1032
+ * ```
1033
+ */
1034
+ minify?: Input<boolean>;
1035
+ /**
1036
+ * Configure the format of the generated JS code; ESM or CommonJS.
1037
+ *
1038
+ * @default `"esm"`
1039
+ *
1040
+ * @example
1041
+ * ```js
1042
+ * {
1043
+ * nodejs: {
1044
+ * format: "cjs"
1045
+ * }
1046
+ * }
1047
+ * ```
1048
+ */
1049
+ format?: Input<"cjs" | "esm">;
1050
+ /**
1051
+ * Configure if source maps are added to the function bundle when **deployed**. Since they
1052
+ * increase payload size and potentially cold starts, they are not added by default.
1053
+ * However, they are always generated during `sst dev`.
1054
+ *
1055
+ * :::tip[SST Console]
1056
+ * For the [Console](/docs/console/), source maps are always generated and uploaded
1057
+ * to your bootstrap bucket. These are then downloaded and used to display
1058
+ * Issues in the console.
1059
+ * :::
1060
+ *
1061
+ * @default `false`
1062
+ *
1063
+ * @example
1064
+ * ```js
1065
+ * {
1066
+ * nodejs: {
1067
+ * sourcemap: true
1068
+ * }
1069
+ * }
1070
+ * ```
1071
+ */
1072
+ sourcemap?: Input<boolean>;
1073
+ /**
1074
+ * If enabled, modules that are dynamically imported will be bundled in their own files
1075
+ * with common dependencies placed in shared chunks. This can help reduce cold starts
1076
+ * as your function grows in size.
1077
+ *
1078
+ * @default `false`
1079
+ *
1080
+ * @example
1081
+ * ```js
1082
+ * {
1083
+ * nodejs: {
1084
+ * splitting: true
1085
+ * }
1086
+ * }
1087
+ * ```
1088
+ */
1089
+ splitting?: Input<boolean>;
1090
+ }>;
1091
+ /**
1092
+ * Configure how your Python function is packaged.
1093
+ */
1094
+ python?: Input<{
1095
+ /**
1096
+ * Set this to `true` if you want to deploy this function as a container image.
1097
+ * There are a couple of reasons why you might want to do this.
1098
+ *
1099
+ * 1. The Lambda package size has an unzipped limit of 250MB. Whereas the
1100
+ * container image size has a limit of 10GB.
1101
+ * 2. Even if you are below the 250MB limit, larger Lambda function packages
1102
+ * have longer cold starts when compared to container image.
1103
+ * 3. You might want to use a custom Dockerfile to handle complex builds.
1104
+ *
1105
+ * @default `false`
1106
+ * @example
1107
+ * ```ts
1108
+ * {
1109
+ * python: {
1110
+ * container: true
1111
+ * }
1112
+ * }
1113
+ * ```
1114
+ *
1115
+ * When you run `sst deploy`, it uses a built-in Dockerfile. It also needs
1116
+ * the Docker daemon to be running.
1117
+ *
1118
+ * :::note
1119
+ * This needs the Docker daemon to be running.
1120
+ * :::
1121
+ *
1122
+ * To use a custom Dockerfile, add one to the rooot of the uv workspace
1123
+ * of the function.
1124
+ *
1125
+ *
1126
+ * ```txt {5}
1127
+ * ├── sst.config.ts
1128
+ * ├── pyproject.toml
1129
+ * └── function
1130
+ * ├── pyproject.toml
1131
+ * ├── Dockerfile
1132
+ * └── src
1133
+ * └── function
1134
+ * └── api.py
1135
+ * ```
1136
+ *
1137
+ * You can refer to [this example of using a container image](/docs/examples/#aws-lambda-python-container).
1138
+ */
1139
+ container?: Input<boolean | {
1140
+ /**
1141
+ * Controls whether Docker build cache is enabled.
1142
+ * @default `true`
1143
+ * @example
1144
+ * Disable Docker build caching, useful for environments like Localstack where
1145
+ * ECR cache export is not supported.
1146
+ * ```js
1147
+ * {
1148
+ * python: {
1149
+ * container: {
1150
+ * cache: false
1151
+ * }
1152
+ * }
1153
+ * }
1154
+ * ```
1155
+ */
1156
+ cache?: Input<boolean>;
1157
+ }>;
1158
+ }>;
1159
+ /**
1160
+ * Add additional files to copy into the function package. Takes a list of objects
1161
+ * with `from` and `to` paths. These will be copied over before the function package
1162
+ * is zipped up.
1163
+ *
1164
+ * @example
1165
+ *
1166
+ * Copying over a single file from the `src` directory to the `src/` directory of the
1167
+ * function package.
1168
+ *
1169
+ * ```js
1170
+ * {
1171
+ * copyFiles: [{ from: "src/index.js" }]
1172
+ * }
1173
+ * ```
1174
+ *
1175
+ * Copying over a single file from the `src` directory to the `core/src` directory in
1176
+ * the function package.
1177
+ *
1178
+ * ```js
1179
+ * {
1180
+ * copyFiles: [{ from: "src/index.js", to: "core/src/index.js" }]
1181
+ * }
1182
+ * ```
1183
+ *
1184
+ * Copying over a couple of files.
1185
+ *
1186
+ * ```js
1187
+ * {
1188
+ * copyFiles: [
1189
+ * { from: "src/this.js", to: "core/src/this.js" },
1190
+ * { from: "src/that.js", to: "core/src/that.js" }
1191
+ * ]
1192
+ * }
1193
+ * ```
1194
+ */
1195
+ copyFiles?: Input<{
1196
+ /**
1197
+ * Source path relative to the `sst.config.ts`.
1198
+ */
1199
+ from: Input<string>;
1200
+ /**
1201
+ * Destination path relative to function root in the package. By default, it
1202
+ * creates the same directory structure as the `from` path and copies the file.
1203
+ *
1204
+ * @default The `from` path in the function package
1205
+ */
1206
+ to?: Input<string>;
1207
+ }[]>;
1208
+ /**
1209
+ * Configure the concurrency settings for the function.
1210
+ *
1211
+ * @default No concurrency settings set
1212
+ * @example
1213
+ * ```js
1214
+ * {
1215
+ * concurrency: {
1216
+ * provisioned: 10,
1217
+ * reserved: 50
1218
+ * }
1219
+ * }
1220
+ * ```
1221
+ */
1222
+ concurrency?: Input<{
1223
+ /**
1224
+ * Provisioned concurrency ensures a specific number of Lambda instances are always
1225
+ * ready to handle requests, reducing cold start times. Enabling this will incur
1226
+ * extra charges.
1227
+ *
1228
+ * :::note
1229
+ * Enabling provisioned concurrency will incur extra charges.
1230
+ * :::
1231
+ *
1232
+ * Note that `versioning` needs to be enabled for provisioned concurrency.
1233
+ *
1234
+ * @default No provisioned concurrency
1235
+ * @example
1236
+ * ```js
1237
+ * {
1238
+ * concurrency: {
1239
+ * provisioned: 10
1240
+ * }
1241
+ * }
1242
+ * ```
1243
+ */
1244
+ provisioned?: Input<number>;
1245
+ /**
1246
+ * Reserved concurrency limits the maximum number of concurrent executions for a
1247
+ * function, ensuring critical functions always have capacity. It does not incur
1248
+ * extra charges.
1249
+ *
1250
+ * :::note
1251
+ * Setting this to `0` will disable the function from being triggered.
1252
+ * :::
1253
+ *
1254
+ * @default No reserved concurrency
1255
+ * @example
1256
+ * ```js
1257
+ * {
1258
+ * concurrency: {
1259
+ * reserved: 50
1260
+ * }
1261
+ * }
1262
+ * ```
1263
+ */
1264
+ reserved?: Input<number>;
1265
+ }>;
1266
+ /**
1267
+ * Enable versioning for the function.
1268
+ *
1269
+ * :::note
1270
+ * Durable functions enable this by default.
1271
+ * :::
1272
+ *
1273
+ * @default `false`
1274
+ * @example
1275
+ * ```js
1276
+ * {
1277
+ * versioning: true
1278
+ * }
1279
+ * ```
1280
+ */
1281
+ versioning?: Input<boolean>;
1282
+ /**
1283
+ * A list of Lambda layer ARNs to add to the function.
1284
+ *
1285
+ * :::note
1286
+ * Layers are only added when the function is deployed.
1287
+ * :::
1288
+ *
1289
+ * These are only added when the function is deployed. In `sst dev`, your functions are run
1290
+ * locally, so the layers are not used. Instead you should use a local version of what's
1291
+ * in the layer.
1292
+ *
1293
+ * @example
1294
+ * ```js
1295
+ * {
1296
+ * layers: ["arn:aws:lambda:us-east-1:123456789012:layer:my-layer:1"]
1297
+ * }
1298
+ * ```
1299
+ */
1300
+ layers?: Input<Input<string>[]>;
1301
+ /**
1302
+ * Mount an EFS file system to the function.
1303
+ *
1304
+ * @example
1305
+ * Create an EFS file system.
1306
+ *
1307
+ * ```ts title="sst.config.ts"
1308
+ * const vpc = new sst.aws.Vpc("MyVpc");
1309
+ * const fileSystem = new sst.aws.Efs("MyFileSystem", { vpc });
1310
+ * ```
1311
+ *
1312
+ * And pass it in.
1313
+ *
1314
+ * ```js
1315
+ * {
1316
+ * volume: {
1317
+ * efs: fileSystem
1318
+ * }
1319
+ * }
1320
+ * ```
1321
+ *
1322
+ * By default, the file system will be mounted to `/mnt/efs`. You can change this by
1323
+ * passing in the `path` property.
1324
+ *
1325
+ * ```js
1326
+ * {
1327
+ * volume: {
1328
+ * efs: fileSystem,
1329
+ * path: "/mnt/my-files"
1330
+ * }
1331
+ * }
1332
+ * ```
1333
+ *
1334
+ * To use an existing EFS, you can pass in an EFS access point ARN.
1335
+ *
1336
+ * ```js
1337
+ * {
1338
+ * volume: {
1339
+ * efs: "arn:aws:elasticfilesystem:us-east-1:123456789012:access-point/fsap-12345678",
1340
+ * }
1341
+ * }
1342
+ * ```
1343
+ */
1344
+ volume?: Input<{
1345
+ /**
1346
+ * The EFS file system to mount. Or an EFS access point ARN.
1347
+ */
1348
+ efs: Input<Efs | string>;
1349
+ /**
1350
+ * The path to mount the volume.
1351
+ * @default `"/mnt/efs"`
1352
+ */
1353
+ path?: Input<string>;
1354
+ }>;
1355
+ /**
1356
+ * A list of tags to add to the function.
1357
+ *
1358
+ * @example
1359
+ * ```js
1360
+ * {
1361
+ * tags: {
1362
+ * "my-tag": "my-value"
1363
+ * }
1364
+ * }
1365
+ * ```
1366
+ */
1367
+ tags?: Input<Record<string, Input<string>>>;
1368
+ /**
1369
+ * Configure the function to connect to private subnets in a virtual private cloud or VPC. This allows your function to access private resources.
1370
+ *
1371
+ * @example
1372
+ * Create a `Vpc` component.
1373
+ *
1374
+ * ```js title="sst.config.ts"
1375
+ * const myVpc = new sst.aws.Vpc("MyVpc");
1376
+ * ```
1377
+ *
1378
+ * Or reference an existing VPC.
1379
+ *
1380
+ * ```js title="sst.config.ts"
1381
+ * const myVpc = sst.aws.Vpc.get("MyVpc", "vpc-12345678901234567");
1382
+ * ```
1383
+ *
1384
+ * And pass it in.
1385
+ *
1386
+ * ```js
1387
+ * {
1388
+ * vpc: myVpc
1389
+ * }
1390
+ * ```
1391
+ */
1392
+ vpc?: Vpc | Input<{
1393
+ /**
1394
+ * A list of VPC security group IDs.
1395
+ */
1396
+ securityGroups: Input<Input<string>[]>;
1397
+ /**
1398
+ * A list of VPC subnet IDs.
1399
+ */
1400
+ privateSubnets: Input<Input<string>[]>;
1401
+ /**
1402
+ * A list of VPC subnet IDs.
1403
+ * @deprecated Use `privateSubnets` instead.
1404
+ */
1405
+ subnets?: Input<Input<string>[]>;
1406
+ }>;
1407
+ /**
1408
+ * Hook into the Lambda function build process.
1409
+ */
1410
+ hook?: {
1411
+ /**
1412
+ * Specify a callback that'll be run after the Lambda function is built.
1413
+ *
1414
+ * :::note
1415
+ * This is not called in `sst dev`.
1416
+ * :::
1417
+ *
1418
+ * Useful for modifying the generated Lambda function code before it's
1419
+ * deployed to AWS. It can also be used for uploading the generated sourcemaps
1420
+ * to a service like Sentry.
1421
+ *
1422
+ * @param dir The directory where the function code is generated.
1423
+ */
1424
+ postbuild(dir: string): Promise<void>;
1425
+ };
1426
+ /**
1427
+ * Configure the lambda function as a [AWS durable function](https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html).
1428
+ *
1429
+ * :::caution
1430
+ * This property is meant to be used internally by [Workflow](/docs/component/aws/workflow).
1431
+ * Prefer the component if you want to use the [SDK](/docs/component/aws/workflow#sdk) or if you are not very familiar with durable functions limitations.
1432
+ * :::
1433
+ */
1434
+ durable?: boolean | {
1435
+ /**
1436
+ * Maximum execution time for the durable function.
1437
+ * @default `14 days`
1438
+ */
1439
+ timeout?: Input<Duration>;
1440
+ /**
1441
+ * Number of days to retain the function's execution state.
1442
+ * @default `30 days`
1443
+ */
1444
+ retention?: Input<DurationDays>;
1445
+ };
1446
+ /**
1447
+ * [Transform](/docs/components#transform) how this component creates its underlying
1448
+ * resources.
1449
+ */
1450
+ transform?: {
1451
+ /**
1452
+ * Transform the Lambda Function resource.
1453
+ */
1454
+ function?: Transform<lambda.FunctionArgs>;
1455
+ /**
1456
+ * Transform the IAM Role resource.
1457
+ */
1458
+ role?: Transform<iam.RoleArgs>;
1459
+ /**
1460
+ * Transform the CloudWatch LogGroup resource.
1461
+ */
1462
+ logGroup?: Transform<cloudwatch.LogGroupArgs>;
1463
+ /**
1464
+ * Transform the Function Event Invoke Config resource. This is only created
1465
+ * when the `retries` property is set.
1466
+ */
1467
+ eventInvokeConfig?: Transform<lambda.FunctionEventInvokeConfigArgs>;
1468
+ };
1469
+ /**
1470
+ * @internal
1471
+ */
1472
+ _skipMetadata?: boolean;
1473
+ /**
1474
+ * @internal
1475
+ */
1476
+ _skipHint?: boolean;
1477
+ }
1478
+ /**
1479
+ * The `Function` component lets you add serverless functions to your app.
1480
+ * It uses [AWS Lambda](https://aws.amazon.com/lambda/).
1481
+ *
1482
+ * #### Supported runtimes
1483
+ *
1484
+ * Currently supports **Node.js** and **Golang** functions. **Python** and **Rust**
1485
+ * are community supported. Other runtimes are on the roadmap.
1486
+ *
1487
+ * @example
1488
+ *
1489
+ * #### Minimal example
1490
+ *
1491
+ *
1492
+ * <Tabs>
1493
+ * <TabItem label="Node">
1494
+ * Pass in the path to your handler function.
1495
+ *
1496
+ * ```ts title="sst.config.ts"
1497
+ * new sst.aws.Function("MyFunction", {
1498
+ * handler: "src/lambda.handler"
1499
+ * });
1500
+ * ```
1501
+ *
1502
+ * [Learn more below](#handler).
1503
+ * </TabItem>
1504
+ * <TabItem label="Python">
1505
+ * Pass in the path to your handler function.
1506
+ *
1507
+ * ```ts title="sst.config.ts"
1508
+ * new sst.aws.Function("MyFunction", {
1509
+ * runtime: "python3.13",
1510
+ * handler: "functions/src/functions/api.handler"
1511
+ * });
1512
+ * ```
1513
+ *
1514
+ * You need to have uv installed and your handler function needs to be in a uv workspace. [Learn more below](#handler).
1515
+ * </TabItem>
1516
+ * <TabItem label="Go">
1517
+ * Pass in the directory to your Go module.
1518
+ *
1519
+ * ```ts title="sst.config.ts"
1520
+ * new sst.aws.Function("MyFunction", {
1521
+ * runtime: "go",
1522
+ * handler: "./src"
1523
+ * });
1524
+ * ```
1525
+ *
1526
+ * [Learn more below](#handler).
1527
+ * </TabItem>
1528
+ * <TabItem label="Rust">
1529
+ * Pass in the directory where your Cargo.toml lives.
1530
+ *
1531
+ * ```ts title="sst.config.ts"
1532
+ * new sst.aws.Function("MyFunction", {
1533
+ * runtime: "rust",
1534
+ * handler: "./crates/api/"
1535
+ * });
1536
+ * ```
1537
+ *
1538
+ * [Learn more below](#handler).
1539
+ * </TabItem>
1540
+ * </Tabs>
1541
+ *
1542
+ * #### Set additional config
1543
+ *
1544
+ * Pass in additional Lambda config.
1545
+ *
1546
+ * ```ts {3,4} title="sst.config.ts"
1547
+ * new sst.aws.Function("MyFunction", {
1548
+ * handler: "src/lambda.handler",
1549
+ * timeout: "3 minutes",
1550
+ * memory: "1024 MB"
1551
+ * });
1552
+ * ```
1553
+ *
1554
+ * #### Link resources
1555
+ *
1556
+ * [Link resources](/docs/linking/) to the function. This will grant permissions
1557
+ * to the resources and allow you to access it in your handler.
1558
+ *
1559
+ * ```ts {5} title="sst.config.ts"
1560
+ * const bucket = new sst.aws.Bucket("MyBucket");
1561
+ *
1562
+ * new sst.aws.Function("MyFunction", {
1563
+ * handler: "src/lambda.handler",
1564
+ * link: [bucket]
1565
+ * });
1566
+ * ```
1567
+ *
1568
+ * You can use the [SDK](/docs/reference/sdk/) to access the linked resources
1569
+ * in your handler.
1570
+ *
1571
+ * <Tabs>
1572
+ * <TabItem label="Node">
1573
+ * ```ts title="src/lambda.ts"
1574
+ * import { Resource } from "sst";
1575
+ *
1576
+ * console.log(Resource.MyBucket.name);
1577
+ * ```
1578
+ * </TabItem>
1579
+ * <TabItem label="Python">
1580
+ * ```ts title="functions/src/functions/api.py"
1581
+ * from sst import Resource
1582
+ *
1583
+ * def handler(event, context):
1584
+ * print(Resource.MyBucket.name)
1585
+ * ```
1586
+ *
1587
+ * Where the `sst-sdk` package can be added to your `pyproject.toml`.
1588
+ *
1589
+ * ```toml title="functions/pyproject.toml"
1590
+ * [project]
1591
+ * dependencies = ["sst-sdk"]
1592
+ *
1593
+ * [tool.uv.sources]
1594
+ * sst-sdk = { git = "https://github.com/sst-community/sst.git", subdirectory = "sdk/python", branch = "main" }
1595
+ * ```
1596
+ * </TabItem>
1597
+ * <TabItem label="Go">
1598
+ * ```go title="src/main.go"
1599
+ * import (
1600
+ * "github.com/sst/sst/v3/sdk/golang/resource"
1601
+ * )
1602
+ *
1603
+ * resource.Get("MyBucket", "name")
1604
+ * ```
1605
+ * </TabItem>
1606
+ * <TabItem label="Rust">
1607
+ * ```rust title="src/main.rs"
1608
+ * use sst_sdk::Resource;
1609
+ * #[derive(serde::Deserialize, Debug)]
1610
+ * struct Bucket {
1611
+ * name: String,
1612
+ * }
1613
+ *
1614
+ * let resource = Resource::init().unwrap();
1615
+ * let Bucket { name } = resource.get("Bucket").unwrap();
1616
+ * ```
1617
+ * </TabItem>
1618
+ * </Tabs>
1619
+ *
1620
+ * #### Set environment variables
1621
+ *
1622
+ * Set environment variables that you can read in your function. For example, using
1623
+ * `process.env` in your Node.js functions.
1624
+ *
1625
+ * ```ts {4} title="sst.config.ts"
1626
+ * new sst.aws.Function("MyFunction", {
1627
+ * handler: "src/lambda.handler",
1628
+ * environment: {
1629
+ * DEBUG: "true"
1630
+ * }
1631
+ * });
1632
+ * ```
1633
+ *
1634
+ * #### Enable function URLs
1635
+ *
1636
+ * Enable function URLs to invoke the function over HTTP.
1637
+ *
1638
+ * ```ts {3} title="sst.config.ts"
1639
+ * new sst.aws.Function("MyFunction", {
1640
+ * handler: "src/lambda.handler",
1641
+ * url: true
1642
+ * });
1643
+ * ```
1644
+ *
1645
+ * #### Bundling
1646
+ *
1647
+ * Customize how SST uses [esbuild](https://esbuild.github.io/) to bundle your Node.js
1648
+ * functions with the `nodejs` property.
1649
+ *
1650
+ * ```ts title="sst.config.ts" {3-5}
1651
+ * new sst.aws.Function("MyFunction", {
1652
+ * handler: "src/lambda.handler",
1653
+ * nodejs: {
1654
+ * install: ["pg"]
1655
+ * }
1656
+ * });
1657
+ * ```
1658
+ *
1659
+ * Or override it entirely by passing in your own function `bundle`.
1660
+ */
1661
+ export declare class Function extends Component implements Link.Linkable {
1662
+ private constructorName;
1663
+ private durable;
1664
+ private function;
1665
+ private role;
1666
+ private logGroup;
1667
+ private urlEndpoint;
1668
+ private urlResource;
1669
+ private eventInvokeConfig?;
1670
+ private static readonly encryptionKey;
1671
+ private static readonly devBridgeCode;
1672
+ static readonly appsync: () => Promise<any>;
1673
+ /** @internal */
1674
+ static reset(): void;
1675
+ constructor(name: string, args: FunctionArgs, opts?: ComponentResourceOptions);
1676
+ /**
1677
+ * The underlying [resources](/docs/components/#nodes) this component creates.
1678
+ */
1679
+ get nodes(): {
1680
+ /**
1681
+ * The IAM Role the function will use. If you passed in a `role`, it's read from
1682
+ * AWS the first time you access this, including through `const { role } = fn.nodes`
1683
+ * or `{ ...fn.nodes }`, and the deploy fails if that role doesn't exist.
1684
+ */
1685
+ readonly role: import("@pulumi/aws/iam/role.js").Role;
1686
+ /**
1687
+ * The AWS Lambda function.
1688
+ */
1689
+ function: Output<import("@pulumi/aws/lambda/function.js").Function>;
1690
+ /**
1691
+ * The CloudWatch Log Group the function logs are stored.
1692
+ */
1693
+ logGroup: Output<import("@pulumi/aws/cloudwatch/logGroup.js").LogGroup | undefined>;
1694
+ /**
1695
+ * The Function Event Invoke Config resource if retries are configured.
1696
+ */
1697
+ eventInvokeConfig: import("@pulumi/aws/lambda/functionEventInvokeConfig.js").FunctionEventInvokeConfig | undefined;
1698
+ /**
1699
+ * The Lambda Function URL resource if `url` is enabled.
1700
+ */
1701
+ url: Output<import("@pulumi/aws/lambda/functionUrl.js").FunctionUrl | undefined>;
1702
+ };
1703
+ /**
1704
+ * The Lambda function URL if `url` is enabled.
1705
+ */
1706
+ get url(): Output<string>;
1707
+ /**
1708
+ * The name of the Lambda function.
1709
+ */
1710
+ get name(): Output<string>;
1711
+ /**
1712
+ * The ARN of the Lambda function.
1713
+ */
1714
+ get arn(): Output<string>;
1715
+ /** @internal */
1716
+ private get useQualifiedTarget();
1717
+ /** @internal */
1718
+ get targetArn(): Output<string>;
1719
+ /** @internal */
1720
+ get qualifier(): Output<string | undefined>;
1721
+ /** @internal */
1722
+ get targetInvokeArn(): Output<string>;
1723
+ /** @internal */
1724
+ get targetResponseStreamingInvokeArn(): Output<string>;
1725
+ /**
1726
+ * Add environment variables lazily to the function after the function is created.
1727
+ *
1728
+ * This is useful for adding environment variables that are only available after the
1729
+ * function is created, like the function URL.
1730
+ *
1731
+ * @param environment The environment variables to add to the function.
1732
+ *
1733
+ * @example
1734
+ * Add the function URL as an environment variable.
1735
+ *
1736
+ * ```ts title="sst.config.ts"
1737
+ * const fn = new sst.aws.Function("MyFunction", {
1738
+ * handler: "src/handler.handler",
1739
+ * url: true,
1740
+ * });
1741
+ *
1742
+ * fn.addEnvironment({
1743
+ * URL: fn.url,
1744
+ * });
1745
+ * ```
1746
+ */
1747
+ addEnvironment(environment: Input<Record<string, Input<string>>>): FunctionEnvironmentUpdate;
1748
+ /** @internal */
1749
+ static fromDefinition(name: string, definition: Input<string | FunctionArgs>, override: Pick<FunctionArgs, "description" | "permissions">, argsTransform?: Transform<FunctionArgs>, opts?: ComponentResourceOptions): Output<Function>;
1750
+ /** @internal */
1751
+ getSSTLink(): {
1752
+ properties: {
1753
+ qualifier?: Output<string | undefined> | undefined;
1754
+ name: Output<string>;
1755
+ url: Output<string | undefined>;
1756
+ };
1757
+ include: {
1758
+ effect?: "allow" | "deny" | undefined;
1759
+ actions: string[];
1760
+ resources: Input<Input<string>[]>;
1761
+ conditions?: Input<Input<{
1762
+ /**
1763
+ * Name of the [IAM condition operator](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html) to evaluate.
1764
+ */
1765
+ test: Input<string>;
1766
+ /**
1767
+ * Name of a [Context Variable](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html#AvailableKeys) to apply the condition to. Context variables may either be standard AWS variables starting with `aws:` or service-specific variables prefixed with the service name.
1768
+ */
1769
+ variable: Input<string>;
1770
+ /**
1771
+ * The values to evaluate the condition against. If multiple values are provided, the condition matches if at least one of them applies. That is, AWS evaluates multiple values as though using an "OR" boolean operation.
1772
+ */
1773
+ values: Input<Input<string>[]>;
1774
+ }>[]> | undefined;
1775
+ type: "aws.permission";
1776
+ }[];
1777
+ };
1778
+ }
1779
+ export {};
1780
+ //# sourceMappingURL=function.d.ts.map