@sst-community/sst 4.20.0 → 5.0.0-alpha.1

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 +92 -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-ONNI4XNK.js +367 -0
  8. package/platform/js/chunks/chunk-ONNI4XNK.js.map +6 -0
  9. package/platform/js/chunks/chunk-VIFHC73J.js +108 -0
  10. package/platform/js/chunks/chunk-VIFHC73J.js.map +6 -0
  11. package/platform/js/chunks/chunk-WJ6BVA46.js +10 -0
  12. package/platform/js/chunks/chunk-WJ6BVA46.js.map +6 -0
  13. package/platform/js/chunks/chunk-ZOXXXME5.js +472 -0
  14. package/platform/js/chunks/chunk-ZOXXXME5.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-DMGMTLNB.js +10 -0
  18. package/platform/js/chunks/config-DMGMTLNB.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 +35362 -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 +3227 -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 +202 -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 +1047 -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 +3281 -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 +1527 -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 +1460 -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 +1755 -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 +525 -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 +1754 -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 +582 -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 +241 -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 +1437 -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,1755 @@
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
+ * @default `"nodejs24.x"`
303
+ *
304
+ * @example
305
+ * ```js
306
+ * {
307
+ * runtime: "nodejs24.x"
308
+ * }
309
+ * ```
310
+ */
311
+ 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">;
312
+ /**
313
+ * Path to the source code directory for the function. By default, the handler is
314
+ * bundled with [esbuild](https://esbuild.github.io/). Use `bundle` to skip bundling.
315
+ *
316
+ * :::caution
317
+ * Use `bundle` only when you want to bundle the function yourself.
318
+ * :::
319
+ *
320
+ * If the `bundle` option is specified, the `handler` needs to be in the root of the bundle.
321
+ *
322
+ * :::note
323
+ * SST writes the linked resources of each function to `.sst/<function name>/resource.enc`
324
+ * inside the bundle directory, so functions that share a bundle don't overwrite each
325
+ * other. Each function's zip only includes its own folder from `.sst`. Don't keep your
326
+ * own files in a `.sst` folder or a `resource.enc` file at the root of the bundle, they are
327
+ * left out of the zip.
328
+ * :::
329
+ *
330
+ * @example
331
+ *
332
+ * Here, the entire `packages/functions/src` directory is zipped, except for the
333
+ * `.sst` folders of other functions and any `resource.enc` at the root. And the handler is
334
+ * in the `src` directory.
335
+ *
336
+ * ```js
337
+ * {
338
+ * bundle: "packages/functions/src",
339
+ * handler: "index.handler"
340
+ * }
341
+ * ```
342
+ */
343
+ bundle?: Input<string>;
344
+ /**
345
+ * Path to the handler for the function.
346
+ *
347
+ * - For Node.js this is in the format `{path}/{file}.{method}`.
348
+ * - For Python this is also `{path}/{file}.{method}`.
349
+ * - For Golang this is `{path}` to the Go module.
350
+ * - For Rust this is `{path}` to the Rust crate.
351
+ *
352
+ * @example
353
+ *
354
+ * ##### Node.js
355
+ *
356
+ * For example with Node.js you might have.
357
+ *
358
+ * ```js
359
+ * {
360
+ * handler: "packages/functions/src/main.handler"
361
+ * }
362
+ * ```
363
+ *
364
+ * Where `packages/functions/src` is the path. And `main` is the file, where you might have
365
+ * a `main.ts` or `main.js`. And `handler` is the method exported in that file.
366
+ *
367
+ * :::note
368
+ * You don't need to specify the file extension.
369
+ * :::
370
+ *
371
+ * If `bundle` is specified, the handler needs to be in the root of the bundle directory.
372
+ *
373
+ * ```js
374
+ * {
375
+ * bundle: "packages/functions/src",
376
+ * handler: "index.handler"
377
+ * }
378
+ * ```
379
+ *
380
+ * ##### Python
381
+ *
382
+ * SST uses [uv](https://docs.astral.sh/uv/) to package the function.
383
+ * You need to have it installed.
384
+ *
385
+ * :::note
386
+ * You need uv installed for Python functions.
387
+ * :::
388
+ *
389
+ * Your handler must live in a [uv workspace](https://docs.astral.sh/uv/concepts/projects/workspaces/)
390
+ * with a `pyproject.toml`. Match the Python version to your Lambda runtime.
391
+ *
392
+ * ```toml title="pyproject.toml"
393
+ * [project]
394
+ * name = "my-project"
395
+ * requires-python = "==3.11.*"
396
+ * ```
397
+ *
398
+ * Install your packages before starting `sst dev`:
399
+ *
400
+ * ```bash
401
+ * uv sync --all-packages
402
+ * ```
403
+ *
404
+ * Use absolute imports within your package.
405
+ *
406
+ * ```python
407
+ * from mypackage.utils import helper
408
+ * ```
409
+ *
410
+ * Avoid relative imports — they can fail in Lambda. Make sure package directories have `__init__.py`.
411
+ *
412
+ * Access static files relative to `__file__`.
413
+ *
414
+ * ```python
415
+ * from pathlib import Path
416
+ * config = Path(__file__).parent / "config.json"
417
+ * ```
418
+ *
419
+ * For large dependencies like numpy or pandas, deploy as a container. See [`python.container`](#python-container).
420
+ *
421
+ * For common project layouts, check out the [Python examples](https://github.com/sst/sst/tree/dev/examples/python-layouts).
422
+ *
423
+ * ##### Golang
424
+ *
425
+ * For Golang the handler looks like.
426
+ *
427
+ * ```js
428
+ * {
429
+ * handler: "packages/functions/go/some_module"
430
+ * }
431
+ * ```
432
+ *
433
+ * Where `packages/functions/go/some_module` is the path to the Go module. This
434
+ * includes the name of the module in your `go.mod`. So in this case your `go.mod`
435
+ * might be in `packages/functions/go` and `some_module` is the name of the
436
+ * module.
437
+ *
438
+ * You can refer to [this example of deploying a Go function](/docs/examples/#aws-lambda-go).
439
+ *
440
+ * ##### Rust
441
+ *
442
+ * For Rust, the handler looks like.
443
+ *
444
+ * ```js
445
+ * {
446
+ * handler: "crates/api"
447
+ * }
448
+ * ```
449
+ *
450
+ * Where `crates/api` is the path to the Rust crate. This means there is a
451
+ * `Cargo.toml` file in `crates/api`, and the main() function handles the lambda.
452
+ */
453
+ handler: Input<string>;
454
+ /**
455
+ * The maximum amount of time the function can run. The minimum timeout is 1 second and the maximum is 900 seconds or 15 minutes.
456
+ *
457
+ * :::note
458
+ * If a function is connected to another service, the request will time out based on the service's limits.
459
+ * :::
460
+ *
461
+ * While the maximum timeout is 15 minutes, if a function is connected to other
462
+ * services, it'll time out based on those limits.
463
+ *
464
+ * - API Gateway has a timeout of 30 seconds. So even if the function has a
465
+ * timeout of 15 minutes, the API request will time out after 30 seconds.
466
+ * - CloudFront has a default timeout of 60 seconds. You can have this limit
467
+ * increased by [contacting AWS Support](https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase).
468
+ *
469
+ * @default `"20 seconds"`
470
+ * @example
471
+ * ```js
472
+ * {
473
+ * timeout: "900 seconds"
474
+ * }
475
+ * ```
476
+ */
477
+ timeout?: Input<DurationMinutes>;
478
+ /**
479
+ * The amount of memory allocated for the function. Takes values between 128 MB
480
+ * and 10240 MB in 1 MB increments. The amount of memory affects the amount of
481
+ * virtual CPU available to the function.
482
+ *
483
+ * :::tip
484
+ * While functions with less memory are cheaper, larger functions can process faster.
485
+ * And might end up being more [cost effective](https://docs.aws.amazon.com/lambda/latest/operatorguide/computing-power.html).
486
+ * :::
487
+ *
488
+ * @default `"1024 MB"`
489
+ * @example
490
+ * ```js
491
+ * {
492
+ * memory: "10240 MB"
493
+ * }
494
+ * ```
495
+ */
496
+ memory?: Input<Size>;
497
+ /**
498
+ * The amount of ephemeral storage allocated for the function. This sets the ephemeral
499
+ * storage of the lambda function (/tmp). Must be between "512 MB" and "10240 MB" ("10 GB")
500
+ * in 1 MB increments.
501
+ *
502
+ * @default `"512 MB"`
503
+ * @example
504
+ * ```js
505
+ * {
506
+ * storage: "5 GB"
507
+ * }
508
+ * ```
509
+ */
510
+ storage?: Input<Size>;
511
+ /**
512
+ * Key-value pairs of values that are set as [Lambda environment variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html).
513
+ * The keys need to:
514
+ * - Start with a letter
515
+ * - Be at least 2 characters long
516
+ * - Contain only letters, numbers, or underscores
517
+ *
518
+ * They can be accessed in your function using `process.env.<key>`.
519
+ *
520
+ * :::note
521
+ * The total size of the environment variables cannot exceed 4 KB.
522
+ * :::
523
+ *
524
+ * @example
525
+ *
526
+ * ```js
527
+ * {
528
+ * environment: {
529
+ * DEBUG: "true"
530
+ * }
531
+ * }
532
+ * ```
533
+ */
534
+ environment?: Input<Record<string, Input<string>>>;
535
+ /**
536
+ * Permissions and the resources that the function needs to access. These permissions are
537
+ * used to create the function's IAM role.
538
+ *
539
+ * :::tip
540
+ * If you `link` the function to a resource, the permissions to access it are
541
+ * automatically added.
542
+ * :::
543
+ *
544
+ * @example
545
+ * Allow the function to read and write to an S3 bucket called `my-bucket`.
546
+ * ```js
547
+ * {
548
+ * permissions: [
549
+ * {
550
+ * actions: ["s3:GetObject", "s3:PutObject"],
551
+ * resources: ["arn:aws:s3:::my-bucket/*"]
552
+ * }
553
+ * ]
554
+ * }
555
+ * ```
556
+ *
557
+ * Allow the function to perform all actions on an S3 bucket called `my-bucket`.
558
+ *
559
+ * ```js
560
+ * {
561
+ * permissions: [
562
+ * {
563
+ * actions: ["s3:*"],
564
+ * resources: ["arn:aws:s3:::my-bucket/*"]
565
+ * }
566
+ * ]
567
+ * }
568
+ * ```
569
+ *
570
+ * Granting the function permissions to access all resources.
571
+ *
572
+ * ```js
573
+ * {
574
+ * permissions: [
575
+ * {
576
+ * actions: ["*"],
577
+ * resources: ["*"]
578
+ * }
579
+ * ]
580
+ * }
581
+ * ```
582
+ */
583
+ permissions?: Input<Prettify<FunctionPermissionArgs>[]>;
584
+ /**
585
+ * Policies to attach to the function. These policies will be added to the
586
+ * function's IAM role.
587
+ *
588
+ * Attaching policies lets you grant a set of predefined permissions to the
589
+ * function without having to specify the permissions in the `permissions` prop.
590
+ *
591
+ * @example
592
+ * For example, allow the function to have read-only access to all resources.
593
+ * ```js
594
+ * {
595
+ * policies: ["arn:aws:iam::aws:policy/ReadOnlyAccess"]
596
+ * }
597
+ * ```
598
+ */
599
+ policies?: Input<string[]>;
600
+ /**
601
+ * [Link resources](/docs/linking/) to your function. This will:
602
+ *
603
+ * 1. Grant the permissions needed to access the resources.
604
+ * 2. Allow you to access it in your function using the [SDK](/docs/reference/sdk/).
605
+ *
606
+ * @example
607
+ *
608
+ * Takes a list of components to link to the function.
609
+ *
610
+ * ```js
611
+ * {
612
+ * link: [bucket, stripeKey]
613
+ * }
614
+ * ```
615
+ */
616
+ link?: Input<any[]>;
617
+ /**
618
+ * Enable streaming for the function.
619
+ *
620
+ * Streaming is supported with both Function URLs and API Gateway REST API (V1). It is
621
+ * not supported with API Gateway HTTP API (V2).
622
+ *
623
+ * 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.
624
+ *
625
+ * Check out the [AWS Lambda streaming example](/docs/examples/#aws-lambda-streaming) for more
626
+ * details.
627
+ *
628
+ * @default `false`
629
+ * @example
630
+ * ```js
631
+ * {
632
+ * streaming: true
633
+ * }
634
+ * ```
635
+ */
636
+ streaming?: Input<boolean>;
637
+ /**
638
+ * @internal
639
+ */
640
+ injections?: Input<string[]>;
641
+ /**
642
+ * Configure the function logs in CloudWatch. Or pass in `false` to disable writing logs.
643
+ * @default `{retention: "1 month", format: "text"}`
644
+ * @example
645
+ * ```js
646
+ * {
647
+ * logging: false
648
+ * }
649
+ * ```
650
+ * When set to `false`, the function is not given permissions to write to CloudWatch.
651
+ * Logs.
652
+ */
653
+ logging?: Input<false | {
654
+ /**
655
+ * The duration the function logs are kept in CloudWatch.
656
+ *
657
+ * Not application when an existing log group is provided.
658
+ *
659
+ * @default `1 month`
660
+ * @example
661
+ * ```js
662
+ * {
663
+ * logging: {
664
+ * retention: "forever"
665
+ * }
666
+ * }
667
+ * ```
668
+ */
669
+ retention?: Input<keyof typeof RETENTION>;
670
+ /**
671
+ * Assigns the given CloudWatch log group name to the function. This allows you to pass in a previously created log group.
672
+ *
673
+ * By default, the function creates a new log group when it's created.
674
+ *
675
+ * @default Creates a log group
676
+ * @example
677
+ * ```js
678
+ * {
679
+ * logging: {
680
+ * logGroup: "/existing/log-group"
681
+ * }
682
+ * }
683
+ * ```
684
+ */
685
+ logGroup?: Input<string>;
686
+ /**
687
+ * The [log format](https://docs.aws.amazon.com/lambda/latest/dg/monitoring-cloudwatchlogs-advanced.html)
688
+ * of the Lambda function.
689
+ * @default `"text"`
690
+ * @example
691
+ * ```js
692
+ * {
693
+ * logging: {
694
+ * format: "json"
695
+ * }
696
+ * }
697
+ * ```
698
+ */
699
+ format?: Input<"text" | "json">;
700
+ }>;
701
+ /**
702
+ * The [architecture](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html)
703
+ * of the Lambda function.
704
+ *
705
+ * @default `"x86_64"`
706
+ * @example
707
+ * ```js
708
+ * {
709
+ * architecture: "arm64"
710
+ * }
711
+ * ```
712
+ */
713
+ architecture?: Input<"x86_64" | "arm64">;
714
+ /**
715
+ * Assigns the given IAM role ARN to the function. This allows you to pass in a previously created role.
716
+ *
717
+ * :::caution
718
+ * When you pass in a role, the function will not update it if you add `permissions` or `link` resources.
719
+ * :::
720
+ *
721
+ * 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.
722
+ *
723
+ * However, if you pass in a role, you'll need to update it manually if you add `permissions` or `link` resources.
724
+ *
725
+ * @default Creates a new role
726
+ * @example
727
+ * ```js
728
+ * {
729
+ * role: "arn:aws:iam::123456789012:role/my-role"
730
+ * }
731
+ * ```
732
+ */
733
+ role?: Input<string>;
734
+ /**
735
+ * Enable [Lambda function URLs](https://docs.aws.amazon.com/lambda/latest/dg/lambda-urls.html).
736
+ * These are dedicated endpoints for your Lambda functions.
737
+ * @default `false`
738
+ * @example
739
+ * Enable it with the default options.
740
+ * ```js
741
+ * {
742
+ * url: true
743
+ * }
744
+ * ```
745
+ *
746
+ * Configure the authorization and CORS settings for the endpoint.
747
+ * ```js
748
+ * {
749
+ * url: {
750
+ * authorization: "iam",
751
+ * cors: {
752
+ * allowOrigins: ['https://example.com']
753
+ * }
754
+ * }
755
+ * }
756
+ * ```
757
+ */
758
+ url?: Input<boolean | {
759
+ /**
760
+ * @deprecated The `url.router` prop is now the recommended way to serve your
761
+ * function URL through a `Router` component.
762
+ */
763
+ route?: Prettify<RouterRouteArgsDeprecated>;
764
+ /**
765
+ * Serve your function URL through a `Router` instead of a standalone Function URL.
766
+ *
767
+ * By default, this component creates a direct function URL endpoint. But you might
768
+ * want to serve it through the distribution of your `Router` as a:
769
+ *
770
+ * - A path like `/api/users`
771
+ * - A subdomain like `api.example.com`
772
+ * - Or a combined pattern like `dev.example.com/api`
773
+ *
774
+ * @example
775
+ *
776
+ * To serve your function **from a path**, you'll need to configure the root domain
777
+ * in your `Router` component.
778
+ *
779
+ * ```ts title="sst.config.ts" {2}
780
+ * const router = new sst.aws.Router("Router", {
781
+ * domain: "example.com"
782
+ * });
783
+ * ```
784
+ *
785
+ * Now set the `router` and the `path` in the `url` prop.
786
+ *
787
+ * ```ts {4,5}
788
+ * {
789
+ * url: {
790
+ * router: {
791
+ * instance: router,
792
+ * path: "/api/users"
793
+ * }
794
+ * }
795
+ * }
796
+ * ```
797
+ *
798
+ * To serve your function **from a subdomain**, you'll need to configure the
799
+ * domain in your `Router` component to match both the root and the subdomain.
800
+ *
801
+ * ```ts title="sst.config.ts" {3,4}
802
+ * const router = new sst.aws.Router("Router", {
803
+ * domain: {
804
+ * name: "example.com",
805
+ * aliases: ["*.example.com"]
806
+ * }
807
+ * });
808
+ * ```
809
+ *
810
+ * Now set the `domain` in the `router` prop.
811
+ *
812
+ * ```ts {5}
813
+ * {
814
+ * url: {
815
+ * router: {
816
+ * instance: router,
817
+ * domain: "api.example.com"
818
+ * }
819
+ * }
820
+ * }
821
+ * ```
822
+ *
823
+ * Finally, to serve your function **from a combined pattern** like
824
+ * `dev.example.com/api`, you'll need to configure the domain in your `Router` to
825
+ * match the subdomain.
826
+ *
827
+ * ```ts title="sst.config.ts" {3,4}
828
+ * const router = new sst.aws.Router("Router", {
829
+ * domain: {
830
+ * name: "example.com",
831
+ * aliases: ["*.example.com"]
832
+ * }
833
+ * });
834
+ * ```
835
+ *
836
+ * And set the `domain` and the `path`.
837
+ *
838
+ * ```ts {5,6}
839
+ * {
840
+ * url: {
841
+ * router: {
842
+ * instance: router,
843
+ * domain: "dev.example.com",
844
+ * path: "/api/users"
845
+ * }
846
+ * }
847
+ * }
848
+ * ```
849
+ */
850
+ router?: Prettify<RouterRouteArgs>;
851
+ /**
852
+ * The authorization used for the function URL. Supports [IAM authorization](https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html).
853
+ * @default `"none"`
854
+ * @example
855
+ * ```js
856
+ * {
857
+ * url: {
858
+ * authorization: "iam"
859
+ * }
860
+ * }
861
+ * ```
862
+ */
863
+ authorization?: Input<"none" | "iam">;
864
+ /**
865
+ * Customize the CORS (Cross-origin resource sharing) settings for the function URL.
866
+ * @default `true`
867
+ * @example
868
+ * Disable CORS.
869
+ * ```js
870
+ * {
871
+ * url: {
872
+ * cors: false
873
+ * }
874
+ * }
875
+ * ```
876
+ * Only enable the `GET` and `POST` methods for `https://example.com`.
877
+ * ```js
878
+ * {
879
+ * url: {
880
+ * cors: {
881
+ * allowMethods: ["GET", "POST"],
882
+ * allowOrigins: ["https://example.com"]
883
+ * }
884
+ * }
885
+ * }
886
+ * ```
887
+ */
888
+ cors?: Input<boolean | Prettify<FunctionUrlCorsArgs>>;
889
+ }>;
890
+ /**
891
+ * Configure how your function is bundled.
892
+ *
893
+ * By default, SST will bundle your function
894
+ * code using [esbuild](https://esbuild.github.io/). This tree shakes your code to
895
+ * only include what's used; reducing the size of your function package and improving
896
+ * cold starts.
897
+ */
898
+ nodejs?: Input<{
899
+ /**
900
+ * @internal
901
+ * Point to a file that exports a list of esbuild plugins to use.
902
+ *
903
+ * @example
904
+ * ```js
905
+ * {
906
+ * nodejs: {
907
+ * plugins: "./plugins.mjs"
908
+ * }
909
+ * }
910
+ * ```
911
+ *
912
+ * The path is relative to the location of the `sst.config.ts`.
913
+ *
914
+ * ```js title="plugins.mjs"
915
+ * import { somePlugin } from "some-plugin";
916
+ *
917
+ * export default [
918
+ * somePlugin()
919
+ * ];
920
+ * ```
921
+ *
922
+ * You'll also need to install the npm package of the plugin.
923
+ */
924
+ plugins?: Input<string>;
925
+ /**
926
+ * Configure additional esbuild loaders for other file extensions. This is useful
927
+ * when your code is importing non-JS files like `.png`, `.css`, etc.
928
+ *
929
+ * @example
930
+ * ```js
931
+ * {
932
+ * nodejs: {
933
+ * loader: {
934
+ * ".png": "file"
935
+ * }
936
+ * }
937
+ * }
938
+ * ```
939
+ */
940
+ loader?: Input<Record<string, Loader>>;
941
+ /**
942
+ * Dependencies that need to be excluded from the function package.
943
+ *
944
+ * Certain npm packages cannot be bundled using esbuild. This allows you to exclude them
945
+ * from the bundle. Instead they'll be moved into a `node_modules/` directory in the
946
+ * function package.
947
+ *
948
+ * :::tip
949
+ * If esbuild is giving you an error about a package, try adding it to `install`.
950
+ * :::
951
+ *
952
+ * This will allow your functions to be able to use these dependencies when deployed. They
953
+ * just won't be tree shaken.
954
+ *
955
+ * :::caution
956
+ * If you don't specify a version, the package still needs to be in your `package.json`.
957
+ * :::
958
+ *
959
+ * Esbuild will ignore them while traversing the imports in your code. So these are the
960
+ * **package names as seen in the imports**. It also works on packages that are not directly
961
+ * imported by your code.
962
+ *
963
+ * @example
964
+ * ```js
965
+ * {
966
+ * nodejs: {
967
+ * install: { pg: "8.13.1" }
968
+ * }
969
+ * }
970
+ * ```
971
+ *
972
+ * Passing `["packageName"]` is the same as passing `{ packageName: "*" }`.
973
+ */
974
+ install?: Input<string[] | Record<string, string>>;
975
+ /**
976
+ * Use this to insert a string at the beginning of the generated JS file.
977
+ *
978
+ * @example
979
+ * ```js
980
+ * {
981
+ * nodejs: {
982
+ * banner: "console.log('Function starting')"
983
+ * }
984
+ * }
985
+ * ```
986
+ */
987
+ banner?: Input<string>;
988
+ /**
989
+ * This allows you to customize esbuild config that is used.
990
+ *
991
+ * :::tip
992
+ * Check out the _JS tab_ in the code snippets in the esbuild docs for the
993
+ * [`BuildOptions`](https://esbuild.github.io/api/#build).
994
+ * :::
995
+ */
996
+ esbuild?: Input<EsbuildOptions>;
997
+ /**
998
+ * Disable if the function code is minified when bundled.
999
+ *
1000
+ * @default `true`
1001
+ *
1002
+ * @example
1003
+ * ```js
1004
+ * {
1005
+ * nodejs: {
1006
+ * minify: false
1007
+ * }
1008
+ * }
1009
+ * ```
1010
+ */
1011
+ minify?: Input<boolean>;
1012
+ /**
1013
+ * Configure the format of the generated JS code; ESM or CommonJS.
1014
+ *
1015
+ * @default `"esm"`
1016
+ *
1017
+ * @example
1018
+ * ```js
1019
+ * {
1020
+ * nodejs: {
1021
+ * format: "cjs"
1022
+ * }
1023
+ * }
1024
+ * ```
1025
+ */
1026
+ format?: Input<"cjs" | "esm">;
1027
+ /**
1028
+ * Configure if source maps are added to the function bundle when **deployed**. Since they
1029
+ * increase payload size and potentially cold starts, they are not added by default.
1030
+ * However, they are always generated during `sst dev`.
1031
+ *
1032
+ * :::tip[SST Console]
1033
+ * For the [Console](/docs/console/), source maps are always generated and uploaded
1034
+ * to your bootstrap bucket. These are then downloaded and used to display
1035
+ * Issues in the console.
1036
+ * :::
1037
+ *
1038
+ * @default `false`
1039
+ *
1040
+ * @example
1041
+ * ```js
1042
+ * {
1043
+ * nodejs: {
1044
+ * sourcemap: true
1045
+ * }
1046
+ * }
1047
+ * ```
1048
+ */
1049
+ sourcemap?: Input<boolean>;
1050
+ /**
1051
+ * If enabled, modules that are dynamically imported will be bundled in their own files
1052
+ * with common dependencies placed in shared chunks. This can help reduce cold starts
1053
+ * as your function grows in size.
1054
+ *
1055
+ * @default `false`
1056
+ *
1057
+ * @example
1058
+ * ```js
1059
+ * {
1060
+ * nodejs: {
1061
+ * splitting: true
1062
+ * }
1063
+ * }
1064
+ * ```
1065
+ */
1066
+ splitting?: Input<boolean>;
1067
+ }>;
1068
+ /**
1069
+ * Configure how your Python function is packaged.
1070
+ */
1071
+ python?: Input<{
1072
+ /**
1073
+ * Set this to `true` if you want to deploy this function as a container image.
1074
+ * There are a couple of reasons why you might want to do this.
1075
+ *
1076
+ * 1. The Lambda package size has an unzipped limit of 250MB. Whereas the
1077
+ * container image size has a limit of 10GB.
1078
+ * 2. Even if you are below the 250MB limit, larger Lambda function packages
1079
+ * have longer cold starts when compared to container image.
1080
+ * 3. You might want to use a custom Dockerfile to handle complex builds.
1081
+ *
1082
+ * @default `false`
1083
+ * @example
1084
+ * ```ts
1085
+ * {
1086
+ * python: {
1087
+ * container: true
1088
+ * }
1089
+ * }
1090
+ * ```
1091
+ *
1092
+ * When you run `sst deploy`, it uses a built-in Dockerfile. It also needs
1093
+ * the Docker daemon to be running.
1094
+ *
1095
+ * :::note
1096
+ * This needs the Docker daemon to be running.
1097
+ * :::
1098
+ *
1099
+ * To use a custom Dockerfile, add one to the rooot of the uv workspace
1100
+ * of the function.
1101
+ *
1102
+ *
1103
+ * ```txt {5}
1104
+ * ├── sst.config.ts
1105
+ * ├── pyproject.toml
1106
+ * └── function
1107
+ * ├── pyproject.toml
1108
+ * ├── Dockerfile
1109
+ * └── src
1110
+ * └── function
1111
+ * └── api.py
1112
+ * ```
1113
+ *
1114
+ * You can refer to [this example of using a container image](/docs/examples/#aws-lambda-python-container).
1115
+ */
1116
+ container?: Input<boolean | {
1117
+ /**
1118
+ * Controls whether Docker build cache is enabled.
1119
+ * @default `true`
1120
+ * @example
1121
+ * Disable Docker build caching, useful for environments like Localstack where
1122
+ * ECR cache export is not supported.
1123
+ * ```js
1124
+ * {
1125
+ * python: {
1126
+ * container: {
1127
+ * cache: false
1128
+ * }
1129
+ * }
1130
+ * }
1131
+ * ```
1132
+ */
1133
+ cache?: Input<boolean>;
1134
+ }>;
1135
+ }>;
1136
+ /**
1137
+ * Add additional files to copy into the function package. Takes a list of objects
1138
+ * with `from` and `to` paths. These will be copied over before the function package
1139
+ * is zipped up.
1140
+ *
1141
+ * @example
1142
+ *
1143
+ * Copying over a single file from the `src` directory to the `src/` directory of the
1144
+ * function package.
1145
+ *
1146
+ * ```js
1147
+ * {
1148
+ * copyFiles: [{ from: "src/index.js" }]
1149
+ * }
1150
+ * ```
1151
+ *
1152
+ * Copying over a single file from the `src` directory to the `core/src` directory in
1153
+ * the function package.
1154
+ *
1155
+ * ```js
1156
+ * {
1157
+ * copyFiles: [{ from: "src/index.js", to: "core/src/index.js" }]
1158
+ * }
1159
+ * ```
1160
+ *
1161
+ * Copying over a couple of files.
1162
+ *
1163
+ * ```js
1164
+ * {
1165
+ * copyFiles: [
1166
+ * { from: "src/this.js", to: "core/src/this.js" },
1167
+ * { from: "src/that.js", to: "core/src/that.js" }
1168
+ * ]
1169
+ * }
1170
+ * ```
1171
+ */
1172
+ copyFiles?: Input<{
1173
+ /**
1174
+ * Source path relative to the `sst.config.ts`.
1175
+ */
1176
+ from: Input<string>;
1177
+ /**
1178
+ * Destination path relative to function root in the package. By default, it
1179
+ * creates the same directory structure as the `from` path and copies the file.
1180
+ *
1181
+ * @default The `from` path in the function package
1182
+ */
1183
+ to?: Input<string>;
1184
+ }[]>;
1185
+ /**
1186
+ * Configure the concurrency settings for the function.
1187
+ *
1188
+ * @default No concurrency settings set
1189
+ * @example
1190
+ * ```js
1191
+ * {
1192
+ * concurrency: {
1193
+ * provisioned: 10,
1194
+ * reserved: 50
1195
+ * }
1196
+ * }
1197
+ * ```
1198
+ */
1199
+ concurrency?: Input<{
1200
+ /**
1201
+ * Provisioned concurrency ensures a specific number of Lambda instances are always
1202
+ * ready to handle requests, reducing cold start times. Enabling this will incur
1203
+ * extra charges.
1204
+ *
1205
+ * :::note
1206
+ * Enabling provisioned concurrency will incur extra charges.
1207
+ * :::
1208
+ *
1209
+ * Note that `versioning` needs to be enabled for provisioned concurrency.
1210
+ *
1211
+ * @default No provisioned concurrency
1212
+ * @example
1213
+ * ```js
1214
+ * {
1215
+ * concurrency: {
1216
+ * provisioned: 10
1217
+ * }
1218
+ * }
1219
+ * ```
1220
+ */
1221
+ provisioned?: Input<number>;
1222
+ /**
1223
+ * Reserved concurrency limits the maximum number of concurrent executions for a
1224
+ * function, ensuring critical functions always have capacity. It does not incur
1225
+ * extra charges.
1226
+ *
1227
+ * :::note
1228
+ * Setting this to `0` will disable the function from being triggered.
1229
+ * :::
1230
+ *
1231
+ * @default No reserved concurrency
1232
+ * @example
1233
+ * ```js
1234
+ * {
1235
+ * concurrency: {
1236
+ * reserved: 50
1237
+ * }
1238
+ * }
1239
+ * ```
1240
+ */
1241
+ reserved?: Input<number>;
1242
+ }>;
1243
+ /**
1244
+ * Enable versioning for the function.
1245
+ *
1246
+ * :::note
1247
+ * Durable functions enable this by default.
1248
+ * :::
1249
+ *
1250
+ * @default `false`
1251
+ * @example
1252
+ * ```js
1253
+ * {
1254
+ * versioning: true
1255
+ * }
1256
+ * ```
1257
+ */
1258
+ versioning?: Input<boolean>;
1259
+ /**
1260
+ * A list of Lambda layer ARNs to add to the function.
1261
+ *
1262
+ * :::note
1263
+ * Layers are only added when the function is deployed.
1264
+ * :::
1265
+ *
1266
+ * These are only added when the function is deployed. In `sst dev`, your functions are run
1267
+ * locally, so the layers are not used. Instead you should use a local version of what's
1268
+ * in the layer.
1269
+ *
1270
+ * @example
1271
+ * ```js
1272
+ * {
1273
+ * layers: ["arn:aws:lambda:us-east-1:123456789012:layer:my-layer:1"]
1274
+ * }
1275
+ * ```
1276
+ */
1277
+ layers?: Input<Input<string>[]>;
1278
+ /**
1279
+ * Mount an EFS file system to the function.
1280
+ *
1281
+ * @example
1282
+ * Create an EFS file system.
1283
+ *
1284
+ * ```ts title="sst.config.ts"
1285
+ * const vpc = new sst.aws.Vpc("MyVpc");
1286
+ * const fileSystem = new sst.aws.Efs("MyFileSystem", { vpc });
1287
+ * ```
1288
+ *
1289
+ * And pass it in.
1290
+ *
1291
+ * ```js
1292
+ * {
1293
+ * volume: {
1294
+ * efs: fileSystem
1295
+ * }
1296
+ * }
1297
+ * ```
1298
+ *
1299
+ * By default, the file system will be mounted to `/mnt/efs`. You can change this by
1300
+ * passing in the `path` property.
1301
+ *
1302
+ * ```js
1303
+ * {
1304
+ * volume: {
1305
+ * efs: fileSystem,
1306
+ * path: "/mnt/my-files"
1307
+ * }
1308
+ * }
1309
+ * ```
1310
+ *
1311
+ * To use an existing EFS, you can pass in an EFS access point ARN.
1312
+ *
1313
+ * ```js
1314
+ * {
1315
+ * volume: {
1316
+ * efs: "arn:aws:elasticfilesystem:us-east-1:123456789012:access-point/fsap-12345678",
1317
+ * }
1318
+ * }
1319
+ * ```
1320
+ */
1321
+ volume?: Input<{
1322
+ /**
1323
+ * The EFS file system to mount. Or an EFS access point ARN.
1324
+ */
1325
+ efs: Input<Efs | string>;
1326
+ /**
1327
+ * The path to mount the volume.
1328
+ * @default `"/mnt/efs"`
1329
+ */
1330
+ path?: Input<string>;
1331
+ }>;
1332
+ /**
1333
+ * A list of tags to add to the function.
1334
+ *
1335
+ * @example
1336
+ * ```js
1337
+ * {
1338
+ * tags: {
1339
+ * "my-tag": "my-value"
1340
+ * }
1341
+ * }
1342
+ * ```
1343
+ */
1344
+ tags?: Input<Record<string, Input<string>>>;
1345
+ /**
1346
+ * Configure the function to connect to private subnets in a virtual private cloud or VPC. This allows your function to access private resources.
1347
+ *
1348
+ * @example
1349
+ * Create a `Vpc` component.
1350
+ *
1351
+ * ```js title="sst.config.ts"
1352
+ * const myVpc = new sst.aws.Vpc("MyVpc");
1353
+ * ```
1354
+ *
1355
+ * Or reference an existing VPC.
1356
+ *
1357
+ * ```js title="sst.config.ts"
1358
+ * const myVpc = sst.aws.Vpc.get("MyVpc", "vpc-12345678901234567");
1359
+ * ```
1360
+ *
1361
+ * And pass it in.
1362
+ *
1363
+ * ```js
1364
+ * {
1365
+ * vpc: myVpc
1366
+ * }
1367
+ * ```
1368
+ */
1369
+ vpc?: Vpc | Input<{
1370
+ /**
1371
+ * A list of VPC security group IDs.
1372
+ */
1373
+ securityGroups: Input<Input<string>[]>;
1374
+ /**
1375
+ * A list of VPC subnet IDs.
1376
+ */
1377
+ privateSubnets: Input<Input<string>[]>;
1378
+ /**
1379
+ * A list of VPC subnet IDs.
1380
+ * @deprecated Use `privateSubnets` instead.
1381
+ */
1382
+ subnets?: Input<Input<string>[]>;
1383
+ }>;
1384
+ /**
1385
+ * Hook into the Lambda function build process.
1386
+ */
1387
+ hook?: {
1388
+ /**
1389
+ * Specify a callback that'll be run after the Lambda function is built.
1390
+ *
1391
+ * :::note
1392
+ * This is not called in `sst dev`.
1393
+ * :::
1394
+ *
1395
+ * Useful for modifying the generated Lambda function code before it's
1396
+ * deployed to AWS. It can also be used for uploading the generated sourcemaps
1397
+ * to a service like Sentry.
1398
+ *
1399
+ * @param dir The directory where the function code is generated.
1400
+ */
1401
+ postbuild(dir: string): Promise<void>;
1402
+ };
1403
+ /**
1404
+ * Configure the lambda function as a [AWS durable function](https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html).
1405
+ *
1406
+ * :::caution
1407
+ * This property is meant to be used internally by [Workflow](/docs/component/aws/workflow).
1408
+ * 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.
1409
+ * :::
1410
+ */
1411
+ durable?: boolean | {
1412
+ /**
1413
+ * Maximum execution time for the durable function.
1414
+ * @default `14 days`
1415
+ */
1416
+ timeout?: Input<Duration>;
1417
+ /**
1418
+ * Number of days to retain the function's execution state.
1419
+ * @default `30 days`
1420
+ */
1421
+ retention?: Input<DurationDays>;
1422
+ };
1423
+ /**
1424
+ * [Transform](/docs/components#transform) how this component creates its underlying
1425
+ * resources.
1426
+ */
1427
+ transform?: {
1428
+ /**
1429
+ * Transform the Lambda Function resource.
1430
+ */
1431
+ function?: Transform<lambda.FunctionArgs>;
1432
+ /**
1433
+ * Transform the IAM Role resource.
1434
+ */
1435
+ role?: Transform<iam.RoleArgs>;
1436
+ /**
1437
+ * Transform the CloudWatch LogGroup resource.
1438
+ */
1439
+ logGroup?: Transform<cloudwatch.LogGroupArgs>;
1440
+ /**
1441
+ * Transform the Function Event Invoke Config resource. This is only created
1442
+ * when the `retries` property is set.
1443
+ */
1444
+ eventInvokeConfig?: Transform<lambda.FunctionEventInvokeConfigArgs>;
1445
+ };
1446
+ /**
1447
+ * @internal
1448
+ */
1449
+ _skipMetadata?: boolean;
1450
+ /**
1451
+ * @internal
1452
+ */
1453
+ _skipHint?: boolean;
1454
+ }
1455
+ /**
1456
+ * The `Function` component lets you add serverless functions to your app.
1457
+ * It uses [AWS Lambda](https://aws.amazon.com/lambda/).
1458
+ *
1459
+ * #### Supported runtimes
1460
+ *
1461
+ * Currently supports **Node.js** and **Golang** functions. **Python** and **Rust**
1462
+ * are community supported. Other runtimes are on the roadmap.
1463
+ *
1464
+ * @example
1465
+ *
1466
+ * #### Minimal example
1467
+ *
1468
+ *
1469
+ * <Tabs>
1470
+ * <TabItem label="Node">
1471
+ * Pass in the path to your handler function.
1472
+ *
1473
+ * ```ts title="sst.config.ts"
1474
+ * new sst.aws.Function("MyFunction", {
1475
+ * handler: "src/lambda.handler"
1476
+ * });
1477
+ * ```
1478
+ *
1479
+ * [Learn more below](#handler).
1480
+ * </TabItem>
1481
+ * <TabItem label="Python">
1482
+ * Pass in the path to your handler function.
1483
+ *
1484
+ * ```ts title="sst.config.ts"
1485
+ * new sst.aws.Function("MyFunction", {
1486
+ * runtime: "python3.13",
1487
+ * handler: "functions/src/functions/api.handler"
1488
+ * });
1489
+ * ```
1490
+ *
1491
+ * You need to have uv installed and your handler function needs to be in a uv workspace. [Learn more below](#handler).
1492
+ * </TabItem>
1493
+ * <TabItem label="Go">
1494
+ * Pass in the directory to your Go module.
1495
+ *
1496
+ * ```ts title="sst.config.ts"
1497
+ * new sst.aws.Function("MyFunction", {
1498
+ * runtime: "go",
1499
+ * handler: "./src"
1500
+ * });
1501
+ * ```
1502
+ *
1503
+ * [Learn more below](#handler).
1504
+ * </TabItem>
1505
+ * <TabItem label="Rust">
1506
+ * Pass in the directory where your Cargo.toml lives.
1507
+ *
1508
+ * ```ts title="sst.config.ts"
1509
+ * new sst.aws.Function("MyFunction", {
1510
+ * runtime: "rust",
1511
+ * handler: "./crates/api/"
1512
+ * });
1513
+ * ```
1514
+ *
1515
+ * [Learn more below](#handler).
1516
+ * </TabItem>
1517
+ * </Tabs>
1518
+ *
1519
+ * #### Set additional config
1520
+ *
1521
+ * Pass in additional Lambda config.
1522
+ *
1523
+ * ```ts {3,4} title="sst.config.ts"
1524
+ * new sst.aws.Function("MyFunction", {
1525
+ * handler: "src/lambda.handler",
1526
+ * timeout: "3 minutes",
1527
+ * memory: "1024 MB"
1528
+ * });
1529
+ * ```
1530
+ *
1531
+ * #### Link resources
1532
+ *
1533
+ * [Link resources](/docs/linking/) to the function. This will grant permissions
1534
+ * to the resources and allow you to access it in your handler.
1535
+ *
1536
+ * ```ts {5} title="sst.config.ts"
1537
+ * const bucket = new sst.aws.Bucket("MyBucket");
1538
+ *
1539
+ * new sst.aws.Function("MyFunction", {
1540
+ * handler: "src/lambda.handler",
1541
+ * link: [bucket]
1542
+ * });
1543
+ * ```
1544
+ *
1545
+ * You can use the [SDK](/docs/reference/sdk/) to access the linked resources
1546
+ * in your handler.
1547
+ *
1548
+ * <Tabs>
1549
+ * <TabItem label="Node">
1550
+ * ```ts title="src/lambda.ts"
1551
+ * import { Resource } from "sst";
1552
+ *
1553
+ * console.log(Resource.MyBucket.name);
1554
+ * ```
1555
+ * </TabItem>
1556
+ * <TabItem label="Python">
1557
+ * ```ts title="functions/src/functions/api.py"
1558
+ * from sst import Resource
1559
+ *
1560
+ * def handler(event, context):
1561
+ * print(Resource.MyBucket.name)
1562
+ * ```
1563
+ *
1564
+ * Where the `sst-sdk` package can be added to your `pyproject.toml`.
1565
+ *
1566
+ * ```toml title="functions/pyproject.toml"
1567
+ * [project]
1568
+ * dependencies = ["sst-sdk"]
1569
+ *
1570
+ * [tool.uv.sources]
1571
+ * sst-sdk = { git = "https://github.com/sst-community/sst.git", subdirectory = "sdk/python", branch = "main" }
1572
+ * ```
1573
+ * </TabItem>
1574
+ * <TabItem label="Go">
1575
+ * ```go title="src/main.go"
1576
+ * import (
1577
+ * "github.com/sst/sst/v3/sdk/golang/resource"
1578
+ * )
1579
+ *
1580
+ * resource.Get("MyBucket", "name")
1581
+ * ```
1582
+ * </TabItem>
1583
+ * <TabItem label="Rust">
1584
+ * ```rust title="src/main.rs"
1585
+ * use sst_sdk::Resource;
1586
+ * #[derive(serde::Deserialize, Debug)]
1587
+ * struct Bucket {
1588
+ * name: String,
1589
+ * }
1590
+ *
1591
+ * let resource = Resource::init().unwrap();
1592
+ * let Bucket { name } = resource.get("Bucket").unwrap();
1593
+ * ```
1594
+ * </TabItem>
1595
+ * </Tabs>
1596
+ *
1597
+ * #### Set environment variables
1598
+ *
1599
+ * Set environment variables that you can read in your function. For example, using
1600
+ * `process.env` in your Node.js functions.
1601
+ *
1602
+ * ```ts {4} title="sst.config.ts"
1603
+ * new sst.aws.Function("MyFunction", {
1604
+ * handler: "src/lambda.handler",
1605
+ * environment: {
1606
+ * DEBUG: "true"
1607
+ * }
1608
+ * });
1609
+ * ```
1610
+ *
1611
+ * #### Enable function URLs
1612
+ *
1613
+ * Enable function URLs to invoke the function over HTTP.
1614
+ *
1615
+ * ```ts {3} title="sst.config.ts"
1616
+ * new sst.aws.Function("MyFunction", {
1617
+ * handler: "src/lambda.handler",
1618
+ * url: true
1619
+ * });
1620
+ * ```
1621
+ *
1622
+ * #### Bundling
1623
+ *
1624
+ * Customize how SST uses [esbuild](https://esbuild.github.io/) to bundle your Node.js
1625
+ * functions with the `nodejs` property.
1626
+ *
1627
+ * ```ts title="sst.config.ts" {3-5}
1628
+ * new sst.aws.Function("MyFunction", {
1629
+ * handler: "src/lambda.handler",
1630
+ * nodejs: {
1631
+ * install: ["pg"]
1632
+ * }
1633
+ * });
1634
+ * ```
1635
+ *
1636
+ * Or override it entirely by passing in your own function `bundle`.
1637
+ */
1638
+ export declare class Function extends Component implements Link.Linkable {
1639
+ private constructorName;
1640
+ private durable;
1641
+ private function;
1642
+ private role;
1643
+ private logGroup;
1644
+ private urlEndpoint;
1645
+ private urlResource;
1646
+ private eventInvokeConfig?;
1647
+ private static readonly encryptionKey;
1648
+ private static readonly devBridgeCode;
1649
+ static readonly appsync: () => Promise<any>;
1650
+ /** @internal */
1651
+ static reset(): void;
1652
+ constructor(name: string, args: FunctionArgs, opts?: ComponentResourceOptions);
1653
+ /**
1654
+ * The underlying [resources](/docs/components/#nodes) this component creates.
1655
+ */
1656
+ get nodes(): {
1657
+ /**
1658
+ * The IAM Role the function will use.
1659
+ */
1660
+ role: import("@pulumi/aws/iam/role.js").Role;
1661
+ /**
1662
+ * The AWS Lambda function.
1663
+ */
1664
+ function: Output<import("@pulumi/aws/lambda/function.js").Function>;
1665
+ /**
1666
+ * The CloudWatch Log Group the function logs are stored.
1667
+ */
1668
+ logGroup: Output<import("@pulumi/aws/cloudwatch/logGroup.js").LogGroup | undefined>;
1669
+ /**
1670
+ * The Function Event Invoke Config resource if retries are configured.
1671
+ */
1672
+ eventInvokeConfig: import("@pulumi/aws/lambda/functionEventInvokeConfig.js").FunctionEventInvokeConfig | undefined;
1673
+ /**
1674
+ * The Lambda Function URL resource if `url` is enabled.
1675
+ */
1676
+ url: Output<import("@pulumi/aws/lambda/functionUrl.js").FunctionUrl | undefined>;
1677
+ };
1678
+ /**
1679
+ * The Lambda function URL if `url` is enabled.
1680
+ */
1681
+ get url(): Output<string>;
1682
+ /**
1683
+ * The name of the Lambda function.
1684
+ */
1685
+ get name(): Output<string>;
1686
+ /**
1687
+ * The ARN of the Lambda function.
1688
+ */
1689
+ get arn(): Output<string>;
1690
+ /** @internal */
1691
+ private get useQualifiedTarget();
1692
+ /** @internal */
1693
+ get targetArn(): Output<string>;
1694
+ /** @internal */
1695
+ get qualifier(): Output<string | undefined>;
1696
+ /** @internal */
1697
+ get targetInvokeArn(): Output<string>;
1698
+ /** @internal */
1699
+ get targetResponseStreamingInvokeArn(): Output<string>;
1700
+ /**
1701
+ * Add environment variables lazily to the function after the function is created.
1702
+ *
1703
+ * This is useful for adding environment variables that are only available after the
1704
+ * function is created, like the function URL.
1705
+ *
1706
+ * @param environment The environment variables to add to the function.
1707
+ *
1708
+ * @example
1709
+ * Add the function URL as an environment variable.
1710
+ *
1711
+ * ```ts title="sst.config.ts"
1712
+ * const fn = new sst.aws.Function("MyFunction", {
1713
+ * handler: "src/handler.handler",
1714
+ * url: true,
1715
+ * });
1716
+ *
1717
+ * fn.addEnvironment({
1718
+ * URL: fn.url,
1719
+ * });
1720
+ * ```
1721
+ */
1722
+ addEnvironment(environment: Input<Record<string, Input<string>>>): FunctionEnvironmentUpdate;
1723
+ /** @internal */
1724
+ static fromDefinition(name: string, definition: Input<string | FunctionArgs>, override: Pick<FunctionArgs, "description" | "permissions">, argsTransform?: Transform<FunctionArgs>, opts?: ComponentResourceOptions): Output<Function>;
1725
+ /** @internal */
1726
+ getSSTLink(): {
1727
+ properties: {
1728
+ qualifier?: Output<string | undefined> | undefined;
1729
+ name: Output<string>;
1730
+ url: Output<string | undefined>;
1731
+ };
1732
+ include: {
1733
+ effect?: "allow" | "deny" | undefined;
1734
+ actions: string[];
1735
+ resources: Input<Input<string>[]>;
1736
+ conditions?: Input<Input<{
1737
+ /**
1738
+ * Name of the [IAM condition operator](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html) to evaluate.
1739
+ */
1740
+ test: Input<string>;
1741
+ /**
1742
+ * 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.
1743
+ */
1744
+ variable: Input<string>;
1745
+ /**
1746
+ * 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.
1747
+ */
1748
+ values: Input<Input<string>[]>;
1749
+ }>[]> | undefined;
1750
+ type: "aws.permission";
1751
+ }[];
1752
+ };
1753
+ }
1754
+ export {};
1755
+ //# sourceMappingURL=function.d.ts.map