nomoss 0.0.1 → 0.0.3

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 (720) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +62 -26
  3. package/ROADMAP.md +17 -0
  4. package/docs/README.md +19 -0
  5. package/docs/application/aws-resource-lifecycle-management.md +57 -0
  6. package/docs/application/cli-workflow.md +111 -0
  7. package/docs/application/engine-design.md +43 -0
  8. package/docs/application/generation-architecture.md +320 -0
  9. package/docs/application/resource-command-policy-stage.md +37 -0
  10. package/docs/application/resource-graph.md +45 -0
  11. package/docs/application/resource-lifecycle-tracker.md +51 -0
  12. package/docs/application/resource-mapping.md +117 -0
  13. package/docs/application/resource-operations.md +39 -0
  14. package/docs/application/resource-outputs.md +66 -0
  15. package/docs/application/tracing.md +31 -0
  16. package/docs/development/code-documentation.md +52 -0
  17. package/docs/development/commit-message-spec.md +9 -0
  18. package/docs/development/effect-native-development.md +45 -0
  19. package/docs/development/linting.md +39 -0
  20. package/docs/development/resource-graph-testing-approach.md +9 -0
  21. package/docs/development/review-code.md +57 -0
  22. package/docs/development/review-docs.md +27 -0
  23. package/docs/development/review-remediation-spec.md +49 -0
  24. package/docs/development/spec-writing.md +35 -0
  25. package/docs/development/testing.md +111 -0
  26. package/docs/development/unslop.md +55 -0
  27. package/docs/operations/observability-sop.md +38 -0
  28. package/docs/operations/releasing.md +5 -0
  29. package/examples/README.md +34 -0
  30. package/examples/cli.ts +15 -0
  31. package/examples/commands.ts +66 -0
  32. package/examples/http-echo/application.ts +87 -0
  33. package/examples/http-echo/index.ts +54 -0
  34. package/examples/queue/application.ts +31 -0
  35. package/examples/state-machine/application.ts +55 -0
  36. package/examples/stripe-billing/application.ts +56 -0
  37. package/media/nomoss-http-demo.gif +0 -0
  38. package/package.json +63 -18
  39. package/src/cli.ts +31 -13
  40. package/src/cliCommand.ts +207 -170
  41. package/src/cliDiagnostics.ts +104 -0
  42. package/src/core/asset.ts +350 -0
  43. package/src/core/index.ts +61 -17
  44. package/src/core/{lifecycle.ts → resource/lifecycle.ts} +33 -3
  45. package/src/core/resource/model.ts +1168 -0
  46. package/src/core/resource/resourceCommandPolicy.ts +68 -0
  47. package/src/core/resource/resourceGraphBuilder.ts +319 -0
  48. package/src/core/resource/resourceGraphStore.ts +373 -0
  49. package/src/core/resource/resourceOutputBinding.ts +113 -0
  50. package/src/core/resource/resourceOutputResolver.ts +365 -0
  51. package/src/core/resource/resourceRequest.ts +186 -0
  52. package/src/core/runtime/stackRuntimeLayer.ts +16 -0
  53. package/src/core/runtime/tracing.ts +43 -0
  54. package/src/core/stack/planner.ts +654 -0
  55. package/src/core/stack/resourceDisplay.ts +213 -0
  56. package/src/core/stack/resourceStackDefinition.ts +32 -0
  57. package/src/core/stack/resourceStackLifecycle.ts +1196 -0
  58. package/src/core/stack/resourceStackOperations.ts +642 -0
  59. package/src/core/stack/resourceStackProgress.ts +169 -0
  60. package/src/core/stack/stackWorkflowRenderer.ts +756 -0
  61. package/src/core/state/localState.ts +18 -0
  62. package/src/core/state/resourceState.ts +75 -0
  63. package/src/core/{stateSecretService.ts → state/stateSecretService.ts} +183 -193
  64. package/src/core/state/stateStore.ts +553 -0
  65. package/src/providers/aws/client/awsClient.ts +418 -0
  66. package/src/providers/aws/client/awsClientConfig.ts +133 -0
  67. package/src/providers/aws/client/awsClientModel.ts +119 -0
  68. package/src/providers/aws/client/awsHttpOperation.ts +153 -0
  69. package/src/providers/aws/client/awsQueryOperation.ts +149 -0
  70. package/src/providers/aws/client/awsRequestSigner.ts +115 -0
  71. package/src/providers/aws/client/awsResponseDecoder.ts +135 -0
  72. package/src/providers/aws/client/awsRetryPolicy.ts +62 -0
  73. package/src/providers/aws/client/generated/apiGatewayV2.ts +3025 -0
  74. package/src/providers/aws/client/generated/cloudControl.ts +5746 -0
  75. package/src/providers/aws/client/generated/iam.ts +10892 -0
  76. package/src/providers/aws/client/generated/lambda.ts +5403 -0
  77. package/src/providers/aws/client/generated/sqs.ts +3769 -0
  78. package/src/providers/aws/client/generated/stepFunctions.ts +1726 -0
  79. package/src/providers/aws/client/openapi/cloudControl/CancelResourceRequest.json +579 -0
  80. package/src/providers/aws/client/openapi/cloudControl/CreateResource.json +1019 -0
  81. package/src/providers/aws/client/openapi/cloudControl/DeleteResource.json +1018 -0
  82. package/src/providers/aws/client/openapi/cloudControl/GetResource.json +883 -0
  83. package/src/providers/aws/client/openapi/cloudControl/GetResourceRequestStatus.json +655 -0
  84. package/src/providers/aws/client/openapi/cloudControl/ListResourceRequests.json +566 -0
  85. package/src/providers/aws/client/openapi/cloudControl/ListResources.json +913 -0
  86. package/src/providers/aws/client/openapi/cloudControl/UpdateResource.json +1027 -0
  87. package/src/providers/aws/cloudControl/client.ts +69 -0
  88. package/src/providers/aws/cloudControl/requestTracker.ts +138 -0
  89. package/src/providers/aws/cloudControl/resourceCommandPolicyLayer.ts +63 -0
  90. package/src/providers/aws/cloudControl/resourceLifecycle.ts +479 -0
  91. package/src/providers/aws/cloudControl/resources/generated/certificatemanager/certificate/index.ts +179 -0
  92. package/src/providers/aws/cloudControl/resources/generated/kms/key/index.ts +362 -0
  93. package/src/providers/aws/cloudControl/resources/generated/s3/bucket/index.ts +2364 -0
  94. package/src/providers/aws/cloudControl/resources/generated/sns/topic/index.ts +326 -0
  95. package/src/providers/aws/cloudControl/resources/generated/sqs/queue/index.ts +307 -0
  96. package/src/providers/aws/cloudControl/resources/generated/sqs/queueinlinepolicy/index.ts +108 -0
  97. package/src/providers/aws/cloudControl/runtime.ts +127 -0
  98. package/src/providers/aws/management/resourceConfiguration.ts +121 -0
  99. package/src/providers/aws/management/resourceMapping.ts +343 -0
  100. package/src/providers/aws/management/resourceOperation.ts +57 -0
  101. package/src/providers/aws/management/resourcePolicy.ts +549 -0
  102. package/src/providers/aws/management/resourceRegistration.ts +294 -0
  103. package/src/providers/aws/resources/apiGatewayV2/httpApi.ts +327 -0
  104. package/src/providers/aws/resources/generated/native/apigatewayv2/api/index.ts +565 -0
  105. package/src/providers/aws/resources/generated/native/apigatewayv2/integration/index.ts +583 -0
  106. package/src/providers/aws/resources/generated/native/apigatewayv2/route/index.ts +438 -0
  107. package/src/providers/aws/resources/generated/native/apigatewayv2/stage/index.ts +391 -0
  108. package/src/providers/aws/resources/generated/native/iam/group/index.ts +319 -0
  109. package/src/providers/aws/resources/generated/native/iam/grouppolicy/index.ts +274 -0
  110. package/src/providers/aws/resources/generated/native/iam/instanceprofile/index.ts +277 -0
  111. package/src/providers/aws/resources/generated/native/iam/managedpolicy/index.ts +600 -0
  112. package/src/providers/aws/resources/generated/native/iam/policy/index.ts +279 -0
  113. package/src/providers/aws/resources/generated/native/iam/role/index.ts +478 -0
  114. package/src/providers/aws/resources/generated/native/iam/rolepolicy/index.ts +272 -0
  115. package/src/providers/aws/resources/generated/native/iam/user/index.ts +460 -0
  116. package/src/providers/aws/resources/generated/native/iam/userpolicy/index.ts +272 -0
  117. package/src/providers/aws/resources/generated/native/iam/usertogroupaddition/index.ts +226 -0
  118. package/src/providers/aws/resources/generated/native/kms/key/index.ts +580 -0
  119. package/src/providers/aws/resources/generated/native/lambda/function/index.ts +1974 -0
  120. package/src/providers/aws/resources/generated/native/lambda/permission/index.ts +955 -0
  121. package/src/providers/aws/resources/generated/native/resourceCommands.ts +152 -0
  122. package/src/providers/aws/resources/generated/native/s3/bucket/index.ts +3415 -0
  123. package/src/providers/aws/resources/generated/native/sns/topic/index.ts +551 -0
  124. package/src/providers/aws/resources/generated/native/sqs/queue/index.ts +500 -0
  125. package/src/providers/aws/resources/generated/native/stepfunctions/statemachine/index.ts +763 -0
  126. package/src/providers/aws/resources/iam/grant.ts +150 -0
  127. package/src/providers/aws/resources/iam/grantCommands.ts +283 -0
  128. package/src/providers/aws/resources/iam/policyDocument.ts +30 -0
  129. package/src/providers/aws/resources/iam/policyStatement.ts +59 -0
  130. package/src/providers/aws/resources/iam/role.ts +426 -0
  131. package/src/providers/aws/resources/iam/roleDeclaration.ts +105 -0
  132. package/src/providers/aws/resources/lambda/function.ts +403 -0
  133. package/src/providers/aws/resources/lambda/functionDeclaration.ts +234 -0
  134. package/src/providers/aws/resources/lambda/permission.ts +363 -0
  135. package/src/providers/aws/resources/stepFunctions/stateMachine.ts +95 -0
  136. package/src/providers/aws/runtime.ts +70 -0
  137. package/src/providers/file/jsonFile.ts +94 -0
  138. package/src/providers/file/model.ts +29 -0
  139. package/src/providers/file/resourcePolicy.ts +270 -0
  140. package/src/providers/index.ts +0 -2
  141. package/src/providers/providerRuntimeLayer.ts +24 -113
  142. package/src/providers/resourceCommandPolicyLayer.ts +77 -206
  143. package/src/providers/stripe/client/generated/LICENSE +21 -0
  144. package/src/providers/stripe/client/generated/accounts.ts +14360 -0
  145. package/src/providers/stripe/client/generated/applePayDomains.ts +313 -0
  146. package/src/providers/stripe/client/generated/appsInstalls.ts +495 -0
  147. package/src/providers/stripe/client/generated/billingAlerts.ts +515 -0
  148. package/src/providers/stripe/client/generated/billingCreditGrants.ts +631 -0
  149. package/src/providers/stripe/client/generated/billingFeedbackOptions.ts +396 -0
  150. package/src/providers/stripe/client/generated/billingMeters.ts +688 -0
  151. package/src/providers/stripe/client/generated/billingPortalConfigurations.ts +1279 -0
  152. package/src/providers/stripe/client/generated/catalog.ts +18881 -0
  153. package/src/providers/stripe/client/generated/charges.ts +2637 -0
  154. package/src/providers/stripe/client/generated/checkoutSessions.ts +5692 -0
  155. package/src/providers/stripe/client/generated/climateOrders.ts +472 -0
  156. package/src/providers/stripe/client/generated/commerceProductCatalogImports.ts +268 -0
  157. package/src/providers/stripe/client/generated/configuration.ts +3 -0
  158. package/src/providers/stripe/client/generated/coreAccountTokens.ts +2492 -0
  159. package/src/providers/stripe/client/generated/coreEventDestinations.ts +684 -0
  160. package/src/providers/stripe/client/generated/coreVaultGbBankAccounts.ts +380 -0
  161. package/src/providers/stripe/client/generated/coreVaultUsBankAccounts.ts +648 -0
  162. package/src/providers/stripe/client/generated/coupons.ts +562 -0
  163. package/src/providers/stripe/client/generated/creditNotes.ts +1430 -0
  164. package/src/providers/stripe/client/generated/customers.ts +10712 -0
  165. package/src/providers/stripe/client/generated/entitlementsFeatures.ts +378 -0
  166. package/src/providers/stripe/client/generated/fileLinks.ts +383 -0
  167. package/src/providers/stripe/client/generated/financialConnectionsSessions.ts +297 -0
  168. package/src/providers/stripe/client/generated/forwardingRequests.ts +366 -0
  169. package/src/providers/stripe/client/generated/identityVerificationSessions.ts +780 -0
  170. package/src/providers/stripe/client/generated/index.ts +330 -0
  171. package/src/providers/stripe/client/generated/invoiceitems.ts +924 -0
  172. package/src/providers/stripe/client/generated/invoices.ts +8412 -0
  173. package/src/providers/stripe/client/generated/issuingCardholders.ts +4650 -0
  174. package/src/providers/stripe/client/generated/issuingCards.ts +4622 -0
  175. package/src/providers/stripe/client/generated/issuingDisputes.ts +1474 -0
  176. package/src/providers/stripe/client/generated/issuingPersonalizationDesigns.ts +634 -0
  177. package/src/providers/stripe/client/generated/models/accounts.ts +2808 -0
  178. package/src/providers/stripe/client/generated/models/billing.ts +2527 -0
  179. package/src/providers/stripe/client/generated/models/catalog.ts +3411 -0
  180. package/src/providers/stripe/client/generated/models/charges.ts +3616 -0
  181. package/src/providers/stripe/client/generated/models/common.ts +25024 -0
  182. package/src/providers/stripe/client/generated/models/customers.ts +1559 -0
  183. package/src/providers/stripe/client/generated/models/invoices.ts +3881 -0
  184. package/src/providers/stripe/client/generated/models/issuing.ts +7083 -0
  185. package/src/providers/stripe/client/generated/models/issuingCardholders.ts +2495 -0
  186. package/src/providers/stripe/client/generated/models/paymentIntents.ts +4148 -0
  187. package/src/providers/stripe/client/generated/models/paymentMethodDetails.ts +8128 -0
  188. package/src/providers/stripe/client/generated/models/paymentMethodOptions.ts +1684 -0
  189. package/src/providers/stripe/client/generated/models/paymentMethods.ts +3751 -0
  190. package/src/providers/stripe/client/generated/models/paymentSources.ts +1443 -0
  191. package/src/providers/stripe/client/generated/models/payments.ts +8558 -0
  192. package/src/providers/stripe/client/generated/models/setupIntents.ts +3344 -0
  193. package/src/providers/stripe/client/generated/models/sources.ts +1898 -0
  194. package/src/providers/stripe/client/generated/models/subscriptions.ts +3836 -0
  195. package/src/providers/stripe/client/generated/models/transfers.ts +1197 -0
  196. package/src/providers/stripe/client/generated/models/treasury.ts +3852 -0
  197. package/src/providers/stripe/client/generated/models/v2Accounts.ts +13649 -0
  198. package/src/providers/stripe/client/generated/models/v2Errors.ts +13829 -0
  199. package/src/providers/stripe/client/generated/moneyManagementFinancialAddresses.ts +317 -0
  200. package/src/providers/stripe/client/generated/moneyManagementInboundTransfers.ts +380 -0
  201. package/src/providers/stripe/client/generated/moneyManagementOutboundPayments.ts +828 -0
  202. package/src/providers/stripe/client/generated/moneyManagementOutboundSetupIntents.ts +596 -0
  203. package/src/providers/stripe/client/generated/moneyManagementPayoutIntents.ts +1149 -0
  204. package/src/providers/stripe/client/generated/moneyManagementRecipientVerifications.ts +226 -0
  205. package/src/providers/stripe/client/generated/paymentIntents.ts +17752 -0
  206. package/src/providers/stripe/client/generated/paymentLinks.ts +4199 -0
  207. package/src/providers/stripe/client/generated/paymentMethodConfigurations.ts +4835 -0
  208. package/src/providers/stripe/client/generated/paymentMethodDomains.ts +429 -0
  209. package/src/providers/stripe/client/generated/paymentMethods.ts +2372 -0
  210. package/src/providers/stripe/client/generated/payouts.ts +589 -0
  211. package/src/providers/stripe/client/generated/plans.ts +712 -0
  212. package/src/providers/stripe/client/generated/prices.ts +1045 -0
  213. package/src/providers/stripe/client/generated/productCatalogTrialOffers.ts +447 -0
  214. package/src/providers/stripe/client/generated/products.ts +1370 -0
  215. package/src/providers/stripe/client/generated/promotionCodes.ts +564 -0
  216. package/src/providers/stripe/client/generated/quotes.ts +1874 -0
  217. package/src/providers/stripe/client/generated/radarValueListItems.ts +367 -0
  218. package/src/providers/stripe/client/generated/radarValueLists.ts +496 -0
  219. package/src/providers/stripe/client/generated/refunds.ts +493 -0
  220. package/src/providers/stripe/client/generated/reportingReportRuns.ts +1615 -0
  221. package/src/providers/stripe/client/generated/resourceBindings/Account.ts +200 -0
  222. package/src/providers/stripe/client/generated/resourceBindings/AccountToken.ts +175 -0
  223. package/src/providers/stripe/client/generated/resourceBindings/ApplePayDomain.ts +173 -0
  224. package/src/providers/stripe/client/generated/resourceBindings/AppsInstall.ts +201 -0
  225. package/src/providers/stripe/client/generated/resourceBindings/BankAccount.ts +228 -0
  226. package/src/providers/stripe/client/generated/resourceBindings/BillingAlert.ts +174 -0
  227. package/src/providers/stripe/client/generated/resourceBindings/BillingConfigurationExport.ts +77 -0
  228. package/src/providers/stripe/client/generated/resourceBindings/BillingCreditGrant.ts +201 -0
  229. package/src/providers/stripe/client/generated/resourceBindings/BillingFeedbackOption.ts +197 -0
  230. package/src/providers/stripe/client/generated/resourceBindings/BillingMeter.ts +201 -0
  231. package/src/providers/stripe/client/generated/resourceBindings/BillingPortalConfiguration.ts +214 -0
  232. package/src/providers/stripe/client/generated/resourceBindings/Card.ts +231 -0
  233. package/src/providers/stripe/client/generated/resourceBindings/Charge.ts +202 -0
  234. package/src/providers/stripe/client/generated/resourceBindings/CheckoutSession.ts +199 -0
  235. package/src/providers/stripe/client/generated/resourceBindings/ClimateOrder.ts +201 -0
  236. package/src/providers/stripe/client/generated/resourceBindings/Coupon.ts +202 -0
  237. package/src/providers/stripe/client/generated/resourceBindings/CreditNote.ts +200 -0
  238. package/src/providers/stripe/client/generated/resourceBindings/Customer.ts +200 -0
  239. package/src/providers/stripe/client/generated/resourceBindings/EntitlementsFeature.ts +201 -0
  240. package/src/providers/stripe/client/generated/resourceBindings/EventDestination.ts +197 -0
  241. package/src/providers/stripe/client/generated/resourceBindings/FileLink.ts +200 -0
  242. package/src/providers/stripe/client/generated/resourceBindings/FinancialAddress.ts +177 -0
  243. package/src/providers/stripe/client/generated/resourceBindings/FinancialConnectionsSession.ts +180 -0
  244. package/src/providers/stripe/client/generated/resourceBindings/ForwardingRequest.ts +173 -0
  245. package/src/providers/stripe/client/generated/resourceBindings/GBBankAccount.ts +171 -0
  246. package/src/providers/stripe/client/generated/resourceBindings/IdentityVerificationSession.ts +214 -0
  247. package/src/providers/stripe/client/generated/resourceBindings/InboundTransfer.ts +177 -0
  248. package/src/providers/stripe/client/generated/resourceBindings/Invoice.ts +200 -0
  249. package/src/providers/stripe/client/generated/resourceBindings/Invoiceitem.ts +200 -0
  250. package/src/providers/stripe/client/generated/resourceBindings/IssuingCard.ts +201 -0
  251. package/src/providers/stripe/client/generated/resourceBindings/IssuingCardholder.ts +198 -0
  252. package/src/providers/stripe/client/generated/resourceBindings/IssuingDispute.ts +199 -0
  253. package/src/providers/stripe/client/generated/resourceBindings/IssuingPersonalizationDesign.ts +214 -0
  254. package/src/providers/stripe/client/generated/resourceBindings/OutboundPayment.ts +177 -0
  255. package/src/providers/stripe/client/generated/resourceBindings/OutboundSetupIntent.ts +206 -0
  256. package/src/providers/stripe/client/generated/resourceBindings/PaymentIntent.ts +200 -0
  257. package/src/providers/stripe/client/generated/resourceBindings/PaymentLink.ts +200 -0
  258. package/src/providers/stripe/client/generated/resourceBindings/PaymentMethod.ts +195 -0
  259. package/src/providers/stripe/client/generated/resourceBindings/PaymentMethodConfiguration.ts +214 -0
  260. package/src/providers/stripe/client/generated/resourceBindings/PaymentMethodDomain.ts +208 -0
  261. package/src/providers/stripe/client/generated/resourceBindings/Payout.ts +202 -0
  262. package/src/providers/stripe/client/generated/resourceBindings/PayoutIntent.ts +206 -0
  263. package/src/providers/stripe/client/generated/resourceBindings/Plan.ts +199 -0
  264. package/src/providers/stripe/client/generated/resourceBindings/Price.ts +199 -0
  265. package/src/providers/stripe/client/generated/resourceBindings/Product.ts +196 -0
  266. package/src/providers/stripe/client/generated/resourceBindings/ProductCatalogImport.ts +177 -0
  267. package/src/providers/stripe/client/generated/resourceBindings/ProductCatalogTrialOffer.ts +201 -0
  268. package/src/providers/stripe/client/generated/resourceBindings/PromotionCode.ts +195 -0
  269. package/src/providers/stripe/client/generated/resourceBindings/Quote.ts +199 -0
  270. package/src/providers/stripe/client/generated/resourceBindings/RadarValueList.ts +195 -0
  271. package/src/providers/stripe/client/generated/resourceBindings/RadarValueListItem.ts +175 -0
  272. package/src/providers/stripe/client/generated/resourceBindings/RecipientVerification.ts +177 -0
  273. package/src/providers/stripe/client/generated/resourceBindings/Refund.ts +202 -0
  274. package/src/providers/stripe/client/generated/resourceBindings/ReportingReportRun.ts +173 -0
  275. package/src/providers/stripe/client/generated/resourceBindings/SetupIntent.ts +201 -0
  276. package/src/providers/stripe/client/generated/resourceBindings/ShippingRate.ts +205 -0
  277. package/src/providers/stripe/client/generated/resourceBindings/Source.ts +202 -0
  278. package/src/providers/stripe/client/generated/resourceBindings/Subscription.ts +207 -0
  279. package/src/providers/stripe/client/generated/resourceBindings/SubscriptionItem.ts +199 -0
  280. package/src/providers/stripe/client/generated/resourceBindings/SubscriptionSchedule.ts +203 -0
  281. package/src/providers/stripe/client/generated/resourceBindings/TaxId.ts +172 -0
  282. package/src/providers/stripe/client/generated/resourceBindings/TaxLocation.ts +174 -0
  283. package/src/providers/stripe/client/generated/resourceBindings/TaxRate.ts +200 -0
  284. package/src/providers/stripe/client/generated/resourceBindings/TaxRegistration.ts +200 -0
  285. package/src/providers/stripe/client/generated/resourceBindings/TerminalConfiguration.ts +208 -0
  286. package/src/providers/stripe/client/generated/resourceBindings/TerminalLocation.ts +195 -0
  287. package/src/providers/stripe/client/generated/resourceBindings/TerminalReader.ts +199 -0
  288. package/src/providers/stripe/client/generated/resourceBindings/TestHelpersTestClock.ts +208 -0
  289. package/src/providers/stripe/client/generated/resourceBindings/ThreeDSecureAuthentication.ts +180 -0
  290. package/src/providers/stripe/client/generated/resourceBindings/Token.ts +172 -0
  291. package/src/providers/stripe/client/generated/resourceBindings/Topup.ts +199 -0
  292. package/src/providers/stripe/client/generated/resourceBindings/Transfer.ts +200 -0
  293. package/src/providers/stripe/client/generated/resourceBindings/TreasuryCreditReversal.ts +175 -0
  294. package/src/providers/stripe/client/generated/resourceBindings/TreasuryDebitReversal.ts +176 -0
  295. package/src/providers/stripe/client/generated/resourceBindings/TreasuryFinancialAccount.ts +209 -0
  296. package/src/providers/stripe/client/generated/resourceBindings/TreasuryInboundTransfer.ts +172 -0
  297. package/src/providers/stripe/client/generated/resourceBindings/TreasuryOutboundPayment.ts +172 -0
  298. package/src/providers/stripe/client/generated/resourceBindings/TreasuryOutboundTransfer.ts +175 -0
  299. package/src/providers/stripe/client/generated/resourceBindings/USBankAccount.ts +195 -0
  300. package/src/providers/stripe/client/generated/resourceBindings/V1Account.ts +200 -0
  301. package/src/providers/stripe/client/generated/resourceBindings/WebhookEndpoint.ts +233 -0
  302. package/src/providers/stripe/client/generated/resourceCatalog.ts +10160 -0
  303. package/src/providers/stripe/client/generated/resourceCommands.ts +2132 -0
  304. package/src/providers/stripe/client/generated/resourceDeclarations.ts +3738 -0
  305. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsEntitySchema.ts +5062 -0
  306. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsSchema.ts +5072 -0
  307. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsEntitySchema.ts +2450 -0
  308. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsSchema.ts +2461 -0
  309. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsEntitySchema.ts +30 -0
  310. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsSchema.ts +41 -0
  311. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsEntitySchema.ts +70 -0
  312. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsSchema.ts +81 -0
  313. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsEntitySchema.ts +189 -0
  314. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsSchema.ts +177 -0
  315. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsEntitySchema.ts +80 -0
  316. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsSchema.ts +105 -0
  317. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportDocumentSchema.ts +38 -0
  318. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsEntitySchema.ts +226 -0
  319. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsSchema.ts +65 -0
  320. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsEntitySchema.ts +204 -0
  321. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsSchema.ts +194 -0
  322. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsEntitySchema.ts +38 -0
  323. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsSchema.ts +48 -0
  324. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsEntitySchema.ts +117 -0
  325. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsSchema.ts +128 -0
  326. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsEntitySchema.ts +282 -0
  327. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsSchema.ts +516 -0
  328. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsEntitySchema.ts +189 -0
  329. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsSchema.ts +176 -0
  330. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsEntitySchema.ts +533 -0
  331. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsSchema.ts +501 -0
  332. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsEntitySchema.ts +4486 -0
  333. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsSchema.ts +4601 -0
  334. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsEntitySchema.ts +93 -0
  335. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsSchema.ts +104 -0
  336. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsEntitySchema.ts +158 -0
  337. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsSchema.ts +168 -0
  338. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsEntitySchema.ts +326 -0
  339. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsSchema.ts +300 -0
  340. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsEntitySchema.ts +833 -0
  341. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsSchema.ts +818 -0
  342. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsEntitySchema.ts +54 -0
  343. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsSchema.ts +64 -0
  344. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsEntitySchema.ts +167 -0
  345. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsSchema.ts +178 -0
  346. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsEntitySchema.ts +74 -0
  347. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsSchema.ts +66 -0
  348. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsEntitySchema.ts +62 -0
  349. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsSchema.ts +73 -0
  350. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsEntitySchema.ts +192 -0
  351. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsSchema.ts +198 -0
  352. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsEntitySchema.ts +126 -0
  353. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsSchema.ts +137 -0
  354. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsEntitySchema.ts +52 -0
  355. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsSchema.ts +63 -0
  356. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsEntitySchema.ts +203 -0
  357. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsSchema.ts +214 -0
  358. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsEntitySchema.ts +104 -0
  359. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsSchema.ts +115 -0
  360. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsEntitySchema.ts +1775 -0
  361. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsSchema.ts +1632 -0
  362. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsEntitySchema.ts +343 -0
  363. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsSchema.ts +311 -0
  364. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsEntitySchema.ts +2230 -0
  365. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsSchema.ts +2204 -0
  366. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsEntitySchema.ts +2152 -0
  367. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsSchema.ts +2191 -0
  368. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsEntitySchema.ts +178 -0
  369. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsSchema.ts +580 -0
  370. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsEntitySchema.ts +179 -0
  371. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsSchema.ts +166 -0
  372. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsEntitySchema.ts +253 -0
  373. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsSchema.ts +264 -0
  374. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsEntitySchema.ts +123 -0
  375. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsSchema.ts +133 -0
  376. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsEntitySchema.ts +5519 -0
  377. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsSchema.ts +5464 -0
  378. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsEntitySchema.ts +1775 -0
  379. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsSchema.ts +1967 -0
  380. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsEntitySchema.ts +2280 -0
  381. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsSchema.ts +2291 -0
  382. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsEntitySchema.ts +45 -0
  383. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsSchema.ts +55 -0
  384. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsEntitySchema.ts +1609 -0
  385. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsSchema.ts +1600 -0
  386. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsEntitySchema.ts +272 -0
  387. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsSchema.ts +283 -0
  388. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsEntitySchema.ts +141 -0
  389. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsSchema.ts +105 -0
  390. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsEntitySchema.ts +225 -0
  391. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsSchema.ts +304 -0
  392. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsEntitySchema.ts +434 -0
  393. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsSchema.ts +427 -0
  394. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsEntitySchema.ts +41 -0
  395. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsSchema.ts +51 -0
  396. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsEntitySchema.ts +129 -0
  397. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsSchema.ts +127 -0
  398. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsEntitySchema.ts +365 -0
  399. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsSchema.ts +375 -0
  400. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsEntitySchema.ts +185 -0
  401. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsSchema.ts +171 -0
  402. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsEntitySchema.ts +700 -0
  403. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsSchema.ts +627 -0
  404. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsEntitySchema.ts +46 -0
  405. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsSchema.ts +57 -0
  406. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsEntitySchema.ts +83 -0
  407. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsSchema.ts +94 -0
  408. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsEntitySchema.ts +35 -0
  409. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsSchema.ts +45 -0
  410. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsEntitySchema.ts +175 -0
  411. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsSchema.ts +130 -0
  412. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsEntitySchema.ts +1363 -0
  413. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsSchema.ts +1374 -0
  414. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives.ts +35 -0
  415. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_1.ts +35 -0
  416. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_10.ts +44 -0
  417. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_100.ts +35 -0
  418. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_101.ts +35 -0
  419. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_102.ts +35 -0
  420. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_103.ts +35 -0
  421. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_104.ts +35 -0
  422. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_105.ts +35 -0
  423. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_106.ts +35 -0
  424. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_107.ts +35 -0
  425. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_108.ts +35 -0
  426. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_11.ts +68 -0
  427. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_12.ts +35 -0
  428. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_13.ts +35 -0
  429. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_14.ts +35 -0
  430. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_15.ts +35 -0
  431. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_16.ts +35 -0
  432. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_17.ts +44 -0
  433. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_18.ts +35 -0
  434. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_19.ts +35 -0
  435. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_2.ts +35 -0
  436. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_20.ts +35 -0
  437. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_21.ts +35 -0
  438. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_22.ts +35 -0
  439. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_23.ts +35 -0
  440. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_24.ts +35 -0
  441. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_25.ts +35 -0
  442. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_26.ts +44 -0
  443. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_27.ts +35 -0
  444. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_28.ts +35 -0
  445. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_29.ts +35 -0
  446. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_3.ts +35 -0
  447. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_30.ts +35 -0
  448. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_31.ts +35 -0
  449. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_32.ts +35 -0
  450. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_33.ts +35 -0
  451. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_34.ts +35 -0
  452. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_35.ts +59 -0
  453. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_36.ts +35 -0
  454. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_37.ts +35 -0
  455. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_38.ts +35 -0
  456. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_39.ts +35 -0
  457. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_4.ts +35 -0
  458. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_40.ts +35 -0
  459. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_41.ts +111 -0
  460. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_42.ts +35 -0
  461. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_43.ts +77 -0
  462. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_44.ts +35 -0
  463. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_45.ts +35 -0
  464. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_46.ts +35 -0
  465. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_47.ts +35 -0
  466. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_48.ts +50 -0
  467. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_49.ts +35 -0
  468. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_5.ts +35 -0
  469. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_50.ts +83 -0
  470. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_51.ts +35 -0
  471. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_52.ts +50 -0
  472. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_53.ts +35 -0
  473. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_54.ts +74 -0
  474. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_55.ts +35 -0
  475. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_56.ts +65 -0
  476. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_57.ts +35 -0
  477. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_58.ts +79 -0
  478. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_59.ts +35 -0
  479. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_6.ts +35 -0
  480. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_60.ts +35 -0
  481. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_61.ts +35 -0
  482. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_62.ts +44 -0
  483. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_63.ts +35 -0
  484. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_64.ts +35 -0
  485. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_65.ts +44 -0
  486. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_66.ts +35 -0
  487. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_67.ts +35 -0
  488. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_68.ts +35 -0
  489. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_69.ts +35 -0
  490. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_7.ts +35 -0
  491. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_70.ts +35 -0
  492. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_71.ts +35 -0
  493. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_72.ts +35 -0
  494. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_73.ts +35 -0
  495. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_74.ts +35 -0
  496. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_75.ts +35 -0
  497. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_76.ts +35 -0
  498. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_77.ts +35 -0
  499. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_78.ts +44 -0
  500. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_79.ts +35 -0
  501. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_8.ts +35 -0
  502. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_80.ts +35 -0
  503. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_81.ts +39 -0
  504. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_82.ts +35 -0
  505. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_83.ts +35 -0
  506. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_84.ts +35 -0
  507. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_85.ts +35 -0
  508. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_86.ts +35 -0
  509. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_87.ts +35 -0
  510. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_88.ts +56 -0
  511. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_89.ts +35 -0
  512. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_9.ts +35 -0
  513. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_90.ts +35 -0
  514. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_91.ts +44 -0
  515. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_92.ts +35 -0
  516. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_93.ts +56 -0
  517. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_94.ts +35 -0
  518. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_95.ts +35 -0
  519. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_96.ts +35 -0
  520. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_97.ts +35 -0
  521. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_98.ts +35 -0
  522. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_99.ts +35 -0
  523. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems.ts +38 -0
  524. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_1.ts +39 -0
  525. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_2.ts +38 -0
  526. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_3.ts +154 -0
  527. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_4.ts +51 -0
  528. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_5.ts +120 -0
  529. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties.ts +32 -0
  530. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_1.ts +37 -0
  531. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_10.ts +125 -0
  532. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_11.ts +34 -0
  533. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_12.ts +34 -0
  534. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_13.ts +34 -0
  535. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_14.ts +34 -0
  536. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_15.ts +32 -0
  537. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_16.ts +37 -0
  538. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_17.ts +34 -0
  539. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_18.ts +130 -0
  540. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_19.ts +34 -0
  541. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_2.ts +39 -0
  542. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_20.ts +89 -0
  543. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_21.ts +34 -0
  544. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_22.ts +30 -0
  545. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_23.ts +34 -0
  546. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_24.ts +34 -0
  547. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_25.ts +34 -0
  548. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_26.ts +34 -0
  549. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_27.ts +97 -0
  550. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_28.ts +34 -0
  551. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_29.ts +34 -0
  552. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_3.ts +37 -0
  553. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_30.ts +34 -0
  554. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_31.ts +97 -0
  555. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_32.ts +34 -0
  556. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_33.ts +34 -0
  557. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_4.ts +37 -0
  558. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_5.ts +53 -0
  559. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_6.ts +42 -0
  560. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_7.ts +63 -0
  561. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_8.ts +94 -0
  562. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_9.ts +34 -0
  563. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsEntitySchema.ts +2961 -0
  564. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsSchema.ts +2914 -0
  565. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsEntitySchema.ts +177 -0
  566. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsSchema.ts +188 -0
  567. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsEntitySchema.ts +556 -0
  568. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsSchema.ts +566 -0
  569. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsEntitySchema.ts +259 -0
  570. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsSchema.ts +262 -0
  571. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsEntitySchema.ts +2128 -0
  572. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsSchema.ts +2048 -0
  573. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsEntitySchema.ts +698 -0
  574. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsSchema.ts +1347 -0
  575. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsEntitySchema.ts +355 -0
  576. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsSchema.ts +354 -0
  577. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsEntitySchema.ts +120 -0
  578. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsSchema.ts +131 -0
  579. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsEntitySchema.ts +166 -0
  580. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsSchema.ts +176 -0
  581. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsEntitySchema.ts +3328 -0
  582. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsSchema.ts +3339 -0
  583. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsEntitySchema.ts +992 -0
  584. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsSchema.ts +916 -0
  585. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsEntitySchema.ts +299 -0
  586. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsSchema.ts +310 -0
  587. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsEntitySchema.ts +89 -0
  588. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsSchema.ts +79 -0
  589. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsEntitySchema.ts +55 -0
  590. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsSchema.ts +65 -0
  591. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsEntitySchema.ts +711 -0
  592. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsSchema.ts +702 -0
  593. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsEntitySchema.ts +2394 -0
  594. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsSchema.ts +2404 -0
  595. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsEntitySchema.ts +148 -0
  596. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsSchema.ts +138 -0
  597. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsEntitySchema.ts +129 -0
  598. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsSchema.ts +97 -0
  599. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsEntitySchema.ts +44 -0
  600. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsSchema.ts +54 -0
  601. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsEntitySchema.ts +44 -0
  602. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsSchema.ts +54 -0
  603. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsEntitySchema.ts +284 -0
  604. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsSchema.ts +293 -0
  605. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsEntitySchema.ts +81 -0
  606. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsSchema.ts +91 -0
  607. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsEntitySchema.ts +348 -0
  608. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsSchema.ts +358 -0
  609. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsEntitySchema.ts +145 -0
  610. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsSchema.ts +155 -0
  611. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsEntitySchema.ts +52 -0
  612. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsSchema.ts +63 -0
  613. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsEntitySchema.ts +3438 -0
  614. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsSchema.ts +3577 -0
  615. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointDeclarationPropsEntitySchema.ts +22 -0
  616. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointDeclarationPropsSchema.ts +24 -0
  617. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointLocalPropsSchema.ts +10 -0
  618. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsEntitySchema.ts +891 -0
  619. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsSchema.ts +904 -0
  620. package/src/providers/stripe/client/generated/resourceOutputs.ts +873 -0
  621. package/src/providers/stripe/client/generated/setupIntents.ts +8854 -0
  622. package/src/providers/stripe/client/generated/shippingRates.ts +558 -0
  623. package/src/providers/stripe/client/generated/sources.ts +1482 -0
  624. package/src/providers/stripe/client/generated/subscriptionItems.ts +848 -0
  625. package/src/providers/stripe/client/generated/subscriptionSchedules.ts +3145 -0
  626. package/src/providers/stripe/client/generated/subscriptions.ts +5057 -0
  627. package/src/providers/stripe/client/generated/taxIds.ts +644 -0
  628. package/src/providers/stripe/client/generated/taxLocations.ts +348 -0
  629. package/src/providers/stripe/client/generated/taxRates.ts +620 -0
  630. package/src/providers/stripe/client/generated/taxRegistrations.ts +3646 -0
  631. package/src/providers/stripe/client/generated/terminalConfigurations.ts +2181 -0
  632. package/src/providers/stripe/client/generated/terminalLocations.ts +926 -0
  633. package/src/providers/stripe/client/generated/terminalReaders.ts +1488 -0
  634. package/src/providers/stripe/client/generated/testHelpersTestClocks.ts +400 -0
  635. package/src/providers/stripe/client/generated/threeDSecureAuthentications.ts +1141 -0
  636. package/src/providers/stripe/client/generated/tokens.ts +2498 -0
  637. package/src/providers/stripe/client/generated/topups.ts +556 -0
  638. package/src/providers/stripe/client/generated/transfers.ts +786 -0
  639. package/src/providers/stripe/client/generated/treasuryCreditReversals.ts +283 -0
  640. package/src/providers/stripe/client/generated/treasuryDebitReversals.ts +286 -0
  641. package/src/providers/stripe/client/generated/treasuryFinancialAccounts.ts +1320 -0
  642. package/src/providers/stripe/client/generated/treasuryInboundTransfers.ts +381 -0
  643. package/src/providers/stripe/client/generated/treasuryOutboundPayments.ts +689 -0
  644. package/src/providers/stripe/client/generated/treasuryOutboundTransfers.ts +453 -0
  645. package/src/providers/stripe/client/generated/v1Accounts.ts +13237 -0
  646. package/src/providers/stripe/client/generated/webhookEndpoints.ts +1817 -0
  647. package/src/providers/stripe/client/stripeClient.ts +212 -0
  648. package/src/providers/stripe/client/stripeClientConfig.ts +22 -0
  649. package/src/providers/stripe/client/stripeClientModel.ts +40 -0
  650. package/src/providers/stripe/index.ts +8 -15
  651. package/src/providers/stripe/management/resourceConfiguration.ts +53 -0
  652. package/src/providers/stripe/management/resourcePolicy.ts +489 -0
  653. package/src/providers/stripe/management/resources.ts +36 -0
  654. package/src/providers/stripe/runtime.ts +74 -0
  655. package/bin/nomoss +0 -13
  656. package/docs/code-documentation.md +0 -36
  657. package/docs/effect-native-development.md +0 -55
  658. package/docs/engine-design.md +0 -93
  659. package/docs/linting.md +0 -88
  660. package/docs/releasing.md +0 -13
  661. package/docs/resource-command-policy-stage.md +0 -71
  662. package/docs/resource-graph-mvp.md +0 -31
  663. package/docs/resource-graph-testing-approach.md +0 -11
  664. package/docs/resource-lifecycle-tracker.md +0 -93
  665. package/docs/testing.md +0 -86
  666. package/examples/upload-events/README.md +0 -41
  667. package/src/cliRuntimeLayer.ts +0 -49
  668. package/src/core/model.ts +0 -229
  669. package/src/core/physicalNameStore.ts +0 -226
  670. package/src/core/planner.ts +0 -645
  671. package/src/core/resourceCommandPolicy.ts +0 -79
  672. package/src/core/resourceGraphBuilder.ts +0 -167
  673. package/src/core/resourceGraphStore.ts +0 -288
  674. package/src/core/resourceOutputResolver.ts +0 -185
  675. package/src/core/resourcePolicy.ts +0 -77
  676. package/src/core/resourceStackDefinition.ts +0 -17
  677. package/src/core/resourceStackLifecycle.ts +0 -456
  678. package/src/core/resourceStackOperations.ts +0 -129
  679. package/src/core/runtimeLayer.ts +0 -73
  680. package/src/core/stackWorkflowRenderer.ts +0 -239
  681. package/src/core/stateStore.ts +0 -652
  682. package/src/core/tracing.ts +0 -26
  683. package/src/providers/aws/awsApply.ts +0 -132
  684. package/src/providers/aws/awsBucket.ts +0 -329
  685. package/src/providers/aws/awsBucketNotification.ts +0 -351
  686. package/src/providers/aws/awsBucketNotificationResourcePolicy.ts +0 -251
  687. package/src/providers/aws/awsBucketResourcePolicy.ts +0 -198
  688. package/src/providers/aws/awsProviderLayer.ts +0 -274
  689. package/src/providers/aws/awsQueue.ts +0 -346
  690. package/src/providers/aws/awsQueuePolicy.ts +0 -419
  691. package/src/providers/aws/awsQueuePolicyResourcePolicy.ts +0 -215
  692. package/src/providers/aws/awsQueueResourcePolicy.ts +0 -270
  693. package/src/providers/aws/awsReconciliation.ts +0 -92
  694. package/src/providers/aws/awsRefresh.ts +0 -50
  695. package/src/providers/aws/awsResourceLifecycle.ts +0 -118
  696. package/src/providers/aws/awsResourcePolicy.ts +0 -83
  697. package/src/providers/aws/awsResources.ts +0 -274
  698. package/src/providers/aws/awsRuntimeLayer.ts +0 -21
  699. package/src/providers/aws/awsSqsTransport.ts +0 -33
  700. package/src/providers/aws/awsStackLifecycle.ts +0 -272
  701. package/src/providers/aws/awsTagging.ts +0 -186
  702. package/src/providers/aws/constants.ts +0 -3
  703. package/src/providers/aws/index.ts +0 -22
  704. package/src/providers/aws/sampleStack.ts +0 -65
  705. package/src/providers/aws/stackWorkflow.ts +0 -443
  706. package/src/providers/stripe/stripeAccount.ts +0 -139
  707. package/src/providers/stripe/stripeBillingConfigurationExport.ts +0 -180
  708. package/src/providers/stripe/stripeBillingConfigurationExportResourcePolicy.ts +0 -178
  709. package/src/providers/stripe/stripeBillingPortalConfiguration.ts +0 -153
  710. package/src/providers/stripe/stripeBillingPortalConfigurationResourcePolicy.ts +0 -177
  711. package/src/providers/stripe/stripeCustomer.ts +0 -148
  712. package/src/providers/stripe/stripeCustomerResourcePolicy.ts +0 -160
  713. package/src/providers/stripe/stripePrice.ts +0 -218
  714. package/src/providers/stripe/stripePriceResourcePolicy.ts +0 -151
  715. package/src/providers/stripe/stripeProduct.ts +0 -171
  716. package/src/providers/stripe/stripeProductResourcePolicy.ts +0 -161
  717. package/src/providers/stripe/stripeResources.ts +0 -454
  718. package/src/providers/stripe/stripeRuntimeLayer.ts +0 -131
  719. package/src/providers/stripe/stripeWebhookEndpoint.ts +0 -293
  720. package/src/providers/stripe/stripeWebhookEndpointResourcePolicy.ts +0 -198
@@ -0,0 +1,1974 @@
1
+ // Generated from the CloudFormation Registry resource schema. Do not edit.
2
+ // biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's generated regular expressions.
3
+ import { Effect, Schema } from "effect";
4
+ import {
5
+ annotateResourceSchema,
6
+ ResourceEntity,
7
+ ResourceGraphBuilder,
8
+ type ResourceKey,
9
+ ResourceReferenceSchema,
10
+ ResourceSchemaAnnotationSchema,
11
+ } from "nomoss/core";
12
+ import { ResourceOutputBinding } from "../../../../../../../core/resource/resourceOutputBinding.js";
13
+
14
+ interface FunctionScalingConfig {
15
+ readonly MinExecutionEnvironments?: number;
16
+ readonly MaxExecutionEnvironments?: number;
17
+ }
18
+
19
+ const FunctionScalingConfig = Schema.Struct({
20
+ MinExecutionEnvironments: Schema.optionalKey(
21
+ Schema.Number.annotate({
22
+ description:
23
+ "The minimum number of execution environments to maintain for the function.",
24
+ })
25
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
26
+ .check(
27
+ Schema.isGreaterThanOrEqualTo(0).annotate({
28
+ expected: "a value greater than or equal to 0",
29
+ }),
30
+ )
31
+ .check(
32
+ Schema.isLessThanOrEqualTo(15000).annotate({
33
+ expected: "a value less than or equal to 15000",
34
+ }),
35
+ ),
36
+ ),
37
+ MaxExecutionEnvironments: Schema.optionalKey(
38
+ Schema.Number.annotate({
39
+ description:
40
+ "The maximum number of execution environments that can be provisioned for the function.",
41
+ })
42
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
43
+ .check(
44
+ Schema.isGreaterThanOrEqualTo(0).annotate({
45
+ expected: "a value greater than or equal to 0",
46
+ }),
47
+ )
48
+ .check(
49
+ Schema.isLessThanOrEqualTo(15000).annotate({
50
+ expected: "a value less than or equal to 15000",
51
+ }),
52
+ ),
53
+ ),
54
+ }).annotate({
55
+ description:
56
+ "Configuration that defines the scaling behavior for a Lambda Managed Instances function, including the minimum and maximum number of execution environments that can be provisioned.",
57
+ identifier: "FunctionScalingConfig",
58
+ });
59
+
60
+ interface TracingConfig {
61
+ readonly Mode?: "Active" | "PassThrough";
62
+ }
63
+
64
+ const TracingConfig = Schema.Struct({
65
+ Mode: Schema.optionalKey(
66
+ Schema.Literals(["Active", "PassThrough"]).annotate({
67
+ description: "The tracing mode.",
68
+ }),
69
+ ),
70
+ }).annotate({
71
+ description:
72
+ "The function's [](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing configuration. To sample and record incoming requests, set ``Mode`` to ``Active``.",
73
+ identifier: "TracingConfig",
74
+ });
75
+
76
+ interface VpcConfig {
77
+ readonly Ipv6AllowedForDualStack?: boolean;
78
+ readonly SecurityGroupIds?: ReadonlyArray<
79
+ | ResourceEntity<{
80
+ readonly provider: "aws";
81
+ readonly service: "ec2";
82
+ readonly resource: "securitygroup";
83
+ }>
84
+ | string
85
+ >;
86
+ readonly SubnetIds?: ReadonlyArray<
87
+ | ResourceEntity<{
88
+ readonly provider: "aws";
89
+ readonly service: "ec2";
90
+ readonly resource: "subnet";
91
+ }>
92
+ | string
93
+ >;
94
+ }
95
+
96
+ const VpcConfig = Schema.Struct({
97
+ Ipv6AllowedForDualStack: Schema.optionalKey(
98
+ Schema.Boolean.annotate({
99
+ description:
100
+ "Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.",
101
+ }),
102
+ ),
103
+ SecurityGroupIds: Schema.optionalKey(
104
+ Schema.Array(
105
+ Schema.Union([
106
+ Schema.Union([
107
+ ResourceReferenceSchema(
108
+ Schema.Struct({
109
+ provider: Schema.Literal("aws"),
110
+ service: Schema.Literal("ec2"),
111
+ resource: Schema.Literal("securitygroup"),
112
+ }),
113
+ {
114
+ value: null,
115
+ outputs: [
116
+ {
117
+ source: ["Id"],
118
+ target: [],
119
+ },
120
+ ],
121
+ },
122
+ ).annotate({ expected: "ResourceEntity" }),
123
+ ]),
124
+ Schema.String,
125
+ ]),
126
+ )
127
+ .annotate({ description: "A list of VPC security group IDs." })
128
+ .check(
129
+ Schema.isMaxLength(5).annotate({
130
+ expected: "a value with a length of at most 5",
131
+ }),
132
+ ),
133
+ ),
134
+ SubnetIds: Schema.optionalKey(
135
+ Schema.Array(
136
+ Schema.Union([
137
+ Schema.Union([
138
+ ResourceReferenceSchema(
139
+ Schema.Struct({
140
+ provider: Schema.Literal("aws"),
141
+ service: Schema.Literal("ec2"),
142
+ resource: Schema.Literal("subnet"),
143
+ }),
144
+ {
145
+ value: null,
146
+ outputs: [
147
+ {
148
+ source: ["SubnetId"],
149
+ target: [],
150
+ },
151
+ ],
152
+ },
153
+ ).annotate({ expected: "ResourceEntity" }),
154
+ ]),
155
+ Schema.String,
156
+ ]),
157
+ )
158
+ .annotate({ description: "A list of VPC subnet IDs." })
159
+ .check(
160
+ Schema.isMaxLength(16).annotate({
161
+ expected: "a value with a length of at most 16",
162
+ }),
163
+ ),
164
+ ),
165
+ }).annotate({
166
+ description:
167
+ "The VPC security groups and subnets that are attached to a Lambda function. When you connect a function to a VPC, Lambda creates an elastic network interface for each combination of security group and subnet in the function's VPC configuration. The function can only access resources and the internet through that VPC. For more information, see [VPC Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html).\n When you delete a function, CFN monitors the state of its network interfaces and waits for Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network interfaces need to be deleted by Lambda before CFN can delete the VPC's resources.\n To monitor network interfaces, CFN needs the ``ec2:DescribeNetworkInterfaces`` permission. It obtains this from the user or role that modifies the stack. If you don't provide this permission, CFN does not wait for network interfaces to be deleted.",
168
+ identifier: "VpcConfig",
169
+ });
170
+
171
+ interface RuntimeManagementConfig {
172
+ readonly UpdateRuntimeOn: "Auto" | "FunctionUpdate" | "Manual";
173
+ readonly RuntimeVersionArn?: string;
174
+ }
175
+
176
+ const RuntimeManagementConfig = Schema.Struct({
177
+ UpdateRuntimeOn: Schema.Literals([
178
+ "Auto",
179
+ "FunctionUpdate",
180
+ "Manual",
181
+ ]).annotate({
182
+ description:
183
+ "Specify the runtime update mode.\n + *Auto (default)* - Automatically update to the most recent and secure runtime version using a [Two-phase runtime version rollout](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase). This is the best choice for most customers to ensure they always benefit from runtime updates.\n + *FunctionUpdate* - LAM updates the runtime of you function to the most recent and secure runtime version when you update your function. This approach synchronizes runtime updates with function deployments, giving you control over when runtime updates are applied and allowing you to detect and mitigate rare runtime update incompatibilities early. When using this setting, you need to regularly update your functions to keep their runtime up-to-date.\n + *Manual* - You specify a runtime version in your function configuration. The function will use this runtime version indefinitely. In the rare case where a new runtime version is incompatible with an existing function, this allows you to roll back your function to an earlier runtime version. For more information, see [Roll back a runtime version](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback).\n \n *Valid Values*: ``Auto`` | ``FunctionUpdate`` | ``Manual``",
184
+ }),
185
+ RuntimeVersionArn: Schema.optionalKey(
186
+ Schema.String.annotate({
187
+ description:
188
+ "The ARN of the runtime version you want the function to use.\n This is only required if you're using the *Manual* runtime update mode.",
189
+ }),
190
+ ),
191
+ }).annotate({
192
+ description:
193
+ "Sets the runtime management configuration for a function's version. For more information, see [Runtime updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html).",
194
+ identifier: "RuntimeManagementConfig",
195
+ });
196
+
197
+ interface DurableConfig {
198
+ readonly KMSKeyArn?: string;
199
+ readonly ExecutionTimeout: number;
200
+ readonly RetentionPeriodInDays?: number;
201
+ }
202
+
203
+ const DurableConfig = Schema.Struct({
204
+ KMSKeyArn: Schema.optionalKey(
205
+ Schema.String.annotate({ description: "" }).check(
206
+ Schema.isPattern(
207
+ new globalThis.RegExp(
208
+ "^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
209
+ "u",
210
+ ),
211
+ ).annotate({
212
+ expected:
213
+ "a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
214
+ }),
215
+ ),
216
+ ),
217
+ ExecutionTimeout: Schema.Number.annotate({
218
+ description:
219
+ "The maximum time (in seconds) that a durable execution can run before timing out. This timeout applies to the entire durable execution, not individual function invocations.",
220
+ })
221
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
222
+ .check(
223
+ Schema.isGreaterThanOrEqualTo(1).annotate({
224
+ expected: "a value greater than or equal to 1",
225
+ }),
226
+ )
227
+ .check(
228
+ Schema.isLessThanOrEqualTo(31622400).annotate({
229
+ expected: "a value less than or equal to 31622400",
230
+ }),
231
+ ),
232
+ RetentionPeriodInDays: Schema.optionalKey(
233
+ Schema.Number.annotate({
234
+ description:
235
+ "The number of days to retain execution history after a durable execution completes. After this period, execution history is no longer available through the GetDurableExecutionHistory API.",
236
+ })
237
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
238
+ .check(
239
+ Schema.isGreaterThanOrEqualTo(1).annotate({
240
+ expected: "a value greater than or equal to 1",
241
+ }),
242
+ )
243
+ .check(
244
+ Schema.isLessThanOrEqualTo(90).annotate({
245
+ expected: "a value less than or equal to 90",
246
+ }),
247
+ ),
248
+ ),
249
+ }).annotate({
250
+ description:
251
+ "Configuration settings for [durable functions](https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html), including execution timeout and retention period for execution history.",
252
+ identifier: "DurableConfig",
253
+ });
254
+
255
+ interface SnapStart {
256
+ readonly ApplyOn: "PublishedVersions" | "None";
257
+ }
258
+
259
+ const SnapStart = Schema.Struct({
260
+ ApplyOn: Schema.Literals(["PublishedVersions", "None"]).annotate({
261
+ description:
262
+ "Set ``ApplyOn`` to ``PublishedVersions`` to create a snapshot of the initialized execution environment when you publish a function version.",
263
+ }),
264
+ }).annotate({
265
+ description:
266
+ "The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting.",
267
+ identifier: "SnapStart",
268
+ });
269
+
270
+ interface FileSystemConfig {
271
+ readonly Arn:
272
+ | ResourceEntity<{
273
+ readonly provider: "aws";
274
+ readonly service: "efs";
275
+ readonly resource: "accesspoint";
276
+ }>
277
+ | string;
278
+ readonly LocalMountPath: string;
279
+ }
280
+
281
+ const FileSystemConfig = Schema.Struct({
282
+ Arn: Schema.Union([
283
+ Schema.Union([
284
+ ResourceReferenceSchema(
285
+ Schema.Struct({
286
+ provider: Schema.Literal("aws"),
287
+ service: Schema.Literal("efs"),
288
+ resource: Schema.Literal("accesspoint"),
289
+ }),
290
+ {
291
+ value: null,
292
+ outputs: [
293
+ {
294
+ source: ["Arn"],
295
+ target: [],
296
+ },
297
+ ],
298
+ },
299
+ ).annotate({ expected: "ResourceEntity" }),
300
+ ]),
301
+ Schema.String.annotate({
302
+ description:
303
+ "The Amazon Resource Name (ARN) of the Amazon EFS or Amazon S3 Files access point that provides access to the file system.",
304
+ })
305
+ .check(
306
+ Schema.isMaxCodePoints(200).annotate({
307
+ expected: "a string with at most 200 code points",
308
+ }),
309
+ )
310
+ .check(
311
+ Schema.isPattern(
312
+ new globalThis.RegExp(
313
+ "^arn:aws[a-zA-Z-]*:elasticfilesystem:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:access-point\\/fsap-[a-f0-9]{17}$|^arn:aws[-a-z]*:s3files:[0-9a-z-:]+:file-system\\/fs-[0-9a-f]{17,40}\\/access-point\\/fsap-[0-9a-f]{17,40}$",
314
+ "u",
315
+ ),
316
+ ).annotate({
317
+ expected:
318
+ "a string matching the RegExp ^arn:aws[a-zA-Z-]*:elasticfilesystem:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:access-point\\/fsap-[a-f0-9]{17}$|^arn:aws[-a-z]*:s3files:[0-9a-z-:]+:file-system\\/fs-[0-9a-f]{17,40}\\/access-point\\/fsap-[0-9a-f]{17,40}$",
319
+ }),
320
+ ),
321
+ ]),
322
+ LocalMountPath: Schema.String.annotate({
323
+ description:
324
+ "The path where the function can access the file system, starting with ``/mnt/``.",
325
+ })
326
+ .check(
327
+ Schema.isMaxCodePoints(160).annotate({
328
+ expected: "a string with at most 160 code points",
329
+ }),
330
+ )
331
+ .check(
332
+ Schema.isPattern(
333
+ new globalThis.RegExp("^\\/mnt\\/[a-zA-Z0-9-_.]+$", "u"),
334
+ ).annotate({
335
+ expected: "a string matching the RegExp ^\\/mnt\\/[a-zA-Z0-9-_.]+$",
336
+ }),
337
+ ),
338
+ }).annotate({
339
+ description:
340
+ "Details about the connection between a Lambda function and an [Amazon EFS file system](https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html) or an [Amazon S3 Files file system](https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html).",
341
+ identifier: "FileSystemConfig",
342
+ });
343
+
344
+ interface TenancyConfig {
345
+ readonly TenantIsolationMode: "PER_TENANT";
346
+ }
347
+
348
+ const TenancyConfig = Schema.Struct({
349
+ TenantIsolationMode: Schema.Literal("PER_TENANT").annotate({
350
+ description:
351
+ "Tenant isolation mode allows for invocation to be sent to a corresponding execution environment dedicated to a specific tenant ID.",
352
+ }),
353
+ }).annotate({
354
+ description:
355
+ "Specifies the tenant isolation mode configuration for a Lambda function. This allows you to configure specific tenant isolation strategies for your function invocations. Tenant isolation configuration cannot be modified after function creation.",
356
+ identifier: "TenancyConfig",
357
+ });
358
+
359
+ interface Tag {
360
+ readonly Value?: string;
361
+ readonly Key: string;
362
+ }
363
+
364
+ const Tag = Schema.Struct({
365
+ Value: Schema.optionalKey(
366
+ Schema.String.annotate({ description: "The value for this tag." })
367
+ .check(
368
+ Schema.isMinCodePoints(0).annotate({
369
+ expected: "a string with at least 0 code points",
370
+ }),
371
+ )
372
+ .check(
373
+ Schema.isMaxCodePoints(256).annotate({
374
+ expected: "a string with at most 256 code points",
375
+ }),
376
+ ),
377
+ ),
378
+ Key: Schema.String.annotate({ description: "The key for this tag." })
379
+ .check(
380
+ Schema.isMinLength(1).annotate({
381
+ expected: "a value with a length of at least 1",
382
+ }),
383
+ )
384
+ .check(
385
+ Schema.isMaxCodePoints(128).annotate({
386
+ expected: "a string with at most 128 code points",
387
+ }),
388
+ ),
389
+ }).annotate({
390
+ description:
391
+ "A [tag](https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to apply to the function.",
392
+ identifier: "Tag",
393
+ });
394
+
395
+ interface ImageConfig {
396
+ readonly WorkingDirectory?: string;
397
+ readonly Command?: ReadonlyArray<string>;
398
+ readonly EntryPoint?: ReadonlyArray<string>;
399
+ }
400
+
401
+ const ImageConfig = Schema.Struct({
402
+ WorkingDirectory: Schema.optionalKey(
403
+ Schema.String.annotate({
404
+ description:
405
+ "Specifies the working directory. The length of the directory string cannot exceed 1,000 characters.",
406
+ }),
407
+ ),
408
+ Command: Schema.optionalKey(
409
+ Schema.Array(Schema.String)
410
+ .annotate({
411
+ description:
412
+ "Specifies parameters that you want to pass in with ENTRYPOINT. You can specify a maximum of 1,500 parameters in the list.",
413
+ })
414
+ .check(
415
+ Schema.isMaxLength(1500).annotate({
416
+ expected: "a value with a length of at most 1500",
417
+ }),
418
+ )
419
+ .check(
420
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
421
+ ),
422
+ ),
423
+ EntryPoint: Schema.optionalKey(
424
+ Schema.Array(Schema.String)
425
+ .annotate({
426
+ description:
427
+ "Specifies the entry point to their application, which is typically the location of the runtime executable. You can specify a maximum of 1,500 string entries in the list.",
428
+ })
429
+ .check(
430
+ Schema.isMaxLength(1500).annotate({
431
+ expected: "a value with a length of at most 1500",
432
+ }),
433
+ )
434
+ .check(
435
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
436
+ ),
437
+ ),
438
+ }).annotate({
439
+ description:
440
+ "Configuration values that override the container image Dockerfile settings. For more information, see [Container image settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms).",
441
+ identifier: "ImageConfig",
442
+ });
443
+
444
+ interface DeadLetterConfig {
445
+ readonly TargetArn?:
446
+ | ResourceEntity<{
447
+ readonly provider: "aws";
448
+ readonly service: "sqs";
449
+ readonly resource: "queue";
450
+ }>
451
+ | ResourceEntity<{
452
+ readonly provider: "aws";
453
+ readonly service: "sns";
454
+ readonly resource: "topic";
455
+ }>
456
+ | string;
457
+ }
458
+
459
+ const DeadLetterConfig = Schema.Struct({
460
+ TargetArn: Schema.optionalKey(
461
+ Schema.Union([
462
+ Schema.Union([
463
+ ResourceReferenceSchema(
464
+ Schema.Struct({
465
+ provider: Schema.Literal("aws"),
466
+ service: Schema.Literal("sqs"),
467
+ resource: Schema.Literal("queue"),
468
+ }),
469
+ {
470
+ value: null,
471
+ outputs: [
472
+ {
473
+ source: ["Arn"],
474
+ target: [],
475
+ },
476
+ ],
477
+ },
478
+ ).annotate({ expected: "ResourceEntity" }),
479
+ ResourceReferenceSchema(
480
+ Schema.Struct({
481
+ provider: Schema.Literal("aws"),
482
+ service: Schema.Literal("sns"),
483
+ resource: Schema.Literal("topic"),
484
+ }),
485
+ {
486
+ value: null,
487
+ outputs: [
488
+ {
489
+ source: ["TopicArn"],
490
+ target: [],
491
+ },
492
+ ],
493
+ },
494
+ ).annotate({ expected: "ResourceEntity" }),
495
+ ]),
496
+ Schema.String.annotate({
497
+ description:
498
+ "The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.",
499
+ }).check(
500
+ Schema.isPattern(
501
+ new globalThis.RegExp(
502
+ "^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
503
+ "u",
504
+ ),
505
+ ).annotate({
506
+ expected:
507
+ "a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
508
+ }),
509
+ ),
510
+ ]),
511
+ ),
512
+ }).annotate({
513
+ description:
514
+ "The [dead-letter queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-dlq) for failed asynchronous invocations.",
515
+ identifier: "DeadLetterConfig",
516
+ });
517
+
518
+ interface LambdaManagedInstancesCapacityProviderConfig {
519
+ readonly ExecutionEnvironmentMemoryGiBPerVCpu?: number;
520
+ readonly CapacityProviderArn: string;
521
+ readonly PerExecutionEnvironmentMaxConcurrency?: number;
522
+ }
523
+
524
+ const LambdaManagedInstancesCapacityProviderConfig = Schema.Struct({
525
+ ExecutionEnvironmentMemoryGiBPerVCpu: Schema.optionalKey(
526
+ Schema.Number.annotate({
527
+ description:
528
+ "The amount of memory in GiB allocated per vCPU for execution environments.",
529
+ })
530
+ .check(Schema.isFinite().annotate({ expected: "a finite number" }))
531
+ .check(
532
+ Schema.isGreaterThanOrEqualTo(2).annotate({
533
+ expected: "a value greater than or equal to 2",
534
+ }),
535
+ )
536
+ .check(
537
+ Schema.isLessThanOrEqualTo(8).annotate({
538
+ expected: "a value less than or equal to 8",
539
+ }),
540
+ ),
541
+ ),
542
+ CapacityProviderArn: Schema.String.annotate({
543
+ description: "The Amazon Resource Name (ARN) of the capacity provider.",
544
+ })
545
+ .check(
546
+ Schema.isMinLength(1).annotate({
547
+ expected: "a value with a length of at least 1",
548
+ }),
549
+ )
550
+ .check(
551
+ Schema.isMaxCodePoints(140).annotate({
552
+ expected: "a string with at most 140 code points",
553
+ }),
554
+ )
555
+ .check(
556
+ Schema.isPattern(
557
+ new globalThis.RegExp(
558
+ "^arn:aws[a-zA-Z-]*:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:capacity-provider:[a-zA-Z0-9-_]+$",
559
+ "u",
560
+ ),
561
+ ).annotate({
562
+ expected:
563
+ "a string matching the RegExp ^arn:aws[a-zA-Z-]*:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:capacity-provider:[a-zA-Z0-9-_]+$",
564
+ }),
565
+ ),
566
+ PerExecutionEnvironmentMaxConcurrency: Schema.optionalKey(
567
+ Schema.Number.annotate({
568
+ description:
569
+ "The maximum number of concurrent executions that can run on each execution environment.",
570
+ })
571
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
572
+ .check(
573
+ Schema.isGreaterThanOrEqualTo(1).annotate({
574
+ expected: "a value greater than or equal to 1",
575
+ }),
576
+ )
577
+ .check(
578
+ Schema.isLessThanOrEqualTo(1600).annotate({
579
+ expected: "a value less than or equal to 1600",
580
+ }),
581
+ ),
582
+ ),
583
+ }).annotate({
584
+ description:
585
+ "Configuration for Lambda-managed instances used by the capacity provider.",
586
+ identifier: "LambdaManagedInstancesCapacityProviderConfig",
587
+ });
588
+
589
+ interface Code {
590
+ readonly SourceKMSKeyArn?: string;
591
+ readonly S3ObjectVersion?: string;
592
+ readonly S3Bucket?:
593
+ | ResourceEntity<{
594
+ readonly provider: "aws";
595
+ readonly service: "s3";
596
+ readonly resource: "bucket";
597
+ }>
598
+ | string;
599
+ readonly ZipFile?: string;
600
+ readonly S3Key?: string;
601
+ readonly S3ObjectStorageMode?: "COPY" | "REFERENCE";
602
+ readonly ImageUri?: string;
603
+ }
604
+
605
+ const Code = Schema.Struct({
606
+ SourceKMSKeyArn: Schema.optionalKey(
607
+ Schema.String.annotate({
608
+ description:
609
+ "The ARN of the KMSlong (KMS) customer managed key that's used to encrypt your function's .zip deployment package. If you don't provide a customer managed key, Lambda uses an [owned key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk).",
610
+ }).check(
611
+ Schema.isPattern(
612
+ new globalThis.RegExp(
613
+ "^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
614
+ "u",
615
+ ),
616
+ ).annotate({
617
+ expected:
618
+ "a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
619
+ }),
620
+ ),
621
+ ),
622
+ S3ObjectVersion: Schema.optionalKey(
623
+ Schema.String.annotate({
624
+ description:
625
+ "For versioned objects, the version of the deployment package object to use.",
626
+ })
627
+ .check(
628
+ Schema.isMinLength(1).annotate({
629
+ expected: "a value with a length of at least 1",
630
+ }),
631
+ )
632
+ .check(
633
+ Schema.isMaxCodePoints(1024).annotate({
634
+ expected: "a string with at most 1024 code points",
635
+ }),
636
+ ),
637
+ ),
638
+ S3Bucket: Schema.optionalKey(
639
+ Schema.Union([
640
+ Schema.Union([
641
+ ResourceReferenceSchema(
642
+ Schema.Struct({
643
+ provider: Schema.Literal("aws"),
644
+ service: Schema.Literal("s3"),
645
+ resource: Schema.Literal("bucket"),
646
+ }),
647
+ {
648
+ value: null,
649
+ outputs: [
650
+ {
651
+ source: ["BucketName"],
652
+ target: [],
653
+ },
654
+ ],
655
+ },
656
+ ).annotate({ expected: "ResourceEntity" }),
657
+ ]),
658
+ Schema.String.annotate({
659
+ description:
660
+ "An Amazon S3 bucket in the same AWS-Region as your function. The bucket can be in a different AWS-account.",
661
+ })
662
+ .check(
663
+ Schema.isMinCodePoints(3).annotate({
664
+ expected: "a string with at least 3 code points",
665
+ }),
666
+ )
667
+ .check(
668
+ Schema.isMaxCodePoints(63).annotate({
669
+ expected: "a string with at most 63 code points",
670
+ }),
671
+ )
672
+ .check(
673
+ Schema.isPattern(
674
+ new globalThis.RegExp("^[0-9A-Za-z\\.\\-_]*(?<!\\.)$", "u"),
675
+ ).annotate({
676
+ expected:
677
+ "a string matching the RegExp ^[0-9A-Za-z\\.\\-_]*(?<!\\.)$",
678
+ }),
679
+ ),
680
+ ]),
681
+ ),
682
+ ZipFile: Schema.optionalKey(
683
+ Schema.String.annotate({
684
+ description:
685
+ "(Node.js and Python) The source code of your Lambda function. If you include your function source inline with this parameter, CFN places it in a file named ``index`` and zips it to create a [deployment package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html). This zip file cannot exceed 4MB. For the ``Handler`` property, the first part of the handler identifier must be ``index``. For example, ``index.handler``.\n When you specify source code inline for a Node.js function, the ``index`` file that CFN creates uses the extension ``.js``. This means that Node.js treats the file as a CommonJS module.\n When using Node.js 24 or later, Node.js can automatically detect if a ``.js`` file should be treated as CommonJS or as an ES module. To enable auto-detection, add the ``--experimental-detect-module`` flag to the ``NODE_OPTIONS`` environment variable. For more information, see [Experimental Node.js features](https://docs.aws.amazon.com//lambda/latest/dg/lambda-nodejs.html#nodejs-experimental-features).\n For JSON, you must escape quotes and special characters such as newline (``\\n``) with a backslash.\n If you specify a function that interacts with an AWS CloudFormation custom resource, you don't have to write your own functions to send responses to the custom resource that invoked the function. AWS CloudFormation provides a response module ([cfn-response](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html)) that simplifies sending responses. See [Using Lambda with CloudFormation](https://docs.aws.amazon.com/lambda/latest/dg/services-cloudformation.html) for details.",
686
+ }),
687
+ ),
688
+ S3Key: Schema.optionalKey(
689
+ Schema.String.annotate({
690
+ description: "The Amazon S3 key of the deployment package.",
691
+ })
692
+ .check(
693
+ Schema.isMinLength(1).annotate({
694
+ expected: "a value with a length of at least 1",
695
+ }),
696
+ )
697
+ .check(
698
+ Schema.isMaxCodePoints(1024).annotate({
699
+ expected: "a string with at most 1024 code points",
700
+ }),
701
+ ),
702
+ ),
703
+ S3ObjectStorageMode: Schema.optionalKey(
704
+ Schema.Literals(["COPY", "REFERENCE"]).annotate({ description: "" }),
705
+ ),
706
+ ImageUri: Schema.optionalKey(
707
+ Schema.String.annotate({
708
+ description:
709
+ "URI of a [container image](https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html) in the Amazon ECR registry.",
710
+ }),
711
+ ),
712
+ }).annotate({
713
+ description:
714
+ "The [deployment package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda function. To deploy a function defined as a container image, you specify the location of a container image in the Amazon ECR registry. For a .zip file deployment package, you can specify the location of an object in Amazon S3. For Node.js and Python functions, you can specify the function code inline in the template.\n When you specify source code inline for a Node.js function, the ``index`` file that CFN creates uses the extension ``.js``. This means that Node.js treats the file as a CommonJS module.\n Changes to a deployment package in Amazon S3 or a container image in ECR are not detected automatically during stack updates. To update the function code, change the object key or version in the template.",
715
+ identifier: "Code",
716
+ });
717
+
718
+ interface LoggingConfig {
719
+ readonly LogFormat?: "Text" | "JSON";
720
+ readonly ApplicationLogLevel?:
721
+ | "TRACE"
722
+ | "DEBUG"
723
+ | "INFO"
724
+ | "WARN"
725
+ | "ERROR"
726
+ | "FATAL";
727
+ readonly LogGroup?:
728
+ | ResourceEntity<{
729
+ readonly provider: "aws";
730
+ readonly service: "logs";
731
+ readonly resource: "loggroup";
732
+ }>
733
+ | string;
734
+ readonly SystemLogLevel?: "DEBUG" | "INFO" | "WARN";
735
+ }
736
+
737
+ const LoggingConfig = Schema.Struct({
738
+ LogFormat: Schema.optionalKey(
739
+ Schema.Literals(["Text", "JSON"]).annotate({
740
+ description:
741
+ "The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.",
742
+ }),
743
+ ),
744
+ ApplicationLogLevel: Schema.optionalKey(
745
+ Schema.Literals([
746
+ "TRACE",
747
+ "DEBUG",
748
+ "INFO",
749
+ "WARN",
750
+ "ERROR",
751
+ "FATAL",
752
+ ]).annotate({
753
+ description:
754
+ "Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where ``TRACE`` is the highest level and ``FATAL`` is the lowest.",
755
+ }),
756
+ ),
757
+ LogGroup: Schema.optionalKey(
758
+ Schema.Union([
759
+ Schema.Union([
760
+ ResourceReferenceSchema(
761
+ Schema.Struct({
762
+ provider: Schema.Literal("aws"),
763
+ service: Schema.Literal("logs"),
764
+ resource: Schema.Literal("loggroup"),
765
+ }),
766
+ {
767
+ value: null,
768
+ outputs: [
769
+ {
770
+ source: ["LogGroupName"],
771
+ target: [],
772
+ },
773
+ ],
774
+ },
775
+ ).annotate({ expected: "ResourceEntity" }),
776
+ ]),
777
+ Schema.String.annotate({
778
+ description:
779
+ "The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to a default log group named ``/aws/lambda/<function name>``. To use a different log group, enter an existing log group or enter a new log group name.",
780
+ })
781
+ .check(
782
+ Schema.isMinLength(1).annotate({
783
+ expected: "a value with a length of at least 1",
784
+ }),
785
+ )
786
+ .check(
787
+ Schema.isMaxCodePoints(512).annotate({
788
+ expected: "a string with at most 512 code points",
789
+ }),
790
+ )
791
+ .check(
792
+ Schema.isPattern(
793
+ new globalThis.RegExp("[\\.\\-_/#A-Za-z0-9]+", "u"),
794
+ ).annotate({
795
+ expected: "a string matching the RegExp [\\.\\-_/#A-Za-z0-9]+",
796
+ }),
797
+ ),
798
+ ]),
799
+ ),
800
+ SystemLogLevel: Schema.optionalKey(
801
+ Schema.Literals(["DEBUG", "INFO", "WARN"]).annotate({
802
+ description:
803
+ "Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where ``DEBUG`` is the highest level and ``WARN`` is the lowest.",
804
+ }),
805
+ ),
806
+ }).annotate({
807
+ description: "The function's Amazon CloudWatch Logs configuration settings.",
808
+ identifier: "LoggingConfig",
809
+ });
810
+
811
+ type RecursiveLoop = "Allow" | "Terminate";
812
+
813
+ const RecursiveLoop = Schema.Literals(["Allow", "Terminate"]).annotate({
814
+ description: "The function recursion configuration.",
815
+ identifier: "RecursiveLoop",
816
+ });
817
+
818
+ interface Environment {
819
+ readonly Variables?: {
820
+ readonly [x: string]: string;
821
+ };
822
+ }
823
+
824
+ const Environment = Schema.Struct({
825
+ Variables: Schema.optionalKey(
826
+ Schema.Record(
827
+ Schema.String.check(
828
+ Schema.isPattern(
829
+ new globalThis.RegExp("[a-zA-Z][a-zA-Z0-9_]+", "u"),
830
+ ).annotate({
831
+ expected: "a string matching the RegExp [a-zA-Z][a-zA-Z0-9_]+",
832
+ }),
833
+ ),
834
+ Schema.String,
835
+ ).annotate({
836
+ description:
837
+ "Environment variable key-value pairs. For more information, see [Using Lambda environment variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html).\n If the value of the environment variable is a time or a duration, enclose the value in quotes.",
838
+ }),
839
+ ),
840
+ }).annotate({
841
+ description:
842
+ "A function's environment variable settings. You can use environment variables to adjust your function's behavior without updating code. An environment variable is a pair of strings that are stored in a function's version-specific configuration.",
843
+ identifier: "Environment",
844
+ });
845
+
846
+ interface EphemeralStorage {
847
+ readonly Size: number;
848
+ }
849
+
850
+ const EphemeralStorage = Schema.Struct({
851
+ Size: Schema.Number.annotate({
852
+ description: "The size of the function's ``/tmp`` directory.",
853
+ })
854
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
855
+ .check(
856
+ Schema.isGreaterThanOrEqualTo(512).annotate({
857
+ expected: "a value greater than or equal to 512",
858
+ }),
859
+ )
860
+ .check(
861
+ Schema.isLessThanOrEqualTo(10240).annotate({
862
+ expected: "a value less than or equal to 10240",
863
+ }),
864
+ ),
865
+ }).annotate({
866
+ description:
867
+ "The size of the function's ``/tmp`` directory in MB. The default value is 512, but it can be any whole number between 512 and 10,240 MB.",
868
+ identifier: "EphemeralStorage",
869
+ });
870
+
871
+ interface SnapStartResponse {
872
+ readonly OptimizationStatus?: "On" | "Off";
873
+ readonly ApplyOn?: "PublishedVersions" | "None";
874
+ }
875
+
876
+ const SnapStartResponse = Schema.Struct({
877
+ OptimizationStatus: Schema.optionalKey(
878
+ Schema.Literals(["On", "Off"]).annotate({
879
+ description:
880
+ "When you provide a [qualified Amazon Resource Name (ARN)](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html#versioning-versions-using), this response element indicates whether SnapStart is activated for the specified function version.",
881
+ }),
882
+ ),
883
+ ApplyOn: Schema.optionalKey(
884
+ Schema.Literals(["PublishedVersions", "None"]).annotate({
885
+ description:
886
+ "When set to ``PublishedVersions``, Lambda creates a snapshot of the execution environment when you publish a function version.",
887
+ }),
888
+ ),
889
+ }).annotate({
890
+ description:
891
+ "The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting.",
892
+ identifier: "SnapStartResponse",
893
+ });
894
+
895
+ interface VpcConfig_1 {
896
+ readonly Ipv6AllowedForDualStack?: boolean;
897
+ readonly SecurityGroupIds?: ReadonlyArray<string>;
898
+ readonly SubnetIds?: ReadonlyArray<string>;
899
+ }
900
+
901
+ const VpcConfig_1 = Schema.Struct({
902
+ Ipv6AllowedForDualStack: Schema.optionalKey(
903
+ Schema.Boolean.annotate({
904
+ description:
905
+ "Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.",
906
+ }),
907
+ ),
908
+ SecurityGroupIds: Schema.optionalKey(
909
+ Schema.Array(Schema.String)
910
+ .annotate({ description: "A list of VPC security group IDs." })
911
+ .check(
912
+ Schema.isMaxLength(5).annotate({
913
+ expected: "a value with a length of at most 5",
914
+ }),
915
+ ),
916
+ ),
917
+ SubnetIds: Schema.optionalKey(
918
+ Schema.Array(Schema.String)
919
+ .annotate({ description: "A list of VPC subnet IDs." })
920
+ .check(
921
+ Schema.isMaxLength(16).annotate({
922
+ expected: "a value with a length of at most 16",
923
+ }),
924
+ ),
925
+ ),
926
+ }).annotate({
927
+ description:
928
+ "The VPC security groups and subnets that are attached to a Lambda function. When you connect a function to a VPC, Lambda creates an elastic network interface for each combination of security group and subnet in the function's VPC configuration. The function can only access resources and the internet through that VPC. For more information, see [VPC Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html).\n When you delete a function, CFN monitors the state of its network interfaces and waits for Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network interfaces need to be deleted by Lambda before CFN can delete the VPC's resources.\n To monitor network interfaces, CFN needs the ``ec2:DescribeNetworkInterfaces`` permission. It obtains this from the user or role that modifies the stack. If you don't provide this permission, CFN does not wait for network interfaces to be deleted.",
929
+ identifier: "VpcConfig_1",
930
+ });
931
+
932
+ interface FileSystemConfig_1 {
933
+ readonly Arn: string;
934
+ readonly LocalMountPath: string;
935
+ }
936
+
937
+ const FileSystemConfig_1 = Schema.Struct({
938
+ Arn: Schema.String.annotate({
939
+ description:
940
+ "The Amazon Resource Name (ARN) of the Amazon EFS or Amazon S3 Files access point that provides access to the file system.",
941
+ })
942
+ .check(
943
+ Schema.isMaxCodePoints(200).annotate({
944
+ expected: "a string with at most 200 code points",
945
+ }),
946
+ )
947
+ .check(
948
+ Schema.isPattern(
949
+ new globalThis.RegExp(
950
+ "^arn:aws[a-zA-Z-]*:elasticfilesystem:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:access-point\\/fsap-[a-f0-9]{17}$|^arn:aws[-a-z]*:s3files:[0-9a-z-:]+:file-system\\/fs-[0-9a-f]{17,40}\\/access-point\\/fsap-[0-9a-f]{17,40}$",
951
+ "u",
952
+ ),
953
+ ).annotate({
954
+ expected:
955
+ "a string matching the RegExp ^arn:aws[a-zA-Z-]*:elasticfilesystem:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:access-point\\/fsap-[a-f0-9]{17}$|^arn:aws[-a-z]*:s3files:[0-9a-z-:]+:file-system\\/fs-[0-9a-f]{17,40}\\/access-point\\/fsap-[0-9a-f]{17,40}$",
956
+ }),
957
+ ),
958
+ LocalMountPath: Schema.String.annotate({
959
+ description:
960
+ "The path where the function can access the file system, starting with ``/mnt/``.",
961
+ })
962
+ .check(
963
+ Schema.isMaxCodePoints(160).annotate({
964
+ expected: "a string with at most 160 code points",
965
+ }),
966
+ )
967
+ .check(
968
+ Schema.isPattern(
969
+ new globalThis.RegExp("^\\/mnt\\/[a-zA-Z0-9-_.]+$", "u"),
970
+ ).annotate({
971
+ expected: "a string matching the RegExp ^\\/mnt\\/[a-zA-Z0-9-_.]+$",
972
+ }),
973
+ ),
974
+ }).annotate({
975
+ description:
976
+ "Details about the connection between a Lambda function and an [Amazon EFS file system](https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html) or an [Amazon S3 Files file system](https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html).",
977
+ identifier: "FileSystemConfig_1",
978
+ });
979
+
980
+ interface DeadLetterConfig_1 {
981
+ readonly TargetArn?: string;
982
+ }
983
+
984
+ const DeadLetterConfig_1 = Schema.Struct({
985
+ TargetArn: Schema.optionalKey(
986
+ Schema.String.annotate({
987
+ description:
988
+ "The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.",
989
+ }).check(
990
+ Schema.isPattern(
991
+ new globalThis.RegExp(
992
+ "^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
993
+ "u",
994
+ ),
995
+ ).annotate({
996
+ expected:
997
+ "a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
998
+ }),
999
+ ),
1000
+ ),
1001
+ }).annotate({
1002
+ description:
1003
+ "The [dead-letter queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-dlq) for failed asynchronous invocations.",
1004
+ identifier: "DeadLetterConfig_1",
1005
+ });
1006
+
1007
+ interface Code_1 {
1008
+ readonly SourceKMSKeyArn?: string;
1009
+ readonly S3ObjectVersion?: string;
1010
+ readonly S3Bucket?: string;
1011
+ readonly ZipFile?: string;
1012
+ readonly S3Key?: string;
1013
+ readonly S3ObjectStorageMode?: "COPY" | "REFERENCE";
1014
+ readonly ImageUri?: string;
1015
+ }
1016
+
1017
+ const Code_1 = Schema.Struct({
1018
+ SourceKMSKeyArn: Schema.optionalKey(
1019
+ Schema.String.annotate({
1020
+ description:
1021
+ "The ARN of the KMSlong (KMS) customer managed key that's used to encrypt your function's .zip deployment package. If you don't provide a customer managed key, Lambda uses an [owned key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk).",
1022
+ }).check(
1023
+ Schema.isPattern(
1024
+ new globalThis.RegExp(
1025
+ "^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
1026
+ "u",
1027
+ ),
1028
+ ).annotate({
1029
+ expected:
1030
+ "a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
1031
+ }),
1032
+ ),
1033
+ ),
1034
+ S3ObjectVersion: Schema.optionalKey(
1035
+ Schema.String.annotate({
1036
+ description:
1037
+ "For versioned objects, the version of the deployment package object to use.",
1038
+ })
1039
+ .check(
1040
+ Schema.isMinLength(1).annotate({
1041
+ expected: "a value with a length of at least 1",
1042
+ }),
1043
+ )
1044
+ .check(
1045
+ Schema.isMaxCodePoints(1024).annotate({
1046
+ expected: "a string with at most 1024 code points",
1047
+ }),
1048
+ ),
1049
+ ),
1050
+ S3Bucket: Schema.optionalKey(
1051
+ Schema.String.annotate({
1052
+ description:
1053
+ "An Amazon S3 bucket in the same AWS-Region as your function. The bucket can be in a different AWS-account.",
1054
+ })
1055
+ .check(
1056
+ Schema.isMinCodePoints(3).annotate({
1057
+ expected: "a string with at least 3 code points",
1058
+ }),
1059
+ )
1060
+ .check(
1061
+ Schema.isMaxCodePoints(63).annotate({
1062
+ expected: "a string with at most 63 code points",
1063
+ }),
1064
+ )
1065
+ .check(
1066
+ Schema.isPattern(
1067
+ new globalThis.RegExp("^[0-9A-Za-z\\.\\-_]*(?<!\\.)$", "u"),
1068
+ ).annotate({
1069
+ expected:
1070
+ "a string matching the RegExp ^[0-9A-Za-z\\.\\-_]*(?<!\\.)$",
1071
+ }),
1072
+ ),
1073
+ ),
1074
+ ZipFile: Schema.optionalKey(
1075
+ Schema.String.annotate({
1076
+ description:
1077
+ "(Node.js and Python) The source code of your Lambda function. If you include your function source inline with this parameter, CFN places it in a file named ``index`` and zips it to create a [deployment package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html). This zip file cannot exceed 4MB. For the ``Handler`` property, the first part of the handler identifier must be ``index``. For example, ``index.handler``.\n When you specify source code inline for a Node.js function, the ``index`` file that CFN creates uses the extension ``.js``. This means that Node.js treats the file as a CommonJS module.\n When using Node.js 24 or later, Node.js can automatically detect if a ``.js`` file should be treated as CommonJS or as an ES module. To enable auto-detection, add the ``--experimental-detect-module`` flag to the ``NODE_OPTIONS`` environment variable. For more information, see [Experimental Node.js features](https://docs.aws.amazon.com//lambda/latest/dg/lambda-nodejs.html#nodejs-experimental-features).\n For JSON, you must escape quotes and special characters such as newline (``\\n``) with a backslash.\n If you specify a function that interacts with an AWS CloudFormation custom resource, you don't have to write your own functions to send responses to the custom resource that invoked the function. AWS CloudFormation provides a response module ([cfn-response](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html)) that simplifies sending responses. See [Using Lambda with CloudFormation](https://docs.aws.amazon.com/lambda/latest/dg/services-cloudformation.html) for details.",
1078
+ }),
1079
+ ),
1080
+ S3Key: Schema.optionalKey(
1081
+ Schema.String.annotate({
1082
+ description: "The Amazon S3 key of the deployment package.",
1083
+ })
1084
+ .check(
1085
+ Schema.isMinLength(1).annotate({
1086
+ expected: "a value with a length of at least 1",
1087
+ }),
1088
+ )
1089
+ .check(
1090
+ Schema.isMaxCodePoints(1024).annotate({
1091
+ expected: "a string with at most 1024 code points",
1092
+ }),
1093
+ ),
1094
+ ),
1095
+ S3ObjectStorageMode: Schema.optionalKey(
1096
+ Schema.Literals(["COPY", "REFERENCE"]).annotate({ description: "" }),
1097
+ ),
1098
+ ImageUri: Schema.optionalKey(
1099
+ Schema.String.annotate({
1100
+ description:
1101
+ "URI of a [container image](https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html) in the Amazon ECR registry.",
1102
+ }),
1103
+ ),
1104
+ }).annotate({
1105
+ description:
1106
+ "The [deployment package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda function. To deploy a function defined as a container image, you specify the location of a container image in the Amazon ECR registry. For a .zip file deployment package, you can specify the location of an object in Amazon S3. For Node.js and Python functions, you can specify the function code inline in the template.\n When you specify source code inline for a Node.js function, the ``index`` file that CFN creates uses the extension ``.js``. This means that Node.js treats the file as a CommonJS module.\n Changes to a deployment package in Amazon S3 or a container image in ECR are not detected automatically during stack updates. To update the function code, change the object key or version in the template.",
1107
+ identifier: "Code_1",
1108
+ });
1109
+
1110
+ interface LoggingConfig_1 {
1111
+ readonly LogFormat?: "Text" | "JSON";
1112
+ readonly ApplicationLogLevel?:
1113
+ | "TRACE"
1114
+ | "DEBUG"
1115
+ | "INFO"
1116
+ | "WARN"
1117
+ | "ERROR"
1118
+ | "FATAL";
1119
+ readonly LogGroup?: string;
1120
+ readonly SystemLogLevel?: "DEBUG" | "INFO" | "WARN";
1121
+ }
1122
+
1123
+ const LoggingConfig_1 = Schema.Struct({
1124
+ LogFormat: Schema.optionalKey(
1125
+ Schema.Literals(["Text", "JSON"]).annotate({
1126
+ description:
1127
+ "The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.",
1128
+ }),
1129
+ ),
1130
+ ApplicationLogLevel: Schema.optionalKey(
1131
+ Schema.Literals([
1132
+ "TRACE",
1133
+ "DEBUG",
1134
+ "INFO",
1135
+ "WARN",
1136
+ "ERROR",
1137
+ "FATAL",
1138
+ ]).annotate({
1139
+ description:
1140
+ "Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level of detail and lower, where ``TRACE`` is the highest level and ``FATAL`` is the lowest.",
1141
+ }),
1142
+ ),
1143
+ LogGroup: Schema.optionalKey(
1144
+ Schema.String.annotate({
1145
+ description:
1146
+ "The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to a default log group named ``/aws/lambda/<function name>``. To use a different log group, enter an existing log group or enter a new log group name.",
1147
+ })
1148
+ .check(
1149
+ Schema.isMinLength(1).annotate({
1150
+ expected: "a value with a length of at least 1",
1151
+ }),
1152
+ )
1153
+ .check(
1154
+ Schema.isMaxCodePoints(512).annotate({
1155
+ expected: "a string with at most 512 code points",
1156
+ }),
1157
+ )
1158
+ .check(
1159
+ Schema.isPattern(
1160
+ new globalThis.RegExp("[\\.\\-_/#A-Za-z0-9]+", "u"),
1161
+ ).annotate({
1162
+ expected: "a string matching the RegExp [\\.\\-_/#A-Za-z0-9]+",
1163
+ }),
1164
+ ),
1165
+ ),
1166
+ SystemLogLevel: Schema.optionalKey(
1167
+ Schema.Literals(["DEBUG", "INFO", "WARN"]).annotate({
1168
+ description:
1169
+ "Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where ``DEBUG`` is the highest level and ``WARN`` is the lowest.",
1170
+ }),
1171
+ ),
1172
+ }).annotate({
1173
+ description: "The function's Amazon CloudWatch Logs configuration settings.",
1174
+ identifier: "LoggingConfig_1",
1175
+ });
1176
+
1177
+ interface CapacityProviderConfig {
1178
+ readonly LambdaManagedInstancesCapacityProviderConfig: LambdaManagedInstancesCapacityProviderConfig;
1179
+ }
1180
+
1181
+ const CapacityProviderConfig = Schema.Struct({
1182
+ LambdaManagedInstancesCapacityProviderConfig:
1183
+ LambdaManagedInstancesCapacityProviderConfig,
1184
+ }).annotate({
1185
+ description:
1186
+ "Configuration for the capacity provider that manages compute resources for Lambda functions.",
1187
+ identifier: "CapacityProviderConfig",
1188
+ });
1189
+
1190
+ export interface AWSFunctionProps {
1191
+ readonly FunctionScalingConfig?: FunctionScalingConfig;
1192
+ readonly Description?: string;
1193
+ readonly TracingConfig?: TracingConfig;
1194
+ readonly VpcConfig?: VpcConfig;
1195
+ readonly RuntimeManagementConfig?: RuntimeManagementConfig;
1196
+ readonly DurableConfig?: DurableConfig;
1197
+ readonly ReservedConcurrentExecutions?: number;
1198
+ readonly SnapStart?: SnapStart;
1199
+ readonly FileSystemConfigs?: ReadonlyArray<FileSystemConfig>;
1200
+ readonly FunctionName?: string;
1201
+ readonly Runtime?: string;
1202
+ readonly KmsKeyArn?:
1203
+ | ResourceEntity<{
1204
+ readonly provider: "aws";
1205
+ readonly service: "kms";
1206
+ readonly resource: "key";
1207
+ }>
1208
+ | string;
1209
+ readonly PublishToLatestPublished?: boolean;
1210
+ readonly PackageType?: "Image" | "Zip";
1211
+ readonly CodeSigningConfigArn?:
1212
+ | ResourceEntity<{
1213
+ readonly provider: "aws";
1214
+ readonly service: "lambda";
1215
+ readonly resource: "codesigningconfig";
1216
+ }>
1217
+ | string;
1218
+ readonly Layers?: ReadonlyArray<
1219
+ | ResourceEntity<{
1220
+ readonly provider: "aws";
1221
+ readonly service: "lambda";
1222
+ readonly resource: "layerversion";
1223
+ }>
1224
+ | string
1225
+ >;
1226
+ readonly TenancyConfig?: TenancyConfig;
1227
+ readonly Tags?: ReadonlyArray<Tag>;
1228
+ readonly ImageConfig?: ImageConfig;
1229
+ readonly MemorySize?: number;
1230
+ readonly DeadLetterConfig?: DeadLetterConfig;
1231
+ readonly Timeout?: number;
1232
+ readonly CapacityProviderConfig?: CapacityProviderConfig;
1233
+ readonly Handler?: string;
1234
+ readonly Code: Code;
1235
+ readonly Role:
1236
+ | ResourceEntity<{
1237
+ readonly provider: "aws";
1238
+ readonly service: "iam";
1239
+ readonly resource: "role";
1240
+ }>
1241
+ | string;
1242
+ readonly LoggingConfig?: LoggingConfig;
1243
+ readonly RecursiveLoop?: RecursiveLoop;
1244
+ readonly Environment?: Environment;
1245
+ readonly EphemeralStorage?: EphemeralStorage;
1246
+ readonly Architectures?: ReadonlyArray<"x86_64" | "arm64">;
1247
+ }
1248
+
1249
+ export const AWSFunctionResourceSchema = ResourceSchemaAnnotationSchema.make({
1250
+ provider: "aws",
1251
+ service: "lambda",
1252
+ resource: "function",
1253
+ operation: "create",
1254
+ stateSecretOutputKeys: [],
1255
+ replacement: {
1256
+ order: "createBeforeDestroy",
1257
+ properties: [["FunctionName"], ["PackageType"], ["TenancyConfig"]],
1258
+ },
1259
+ primaryIdentifier: ["/properties/FunctionName"],
1260
+ });
1261
+ export const AWSFunctionPropsSchema = annotateResourceSchema(
1262
+ Schema.Struct({
1263
+ FunctionScalingConfig: Schema.optionalKey(FunctionScalingConfig),
1264
+ Description: Schema.optionalKey(
1265
+ Schema.String.annotate({
1266
+ description: "A description of the function.",
1267
+ }).check(
1268
+ Schema.isMaxCodePoints(256).annotate({
1269
+ expected: "a string with at most 256 code points",
1270
+ }),
1271
+ ),
1272
+ ),
1273
+ TracingConfig: Schema.optionalKey(TracingConfig),
1274
+ VpcConfig: Schema.optionalKey(VpcConfig),
1275
+ RuntimeManagementConfig: Schema.optionalKey(RuntimeManagementConfig),
1276
+ DurableConfig: Schema.optionalKey(DurableConfig),
1277
+ ReservedConcurrentExecutions: Schema.optionalKey(
1278
+ Schema.Number.annotate({
1279
+ description:
1280
+ "The number of simultaneous executions to reserve for the function.",
1281
+ })
1282
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1283
+ .check(
1284
+ Schema.isGreaterThanOrEqualTo(0).annotate({
1285
+ expected: "a value greater than or equal to 0",
1286
+ }),
1287
+ ),
1288
+ ),
1289
+ SnapStart: Schema.optionalKey(SnapStart),
1290
+ FileSystemConfigs: Schema.optionalKey(
1291
+ Schema.Array(FileSystemConfig)
1292
+ .annotate({
1293
+ description:
1294
+ "Connection settings for an Amazon EFS or Amazon S3 Files file system. To connect a function to a file system, a mount target must be available in every Availability Zone that your function connects to. If your template contains an [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) or [AWS::S3Files::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3files-mounttarget.html) resource, you must also specify a ``DependsOn`` attribute to ensure that the mount target is created or updated before the function.\n For more information about using the ``DependsOn`` attribute, see [DependsOn Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html).",
1295
+ })
1296
+ .check(
1297
+ Schema.isMaxLength(1).annotate({
1298
+ expected: "a value with a length of at most 1",
1299
+ }),
1300
+ ),
1301
+ ),
1302
+ FunctionName: Schema.optionalKey(
1303
+ Schema.String.annotate({
1304
+ description:
1305
+ "The name of the Lambda function, up to 64 characters in length. If you don't specify a name, CFN generates one.\n If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.",
1306
+ }).check(
1307
+ Schema.isMinLength(1).annotate({
1308
+ expected: "a value with a length of at least 1",
1309
+ }),
1310
+ ),
1311
+ ),
1312
+ Runtime: Schema.optionalKey(
1313
+ Schema.String.annotate({
1314
+ description:
1315
+ "The identifier of the function's [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results in an error if you're deploying a function using a container image.\n The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing functions shortly after each runtime is deprecated. For more information, see [Runtime use after deprecation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels).\n For a list of all currently supported runtimes, see [Supported runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported).",
1316
+ }),
1317
+ ),
1318
+ KmsKeyArn: Schema.optionalKey(
1319
+ Schema.Union([
1320
+ Schema.Union([
1321
+ ResourceReferenceSchema(
1322
+ Schema.Struct({
1323
+ provider: Schema.Literal("aws"),
1324
+ service: Schema.Literal("kms"),
1325
+ resource: Schema.Literal("key"),
1326
+ }),
1327
+ {
1328
+ value: null,
1329
+ outputs: [
1330
+ {
1331
+ source: ["Arn"],
1332
+ target: [],
1333
+ },
1334
+ ],
1335
+ },
1336
+ ).annotate({ expected: "ResourceEntity" }),
1337
+ ]),
1338
+ Schema.String.annotate({
1339
+ description:
1340
+ "The ARN of the KMSlong (KMS) customer managed key that's used to encrypt the following resources:\n + The function's [environment variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption).\n + The function's [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) snapshots.\n + When used with ``SourceKMSKeyArn``, the unzipped version of the .zip deployment package that's used for function invocations. For more information, see [Specifying a customer managed key for Lambda](https://docs.aws.amazon.com/lambda/latest/dg/encrypt-zip-package.html#enable-zip-custom-encryption).\n + The optimized version of the container image that's used for function invocations. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). For more information, see [Function lifecycle](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-lifecycle).\n \n If you don't provide a customer managed key, Lambda uses an [owned key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk) or an [](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk).",
1341
+ }).check(
1342
+ Schema.isPattern(
1343
+ new globalThis.RegExp(
1344
+ "^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
1345
+ "u",
1346
+ ),
1347
+ ).annotate({
1348
+ expected:
1349
+ "a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
1350
+ }),
1351
+ ),
1352
+ ]),
1353
+ ),
1354
+ PublishToLatestPublished: Schema.optionalKey(
1355
+ Schema.Boolean.annotate({ description: "" }),
1356
+ ),
1357
+ PackageType: Schema.optionalKey(
1358
+ Schema.Literals(["Image", "Zip"]).annotate({
1359
+ description:
1360
+ "The type of deployment package. Set to ``Image`` for container image and set ``Zip`` for .zip file archive.",
1361
+ }),
1362
+ ),
1363
+ CodeSigningConfigArn: Schema.optionalKey(
1364
+ Schema.Union([
1365
+ Schema.Union([
1366
+ ResourceReferenceSchema(
1367
+ Schema.Struct({
1368
+ provider: Schema.Literal("aws"),
1369
+ service: Schema.Literal("lambda"),
1370
+ resource: Schema.Literal("codesigningconfig"),
1371
+ }),
1372
+ {
1373
+ value: null,
1374
+ outputs: [
1375
+ {
1376
+ source: ["CodeSigningConfigArn"],
1377
+ target: [],
1378
+ },
1379
+ ],
1380
+ },
1381
+ ).annotate({ expected: "ResourceEntity" }),
1382
+ ]),
1383
+ Schema.String.annotate({
1384
+ description:
1385
+ "To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function.",
1386
+ }).check(
1387
+ Schema.isPattern(
1388
+ new globalThis.RegExp(
1389
+ "arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:code-signing-config:csc-[a-z0-9]{17}",
1390
+ "u",
1391
+ ),
1392
+ ).annotate({
1393
+ expected:
1394
+ "a string matching the RegExp arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:code-signing-config:csc-[a-z0-9]{17}",
1395
+ }),
1396
+ ),
1397
+ ]),
1398
+ ),
1399
+ Layers: Schema.optionalKey(
1400
+ Schema.Array(
1401
+ Schema.Union([
1402
+ Schema.Union([
1403
+ ResourceReferenceSchema(
1404
+ Schema.Struct({
1405
+ provider: Schema.Literal("aws"),
1406
+ service: Schema.Literal("lambda"),
1407
+ resource: Schema.Literal("layerversion"),
1408
+ }),
1409
+ {
1410
+ value: null,
1411
+ outputs: [
1412
+ {
1413
+ source: ["LayerVersionArn"],
1414
+ target: [],
1415
+ },
1416
+ ],
1417
+ },
1418
+ ).annotate({ expected: "ResourceEntity" }),
1419
+ ]),
1420
+ Schema.String,
1421
+ ]),
1422
+ ).annotate({
1423
+ description:
1424
+ "A list of [function layers](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) to add to the function's execution environment. Specify each layer by its ARN, including the version.",
1425
+ }),
1426
+ ),
1427
+ TenancyConfig: Schema.optionalKey(TenancyConfig),
1428
+ Tags: Schema.optionalKey(
1429
+ Schema.Array(Tag)
1430
+ .annotate({
1431
+ description:
1432
+ "A list of [tags](https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to apply to the function.\n You must have the ``lambda:TagResource``, ``lambda:UntagResource``, and ``lambda:ListTags`` permissions for your [principal](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html) to manage the CFN stack. If you don't have these permissions, there might be unexpected behavior with stack-level tags propagating to the resource during resource creation and update.",
1433
+ })
1434
+ .check(
1435
+ Schema.isUnique().annotate({
1436
+ expected: "an array with unique items",
1437
+ }),
1438
+ ),
1439
+ ),
1440
+ ImageConfig: Schema.optionalKey(ImageConfig),
1441
+ MemorySize: Schema.optionalKey(
1442
+ Schema.Number.annotate({
1443
+ description:
1444
+ "The amount of [memory available to the function](https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console) at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB. Note that new AWS accounts have reduced concurrency and memory quotas. AWS raises these quotas automatically based on your usage. You can also request a quota increase.",
1445
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1446
+ ),
1447
+ DeadLetterConfig: Schema.optionalKey(DeadLetterConfig),
1448
+ Timeout: Schema.optionalKey(
1449
+ Schema.Number.annotate({
1450
+ description:
1451
+ "The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see [Lambda execution environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html).",
1452
+ })
1453
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1454
+ .check(
1455
+ Schema.isGreaterThanOrEqualTo(1).annotate({
1456
+ expected: "a value greater than or equal to 1",
1457
+ }),
1458
+ ),
1459
+ ),
1460
+ CapacityProviderConfig: Schema.optionalKey(CapacityProviderConfig),
1461
+ Handler: Schema.optionalKey(
1462
+ Schema.String.annotate({
1463
+ description:
1464
+ "The name of the method within your code that Lambda calls to run your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see [Lambda programming model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html).",
1465
+ })
1466
+ .check(
1467
+ Schema.isMaxCodePoints(128).annotate({
1468
+ expected: "a string with at most 128 code points",
1469
+ }),
1470
+ )
1471
+ .check(
1472
+ Schema.isPattern(new globalThis.RegExp("^[^\\s]+$", "u")).annotate({
1473
+ expected: "a string matching the RegExp ^[^\\s]+$",
1474
+ }),
1475
+ ),
1476
+ ),
1477
+ Code: Code,
1478
+ Role: Schema.Union([
1479
+ Schema.Union([
1480
+ ResourceReferenceSchema(
1481
+ Schema.Struct({
1482
+ provider: Schema.Literal("aws"),
1483
+ service: Schema.Literal("iam"),
1484
+ resource: Schema.Literal("role"),
1485
+ }),
1486
+ {
1487
+ value: null,
1488
+ outputs: [
1489
+ {
1490
+ source: ["Arn"],
1491
+ target: [],
1492
+ },
1493
+ ],
1494
+ },
1495
+ ).annotate({ expected: "ResourceEntity" }),
1496
+ ]),
1497
+ Schema.String.annotate({
1498
+ description:
1499
+ "The Amazon Resource Name (ARN) of the function's execution role.",
1500
+ }).check(
1501
+ Schema.isPattern(
1502
+ new globalThis.RegExp(
1503
+ "^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role\\/?[a-zA-Z_0-9+=,.@\\-_/]+$",
1504
+ "u",
1505
+ ),
1506
+ ).annotate({
1507
+ expected:
1508
+ "a string matching the RegExp ^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role\\/?[a-zA-Z_0-9+=,.@\\-_/]+$",
1509
+ }),
1510
+ ),
1511
+ ]),
1512
+ LoggingConfig: Schema.optionalKey(LoggingConfig),
1513
+ RecursiveLoop: Schema.optionalKey(RecursiveLoop),
1514
+ Environment: Schema.optionalKey(Environment),
1515
+ EphemeralStorage: Schema.optionalKey(EphemeralStorage),
1516
+ Architectures: Schema.optionalKey(
1517
+ Schema.Array(Schema.Literals(["x86_64", "arm64"]))
1518
+ .annotate({
1519
+ description:
1520
+ "The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is ``x86_64``.",
1521
+ })
1522
+ .check(
1523
+ Schema.isMinLength(1).annotate({
1524
+ expected: "a value with a length of at least 1",
1525
+ }),
1526
+ )
1527
+ .check(
1528
+ Schema.isMaxLength(1).annotate({
1529
+ expected: "a value with a length of at most 1",
1530
+ }),
1531
+ )
1532
+ .check(
1533
+ Schema.isUnique().annotate({
1534
+ expected: "an array with unique items",
1535
+ }),
1536
+ ),
1537
+ ),
1538
+ }),
1539
+ AWSFunctionResourceSchema,
1540
+ );
1541
+
1542
+ export interface AWSFunctionOutputs {
1543
+ readonly SnapStartResponse?: SnapStartResponse;
1544
+ readonly Arn?: string;
1545
+ readonly FunctionName?: string;
1546
+ }
1547
+
1548
+ export const AWSFunctionOutputsSchema = Schema.Struct({
1549
+ SnapStartResponse: Schema.optionalKey(SnapStartResponse),
1550
+ Arn: Schema.optionalKey(Schema.String.annotate({ description: "" })),
1551
+ FunctionName: Schema.optionalKey(
1552
+ Schema.String.annotate({
1553
+ description:
1554
+ "The name of the Lambda function, up to 64 characters in length. If you don't specify a name, CFN generates one.\n If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.",
1555
+ }).check(
1556
+ Schema.isMinLength(1).annotate({
1557
+ expected: "a value with a length of at least 1",
1558
+ }),
1559
+ ),
1560
+ ),
1561
+ });
1562
+
1563
+ export interface AWSFunctionRequest {
1564
+ readonly FunctionScalingConfig?: FunctionScalingConfig;
1565
+ readonly Description?: string;
1566
+ readonly TracingConfig?: TracingConfig;
1567
+ readonly VpcConfig?: VpcConfig_1;
1568
+ readonly RuntimeManagementConfig?: RuntimeManagementConfig;
1569
+ readonly DurableConfig?: DurableConfig;
1570
+ readonly ReservedConcurrentExecutions?: number;
1571
+ readonly SnapStart?: SnapStart;
1572
+ readonly FileSystemConfigs?: ReadonlyArray<FileSystemConfig_1>;
1573
+ readonly FunctionName?: string;
1574
+ readonly Runtime?: string;
1575
+ readonly KmsKeyArn?: string;
1576
+ readonly PublishToLatestPublished?: boolean;
1577
+ readonly PackageType?: "Image" | "Zip";
1578
+ readonly CodeSigningConfigArn?: string;
1579
+ readonly Layers?: ReadonlyArray<string>;
1580
+ readonly TenancyConfig?: TenancyConfig;
1581
+ readonly Tags?: ReadonlyArray<Tag>;
1582
+ readonly ImageConfig?: ImageConfig;
1583
+ readonly MemorySize?: number;
1584
+ readonly DeadLetterConfig?: DeadLetterConfig_1;
1585
+ readonly Timeout?: number;
1586
+ readonly CapacityProviderConfig?: CapacityProviderConfig;
1587
+ readonly Handler?: string;
1588
+ readonly Code: Code_1;
1589
+ readonly Role: string;
1590
+ readonly LoggingConfig?: LoggingConfig_1;
1591
+ readonly RecursiveLoop?: RecursiveLoop;
1592
+ readonly Environment?: Environment;
1593
+ readonly EphemeralStorage?: EphemeralStorage;
1594
+ readonly Architectures?: ReadonlyArray<"x86_64" | "arm64">;
1595
+ }
1596
+
1597
+ export const AWSFunctionRequestSchema = Schema.Struct({
1598
+ FunctionScalingConfig: Schema.optionalKey(FunctionScalingConfig),
1599
+ Description: Schema.optionalKey(
1600
+ Schema.String.annotate({
1601
+ description: "A description of the function.",
1602
+ }).check(
1603
+ Schema.isMaxCodePoints(256).annotate({
1604
+ expected: "a string with at most 256 code points",
1605
+ }),
1606
+ ),
1607
+ ),
1608
+ TracingConfig: Schema.optionalKey(TracingConfig),
1609
+ VpcConfig: Schema.optionalKey(VpcConfig_1),
1610
+ RuntimeManagementConfig: Schema.optionalKey(RuntimeManagementConfig),
1611
+ DurableConfig: Schema.optionalKey(DurableConfig),
1612
+ ReservedConcurrentExecutions: Schema.optionalKey(
1613
+ Schema.Number.annotate({
1614
+ description:
1615
+ "The number of simultaneous executions to reserve for the function.",
1616
+ })
1617
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1618
+ .check(
1619
+ Schema.isGreaterThanOrEqualTo(0).annotate({
1620
+ expected: "a value greater than or equal to 0",
1621
+ }),
1622
+ ),
1623
+ ),
1624
+ SnapStart: Schema.optionalKey(SnapStart),
1625
+ FileSystemConfigs: Schema.optionalKey(
1626
+ Schema.Array(FileSystemConfig_1)
1627
+ .annotate({
1628
+ description:
1629
+ "Connection settings for an Amazon EFS or Amazon S3 Files file system. To connect a function to a file system, a mount target must be available in every Availability Zone that your function connects to. If your template contains an [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) or [AWS::S3Files::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3files-mounttarget.html) resource, you must also specify a ``DependsOn`` attribute to ensure that the mount target is created or updated before the function.\n For more information about using the ``DependsOn`` attribute, see [DependsOn Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html).",
1630
+ })
1631
+ .check(
1632
+ Schema.isMaxLength(1).annotate({
1633
+ expected: "a value with a length of at most 1",
1634
+ }),
1635
+ ),
1636
+ ),
1637
+ FunctionName: Schema.optionalKey(
1638
+ Schema.String.annotate({
1639
+ description:
1640
+ "The name of the Lambda function, up to 64 characters in length. If you don't specify a name, CFN generates one.\n If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.",
1641
+ }).check(
1642
+ Schema.isMinLength(1).annotate({
1643
+ expected: "a value with a length of at least 1",
1644
+ }),
1645
+ ),
1646
+ ),
1647
+ Runtime: Schema.optionalKey(
1648
+ Schema.String.annotate({
1649
+ description:
1650
+ "The identifier of the function's [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results in an error if you're deploying a function using a container image.\n The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing functions shortly after each runtime is deprecated. For more information, see [Runtime use after deprecation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels).\n For a list of all currently supported runtimes, see [Supported runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported).",
1651
+ }),
1652
+ ),
1653
+ KmsKeyArn: Schema.optionalKey(
1654
+ Schema.String.annotate({
1655
+ description:
1656
+ "The ARN of the KMSlong (KMS) customer managed key that's used to encrypt the following resources:\n + The function's [environment variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption).\n + The function's [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) snapshots.\n + When used with ``SourceKMSKeyArn``, the unzipped version of the .zip deployment package that's used for function invocations. For more information, see [Specifying a customer managed key for Lambda](https://docs.aws.amazon.com/lambda/latest/dg/encrypt-zip-package.html#enable-zip-custom-encryption).\n + The optimized version of the container image that's used for function invocations. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). For more information, see [Function lifecycle](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-lifecycle).\n \n If you don't provide a customer managed key, Lambda uses an [owned key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk) or an [](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk).",
1657
+ }).check(
1658
+ Schema.isPattern(
1659
+ new globalThis.RegExp(
1660
+ "^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
1661
+ "u",
1662
+ ),
1663
+ ).annotate({
1664
+ expected:
1665
+ "a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
1666
+ }),
1667
+ ),
1668
+ ),
1669
+ PublishToLatestPublished: Schema.optionalKey(
1670
+ Schema.Boolean.annotate({ description: "" }),
1671
+ ),
1672
+ PackageType: Schema.optionalKey(
1673
+ Schema.Literals(["Image", "Zip"]).annotate({
1674
+ description:
1675
+ "The type of deployment package. Set to ``Image`` for container image and set ``Zip`` for .zip file archive.",
1676
+ }),
1677
+ ),
1678
+ CodeSigningConfigArn: Schema.optionalKey(
1679
+ Schema.String.annotate({
1680
+ description:
1681
+ "To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function.",
1682
+ }).check(
1683
+ Schema.isPattern(
1684
+ new globalThis.RegExp(
1685
+ "arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:code-signing-config:csc-[a-z0-9]{17}",
1686
+ "u",
1687
+ ),
1688
+ ).annotate({
1689
+ expected:
1690
+ "a string matching the RegExp arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:code-signing-config:csc-[a-z0-9]{17}",
1691
+ }),
1692
+ ),
1693
+ ),
1694
+ Layers: Schema.optionalKey(
1695
+ Schema.Array(Schema.String).annotate({
1696
+ description:
1697
+ "A list of [function layers](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) to add to the function's execution environment. Specify each layer by its ARN, including the version.",
1698
+ }),
1699
+ ),
1700
+ TenancyConfig: Schema.optionalKey(TenancyConfig),
1701
+ Tags: Schema.optionalKey(
1702
+ Schema.Array(Tag)
1703
+ .annotate({
1704
+ description:
1705
+ "A list of [tags](https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to apply to the function.\n You must have the ``lambda:TagResource``, ``lambda:UntagResource``, and ``lambda:ListTags`` permissions for your [principal](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html) to manage the CFN stack. If you don't have these permissions, there might be unexpected behavior with stack-level tags propagating to the resource during resource creation and update.",
1706
+ })
1707
+ .check(
1708
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1709
+ ),
1710
+ ),
1711
+ ImageConfig: Schema.optionalKey(ImageConfig),
1712
+ MemorySize: Schema.optionalKey(
1713
+ Schema.Number.annotate({
1714
+ description:
1715
+ "The amount of [memory available to the function](https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console) at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB. Note that new AWS accounts have reduced concurrency and memory quotas. AWS raises these quotas automatically based on your usage. You can also request a quota increase.",
1716
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1717
+ ),
1718
+ DeadLetterConfig: Schema.optionalKey(DeadLetterConfig_1),
1719
+ Timeout: Schema.optionalKey(
1720
+ Schema.Number.annotate({
1721
+ description:
1722
+ "The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see [Lambda execution environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html).",
1723
+ })
1724
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1725
+ .check(
1726
+ Schema.isGreaterThanOrEqualTo(1).annotate({
1727
+ expected: "a value greater than or equal to 1",
1728
+ }),
1729
+ ),
1730
+ ),
1731
+ CapacityProviderConfig: Schema.optionalKey(CapacityProviderConfig),
1732
+ Handler: Schema.optionalKey(
1733
+ Schema.String.annotate({
1734
+ description:
1735
+ "The name of the method within your code that Lambda calls to run your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see [Lambda programming model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html).",
1736
+ })
1737
+ .check(
1738
+ Schema.isMaxCodePoints(128).annotate({
1739
+ expected: "a string with at most 128 code points",
1740
+ }),
1741
+ )
1742
+ .check(
1743
+ Schema.isPattern(new globalThis.RegExp("^[^\\s]+$", "u")).annotate({
1744
+ expected: "a string matching the RegExp ^[^\\s]+$",
1745
+ }),
1746
+ ),
1747
+ ),
1748
+ Code: Code_1,
1749
+ Role: Schema.String.annotate({
1750
+ description:
1751
+ "The Amazon Resource Name (ARN) of the function's execution role.",
1752
+ }).check(
1753
+ Schema.isPattern(
1754
+ new globalThis.RegExp(
1755
+ "^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role\\/?[a-zA-Z_0-9+=,.@\\-_/]+$",
1756
+ "u",
1757
+ ),
1758
+ ).annotate({
1759
+ expected:
1760
+ "a string matching the RegExp ^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role\\/?[a-zA-Z_0-9+=,.@\\-_/]+$",
1761
+ }),
1762
+ ),
1763
+ LoggingConfig: Schema.optionalKey(LoggingConfig_1),
1764
+ RecursiveLoop: Schema.optionalKey(RecursiveLoop),
1765
+ Environment: Schema.optionalKey(Environment),
1766
+ EphemeralStorage: Schema.optionalKey(EphemeralStorage),
1767
+ Architectures: Schema.optionalKey(
1768
+ Schema.Array(Schema.Literals(["x86_64", "arm64"]))
1769
+ .annotate({
1770
+ description:
1771
+ "The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is ``x86_64``.",
1772
+ })
1773
+ .check(
1774
+ Schema.isMinLength(1).annotate({
1775
+ expected: "a value with a length of at least 1",
1776
+ }),
1777
+ )
1778
+ .check(
1779
+ Schema.isMaxLength(1).annotate({
1780
+ expected: "a value with a length of at most 1",
1781
+ }),
1782
+ )
1783
+ .check(
1784
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1785
+ ),
1786
+ ),
1787
+ });
1788
+ export const AWSFunctionRelationshipIssues = [];
1789
+ export const AWSFunctionResourceTypeSchema = Schema.Struct({
1790
+ provider: Schema.Literal("aws"),
1791
+ service: Schema.Literal("lambda"),
1792
+ resource: Schema.Literal("function"),
1793
+ });
1794
+
1795
+ /**
1796
+ * The AWSFunctionResource class retains its owning stack across declarations.
1797
+ * Applied output properties are ordinary values maintained by the lifecycle.
1798
+ */
1799
+ export class AWSFunctionResource<
1800
+ Props = AWSFunctionProps,
1801
+ > extends ResourceEntity<{
1802
+ readonly provider: "aws";
1803
+ readonly service: "lambda";
1804
+ readonly resource: "function";
1805
+ }> {
1806
+ constructor(
1807
+ key: ResourceKey,
1808
+ readonly props: Props,
1809
+ private readonly binding?: ResourceOutputBinding,
1810
+ ) {
1811
+ super({
1812
+ key,
1813
+ resourceType: {
1814
+ provider: "aws",
1815
+ service: "lambda",
1816
+ resource: "function",
1817
+ },
1818
+ });
1819
+ }
1820
+
1821
+ /**
1822
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1823
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1824
+ */
1825
+ get SnapStartResponse(): Required<AWSFunctionOutputs>["SnapStartResponse"] {
1826
+ const value: Required<AWSFunctionOutputs>["SnapStartResponse"] =
1827
+ ResourceOutputBinding.value(
1828
+ this.binding,
1829
+ this.key,
1830
+ "SnapStartResponse",
1831
+ Schema.requiredKey(AWSFunctionOutputsSchema.fields.SnapStartResponse),
1832
+ );
1833
+ return value;
1834
+ }
1835
+
1836
+ /**
1837
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1838
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1839
+ */
1840
+ get Arn(): Required<AWSFunctionOutputs>["Arn"] {
1841
+ const value: Required<AWSFunctionOutputs>["Arn"] =
1842
+ ResourceOutputBinding.value(
1843
+ this.binding,
1844
+ this.key,
1845
+ "Arn",
1846
+ Schema.requiredKey(AWSFunctionOutputsSchema.fields.Arn),
1847
+ );
1848
+ return value;
1849
+ }
1850
+
1851
+ /**
1852
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1853
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1854
+ */
1855
+ get FunctionName(): Required<AWSFunctionOutputs>["FunctionName"] {
1856
+ const value: Required<AWSFunctionOutputs>["FunctionName"] =
1857
+ ResourceOutputBinding.value(
1858
+ this.binding,
1859
+ this.key,
1860
+ "FunctionName",
1861
+ Schema.requiredKey(AWSFunctionOutputsSchema.fields.FunctionName),
1862
+ );
1863
+ return value;
1864
+ }
1865
+ }
1866
+
1867
+ /**
1868
+ * Callers must validate properties before constructing the declaration.
1869
+ * Compatible resources can depend on it before apply supplies provider values.
1870
+ * Reading applied outputs requires a binding to the owning stack.
1871
+ */
1872
+ export function createAWSFunctionDeclaration<Props>(
1873
+ key: ResourceKey,
1874
+ props: Props,
1875
+ binding?: ResourceOutputBinding,
1876
+ ): AWSFunctionResource<Props> {
1877
+ const resource: AWSFunctionResource<Props> = new AWSFunctionResource<Props>(
1878
+ key,
1879
+ props,
1880
+ binding,
1881
+ );
1882
+
1883
+ return resource;
1884
+ }
1885
+
1886
+ /** The AWSFunction resource factory validates properties and registers the resource in the shared graph. Provider values become available after apply saves the resource. */
1887
+ export const AWSFunction = Effect.fn("AWSFunction")(function* (input: {
1888
+ logicalId: string;
1889
+ props: AWSFunctionProps;
1890
+ }) {
1891
+ const graph = yield* ResourceGraphBuilder;
1892
+
1893
+ const key: ResourceKey = { logicalId: input.logicalId };
1894
+
1895
+ const declaration = yield* graph.resource(key);
1896
+
1897
+ const props = yield* Schema.decodeEffect(AWSFunctionPropsSchema)(input.props);
1898
+
1899
+ yield* declaration.registerEntity(AWSFunctionResourceTypeSchema, {
1900
+ propsSchema: AWSFunctionPropsSchema,
1901
+ requestSchema: AWSFunctionRequestSchema,
1902
+ outputsSchema: AWSFunctionOutputsSchema,
1903
+ props,
1904
+ });
1905
+
1906
+ const resource: AWSFunctionResource = createAWSFunctionDeclaration(
1907
+ key,
1908
+ props,
1909
+ declaration.outputs,
1910
+ );
1911
+
1912
+ return resource;
1913
+ });
1914
+ export const AWSFunctionOutputCatalog = [
1915
+ {
1916
+ source: {
1917
+ provider: "AWS",
1918
+ service: "CloudFormation",
1919
+ name: "refs/aws-cdk-service-spec/sources/CloudFormationSchema/us-east-1/aws-lambda-function.json",
1920
+ format: "CloudFormation",
1921
+ },
1922
+ typeName: "AWS::Lambda::Function",
1923
+ resource: "function",
1924
+ primaryIdentifier: ["/properties/FunctionName"],
1925
+ createOnlyProperties: [
1926
+ "/properties/FunctionName",
1927
+ "/properties/PackageType",
1928
+ "/properties/TenancyConfig",
1929
+ ],
1930
+ writeOnlyProperties: [
1931
+ "/properties/SnapStart",
1932
+ "/properties/SnapStart/ApplyOn",
1933
+ "/properties/Code/ImageUri",
1934
+ "/properties/Code/S3Bucket",
1935
+ "/properties/Code/S3Key",
1936
+ "/properties/Code/S3ObjectVersion",
1937
+ "/properties/Code/ZipFile",
1938
+ "/properties/Code/SourceKMSKeyArn",
1939
+ "/properties/Code/S3ObjectStorageMode",
1940
+ "/properties/PublishToLatestPublished",
1941
+ ],
1942
+ outputs: {
1943
+ SnapStartResponse: {
1944
+ schema: {
1945
+ description: "",
1946
+ $ref: "#/definitions/SnapStartResponse",
1947
+ },
1948
+ schemaPath: "/properties/SnapStartResponse",
1949
+ valuePath: "/SnapStartResponse",
1950
+ required: false,
1951
+ },
1952
+ Arn: {
1953
+ schema: {
1954
+ description: "",
1955
+ type: "string",
1956
+ },
1957
+ schemaPath: "/properties/Arn",
1958
+ valuePath: "/Arn",
1959
+ required: false,
1960
+ },
1961
+ FunctionName: {
1962
+ schema: {
1963
+ minLength: 1,
1964
+ description:
1965
+ "The name of the Lambda function, up to 64 characters in length. If you don't specify a name, CFN generates one.\n If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.",
1966
+ type: "string",
1967
+ },
1968
+ schemaPath: "/properties/FunctionName",
1969
+ valuePath: "/FunctionName",
1970
+ required: false,
1971
+ },
1972
+ },
1973
+ },
1974
+ ];