nomoss 0.0.4 → 0.0.6

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 (635) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +3 -1
  3. package/ROADMAP.md +1 -1
  4. package/docs/README.md +2 -0
  5. package/docs/application/aws-resource-coverage.md +111 -20
  6. package/docs/application/designs/awsRequestBodyEncoding.ts +91 -0
  7. package/docs/application/designs/createBucketModeledErrors.ts +164 -0
  8. package/docs/application/designs/describeSubnetsEc2Query.ts +186 -0
  9. package/docs/application/designs/getBucketTaggingResponseDecoding.ts +136 -0
  10. package/docs/application/designs/lambdaGetPolicyRequest.ts +85 -0
  11. package/docs/application/designs/s3GetObjectDownload.ts +97 -0
  12. package/docs/application/designs/s3ObjectMetadata.ts +154 -0
  13. package/docs/application/designs/selectObjectContentEvents.ts +185 -0
  14. package/docs/application/generation-architecture.md +38 -0
  15. package/docs/application/resource-operations.md +4 -2
  16. package/docs/development/code-documentation.md +2 -0
  17. package/docs/development/design-walkthroughs.md +49 -0
  18. package/docs/development/effect-native-development.md +31 -2
  19. package/docs/development/review-code.md +1 -1
  20. package/docs/development/review-remediation-spec.md +1 -0
  21. package/docs/development/testing.md +20 -0
  22. package/docs/operations/releasing.md +4 -2
  23. package/examples/queue/application.ts +1 -1
  24. package/media/nomoss-logo.svg +16 -0
  25. package/package.json +8 -14
  26. package/providers/aws/README.md +7 -7
  27. package/providers/aws/awsEnvironment.ts +3 -3
  28. package/providers/aws/generated/resources/apigateway/apikey.ts +335 -0
  29. package/providers/aws/generated/resources/apigateway/authorizer.ts +329 -0
  30. package/providers/aws/generated/resources/apigateway/basepathmapping.ts +265 -0
  31. package/providers/aws/generated/resources/apigateway/deployment.ts +515 -0
  32. package/providers/aws/generated/resources/apigateway/domainname.ts +354 -0
  33. package/providers/aws/generated/resources/apigateway/gatewayresponse.ts +222 -0
  34. package/providers/aws/generated/resources/apigateway/method.ts +819 -0
  35. package/providers/aws/generated/resources/apigateway/model.ts +248 -0
  36. package/providers/aws/generated/resources/apigateway/requestvalidator.ts +224 -0
  37. package/providers/aws/generated/resources/apigateway/resource.ts +235 -0
  38. package/providers/aws/generated/resources/apigateway/restapi.ts +583 -0
  39. package/providers/aws/generated/resources/apigateway/stage.ts +656 -0
  40. package/providers/aws/generated/resources/apigateway/usageplan.ts +394 -0
  41. package/providers/aws/generated/resources/apigateway/usageplankey.ts +228 -0
  42. package/providers/aws/generated/resources/apigatewayv2/api.ts +40 -60
  43. package/providers/aws/generated/resources/apigatewayv2/apimapping.ts +284 -0
  44. package/providers/aws/generated/resources/apigatewayv2/authorizer.ts +333 -0
  45. package/providers/aws/generated/resources/apigatewayv2/deployment.ts +226 -0
  46. package/providers/aws/generated/resources/apigatewayv2/domainname.ts +333 -0
  47. package/providers/aws/generated/resources/apigatewayv2/integration.ts +70 -103
  48. package/providers/aws/generated/resources/apigatewayv2/integrationresponse.ts +323 -0
  49. package/providers/aws/generated/resources/apigatewayv2/model.ts +241 -0
  50. package/providers/aws/generated/resources/apigatewayv2/route.ts +59 -63
  51. package/providers/aws/generated/resources/apigatewayv2/routeresponse.ts +330 -0
  52. package/providers/aws/generated/resources/apigatewayv2/routingrule.ts +349 -0
  53. package/providers/aws/generated/resources/apigatewayv2/stage.ts +45 -66
  54. package/providers/aws/generated/resources/apigatewayv2/vpclink.ts +256 -0
  55. package/providers/aws/generated/resources/appsync/api.ts +486 -0
  56. package/providers/aws/generated/resources/appsync/apicache.ts +169 -0
  57. package/providers/aws/generated/resources/appsync/apikey.ts +245 -0
  58. package/providers/aws/generated/resources/appsync/channelnamespace.ts +444 -0
  59. package/providers/aws/generated/resources/appsync/datasource.ts +757 -0
  60. package/providers/aws/generated/resources/appsync/domainname.ts +355 -0
  61. package/providers/aws/generated/resources/appsync/domainnameapiassociation.ts +284 -0
  62. package/providers/aws/generated/resources/appsync/functionconfiguration.ts +448 -0
  63. package/providers/aws/generated/resources/appsync/graphqlapi.ts +1028 -0
  64. package/providers/aws/generated/resources/appsync/graphqlschema.ts +188 -0
  65. package/providers/aws/generated/resources/appsync/resolver.ts +514 -0
  66. package/providers/aws/generated/resources/appsync/sourceapiassociation.ts +429 -0
  67. package/providers/aws/generated/resources/certificatemanager/certificate.ts +211 -0
  68. package/providers/aws/generated/resources/cloudfront/cachepolicy.ts +352 -0
  69. package/providers/aws/generated/resources/cloudfront/distribution.ts +2477 -0
  70. package/providers/aws/generated/resources/cloudfront/function.ts +313 -0
  71. package/providers/aws/generated/resources/cloudfront/originaccesscontrol.ts +204 -0
  72. package/providers/aws/generated/resources/cloudfront/originrequestpolicy.ts +285 -0
  73. package/providers/aws/generated/resources/cloudfront/responseheaderspolicy.ts +591 -0
  74. package/providers/aws/generated/resources/cloudwatch/alarm.ts +4545 -0
  75. package/providers/aws/generated/resources/cloudwatch/compositealarm.ts +678 -0
  76. package/providers/aws/generated/resources/cloudwatch/dashboard.ts +229 -0
  77. package/providers/aws/generated/resources/cognito/identitypool.ts +419 -0
  78. package/providers/aws/generated/resources/cognito/identitypoolroleattachment.ts +288 -0
  79. package/providers/aws/generated/resources/cognito/userpool.ts +1372 -0
  80. package/providers/aws/generated/resources/cognito/userpoolclient.ts +555 -0
  81. package/providers/aws/generated/resources/cognito/userpooldomain.ts +223 -0
  82. package/providers/aws/generated/resources/cognito/userpoolgroup.ts +265 -0
  83. package/providers/aws/generated/resources/cognito/userpoolidentityprovider.ts +216 -0
  84. package/providers/aws/generated/resources/cognito/userpoolresourceserver.ts +233 -0
  85. package/providers/aws/generated/resources/dynamodb/globaltable.ts +1002 -0
  86. package/providers/aws/generated/resources/dynamodb/table.ts +1058 -0
  87. package/providers/aws/generated/resources/ec2/eip.ts +303 -0
  88. package/providers/aws/generated/resources/ec2/instance.ts +1756 -0
  89. package/providers/aws/generated/resources/ec2/internetgateway.ts +185 -0
  90. package/providers/aws/generated/resources/ec2/launchtemplate.ts +2218 -0
  91. package/providers/aws/generated/resources/ec2/natgateway.ts +509 -0
  92. package/providers/aws/generated/resources/ec2/route.ts +595 -0
  93. package/providers/aws/generated/resources/ec2/routetable.ts +207 -0
  94. package/providers/aws/generated/resources/ec2/securitygroup.ts +460 -0
  95. package/providers/aws/generated/resources/ec2/securitygroupegress.ts +332 -0
  96. package/providers/aws/generated/resources/ec2/securitygroupingress.ts +488 -0
  97. package/providers/aws/generated/resources/ec2/subnet.ts +492 -0
  98. package/providers/aws/generated/resources/ec2/subnetroutetableassociation.ts +228 -0
  99. package/providers/aws/generated/resources/ec2/volume.ts +267 -0
  100. package/providers/aws/generated/resources/ec2/volumeattachment.ts +268 -0
  101. package/providers/aws/generated/resources/ec2/vpc.ts +288 -0
  102. package/providers/aws/generated/resources/ec2/vpcendpoint.ts +660 -0
  103. package/providers/aws/generated/resources/ec2/vpcgatewayattachment.ts +290 -0
  104. package/providers/aws/generated/resources/ec2/vpcpeeringconnection.ts +310 -0
  105. package/providers/aws/generated/resources/ecr/repository.ts +627 -0
  106. package/providers/aws/generated/resources/ecs/cluster.ts +616 -0
  107. package/providers/aws/generated/resources/ecs/service.ts +2065 -0
  108. package/providers/aws/generated/resources/ecs/taskdefinition.ts +1848 -0
  109. package/providers/aws/generated/resources/elasticloadbalancingv2/listener.ts +1166 -0
  110. package/providers/aws/generated/resources/elasticloadbalancingv2/listenercertificate.ts +168 -0
  111. package/providers/aws/generated/resources/elasticloadbalancingv2/listenerrule.ts +1219 -0
  112. package/providers/aws/generated/resources/elasticloadbalancingv2/loadbalancer.ts +706 -0
  113. package/providers/aws/generated/resources/elasticloadbalancingv2/targetgroup.ts +699 -0
  114. package/providers/aws/generated/resources/events/apidestination.ts +314 -0
  115. package/providers/aws/generated/resources/events/archive.ts +316 -0
  116. package/providers/aws/generated/resources/events/connection.ts +609 -0
  117. package/providers/aws/generated/resources/events/endpoint.ts +551 -0
  118. package/providers/aws/generated/resources/events/eventbus.ts +261 -0
  119. package/providers/aws/generated/resources/events/eventbuspolicy.ts +343 -0
  120. package/providers/aws/generated/resources/events/rule.ts +1253 -0
  121. package/providers/aws/generated/resources/eventschemas/discoverer.ts +273 -0
  122. package/providers/aws/generated/resources/eventschemas/registry.ts +183 -0
  123. package/providers/aws/generated/resources/eventschemas/registrypolicy.ts +193 -0
  124. package/providers/aws/generated/resources/eventschemas/schema.ts +305 -0
  125. package/providers/aws/generated/resources/iam/accesskey.ts +12 -16
  126. package/providers/aws/generated/resources/iam/group.ts +13 -16
  127. package/providers/aws/generated/resources/iam/grouppolicy.ts +16 -20
  128. package/providers/aws/generated/resources/iam/instanceprofile.ts +2 -2
  129. package/providers/aws/generated/resources/iam/managedpolicy.ts +27 -36
  130. package/providers/aws/generated/resources/iam/oidcprovider.ts +52 -104
  131. package/providers/aws/generated/resources/iam/policy.ts +33 -90
  132. package/providers/aws/generated/resources/iam/role.ts +45 -60
  133. package/providers/aws/generated/resources/iam/rolepolicy.ts +16 -20
  134. package/providers/aws/generated/resources/iam/samlprovider.ts +72 -164
  135. package/providers/aws/generated/resources/iam/servercertificate.ts +73 -187
  136. package/providers/aws/generated/resources/iam/servicelinkedrole.ts +24 -40
  137. package/providers/aws/generated/resources/iam/user.ts +26 -32
  138. package/providers/aws/generated/resources/iam/userpolicy.ts +16 -20
  139. package/providers/aws/generated/resources/iam/usertogroupaddition.ts +2 -2
  140. package/providers/aws/generated/resources/iam/virtualmfadevice.ts +53 -97
  141. package/providers/aws/generated/resources/kms/alias.ts +225 -0
  142. package/providers/aws/generated/resources/kms/key.ts +33 -207
  143. package/providers/aws/generated/resources/kms/replicakey.ts +292 -0
  144. package/providers/aws/generated/resources/lambda/alias.ts +301 -0
  145. package/providers/aws/generated/resources/lambda/codesigningconfig.ts +414 -0
  146. package/providers/aws/generated/resources/lambda/eventinvokeconfig.ts +677 -0
  147. package/providers/aws/generated/resources/lambda/eventsourcemapping.ts +1798 -0
  148. package/providers/aws/generated/resources/lambda/function.ts +135 -181
  149. package/providers/aws/generated/resources/lambda/layerversion.ts +298 -0
  150. package/providers/aws/generated/resources/lambda/layerversionpermission.ts +233 -0
  151. package/providers/aws/generated/resources/lambda/permission.ts +13 -14
  152. package/providers/aws/generated/resources/lambda/url.ts +452 -0
  153. package/providers/aws/generated/resources/lambda/version.ts +349 -0
  154. package/providers/aws/generated/resources/pipes/pipe.ts +3801 -0
  155. package/providers/aws/generated/resources/rds/dbcluster.ts +1710 -0
  156. package/providers/aws/generated/resources/rds/dbinstance.ts +2248 -0
  157. package/providers/aws/generated/resources/rds/dbsubnetgroup.ts +270 -0
  158. package/providers/aws/generated/resources/route53/healthcheck.ts +648 -0
  159. package/providers/aws/generated/resources/route53/hostedzone.ts +430 -0
  160. package/providers/aws/generated/resources/route53/recordset.ts +249 -0
  161. package/providers/aws/generated/resources/route53/recordsetgroup.ts +263 -0
  162. package/providers/aws/generated/resources/s3/accesspoint.ts +616 -0
  163. package/providers/aws/generated/resources/s3/bucket.ts +1733 -1831
  164. package/providers/aws/generated/resources/s3/bucketpolicy.ts +214 -0
  165. package/providers/aws/generated/resources/scheduler/schedule.ts +1563 -0
  166. package/providers/aws/generated/resources/scheduler/schedulegroup.ts +351 -0
  167. package/providers/aws/generated/resources/secretsmanager/resourcepolicy.ts +242 -0
  168. package/providers/aws/generated/resources/secretsmanager/rotationschedule.ts +314 -0
  169. package/providers/aws/generated/resources/secretsmanager/secret.ts +327 -0
  170. package/providers/aws/generated/resources/secretsmanager/secrettargetattachment.ts +167 -0
  171. package/providers/aws/generated/resources/sns/subscription.ts +488 -0
  172. package/providers/aws/generated/resources/sns/topic.ts +60 -88
  173. package/providers/aws/generated/resources/sns/topicinlinepolicy.ts +169 -0
  174. package/providers/aws/generated/resources/sns/topicpolicy.ts +172 -0
  175. package/providers/aws/generated/resources/sqs/queue.ts +53 -82
  176. package/providers/aws/generated/resources/sqs/queueinlinepolicy.ts +163 -0
  177. package/providers/aws/generated/resources/sqs/queuepolicy.ts +172 -0
  178. package/providers/aws/generated/resources/ssm/association.ts +906 -0
  179. package/providers/aws/generated/resources/ssm/document.ts +472 -0
  180. package/providers/aws/generated/resources/ssm/maintenancewindow.ts +225 -0
  181. package/providers/aws/generated/resources/ssm/maintenancewindowtarget.ts +289 -0
  182. package/providers/aws/generated/resources/ssm/maintenancewindowtask.ts +497 -0
  183. package/providers/aws/generated/resources/ssm/parameter.ts +258 -0
  184. package/providers/aws/generated/resources/ssm/patchbaseline.ts +668 -0
  185. package/providers/aws/generated/resources/ssm/resourcedatasync.ts +465 -0
  186. package/providers/aws/generated/resources/ssm/resourcepolicy.ts +211 -0
  187. package/providers/aws/generated/resources/stepfunctions/activity.ts +237 -0
  188. package/providers/aws/generated/resources/stepfunctions/statemachine.ts +54 -41
  189. package/providers/aws/generated/resources/stepfunctions/statemachinealias.ts +361 -0
  190. package/providers/aws/generated/resources/stepfunctions/statemachineversion.ts +202 -0
  191. package/providers/aws/management/ec2/internetGateway.ts +129 -0
  192. package/providers/aws/management/ec2/resourceTags.ts +89 -0
  193. package/providers/aws/management/ec2/route.ts +254 -0
  194. package/providers/aws/management/ec2/routeTable.ts +138 -0
  195. package/providers/aws/management/ec2/subnet.ts +511 -0
  196. package/providers/aws/management/ec2/subnetRouteTableAssociation.ts +129 -0
  197. package/providers/aws/management/ec2/vpc.ts +466 -0
  198. package/providers/aws/management/ec2/vpcGatewayAttachment.ts +238 -0
  199. package/providers/aws/management/iam/role.ts +520 -0
  200. package/providers/aws/management/lambda/function.ts +651 -0
  201. package/providers/aws/management/resourcePolicies.ts +102 -0
  202. package/providers/aws/management/s3/bucket.ts +315 -0
  203. package/providers/aws/management/s3/bucketConfiguration.ts +1102 -0
  204. package/providers/aws/runtime.ts +17 -19
  205. package/src/core/resource/model.ts +13 -3
  206. package/src/core/resource/resourceCommandPolicy.ts +5 -1
  207. package/src/core/resource/resourceEntries.ts +193 -0
  208. package/src/core/resource/resourceLifecycle.ts +39 -23
  209. package/src/core/stack/planner.ts +78 -40
  210. package/src/core/stack/resourceStackLifecycle.ts +112 -18
  211. package/src/core/stack/resourceStackOperations.ts +18 -0
  212. package/src/core/stack/stackWorkflowRenderer.ts +12 -3
  213. package/src/core/state/stateStore.ts +47 -10
  214. package/src/providers/providerRuntimeLayer.ts +1 -1
  215. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsEntitySchema.ts +5 -5055
  216. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsSchema.ts +5 -5055
  217. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsValidators.ts +5058 -0
  218. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsEntitySchema.ts +5 -2443
  219. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsSchema.ts +5 -2443
  220. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsValidators.ts +2446 -0
  221. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsEntitySchema.ts +5 -23
  222. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsSchema.ts +5 -23
  223. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsValidators.ts +26 -0
  224. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsEntitySchema.ts +5 -63
  225. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsSchema.ts +5 -63
  226. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsValidators.ts +66 -0
  227. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsEntitySchema.ts +11 -121
  228. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsSchema.ts +11 -121
  229. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsValidators.ts +130 -0
  230. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsEntitySchema.ts +17 -21
  231. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsSchema.ts +4 -12
  232. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsValidators.ts +109 -0
  233. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsEntitySchema.ts +3 -2
  234. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsSchema.ts +3 -2
  235. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsValidators.ts +11 -0
  236. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsEntitySchema.ts +18 -108
  237. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsSchema.ts +18 -108
  238. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsValidators.ts +122 -0
  239. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsEntitySchema.ts +5 -30
  240. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsSchema.ts +5 -30
  241. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsValidators.ts +34 -0
  242. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsEntitySchema.ts +5 -110
  243. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsSchema.ts +5 -110
  244. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsValidators.ts +113 -0
  245. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsEntitySchema.ts +42 -218
  246. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsSchema.ts +63 -336
  247. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsValidators.ts +604 -0
  248. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsEntitySchema.ts +11 -123
  249. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsSchema.ts +11 -123
  250. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsValidators.ts +133 -0
  251. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsEntitySchema.ts +25 -322
  252. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsSchema.ts +20 -317
  253. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsValidators.ts +359 -0
  254. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsEntitySchema.ts +139 -4161
  255. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsSchema.ts +181 -4265
  256. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsValidators.ts +4529 -0
  257. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsEntitySchema.ts +5 -86
  258. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsSchema.ts +5 -86
  259. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsValidators.ts +89 -0
  260. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsEntitySchema.ts +5 -151
  261. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsSchema.ts +5 -151
  262. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsValidators.ts +154 -0
  263. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsEntitySchema.ts +34 -169
  264. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsSchema.ts +24 -159
  265. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsValidators.ts +235 -0
  266. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsEntitySchema.ts +46 -644
  267. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsSchema.ts +41 -639
  268. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsValidators.ts +691 -0
  269. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsEntitySchema.ts +5 -46
  270. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsSchema.ts +5 -46
  271. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsValidators.ts +49 -0
  272. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsEntitySchema.ts +5 -160
  273. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsSchema.ts +5 -160
  274. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsValidators.ts +163 -0
  275. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsEntitySchema.ts +8 -19
  276. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsSchema.ts +8 -19
  277. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsValidators.ts +28 -0
  278. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsEntitySchema.ts +5 -55
  279. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsSchema.ts +5 -55
  280. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsValidators.ts +58 -0
  281. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsEntitySchema.ts +36 -121
  282. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsSchema.ts +24 -111
  283. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsValidators.ts +183 -0
  284. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsEntitySchema.ts +5 -119
  285. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsSchema.ts +5 -119
  286. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsValidators.ts +122 -0
  287. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsEntitySchema.ts +5 -45
  288. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsSchema.ts +5 -45
  289. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsValidators.ts +48 -0
  290. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsEntitySchema.ts +5 -195
  291. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsSchema.ts +5 -195
  292. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsValidators.ts +198 -0
  293. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsEntitySchema.ts +5 -97
  294. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsSchema.ts +5 -97
  295. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsValidators.ts +100 -0
  296. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsEntitySchema.ts +69 -1282
  297. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsSchema.ts +43 -1259
  298. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsValidators.ts +1417 -0
  299. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsEntitySchema.ts +32 -126
  300. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsSchema.ts +27 -121
  301. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsValidators.ts +172 -0
  302. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsEntitySchema.ts +32 -2103
  303. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsSchema.ts +32 -2103
  304. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsValidators.ts +2134 -0
  305. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsEntitySchema.ts +37 -2065
  306. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsSchema.ts +32 -2060
  307. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsValidators.ts +2196 -0
  308. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsEntitySchema.ts +56 -97
  309. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsSchema.ts +98 -251
  310. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsValidators.ts +1024 -0
  311. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsEntitySchema.ts +14 -89
  312. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsSchema.ts +14 -89
  313. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsValidators.ts +100 -0
  314. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsEntitySchema.ts +5 -246
  315. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsSchema.ts +5 -246
  316. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsValidators.ts +249 -0
  317. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsEntitySchema.ts +5 -115
  318. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsSchema.ts +5 -115
  319. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsValidators.ts +118 -0
  320. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsEntitySchema.ts +65 -5205
  321. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsSchema.ts +59 -5200
  322. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsValidators.ts +5124 -0
  323. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsEntitySchema.ts +101 -1508
  324. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsSchema.ts +95 -1598
  325. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsValidators.ts +2039 -0
  326. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsEntitySchema.ts +5 -2272
  327. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsSchema.ts +5 -2272
  328. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsValidators.ts +2276 -0
  329. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsEntitySchema.ts +5 -37
  330. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsSchema.ts +5 -37
  331. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsValidators.ts +40 -0
  332. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsEntitySchema.ts +194 -1425
  333. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsSchema.ts +194 -1425
  334. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsValidators.ts +1580 -0
  335. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsEntitySchema.ts +5 -265
  336. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsSchema.ts +5 -265
  337. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsValidators.ts +268 -0
  338. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsEntitySchema.ts +14 -28
  339. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsSchema.ts +14 -28
  340. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsValidators.ts +42 -0
  341. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsEntitySchema.ts +26 -96
  342. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsSchema.ts +26 -96
  343. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsValidators.ts +117 -0
  344. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsEntitySchema.ts +35 -314
  345. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsSchema.ts +35 -314
  346. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsValidators.ts +330 -0
  347. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsEntitySchema.ts +5 -33
  348. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsSchema.ts +5 -33
  349. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsValidators.ts +37 -0
  350. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsEntitySchema.ts +16 -43
  351. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsSchema.ts +9 -39
  352. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsValidators.ts +105 -0
  353. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsEntitySchema.ts +5 -358
  354. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsSchema.ts +5 -358
  355. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsValidators.ts +361 -0
  356. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsEntitySchema.ts +18 -66
  357. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsSchema.ts +11 -61
  358. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsValidators.ts +100 -0
  359. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsEntitySchema.ts +73 -366
  360. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsSchema.ts +49 -345
  361. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsValidators.ts +569 -0
  362. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsEntitySchema.ts +5 -39
  363. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsSchema.ts +5 -39
  364. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsValidators.ts +42 -0
  365. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsEntitySchema.ts +5 -76
  366. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsSchema.ts +5 -76
  367. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsValidators.ts +79 -0
  368. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsEntitySchema.ts +5 -27
  369. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsSchema.ts +5 -27
  370. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsValidators.ts +30 -0
  371. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsEntitySchema.ts +11 -30
  372. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsSchema.ts +11 -30
  373. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsValidators.ts +41 -0
  374. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsEntitySchema.ts +5 -1356
  375. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsSchema.ts +5 -1356
  376. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsValidators.ts +1359 -0
  377. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsEntitySchema.ts +35 -2767
  378. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsSchema.ts +35 -2767
  379. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsValidators.ts +2761 -0
  380. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsEntitySchema.ts +5 -170
  381. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsSchema.ts +5 -170
  382. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsValidators.ts +173 -0
  383. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsEntitySchema.ts +5 -549
  384. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsSchema.ts +5 -549
  385. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsValidators.ts +552 -0
  386. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsEntitySchema.ts +32 -143
  387. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsSchema.ts +27 -138
  388. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsValidators.ts +187 -0
  389. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsEntitySchema.ts +99 -1668
  390. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsSchema.ts +70 -1644
  391. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsValidators.ts +1872 -0
  392. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsEntitySchema.ts +123 -497
  393. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsSchema.ts +118 -755
  394. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsValidators.ts +1902 -0
  395. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsEntitySchema.ts +23 -301
  396. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsSchema.ts +11 -291
  397. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsValidators.ts +359 -0
  398. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsEntitySchema.ts +5 -113
  399. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsSchema.ts +5 -113
  400. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsValidators.ts +116 -0
  401. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsEntitySchema.ts +5 -159
  402. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsSchema.ts +5 -159
  403. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsValidators.ts +162 -0
  404. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsEntitySchema.ts +5 -3321
  405. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsSchema.ts +5 -3321
  406. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsValidators.ts +3324 -0
  407. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsEntitySchema.ts +73 -698
  408. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsSchema.ts +23 -646
  409. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsValidators.ts +931 -0
  410. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsEntitySchema.ts +5 -292
  411. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsSchema.ts +5 -292
  412. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsValidators.ts +295 -0
  413. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsEntitySchema.ts +8 -19
  414. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsSchema.ts +8 -19
  415. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsValidators.ts +29 -0
  416. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsEntitySchema.ts +5 -47
  417. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsSchema.ts +5 -47
  418. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsValidators.ts +51 -0
  419. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsEntitySchema.ts +40 -629
  420. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsSchema.ts +40 -629
  421. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsValidators.ts +655 -0
  422. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsEntitySchema.ts +5 -2387
  423. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsSchema.ts +5 -2387
  424. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsValidators.ts +2391 -0
  425. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsEntitySchema.ts +11 -50
  426. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsSchema.ts +11 -50
  427. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsValidators.ts +58 -0
  428. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsEntitySchema.ts +11 -21
  429. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsSchema.ts +11 -21
  430. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsValidators.ts +34 -0
  431. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsEntitySchema.ts +5 -36
  432. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsSchema.ts +5 -36
  433. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsValidators.ts +40 -0
  434. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsEntitySchema.ts +5 -36
  435. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsSchema.ts +5 -36
  436. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsValidators.ts +40 -0
  437. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsEntitySchema.ts +5 -276
  438. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsSchema.ts +5 -275
  439. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsValidators.ts +279 -0
  440. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsEntitySchema.ts +5 -73
  441. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsSchema.ts +5 -73
  442. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsValidators.ts +77 -0
  443. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsEntitySchema.ts +5 -340
  444. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsSchema.ts +5 -340
  445. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsValidators.ts +344 -0
  446. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsEntitySchema.ts +5 -137
  447. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsSchema.ts +5 -137
  448. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsValidators.ts +141 -0
  449. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsEntitySchema.ts +5 -45
  450. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsSchema.ts +5 -45
  451. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsValidators.ts +48 -0
  452. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsEntitySchema.ts +144 -3036
  453. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsSchema.ts +279 -3175
  454. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsValidators.ts +3457 -0
  455. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsEntitySchema.ts +5 -883
  456. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsSchema.ts +5 -882
  457. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsValidators.ts +886 -0
  458. package/src/providers/stripe/client/stripeClient.ts +11 -15
  459. package/providers/aws/generated/managementRegistry.ts +0 -136
  460. package/providers/aws/management/mappings/iam/group.ts +0 -63
  461. package/providers/aws/management/mappings/iam/iamIdentity.ts +0 -41
  462. package/providers/aws/management/mappings/iam/iamLifecycleSettings.ts +0 -8
  463. package/providers/aws/management/mappings/iam/inlinePolicies.ts +0 -159
  464. package/providers/aws/management/mappings/iam/instanceProfile.ts +0 -77
  465. package/providers/aws/management/mappings/iam/oidcProvider.ts +0 -94
  466. package/providers/aws/management/mappings/iam/role.ts +0 -74
  467. package/providers/aws/management/mappings/iam/samlProvider.ts +0 -98
  468. package/providers/aws/management/mappings/iam/serverCertificate.ts +0 -72
  469. package/providers/aws/management/mappings/iam/user.ts +0 -61
  470. package/providers/aws/management/mappings/iam/userToGroupAddition.ts +0 -75
  471. package/providers/aws/management/operations/iam/accessKey.ts +0 -206
  472. package/providers/aws/management/operations/iam/managedPolicy.ts +0 -491
  473. package/providers/aws/management/operations/iam/policy.ts +0 -476
  474. package/providers/aws/management/operations/iam/serviceLinkedRole.ts +0 -172
  475. package/providers/aws/management/operations/iam/virtualMfaDevice.ts +0 -253
  476. package/providers/aws/management/resourceAssociationConfiguration.ts +0 -112
  477. package/providers/aws/management/resourceAssociationRegistration.ts +0 -349
  478. package/providers/aws/management/resourceAssociations.ts +0 -168
  479. package/providers/aws/management/resourceConfiguration.ts +0 -119
  480. package/providers/aws/management/resourceLifecycleRegistration.ts +0 -540
  481. package/providers/aws/management/resourceManagementModule.ts +0 -31
  482. package/providers/aws/management/resourceManagementRegistry.ts +0 -62
  483. package/providers/aws/management/resourceMapping.ts +0 -84
  484. package/providers/aws/management/resourceOperation.ts +0 -134
  485. package/providers/aws/management/resourceTagOperations.ts +0 -108
  486. package/providers/aws/management/resourceTiming.ts +0 -4
  487. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives.ts +0 -35
  488. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_1.ts +0 -35
  489. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_10.ts +0 -44
  490. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_100.ts +0 -35
  491. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_101.ts +0 -35
  492. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_102.ts +0 -35
  493. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_103.ts +0 -35
  494. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_104.ts +0 -35
  495. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_105.ts +0 -35
  496. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_106.ts +0 -35
  497. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_107.ts +0 -35
  498. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_108.ts +0 -35
  499. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_11.ts +0 -68
  500. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_12.ts +0 -35
  501. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_13.ts +0 -35
  502. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_14.ts +0 -35
  503. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_15.ts +0 -35
  504. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_16.ts +0 -35
  505. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_17.ts +0 -44
  506. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_18.ts +0 -35
  507. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_19.ts +0 -35
  508. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_2.ts +0 -35
  509. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_20.ts +0 -35
  510. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_21.ts +0 -35
  511. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_22.ts +0 -35
  512. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_23.ts +0 -35
  513. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_24.ts +0 -35
  514. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_25.ts +0 -35
  515. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_26.ts +0 -44
  516. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_27.ts +0 -35
  517. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_28.ts +0 -35
  518. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_29.ts +0 -35
  519. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_3.ts +0 -35
  520. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_30.ts +0 -35
  521. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_31.ts +0 -35
  522. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_32.ts +0 -35
  523. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_33.ts +0 -35
  524. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_34.ts +0 -35
  525. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_35.ts +0 -59
  526. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_36.ts +0 -35
  527. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_37.ts +0 -35
  528. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_38.ts +0 -35
  529. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_39.ts +0 -35
  530. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_4.ts +0 -35
  531. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_40.ts +0 -35
  532. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_41.ts +0 -111
  533. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_42.ts +0 -35
  534. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_43.ts +0 -77
  535. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_44.ts +0 -35
  536. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_45.ts +0 -35
  537. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_46.ts +0 -35
  538. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_47.ts +0 -35
  539. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_48.ts +0 -50
  540. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_49.ts +0 -35
  541. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_5.ts +0 -35
  542. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_50.ts +0 -83
  543. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_51.ts +0 -35
  544. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_52.ts +0 -50
  545. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_53.ts +0 -35
  546. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_54.ts +0 -74
  547. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_55.ts +0 -35
  548. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_56.ts +0 -65
  549. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_57.ts +0 -35
  550. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_58.ts +0 -79
  551. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_59.ts +0 -35
  552. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_6.ts +0 -35
  553. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_60.ts +0 -35
  554. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_61.ts +0 -35
  555. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_62.ts +0 -44
  556. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_63.ts +0 -35
  557. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_64.ts +0 -35
  558. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_65.ts +0 -44
  559. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_66.ts +0 -35
  560. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_67.ts +0 -35
  561. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_68.ts +0 -35
  562. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_69.ts +0 -35
  563. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_7.ts +0 -35
  564. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_70.ts +0 -35
  565. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_71.ts +0 -35
  566. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_72.ts +0 -35
  567. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_73.ts +0 -35
  568. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_74.ts +0 -35
  569. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_75.ts +0 -35
  570. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_76.ts +0 -35
  571. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_77.ts +0 -35
  572. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_78.ts +0 -44
  573. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_79.ts +0 -35
  574. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_8.ts +0 -35
  575. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_80.ts +0 -35
  576. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_81.ts +0 -39
  577. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_82.ts +0 -35
  578. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_83.ts +0 -35
  579. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_84.ts +0 -35
  580. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_85.ts +0 -35
  581. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_86.ts +0 -35
  582. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_87.ts +0 -35
  583. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_88.ts +0 -56
  584. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_89.ts +0 -35
  585. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_9.ts +0 -35
  586. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_90.ts +0 -35
  587. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_91.ts +0 -44
  588. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_92.ts +0 -35
  589. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_93.ts +0 -56
  590. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_94.ts +0 -35
  591. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_95.ts +0 -35
  592. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_96.ts +0 -35
  593. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_97.ts +0 -35
  594. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_98.ts +0 -35
  595. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_99.ts +0 -35
  596. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems.ts +0 -38
  597. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_1.ts +0 -39
  598. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_2.ts +0 -38
  599. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_3.ts +0 -154
  600. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_4.ts +0 -51
  601. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_5.ts +0 -120
  602. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties.ts +0 -32
  603. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_1.ts +0 -37
  604. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_10.ts +0 -125
  605. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_11.ts +0 -34
  606. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_12.ts +0 -34
  607. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_13.ts +0 -34
  608. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_14.ts +0 -34
  609. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_15.ts +0 -32
  610. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_16.ts +0 -37
  611. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_17.ts +0 -34
  612. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_18.ts +0 -130
  613. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_19.ts +0 -34
  614. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_2.ts +0 -39
  615. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_20.ts +0 -89
  616. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_21.ts +0 -34
  617. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_22.ts +0 -30
  618. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_23.ts +0 -34
  619. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_24.ts +0 -34
  620. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_25.ts +0 -34
  621. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_26.ts +0 -34
  622. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_27.ts +0 -97
  623. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_28.ts +0 -34
  624. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_29.ts +0 -34
  625. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_3.ts +0 -37
  626. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_30.ts +0 -34
  627. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_31.ts +0 -97
  628. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_32.ts +0 -34
  629. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_33.ts +0 -34
  630. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_4.ts +0 -37
  631. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_5.ts +0 -53
  632. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_6.ts +0 -42
  633. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_7.ts +0 -63
  634. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_8.ts +0 -94
  635. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_9.ts +0 -34
@@ -0,0 +1,1798 @@
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 "../../../../../src/core/resource/resourceOutputBinding.js";
13
+
14
+ interface OnFailure {
15
+ readonly Destination?:
16
+ | ResourceEntity<{
17
+ readonly provider: "aws";
18
+ readonly service: "sqs";
19
+ readonly resource: "queue";
20
+ }>
21
+ | ResourceEntity<{
22
+ readonly provider: "aws";
23
+ readonly service: "sns";
24
+ readonly resource: "topic";
25
+ }>
26
+ | string;
27
+ }
28
+
29
+ const OnFailure = Schema.Struct({
30
+ Destination: Schema.optionalKey(
31
+ Schema.Union([
32
+ Schema.Union([
33
+ ResourceReferenceSchema(
34
+ Schema.Struct({
35
+ provider: Schema.Literal("aws"),
36
+ service: Schema.Literal("sqs"),
37
+ resource: Schema.Literal("queue"),
38
+ }),
39
+ {
40
+ value: null,
41
+ outputs: [
42
+ {
43
+ source: ["Arn"],
44
+ target: [],
45
+ },
46
+ ],
47
+ },
48
+ ).annotate({ expected: "ResourceEntity" }),
49
+ ResourceReferenceSchema(
50
+ Schema.Struct({
51
+ provider: Schema.Literal("aws"),
52
+ service: Schema.Literal("sns"),
53
+ resource: Schema.Literal("topic"),
54
+ }),
55
+ {
56
+ value: null,
57
+ outputs: [
58
+ {
59
+ source: ["TopicArn"],
60
+ target: [],
61
+ },
62
+ ],
63
+ },
64
+ ).annotate({ expected: "ResourceEntity" }),
65
+ ]),
66
+ Schema.String.annotate({
67
+ description:
68
+ "The Amazon Resource Name (ARN) of the destination resource.\n To retain records of unsuccessful [asynchronous invocations](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations), you can configure an Amazon SNS topic, Amazon SQS queue, Amazon S3 bucket, Lambda function, or Amazon EventBridge event bus as the destination.\n Amazon SNS destinations have a message size limit of 256 KB. If the combined size of the function request and response payload exceeds the limit, Lambda will drop the payload when sending ``OnFailure`` event to the destination. For details on this behavior, refer to [Retaining records of asynchronous invocations](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html).\n To retain records of failed invocations from [Kinesis](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html), [DynamoDB](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html), [self-managed Kafka](https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination) or [Amazon MSK](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination), you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the destination.",
69
+ })
70
+ .check(
71
+ Schema.isMinCodePoints(12).annotate({
72
+ expected: "a string with at least 12 code points",
73
+ }),
74
+ )
75
+ .check(
76
+ Schema.isMaxCodePoints(1024).annotate({
77
+ expected: "a string with at most 1024 code points",
78
+ }),
79
+ )
80
+ .check(
81
+ Schema.isPattern(
82
+ new globalThis.RegExp(
83
+ "^$|kafka:\\/\\/([^.]([a-zA-Z0-9\\-_.]{0,248}))|arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)",
84
+ "u",
85
+ ),
86
+ ).annotate({
87
+ expected:
88
+ "a string matching the RegExp ^$|kafka:\\/\\/([^.]([a-zA-Z0-9\\-_.]{0,248}))|arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)",
89
+ }),
90
+ ),
91
+ ]),
92
+ ),
93
+ }).annotate({
94
+ description:
95
+ "A destination for events that failed processing. For more information, see [Adding a destination](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-async-destinations).",
96
+ identifier: "OnFailure",
97
+ });
98
+
99
+ interface DestinationConfig {
100
+ readonly OnFailure?: OnFailure;
101
+ }
102
+
103
+ const DestinationConfig = Schema.Struct({
104
+ OnFailure: Schema.optionalKey(OnFailure),
105
+ }).annotate({
106
+ description:
107
+ "A configuration object that specifies the destination of an event after Lambda processes it. For more information, see [Adding a destination](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-async-destinations).",
108
+ identifier: "DestinationConfig",
109
+ });
110
+
111
+ interface Filter {
112
+ readonly Pattern?: string;
113
+ }
114
+
115
+ const Filter = Schema.Struct({
116
+ Pattern: Schema.optionalKey(
117
+ Schema.String.annotate({
118
+ description:
119
+ "A filter pattern. For more information on the syntax of a filter pattern, see [Filter rule syntax](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax).",
120
+ })
121
+ .check(
122
+ Schema.isMinCodePoints(0).annotate({
123
+ expected: "a string with at least 0 code points",
124
+ }),
125
+ )
126
+ .check(
127
+ Schema.isMaxCodePoints(4096).annotate({
128
+ expected: "a string with at most 4096 code points",
129
+ }),
130
+ )
131
+ .check(
132
+ Schema.isPattern(new globalThis.RegExp(".*", "u")).annotate({
133
+ expected: "a string matching the RegExp .*",
134
+ }),
135
+ ),
136
+ ),
137
+ }).annotate({
138
+ description:
139
+ "A structure within a ``FilterCriteria`` object that defines an event filtering pattern.",
140
+ identifier: "Filter",
141
+ });
142
+
143
+ interface FilterCriteria {
144
+ readonly Filters?: globalThis.ReadonlyArray<Filter>;
145
+ }
146
+
147
+ const FilterCriteria = Schema.Struct({
148
+ Filters: Schema.optionalKey(
149
+ Schema.Array(Filter)
150
+ .annotate({ description: "A list of filters." })
151
+ .check(
152
+ Schema.isMinLength(1).annotate({
153
+ expected: "a value with a length of at least 1",
154
+ }),
155
+ )
156
+ .check(
157
+ Schema.isMaxLength(20).annotate({
158
+ expected: "a value with a length of at most 20",
159
+ }),
160
+ )
161
+ .check(
162
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
163
+ ),
164
+ ),
165
+ }).annotate({
166
+ description: "An object that contains the filters for an event source.",
167
+ identifier: "FilterCriteria",
168
+ });
169
+
170
+ interface Tag {
171
+ readonly Key: string;
172
+ readonly Value?: string;
173
+ }
174
+
175
+ const Tag = Schema.Struct({
176
+ Key: Schema.String.annotate({ description: "The key for this tag." })
177
+ .check(
178
+ Schema.isMinLength(1).annotate({
179
+ expected: "a value with a length of at least 1",
180
+ }),
181
+ )
182
+ .check(
183
+ Schema.isMaxCodePoints(128).annotate({
184
+ expected: "a string with at most 128 code points",
185
+ }),
186
+ ),
187
+ Value: Schema.optionalKey(
188
+ Schema.String.annotate({ description: "The value for this tag." })
189
+ .check(
190
+ Schema.isMinCodePoints(0).annotate({
191
+ expected: "a string with at least 0 code points",
192
+ }),
193
+ )
194
+ .check(
195
+ Schema.isMaxCodePoints(256).annotate({
196
+ expected: "a string with at most 256 code points",
197
+ }),
198
+ ),
199
+ ),
200
+ }).annotate({
201
+ description:
202
+ "A [tag](https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to apply to the event source mapping.",
203
+ identifier: "Tag",
204
+ });
205
+
206
+ type ResourceInputItems = globalThis.ReadonlyArray<Tag>;
207
+
208
+ const ResourceInputItems = Schema.Array(Tag)
209
+ .annotate({
210
+ description:
211
+ "A list of tags to add to the event source mapping.\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.",
212
+ })
213
+ .check(
214
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
215
+ );
216
+
217
+ type ResourceInputItems_1 = globalThis.ReadonlyArray<string>;
218
+
219
+ const ResourceInputItems_1 = Schema.Array(
220
+ Schema.String.check(
221
+ Schema.isMinLength(1).annotate({
222
+ expected: "a value with a length of at least 1",
223
+ }),
224
+ )
225
+ .check(
226
+ Schema.isMaxCodePoints(249).annotate({
227
+ expected: "a string with at most 249 code points",
228
+ }),
229
+ )
230
+ .check(
231
+ Schema.isPattern(
232
+ new globalThis.RegExp("^[^.]([a-zA-Z0-9\\-_.]+)", "u"),
233
+ ).annotate({
234
+ expected: "a string matching the RegExp ^[^.]([a-zA-Z0-9\\-_.]+)",
235
+ }),
236
+ ),
237
+ )
238
+ .annotate({ description: "The name of the Kafka topic." })
239
+ .check(
240
+ Schema.isMinLength(1).annotate({
241
+ expected: "a value with a length of at least 1",
242
+ }),
243
+ )
244
+ .check(
245
+ Schema.isMaxLength(1).annotate({
246
+ expected: "a value with a length of at most 1",
247
+ }),
248
+ )
249
+ .check(
250
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
251
+ );
252
+
253
+ type ResourceInputItems_2 = globalThis.ReadonlyArray<string>;
254
+
255
+ const ResourceInputItems_2 = Schema.Array(
256
+ Schema.String.check(
257
+ Schema.isMinLength(1).annotate({
258
+ expected: "a value with a length of at least 1",
259
+ }),
260
+ )
261
+ .check(
262
+ Schema.isMaxCodePoints(1000).annotate({
263
+ expected: "a string with at most 1000 code points",
264
+ }),
265
+ )
266
+ .check(
267
+ Schema.isPattern(new globalThis.RegExp("[\\s\\S]*", "u")).annotate({
268
+ expected: "a string matching the RegExp [\\s\\S]*",
269
+ }),
270
+ ),
271
+ )
272
+ .annotate({
273
+ description:
274
+ "(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.",
275
+ })
276
+ .check(
277
+ Schema.isMinLength(1).annotate({
278
+ expected: "a value with a length of at least 1",
279
+ }),
280
+ )
281
+ .check(
282
+ Schema.isMaxLength(1).annotate({
283
+ expected: "a value with a length of at most 1",
284
+ }),
285
+ )
286
+ .check(
287
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
288
+ );
289
+
290
+ interface SourceAccessConfiguration {
291
+ readonly Type?:
292
+ | "BASIC_AUTH"
293
+ | "VPC_SUBNET"
294
+ | "VPC_SECURITY_GROUP"
295
+ | "SASL_SCRAM_512_AUTH"
296
+ | "SASL_SCRAM_256_AUTH"
297
+ | "VIRTUAL_HOST"
298
+ | "CLIENT_CERTIFICATE_TLS_AUTH"
299
+ | "SERVER_ROOT_CA_CERTIFICATE";
300
+ readonly URI?: string;
301
+ }
302
+
303
+ const SourceAccessConfiguration = Schema.Struct({
304
+ Type: Schema.optionalKey(
305
+ Schema.Literals([
306
+ "BASIC_AUTH",
307
+ "VPC_SUBNET",
308
+ "VPC_SECURITY_GROUP",
309
+ "SASL_SCRAM_512_AUTH",
310
+ "SASL_SCRAM_256_AUTH",
311
+ "VIRTUAL_HOST",
312
+ "CLIENT_CERTIFICATE_TLS_AUTH",
313
+ "SERVER_ROOT_CA_CERTIFICATE",
314
+ ]).annotate({
315
+ description:
316
+ 'The type of authentication protocol, VPC components, or virtual host for your event source. For example: ``"Type":"SASL_SCRAM_512_AUTH"``.\n + ``BASIC_AUTH`` – (Amazon MQ) The ASMlong secret that stores your broker credentials.\n + ``BASIC_AUTH`` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL/PLAIN authentication of your Apache Kafka brokers.\n + ``VPC_SUBNET`` – (Self-managed Apache Kafka) The subnets associated with your VPC. Lambda connects to these subnets to fetch data from your self-managed Apache Kafka cluster.\n + ``VPC_SECURITY_GROUP`` – (Self-managed Apache Kafka) The VPC security group used to manage access to your self-managed Apache Kafka brokers.\n + ``SASL_SCRAM_256_AUTH`` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers.\n + ``SASL_SCRAM_512_AUTH`` – (Amazon MSK, Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka brokers.\n + ``VIRTUAL_HOST`` –- (RabbitMQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source. This property cannot be specified in an UpdateEventSourceMapping API call.\n + ``CLIENT_CERTIFICATE_TLS_AUTH`` – (Amazon MSK, self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the certificate chain (X.509 PEM), private key (PKCS#8 PEM), and private key password (optional) used for mutual TLS authentication of your MSK/Apache Kafka brokers.\n + ``SERVER_ROOT_CA_CERTIFICATE`` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the root CA certificate (X.509 PEM) used for TLS encryption of your Apache Kafka brokers.',
317
+ }),
318
+ ),
319
+ URI: Schema.optionalKey(
320
+ Schema.String.annotate({
321
+ description:
322
+ 'The value for your chosen configuration in ``Type``. For example: ``"URI": "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName"``.',
323
+ })
324
+ .check(
325
+ Schema.isMinLength(1).annotate({
326
+ expected: "a value with a length of at least 1",
327
+ }),
328
+ )
329
+ .check(
330
+ Schema.isMaxCodePoints(200).annotate({
331
+ expected: "a string with at most 200 code points",
332
+ }),
333
+ )
334
+ .check(
335
+ Schema.isPattern(
336
+ new globalThis.RegExp("[a-zA-Z0-9-\\/*:_+=.@-]*", "u"),
337
+ ).annotate({
338
+ expected: "a string matching the RegExp [a-zA-Z0-9-\\/*:_+=.@-]*",
339
+ }),
340
+ ),
341
+ ),
342
+ }).annotate({
343
+ description:
344
+ "An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.",
345
+ identifier: "SourceAccessConfiguration",
346
+ });
347
+
348
+ type ResourceInputItems_3 = globalThis.ReadonlyArray<SourceAccessConfiguration>;
349
+
350
+ const ResourceInputItems_3 = Schema.Array(SourceAccessConfiguration)
351
+ .annotate({
352
+ description:
353
+ "An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.",
354
+ })
355
+ .check(
356
+ Schema.isMinLength(1).annotate({
357
+ expected: "a value with a length of at least 1",
358
+ }),
359
+ )
360
+ .check(
361
+ Schema.isMaxLength(22).annotate({
362
+ expected: "a value with a length of at most 22",
363
+ }),
364
+ )
365
+ .check(
366
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
367
+ );
368
+
369
+ type ResourceInputItems_4 = globalThis.ReadonlyArray<"ReportBatchItemFailures">;
370
+
371
+ const ResourceInputItems_4 = Schema.Array(
372
+ Schema.Literal("ReportBatchItemFailures"),
373
+ )
374
+ .annotate({
375
+ description:
376
+ "(Kinesis, DynamoDB Streams, and SQS) A list of current response type enums applied to the event source mapping.\n Valid Values: ``ReportBatchItemFailures``",
377
+ })
378
+ .check(
379
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
380
+ );
381
+
382
+ interface Endpoints {
383
+ readonly KafkaBootstrapServers?: globalThis.ReadonlyArray<string>;
384
+ }
385
+
386
+ const Endpoints = Schema.Struct({
387
+ KafkaBootstrapServers: Schema.optionalKey(
388
+ Schema.Array(
389
+ Schema.String.annotate({ description: "The URL of a Kafka server." })
390
+ .check(
391
+ Schema.isMinLength(1).annotate({
392
+ expected: "a value with a length of at least 1",
393
+ }),
394
+ )
395
+ .check(
396
+ Schema.isMaxCodePoints(300).annotate({
397
+ expected: "a string with at most 300 code points",
398
+ }),
399
+ )
400
+ .check(
401
+ Schema.isPattern(
402
+ new globalThis.RegExp(
403
+ "^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]*[A-Za-z0-9]):[0-9]{1,5}",
404
+ "u",
405
+ ),
406
+ ).annotate({
407
+ expected:
408
+ "a string matching the RegExp ^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]*[A-Za-z0-9]):[0-9]{1,5}",
409
+ }),
410
+ ),
411
+ )
412
+ .annotate({
413
+ description:
414
+ 'The list of bootstrap servers for your Kafka brokers in the following format: ``"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]``.',
415
+ })
416
+ .check(
417
+ Schema.isMinLength(1).annotate({
418
+ expected: "a value with a length of at least 1",
419
+ }),
420
+ )
421
+ .check(
422
+ Schema.isMaxLength(10).annotate({
423
+ expected: "a value with a length of at most 10",
424
+ }),
425
+ )
426
+ .check(
427
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
428
+ ),
429
+ ),
430
+ }).annotate({
431
+ description:
432
+ 'The list of bootstrap servers for your Kafka brokers in the following format: ``"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]``.',
433
+ identifier: "Endpoints",
434
+ });
435
+
436
+ interface SelfManagedEventSource {
437
+ readonly Endpoints?: Endpoints;
438
+ }
439
+
440
+ const SelfManagedEventSource = Schema.Struct({
441
+ Endpoints: Schema.optionalKey(Endpoints),
442
+ }).annotate({
443
+ description: "The self-managed Apache Kafka cluster for your event source.",
444
+ identifier: "SelfManagedEventSource",
445
+ });
446
+
447
+ type ConsumerGroupId = string;
448
+
449
+ const ConsumerGroupId = Schema.String.annotate({
450
+ description: "The identifier for the Kafka Consumer Group to join.",
451
+ })
452
+ .check(
453
+ Schema.isMinLength(1).annotate({
454
+ expected: "a value with a length of at least 1",
455
+ }),
456
+ )
457
+ .check(
458
+ Schema.isMaxCodePoints(200).annotate({
459
+ expected: "a string with at most 200 code points",
460
+ }),
461
+ )
462
+ .check(
463
+ Schema.isPattern(
464
+ new globalThis.RegExp("[a-zA-Z0-9-\\/*:_+=.@-]*", "u"),
465
+ ).annotate({
466
+ expected: "a string matching the RegExp [a-zA-Z0-9-\\/*:_+=.@-]*",
467
+ identifier: "ConsumerGroupId",
468
+ }),
469
+ );
470
+
471
+ interface SchemaRegistryAccessConfig {
472
+ readonly Type?:
473
+ | "BASIC_AUTH"
474
+ | "CLIENT_CERTIFICATE_TLS_AUTH"
475
+ | "SERVER_ROOT_CA_CERTIFICATE";
476
+ readonly URI?: string;
477
+ }
478
+
479
+ const SchemaRegistryAccessConfig = Schema.Struct({
480
+ Type: Schema.optionalKey(
481
+ Schema.Literals([
482
+ "BASIC_AUTH",
483
+ "CLIENT_CERTIFICATE_TLS_AUTH",
484
+ "SERVER_ROOT_CA_CERTIFICATE",
485
+ ]).annotate({
486
+ description:
487
+ "The type of authentication Lambda uses to access your schema registry.",
488
+ }),
489
+ ),
490
+ URI: Schema.optionalKey(
491
+ Schema.String.annotate({
492
+ description:
493
+ "The URI of the secret (Secrets Manager secret ARN) to authenticate with your schema registry.",
494
+ })
495
+ .check(
496
+ Schema.isMinLength(1).annotate({
497
+ expected: "a value with a length of at least 1",
498
+ }),
499
+ )
500
+ .check(
501
+ Schema.isMaxCodePoints(10000).annotate({
502
+ expected: "a string with at most 10000 code points",
503
+ }),
504
+ )
505
+ .check(
506
+ Schema.isPattern(
507
+ new globalThis.RegExp(
508
+ "arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)",
509
+ "u",
510
+ ),
511
+ ).annotate({
512
+ expected:
513
+ "a string matching the RegExp arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)",
514
+ }),
515
+ ),
516
+ ),
517
+ }).annotate({
518
+ description:
519
+ "Specific access configuration settings that tell Lambda how to authenticate with your schema registry.\n If you're working with an GLU schema registry, don't provide authentication details in this object. Instead, ensure that your execution role has the required permissions for Lambda to access your cluster.\n If you're working with a Confluent schema registry, choose the authentication method in the ``Type`` field, and provide the ASMlong secret ARN in the ``URI`` field.",
520
+ identifier: "SchemaRegistryAccessConfig",
521
+ });
522
+
523
+ interface SchemaValidationConfig {
524
+ readonly Attribute?: "KEY" | "VALUE";
525
+ }
526
+
527
+ const SchemaValidationConfig = Schema.Struct({
528
+ Attribute: Schema.optionalKey(
529
+ Schema.Literals(["KEY", "VALUE"]).annotate({
530
+ description:
531
+ "The attributes you want your schema registry to validate and filter for. If you selected ``JSON`` as the ``EventRecordFormat``, Lambda also deserializes the selected message attributes.",
532
+ }),
533
+ ),
534
+ }).annotate({
535
+ description:
536
+ "Specific schema validation configuration settings that tell Lambda the message attributes you want to validate and filter using your schema registry.",
537
+ identifier: "SchemaValidationConfig",
538
+ });
539
+
540
+ interface SchemaRegistryConfig {
541
+ readonly SchemaRegistryURI?: string;
542
+ readonly EventRecordFormat?: "JSON" | "SOURCE";
543
+ readonly AccessConfigs?: globalThis.ReadonlyArray<SchemaRegistryAccessConfig>;
544
+ readonly SchemaValidationConfigs?: globalThis.ReadonlyArray<SchemaValidationConfig>;
545
+ }
546
+
547
+ const SchemaRegistryConfig = Schema.Struct({
548
+ SchemaRegistryURI: Schema.optionalKey(
549
+ Schema.String.annotate({
550
+ description:
551
+ "The URI for your schema registry. The correct URI format depends on the type of schema registry you're using.\n + For GLU schema registries, use the ARN of the registry.\n + For Confluent schema registries, use the URL of the registry.",
552
+ })
553
+ .check(
554
+ Schema.isMinLength(1).annotate({
555
+ expected: "a value with a length of at least 1",
556
+ }),
557
+ )
558
+ .check(
559
+ Schema.isMaxCodePoints(10000).annotate({
560
+ expected: "a string with at most 10000 code points",
561
+ }),
562
+ )
563
+ .check(
564
+ Schema.isPattern(
565
+ new globalThis.RegExp("[a-zA-Z0-9-/*:_+=.@-]*", "u"),
566
+ ).annotate({
567
+ expected: "a string matching the RegExp [a-zA-Z0-9-/*:_+=.@-]*",
568
+ }),
569
+ ),
570
+ ),
571
+ EventRecordFormat: Schema.optionalKey(
572
+ Schema.Literals(["JSON", "SOURCE"]).annotate({
573
+ description:
574
+ "The record format that Lambda delivers to your function after schema validation.\n + Choose ``JSON`` to have Lambda deliver the record to your function as a standard JSON object.\n + Choose ``SOURCE`` to have Lambda deliver the record to your function in its original source format. Lambda removes all schema metadata, such as the schema ID, before sending the record to your function.",
575
+ }),
576
+ ),
577
+ AccessConfigs: Schema.optionalKey(
578
+ Schema.Array(SchemaRegistryAccessConfig)
579
+ .annotate({
580
+ description:
581
+ "An array of access configuration objects that tell Lambda how to authenticate with your schema registry.",
582
+ })
583
+ .check(
584
+ Schema.isMaxLength(2).annotate({
585
+ expected: "a value with a length of at most 2",
586
+ }),
587
+ )
588
+ .check(
589
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
590
+ ),
591
+ ),
592
+ SchemaValidationConfigs: Schema.optionalKey(
593
+ Schema.Array(SchemaValidationConfig)
594
+ .annotate({
595
+ description:
596
+ "An array of schema validation configuration objects, which tell Lambda the message attributes you want to validate and filter using your schema registry.",
597
+ })
598
+ .check(
599
+ Schema.isMinLength(1).annotate({
600
+ expected: "a value with a length of at least 1",
601
+ }),
602
+ )
603
+ .check(
604
+ Schema.isMaxLength(2).annotate({
605
+ expected: "a value with a length of at most 2",
606
+ }),
607
+ )
608
+ .check(
609
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
610
+ ),
611
+ ),
612
+ }).annotate({
613
+ description: "Specific configuration settings for a Kafka schema registry.",
614
+ identifier: "SchemaRegistryConfig",
615
+ });
616
+
617
+ interface AmazonManagedKafkaEventSourceConfig {
618
+ readonly ConsumerGroupId?: ConsumerGroupId;
619
+ readonly SchemaRegistryConfig?: SchemaRegistryConfig;
620
+ }
621
+
622
+ const AmazonManagedKafkaEventSourceConfig = Schema.Struct({
623
+ ConsumerGroupId: Schema.optionalKey(ConsumerGroupId),
624
+ SchemaRegistryConfig: Schema.optionalKey(SchemaRegistryConfig),
625
+ }).annotate({
626
+ description:
627
+ "Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.",
628
+ identifier: "AmazonManagedKafkaEventSourceConfig",
629
+ });
630
+
631
+ interface SelfManagedKafkaEventSourceConfig {
632
+ readonly ConsumerGroupId?: ConsumerGroupId;
633
+ readonly SchemaRegistryConfig?: SchemaRegistryConfig;
634
+ }
635
+
636
+ const SelfManagedKafkaEventSourceConfig = Schema.Struct({
637
+ ConsumerGroupId: Schema.optionalKey(ConsumerGroupId),
638
+ SchemaRegistryConfig: Schema.optionalKey(SchemaRegistryConfig),
639
+ }).annotate({
640
+ description:
641
+ "Specific configuration settings for a self-managed Apache Kafka event source.",
642
+ identifier: "SelfManagedKafkaEventSourceConfig",
643
+ });
644
+
645
+ type MaximumConcurrency = number;
646
+
647
+ const MaximumConcurrency = Schema.Number.annotate({
648
+ description:
649
+ "The maximum number of concurrent functions that an event source can invoke.",
650
+ })
651
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
652
+ .check(
653
+ Schema.isGreaterThanOrEqualTo(2).annotate({
654
+ expected: "a value greater than or equal to 2",
655
+ }),
656
+ )
657
+ .check(
658
+ Schema.isLessThanOrEqualTo(1000).annotate({
659
+ expected: "a value less than or equal to 1000",
660
+ identifier: "MaximumConcurrency",
661
+ }),
662
+ );
663
+
664
+ interface ScalingConfig {
665
+ readonly MaximumConcurrency?: MaximumConcurrency;
666
+ }
667
+
668
+ const ScalingConfig = Schema.Struct({
669
+ MaximumConcurrency: Schema.optionalKey(MaximumConcurrency),
670
+ }).annotate({
671
+ description:
672
+ "(Amazon SQS only) The scaling configuration for the event source. To remove the configuration, pass an empty value.",
673
+ identifier: "ScalingConfig",
674
+ });
675
+
676
+ interface DocumentDBEventSourceConfig {
677
+ readonly DatabaseName?: string;
678
+ readonly CollectionName?: string;
679
+ readonly FullDocument?: "UpdateLookup" | "Default";
680
+ }
681
+
682
+ const DocumentDBEventSourceConfig = Schema.Struct({
683
+ DatabaseName: Schema.optionalKey(
684
+ Schema.String.annotate({
685
+ description:
686
+ "The name of the database to consume within the DocumentDB cluster.",
687
+ })
688
+ .check(
689
+ Schema.isMinLength(1).annotate({
690
+ expected: "a value with a length of at least 1",
691
+ }),
692
+ )
693
+ .check(
694
+ Schema.isMaxCodePoints(63).annotate({
695
+ expected: "a string with at most 63 code points",
696
+ }),
697
+ ),
698
+ ),
699
+ CollectionName: Schema.optionalKey(
700
+ Schema.String.annotate({
701
+ description:
702
+ "The name of the collection to consume within the database. If you do not specify a collection, Lambda consumes all collections.",
703
+ })
704
+ .check(
705
+ Schema.isMinLength(1).annotate({
706
+ expected: "a value with a length of at least 1",
707
+ }),
708
+ )
709
+ .check(
710
+ Schema.isMaxCodePoints(57).annotate({
711
+ expected: "a string with at most 57 code points",
712
+ }),
713
+ ),
714
+ ),
715
+ FullDocument: Schema.optionalKey(
716
+ Schema.Literals(["UpdateLookup", "Default"]).annotate({
717
+ description:
718
+ "Determines what DocumentDB sends to your event stream during document update operations. If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy of the entire document. Otherwise, DocumentDB sends only a partial document that contains the changes.",
719
+ }),
720
+ ),
721
+ }).annotate({
722
+ description: "Specific configuration settings for a DocumentDB event source.",
723
+ identifier: "DocumentDBEventSourceConfig",
724
+ });
725
+
726
+ interface ProvisionedPollerConfig {
727
+ readonly MinimumPollers?: number;
728
+ readonly MaximumPollers?: number;
729
+ readonly PollerGroupName?: string;
730
+ }
731
+
732
+ const ProvisionedPollerConfig = Schema.Struct({
733
+ MinimumPollers: Schema.optionalKey(
734
+ Schema.Number.annotate({
735
+ description:
736
+ "The minimum number of event pollers this event source can scale down to. For Amazon SQS events source mappings, default is 2, and minimum 2 required. For Amazon MSK and self-managed Apache Kafka event source mappings, default is 1.",
737
+ })
738
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
739
+ .check(
740
+ Schema.isGreaterThanOrEqualTo(1).annotate({
741
+ expected: "a value greater than or equal to 1",
742
+ }),
743
+ )
744
+ .check(
745
+ Schema.isLessThanOrEqualTo(200).annotate({
746
+ expected: "a value less than or equal to 200",
747
+ }),
748
+ ),
749
+ ),
750
+ MaximumPollers: Schema.optionalKey(
751
+ Schema.Number.annotate({
752
+ description:
753
+ "The maximum number of event pollers this event source can scale up to. For Amazon SQS events source mappings, default is 200, and minimum value allowed is 2. For Amazon MSK and self-managed Apache Kafka event source mappings, default is 200, and minimum value allowed is 1.",
754
+ })
755
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
756
+ .check(
757
+ Schema.isGreaterThanOrEqualTo(1).annotate({
758
+ expected: "a value greater than or equal to 1",
759
+ }),
760
+ )
761
+ .check(
762
+ Schema.isLessThanOrEqualTo(2000).annotate({
763
+ expected: "a value less than or equal to 2000",
764
+ }),
765
+ ),
766
+ ),
767
+ PollerGroupName: Schema.optionalKey(
768
+ Schema.String.annotate({ description: "" })
769
+ .check(
770
+ Schema.isMinCodePoints(0).annotate({
771
+ expected: "a string with at least 0 code points",
772
+ }),
773
+ )
774
+ .check(
775
+ Schema.isMaxCodePoints(128).annotate({
776
+ expected: "a string with at most 128 code points",
777
+ }),
778
+ ),
779
+ ),
780
+ }).annotate({
781
+ description:
782
+ "The [provisioned mode](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode) configuration for the event source. Use Provisioned Mode to customize the minimum and maximum number of event pollers for your event source.",
783
+ identifier: "ProvisionedPollerConfig",
784
+ });
785
+
786
+ interface MetricsConfig {
787
+ readonly Metrics?: globalThis.ReadonlyArray<
788
+ "EventCount" | "ErrorCount" | "KafkaMetrics"
789
+ >;
790
+ }
791
+
792
+ const MetricsConfig = Schema.Struct({
793
+ Metrics: Schema.optionalKey(
794
+ Schema.Array(Schema.Literals(["EventCount", "ErrorCount", "KafkaMetrics"]))
795
+ .annotate({
796
+ description:
797
+ "The metrics you want your event source mapping to produce. Include ``EventCount`` to receive event source mapping metrics related to the number of events processed by your event source mapping. For more information about these metrics, see [Event source mapping metrics](https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics).",
798
+ })
799
+ .check(
800
+ Schema.isMinLength(0).annotate({
801
+ expected: "a value with a length of at least 0",
802
+ }),
803
+ )
804
+ .check(
805
+ Schema.isMaxLength(3).annotate({
806
+ expected: "a value with a length of at most 3",
807
+ }),
808
+ )
809
+ .check(
810
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
811
+ ),
812
+ ),
813
+ }).annotate({
814
+ description:
815
+ "The metrics configuration for your event source. Use this configuration object to define which metrics you want your event source mapping to produce.",
816
+ identifier: "MetricsConfig",
817
+ });
818
+
819
+ interface LoggingConfig {
820
+ readonly SystemLogLevel?: "DEBUG" | "INFO" | "WARN";
821
+ }
822
+
823
+ const LoggingConfig = Schema.Struct({
824
+ SystemLogLevel: Schema.optionalKey(
825
+ Schema.Literals(["DEBUG", "INFO", "WARN"]).annotate({
826
+ description:
827
+ "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.",
828
+ }),
829
+ ),
830
+ }).annotate({
831
+ description: "The function's Amazon CloudWatch Logs configuration settings.",
832
+ identifier: "LoggingConfig",
833
+ });
834
+
835
+ interface OnFailure_1 {
836
+ readonly Destination?: string;
837
+ }
838
+
839
+ const OnFailure_1 = Schema.Struct({
840
+ Destination: Schema.optionalKey(
841
+ Schema.String.annotate({
842
+ description:
843
+ "The Amazon Resource Name (ARN) of the destination resource.\n To retain records of unsuccessful [asynchronous invocations](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations), you can configure an Amazon SNS topic, Amazon SQS queue, Amazon S3 bucket, Lambda function, or Amazon EventBridge event bus as the destination.\n Amazon SNS destinations have a message size limit of 256 KB. If the combined size of the function request and response payload exceeds the limit, Lambda will drop the payload when sending ``OnFailure`` event to the destination. For details on this behavior, refer to [Retaining records of asynchronous invocations](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html).\n To retain records of failed invocations from [Kinesis](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html), [DynamoDB](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html), [self-managed Kafka](https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination) or [Amazon MSK](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination), you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the destination.",
844
+ })
845
+ .check(
846
+ Schema.isMinCodePoints(12).annotate({
847
+ expected: "a string with at least 12 code points",
848
+ }),
849
+ )
850
+ .check(
851
+ Schema.isMaxCodePoints(1024).annotate({
852
+ expected: "a string with at most 1024 code points",
853
+ }),
854
+ )
855
+ .check(
856
+ Schema.isPattern(
857
+ new globalThis.RegExp(
858
+ "^$|kafka:\\/\\/([^.]([a-zA-Z0-9\\-_.]{0,248}))|arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)",
859
+ "u",
860
+ ),
861
+ ).annotate({
862
+ expected:
863
+ "a string matching the RegExp ^$|kafka:\\/\\/([^.]([a-zA-Z0-9\\-_.]{0,248}))|arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)",
864
+ }),
865
+ ),
866
+ ),
867
+ }).annotate({
868
+ description:
869
+ "A destination for events that failed processing. For more information, see [Adding a destination](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-async-destinations).",
870
+ identifier: "OnFailure_1",
871
+ });
872
+
873
+ interface DestinationConfig_1 {
874
+ readonly OnFailure?: OnFailure_1;
875
+ }
876
+
877
+ const DestinationConfig_1 = Schema.Struct({
878
+ OnFailure: Schema.optionalKey(OnFailure_1),
879
+ }).annotate({
880
+ description:
881
+ "A configuration object that specifies the destination of an event after Lambda processes it. For more information, see [Adding a destination](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-async-destinations).",
882
+ identifier: "DestinationConfig_1",
883
+ });
884
+
885
+ export interface AWSEventSourceMappingProps {
886
+ readonly BatchSize?: number;
887
+ readonly BisectBatchOnFunctionError?: boolean;
888
+ readonly DestinationConfig?: DestinationConfig;
889
+ readonly Enabled?: boolean;
890
+ readonly EventSourceArn?:
891
+ | ResourceEntity<{
892
+ readonly provider: "aws";
893
+ readonly service: "sqs";
894
+ readonly resource: "queue";
895
+ }>
896
+ | ResourceEntity<{
897
+ readonly provider: "aws";
898
+ readonly service: "dynamodb";
899
+ readonly resource: "table";
900
+ }>
901
+ | ResourceEntity<{
902
+ readonly provider: "aws";
903
+ readonly service: "kinesis";
904
+ readonly resource: "stream";
905
+ }>
906
+ | ResourceEntity<{
907
+ readonly provider: "aws";
908
+ readonly service: "dynamodb";
909
+ readonly resource: "globaltable";
910
+ }>
911
+ | ResourceEntity<{
912
+ readonly provider: "aws";
913
+ readonly service: "msk";
914
+ readonly resource: "cluster";
915
+ }>
916
+ | string;
917
+ readonly FilterCriteria?: FilterCriteria;
918
+ readonly KmsKeyArn?: string;
919
+ readonly FunctionName:
920
+ | ResourceEntity<{
921
+ readonly provider: "aws";
922
+ readonly service: "lambda";
923
+ readonly resource: "version";
924
+ }>
925
+ | ResourceEntity<{
926
+ readonly provider: "aws";
927
+ readonly service: "lambda";
928
+ readonly resource: "alias";
929
+ }>
930
+ | string;
931
+ readonly MaximumBatchingWindowInSeconds?: number;
932
+ readonly MaximumRecordAgeInSeconds?: number;
933
+ readonly MaximumRetryAttempts?: number;
934
+ readonly ParallelizationFactor?: number;
935
+ readonly StartingPosition?: string;
936
+ readonly StartingPositionTimestamp?: number;
937
+ readonly Tags?: ResourceInputItems;
938
+ readonly Topics?: ResourceInputItems_1;
939
+ readonly Queues?: ResourceInputItems_2;
940
+ readonly SourceAccessConfigurations?: ResourceInputItems_3;
941
+ readonly TumblingWindowInSeconds?: number;
942
+ readonly FunctionResponseTypes?: ResourceInputItems_4;
943
+ readonly SelfManagedEventSource?: SelfManagedEventSource;
944
+ readonly AmazonManagedKafkaEventSourceConfig?: AmazonManagedKafkaEventSourceConfig;
945
+ readonly SelfManagedKafkaEventSourceConfig?: SelfManagedKafkaEventSourceConfig;
946
+ readonly ScalingConfig?: ScalingConfig;
947
+ readonly DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig;
948
+ readonly ProvisionedPollerConfig?: ProvisionedPollerConfig;
949
+ readonly MetricsConfig?: MetricsConfig;
950
+ readonly LoggingConfig?: LoggingConfig;
951
+ }
952
+
953
+ export const AWSEventSourceMappingResourceSchema =
954
+ ResourceSchemaAnnotationSchema.make({
955
+ provider: "aws",
956
+ service: "lambda",
957
+ resource: "eventsourcemapping",
958
+ operation: "create",
959
+ stateSecretOutputKeys: [],
960
+ replacement: {
961
+ order: "createBeforeDestroy",
962
+ properties: [
963
+ ["EventSourceArn"],
964
+ ["StartingPosition"],
965
+ ["StartingPositionTimestamp"],
966
+ ["SelfManagedEventSource"],
967
+ ],
968
+ },
969
+ primaryIdentifier: ["/properties/Id"],
970
+ });
971
+
972
+ export const AWSEventSourceMappingPropsSchema = annotateResourceSchema(
973
+ Schema.Struct({
974
+ BatchSize: Schema.optionalKey(
975
+ Schema.Number.annotate({
976
+ description:
977
+ "The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).\n + *Amazon Kinesis* – Default 100. Max 10,000.\n + *Amazon DynamoDB Streams* – Default 100. Max 10,000.\n + *Amazon Simple Queue Service* – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.\n + *Amazon Managed Streaming for Apache Kafka* – Default 100. Max 10,000.\n + *Self-managed Apache Kafka* – Default 100. Max 10,000.\n + *Amazon MQ (ActiveMQ and RabbitMQ)* – Default 100. Max 10,000.\n + *DocumentDB* – Default 100. Max 10,000.",
978
+ })
979
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
980
+ .check(
981
+ Schema.isGreaterThanOrEqualTo(1).annotate({
982
+ expected: "a value greater than or equal to 1",
983
+ }),
984
+ )
985
+ .check(
986
+ Schema.isLessThanOrEqualTo(10000).annotate({
987
+ expected: "a value less than or equal to 10000",
988
+ }),
989
+ ),
990
+ ),
991
+ BisectBatchOnFunctionError: Schema.optionalKey(
992
+ Schema.Boolean.annotate({
993
+ description:
994
+ "(Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry. The default value is false.\n When using ``BisectBatchOnFunctionError``, check the ``BatchSize`` parameter in the ``OnFailure`` destination message's metadata. The ``BatchSize`` could be greater than 1 since LAM consolidates failed messages metadata when writing to the ``OnFailure`` destination.",
995
+ }),
996
+ ),
997
+ DestinationConfig: Schema.optionalKey(DestinationConfig),
998
+ Enabled: Schema.optionalKey(
999
+ Schema.Boolean.annotate({
1000
+ description:
1001
+ "When true, the event source mapping is active. When false, Lambda pauses polling and invocation.\n Default: True",
1002
+ }),
1003
+ ),
1004
+ EventSourceArn: Schema.optionalKey(
1005
+ Schema.Union([
1006
+ Schema.Union([
1007
+ ResourceReferenceSchema(
1008
+ Schema.Struct({
1009
+ provider: Schema.Literal("aws"),
1010
+ service: Schema.Literal("sqs"),
1011
+ resource: Schema.Literal("queue"),
1012
+ }),
1013
+ {
1014
+ value: null,
1015
+ outputs: [
1016
+ {
1017
+ source: ["Arn"],
1018
+ target: [],
1019
+ },
1020
+ ],
1021
+ },
1022
+ ).annotate({ expected: "ResourceEntity" }),
1023
+ ResourceReferenceSchema(
1024
+ Schema.Struct({
1025
+ provider: Schema.Literal("aws"),
1026
+ service: Schema.Literal("dynamodb"),
1027
+ resource: Schema.Literal("table"),
1028
+ }),
1029
+ {
1030
+ value: null,
1031
+ outputs: [
1032
+ {
1033
+ source: ["StreamArn"],
1034
+ target: [],
1035
+ },
1036
+ ],
1037
+ },
1038
+ ).annotate({ expected: "ResourceEntity" }),
1039
+ ResourceReferenceSchema(
1040
+ Schema.Struct({
1041
+ provider: Schema.Literal("aws"),
1042
+ service: Schema.Literal("kinesis"),
1043
+ resource: Schema.Literal("stream"),
1044
+ }),
1045
+ {
1046
+ value: null,
1047
+ outputs: [
1048
+ {
1049
+ source: ["Arn"],
1050
+ target: [],
1051
+ },
1052
+ ],
1053
+ },
1054
+ ).annotate({ expected: "ResourceEntity" }),
1055
+ ResourceReferenceSchema(
1056
+ Schema.Struct({
1057
+ provider: Schema.Literal("aws"),
1058
+ service: Schema.Literal("dynamodb"),
1059
+ resource: Schema.Literal("globaltable"),
1060
+ }),
1061
+ {
1062
+ value: null,
1063
+ outputs: [
1064
+ {
1065
+ source: ["StreamArn"],
1066
+ target: [],
1067
+ },
1068
+ ],
1069
+ },
1070
+ ).annotate({ expected: "ResourceEntity" }),
1071
+ ResourceReferenceSchema(
1072
+ Schema.Struct({
1073
+ provider: Schema.Literal("aws"),
1074
+ service: Schema.Literal("msk"),
1075
+ resource: Schema.Literal("cluster"),
1076
+ }),
1077
+ {
1078
+ value: null,
1079
+ outputs: [
1080
+ {
1081
+ source: ["Arn"],
1082
+ target: [],
1083
+ },
1084
+ ],
1085
+ },
1086
+ ).annotate({ expected: "ResourceEntity" }),
1087
+ ]),
1088
+ Schema.String.annotate({
1089
+ description:
1090
+ "The Amazon Resource Name (ARN) of the event source.\n + *Amazon Kinesis* – The ARN of the data stream or a stream consumer.\n + *Amazon DynamoDB Streams* – The ARN of the stream.\n + *Amazon Simple Queue Service* – The ARN of the queue.\n + *Amazon Managed Streaming for Apache Kafka* – The ARN of the cluster or the ARN of the VPC connection (for [cross-account event source mappings](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc)).\n + *Amazon MQ* – The ARN of the broker.\n + *Amazon DocumentDB* – The ARN of the DocumentDB change stream.",
1091
+ })
1092
+ .check(
1093
+ Schema.isMinCodePoints(12).annotate({
1094
+ expected: "a string with at least 12 code points",
1095
+ }),
1096
+ )
1097
+ .check(
1098
+ Schema.isMaxCodePoints(1024).annotate({
1099
+ expected: "a string with at most 1024 code points",
1100
+ }),
1101
+ )
1102
+ .check(
1103
+ Schema.isPattern(
1104
+ new globalThis.RegExp(
1105
+ "arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)",
1106
+ "u",
1107
+ ),
1108
+ ).annotate({
1109
+ expected:
1110
+ "a string matching the RegExp arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)",
1111
+ }),
1112
+ ),
1113
+ ]),
1114
+ ),
1115
+ FilterCriteria: Schema.optionalKey(FilterCriteria),
1116
+ KmsKeyArn: Schema.optionalKey(
1117
+ Schema.String.annotate({
1118
+ description:
1119
+ "The ARN of the KMSlong (KMS) customer managed key that Lambda uses to encrypt your function's [filter criteria](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics).",
1120
+ })
1121
+ .check(
1122
+ Schema.isMinCodePoints(12).annotate({
1123
+ expected: "a string with at least 12 code points",
1124
+ }),
1125
+ )
1126
+ .check(
1127
+ Schema.isMaxCodePoints(2048).annotate({
1128
+ expected: "a string with at most 2048 code points",
1129
+ }),
1130
+ )
1131
+ .check(
1132
+ Schema.isPattern(
1133
+ new globalThis.RegExp(
1134
+ "(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()",
1135
+ "u",
1136
+ ),
1137
+ ).annotate({
1138
+ expected:
1139
+ "a string matching the RegExp (arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()",
1140
+ }),
1141
+ ),
1142
+ ),
1143
+ FunctionName: Schema.Union([
1144
+ Schema.Union([
1145
+ ResourceReferenceSchema(
1146
+ Schema.Struct({
1147
+ provider: Schema.Literal("aws"),
1148
+ service: Schema.Literal("lambda"),
1149
+ resource: Schema.Literal("version"),
1150
+ }),
1151
+ {
1152
+ value: null,
1153
+ outputs: [
1154
+ {
1155
+ source: ["FunctionArn"],
1156
+ target: [],
1157
+ },
1158
+ ],
1159
+ },
1160
+ ).annotate({ expected: "ResourceEntity" }),
1161
+ ResourceReferenceSchema(
1162
+ Schema.Struct({
1163
+ provider: Schema.Literal("aws"),
1164
+ service: Schema.Literal("lambda"),
1165
+ resource: Schema.Literal("alias"),
1166
+ }),
1167
+ {
1168
+ value: null,
1169
+ outputs: [
1170
+ {
1171
+ source: ["Id"],
1172
+ target: [],
1173
+ },
1174
+ ],
1175
+ },
1176
+ ).annotate({ expected: "ResourceEntity" }),
1177
+ ]),
1178
+ Schema.String.annotate({
1179
+ description:
1180
+ "The name or ARN of the Lambda function.\n **Name formats**\n + *Function name* – ``MyFunction``.\n + *Function ARN* – ``arn:aws:lambda:us-west-2:123456789012:function:MyFunction``.\n + *Version or Alias ARN* – ``arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD``.\n + *Partial ARN* – ``123456789012:function:MyFunction``.\n \n The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.",
1181
+ })
1182
+ .check(
1183
+ Schema.isMinLength(1).annotate({
1184
+ expected: "a value with a length of at least 1",
1185
+ }),
1186
+ )
1187
+ .check(
1188
+ Schema.isMaxCodePoints(140).annotate({
1189
+ expected: "a string with at most 140 code points",
1190
+ }),
1191
+ )
1192
+ .check(
1193
+ Schema.isPattern(
1194
+ new globalThis.RegExp(
1195
+ "(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?",
1196
+ "u",
1197
+ ),
1198
+ ).annotate({
1199
+ expected:
1200
+ "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}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?",
1201
+ }),
1202
+ ),
1203
+ ]),
1204
+ MaximumBatchingWindowInSeconds: Schema.optionalKey(
1205
+ Schema.Number.annotate({
1206
+ description:
1207
+ "The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.\n *Default (, , event sources)*: 0\n *Default (, Kafka, , event sources)*: 500 ms\n *Related setting:* For SQS event sources, when you set ``BatchSize`` to a value greater than 10, you must set ``MaximumBatchingWindowInSeconds`` to at least 1.",
1208
+ })
1209
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1210
+ .check(
1211
+ Schema.isGreaterThanOrEqualTo(0).annotate({
1212
+ expected: "a value greater than or equal to 0",
1213
+ }),
1214
+ )
1215
+ .check(
1216
+ Schema.isLessThanOrEqualTo(300).annotate({
1217
+ expected: "a value less than or equal to 300",
1218
+ }),
1219
+ ),
1220
+ ),
1221
+ MaximumRecordAgeInSeconds: Schema.optionalKey(
1222
+ Schema.Number.annotate({
1223
+ description:
1224
+ "(Kinesis and DynamoDB Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.\n The minimum valid value for maximum record age is 60s. Although values less than 60 and greater than -1 fall within the parameter's absolute range, they are not allowed",
1225
+ })
1226
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1227
+ .check(
1228
+ Schema.isGreaterThanOrEqualTo(-1).annotate({
1229
+ expected: "a value greater than or equal to -1",
1230
+ }),
1231
+ )
1232
+ .check(
1233
+ Schema.isLessThanOrEqualTo(604800).annotate({
1234
+ expected: "a value less than or equal to 604800",
1235
+ }),
1236
+ ),
1237
+ ),
1238
+ MaximumRetryAttempts: Schema.optionalKey(
1239
+ Schema.Number.annotate({
1240
+ description:
1241
+ "(Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.",
1242
+ })
1243
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1244
+ .check(
1245
+ Schema.isGreaterThanOrEqualTo(-1).annotate({
1246
+ expected: "a value greater than or equal to -1",
1247
+ }),
1248
+ )
1249
+ .check(
1250
+ Schema.isLessThanOrEqualTo(10000).annotate({
1251
+ expected: "a value less than or equal to 10000",
1252
+ }),
1253
+ ),
1254
+ ),
1255
+ ParallelizationFactor: Schema.optionalKey(
1256
+ Schema.Number.annotate({
1257
+ description:
1258
+ "(Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard. The default value is 1.",
1259
+ })
1260
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1261
+ .check(
1262
+ Schema.isGreaterThanOrEqualTo(1).annotate({
1263
+ expected: "a value greater than or equal to 1",
1264
+ }),
1265
+ )
1266
+ .check(
1267
+ Schema.isLessThanOrEqualTo(10).annotate({
1268
+ expected: "a value less than or equal to 10",
1269
+ }),
1270
+ ),
1271
+ ),
1272
+ StartingPosition: Schema.optionalKey(
1273
+ Schema.String.annotate({
1274
+ description:
1275
+ "The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB.\n + *LATEST* - Read only new records.\n + *TRIM_HORIZON* - Process all available records.\n + *AT_TIMESTAMP* - Specify a time from which to start reading records.",
1276
+ })
1277
+ .check(
1278
+ Schema.isMinCodePoints(6).annotate({
1279
+ expected: "a string with at least 6 code points",
1280
+ }),
1281
+ )
1282
+ .check(
1283
+ Schema.isMaxCodePoints(12).annotate({
1284
+ expected: "a string with at most 12 code points",
1285
+ }),
1286
+ )
1287
+ .check(
1288
+ Schema.isPattern(
1289
+ new globalThis.RegExp("(LATEST|TRIM_HORIZON|AT_TIMESTAMP)+", "u"),
1290
+ ).annotate({
1291
+ expected:
1292
+ "a string matching the RegExp (LATEST|TRIM_HORIZON|AT_TIMESTAMP)+",
1293
+ }),
1294
+ ),
1295
+ ),
1296
+ StartingPositionTimestamp: Schema.optionalKey(
1297
+ Schema.Number.annotate({
1298
+ description:
1299
+ "With ``StartingPosition`` set to ``AT_TIMESTAMP``, the time from which to start reading, in Unix time seconds. ``StartingPositionTimestamp`` cannot be in the future.",
1300
+ }).check(Schema.isFinite().annotate({ expected: "a finite number" })),
1301
+ ),
1302
+ Tags: Schema.optionalKey(ResourceInputItems),
1303
+ Topics: Schema.optionalKey(ResourceInputItems_1),
1304
+ Queues: Schema.optionalKey(ResourceInputItems_2),
1305
+ SourceAccessConfigurations: Schema.optionalKey(ResourceInputItems_3),
1306
+ TumblingWindowInSeconds: Schema.optionalKey(
1307
+ Schema.Number.annotate({
1308
+ description:
1309
+ "(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.",
1310
+ })
1311
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1312
+ .check(
1313
+ Schema.isGreaterThanOrEqualTo(0).annotate({
1314
+ expected: "a value greater than or equal to 0",
1315
+ }),
1316
+ )
1317
+ .check(
1318
+ Schema.isLessThanOrEqualTo(900).annotate({
1319
+ expected: "a value less than or equal to 900",
1320
+ }),
1321
+ ),
1322
+ ),
1323
+ FunctionResponseTypes: Schema.optionalKey(ResourceInputItems_4),
1324
+ SelfManagedEventSource: Schema.optionalKey(SelfManagedEventSource),
1325
+ AmazonManagedKafkaEventSourceConfig: Schema.optionalKey(
1326
+ AmazonManagedKafkaEventSourceConfig,
1327
+ ),
1328
+ SelfManagedKafkaEventSourceConfig: Schema.optionalKey(
1329
+ SelfManagedKafkaEventSourceConfig,
1330
+ ),
1331
+ ScalingConfig: Schema.optionalKey(ScalingConfig),
1332
+ DocumentDBEventSourceConfig: Schema.optionalKey(
1333
+ DocumentDBEventSourceConfig,
1334
+ ),
1335
+ ProvisionedPollerConfig: Schema.optionalKey(ProvisionedPollerConfig),
1336
+ MetricsConfig: Schema.optionalKey(MetricsConfig),
1337
+ LoggingConfig: Schema.optionalKey(LoggingConfig),
1338
+ }),
1339
+ AWSEventSourceMappingResourceSchema,
1340
+ );
1341
+
1342
+ export interface AWSEventSourceMappingOutputs {
1343
+ readonly Id?: string;
1344
+ readonly EventSourceMappingArn?: string;
1345
+ }
1346
+
1347
+ export const AWSEventSourceMappingOutputsSchema = Schema.Struct({
1348
+ Id: Schema.optionalKey(
1349
+ Schema.String.annotate({ description: "" })
1350
+ .check(
1351
+ Schema.isMinCodePoints(36).annotate({
1352
+ expected: "a string with at least 36 code points",
1353
+ }),
1354
+ )
1355
+ .check(
1356
+ Schema.isMaxCodePoints(36).annotate({
1357
+ expected: "a string with at most 36 code points",
1358
+ }),
1359
+ )
1360
+ .check(
1361
+ Schema.isPattern(
1362
+ new globalThis.RegExp(
1363
+ "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}",
1364
+ "u",
1365
+ ),
1366
+ ).annotate({
1367
+ expected:
1368
+ "a string matching the RegExp [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}",
1369
+ }),
1370
+ ),
1371
+ ),
1372
+ EventSourceMappingArn: Schema.optionalKey(
1373
+ Schema.String.annotate({ description: "" })
1374
+ .check(
1375
+ Schema.isMinCodePoints(85).annotate({
1376
+ expected: "a string with at least 85 code points",
1377
+ }),
1378
+ )
1379
+ .check(
1380
+ Schema.isMaxCodePoints(120).annotate({
1381
+ expected: "a string with at most 120 code points",
1382
+ }),
1383
+ )
1384
+ .check(
1385
+ Schema.isPattern(
1386
+ new globalThis.RegExp(
1387
+ "arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:event-source-mapping:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}",
1388
+ "u",
1389
+ ),
1390
+ ).annotate({
1391
+ expected:
1392
+ "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}:event-source-mapping:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}",
1393
+ }),
1394
+ ),
1395
+ ),
1396
+ });
1397
+
1398
+ export interface AWSEventSourceMappingRequest {
1399
+ readonly BatchSize?: number;
1400
+ readonly BisectBatchOnFunctionError?: boolean;
1401
+ readonly DestinationConfig?: DestinationConfig_1;
1402
+ readonly Enabled?: boolean;
1403
+ readonly EventSourceArn?: string;
1404
+ readonly FilterCriteria?: FilterCriteria;
1405
+ readonly KmsKeyArn?: string;
1406
+ readonly FunctionName: string;
1407
+ readonly MaximumBatchingWindowInSeconds?: number;
1408
+ readonly MaximumRecordAgeInSeconds?: number;
1409
+ readonly MaximumRetryAttempts?: number;
1410
+ readonly ParallelizationFactor?: number;
1411
+ readonly StartingPosition?: string;
1412
+ readonly StartingPositionTimestamp?: number;
1413
+ readonly Tags?: ResourceInputItems;
1414
+ readonly Topics?: ResourceInputItems_1;
1415
+ readonly Queues?: ResourceInputItems_2;
1416
+ readonly SourceAccessConfigurations?: ResourceInputItems_3;
1417
+ readonly TumblingWindowInSeconds?: number;
1418
+ readonly FunctionResponseTypes?: ResourceInputItems_4;
1419
+ readonly SelfManagedEventSource?: SelfManagedEventSource;
1420
+ readonly AmazonManagedKafkaEventSourceConfig?: AmazonManagedKafkaEventSourceConfig;
1421
+ readonly SelfManagedKafkaEventSourceConfig?: SelfManagedKafkaEventSourceConfig;
1422
+ readonly ScalingConfig?: ScalingConfig;
1423
+ readonly DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig;
1424
+ readonly ProvisionedPollerConfig?: ProvisionedPollerConfig;
1425
+ readonly MetricsConfig?: MetricsConfig;
1426
+ readonly LoggingConfig?: LoggingConfig;
1427
+ }
1428
+
1429
+ export const AWSEventSourceMappingRequestSchema = Schema.Struct({
1430
+ BatchSize: Schema.optionalKey(
1431
+ Schema.Number.annotate({
1432
+ description:
1433
+ "The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).\n + *Amazon Kinesis* – Default 100. Max 10,000.\n + *Amazon DynamoDB Streams* – Default 100. Max 10,000.\n + *Amazon Simple Queue Service* – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.\n + *Amazon Managed Streaming for Apache Kafka* – Default 100. Max 10,000.\n + *Self-managed Apache Kafka* – Default 100. Max 10,000.\n + *Amazon MQ (ActiveMQ and RabbitMQ)* – Default 100. Max 10,000.\n + *DocumentDB* – Default 100. Max 10,000.",
1434
+ })
1435
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1436
+ .check(
1437
+ Schema.isGreaterThanOrEqualTo(1).annotate({
1438
+ expected: "a value greater than or equal to 1",
1439
+ }),
1440
+ )
1441
+ .check(
1442
+ Schema.isLessThanOrEqualTo(10000).annotate({
1443
+ expected: "a value less than or equal to 10000",
1444
+ }),
1445
+ ),
1446
+ ),
1447
+ BisectBatchOnFunctionError: Schema.optionalKey(
1448
+ Schema.Boolean.annotate({
1449
+ description:
1450
+ "(Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry. The default value is false.\n When using ``BisectBatchOnFunctionError``, check the ``BatchSize`` parameter in the ``OnFailure`` destination message's metadata. The ``BatchSize`` could be greater than 1 since LAM consolidates failed messages metadata when writing to the ``OnFailure`` destination.",
1451
+ }),
1452
+ ),
1453
+ DestinationConfig: Schema.optionalKey(DestinationConfig_1),
1454
+ Enabled: Schema.optionalKey(
1455
+ Schema.Boolean.annotate({
1456
+ description:
1457
+ "When true, the event source mapping is active. When false, Lambda pauses polling and invocation.\n Default: True",
1458
+ }),
1459
+ ),
1460
+ EventSourceArn: Schema.optionalKey(
1461
+ Schema.String.annotate({
1462
+ description:
1463
+ "The Amazon Resource Name (ARN) of the event source.\n + *Amazon Kinesis* – The ARN of the data stream or a stream consumer.\n + *Amazon DynamoDB Streams* – The ARN of the stream.\n + *Amazon Simple Queue Service* – The ARN of the queue.\n + *Amazon Managed Streaming for Apache Kafka* – The ARN of the cluster or the ARN of the VPC connection (for [cross-account event source mappings](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc)).\n + *Amazon MQ* – The ARN of the broker.\n + *Amazon DocumentDB* – The ARN of the DocumentDB change stream.",
1464
+ })
1465
+ .check(
1466
+ Schema.isMinCodePoints(12).annotate({
1467
+ expected: "a string with at least 12 code points",
1468
+ }),
1469
+ )
1470
+ .check(
1471
+ Schema.isMaxCodePoints(1024).annotate({
1472
+ expected: "a string with at most 1024 code points",
1473
+ }),
1474
+ )
1475
+ .check(
1476
+ Schema.isPattern(
1477
+ new globalThis.RegExp(
1478
+ "arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)",
1479
+ "u",
1480
+ ),
1481
+ ).annotate({
1482
+ expected:
1483
+ "a string matching the RegExp arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)",
1484
+ }),
1485
+ ),
1486
+ ),
1487
+ FilterCriteria: Schema.optionalKey(FilterCriteria),
1488
+ KmsKeyArn: Schema.optionalKey(
1489
+ Schema.String.annotate({
1490
+ description:
1491
+ "The ARN of the KMSlong (KMS) customer managed key that Lambda uses to encrypt your function's [filter criteria](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics).",
1492
+ })
1493
+ .check(
1494
+ Schema.isMinCodePoints(12).annotate({
1495
+ expected: "a string with at least 12 code points",
1496
+ }),
1497
+ )
1498
+ .check(
1499
+ Schema.isMaxCodePoints(2048).annotate({
1500
+ expected: "a string with at most 2048 code points",
1501
+ }),
1502
+ )
1503
+ .check(
1504
+ Schema.isPattern(
1505
+ new globalThis.RegExp(
1506
+ "(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()",
1507
+ "u",
1508
+ ),
1509
+ ).annotate({
1510
+ expected:
1511
+ "a string matching the RegExp (arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()",
1512
+ }),
1513
+ ),
1514
+ ),
1515
+ FunctionName: Schema.String.annotate({
1516
+ description:
1517
+ "The name or ARN of the Lambda function.\n **Name formats**\n + *Function name* – ``MyFunction``.\n + *Function ARN* – ``arn:aws:lambda:us-west-2:123456789012:function:MyFunction``.\n + *Version or Alias ARN* – ``arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD``.\n + *Partial ARN* – ``123456789012:function:MyFunction``.\n \n The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.",
1518
+ })
1519
+ .check(
1520
+ Schema.isMinLength(1).annotate({
1521
+ expected: "a value with a length of at least 1",
1522
+ }),
1523
+ )
1524
+ .check(
1525
+ Schema.isMaxCodePoints(140).annotate({
1526
+ expected: "a string with at most 140 code points",
1527
+ }),
1528
+ )
1529
+ .check(
1530
+ Schema.isPattern(
1531
+ new globalThis.RegExp(
1532
+ "(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?",
1533
+ "u",
1534
+ ),
1535
+ ).annotate({
1536
+ expected:
1537
+ "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}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?",
1538
+ }),
1539
+ ),
1540
+ MaximumBatchingWindowInSeconds: Schema.optionalKey(
1541
+ Schema.Number.annotate({
1542
+ description:
1543
+ "The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.\n *Default (, , event sources)*: 0\n *Default (, Kafka, , event sources)*: 500 ms\n *Related setting:* For SQS event sources, when you set ``BatchSize`` to a value greater than 10, you must set ``MaximumBatchingWindowInSeconds`` to at least 1.",
1544
+ })
1545
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1546
+ .check(
1547
+ Schema.isGreaterThanOrEqualTo(0).annotate({
1548
+ expected: "a value greater than or equal to 0",
1549
+ }),
1550
+ )
1551
+ .check(
1552
+ Schema.isLessThanOrEqualTo(300).annotate({
1553
+ expected: "a value less than or equal to 300",
1554
+ }),
1555
+ ),
1556
+ ),
1557
+ MaximumRecordAgeInSeconds: Schema.optionalKey(
1558
+ Schema.Number.annotate({
1559
+ description:
1560
+ "(Kinesis and DynamoDB Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.\n The minimum valid value for maximum record age is 60s. Although values less than 60 and greater than -1 fall within the parameter's absolute range, they are not allowed",
1561
+ })
1562
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1563
+ .check(
1564
+ Schema.isGreaterThanOrEqualTo(-1).annotate({
1565
+ expected: "a value greater than or equal to -1",
1566
+ }),
1567
+ )
1568
+ .check(
1569
+ Schema.isLessThanOrEqualTo(604800).annotate({
1570
+ expected: "a value less than or equal to 604800",
1571
+ }),
1572
+ ),
1573
+ ),
1574
+ MaximumRetryAttempts: Schema.optionalKey(
1575
+ Schema.Number.annotate({
1576
+ description:
1577
+ "(Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.",
1578
+ })
1579
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1580
+ .check(
1581
+ Schema.isGreaterThanOrEqualTo(-1).annotate({
1582
+ expected: "a value greater than or equal to -1",
1583
+ }),
1584
+ )
1585
+ .check(
1586
+ Schema.isLessThanOrEqualTo(10000).annotate({
1587
+ expected: "a value less than or equal to 10000",
1588
+ }),
1589
+ ),
1590
+ ),
1591
+ ParallelizationFactor: Schema.optionalKey(
1592
+ Schema.Number.annotate({
1593
+ description:
1594
+ "(Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard. The default value is 1.",
1595
+ })
1596
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1597
+ .check(
1598
+ Schema.isGreaterThanOrEqualTo(1).annotate({
1599
+ expected: "a value greater than or equal to 1",
1600
+ }),
1601
+ )
1602
+ .check(
1603
+ Schema.isLessThanOrEqualTo(10).annotate({
1604
+ expected: "a value less than or equal to 10",
1605
+ }),
1606
+ ),
1607
+ ),
1608
+ StartingPosition: Schema.optionalKey(
1609
+ Schema.String.annotate({
1610
+ description:
1611
+ "The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB.\n + *LATEST* - Read only new records.\n + *TRIM_HORIZON* - Process all available records.\n + *AT_TIMESTAMP* - Specify a time from which to start reading records.",
1612
+ })
1613
+ .check(
1614
+ Schema.isMinCodePoints(6).annotate({
1615
+ expected: "a string with at least 6 code points",
1616
+ }),
1617
+ )
1618
+ .check(
1619
+ Schema.isMaxCodePoints(12).annotate({
1620
+ expected: "a string with at most 12 code points",
1621
+ }),
1622
+ )
1623
+ .check(
1624
+ Schema.isPattern(
1625
+ new globalThis.RegExp("(LATEST|TRIM_HORIZON|AT_TIMESTAMP)+", "u"),
1626
+ ).annotate({
1627
+ expected:
1628
+ "a string matching the RegExp (LATEST|TRIM_HORIZON|AT_TIMESTAMP)+",
1629
+ }),
1630
+ ),
1631
+ ),
1632
+ StartingPositionTimestamp: Schema.optionalKey(
1633
+ Schema.Number.annotate({
1634
+ description:
1635
+ "With ``StartingPosition`` set to ``AT_TIMESTAMP``, the time from which to start reading, in Unix time seconds. ``StartingPositionTimestamp`` cannot be in the future.",
1636
+ }).check(Schema.isFinite().annotate({ expected: "a finite number" })),
1637
+ ),
1638
+ Tags: Schema.optionalKey(ResourceInputItems),
1639
+ Topics: Schema.optionalKey(ResourceInputItems_1),
1640
+ Queues: Schema.optionalKey(ResourceInputItems_2),
1641
+ SourceAccessConfigurations: Schema.optionalKey(ResourceInputItems_3),
1642
+ TumblingWindowInSeconds: Schema.optionalKey(
1643
+ Schema.Number.annotate({
1644
+ description:
1645
+ "(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.",
1646
+ })
1647
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1648
+ .check(
1649
+ Schema.isGreaterThanOrEqualTo(0).annotate({
1650
+ expected: "a value greater than or equal to 0",
1651
+ }),
1652
+ )
1653
+ .check(
1654
+ Schema.isLessThanOrEqualTo(900).annotate({
1655
+ expected: "a value less than or equal to 900",
1656
+ }),
1657
+ ),
1658
+ ),
1659
+ FunctionResponseTypes: Schema.optionalKey(ResourceInputItems_4),
1660
+ SelfManagedEventSource: Schema.optionalKey(SelfManagedEventSource),
1661
+ AmazonManagedKafkaEventSourceConfig: Schema.optionalKey(
1662
+ AmazonManagedKafkaEventSourceConfig,
1663
+ ),
1664
+ SelfManagedKafkaEventSourceConfig: Schema.optionalKey(
1665
+ SelfManagedKafkaEventSourceConfig,
1666
+ ),
1667
+ ScalingConfig: Schema.optionalKey(ScalingConfig),
1668
+ DocumentDBEventSourceConfig: Schema.optionalKey(DocumentDBEventSourceConfig),
1669
+ ProvisionedPollerConfig: Schema.optionalKey(ProvisionedPollerConfig),
1670
+ MetricsConfig: Schema.optionalKey(MetricsConfig),
1671
+ LoggingConfig: Schema.optionalKey(LoggingConfig),
1672
+ });
1673
+
1674
+ /**
1675
+ * The AWSEventSourceMappingRelationshipIssues array lists inputs that can use several outputs
1676
+ * from one source type. Each input retains its provider value until a reviewed
1677
+ * mapping chooses an output.
1678
+ */
1679
+ export const AWSEventSourceMappingRelationshipIssues = [
1680
+ {
1681
+ propertyPath: ["FunctionName"],
1682
+ sourceType: "AWS::Lambda::Function",
1683
+ sourceProperties: [["FunctionName"], ["Arn"]],
1684
+ message:
1685
+ "Choose one of the permitted source properties before using a resource reference",
1686
+ },
1687
+ ];
1688
+
1689
+ export const AWSEventSourceMappingResourceTypeSchema = Schema.Struct({
1690
+ provider: Schema.Literal("aws"),
1691
+ service: Schema.Literal("lambda"),
1692
+ resource: Schema.Literal("eventsourcemapping"),
1693
+ });
1694
+
1695
+ /**
1696
+ * The AWSEventSourceMappingResource class retains its owning stack across declarations.
1697
+ * Applied output properties are ordinary values maintained by the lifecycle.
1698
+ */
1699
+ export class AWSEventSourceMappingResource<
1700
+ Props = AWSEventSourceMappingProps,
1701
+ > extends ResourceEntity<{
1702
+ readonly provider: "aws";
1703
+ readonly service: "lambda";
1704
+ readonly resource: "eventsourcemapping";
1705
+ }> {
1706
+ constructor(
1707
+ key: ResourceKey,
1708
+ readonly props: Props,
1709
+ private readonly binding?: ResourceOutputBinding,
1710
+ ) {
1711
+ super({
1712
+ key,
1713
+ resourceType: {
1714
+ provider: "aws",
1715
+ service: "lambda",
1716
+ resource: "eventsourcemapping",
1717
+ },
1718
+ });
1719
+ }
1720
+
1721
+ /**
1722
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1723
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1724
+ */
1725
+ get Id(): Required<AWSEventSourceMappingOutputs>["Id"] {
1726
+ const value: Required<AWSEventSourceMappingOutputs>["Id"] =
1727
+ ResourceOutputBinding.value(
1728
+ this.binding,
1729
+ this.key,
1730
+ "Id",
1731
+ Schema.requiredKey(AWSEventSourceMappingOutputsSchema.fields.Id),
1732
+ );
1733
+ return value;
1734
+ }
1735
+
1736
+ /**
1737
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1738
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1739
+ */
1740
+ get EventSourceMappingArn(): Required<AWSEventSourceMappingOutputs>["EventSourceMappingArn"] {
1741
+ const value: Required<AWSEventSourceMappingOutputs>["EventSourceMappingArn"] =
1742
+ ResourceOutputBinding.value(
1743
+ this.binding,
1744
+ this.key,
1745
+ "EventSourceMappingArn",
1746
+ Schema.requiredKey(
1747
+ AWSEventSourceMappingOutputsSchema.fields.EventSourceMappingArn,
1748
+ ),
1749
+ );
1750
+ return value;
1751
+ }
1752
+ }
1753
+
1754
+ /**
1755
+ * Callers must validate properties before constructing the declaration.
1756
+ * Compatible resources can depend on it before apply supplies provider values.
1757
+ * Reading applied outputs requires a binding to the owning stack.
1758
+ */
1759
+ export function createAWSEventSourceMappingDeclaration<Props>(
1760
+ key: ResourceKey,
1761
+ props: Props,
1762
+ binding?: ResourceOutputBinding,
1763
+ ): AWSEventSourceMappingResource<Props> {
1764
+ const resource: AWSEventSourceMappingResource<Props> =
1765
+ new AWSEventSourceMappingResource<Props>(key, props, binding);
1766
+
1767
+ return resource;
1768
+ }
1769
+
1770
+ /**
1771
+ * The AWSEventSourceMapping resource factory registers a validated declaration in the
1772
+ * stack graph. Its outputs become available after apply saves the resource.
1773
+ */
1774
+ export const AWSEventSourceMapping = Effect.fn("AWSEventSourceMapping")(
1775
+ function* (input: { logicalId: string; props: AWSEventSourceMappingProps }) {
1776
+ const graph = yield* ResourceGraphBuilder;
1777
+
1778
+ const key: ResourceKey = { logicalId: input.logicalId };
1779
+
1780
+ const declaration = yield* graph.resource(key);
1781
+
1782
+ const props = yield* Schema.decodeEffect(AWSEventSourceMappingPropsSchema)(
1783
+ input.props,
1784
+ );
1785
+
1786
+ yield* declaration.registerEntity(AWSEventSourceMappingResourceTypeSchema, {
1787
+ propsSchema: AWSEventSourceMappingPropsSchema,
1788
+ requestSchema: AWSEventSourceMappingRequestSchema,
1789
+ outputsSchema: AWSEventSourceMappingOutputsSchema,
1790
+ props,
1791
+ });
1792
+
1793
+ const resource: AWSEventSourceMappingResource =
1794
+ createAWSEventSourceMappingDeclaration(key, props, declaration.outputs);
1795
+
1796
+ return resource;
1797
+ },
1798
+ );