nomoss 0.0.1 → 0.0.4

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 (710) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/LICENSE +1 -1
  3. package/README.md +52 -26
  4. package/ROADMAP.md +19 -0
  5. package/docs/README.md +19 -0
  6. package/docs/application/aws-resource-coverage.md +26 -0
  7. package/docs/application/aws-resource-lifecycle-management.md +47 -0
  8. package/docs/application/cli-workflow.md +111 -0
  9. package/docs/application/engine-design.md +43 -0
  10. package/docs/application/generation-architecture.md +285 -0
  11. package/docs/application/resource-command-policy-stage.md +37 -0
  12. package/docs/application/resource-graph.md +45 -0
  13. package/docs/application/resource-lifecycle-tracker.md +43 -0
  14. package/docs/application/resource-mapping.md +112 -0
  15. package/docs/application/resource-operations.md +41 -0
  16. package/docs/application/resource-outputs.md +66 -0
  17. package/docs/application/tracing.md +27 -0
  18. package/docs/development/code-documentation.md +54 -0
  19. package/docs/development/commit-message-spec.md +9 -0
  20. package/docs/development/effect-native-development.md +89 -0
  21. package/docs/development/linting.md +39 -0
  22. package/docs/development/resource-graph-testing-approach.md +9 -0
  23. package/docs/development/review-code.md +73 -0
  24. package/docs/development/review-docs.md +27 -0
  25. package/docs/development/review-remediation-spec.md +40 -0
  26. package/docs/development/spec-writing.md +35 -0
  27. package/docs/development/testing.md +125 -0
  28. package/docs/development/unslop.md +55 -0
  29. package/docs/operations/observability-sop.md +32 -0
  30. package/docs/operations/releasing.md +7 -0
  31. package/examples/README.md +11 -0
  32. package/examples/cli.ts +15 -0
  33. package/examples/commands.ts +32 -0
  34. package/examples/http-echo/index.ts +54 -0
  35. package/examples/queue/application.ts +37 -0
  36. package/examples/state-machine/application.ts +57 -0
  37. package/examples/stripe-billing/application.ts +56 -0
  38. package/media/nomoss-http-demo.gif +0 -0
  39. package/package.json +63 -24
  40. package/providers/aws/README.md +21 -0
  41. package/providers/aws/awsEnvironment.ts +114 -0
  42. package/providers/aws/generated/managementRegistry.ts +136 -0
  43. package/providers/aws/generated/resources/apigatewayv2/api.ts +528 -0
  44. package/providers/aws/generated/resources/apigatewayv2/integration.ts +559 -0
  45. package/providers/aws/generated/resources/apigatewayv2/route.ts +421 -0
  46. package/providers/aws/generated/resources/apigatewayv2/stage.ts +366 -0
  47. package/providers/aws/generated/resources/iam/accesskey.ts +184 -0
  48. package/providers/aws/generated/resources/iam/group.ts +294 -0
  49. package/providers/aws/generated/resources/iam/grouppolicy.ts +244 -0
  50. package/providers/aws/generated/resources/iam/instanceprofile.ts +249 -0
  51. package/providers/aws/generated/resources/iam/managedpolicy.ts +518 -0
  52. package/providers/aws/generated/resources/iam/oidcprovider.ts +314 -0
  53. package/providers/aws/generated/resources/iam/policy.ts +264 -0
  54. package/providers/aws/generated/resources/iam/role.ts +444 -0
  55. package/providers/aws/generated/resources/iam/rolepolicy.ts +242 -0
  56. package/providers/aws/generated/resources/iam/samlprovider.ts +463 -0
  57. package/providers/aws/generated/resources/iam/servercertificate.ts +465 -0
  58. package/providers/aws/generated/resources/iam/servicelinkedrole.ts +187 -0
  59. package/providers/aws/generated/resources/iam/user.ts +435 -0
  60. package/providers/aws/generated/resources/iam/userpolicy.ts +242 -0
  61. package/providers/aws/generated/resources/iam/usertogroupaddition.ts +212 -0
  62. package/providers/aws/generated/resources/iam/virtualmfadevice.ts +298 -0
  63. package/providers/aws/generated/resources/kms/key.ts +552 -0
  64. package/providers/aws/generated/resources/lambda/function.ts +1924 -0
  65. package/providers/aws/generated/resources/lambda/permission.ts +913 -0
  66. package/providers/aws/generated/resources/s3/bucket.ts +3325 -0
  67. package/providers/aws/generated/resources/sns/topic.ts +536 -0
  68. package/providers/aws/generated/resources/sqs/queue.ts +476 -0
  69. package/providers/aws/generated/resources/stepfunctions/statemachine.ts +720 -0
  70. package/providers/aws/management/mappings/iam/group.ts +63 -0
  71. package/providers/aws/management/mappings/iam/iamIdentity.ts +41 -0
  72. package/providers/aws/management/mappings/iam/iamLifecycleSettings.ts +8 -0
  73. package/providers/aws/management/mappings/iam/inlinePolicies.ts +159 -0
  74. package/providers/aws/management/mappings/iam/instanceProfile.ts +77 -0
  75. package/providers/aws/management/mappings/iam/oidcProvider.ts +94 -0
  76. package/providers/aws/management/mappings/iam/role.ts +74 -0
  77. package/providers/aws/management/mappings/iam/samlProvider.ts +98 -0
  78. package/providers/aws/management/mappings/iam/serverCertificate.ts +72 -0
  79. package/providers/aws/management/mappings/iam/user.ts +61 -0
  80. package/providers/aws/management/mappings/iam/userToGroupAddition.ts +75 -0
  81. package/providers/aws/management/operations/iam/accessKey.ts +206 -0
  82. package/providers/aws/management/operations/iam/managedPolicy.ts +491 -0
  83. package/providers/aws/management/operations/iam/policy.ts +476 -0
  84. package/providers/aws/management/operations/iam/serviceLinkedRole.ts +172 -0
  85. package/providers/aws/management/operations/iam/virtualMfaDevice.ts +253 -0
  86. package/providers/aws/management/resourceAssociationConfiguration.ts +112 -0
  87. package/providers/aws/management/resourceAssociationRegistration.ts +349 -0
  88. package/providers/aws/management/resourceAssociations.ts +168 -0
  89. package/providers/aws/management/resourceConfiguration.ts +119 -0
  90. package/providers/aws/management/resourceLifecycleRegistration.ts +540 -0
  91. package/providers/aws/management/resourceManagementModule.ts +31 -0
  92. package/providers/aws/management/resourceManagementRegistry.ts +62 -0
  93. package/providers/aws/management/resourceMapping.ts +84 -0
  94. package/providers/aws/management/resourceOperation.ts +134 -0
  95. package/providers/aws/management/resourceTagOperations.ts +108 -0
  96. package/providers/aws/management/resourceTiming.ts +4 -0
  97. package/providers/aws/runtime.ts +52 -0
  98. package/src/cli.ts +31 -13
  99. package/src/cliCommand.ts +207 -170
  100. package/src/cliDiagnostics.ts +104 -0
  101. package/src/core/asset.ts +350 -0
  102. package/src/core/index.ts +61 -17
  103. package/src/core/{lifecycle.ts → resource/lifecycle.ts} +33 -3
  104. package/src/core/resource/model.ts +1168 -0
  105. package/src/core/resource/resourceCommandPolicy.ts +88 -0
  106. package/src/core/resource/resourceGraphBuilder.ts +319 -0
  107. package/src/core/resource/resourceGraphStore.ts +373 -0
  108. package/src/core/resource/resourceLifecycle.ts +644 -0
  109. package/src/core/resource/resourceOutputBinding.ts +113 -0
  110. package/src/core/resource/resourceOutputResolver.ts +365 -0
  111. package/src/core/resource/resourceRequest.ts +186 -0
  112. package/src/core/resource/resourceStabilization.ts +120 -0
  113. package/src/core/resource/resourceVersions.ts +102 -0
  114. package/src/core/runtime/stackRuntimeLayer.ts +16 -0
  115. package/src/core/runtime/tracing.ts +43 -0
  116. package/src/core/stack/planner.ts +663 -0
  117. package/src/core/stack/resourceDisplay.ts +213 -0
  118. package/src/core/stack/resourceStackDefinition.ts +32 -0
  119. package/src/core/stack/resourceStackLifecycle.ts +1229 -0
  120. package/src/core/stack/resourceStackOperations.ts +642 -0
  121. package/src/core/stack/resourceStackProgress.ts +169 -0
  122. package/src/core/stack/stackWorkflowRenderer.ts +756 -0
  123. package/src/core/state/localState.ts +18 -0
  124. package/src/core/state/resourceState.ts +77 -0
  125. package/src/core/{stateSecretService.ts → state/stateSecretService.ts} +183 -193
  126. package/src/core/state/stateStore.ts +600 -0
  127. package/src/providers/file/jsonFile.ts +94 -0
  128. package/src/providers/file/model.ts +29 -0
  129. package/src/providers/file/resourcePolicy.ts +271 -0
  130. package/src/providers/index.ts +0 -2
  131. package/src/providers/providerRuntimeLayer.ts +27 -113
  132. package/src/providers/resourceCommandPolicyLayer.ts +151 -200
  133. package/src/providers/stripe/client/generated/LICENSE +21 -0
  134. package/src/providers/stripe/client/generated/accounts.ts +14360 -0
  135. package/src/providers/stripe/client/generated/applePayDomains.ts +313 -0
  136. package/src/providers/stripe/client/generated/appsInstalls.ts +495 -0
  137. package/src/providers/stripe/client/generated/billingAlerts.ts +515 -0
  138. package/src/providers/stripe/client/generated/billingCreditGrants.ts +631 -0
  139. package/src/providers/stripe/client/generated/billingFeedbackOptions.ts +396 -0
  140. package/src/providers/stripe/client/generated/billingMeters.ts +688 -0
  141. package/src/providers/stripe/client/generated/billingPortalConfigurations.ts +1279 -0
  142. package/src/providers/stripe/client/generated/catalog.ts +18881 -0
  143. package/src/providers/stripe/client/generated/charges.ts +2637 -0
  144. package/src/providers/stripe/client/generated/checkoutSessions.ts +5692 -0
  145. package/src/providers/stripe/client/generated/climateOrders.ts +472 -0
  146. package/src/providers/stripe/client/generated/commerceProductCatalogImports.ts +268 -0
  147. package/src/providers/stripe/client/generated/configuration.ts +3 -0
  148. package/src/providers/stripe/client/generated/coreAccountTokens.ts +2492 -0
  149. package/src/providers/stripe/client/generated/coreEventDestinations.ts +684 -0
  150. package/src/providers/stripe/client/generated/coreVaultGbBankAccounts.ts +380 -0
  151. package/src/providers/stripe/client/generated/coreVaultUsBankAccounts.ts +648 -0
  152. package/src/providers/stripe/client/generated/coupons.ts +562 -0
  153. package/src/providers/stripe/client/generated/creditNotes.ts +1430 -0
  154. package/src/providers/stripe/client/generated/customers.ts +10712 -0
  155. package/src/providers/stripe/client/generated/entitlementsFeatures.ts +378 -0
  156. package/src/providers/stripe/client/generated/fileLinks.ts +383 -0
  157. package/src/providers/stripe/client/generated/financialConnectionsSessions.ts +297 -0
  158. package/src/providers/stripe/client/generated/forwardingRequests.ts +366 -0
  159. package/src/providers/stripe/client/generated/identityVerificationSessions.ts +780 -0
  160. package/src/providers/stripe/client/generated/index.ts +330 -0
  161. package/src/providers/stripe/client/generated/invoiceitems.ts +924 -0
  162. package/src/providers/stripe/client/generated/invoices.ts +8412 -0
  163. package/src/providers/stripe/client/generated/issuingCardholders.ts +4650 -0
  164. package/src/providers/stripe/client/generated/issuingCards.ts +4622 -0
  165. package/src/providers/stripe/client/generated/issuingDisputes.ts +1474 -0
  166. package/src/providers/stripe/client/generated/issuingPersonalizationDesigns.ts +634 -0
  167. package/src/providers/stripe/client/generated/models/accounts.ts +2808 -0
  168. package/src/providers/stripe/client/generated/models/billing.ts +2527 -0
  169. package/src/providers/stripe/client/generated/models/catalog.ts +3411 -0
  170. package/src/providers/stripe/client/generated/models/charges.ts +3616 -0
  171. package/src/providers/stripe/client/generated/models/common.ts +25024 -0
  172. package/src/providers/stripe/client/generated/models/customers.ts +1559 -0
  173. package/src/providers/stripe/client/generated/models/invoices.ts +3881 -0
  174. package/src/providers/stripe/client/generated/models/issuing.ts +7083 -0
  175. package/src/providers/stripe/client/generated/models/issuingCardholders.ts +2495 -0
  176. package/src/providers/stripe/client/generated/models/paymentIntents.ts +4148 -0
  177. package/src/providers/stripe/client/generated/models/paymentMethodDetails.ts +8128 -0
  178. package/src/providers/stripe/client/generated/models/paymentMethodOptions.ts +1684 -0
  179. package/src/providers/stripe/client/generated/models/paymentMethods.ts +3751 -0
  180. package/src/providers/stripe/client/generated/models/paymentSources.ts +1443 -0
  181. package/src/providers/stripe/client/generated/models/payments.ts +8558 -0
  182. package/src/providers/stripe/client/generated/models/setupIntents.ts +3344 -0
  183. package/src/providers/stripe/client/generated/models/sources.ts +1898 -0
  184. package/src/providers/stripe/client/generated/models/subscriptions.ts +3836 -0
  185. package/src/providers/stripe/client/generated/models/transfers.ts +1197 -0
  186. package/src/providers/stripe/client/generated/models/treasury.ts +3852 -0
  187. package/src/providers/stripe/client/generated/models/v2Accounts.ts +13649 -0
  188. package/src/providers/stripe/client/generated/models/v2Errors.ts +13829 -0
  189. package/src/providers/stripe/client/generated/moneyManagementFinancialAddresses.ts +317 -0
  190. package/src/providers/stripe/client/generated/moneyManagementInboundTransfers.ts +380 -0
  191. package/src/providers/stripe/client/generated/moneyManagementOutboundPayments.ts +828 -0
  192. package/src/providers/stripe/client/generated/moneyManagementOutboundSetupIntents.ts +596 -0
  193. package/src/providers/stripe/client/generated/moneyManagementPayoutIntents.ts +1149 -0
  194. package/src/providers/stripe/client/generated/moneyManagementRecipientVerifications.ts +226 -0
  195. package/src/providers/stripe/client/generated/paymentIntents.ts +17752 -0
  196. package/src/providers/stripe/client/generated/paymentLinks.ts +4199 -0
  197. package/src/providers/stripe/client/generated/paymentMethodConfigurations.ts +4835 -0
  198. package/src/providers/stripe/client/generated/paymentMethodDomains.ts +429 -0
  199. package/src/providers/stripe/client/generated/paymentMethods.ts +2372 -0
  200. package/src/providers/stripe/client/generated/payouts.ts +589 -0
  201. package/src/providers/stripe/client/generated/plans.ts +712 -0
  202. package/src/providers/stripe/client/generated/prices.ts +1045 -0
  203. package/src/providers/stripe/client/generated/productCatalogTrialOffers.ts +447 -0
  204. package/src/providers/stripe/client/generated/products.ts +1370 -0
  205. package/src/providers/stripe/client/generated/promotionCodes.ts +564 -0
  206. package/src/providers/stripe/client/generated/quotes.ts +1874 -0
  207. package/src/providers/stripe/client/generated/radarValueListItems.ts +367 -0
  208. package/src/providers/stripe/client/generated/radarValueLists.ts +496 -0
  209. package/src/providers/stripe/client/generated/refunds.ts +493 -0
  210. package/src/providers/stripe/client/generated/reportingReportRuns.ts +1615 -0
  211. package/src/providers/stripe/client/generated/resourceBindings/Account.ts +200 -0
  212. package/src/providers/stripe/client/generated/resourceBindings/AccountToken.ts +175 -0
  213. package/src/providers/stripe/client/generated/resourceBindings/ApplePayDomain.ts +173 -0
  214. package/src/providers/stripe/client/generated/resourceBindings/AppsInstall.ts +201 -0
  215. package/src/providers/stripe/client/generated/resourceBindings/BankAccount.ts +228 -0
  216. package/src/providers/stripe/client/generated/resourceBindings/BillingAlert.ts +174 -0
  217. package/src/providers/stripe/client/generated/resourceBindings/BillingConfigurationExport.ts +77 -0
  218. package/src/providers/stripe/client/generated/resourceBindings/BillingCreditGrant.ts +201 -0
  219. package/src/providers/stripe/client/generated/resourceBindings/BillingFeedbackOption.ts +197 -0
  220. package/src/providers/stripe/client/generated/resourceBindings/BillingMeter.ts +201 -0
  221. package/src/providers/stripe/client/generated/resourceBindings/BillingPortalConfiguration.ts +214 -0
  222. package/src/providers/stripe/client/generated/resourceBindings/Card.ts +231 -0
  223. package/src/providers/stripe/client/generated/resourceBindings/Charge.ts +202 -0
  224. package/src/providers/stripe/client/generated/resourceBindings/CheckoutSession.ts +199 -0
  225. package/src/providers/stripe/client/generated/resourceBindings/ClimateOrder.ts +201 -0
  226. package/src/providers/stripe/client/generated/resourceBindings/Coupon.ts +202 -0
  227. package/src/providers/stripe/client/generated/resourceBindings/CreditNote.ts +200 -0
  228. package/src/providers/stripe/client/generated/resourceBindings/Customer.ts +200 -0
  229. package/src/providers/stripe/client/generated/resourceBindings/EntitlementsFeature.ts +201 -0
  230. package/src/providers/stripe/client/generated/resourceBindings/EventDestination.ts +197 -0
  231. package/src/providers/stripe/client/generated/resourceBindings/FileLink.ts +200 -0
  232. package/src/providers/stripe/client/generated/resourceBindings/FinancialAddress.ts +177 -0
  233. package/src/providers/stripe/client/generated/resourceBindings/FinancialConnectionsSession.ts +180 -0
  234. package/src/providers/stripe/client/generated/resourceBindings/ForwardingRequest.ts +173 -0
  235. package/src/providers/stripe/client/generated/resourceBindings/GBBankAccount.ts +171 -0
  236. package/src/providers/stripe/client/generated/resourceBindings/IdentityVerificationSession.ts +214 -0
  237. package/src/providers/stripe/client/generated/resourceBindings/InboundTransfer.ts +177 -0
  238. package/src/providers/stripe/client/generated/resourceBindings/Invoice.ts +200 -0
  239. package/src/providers/stripe/client/generated/resourceBindings/Invoiceitem.ts +200 -0
  240. package/src/providers/stripe/client/generated/resourceBindings/IssuingCard.ts +201 -0
  241. package/src/providers/stripe/client/generated/resourceBindings/IssuingCardholder.ts +198 -0
  242. package/src/providers/stripe/client/generated/resourceBindings/IssuingDispute.ts +199 -0
  243. package/src/providers/stripe/client/generated/resourceBindings/IssuingPersonalizationDesign.ts +214 -0
  244. package/src/providers/stripe/client/generated/resourceBindings/OutboundPayment.ts +177 -0
  245. package/src/providers/stripe/client/generated/resourceBindings/OutboundSetupIntent.ts +206 -0
  246. package/src/providers/stripe/client/generated/resourceBindings/PaymentIntent.ts +200 -0
  247. package/src/providers/stripe/client/generated/resourceBindings/PaymentLink.ts +200 -0
  248. package/src/providers/stripe/client/generated/resourceBindings/PaymentMethod.ts +195 -0
  249. package/src/providers/stripe/client/generated/resourceBindings/PaymentMethodConfiguration.ts +214 -0
  250. package/src/providers/stripe/client/generated/resourceBindings/PaymentMethodDomain.ts +208 -0
  251. package/src/providers/stripe/client/generated/resourceBindings/Payout.ts +202 -0
  252. package/src/providers/stripe/client/generated/resourceBindings/PayoutIntent.ts +206 -0
  253. package/src/providers/stripe/client/generated/resourceBindings/Plan.ts +199 -0
  254. package/src/providers/stripe/client/generated/resourceBindings/Price.ts +199 -0
  255. package/src/providers/stripe/client/generated/resourceBindings/Product.ts +196 -0
  256. package/src/providers/stripe/client/generated/resourceBindings/ProductCatalogImport.ts +177 -0
  257. package/src/providers/stripe/client/generated/resourceBindings/ProductCatalogTrialOffer.ts +201 -0
  258. package/src/providers/stripe/client/generated/resourceBindings/PromotionCode.ts +195 -0
  259. package/src/providers/stripe/client/generated/resourceBindings/Quote.ts +199 -0
  260. package/src/providers/stripe/client/generated/resourceBindings/RadarValueList.ts +195 -0
  261. package/src/providers/stripe/client/generated/resourceBindings/RadarValueListItem.ts +175 -0
  262. package/src/providers/stripe/client/generated/resourceBindings/RecipientVerification.ts +177 -0
  263. package/src/providers/stripe/client/generated/resourceBindings/Refund.ts +202 -0
  264. package/src/providers/stripe/client/generated/resourceBindings/ReportingReportRun.ts +173 -0
  265. package/src/providers/stripe/client/generated/resourceBindings/SetupIntent.ts +201 -0
  266. package/src/providers/stripe/client/generated/resourceBindings/ShippingRate.ts +205 -0
  267. package/src/providers/stripe/client/generated/resourceBindings/Source.ts +202 -0
  268. package/src/providers/stripe/client/generated/resourceBindings/Subscription.ts +207 -0
  269. package/src/providers/stripe/client/generated/resourceBindings/SubscriptionItem.ts +199 -0
  270. package/src/providers/stripe/client/generated/resourceBindings/SubscriptionSchedule.ts +203 -0
  271. package/src/providers/stripe/client/generated/resourceBindings/TaxId.ts +172 -0
  272. package/src/providers/stripe/client/generated/resourceBindings/TaxLocation.ts +174 -0
  273. package/src/providers/stripe/client/generated/resourceBindings/TaxRate.ts +200 -0
  274. package/src/providers/stripe/client/generated/resourceBindings/TaxRegistration.ts +200 -0
  275. package/src/providers/stripe/client/generated/resourceBindings/TerminalConfiguration.ts +208 -0
  276. package/src/providers/stripe/client/generated/resourceBindings/TerminalLocation.ts +195 -0
  277. package/src/providers/stripe/client/generated/resourceBindings/TerminalReader.ts +199 -0
  278. package/src/providers/stripe/client/generated/resourceBindings/TestHelpersTestClock.ts +208 -0
  279. package/src/providers/stripe/client/generated/resourceBindings/ThreeDSecureAuthentication.ts +180 -0
  280. package/src/providers/stripe/client/generated/resourceBindings/Token.ts +172 -0
  281. package/src/providers/stripe/client/generated/resourceBindings/Topup.ts +199 -0
  282. package/src/providers/stripe/client/generated/resourceBindings/Transfer.ts +200 -0
  283. package/src/providers/stripe/client/generated/resourceBindings/TreasuryCreditReversal.ts +175 -0
  284. package/src/providers/stripe/client/generated/resourceBindings/TreasuryDebitReversal.ts +176 -0
  285. package/src/providers/stripe/client/generated/resourceBindings/TreasuryFinancialAccount.ts +209 -0
  286. package/src/providers/stripe/client/generated/resourceBindings/TreasuryInboundTransfer.ts +172 -0
  287. package/src/providers/stripe/client/generated/resourceBindings/TreasuryOutboundPayment.ts +172 -0
  288. package/src/providers/stripe/client/generated/resourceBindings/TreasuryOutboundTransfer.ts +175 -0
  289. package/src/providers/stripe/client/generated/resourceBindings/USBankAccount.ts +195 -0
  290. package/src/providers/stripe/client/generated/resourceBindings/V1Account.ts +200 -0
  291. package/src/providers/stripe/client/generated/resourceBindings/WebhookEndpoint.ts +233 -0
  292. package/src/providers/stripe/client/generated/resourceCatalog.ts +10160 -0
  293. package/src/providers/stripe/client/generated/resourceCommands.ts +2132 -0
  294. package/src/providers/stripe/client/generated/resourceDeclarations.ts +3738 -0
  295. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsEntitySchema.ts +5062 -0
  296. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsSchema.ts +5072 -0
  297. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsEntitySchema.ts +2450 -0
  298. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsSchema.ts +2461 -0
  299. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsEntitySchema.ts +30 -0
  300. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsSchema.ts +41 -0
  301. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsEntitySchema.ts +70 -0
  302. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsSchema.ts +81 -0
  303. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsEntitySchema.ts +189 -0
  304. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsSchema.ts +177 -0
  305. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsEntitySchema.ts +80 -0
  306. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsSchema.ts +105 -0
  307. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportDocumentSchema.ts +38 -0
  308. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsEntitySchema.ts +226 -0
  309. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsSchema.ts +65 -0
  310. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsEntitySchema.ts +204 -0
  311. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsSchema.ts +194 -0
  312. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsEntitySchema.ts +38 -0
  313. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsSchema.ts +48 -0
  314. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsEntitySchema.ts +117 -0
  315. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsSchema.ts +128 -0
  316. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsEntitySchema.ts +282 -0
  317. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsSchema.ts +516 -0
  318. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsEntitySchema.ts +189 -0
  319. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsSchema.ts +176 -0
  320. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsEntitySchema.ts +533 -0
  321. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsSchema.ts +501 -0
  322. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsEntitySchema.ts +4486 -0
  323. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsSchema.ts +4601 -0
  324. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsEntitySchema.ts +93 -0
  325. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsSchema.ts +104 -0
  326. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsEntitySchema.ts +158 -0
  327. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsSchema.ts +168 -0
  328. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsEntitySchema.ts +326 -0
  329. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsSchema.ts +300 -0
  330. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsEntitySchema.ts +833 -0
  331. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsSchema.ts +818 -0
  332. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsEntitySchema.ts +54 -0
  333. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsSchema.ts +64 -0
  334. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsEntitySchema.ts +167 -0
  335. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsSchema.ts +178 -0
  336. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsEntitySchema.ts +74 -0
  337. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsSchema.ts +66 -0
  338. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsEntitySchema.ts +62 -0
  339. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsSchema.ts +73 -0
  340. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsEntitySchema.ts +192 -0
  341. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsSchema.ts +198 -0
  342. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsEntitySchema.ts +126 -0
  343. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsSchema.ts +137 -0
  344. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsEntitySchema.ts +52 -0
  345. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsSchema.ts +63 -0
  346. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsEntitySchema.ts +203 -0
  347. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsSchema.ts +214 -0
  348. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsEntitySchema.ts +104 -0
  349. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsSchema.ts +115 -0
  350. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsEntitySchema.ts +1775 -0
  351. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsSchema.ts +1632 -0
  352. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsEntitySchema.ts +343 -0
  353. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsSchema.ts +311 -0
  354. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsEntitySchema.ts +2230 -0
  355. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsSchema.ts +2204 -0
  356. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsEntitySchema.ts +2152 -0
  357. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsSchema.ts +2191 -0
  358. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsEntitySchema.ts +178 -0
  359. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsSchema.ts +580 -0
  360. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsEntitySchema.ts +179 -0
  361. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsSchema.ts +166 -0
  362. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsEntitySchema.ts +253 -0
  363. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsSchema.ts +264 -0
  364. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsEntitySchema.ts +123 -0
  365. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsSchema.ts +133 -0
  366. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsEntitySchema.ts +5519 -0
  367. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsSchema.ts +5464 -0
  368. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsEntitySchema.ts +1775 -0
  369. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsSchema.ts +1967 -0
  370. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsEntitySchema.ts +2280 -0
  371. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsSchema.ts +2291 -0
  372. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsEntitySchema.ts +45 -0
  373. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsSchema.ts +55 -0
  374. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsEntitySchema.ts +1609 -0
  375. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsSchema.ts +1600 -0
  376. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsEntitySchema.ts +272 -0
  377. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsSchema.ts +283 -0
  378. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsEntitySchema.ts +141 -0
  379. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsSchema.ts +105 -0
  380. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsEntitySchema.ts +225 -0
  381. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsSchema.ts +304 -0
  382. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsEntitySchema.ts +434 -0
  383. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsSchema.ts +427 -0
  384. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsEntitySchema.ts +41 -0
  385. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsSchema.ts +51 -0
  386. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsEntitySchema.ts +129 -0
  387. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsSchema.ts +127 -0
  388. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsEntitySchema.ts +365 -0
  389. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsSchema.ts +375 -0
  390. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsEntitySchema.ts +185 -0
  391. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsSchema.ts +171 -0
  392. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsEntitySchema.ts +700 -0
  393. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsSchema.ts +627 -0
  394. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsEntitySchema.ts +46 -0
  395. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsSchema.ts +57 -0
  396. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsEntitySchema.ts +83 -0
  397. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsSchema.ts +94 -0
  398. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsEntitySchema.ts +35 -0
  399. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsSchema.ts +45 -0
  400. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsEntitySchema.ts +175 -0
  401. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsSchema.ts +130 -0
  402. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsEntitySchema.ts +1363 -0
  403. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsSchema.ts +1374 -0
  404. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives.ts +35 -0
  405. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_1.ts +35 -0
  406. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_10.ts +44 -0
  407. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_100.ts +35 -0
  408. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_101.ts +35 -0
  409. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_102.ts +35 -0
  410. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_103.ts +35 -0
  411. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_104.ts +35 -0
  412. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_105.ts +35 -0
  413. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_106.ts +35 -0
  414. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_107.ts +35 -0
  415. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_108.ts +35 -0
  416. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_11.ts +68 -0
  417. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_12.ts +35 -0
  418. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_13.ts +35 -0
  419. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_14.ts +35 -0
  420. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_15.ts +35 -0
  421. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_16.ts +35 -0
  422. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_17.ts +44 -0
  423. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_18.ts +35 -0
  424. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_19.ts +35 -0
  425. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_2.ts +35 -0
  426. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_20.ts +35 -0
  427. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_21.ts +35 -0
  428. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_22.ts +35 -0
  429. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_23.ts +35 -0
  430. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_24.ts +35 -0
  431. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_25.ts +35 -0
  432. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_26.ts +44 -0
  433. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_27.ts +35 -0
  434. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_28.ts +35 -0
  435. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_29.ts +35 -0
  436. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_3.ts +35 -0
  437. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_30.ts +35 -0
  438. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_31.ts +35 -0
  439. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_32.ts +35 -0
  440. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_33.ts +35 -0
  441. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_34.ts +35 -0
  442. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_35.ts +59 -0
  443. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_36.ts +35 -0
  444. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_37.ts +35 -0
  445. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_38.ts +35 -0
  446. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_39.ts +35 -0
  447. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_4.ts +35 -0
  448. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_40.ts +35 -0
  449. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_41.ts +111 -0
  450. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_42.ts +35 -0
  451. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_43.ts +77 -0
  452. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_44.ts +35 -0
  453. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_45.ts +35 -0
  454. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_46.ts +35 -0
  455. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_47.ts +35 -0
  456. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_48.ts +50 -0
  457. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_49.ts +35 -0
  458. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_5.ts +35 -0
  459. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_50.ts +83 -0
  460. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_51.ts +35 -0
  461. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_52.ts +50 -0
  462. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_53.ts +35 -0
  463. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_54.ts +74 -0
  464. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_55.ts +35 -0
  465. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_56.ts +65 -0
  466. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_57.ts +35 -0
  467. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_58.ts +79 -0
  468. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_59.ts +35 -0
  469. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_6.ts +35 -0
  470. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_60.ts +35 -0
  471. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_61.ts +35 -0
  472. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_62.ts +44 -0
  473. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_63.ts +35 -0
  474. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_64.ts +35 -0
  475. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_65.ts +44 -0
  476. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_66.ts +35 -0
  477. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_67.ts +35 -0
  478. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_68.ts +35 -0
  479. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_69.ts +35 -0
  480. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_7.ts +35 -0
  481. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_70.ts +35 -0
  482. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_71.ts +35 -0
  483. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_72.ts +35 -0
  484. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_73.ts +35 -0
  485. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_74.ts +35 -0
  486. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_75.ts +35 -0
  487. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_76.ts +35 -0
  488. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_77.ts +35 -0
  489. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_78.ts +44 -0
  490. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_79.ts +35 -0
  491. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_8.ts +35 -0
  492. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_80.ts +35 -0
  493. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_81.ts +39 -0
  494. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_82.ts +35 -0
  495. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_83.ts +35 -0
  496. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_84.ts +35 -0
  497. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_85.ts +35 -0
  498. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_86.ts +35 -0
  499. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_87.ts +35 -0
  500. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_88.ts +56 -0
  501. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_89.ts +35 -0
  502. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_9.ts +35 -0
  503. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_90.ts +35 -0
  504. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_91.ts +44 -0
  505. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_92.ts +35 -0
  506. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_93.ts +56 -0
  507. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_94.ts +35 -0
  508. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_95.ts +35 -0
  509. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_96.ts +35 -0
  510. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_97.ts +35 -0
  511. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_98.ts +35 -0
  512. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_99.ts +35 -0
  513. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems.ts +38 -0
  514. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_1.ts +39 -0
  515. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_2.ts +38 -0
  516. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_3.ts +154 -0
  517. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_4.ts +51 -0
  518. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_5.ts +120 -0
  519. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties.ts +32 -0
  520. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_1.ts +37 -0
  521. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_10.ts +125 -0
  522. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_11.ts +34 -0
  523. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_12.ts +34 -0
  524. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_13.ts +34 -0
  525. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_14.ts +34 -0
  526. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_15.ts +32 -0
  527. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_16.ts +37 -0
  528. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_17.ts +34 -0
  529. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_18.ts +130 -0
  530. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_19.ts +34 -0
  531. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_2.ts +39 -0
  532. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_20.ts +89 -0
  533. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_21.ts +34 -0
  534. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_22.ts +30 -0
  535. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_23.ts +34 -0
  536. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_24.ts +34 -0
  537. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_25.ts +34 -0
  538. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_26.ts +34 -0
  539. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_27.ts +97 -0
  540. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_28.ts +34 -0
  541. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_29.ts +34 -0
  542. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_3.ts +37 -0
  543. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_30.ts +34 -0
  544. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_31.ts +97 -0
  545. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_32.ts +34 -0
  546. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_33.ts +34 -0
  547. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_4.ts +37 -0
  548. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_5.ts +53 -0
  549. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_6.ts +42 -0
  550. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_7.ts +63 -0
  551. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_8.ts +94 -0
  552. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_9.ts +34 -0
  553. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsEntitySchema.ts +2961 -0
  554. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsSchema.ts +2914 -0
  555. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsEntitySchema.ts +177 -0
  556. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsSchema.ts +188 -0
  557. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsEntitySchema.ts +556 -0
  558. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsSchema.ts +566 -0
  559. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsEntitySchema.ts +259 -0
  560. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsSchema.ts +262 -0
  561. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsEntitySchema.ts +2128 -0
  562. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsSchema.ts +2048 -0
  563. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsEntitySchema.ts +698 -0
  564. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsSchema.ts +1347 -0
  565. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsEntitySchema.ts +355 -0
  566. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsSchema.ts +354 -0
  567. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsEntitySchema.ts +120 -0
  568. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsSchema.ts +131 -0
  569. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsEntitySchema.ts +166 -0
  570. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsSchema.ts +176 -0
  571. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsEntitySchema.ts +3328 -0
  572. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsSchema.ts +3339 -0
  573. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsEntitySchema.ts +992 -0
  574. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsSchema.ts +916 -0
  575. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsEntitySchema.ts +299 -0
  576. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsSchema.ts +310 -0
  577. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsEntitySchema.ts +89 -0
  578. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsSchema.ts +79 -0
  579. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsEntitySchema.ts +55 -0
  580. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsSchema.ts +65 -0
  581. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsEntitySchema.ts +711 -0
  582. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsSchema.ts +702 -0
  583. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsEntitySchema.ts +2394 -0
  584. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsSchema.ts +2404 -0
  585. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsEntitySchema.ts +148 -0
  586. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsSchema.ts +138 -0
  587. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsEntitySchema.ts +129 -0
  588. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsSchema.ts +97 -0
  589. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsEntitySchema.ts +44 -0
  590. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsSchema.ts +54 -0
  591. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsEntitySchema.ts +44 -0
  592. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsSchema.ts +54 -0
  593. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsEntitySchema.ts +284 -0
  594. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsSchema.ts +293 -0
  595. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsEntitySchema.ts +81 -0
  596. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsSchema.ts +91 -0
  597. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsEntitySchema.ts +348 -0
  598. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsSchema.ts +358 -0
  599. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsEntitySchema.ts +145 -0
  600. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsSchema.ts +155 -0
  601. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsEntitySchema.ts +52 -0
  602. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsSchema.ts +63 -0
  603. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsEntitySchema.ts +3438 -0
  604. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsSchema.ts +3577 -0
  605. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointDeclarationPropsEntitySchema.ts +22 -0
  606. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointDeclarationPropsSchema.ts +24 -0
  607. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointLocalPropsSchema.ts +10 -0
  608. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsEntitySchema.ts +891 -0
  609. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsSchema.ts +904 -0
  610. package/src/providers/stripe/client/generated/resourceOutputs.ts +873 -0
  611. package/src/providers/stripe/client/generated/setupIntents.ts +8854 -0
  612. package/src/providers/stripe/client/generated/shippingRates.ts +558 -0
  613. package/src/providers/stripe/client/generated/sources.ts +1482 -0
  614. package/src/providers/stripe/client/generated/subscriptionItems.ts +848 -0
  615. package/src/providers/stripe/client/generated/subscriptionSchedules.ts +3145 -0
  616. package/src/providers/stripe/client/generated/subscriptions.ts +5057 -0
  617. package/src/providers/stripe/client/generated/taxIds.ts +644 -0
  618. package/src/providers/stripe/client/generated/taxLocations.ts +348 -0
  619. package/src/providers/stripe/client/generated/taxRates.ts +620 -0
  620. package/src/providers/stripe/client/generated/taxRegistrations.ts +3646 -0
  621. package/src/providers/stripe/client/generated/terminalConfigurations.ts +2181 -0
  622. package/src/providers/stripe/client/generated/terminalLocations.ts +926 -0
  623. package/src/providers/stripe/client/generated/terminalReaders.ts +1488 -0
  624. package/src/providers/stripe/client/generated/testHelpersTestClocks.ts +400 -0
  625. package/src/providers/stripe/client/generated/threeDSecureAuthentications.ts +1141 -0
  626. package/src/providers/stripe/client/generated/tokens.ts +2498 -0
  627. package/src/providers/stripe/client/generated/topups.ts +556 -0
  628. package/src/providers/stripe/client/generated/transfers.ts +786 -0
  629. package/src/providers/stripe/client/generated/treasuryCreditReversals.ts +283 -0
  630. package/src/providers/stripe/client/generated/treasuryDebitReversals.ts +286 -0
  631. package/src/providers/stripe/client/generated/treasuryFinancialAccounts.ts +1320 -0
  632. package/src/providers/stripe/client/generated/treasuryInboundTransfers.ts +381 -0
  633. package/src/providers/stripe/client/generated/treasuryOutboundPayments.ts +689 -0
  634. package/src/providers/stripe/client/generated/treasuryOutboundTransfers.ts +453 -0
  635. package/src/providers/stripe/client/generated/v1Accounts.ts +13237 -0
  636. package/src/providers/stripe/client/generated/webhookEndpoints.ts +1817 -0
  637. package/src/providers/stripe/client/stripeClient.ts +212 -0
  638. package/src/providers/stripe/client/stripeClientConfig.ts +22 -0
  639. package/src/providers/stripe/client/stripeClientModel.ts +40 -0
  640. package/src/providers/stripe/index.ts +8 -15
  641. package/src/providers/stripe/management/resourceConfiguration.ts +53 -0
  642. package/src/providers/stripe/management/resourcePolicy.ts +500 -0
  643. package/src/providers/stripe/management/resources.ts +36 -0
  644. package/src/providers/stripe/runtime.ts +74 -0
  645. package/bin/nomoss +0 -13
  646. package/docs/code-documentation.md +0 -36
  647. package/docs/effect-native-development.md +0 -55
  648. package/docs/engine-design.md +0 -93
  649. package/docs/linting.md +0 -88
  650. package/docs/releasing.md +0 -13
  651. package/docs/resource-command-policy-stage.md +0 -71
  652. package/docs/resource-graph-mvp.md +0 -31
  653. package/docs/resource-graph-testing-approach.md +0 -11
  654. package/docs/resource-lifecycle-tracker.md +0 -93
  655. package/docs/testing.md +0 -86
  656. package/examples/upload-events/README.md +0 -41
  657. package/src/cliRuntimeLayer.ts +0 -49
  658. package/src/core/model.ts +0 -229
  659. package/src/core/physicalNameStore.ts +0 -226
  660. package/src/core/planner.ts +0 -645
  661. package/src/core/resourceCommandPolicy.ts +0 -79
  662. package/src/core/resourceGraphBuilder.ts +0 -167
  663. package/src/core/resourceGraphStore.ts +0 -288
  664. package/src/core/resourceOutputResolver.ts +0 -185
  665. package/src/core/resourcePolicy.ts +0 -77
  666. package/src/core/resourceStackDefinition.ts +0 -17
  667. package/src/core/resourceStackLifecycle.ts +0 -456
  668. package/src/core/resourceStackOperations.ts +0 -129
  669. package/src/core/runtimeLayer.ts +0 -73
  670. package/src/core/stackWorkflowRenderer.ts +0 -239
  671. package/src/core/stateStore.ts +0 -652
  672. package/src/core/tracing.ts +0 -26
  673. package/src/providers/aws/awsApply.ts +0 -132
  674. package/src/providers/aws/awsBucket.ts +0 -329
  675. package/src/providers/aws/awsBucketNotification.ts +0 -351
  676. package/src/providers/aws/awsBucketNotificationResourcePolicy.ts +0 -251
  677. package/src/providers/aws/awsBucketResourcePolicy.ts +0 -198
  678. package/src/providers/aws/awsProviderLayer.ts +0 -274
  679. package/src/providers/aws/awsQueue.ts +0 -346
  680. package/src/providers/aws/awsQueuePolicy.ts +0 -419
  681. package/src/providers/aws/awsQueuePolicyResourcePolicy.ts +0 -215
  682. package/src/providers/aws/awsQueueResourcePolicy.ts +0 -270
  683. package/src/providers/aws/awsReconciliation.ts +0 -92
  684. package/src/providers/aws/awsRefresh.ts +0 -50
  685. package/src/providers/aws/awsResourceLifecycle.ts +0 -118
  686. package/src/providers/aws/awsResourcePolicy.ts +0 -83
  687. package/src/providers/aws/awsResources.ts +0 -274
  688. package/src/providers/aws/awsRuntimeLayer.ts +0 -21
  689. package/src/providers/aws/awsSqsTransport.ts +0 -33
  690. package/src/providers/aws/awsStackLifecycle.ts +0 -272
  691. package/src/providers/aws/awsTagging.ts +0 -186
  692. package/src/providers/aws/constants.ts +0 -3
  693. package/src/providers/aws/index.ts +0 -22
  694. package/src/providers/aws/sampleStack.ts +0 -65
  695. package/src/providers/aws/stackWorkflow.ts +0 -443
  696. package/src/providers/stripe/stripeAccount.ts +0 -139
  697. package/src/providers/stripe/stripeBillingConfigurationExport.ts +0 -180
  698. package/src/providers/stripe/stripeBillingConfigurationExportResourcePolicy.ts +0 -178
  699. package/src/providers/stripe/stripeBillingPortalConfiguration.ts +0 -153
  700. package/src/providers/stripe/stripeBillingPortalConfigurationResourcePolicy.ts +0 -177
  701. package/src/providers/stripe/stripeCustomer.ts +0 -148
  702. package/src/providers/stripe/stripeCustomerResourcePolicy.ts +0 -160
  703. package/src/providers/stripe/stripePrice.ts +0 -218
  704. package/src/providers/stripe/stripePriceResourcePolicy.ts +0 -151
  705. package/src/providers/stripe/stripeProduct.ts +0 -171
  706. package/src/providers/stripe/stripeProductResourcePolicy.ts +0 -161
  707. package/src/providers/stripe/stripeResources.ts +0 -454
  708. package/src/providers/stripe/stripeRuntimeLayer.ts +0 -131
  709. package/src/providers/stripe/stripeWebhookEndpoint.ts +0 -293
  710. package/src/providers/stripe/stripeWebhookEndpointResourcePolicy.ts +0 -198
@@ -0,0 +1,3325 @@
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 AccelerateConfiguration {
15
+ readonly AccelerationStatus: "Enabled" | "Suspended";
16
+ }
17
+
18
+ const AccelerateConfiguration = Schema.Struct({
19
+ AccelerationStatus: Schema.Literals(["Enabled", "Suspended"]).annotate({
20
+ description: "Specifies the transfer acceleration status of the bucket.",
21
+ }),
22
+ }).annotate({
23
+ description:
24
+ "Configures the transfer acceleration state for an Amazon S3 bucket. For more information, see [Amazon S3 Transfer Acceleration](https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html) in the *Amazon S3 User Guide*.",
25
+ identifier: "AccelerateConfiguration",
26
+ });
27
+
28
+ interface TagFilter {
29
+ readonly Value: string;
30
+ readonly Key: string;
31
+ }
32
+
33
+ const TagFilter = Schema.Struct({
34
+ Value: Schema.String.annotate({ description: "The tag value." }),
35
+ Key: Schema.String.annotate({ description: "The tag key." }),
36
+ }).annotate({
37
+ description:
38
+ "Specifies tags to use to identify a subset of objects for an Amazon S3 bucket. For more information, see [Categorizing your storage using tags](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-tagging.html) in the *Amazon Simple Storage Service User Guide*.",
39
+ identifier: "TagFilter",
40
+ });
41
+
42
+ interface Destination {
43
+ readonly BucketArn:
44
+ | ResourceEntity<{
45
+ readonly provider: "aws";
46
+ readonly service: "s3";
47
+ readonly resource: "bucket";
48
+ }>
49
+ | string;
50
+ readonly BucketAccountId?: string;
51
+ readonly Format: "CSV" | "ORC" | "Parquet";
52
+ readonly Prefix?: string;
53
+ }
54
+
55
+ const Destination = Schema.Struct({
56
+ BucketArn: Schema.Union([
57
+ Schema.Union([
58
+ ResourceReferenceSchema(
59
+ Schema.Struct({
60
+ provider: Schema.Literal("aws"),
61
+ service: Schema.Literal("s3"),
62
+ resource: Schema.Literal("bucket"),
63
+ }),
64
+ {
65
+ value: null,
66
+ outputs: [
67
+ {
68
+ source: ["Arn"],
69
+ target: [],
70
+ },
71
+ ],
72
+ },
73
+ ).annotate({ expected: "ResourceEntity" }),
74
+ ]),
75
+ Schema.String.annotate({
76
+ description:
77
+ "The Amazon Resource Name (ARN) of the bucket to which data is exported.",
78
+ }),
79
+ ]),
80
+ BucketAccountId: Schema.optionalKey(
81
+ Schema.String.annotate({
82
+ description:
83
+ "The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data.\n Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes.",
84
+ }),
85
+ ),
86
+ Format: Schema.Literals(["CSV", "ORC", "Parquet"]).annotate({
87
+ description:
88
+ "Specifies the file format used when exporting data to Amazon S3.\n *Allowed values*: ``CSV`` | ``ORC`` | ``Parquet``",
89
+ }),
90
+ Prefix: Schema.optionalKey(
91
+ Schema.String.annotate({
92
+ description:
93
+ "The prefix to use when exporting data. The prefix is prepended to all results.",
94
+ }),
95
+ ),
96
+ }).annotate({
97
+ description:
98
+ "Specifies information about where to publish analysis or configuration results for an Amazon S3 bucket.",
99
+ identifier: "Destination",
100
+ });
101
+
102
+ interface ServerSideEncryptionByDefault {
103
+ readonly KMSMasterKeyID?:
104
+ | ResourceEntity<{
105
+ readonly provider: "aws";
106
+ readonly service: "kms";
107
+ readonly resource: "alias";
108
+ }>
109
+ | string;
110
+ readonly SSEAlgorithm: "aws:kms" | "AES256" | "aws:kms:dsse";
111
+ }
112
+
113
+ const ServerSideEncryptionByDefault = Schema.Struct({
114
+ KMSMasterKeyID: Schema.optionalKey(
115
+ Schema.Union([
116
+ Schema.Union([
117
+ ResourceReferenceSchema(
118
+ Schema.Struct({
119
+ provider: Schema.Literal("aws"),
120
+ service: Schema.Literal("kms"),
121
+ resource: Schema.Literal("alias"),
122
+ }),
123
+ {
124
+ value: null,
125
+ outputs: [
126
+ {
127
+ source: ["AliasName"],
128
+ target: [],
129
+ },
130
+ ],
131
+ },
132
+ ).annotate({ expected: "ResourceEntity" }),
133
+ ]),
134
+ Schema.String.annotate({
135
+ description:
136
+ "AWS Key Management Service (KMS) customer managed key ID to use for the default encryption. \n + *General purpose buckets* - This parameter is allowed if and only if ``SSEAlgorithm`` is set to ``aws:kms`` or ``aws:kms:dsse``.\n + *Directory buckets* - This parameter is allowed if and only if ``SSEAlgorithm`` is set to ``aws:kms``.\n \n You can specify the key ID, key alias, or the Amazon Resource Name (ARN) of the KMS key.\n + Key ID: ``1234abcd-12ab-34cd-56ef-1234567890ab``\n + Key ARN: ``arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab``\n + Key Alias: ``alias/alias-name``\n \n If you are using encryption with cross-account or AWS service operations, you must use a fully qualified KMS key ARN. For more information, see [Using encryption for cross-account operations](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html#bucket-encryption-update-bucket-policy).\n + *General purpose buckets* - If you're specifying a customer managed KMS key, we recommend using a fully qualified KMS key ARN. If you use a KMS key alias instead, then KMS resolves the key within the requester’s account. This behavior can result in data that's encrypted with a KMS key that belongs to the requester, and not the bucket owner. Also, if you use a key ID, you can run into a LogDestination undeliverable error when creating a VPC flow log. \n + *Directory buckets* - When you specify an [customer managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) for encryption in your directory bucket, only use the key ID or key ARN. The key alias format of the KMS key isn't supported.\n \n Amazon S3 only supports symmetric encryption KMS keys. For more information, see [Asymmetric keys in KMS](https://docs.aws.amazon.com//kms/latest/developerguide/symmetric-asymmetric.html) in the *Key Management Service Developer Guide*.",
137
+ }),
138
+ ]),
139
+ ),
140
+ SSEAlgorithm: Schema.Literals(["aws:kms", "AES256", "aws:kms:dsse"]).annotate(
141
+ {
142
+ description:
143
+ "Server-side encryption algorithm to use for the default encryption.\n For directory buckets, there are only two supported values for server-side encryption: ``AES256`` and ``aws:kms``.",
144
+ },
145
+ ),
146
+ }).annotate({
147
+ description:
148
+ "Describes the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied. For more information, see [PutBucketEncryption](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTencryption.html).\n + *General purpose buckets* - If you don't specify a customer managed key at configuration, Amazon S3 automatically creates an AWS KMS key (``aws/s3``) in your AWS account the first time that you add an object encrypted with SSE-KMS to a bucket. By default, Amazon S3 uses this KMS key for SSE-KMS. \n + *Directory buckets* - Your SSE-KMS configuration can only support 1 [customer managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) per directory bucket's lifetime. The [managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) (``aws/s3``) isn't supported. \n + *Directory buckets* - For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS.",
149
+ identifier: "ServerSideEncryptionByDefault",
150
+ });
151
+
152
+ type BlockedEncryptionTypeList = ReadonlyArray<"NONE" | "SSE-C">;
153
+
154
+ const BlockedEncryptionTypeList = Schema.Array(
155
+ Schema.Literals(["NONE", "SSE-C"]),
156
+ )
157
+ .annotate({ description: "List of encryption types." })
158
+ .check(
159
+ Schema.isUnique().annotate({
160
+ expected: "an array with unique items",
161
+ identifier: "BlockedEncryptionTypeList",
162
+ }),
163
+ );
164
+
165
+ interface CorsRule {
166
+ readonly AllowedHeaders?: ReadonlyArray<string>;
167
+ readonly AllowedMethods: ReadonlyArray<
168
+ "GET" | "PUT" | "HEAD" | "POST" | "DELETE"
169
+ >;
170
+ readonly AllowedOrigins: ReadonlyArray<string>;
171
+ readonly ExposedHeaders?: ReadonlyArray<string>;
172
+ readonly Id?: string;
173
+ readonly MaxAge?: number;
174
+ }
175
+
176
+ const CorsRule = Schema.Struct({
177
+ AllowedHeaders: Schema.optionalKey(
178
+ Schema.Array(Schema.String)
179
+ .annotate({
180
+ description:
181
+ "Headers that are specified in the ``Access-Control-Request-Headers`` header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.",
182
+ })
183
+ .check(
184
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
185
+ ),
186
+ ),
187
+ AllowedMethods: Schema.Array(
188
+ Schema.Literals(["GET", "PUT", "HEAD", "POST", "DELETE"]),
189
+ )
190
+ .annotate({
191
+ description:
192
+ "An HTTP method that you allow the origin to run.\n *Allowed values*: ``GET`` | ``PUT`` | ``HEAD`` | ``POST`` | ``DELETE``",
193
+ })
194
+ .check(
195
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
196
+ ),
197
+ AllowedOrigins: Schema.Array(Schema.String)
198
+ .annotate({
199
+ description:
200
+ "One or more origins you want customers to be able to access the bucket from.",
201
+ })
202
+ .check(
203
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
204
+ ),
205
+ ExposedHeaders: Schema.optionalKey(
206
+ Schema.Array(Schema.String)
207
+ .annotate({
208
+ description:
209
+ "One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript ``XMLHttpRequest`` object).",
210
+ })
211
+ .check(
212
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
213
+ ),
214
+ ),
215
+ Id: Schema.optionalKey(
216
+ Schema.String.annotate({
217
+ description:
218
+ "A unique identifier for this rule. The value must be no more than 255 characters.",
219
+ }).check(
220
+ Schema.isMaxCodePoints(255).annotate({
221
+ expected: "a string with at most 255 code points",
222
+ }),
223
+ ),
224
+ ),
225
+ MaxAge: Schema.optionalKey(
226
+ Schema.Number.annotate({
227
+ description:
228
+ "The time in seconds that your browser is to cache the preflight response for the specified resource.",
229
+ })
230
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
231
+ .check(
232
+ Schema.isGreaterThanOrEqualTo(0).annotate({
233
+ expected: "a value greater than or equal to 0",
234
+ }),
235
+ ),
236
+ ),
237
+ }).annotate({
238
+ description: "Specifies a cross-origin access rule for an Amazon S3 bucket.",
239
+ identifier: "CorsRule",
240
+ });
241
+
242
+ interface Tiering {
243
+ readonly AccessTier: "ARCHIVE_ACCESS" | "DEEP_ARCHIVE_ACCESS";
244
+ readonly Days: number;
245
+ }
246
+
247
+ const Tiering = Schema.Struct({
248
+ AccessTier: Schema.Literals([
249
+ "ARCHIVE_ACCESS",
250
+ "DEEP_ARCHIVE_ACCESS",
251
+ ]).annotate({
252
+ description:
253
+ "S3 Intelligent-Tiering access tier. See [Storage class for automatically optimizing frequently and infrequently accessed objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access) for a list of access tiers in the S3 Intelligent-Tiering storage class.",
254
+ }),
255
+ Days: Schema.Number.annotate({
256
+ description:
257
+ "The number of consecutive days of no access after which an object will be eligible to be transitioned to the corresponding tier. The minimum number of days specified for Archive Access tier must be at least 90 days and Deep Archive Access tier must be at least 180 days. The maximum can be up to 2 years (730 days).",
258
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
259
+ }).annotate({
260
+ description:
261
+ "The S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without additional operational overhead.",
262
+ identifier: "Tiering",
263
+ });
264
+
265
+ interface Destination_1 {
266
+ readonly BucketArn:
267
+ | ResourceEntity<{
268
+ readonly provider: "aws";
269
+ readonly service: "s3";
270
+ readonly resource: "bucket";
271
+ }>
272
+ | string;
273
+ readonly BucketAccountId?: string;
274
+ readonly Format: "CSV" | "ORC" | "Parquet";
275
+ readonly Prefix?: string;
276
+ }
277
+
278
+ const Destination_1 = Schema.Struct({
279
+ BucketArn: Schema.Union([
280
+ Schema.Union([
281
+ ResourceReferenceSchema(
282
+ Schema.Struct({
283
+ provider: Schema.Literal("aws"),
284
+ service: Schema.Literal("s3"),
285
+ resource: Schema.Literal("bucket"),
286
+ }),
287
+ {
288
+ value: null,
289
+ outputs: [
290
+ {
291
+ source: ["Arn"],
292
+ target: [],
293
+ },
294
+ ],
295
+ },
296
+ ).annotate({ expected: "ResourceEntity" }),
297
+ ]),
298
+ Schema.String.annotate({
299
+ description:
300
+ "The Amazon Resource Name (ARN) of the bucket to which data is exported.",
301
+ }),
302
+ ]),
303
+ BucketAccountId: Schema.optionalKey(
304
+ Schema.String.annotate({
305
+ description:
306
+ "The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data.\n Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes.",
307
+ }),
308
+ ),
309
+ Format: Schema.Literals(["CSV", "ORC", "Parquet"]).annotate({
310
+ description:
311
+ "Specifies the file format used when exporting data to Amazon S3.\n *Allowed values*: ``CSV`` | ``ORC`` | ``Parquet``",
312
+ }),
313
+ Prefix: Schema.optionalKey(
314
+ Schema.String.annotate({
315
+ description:
316
+ "The prefix to use when exporting data. The prefix is prepended to all results.",
317
+ }),
318
+ ),
319
+ }).annotate({
320
+ description:
321
+ "Specifies information about where to publish analysis or configuration results for an Amazon S3 bucket.",
322
+ identifier: "Destination_1",
323
+ });
324
+
325
+ interface AbortIncompleteMultipartUpload {
326
+ readonly DaysAfterInitiation: number;
327
+ }
328
+
329
+ const AbortIncompleteMultipartUpload = Schema.Struct({
330
+ DaysAfterInitiation: Schema.Number.annotate({
331
+ description:
332
+ "Specifies the number of days after which Amazon S3 stops an incomplete multipart upload.",
333
+ })
334
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
335
+ .check(
336
+ Schema.isGreaterThanOrEqualTo(0).annotate({
337
+ expected: "a value greater than or equal to 0",
338
+ }),
339
+ ),
340
+ }).annotate({
341
+ description:
342
+ "Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload. For more information, see [Stopping Incomplete Multipart Uploads Using a Bucket Lifecycle Policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config) in the *Amazon S3 User Guide*.",
343
+ identifier: "AbortIncompleteMultipartUpload",
344
+ });
345
+
346
+ type Iso8601UTC = string;
347
+
348
+ const Iso8601UTC = Schema.String.annotate({
349
+ description:
350
+ "The date value in ISO 8601 format. The timezone is always UTC. (YYYY-MM-DDThh:mm:ssZ)",
351
+ }).check(
352
+ Schema.isPattern(
353
+ new globalThis.RegExp(
354
+ "^(\\d{4})-(0[0-9]|1[0-2])-([0-2]\\d|3[01])T([01]\\d|2[0-4]):([0-5]\\d):([0-6]\\d)((\\.\\d{3})?)Z$",
355
+ "u",
356
+ ),
357
+ ).annotate({
358
+ expected:
359
+ "a string matching the RegExp ^(\\d{4})-(0[0-9]|1[0-2])-([0-2]\\d|3[01])T([01]\\d|2[0-4]):([0-5]\\d):([0-6]\\d)((\\.\\d{3})?)Z$",
360
+ identifier: "iso8601UTC",
361
+ }),
362
+ );
363
+
364
+ interface NoncurrentVersionExpiration {
365
+ readonly NoncurrentDays: number;
366
+ readonly NewerNoncurrentVersions?: number;
367
+ }
368
+
369
+ const NoncurrentVersionExpiration = Schema.Struct({
370
+ NoncurrentDays: Schema.Number.annotate({
371
+ description:
372
+ "Specifies the number of days an object is noncurrent before S3 can perform the associated action. For information about the noncurrent days calculations, see [How Amazon S3 Calculates When an Object Became Noncurrent](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) in the *Amazon S3 User Guide*.",
373
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
374
+ NewerNoncurrentVersions: Schema.optionalKey(
375
+ Schema.Number.annotate({
376
+ description:
377
+ "Specifies how many noncurrent versions S3 will retain. If there are this many more recent noncurrent versions, S3 will take the associated action. For more information about noncurrent versions, see [Lifecycle configuration elements](https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html) in the *Amazon S3 User Guide*.",
378
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
379
+ ),
380
+ }).annotate({
381
+ description:
382
+ "Specifies when noncurrent object versions expire. Upon expiration, S3 permanently deletes the noncurrent object versions. You set this lifecycle configuration action on a bucket that has versioning enabled (or suspended) to request that S3 delete noncurrent object versions at a specific period in the object's lifetime. For more information about setting a lifecycle rule configuration, see [AWS::S3::Bucket Rule](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html).",
383
+ identifier: "NoncurrentVersionExpiration",
384
+ });
385
+
386
+ interface NoncurrentVersionTransition {
387
+ readonly StorageClass:
388
+ | "DEEP_ARCHIVE"
389
+ | "GLACIER"
390
+ | "Glacier"
391
+ | "GLACIER_IR"
392
+ | "INTELLIGENT_TIERING"
393
+ | "ONEZONE_IA"
394
+ | "STANDARD_IA";
395
+ readonly TransitionInDays: number;
396
+ readonly NewerNoncurrentVersions?: number;
397
+ }
398
+
399
+ const NoncurrentVersionTransition = Schema.Struct({
400
+ StorageClass: Schema.Literals([
401
+ "DEEP_ARCHIVE",
402
+ "GLACIER",
403
+ "Glacier",
404
+ "GLACIER_IR",
405
+ "INTELLIGENT_TIERING",
406
+ "ONEZONE_IA",
407
+ "STANDARD_IA",
408
+ ]).annotate({
409
+ description: "The class of storage used to store the object.",
410
+ }),
411
+ TransitionInDays: Schema.Number.annotate({
412
+ description:
413
+ "Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. For information about the noncurrent days calculations, see [How Amazon S3 Calculates How Long an Object Has Been Noncurrent](https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) in the *Amazon S3 User Guide*.",
414
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
415
+ NewerNoncurrentVersions: Schema.optionalKey(
416
+ Schema.Number.annotate({
417
+ description:
418
+ "Specifies how many noncurrent versions S3 will retain. If there are this many more recent noncurrent versions, S3 will take the associated action. For more information about noncurrent versions, see [Lifecycle configuration elements](https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html) in the *Amazon S3 User Guide*.",
419
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
420
+ ),
421
+ }).annotate({
422
+ description:
423
+ "Container for the transition rule that describes when noncurrent objects transition to the ``STANDARD_IA``, ``ONEZONE_IA``, ``INTELLIGENT_TIERING``, ``GLACIER_IR``, ``GLACIER``, or ``DEEP_ARCHIVE`` storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to the ``STANDARD_IA``, ``ONEZONE_IA``, ``INTELLIGENT_TIERING``, ``GLACIER_IR``, ``GLACIER``, or ``DEEP_ARCHIVE`` storage class at a specific period in the object's lifetime. If you specify this property, don't specify the ``NoncurrentVersionTransitions`` property.",
424
+ identifier: "NoncurrentVersionTransition",
425
+ });
426
+
427
+ interface PartitionedPrefix {
428
+ readonly PartitionDateSource?: "EventTime" | "DeliveryTime";
429
+ }
430
+
431
+ const PartitionedPrefix = Schema.Struct({
432
+ PartitionDateSource: Schema.optionalKey(
433
+ Schema.Literals(["EventTime", "DeliveryTime"]).annotate({
434
+ description:
435
+ "Specifies the partition date source for the partitioned prefix. ``PartitionDateSource`` can be ``EventTime`` or ``DeliveryTime``.\n For ``DeliveryTime``, the time in the log file names corresponds to the delivery time for the log files. \n For ``EventTime``, The logs delivered are for a specific day only. The year, month, and day correspond to the day on which the event occurred, and the hour, minutes and seconds are set to 00 in the key.",
436
+ }),
437
+ ),
438
+ }).annotate({
439
+ description:
440
+ "Amazon S3 keys for log objects are partitioned in the following format:\n ``[DestinationPrefix][SourceAccountId]/[SourceRegion]/[SourceBucket]/[YYYY]/[MM]/[DD]/[YYYY]-[MM]-[DD]-[hh]-[mm]-[ss]-[UniqueString]`` \n PartitionedPrefix defaults to EventTime delivery when server access logs are delivered.",
441
+ identifier: "PartitionedPrefix",
442
+ });
443
+
444
+ interface S3TablesDestination {
445
+ readonly TableBucketArn: string;
446
+ readonly TableName: string;
447
+ readonly TableNamespace?: string;
448
+ readonly TableArn?: string;
449
+ }
450
+
451
+ const S3TablesDestination = Schema.Struct({
452
+ TableBucketArn: Schema.String.annotate({
453
+ description:
454
+ "The Amazon Resource Name (ARN) for the table bucket that's specified as the destination in the metadata table configuration. The destination table bucket must be in the same Region and AWS-account as the general purpose bucket.",
455
+ }),
456
+ TableName: Schema.String.annotate({
457
+ description:
458
+ "The name for the metadata table in your metadata table configuration. The specified metadata table name must be unique within the ``aws_s3_metadata`` namespace in the destination table bucket.",
459
+ }),
460
+ TableNamespace: Schema.optionalKey(
461
+ Schema.String.annotate({
462
+ description:
463
+ "The table bucket namespace for the metadata table in your metadata table configuration. This value is always ``aws_s3_metadata``.",
464
+ }),
465
+ ),
466
+ TableArn: Schema.optionalKey(
467
+ Schema.String.annotate({
468
+ description:
469
+ "The Amazon Resource Name (ARN) for the metadata table in the metadata table configuration. The specified metadata table name must be unique within the ``aws_s3_metadata`` namespace in the destination table bucket.",
470
+ }),
471
+ ),
472
+ }).annotate({
473
+ description:
474
+ "The destination information for a V1 S3 Metadata configuration. The destination table bucket must be in the same Region and AWS-account as the general purpose bucket. The specified metadata table name must be unique within the ``aws_s3_metadata`` namespace in the destination table bucket.",
475
+ identifier: "S3TablesDestination",
476
+ });
477
+
478
+ interface MetadataDestination {
479
+ readonly TableBucketType: "aws" | "customer";
480
+ readonly TableBucketArn?: string;
481
+ readonly TableNamespace?: string;
482
+ }
483
+
484
+ const MetadataDestination = Schema.Struct({
485
+ TableBucketType: Schema.Literals(["aws", "customer"]).annotate({
486
+ description:
487
+ "The type of the table bucket where the metadata configuration is stored. The ``aws`` value indicates an AWS managed table bucket, and the ``customer`` value indicates a customer-managed table bucket. V2 metadata configurations are stored in AWS managed table buckets, and V1 metadata configurations are stored in customer-managed table buckets.",
488
+ }),
489
+ TableBucketArn: Schema.optionalKey(
490
+ Schema.String.annotate({
491
+ description:
492
+ "The Amazon Resource Name (ARN) of the table bucket where the metadata configuration is stored.",
493
+ }),
494
+ ),
495
+ TableNamespace: Schema.optionalKey(
496
+ Schema.String.annotate({
497
+ description:
498
+ "The namespace in the table bucket where the metadata tables for a metadata configuration are stored.",
499
+ }),
500
+ ),
501
+ }).annotate({
502
+ description: "The destination information for the S3 Metadata configuration.",
503
+ identifier: "MetadataDestination",
504
+ });
505
+
506
+ interface RecordExpiration {
507
+ readonly Expiration: "ENABLED" | "DISABLED";
508
+ readonly Days?: number;
509
+ }
510
+
511
+ const RecordExpiration = Schema.Struct({
512
+ Expiration: Schema.Literals(["ENABLED", "DISABLED"]).annotate({
513
+ description:
514
+ "Specifies whether journal table record expiration is enabled or disabled.",
515
+ }),
516
+ Days: Schema.optionalKey(
517
+ Schema.Number.annotate({
518
+ description:
519
+ "If you enable journal table record expiration, you can set the number of days to retain your journal table records. Journal table records must be retained for a minimum of 7 days. To set this value, specify any whole number from ``7`` to ``2147483647``. For example, to retain your journal table records for one year, set this value to ``365``.",
520
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
521
+ ),
522
+ }).annotate({
523
+ description:
524
+ "The journal table record expiration settings for a journal table in an S3 Metadata configuration.",
525
+ identifier: "RecordExpiration",
526
+ });
527
+
528
+ interface MetadataTableEncryptionConfiguration {
529
+ readonly SseAlgorithm: "aws:kms" | "AES256";
530
+ readonly KmsKeyArn?: string;
531
+ }
532
+
533
+ const MetadataTableEncryptionConfiguration = Schema.Struct({
534
+ SseAlgorithm: Schema.Literals(["aws:kms", "AES256"]).annotate({
535
+ description:
536
+ "The encryption type specified for a metadata table. To specify server-side encryption with KMSlong (KMS) keys (SSE-KMS), use the ``aws:kms`` value. To specify server-side encryption with Amazon S3 managed keys (SSE-S3), use the ``AES256`` value.",
537
+ }),
538
+ KmsKeyArn: Schema.optionalKey(
539
+ Schema.String.annotate({
540
+ description:
541
+ "If server-side encryption with KMSlong (KMS) keys (SSE-KMS) is specified, you must also specify the KMS key Amazon Resource Name (ARN). You must specify a customer-managed KMS key that's located in the same Region as the general purpose bucket that corresponds to the metadata table configuration.",
542
+ }),
543
+ ),
544
+ }).annotate({
545
+ description:
546
+ "The encryption settings for an S3 Metadata journal table or inventory table configuration.",
547
+ identifier: "MetadataTableEncryptionConfiguration",
548
+ });
549
+
550
+ interface EventBridgeConfiguration {
551
+ readonly EventBridgeEnabled: boolean;
552
+ }
553
+
554
+ const EventBridgeConfiguration = Schema.Struct({
555
+ EventBridgeEnabled: Schema.Boolean.annotate({
556
+ description: "Enables delivery of events to Amazon EventBridge.",
557
+ }),
558
+ }).annotate({
559
+ description:
560
+ "Amazon S3 can send events to Amazon EventBridge whenever certain events happen in your bucket, see [Using EventBridge](https://docs.aws.amazon.com/AmazonS3/latest/userguide/EventBridge.html) in the *Amazon S3 User Guide*.\n Unlike other destinations, delivery of events to EventBridge can be either enabled or disabled for a bucket. If enabled, all events will be sent to EventBridge and you can use EventBridge rules to route events to additional targets. For more information, see [What Is Amazon EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is.html) in the *Amazon EventBridge User Guide*",
561
+ identifier: "EventBridgeConfiguration",
562
+ });
563
+
564
+ interface FilterRule {
565
+ readonly Name: string;
566
+ readonly Value: string;
567
+ }
568
+
569
+ const FilterRule = Schema.Struct({
570
+ Name: Schema.String.annotate({
571
+ description:
572
+ "The object key name prefix or suffix identifying one or more objects to which the filtering rule applies. The maximum length is 1,024 characters. Overlapping prefixes and suffixes are not supported. For more information, see [Configuring Event Notifications](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.",
573
+ }).check(
574
+ Schema.isMaxCodePoints(1024).annotate({
575
+ expected: "a string with at most 1024 code points",
576
+ }),
577
+ ),
578
+ Value: Schema.String.annotate({
579
+ description: "The value that the filter searches for in object key names.",
580
+ }),
581
+ }).annotate({
582
+ description:
583
+ "Specifies the Amazon S3 object key name to filter on. An object key name is the name assigned to an object in your Amazon S3 bucket. You specify whether to filter on the suffix or prefix of the object key name. A prefix is a specific string of characters at the beginning of an object key name, which you can use to organize objects. For example, you can start the key names of related objects with a prefix, such as ``2023-`` or ``engineering/``. Then, you can use ``FilterRule`` to find objects in a bucket with key names that have the same prefix. A suffix is similar to a prefix, but it is at the end of the object key name instead of at the beginning.",
584
+ identifier: "FilterRule",
585
+ });
586
+
587
+ interface DefaultRetention {
588
+ readonly Years?: number;
589
+ readonly Days?: number;
590
+ readonly Mode?: "COMPLIANCE" | "GOVERNANCE";
591
+ }
592
+
593
+ const DefaultRetention = Schema.Struct({
594
+ Years: Schema.optionalKey(
595
+ Schema.Number.annotate({
596
+ description:
597
+ "The number of years that you want to specify for the default retention period. If Object Lock is turned on, you must specify ``Mode`` and specify either ``Days`` or ``Years``.",
598
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
599
+ ),
600
+ Days: Schema.optionalKey(
601
+ Schema.Number.annotate({
602
+ description:
603
+ "The number of days that you want to specify for the default retention period. If Object Lock is turned on, you must specify ``Mode`` and specify either ``Days`` or ``Years``.",
604
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
605
+ ),
606
+ Mode: Schema.optionalKey(
607
+ Schema.Literals(["COMPLIANCE", "GOVERNANCE"]).annotate({
608
+ description:
609
+ "The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. If Object Lock is turned on, you must specify ``Mode`` and specify either ``Days`` or ``Years``.",
610
+ }),
611
+ ),
612
+ }).annotate({
613
+ description:
614
+ "The container element for optionally specifying the default Object Lock retention settings for new objects placed in the specified bucket.\n + The ``DefaultRetention`` settings require both a mode and a period.\n + The ``DefaultRetention`` period can be either ``Days`` or ``Years`` but you must select one. You cannot specify ``Days`` and ``Years`` at the same time.",
615
+ identifier: "DefaultRetention",
616
+ });
617
+
618
+ interface OwnershipControlsRule {
619
+ readonly ObjectOwnership?:
620
+ | "ObjectWriter"
621
+ | "BucketOwnerPreferred"
622
+ | "BucketOwnerEnforced";
623
+ }
624
+
625
+ const OwnershipControlsRule = Schema.Struct({
626
+ ObjectOwnership: Schema.optionalKey(
627
+ Schema.Literals([
628
+ "ObjectWriter",
629
+ "BucketOwnerPreferred",
630
+ "BucketOwnerEnforced",
631
+ ]).annotate({ description: "Specifies an object ownership rule." }),
632
+ ),
633
+ }).annotate({
634
+ description:
635
+ "Specifies an Object Ownership rule.\n S3 Object Ownership is an Amazon S3 bucket-level setting that you can use to disable access control lists (ACLs) and take ownership of every object in your bucket, simplifying access management for data stored in Amazon S3. For more information, see [Controlling ownership of objects and disabling ACLs](https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) in the *Amazon S3 User Guide*.",
636
+ identifier: "OwnershipControlsRule",
637
+ });
638
+
639
+ interface PublicAccessBlockConfiguration {
640
+ readonly BlockPublicAcls?: boolean;
641
+ readonly BlockPublicPolicy?: boolean;
642
+ readonly IgnorePublicAcls?: boolean;
643
+ readonly RestrictPublicBuckets?: boolean;
644
+ }
645
+
646
+ const PublicAccessBlockConfiguration = Schema.Struct({
647
+ BlockPublicAcls: Schema.optionalKey(
648
+ Schema.Boolean.annotate({
649
+ description:
650
+ "Specifies whether Amazon S3 should block public access control lists (ACLs) for this bucket and objects in this bucket. Setting this element to ``TRUE`` causes the following behavior:\n + PUT Bucket ACL and PUT Object ACL calls fail if the specified ACL is public.\n + PUT Object calls fail if the request includes a public ACL.\n + PUT Bucket calls fail if the request includes a public ACL.\n \n Enabling this setting doesn't affect existing policies or ACLs.",
651
+ }),
652
+ ),
653
+ BlockPublicPolicy: Schema.optionalKey(
654
+ Schema.Boolean.annotate({
655
+ description:
656
+ "Specifies whether Amazon S3 should block public bucket policies for this bucket. Setting this element to ``TRUE`` causes Amazon S3 to reject calls to PUT Bucket policy if the specified bucket policy allows public access. \n Enabling this setting doesn't affect existing bucket policies.",
657
+ }),
658
+ ),
659
+ IgnorePublicAcls: Schema.optionalKey(
660
+ Schema.Boolean.annotate({
661
+ description:
662
+ "Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket. Setting this element to ``TRUE`` causes Amazon S3 to ignore all public ACLs on this bucket and objects in this bucket.\n Enabling this setting doesn't affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set.",
663
+ }),
664
+ ),
665
+ RestrictPublicBuckets: Schema.optionalKey(
666
+ Schema.Boolean.annotate({
667
+ description:
668
+ "Specifies whether Amazon S3 should restrict public bucket policies for this bucket. Setting this element to ``TRUE`` restricts access to this bucket to only AWS-service principals and authorized users within this account if the bucket has a public policy.\n Enabling this setting doesn't affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked.",
669
+ }),
670
+ ),
671
+ }).annotate({
672
+ description:
673
+ 'The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. You can enable the configuration options in any combination. Bucket-level settings work alongside account-level settings (which may inherit from organization-level policies). For more information about when Amazon S3 considers a bucket or object public, see [The Meaning of "Public"](https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status) in the *Amazon S3 User Guide*.',
674
+ identifier: "PublicAccessBlockConfiguration",
675
+ });
676
+
677
+ interface DeleteMarkerReplication {
678
+ readonly Status?: "Disabled" | "Enabled";
679
+ }
680
+
681
+ const DeleteMarkerReplication = Schema.Struct({
682
+ Status: Schema.optionalKey(
683
+ Schema.Literals(["Disabled", "Enabled"]).annotate({
684
+ description: "Indicates whether to replicate delete markers.",
685
+ }),
686
+ ),
687
+ }).annotate({
688
+ description:
689
+ "Specifies whether Amazon S3 replicates delete markers. If you specify a ``Filter`` in your replication configuration, you must also include a ``DeleteMarkerReplication`` element. If your ``Filter`` includes a ``Tag`` element, the ``DeleteMarkerReplication````Status`` must be set to Disabled, because Amazon S3 does not support replicating delete markers for tag-based rules. For an example configuration, see [Basic Rule Configuration](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-config-min-rule-config). \n For more information about delete marker replication, see [Basic Rule Configuration](https://docs.aws.amazon.com/AmazonS3/latest/dev/delete-marker-replication.html). \n If you are using an earlier version of the replication configuration, Amazon S3 handles replication of delete markers differently. For more information, see [Backward Compatibility](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-backward-compat-considerations).",
690
+ identifier: "DeleteMarkerReplication",
691
+ });
692
+
693
+ interface AccessControlTranslation {
694
+ readonly Owner: "Destination";
695
+ }
696
+
697
+ const AccessControlTranslation = Schema.Struct({
698
+ Owner: Schema.Literal("Destination").annotate({
699
+ description:
700
+ "Specifies the replica ownership. For default and valid values, see [PUT bucket replication](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html) in the *Amazon S3 API Reference*.",
701
+ }),
702
+ }).annotate({
703
+ description:
704
+ "Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the AWS-account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same AWS-account that owns the source object.",
705
+ identifier: "AccessControlTranslation",
706
+ });
707
+
708
+ interface EncryptionConfiguration {
709
+ readonly ReplicaKmsKeyID:
710
+ | ResourceEntity<{
711
+ readonly provider: "aws";
712
+ readonly service: "kms";
713
+ readonly resource: "key";
714
+ }>
715
+ | string;
716
+ }
717
+
718
+ const EncryptionConfiguration = Schema.Struct({
719
+ ReplicaKmsKeyID: Schema.Union([
720
+ Schema.Union([
721
+ ResourceReferenceSchema(
722
+ Schema.Struct({
723
+ provider: Schema.Literal("aws"),
724
+ service: Schema.Literal("kms"),
725
+ resource: Schema.Literal("key"),
726
+ }),
727
+ {
728
+ value: null,
729
+ outputs: [
730
+ {
731
+ source: ["Arn"],
732
+ target: [],
733
+ },
734
+ ],
735
+ },
736
+ ).annotate({ expected: "ResourceEntity" }),
737
+ ]),
738
+ Schema.String.annotate({
739
+ description:
740
+ "Specifies the ID (Key ARN or Alias ARN) of the customer managed AWS KMS key stored in AWS Key Management Service (KMS) for the destination bucket. Amazon S3 uses this key to encrypt replica objects. Amazon S3 only supports symmetric encryption KMS keys. For more information, see [Asymmetric keys in KMS](https://docs.aws.amazon.com//kms/latest/developerguide/symmetric-asymmetric.html) in the *Key Management Service Developer Guide*.",
741
+ }),
742
+ ]),
743
+ }).annotate({
744
+ description:
745
+ "Specifies encryption-related information for an Amazon S3 bucket that is a destination for replicated objects.\n If you're specifying a customer managed KMS key, we recommend using a fully qualified KMS key ARN. If you use a KMS key alias instead, then KMS resolves the key within the requester’s account. This behavior can result in data that's encrypted with a KMS key that belongs to the requester, and not the bucket owner.",
746
+ identifier: "EncryptionConfiguration",
747
+ });
748
+
749
+ interface ReplicationTimeValue {
750
+ readonly Minutes: number;
751
+ }
752
+
753
+ const ReplicationTimeValue = Schema.Struct({
754
+ Minutes: Schema.Number.annotate({
755
+ description:
756
+ "Contains an integer specifying time in minutes. \n Valid value: 15",
757
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
758
+ }).annotate({
759
+ description:
760
+ "A container specifying the time value for S3 Replication Time Control (S3 RTC) and replication metrics ``EventThreshold``.",
761
+ identifier: "ReplicationTimeValue",
762
+ });
763
+
764
+ interface ReplicaModifications {
765
+ readonly Status: "Enabled" | "Disabled";
766
+ }
767
+
768
+ const ReplicaModifications = Schema.Struct({
769
+ Status: Schema.Literals(["Enabled", "Disabled"]).annotate({
770
+ description:
771
+ "Specifies whether Amazon S3 replicates modifications on replicas.\n *Allowed values*: ``Enabled`` | ``Disabled``",
772
+ }),
773
+ }).annotate({
774
+ description:
775
+ "A filter that you can specify for selection for modifications on replicas.",
776
+ identifier: "ReplicaModifications",
777
+ });
778
+
779
+ interface SseKmsEncryptedObjects {
780
+ readonly Status: "Disabled" | "Enabled";
781
+ }
782
+
783
+ const SseKmsEncryptedObjects = Schema.Struct({
784
+ Status: Schema.Literals(["Disabled", "Enabled"]).annotate({
785
+ description:
786
+ "Specifies whether Amazon S3 replicates objects created with server-side encryption using an AWS KMS key stored in AWS Key Management Service.",
787
+ }),
788
+ }).annotate({
789
+ description:
790
+ "A container for filter information for the selection of S3 objects encrypted with AWS KMS.",
791
+ identifier: "SseKmsEncryptedObjects",
792
+ });
793
+
794
+ interface Tag {
795
+ readonly Key: string;
796
+ readonly Value: string;
797
+ }
798
+
799
+ const Tag = Schema.Struct({
800
+ Key: Schema.String.annotate({ description: "Name of the object key." })
801
+ .check(
802
+ Schema.isMinLength(1).annotate({
803
+ expected: "a value with a length of at least 1",
804
+ }),
805
+ )
806
+ .check(
807
+ Schema.isMaxCodePoints(128).annotate({
808
+ expected: "a string with at most 128 code points",
809
+ }),
810
+ ),
811
+ Value: Schema.String.annotate({ description: "Value of the tag." }).check(
812
+ Schema.isMaxCodePoints(256).annotate({
813
+ expected: "a string with at most 256 code points",
814
+ }),
815
+ ),
816
+ }).annotate({
817
+ description: "A container of a key value name pair.",
818
+ identifier: "Tag",
819
+ });
820
+
821
+ interface VersioningConfiguration {
822
+ readonly Status: "Enabled" | "Suspended";
823
+ }
824
+
825
+ const VersioningConfiguration = Schema.Struct({
826
+ Status: Schema.Literals(["Enabled", "Suspended"]).annotate({
827
+ description: "The versioning state of the bucket.",
828
+ }),
829
+ }).annotate({
830
+ description:
831
+ "Describes the versioning state of an Amazon S3 bucket. For more information, see [PUT Bucket versioning](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTVersioningStatus.html) in the *Amazon S3 API Reference*.\n Keep the following timing in mind when enabling, suspending, or transitioning between versioning states:\n + *Enabling versioning* - Changes may take up to 15 minutes to propagate across all AWS regions for full consistency.\n + *Suspending versioning* - Takes effect immediately with no propagation delay.\n + *Transitioning between states* - Any change from Suspended to Enabled has a 15-minute delay.",
832
+ identifier: "VersioningConfiguration",
833
+ });
834
+
835
+ interface RedirectRule {
836
+ readonly HostName?: string;
837
+ readonly HttpRedirectCode?: string;
838
+ readonly Protocol?: "http" | "https";
839
+ readonly ReplaceKeyPrefixWith?: string;
840
+ readonly ReplaceKeyWith?: string;
841
+ }
842
+
843
+ const RedirectRule = Schema.Struct({
844
+ HostName: Schema.optionalKey(
845
+ Schema.String.annotate({
846
+ description: "The host name to use in the redirect request.",
847
+ }),
848
+ ),
849
+ HttpRedirectCode: Schema.optionalKey(
850
+ Schema.String.annotate({
851
+ description:
852
+ "The HTTP redirect code to use on the response. Not required if one of the siblings is present.",
853
+ }),
854
+ ),
855
+ Protocol: Schema.optionalKey(
856
+ Schema.Literals(["http", "https"]).annotate({
857
+ description:
858
+ "Protocol to use when redirecting requests. The default is the protocol that is used in the original request.",
859
+ }),
860
+ ),
861
+ ReplaceKeyPrefixWith: Schema.optionalKey(
862
+ Schema.String.annotate({
863
+ description:
864
+ "The object key prefix to use in the redirect request. For example, to redirect requests for all pages with prefix ``docs/`` (objects in the ``docs/`` folder) to ``documents/``, you can set a condition block with ``KeyPrefixEquals`` set to ``docs/`` and in the Redirect set ``ReplaceKeyPrefixWith`` to ``/documents``. Not required if one of the siblings is present. Can be present only if ``ReplaceKeyWith`` is not provided.\n Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see [XML related object key constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints).",
865
+ }),
866
+ ),
867
+ ReplaceKeyWith: Schema.optionalKey(
868
+ Schema.String.annotate({
869
+ description:
870
+ "The specific object key to use in the redirect request. For example, redirect request to ``error.html``. Not required if one of the siblings is present. Can be present only if ``ReplaceKeyPrefixWith`` is not provided.\n Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see [XML related object key constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints).",
871
+ }),
872
+ ),
873
+ }).annotate({
874
+ description:
875
+ "Specifies how requests are redirected. In the event of an error, you can specify a different error code to return.",
876
+ identifier: "RedirectRule",
877
+ });
878
+
879
+ interface RoutingRuleCondition {
880
+ readonly KeyPrefixEquals?: string;
881
+ readonly HttpErrorCodeReturnedEquals?: string;
882
+ }
883
+
884
+ const RoutingRuleCondition = Schema.Struct({
885
+ KeyPrefixEquals: Schema.optionalKey(
886
+ Schema.String.annotate({
887
+ description:
888
+ "The object key name prefix when the redirect is applied. For example, to redirect requests for ``ExamplePage.html``, the key prefix will be ``ExamplePage.html``. To redirect request for all pages with the prefix ``docs/``, the key prefix will be ``docs/``, which identifies all objects in the docs/ folder.\n Required when the parent element ``Condition`` is specified and sibling ``HttpErrorCodeReturnedEquals`` is not specified. If both conditions are specified, both must be true for the redirect to be applied.",
889
+ }),
890
+ ),
891
+ HttpErrorCodeReturnedEquals: Schema.optionalKey(
892
+ Schema.String.annotate({
893
+ description:
894
+ "The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.\n Required when parent element ``Condition`` is specified and sibling ``KeyPrefixEquals`` is not specified. If both are specified, then both must be true for the redirect to be applied.",
895
+ }),
896
+ ),
897
+ }).annotate({
898
+ description:
899
+ "A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the ``/docs`` folder, redirect to the ``/documents`` folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.",
900
+ identifier: "RoutingRuleCondition",
901
+ });
902
+
903
+ interface RedirectAllRequestsTo {
904
+ readonly HostName: string;
905
+ readonly Protocol?: "http" | "https";
906
+ }
907
+
908
+ const RedirectAllRequestsTo = Schema.Struct({
909
+ HostName: Schema.String.annotate({
910
+ description: "Name of the host where requests are redirected.",
911
+ }),
912
+ Protocol: Schema.optionalKey(
913
+ Schema.Literals(["http", "https"]).annotate({
914
+ description:
915
+ "Protocol to use when redirecting requests. The default is the protocol that is used in the original request.",
916
+ }),
917
+ ),
918
+ }).annotate({
919
+ description:
920
+ "Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.",
921
+ identifier: "RedirectAllRequestsTo",
922
+ });
923
+
924
+ type Arn = string;
925
+
926
+ const Arn = Schema.String.annotate({
927
+ description: "the Amazon Resource Name (ARN) of the specified bucket.",
928
+ identifier: "Arn",
929
+ });
930
+
931
+ interface Destination_2 {
932
+ readonly BucketArn: string;
933
+ readonly BucketAccountId?: string;
934
+ readonly Format: "CSV" | "ORC" | "Parquet";
935
+ readonly Prefix?: string;
936
+ }
937
+
938
+ const Destination_2 = Schema.Struct({
939
+ BucketArn: Schema.String.annotate({
940
+ description:
941
+ "The Amazon Resource Name (ARN) of the bucket to which data is exported.",
942
+ }),
943
+ BucketAccountId: Schema.optionalKey(
944
+ Schema.String.annotate({
945
+ description:
946
+ "The account ID that owns the destination S3 bucket. If no account ID is provided, the owner is not validated before exporting data.\n Although this value is optional, we strongly recommend that you set it to help prevent problems if the destination bucket ownership changes.",
947
+ }),
948
+ ),
949
+ Format: Schema.Literals(["CSV", "ORC", "Parquet"]).annotate({
950
+ description:
951
+ "Specifies the file format used when exporting data to Amazon S3.\n *Allowed values*: ``CSV`` | ``ORC`` | ``Parquet``",
952
+ }),
953
+ Prefix: Schema.optionalKey(
954
+ Schema.String.annotate({
955
+ description:
956
+ "The prefix to use when exporting data. The prefix is prepended to all results.",
957
+ }),
958
+ ),
959
+ }).annotate({
960
+ description:
961
+ "Specifies information about where to publish analysis or configuration results for an Amazon S3 bucket.",
962
+ identifier: "Destination_2",
963
+ });
964
+
965
+ interface ServerSideEncryptionByDefault_1 {
966
+ readonly KMSMasterKeyID?: string;
967
+ readonly SSEAlgorithm: "aws:kms" | "AES256" | "aws:kms:dsse";
968
+ }
969
+
970
+ const ServerSideEncryptionByDefault_1 = Schema.Struct({
971
+ KMSMasterKeyID: Schema.optionalKey(
972
+ Schema.String.annotate({
973
+ description:
974
+ "AWS Key Management Service (KMS) customer managed key ID to use for the default encryption. \n + *General purpose buckets* - This parameter is allowed if and only if ``SSEAlgorithm`` is set to ``aws:kms`` or ``aws:kms:dsse``.\n + *Directory buckets* - This parameter is allowed if and only if ``SSEAlgorithm`` is set to ``aws:kms``.\n \n You can specify the key ID, key alias, or the Amazon Resource Name (ARN) of the KMS key.\n + Key ID: ``1234abcd-12ab-34cd-56ef-1234567890ab``\n + Key ARN: ``arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab``\n + Key Alias: ``alias/alias-name``\n \n If you are using encryption with cross-account or AWS service operations, you must use a fully qualified KMS key ARN. For more information, see [Using encryption for cross-account operations](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html#bucket-encryption-update-bucket-policy).\n + *General purpose buckets* - If you're specifying a customer managed KMS key, we recommend using a fully qualified KMS key ARN. If you use a KMS key alias instead, then KMS resolves the key within the requester’s account. This behavior can result in data that's encrypted with a KMS key that belongs to the requester, and not the bucket owner. Also, if you use a key ID, you can run into a LogDestination undeliverable error when creating a VPC flow log. \n + *Directory buckets* - When you specify an [customer managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) for encryption in your directory bucket, only use the key ID or key ARN. The key alias format of the KMS key isn't supported.\n \n Amazon S3 only supports symmetric encryption KMS keys. For more information, see [Asymmetric keys in KMS](https://docs.aws.amazon.com//kms/latest/developerguide/symmetric-asymmetric.html) in the *Key Management Service Developer Guide*.",
975
+ }),
976
+ ),
977
+ SSEAlgorithm: Schema.Literals(["aws:kms", "AES256", "aws:kms:dsse"]).annotate(
978
+ {
979
+ description:
980
+ "Server-side encryption algorithm to use for the default encryption.\n For directory buckets, there are only two supported values for server-side encryption: ``AES256`` and ``aws:kms``.",
981
+ },
982
+ ),
983
+ }).annotate({
984
+ description:
985
+ "Describes the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied. For more information, see [PutBucketEncryption](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTencryption.html).\n + *General purpose buckets* - If you don't specify a customer managed key at configuration, Amazon S3 automatically creates an AWS KMS key (``aws/s3``) in your AWS account the first time that you add an object encrypted with SSE-KMS to a bucket. By default, Amazon S3 uses this KMS key for SSE-KMS. \n + *Directory buckets* - Your SSE-KMS configuration can only support 1 [customer managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) per directory bucket's lifetime. The [managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) (``aws/s3``) isn't supported. \n + *Directory buckets* - For directory buckets, there are only two supported options for server-side encryption: SSE-S3 and SSE-KMS.",
986
+ identifier: "ServerSideEncryptionByDefault_1",
987
+ });
988
+
989
+ interface EncryptionConfiguration_1 {
990
+ readonly ReplicaKmsKeyID: string;
991
+ }
992
+
993
+ const EncryptionConfiguration_1 = Schema.Struct({
994
+ ReplicaKmsKeyID: Schema.String.annotate({
995
+ description:
996
+ "Specifies the ID (Key ARN or Alias ARN) of the customer managed AWS KMS key stored in AWS Key Management Service (KMS) for the destination bucket. Amazon S3 uses this key to encrypt replica objects. Amazon S3 only supports symmetric encryption KMS keys. For more information, see [Asymmetric keys in KMS](https://docs.aws.amazon.com//kms/latest/developerguide/symmetric-asymmetric.html) in the *Key Management Service Developer Guide*.",
997
+ }),
998
+ }).annotate({
999
+ description:
1000
+ "Specifies encryption-related information for an Amazon S3 bucket that is a destination for replicated objects.\n If you're specifying a customer managed KMS key, we recommend using a fully qualified KMS key ARN. If you use a KMS key alias instead, then KMS resolves the key within the requester’s account. This behavior can result in data that's encrypted with a KMS key that belongs to the requester, and not the bucket owner.",
1001
+ identifier: "EncryptionConfiguration_1",
1002
+ });
1003
+
1004
+ interface MetricsConfiguration {
1005
+ readonly AccessPointArn?: string;
1006
+ readonly Id: string;
1007
+ readonly Prefix?: string;
1008
+ readonly TagFilters?: ReadonlyArray<TagFilter>;
1009
+ }
1010
+
1011
+ const MetricsConfiguration = Schema.Struct({
1012
+ AccessPointArn: Schema.optionalKey(
1013
+ Schema.String.annotate({
1014
+ description:
1015
+ "The access point that was used while performing operations on the object. The metrics configuration only includes objects that meet the filter's criteria.",
1016
+ }),
1017
+ ),
1018
+ Id: Schema.String.annotate({
1019
+ description:
1020
+ "The ID used to identify the metrics configuration. This can be any value you choose that helps you identify your metrics configuration.",
1021
+ }),
1022
+ Prefix: Schema.optionalKey(
1023
+ Schema.String.annotate({
1024
+ description:
1025
+ "The prefix that an object must have to be included in the metrics results.",
1026
+ }),
1027
+ ),
1028
+ TagFilters: Schema.optionalKey(
1029
+ Schema.Array(TagFilter)
1030
+ .annotate({
1031
+ description:
1032
+ "Specifies a list of tag filters to use as a metrics configuration filter. The metrics configuration includes only objects that meet the filter's criteria.",
1033
+ })
1034
+ .check(
1035
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1036
+ ),
1037
+ ),
1038
+ }).annotate({
1039
+ description:
1040
+ "Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For examples, see [AWS::S3::Bucket](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html#aws-properties-s3-bucket--examples). For more information, see [PUT Bucket metrics](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTMetricConfiguration.html) in the *Amazon S3 API Reference*.",
1041
+ identifier: "MetricsConfiguration",
1042
+ });
1043
+
1044
+ interface ReplicationRuleAndOperator {
1045
+ readonly Prefix?: string;
1046
+ readonly TagFilters?: ReadonlyArray<TagFilter>;
1047
+ }
1048
+
1049
+ const ReplicationRuleAndOperator = Schema.Struct({
1050
+ Prefix: Schema.optionalKey(
1051
+ Schema.String.annotate({
1052
+ description:
1053
+ "An object key name prefix that identifies the subset of objects to which the rule applies.",
1054
+ }),
1055
+ ),
1056
+ TagFilters: Schema.optionalKey(
1057
+ Schema.Array(TagFilter)
1058
+ .annotate({
1059
+ description: "An array of tags containing key and value pairs.",
1060
+ })
1061
+ .check(
1062
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1063
+ ),
1064
+ ),
1065
+ }).annotate({
1066
+ description:
1067
+ "A container for specifying rule filters. The filters determine the subset of objects to which the rule applies. This element is required only if you specify more than one filter. \n For example:\n + If you specify both a ``Prefix`` and a ``TagFilter``, wrap these filters in an ``And`` tag. \n + If you specify a filter based on multiple tags, wrap the ``TagFilter`` elements in an ``And`` tag",
1068
+ identifier: "ReplicationRuleAndOperator",
1069
+ });
1070
+
1071
+ interface DataExport {
1072
+ readonly Destination: Destination;
1073
+ readonly OutputSchemaVersion: "V_1";
1074
+ }
1075
+
1076
+ const DataExport = Schema.Struct({
1077
+ Destination: Destination,
1078
+ OutputSchemaVersion: Schema.Literal("V_1").annotate({
1079
+ description:
1080
+ "The version of the output schema to use when exporting data. Must be ``V_1``.",
1081
+ }),
1082
+ }).annotate({
1083
+ description:
1084
+ "Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.",
1085
+ identifier: "DataExport",
1086
+ });
1087
+
1088
+ interface BlockedEncryptionTypes {
1089
+ readonly EncryptionType?: BlockedEncryptionTypeList;
1090
+ }
1091
+
1092
+ const BlockedEncryptionTypes = Schema.Struct({
1093
+ EncryptionType: Schema.optionalKey(BlockedEncryptionTypeList),
1094
+ }).annotate({
1095
+ description:
1096
+ "A bucket-level setting for Amazon S3 general purpose buckets used to prevent the upload of new objects encrypted with the specified server-side encryption type. For example, blocking an encryption type will block ``PutObject``, ``CopyObject``, ``PostObject``, multipart upload, and replication requests to the bucket for objects with the specified encryption type. However, you can continue to read and list any pre-existing objects already encrypted with the specified encryption type. For more information, see [Blocking or unblocking SSE-C for a general purpose bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/blocking-unblocking-s3-c-encryption-gpb.html).\n This data type is used with the following actions:\n + [PutBucketEncryption](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketEncryption.html) \n + [GetBucketEncryption](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketEncryption.html) \n + [DeleteBucketEncryption](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketEncryption.html) \n \n + Permissions You must have the s3:PutEncryptionConfiguration permission to block or unblock an encryption type for a bucket. You must have the s3:GetEncryptionConfiguration permission to view a bucket's encryption type.",
1097
+ identifier: "BlockedEncryptionTypes",
1098
+ });
1099
+
1100
+ interface CorsConfiguration {
1101
+ readonly CorsRules: ReadonlyArray<CorsRule>;
1102
+ }
1103
+
1104
+ const CorsConfiguration = Schema.Struct({
1105
+ CorsRules: Schema.Array(CorsRule)
1106
+ .annotate({
1107
+ description:
1108
+ "A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration.",
1109
+ })
1110
+ .check(
1111
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1112
+ ),
1113
+ }).annotate({
1114
+ description:
1115
+ "Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see [Enabling Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the *Amazon S3 User Guide*.",
1116
+ identifier: "CorsConfiguration",
1117
+ });
1118
+
1119
+ interface IntelligentTieringConfiguration {
1120
+ readonly Id: string;
1121
+ readonly Prefix?: string;
1122
+ readonly Status: "Disabled" | "Enabled";
1123
+ readonly TagFilters?: ReadonlyArray<TagFilter>;
1124
+ readonly Tierings: ReadonlyArray<Tiering>;
1125
+ }
1126
+
1127
+ const IntelligentTieringConfiguration = Schema.Struct({
1128
+ Id: Schema.String.annotate({
1129
+ description:
1130
+ "The ID used to identify the S3 Intelligent-Tiering configuration.",
1131
+ }),
1132
+ Prefix: Schema.optionalKey(
1133
+ Schema.String.annotate({
1134
+ description:
1135
+ "An object key name prefix that identifies the subset of objects to which the rule applies.",
1136
+ }),
1137
+ ),
1138
+ Status: Schema.Literals(["Disabled", "Enabled"]).annotate({
1139
+ description: "Specifies the status of the configuration.",
1140
+ }),
1141
+ TagFilters: Schema.optionalKey(
1142
+ Schema.Array(TagFilter)
1143
+ .annotate({ description: "A container for a key-value pair." })
1144
+ .check(
1145
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1146
+ ),
1147
+ ),
1148
+ Tierings: Schema.Array(Tiering)
1149
+ .annotate({
1150
+ description:
1151
+ "Specifies a list of S3 Intelligent-Tiering storage class tiers in the configuration. At least one tier must be defined in the list. At most, you can specify two tiers in the list, one for each available AccessTier: ``ARCHIVE_ACCESS`` and ``DEEP_ARCHIVE_ACCESS``.\n You only need Intelligent Tiering Configuration enabled on a bucket if you want to automatically move objects stored in the Intelligent-Tiering storage class to Archive Access or Deep Archive Access tiers.",
1152
+ })
1153
+ .check(
1154
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1155
+ ),
1156
+ }).annotate({
1157
+ description:
1158
+ "Specifies the S3 Intelligent-Tiering configuration for an Amazon S3 bucket.\n For information about the S3 Intelligent-Tiering storage class, see [Storage class for automatically optimizing frequently and infrequently accessed objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access).",
1159
+ identifier: "IntelligentTieringConfiguration",
1160
+ });
1161
+
1162
+ interface InventoryConfiguration {
1163
+ readonly Destination: Destination_1;
1164
+ readonly Enabled: boolean;
1165
+ readonly Id: string;
1166
+ readonly IncludedObjectVersions: "All" | "Current";
1167
+ readonly OptionalFields?: ReadonlyArray<
1168
+ | "Size"
1169
+ | "LastModifiedDate"
1170
+ | "StorageClass"
1171
+ | "ETag"
1172
+ | "IsMultipartUploaded"
1173
+ | "ReplicationStatus"
1174
+ | "EncryptionStatus"
1175
+ | "ObjectLockRetainUntilDate"
1176
+ | "ObjectLockMode"
1177
+ | "ObjectLockLegalHoldStatus"
1178
+ | "IntelligentTieringAccessTier"
1179
+ | "BucketKeyStatus"
1180
+ | "ChecksumAlgorithm"
1181
+ | "ObjectAccessControlList"
1182
+ | "ObjectOwner"
1183
+ | "LifecycleExpirationDate"
1184
+ >;
1185
+ readonly Prefix?: string;
1186
+ readonly ScheduleFrequency: "Daily" | "Weekly";
1187
+ }
1188
+
1189
+ const InventoryConfiguration = Schema.Struct({
1190
+ Destination: Destination_1,
1191
+ Enabled: Schema.Boolean.annotate({
1192
+ description:
1193
+ "Specifies whether the inventory is enabled or disabled. If set to ``True``, an inventory list is generated. If set to ``False``, no inventory list is generated.",
1194
+ }),
1195
+ Id: Schema.String.annotate({
1196
+ description: "The ID used to identify the inventory configuration.",
1197
+ }),
1198
+ IncludedObjectVersions: Schema.Literals(["All", "Current"]).annotate({
1199
+ description:
1200
+ "Object versions to include in the inventory list. If set to ``All``, the list includes all the object versions, which adds the version-related fields ``VersionId``, ``IsLatest``, and ``DeleteMarker`` to the list. If set to ``Current``, the list does not contain these version-related fields.",
1201
+ }),
1202
+ OptionalFields: Schema.optionalKey(
1203
+ Schema.Array(
1204
+ Schema.Literals([
1205
+ "Size",
1206
+ "LastModifiedDate",
1207
+ "StorageClass",
1208
+ "ETag",
1209
+ "IsMultipartUploaded",
1210
+ "ReplicationStatus",
1211
+ "EncryptionStatus",
1212
+ "ObjectLockRetainUntilDate",
1213
+ "ObjectLockMode",
1214
+ "ObjectLockLegalHoldStatus",
1215
+ "IntelligentTieringAccessTier",
1216
+ "BucketKeyStatus",
1217
+ "ChecksumAlgorithm",
1218
+ "ObjectAccessControlList",
1219
+ "ObjectOwner",
1220
+ "LifecycleExpirationDate",
1221
+ ]),
1222
+ )
1223
+ .annotate({
1224
+ description:
1225
+ "Contains the optional fields that are included in the inventory results.",
1226
+ })
1227
+ .check(
1228
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1229
+ ),
1230
+ ),
1231
+ Prefix: Schema.optionalKey(
1232
+ Schema.String.annotate({
1233
+ description: "Specifies the inventory filter prefix.",
1234
+ }),
1235
+ ),
1236
+ ScheduleFrequency: Schema.Literals(["Daily", "Weekly"]).annotate({
1237
+ description: "Specifies the schedule for generating inventory results.",
1238
+ }),
1239
+ }).annotate({
1240
+ description:
1241
+ "Specifies the S3 Inventory configuration for an Amazon S3 bucket. For more information, see [GET Bucket inventory](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the *Amazon S3 API Reference*.",
1242
+ identifier: "InventoryConfiguration",
1243
+ });
1244
+
1245
+ interface Transition {
1246
+ readonly StorageClass:
1247
+ | "DEEP_ARCHIVE"
1248
+ | "GLACIER"
1249
+ | "Glacier"
1250
+ | "GLACIER_IR"
1251
+ | "INTELLIGENT_TIERING"
1252
+ | "ONEZONE_IA"
1253
+ | "STANDARD_IA";
1254
+ readonly TransitionDate?: Iso8601UTC;
1255
+ readonly TransitionInDays?: number;
1256
+ }
1257
+
1258
+ const Transition = Schema.Struct({
1259
+ StorageClass: Schema.Literals([
1260
+ "DEEP_ARCHIVE",
1261
+ "GLACIER",
1262
+ "Glacier",
1263
+ "GLACIER_IR",
1264
+ "INTELLIGENT_TIERING",
1265
+ "ONEZONE_IA",
1266
+ "STANDARD_IA",
1267
+ ]).annotate({
1268
+ description:
1269
+ "The storage class to which you want the object to transition.",
1270
+ }),
1271
+ TransitionDate: Schema.optionalKey(Iso8601UTC),
1272
+ TransitionInDays: Schema.optionalKey(
1273
+ Schema.Number.annotate({
1274
+ description:
1275
+ "Indicates the number of days after creation when objects are transitioned to the specified storage class. If the specified storage class is ``INTELLIGENT_TIERING``, ``GLACIER_IR``, ``GLACIER``, or ``DEEP_ARCHIVE``, valid values are ``0`` or positive integers. If the specified storage class is ``STANDARD_IA`` or ``ONEZONE_IA``, valid values are positive integers greater than ``30``. Be aware that some storage classes have a minimum storage duration and that you're charged for transitioning objects before their minimum storage duration. For more information, see [Constraints and considerations for transitions](https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-transition-general-considerations.html#lifecycle-configuration-constraints) in the *Amazon S3 User Guide*.",
1276
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1277
+ ),
1278
+ }).annotate({
1279
+ description:
1280
+ "Specifies when an object transitions to a specified storage class. For more information about Amazon S3 lifecycle configuration rules, see [Transitioning Objects Using Amazon S3 Lifecycle](https://docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-transition-general-considerations.html) in the *Amazon S3 User Guide*.",
1281
+ identifier: "Transition",
1282
+ });
1283
+
1284
+ type TargetObjectKeyFormat =
1285
+ | {
1286
+ readonly SimplePrefix: {
1287
+ readonly [x: string]: never;
1288
+ };
1289
+ }
1290
+ | {
1291
+ readonly PartitionedPrefix: PartitionedPrefix;
1292
+ };
1293
+
1294
+ const TargetObjectKeyFormat = Schema.Union(
1295
+ [
1296
+ Schema.Struct({
1297
+ SimplePrefix: Schema.Record(Schema.String, Schema.Never).annotate({
1298
+ description:
1299
+ "This format defaults the prefix to the given log file prefix for delivering server access log file.",
1300
+ }),
1301
+ }).annotate({
1302
+ description:
1303
+ "Describes the key format for server access log file in the target bucket. You can choose between SimplePrefix and PartitionedPrefix.",
1304
+ }),
1305
+ Schema.Struct({ PartitionedPrefix: PartitionedPrefix }).annotate({
1306
+ description:
1307
+ "Describes the key format for server access log file in the target bucket. You can choose between SimplePrefix and PartitionedPrefix.",
1308
+ }),
1309
+ ],
1310
+ { mode: "oneOf" },
1311
+ ).annotate({ identifier: "TargetObjectKeyFormat" });
1312
+
1313
+ interface MetadataTableConfiguration {
1314
+ readonly S3TablesDestination: S3TablesDestination;
1315
+ }
1316
+
1317
+ const MetadataTableConfiguration = Schema.Struct({
1318
+ S3TablesDestination: S3TablesDestination,
1319
+ }).annotate({
1320
+ description:
1321
+ "We recommend that you create your S3 Metadata configurations by using the V2 [MetadataConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-s3-bucket-metadataconfiguration.html) resource type. We no longer recommend using the V1 ``MetadataTableConfiguration`` resource type. \n If you created your S3 Metadata configuration before July 15, 2025, we recommend that you delete and re-create your configuration by using the [MetadataConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-s3-bucket-metadataconfiguration.html) resource type so that you can expire journal table records and create a live inventory table.\n Creates a V1 S3 Metadata configuration for a general purpose bucket. For more information, see [Accelerating data discovery with S3 Metadata](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-overview.html) in the *Amazon S3 User Guide*.",
1322
+ identifier: "MetadataTableConfiguration",
1323
+ });
1324
+
1325
+ interface JournalTableConfiguration {
1326
+ readonly TableName?: string;
1327
+ readonly TableArn?: string;
1328
+ readonly RecordExpiration: RecordExpiration;
1329
+ readonly EncryptionConfiguration?: MetadataTableEncryptionConfiguration;
1330
+ }
1331
+
1332
+ const JournalTableConfiguration = Schema.Struct({
1333
+ TableName: Schema.optionalKey(
1334
+ Schema.String.annotate({ description: "The name of the journal table." }),
1335
+ ),
1336
+ TableArn: Schema.optionalKey(
1337
+ Schema.String.annotate({
1338
+ description: "The Amazon Resource Name (ARN) for the journal table.",
1339
+ }),
1340
+ ),
1341
+ RecordExpiration: RecordExpiration,
1342
+ EncryptionConfiguration: Schema.optionalKey(
1343
+ MetadataTableEncryptionConfiguration,
1344
+ ),
1345
+ }).annotate({
1346
+ description:
1347
+ "The journal table configuration for an S3 Metadata configuration.",
1348
+ identifier: "JournalTableConfiguration",
1349
+ });
1350
+
1351
+ interface InventoryTableConfiguration {
1352
+ readonly TableName?: string;
1353
+ readonly TableArn?: string;
1354
+ readonly ConfigurationState: "ENABLED" | "DISABLED";
1355
+ readonly EncryptionConfiguration?: MetadataTableEncryptionConfiguration;
1356
+ }
1357
+
1358
+ const InventoryTableConfiguration = Schema.Struct({
1359
+ TableName: Schema.optionalKey(
1360
+ Schema.String.annotate({ description: "The name of the inventory table." }),
1361
+ ),
1362
+ TableArn: Schema.optionalKey(
1363
+ Schema.String.annotate({
1364
+ description: "The Amazon Resource Name (ARN) for the inventory table.",
1365
+ }),
1366
+ ),
1367
+ ConfigurationState: Schema.Literals(["ENABLED", "DISABLED"]).annotate({
1368
+ description:
1369
+ "The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.",
1370
+ }),
1371
+ EncryptionConfiguration: Schema.optionalKey(
1372
+ MetadataTableEncryptionConfiguration,
1373
+ ),
1374
+ }).annotate({
1375
+ description:
1376
+ "The inventory table configuration for an S3 Metadata configuration.",
1377
+ identifier: "InventoryTableConfiguration",
1378
+ });
1379
+
1380
+ interface AnnotationTableConfiguration {
1381
+ readonly TableName?: string;
1382
+ readonly TableArn?: string;
1383
+ readonly ConfigurationState: "ENABLED" | "DISABLED";
1384
+ readonly EncryptionConfiguration?: MetadataTableEncryptionConfiguration;
1385
+ readonly Role?: string;
1386
+ }
1387
+
1388
+ const AnnotationTableConfiguration = Schema.Struct({
1389
+ TableName: Schema.optionalKey(
1390
+ Schema.String.annotate({
1391
+ description: "The name of the annotation table.",
1392
+ }),
1393
+ ),
1394
+ TableArn: Schema.optionalKey(
1395
+ Schema.String.annotate({ description: "The ARN of the annotation table." }),
1396
+ ),
1397
+ ConfigurationState: Schema.Literals(["ENABLED", "DISABLED"]).annotate({
1398
+ description:
1399
+ "Specifies whether annotation table configuration is enabled or disabled.",
1400
+ }),
1401
+ EncryptionConfiguration: Schema.optionalKey(
1402
+ MetadataTableEncryptionConfiguration,
1403
+ ),
1404
+ Role: Schema.optionalKey(
1405
+ Schema.String.annotate({
1406
+ description:
1407
+ "The ARN of the IAM role that grants Amazon S3 Metadata permission to read annotations from your bucket.",
1408
+ }),
1409
+ ),
1410
+ }).annotate({ description: "", identifier: "AnnotationTableConfiguration" });
1411
+
1412
+ interface S3KeyFilter {
1413
+ readonly Rules: ReadonlyArray<FilterRule>;
1414
+ }
1415
+
1416
+ const S3KeyFilter = Schema.Struct({
1417
+ Rules: Schema.Array(FilterRule)
1418
+ .annotate({
1419
+ description:
1420
+ "A list of containers for the key-value pair that defines the criteria for the filter rule.",
1421
+ })
1422
+ .check(
1423
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1424
+ ),
1425
+ }).annotate({
1426
+ description:
1427
+ "A container for object key name prefix and suffix filtering rules. For more information about object key name filtering, see [Configuring event notifications using object key name filtering](https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-filtering.html) in the *Amazon S3 User Guide*.\n The same type of filter rule cannot be used more than once. For example, you cannot specify two prefix rules.",
1428
+ identifier: "S3KeyFilter",
1429
+ });
1430
+
1431
+ interface ObjectLockRule {
1432
+ readonly DefaultRetention?: DefaultRetention;
1433
+ }
1434
+
1435
+ const ObjectLockRule = Schema.Struct({
1436
+ DefaultRetention: Schema.optionalKey(DefaultRetention),
1437
+ }).annotate({
1438
+ description:
1439
+ "Specifies the Object Lock rule for the specified object. Enable the this rule when you apply ``ObjectLockConfiguration`` to a bucket.",
1440
+ identifier: "ObjectLockRule",
1441
+ });
1442
+
1443
+ interface OwnershipControls {
1444
+ readonly Rules: ReadonlyArray<OwnershipControlsRule>;
1445
+ }
1446
+
1447
+ const OwnershipControls = Schema.Struct({
1448
+ Rules: Schema.Array(OwnershipControlsRule)
1449
+ .annotate({
1450
+ description:
1451
+ "Specifies the container element for Object Ownership rules.",
1452
+ })
1453
+ .check(
1454
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1455
+ ),
1456
+ }).annotate({
1457
+ description:
1458
+ "Specifies the container element for Object Ownership rules.\n S3 Object Ownership is an Amazon S3 bucket-level setting that you can use to disable access control lists (ACLs) and take ownership of every object in your bucket, simplifying access management for data stored in Amazon S3. For more information, see [Controlling ownership of objects and disabling ACLs](https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) in the *Amazon S3 User Guide*.",
1459
+ identifier: "OwnershipControls",
1460
+ });
1461
+
1462
+ interface Metrics {
1463
+ readonly EventThreshold?: ReplicationTimeValue;
1464
+ readonly Status: "Disabled" | "Enabled";
1465
+ }
1466
+
1467
+ const Metrics = Schema.Struct({
1468
+ EventThreshold: Schema.optionalKey(ReplicationTimeValue),
1469
+ Status: Schema.Literals(["Disabled", "Enabled"]).annotate({
1470
+ description: "Specifies whether the replication metrics are enabled.",
1471
+ }),
1472
+ }).annotate({
1473
+ description:
1474
+ "A container specifying replication metrics-related settings enabling replication metrics and events.",
1475
+ identifier: "Metrics",
1476
+ });
1477
+
1478
+ interface ReplicationTime {
1479
+ readonly Status: "Disabled" | "Enabled";
1480
+ readonly Time: ReplicationTimeValue;
1481
+ }
1482
+
1483
+ const ReplicationTime = Schema.Struct({
1484
+ Status: Schema.Literals(["Disabled", "Enabled"]).annotate({
1485
+ description: "Specifies whether the replication time is enabled.",
1486
+ }),
1487
+ Time: ReplicationTimeValue,
1488
+ }).annotate({
1489
+ description:
1490
+ "A container specifying S3 Replication Time Control (S3 RTC) related information, including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. Must be specified together with a ``Metrics`` block.",
1491
+ identifier: "ReplicationTime",
1492
+ });
1493
+
1494
+ interface SourceSelectionCriteria {
1495
+ readonly ReplicaModifications?: ReplicaModifications;
1496
+ readonly SseKmsEncryptedObjects?: SseKmsEncryptedObjects;
1497
+ }
1498
+
1499
+ const SourceSelectionCriteria = Schema.Struct({
1500
+ ReplicaModifications: Schema.optionalKey(ReplicaModifications),
1501
+ SseKmsEncryptedObjects: Schema.optionalKey(SseKmsEncryptedObjects),
1502
+ }).annotate({
1503
+ description:
1504
+ "A container that describes additional filters for identifying the source objects that you want to replicate. You can choose to enable or disable the replication of these objects.",
1505
+ identifier: "SourceSelectionCriteria",
1506
+ });
1507
+
1508
+ interface RoutingRule {
1509
+ readonly RedirectRule: RedirectRule;
1510
+ readonly RoutingRuleCondition?: RoutingRuleCondition;
1511
+ }
1512
+
1513
+ const RoutingRule = Schema.Struct({
1514
+ RedirectRule: RedirectRule,
1515
+ RoutingRuleCondition: Schema.optionalKey(RoutingRuleCondition),
1516
+ }).annotate({
1517
+ description:
1518
+ "Specifies the redirect behavior and when a redirect is applied. For more information about routing rules, see [Configuring advanced conditional redirects](https://docs.aws.amazon.com/AmazonS3/latest/dev/how-to-page-redirect.html#advanced-conditional-redirects) in the *Amazon S3 User Guide*.",
1519
+ identifier: "RoutingRule",
1520
+ });
1521
+
1522
+ interface DataExport_1 {
1523
+ readonly Destination: Destination_2;
1524
+ readonly OutputSchemaVersion: "V_1";
1525
+ }
1526
+
1527
+ const DataExport_1 = Schema.Struct({
1528
+ Destination: Destination_2,
1529
+ OutputSchemaVersion: Schema.Literal("V_1").annotate({
1530
+ description:
1531
+ "The version of the output schema to use when exporting data. Must be ``V_1``.",
1532
+ }),
1533
+ }).annotate({
1534
+ description:
1535
+ "Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.",
1536
+ identifier: "DataExport_1",
1537
+ });
1538
+
1539
+ interface InventoryConfiguration_1 {
1540
+ readonly Destination: Destination_2;
1541
+ readonly Enabled: boolean;
1542
+ readonly Id: string;
1543
+ readonly IncludedObjectVersions: "All" | "Current";
1544
+ readonly OptionalFields?: ReadonlyArray<
1545
+ | "Size"
1546
+ | "LastModifiedDate"
1547
+ | "StorageClass"
1548
+ | "ETag"
1549
+ | "IsMultipartUploaded"
1550
+ | "ReplicationStatus"
1551
+ | "EncryptionStatus"
1552
+ | "ObjectLockRetainUntilDate"
1553
+ | "ObjectLockMode"
1554
+ | "ObjectLockLegalHoldStatus"
1555
+ | "IntelligentTieringAccessTier"
1556
+ | "BucketKeyStatus"
1557
+ | "ChecksumAlgorithm"
1558
+ | "ObjectAccessControlList"
1559
+ | "ObjectOwner"
1560
+ | "LifecycleExpirationDate"
1561
+ >;
1562
+ readonly Prefix?: string;
1563
+ readonly ScheduleFrequency: "Daily" | "Weekly";
1564
+ }
1565
+
1566
+ const InventoryConfiguration_1 = Schema.Struct({
1567
+ Destination: Destination_2,
1568
+ Enabled: Schema.Boolean.annotate({
1569
+ description:
1570
+ "Specifies whether the inventory is enabled or disabled. If set to ``True``, an inventory list is generated. If set to ``False``, no inventory list is generated.",
1571
+ }),
1572
+ Id: Schema.String.annotate({
1573
+ description: "The ID used to identify the inventory configuration.",
1574
+ }),
1575
+ IncludedObjectVersions: Schema.Literals(["All", "Current"]).annotate({
1576
+ description:
1577
+ "Object versions to include in the inventory list. If set to ``All``, the list includes all the object versions, which adds the version-related fields ``VersionId``, ``IsLatest``, and ``DeleteMarker`` to the list. If set to ``Current``, the list does not contain these version-related fields.",
1578
+ }),
1579
+ OptionalFields: Schema.optionalKey(
1580
+ Schema.Array(
1581
+ Schema.Literals([
1582
+ "Size",
1583
+ "LastModifiedDate",
1584
+ "StorageClass",
1585
+ "ETag",
1586
+ "IsMultipartUploaded",
1587
+ "ReplicationStatus",
1588
+ "EncryptionStatus",
1589
+ "ObjectLockRetainUntilDate",
1590
+ "ObjectLockMode",
1591
+ "ObjectLockLegalHoldStatus",
1592
+ "IntelligentTieringAccessTier",
1593
+ "BucketKeyStatus",
1594
+ "ChecksumAlgorithm",
1595
+ "ObjectAccessControlList",
1596
+ "ObjectOwner",
1597
+ "LifecycleExpirationDate",
1598
+ ]),
1599
+ )
1600
+ .annotate({
1601
+ description:
1602
+ "Contains the optional fields that are included in the inventory results.",
1603
+ })
1604
+ .check(
1605
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1606
+ ),
1607
+ ),
1608
+ Prefix: Schema.optionalKey(
1609
+ Schema.String.annotate({
1610
+ description: "Specifies the inventory filter prefix.",
1611
+ }),
1612
+ ),
1613
+ ScheduleFrequency: Schema.Literals(["Daily", "Weekly"]).annotate({
1614
+ description: "Specifies the schedule for generating inventory results.",
1615
+ }),
1616
+ }).annotate({
1617
+ description:
1618
+ "Specifies the S3 Inventory configuration for an Amazon S3 bucket. For more information, see [GET Bucket inventory](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the *Amazon S3 API Reference*.",
1619
+ identifier: "InventoryConfiguration_1",
1620
+ });
1621
+
1622
+ interface ReplicationRuleFilter {
1623
+ readonly And?: ReplicationRuleAndOperator;
1624
+ readonly Prefix?: string;
1625
+ readonly TagFilter?: TagFilter;
1626
+ }
1627
+
1628
+ const ReplicationRuleFilter = Schema.Struct({
1629
+ And: Schema.optionalKey(ReplicationRuleAndOperator),
1630
+ Prefix: Schema.optionalKey(
1631
+ Schema.String.annotate({
1632
+ description:
1633
+ "An object key name prefix that identifies the subset of objects to which the rule applies.\n Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see [XML related object key constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints).",
1634
+ }),
1635
+ ),
1636
+ TagFilter: Schema.optionalKey(TagFilter),
1637
+ }).annotate({
1638
+ description:
1639
+ "A filter that identifies the subset of objects to which the replication rule applies. A ``Filter`` must specify exactly one ``Prefix``, ``TagFilter``, or an ``And`` child element.",
1640
+ identifier: "ReplicationRuleFilter",
1641
+ });
1642
+
1643
+ interface StorageClassAnalysis {
1644
+ readonly DataExport?: DataExport;
1645
+ }
1646
+
1647
+ const StorageClassAnalysis = Schema.Struct({
1648
+ DataExport: Schema.optionalKey(DataExport),
1649
+ }).annotate({
1650
+ description:
1651
+ "Specifies data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes for an Amazon S3 bucket.",
1652
+ identifier: "StorageClassAnalysis",
1653
+ });
1654
+
1655
+ interface ServerSideEncryptionRule {
1656
+ readonly BucketKeyEnabled?: boolean;
1657
+ readonly ServerSideEncryptionByDefault?: ServerSideEncryptionByDefault;
1658
+ readonly BlockedEncryptionTypes?: BlockedEncryptionTypes;
1659
+ }
1660
+
1661
+ const ServerSideEncryptionRule = Schema.Struct({
1662
+ BucketKeyEnabled: Schema.optionalKey(
1663
+ Schema.Boolean.annotate({
1664
+ description:
1665
+ "Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting the ``BucketKeyEnabled`` element to ``true`` causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.\n For more information, see [Amazon S3 Bucket Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) in the *Amazon S3 User Guide*.",
1666
+ }),
1667
+ ),
1668
+ ServerSideEncryptionByDefault: Schema.optionalKey(
1669
+ ServerSideEncryptionByDefault,
1670
+ ),
1671
+ BlockedEncryptionTypes: Schema.optionalKey(BlockedEncryptionTypes),
1672
+ }).annotate({
1673
+ description:
1674
+ "Specifies the default server-side encryption configuration.\n + *General purpose buckets* - If you're specifying a customer managed KMS key, we recommend using a fully qualified KMS key ARN. If you use a KMS key alias instead, then KMS resolves the key within the requester’s account. This behavior can result in data that's encrypted with a KMS key that belongs to the requester, and not the bucket owner.\n + *Directory buckets* - When you specify an [customer managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) for encryption in your directory bucket, only use the key ID or key ARN. The key alias format of the KMS key isn't supported.",
1675
+ identifier: "ServerSideEncryptionRule",
1676
+ });
1677
+
1678
+ interface ServerSideEncryptionRule_1 {
1679
+ readonly BucketKeyEnabled?: boolean;
1680
+ readonly ServerSideEncryptionByDefault?: ServerSideEncryptionByDefault_1;
1681
+ readonly BlockedEncryptionTypes?: BlockedEncryptionTypes;
1682
+ }
1683
+
1684
+ const ServerSideEncryptionRule_1 = Schema.Struct({
1685
+ BucketKeyEnabled: Schema.optionalKey(
1686
+ Schema.Boolean.annotate({
1687
+ description:
1688
+ "Specifies whether Amazon S3 should use an S3 Bucket Key with server-side encryption using KMS (SSE-KMS) for new objects in the bucket. Existing objects are not affected. Setting the ``BucketKeyEnabled`` element to ``true`` causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket Key is not enabled.\n For more information, see [Amazon S3 Bucket Keys](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) in the *Amazon S3 User Guide*.",
1689
+ }),
1690
+ ),
1691
+ ServerSideEncryptionByDefault: Schema.optionalKey(
1692
+ ServerSideEncryptionByDefault_1,
1693
+ ),
1694
+ BlockedEncryptionTypes: Schema.optionalKey(BlockedEncryptionTypes),
1695
+ }).annotate({
1696
+ description:
1697
+ "Specifies the default server-side encryption configuration.\n + *General purpose buckets* - If you're specifying a customer managed KMS key, we recommend using a fully qualified KMS key ARN. If you use a KMS key alias instead, then KMS resolves the key within the requester’s account. This behavior can result in data that's encrypted with a KMS key that belongs to the requester, and not the bucket owner.\n + *Directory buckets* - When you specify an [customer managed key](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk) for encryption in your directory bucket, only use the key ID or key ARN. The key alias format of the KMS key isn't supported.",
1698
+ identifier: "ServerSideEncryptionRule_1",
1699
+ });
1700
+
1701
+ interface Rule {
1702
+ readonly AbortIncompleteMultipartUpload?: AbortIncompleteMultipartUpload;
1703
+ readonly ExpirationDate?: Iso8601UTC;
1704
+ readonly ExpirationInDays?: number;
1705
+ readonly ExpiredObjectDeleteMarker?: boolean;
1706
+ readonly Id?: string;
1707
+ readonly NoncurrentVersionExpirationInDays?: number;
1708
+ readonly NoncurrentVersionExpiration?: NoncurrentVersionExpiration;
1709
+ readonly NoncurrentVersionTransition?: NoncurrentVersionTransition;
1710
+ readonly NoncurrentVersionTransitions?: ReadonlyArray<NoncurrentVersionTransition>;
1711
+ readonly Prefix?: string;
1712
+ readonly Status: "Enabled" | "Disabled";
1713
+ readonly TagFilters?: ReadonlyArray<TagFilter>;
1714
+ readonly ObjectSizeGreaterThan?: string;
1715
+ readonly ObjectSizeLessThan?: string;
1716
+ readonly Transition?: Transition;
1717
+ readonly Transitions?: ReadonlyArray<Transition>;
1718
+ }
1719
+
1720
+ const Rule = Schema.Struct({
1721
+ AbortIncompleteMultipartUpload: Schema.optionalKey(
1722
+ AbortIncompleteMultipartUpload,
1723
+ ),
1724
+ ExpirationDate: Schema.optionalKey(Iso8601UTC),
1725
+ ExpirationInDays: Schema.optionalKey(
1726
+ Schema.Number.annotate({
1727
+ description:
1728
+ "Indicates the number of days after creation when objects are deleted from Amazon S3 and Amazon S3 Glacier. If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time.",
1729
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1730
+ ),
1731
+ ExpiredObjectDeleteMarker: Schema.optionalKey(
1732
+ Schema.Boolean.annotate({
1733
+ description:
1734
+ "Indicates whether Amazon S3 will remove a delete marker without any noncurrent versions. If set to true, the delete marker will be removed if there are no noncurrent versions. This cannot be specified with ``ExpirationInDays``, ``ExpirationDate``, or ``TagFilters``.",
1735
+ }),
1736
+ ),
1737
+ Id: Schema.optionalKey(
1738
+ Schema.String.annotate({
1739
+ description:
1740
+ "Unique identifier for the rule. The value can't be longer than 255 characters.",
1741
+ }).check(
1742
+ Schema.isMaxCodePoints(255).annotate({
1743
+ expected: "a string with at most 255 code points",
1744
+ }),
1745
+ ),
1746
+ ),
1747
+ NoncurrentVersionExpirationInDays: Schema.optionalKey(
1748
+ Schema.Number.annotate({
1749
+ description:
1750
+ "(Deprecated.) For buckets with versioning enabled (or suspended), specifies the time, in days, between when a new version of the object is uploaded to the bucket and when old versions of the object expire. When object versions expire, Amazon S3 permanently deletes them. If you specify a transition and expiration time, the expiration time must be later than the transition time.",
1751
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1752
+ ),
1753
+ NoncurrentVersionExpiration: Schema.optionalKey(NoncurrentVersionExpiration),
1754
+ NoncurrentVersionTransition: Schema.optionalKey(NoncurrentVersionTransition),
1755
+ NoncurrentVersionTransitions: Schema.optionalKey(
1756
+ Schema.Array(NoncurrentVersionTransition)
1757
+ .annotate({
1758
+ description:
1759
+ "For buckets with versioning enabled (or suspended), one or more transition rules that specify when non-current objects transition to a specified storage class. If you specify a transition and expiration time, the expiration time must be later than the transition time. If you specify this property, don't specify the ``NoncurrentVersionTransition`` property.",
1760
+ })
1761
+ .check(
1762
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1763
+ ),
1764
+ ),
1765
+ Prefix: Schema.optionalKey(
1766
+ Schema.String.annotate({
1767
+ description:
1768
+ "Object key prefix that identifies one or more objects to which this rule applies.\n Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see [XML related object key constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints).",
1769
+ }),
1770
+ ),
1771
+ Status: Schema.Literals(["Enabled", "Disabled"]).annotate({
1772
+ description:
1773
+ "If ``Enabled``, the rule is currently being applied. If ``Disabled``, the rule is not currently being applied.",
1774
+ }),
1775
+ TagFilters: Schema.optionalKey(
1776
+ Schema.Array(TagFilter)
1777
+ .annotate({
1778
+ description:
1779
+ "Tags to use to identify a subset of objects to which the lifecycle rule applies.",
1780
+ })
1781
+ .check(
1782
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1783
+ ),
1784
+ ),
1785
+ ObjectSizeGreaterThan: Schema.optionalKey(
1786
+ Schema.String.annotate({
1787
+ description:
1788
+ "Specifies the minimum object size in bytes for this rule to apply to. Objects must be larger than this value in bytes. For more information about size based rules, see [Lifecycle configuration using size-based rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-configuration-examples.html#lc-size-rules) in the *Amazon S3 User Guide*.",
1789
+ })
1790
+ .check(
1791
+ Schema.isMaxCodePoints(20).annotate({
1792
+ expected: "a string with at most 20 code points",
1793
+ }),
1794
+ )
1795
+ .check(
1796
+ Schema.isPattern(new globalThis.RegExp("[0-9]+", "u")).annotate({
1797
+ expected: "a string matching the RegExp [0-9]+",
1798
+ }),
1799
+ ),
1800
+ ),
1801
+ ObjectSizeLessThan: Schema.optionalKey(
1802
+ Schema.String.annotate({
1803
+ description:
1804
+ "Specifies the maximum object size in bytes for this rule to apply to. Objects must be smaller than this value in bytes. For more information about sized based rules, see [Lifecycle configuration using size-based rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-configuration-examples.html#lc-size-rules) in the *Amazon S3 User Guide*.",
1805
+ })
1806
+ .check(
1807
+ Schema.isMaxCodePoints(20).annotate({
1808
+ expected: "a string with at most 20 code points",
1809
+ }),
1810
+ )
1811
+ .check(
1812
+ Schema.isPattern(new globalThis.RegExp("[0-9]+", "u")).annotate({
1813
+ expected: "a string matching the RegExp [0-9]+",
1814
+ }),
1815
+ ),
1816
+ ),
1817
+ Transition: Schema.optionalKey(Transition),
1818
+ Transitions: Schema.optionalKey(
1819
+ Schema.Array(Transition)
1820
+ .annotate({
1821
+ description:
1822
+ "One or more transition rules that specify when an object transitions to a specified storage class. If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time. If you specify this property, don't specify the ``Transition`` property.",
1823
+ })
1824
+ .check(
1825
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1826
+ ),
1827
+ ),
1828
+ }).annotate({
1829
+ description:
1830
+ "Specifies lifecycle rules for an Amazon S3 bucket. For more information, see [Put Bucket Lifecycle Configuration](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlifecycle.html) in the *Amazon S3 API Reference*.\n You must specify at least one of the following properties: ``AbortIncompleteMultipartUpload``, ``ExpirationDate``, ``ExpirationInDays``, ``NoncurrentVersionExpirationInDays``, ``NoncurrentVersionTransition``, ``NoncurrentVersionTransitions``, ``Transition``, or ``Transitions``.",
1831
+ identifier: "Rule",
1832
+ });
1833
+
1834
+ interface LoggingConfiguration {
1835
+ readonly DestinationBucketName?:
1836
+ | ResourceEntity<{
1837
+ readonly provider: "aws";
1838
+ readonly service: "s3";
1839
+ readonly resource: "bucket";
1840
+ }>
1841
+ | string;
1842
+ readonly LogFilePrefix?: string;
1843
+ readonly TargetObjectKeyFormat?: TargetObjectKeyFormat;
1844
+ }
1845
+
1846
+ const LoggingConfiguration = Schema.Struct({
1847
+ DestinationBucketName: Schema.optionalKey(
1848
+ Schema.Union([
1849
+ Schema.Union([
1850
+ ResourceReferenceSchema(
1851
+ Schema.Struct({
1852
+ provider: Schema.Literal("aws"),
1853
+ service: Schema.Literal("s3"),
1854
+ resource: Schema.Literal("bucket"),
1855
+ }),
1856
+ {
1857
+ value: null,
1858
+ outputs: [
1859
+ {
1860
+ source: ["BucketName"],
1861
+ target: [],
1862
+ },
1863
+ ],
1864
+ },
1865
+ ).annotate({ expected: "ResourceEntity" }),
1866
+ ]),
1867
+ Schema.String.annotate({
1868
+ description:
1869
+ "The name of the bucket where Amazon S3 should store server access log files. You can store log files in any bucket that you own. By default, logs are stored in the bucket where the ``LoggingConfiguration`` property is defined.",
1870
+ }),
1871
+ ]),
1872
+ ),
1873
+ LogFilePrefix: Schema.optionalKey(
1874
+ Schema.String.annotate({
1875
+ description:
1876
+ "A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.",
1877
+ }),
1878
+ ),
1879
+ TargetObjectKeyFormat: Schema.optionalKey(TargetObjectKeyFormat),
1880
+ }).annotate({
1881
+ description:
1882
+ "Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys for a bucket. For examples and more information, see [PUT Bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlogging.html) in the *Amazon S3 API Reference*.\n To successfully complete the ``AWS::S3::Bucket LoggingConfiguration`` request, you must have ``s3:PutObject`` and ``s3:PutObjectAcl`` in your IAM permissions.",
1883
+ identifier: "LoggingConfiguration",
1884
+ });
1885
+
1886
+ interface LoggingConfiguration_1 {
1887
+ readonly DestinationBucketName?: string;
1888
+ readonly LogFilePrefix?: string;
1889
+ readonly TargetObjectKeyFormat?: TargetObjectKeyFormat;
1890
+ }
1891
+
1892
+ const LoggingConfiguration_1 = Schema.Struct({
1893
+ DestinationBucketName: Schema.optionalKey(
1894
+ Schema.String.annotate({
1895
+ description:
1896
+ "The name of the bucket where Amazon S3 should store server access log files. You can store log files in any bucket that you own. By default, logs are stored in the bucket where the ``LoggingConfiguration`` property is defined.",
1897
+ }),
1898
+ ),
1899
+ LogFilePrefix: Schema.optionalKey(
1900
+ Schema.String.annotate({
1901
+ description:
1902
+ "A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.",
1903
+ }),
1904
+ ),
1905
+ TargetObjectKeyFormat: Schema.optionalKey(TargetObjectKeyFormat),
1906
+ }).annotate({
1907
+ description:
1908
+ "Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys for a bucket. For examples and more information, see [PUT Bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlogging.html) in the *Amazon S3 API Reference*.\n To successfully complete the ``AWS::S3::Bucket LoggingConfiguration`` request, you must have ``s3:PutObject`` and ``s3:PutObjectAcl`` in your IAM permissions.",
1909
+ identifier: "LoggingConfiguration_1",
1910
+ });
1911
+
1912
+ interface MetadataConfiguration {
1913
+ readonly Destination?: MetadataDestination;
1914
+ readonly JournalTableConfiguration: JournalTableConfiguration;
1915
+ readonly InventoryTableConfiguration?: InventoryTableConfiguration;
1916
+ readonly AnnotationTableConfiguration?: AnnotationTableConfiguration;
1917
+ }
1918
+
1919
+ const MetadataConfiguration = Schema.Struct({
1920
+ Destination: Schema.optionalKey(MetadataDestination),
1921
+ JournalTableConfiguration: JournalTableConfiguration,
1922
+ InventoryTableConfiguration: Schema.optionalKey(InventoryTableConfiguration),
1923
+ AnnotationTableConfiguration: Schema.optionalKey(
1924
+ AnnotationTableConfiguration,
1925
+ ),
1926
+ }).annotate({
1927
+ description:
1928
+ "Creates a V2 S3 Metadata configuration of a general purpose bucket. For more information, see [Accelerating data discovery with S3 Metadata](https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-overview.html) in the *Amazon S3 User Guide*.",
1929
+ identifier: "MetadataConfiguration",
1930
+ });
1931
+
1932
+ interface NotificationFilter {
1933
+ readonly S3Key: S3KeyFilter;
1934
+ }
1935
+
1936
+ const NotificationFilter = Schema.Struct({ S3Key: S3KeyFilter }).annotate({
1937
+ description:
1938
+ "Specifies object key name filtering rules. For information about key name filtering, see [Configuring event notifications using object key name filtering](https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-filtering.html) in the *Amazon S3 User Guide*.",
1939
+ identifier: "NotificationFilter",
1940
+ });
1941
+
1942
+ interface ObjectLockConfiguration {
1943
+ readonly ObjectLockEnabled?: "Enabled";
1944
+ readonly Rule?: ObjectLockRule;
1945
+ }
1946
+
1947
+ const ObjectLockConfiguration = Schema.Struct({
1948
+ ObjectLockEnabled: Schema.optionalKey(
1949
+ Schema.Literal("Enabled").annotate({
1950
+ description:
1951
+ "Indicates whether this bucket has an Object Lock configuration enabled. Enable ``ObjectLockEnabled`` when you apply ``ObjectLockConfiguration`` to a bucket.",
1952
+ }),
1953
+ ),
1954
+ Rule: Schema.optionalKey(ObjectLockRule),
1955
+ }).annotate({
1956
+ description:
1957
+ "Places an Object Lock configuration on the specified bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket. For more information, see [Locking Objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html).",
1958
+ identifier: "ObjectLockConfiguration",
1959
+ });
1960
+
1961
+ interface ReplicationDestination {
1962
+ readonly AccessControlTranslation?: AccessControlTranslation;
1963
+ readonly Account?: string;
1964
+ readonly Bucket:
1965
+ | ResourceEntity<{
1966
+ readonly provider: "aws";
1967
+ readonly service: "s3";
1968
+ readonly resource: "bucket";
1969
+ }>
1970
+ | string;
1971
+ readonly EncryptionConfiguration?: EncryptionConfiguration;
1972
+ readonly Metrics?: Metrics;
1973
+ readonly ReplicationTime?: ReplicationTime;
1974
+ readonly StorageClass?:
1975
+ | "DEEP_ARCHIVE"
1976
+ | "GLACIER"
1977
+ | "GLACIER_IR"
1978
+ | "INTELLIGENT_TIERING"
1979
+ | "ONEZONE_IA"
1980
+ | "REDUCED_REDUNDANCY"
1981
+ | "STANDARD"
1982
+ | "STANDARD_IA";
1983
+ }
1984
+
1985
+ const ReplicationDestination = Schema.Struct({
1986
+ AccessControlTranslation: Schema.optionalKey(AccessControlTranslation),
1987
+ Account: Schema.optionalKey(
1988
+ Schema.String.annotate({
1989
+ description:
1990
+ "Destination bucket owner account ID. In a cross-account scenario, if you direct Amazon S3 to change replica ownership to the AWS-account that owns the destination bucket by specifying the ``AccessControlTranslation`` property, this is the account ID of the destination bucket owner. For more information, see [Cross-Region Replication Additional Configuration: Change Replica Owner](https://docs.aws.amazon.com/AmazonS3/latest/dev/crr-change-owner.html) in the *Amazon S3 User Guide*.\n If you specify the ``AccessControlTranslation`` property, the ``Account`` property is required.",
1991
+ }),
1992
+ ),
1993
+ Bucket: Schema.Union([
1994
+ Schema.Union([
1995
+ ResourceReferenceSchema(
1996
+ Schema.Struct({
1997
+ provider: Schema.Literal("aws"),
1998
+ service: Schema.Literal("s3"),
1999
+ resource: Schema.Literal("bucket"),
2000
+ }),
2001
+ {
2002
+ value: null,
2003
+ outputs: [
2004
+ {
2005
+ source: ["Arn"],
2006
+ target: [],
2007
+ },
2008
+ ],
2009
+ },
2010
+ ).annotate({ expected: "ResourceEntity" }),
2011
+ ]),
2012
+ Schema.String.annotate({
2013
+ description:
2014
+ "The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.",
2015
+ }),
2016
+ ]),
2017
+ EncryptionConfiguration: Schema.optionalKey(EncryptionConfiguration),
2018
+ Metrics: Schema.optionalKey(Metrics),
2019
+ ReplicationTime: Schema.optionalKey(ReplicationTime),
2020
+ StorageClass: Schema.optionalKey(
2021
+ Schema.Literals([
2022
+ "DEEP_ARCHIVE",
2023
+ "GLACIER",
2024
+ "GLACIER_IR",
2025
+ "INTELLIGENT_TIERING",
2026
+ "ONEZONE_IA",
2027
+ "REDUCED_REDUNDANCY",
2028
+ "STANDARD",
2029
+ "STANDARD_IA",
2030
+ ]).annotate({
2031
+ description:
2032
+ "The storage class to use when replicating objects, such as S3 Standard or reduced redundancy. By default, Amazon S3 uses the storage class of the source object to create the object replica. \n For valid values, see the ``StorageClass`` element of the [PUT Bucket replication](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html) action in the *Amazon S3 API Reference*.\n ``FSX_OPENZFS`` is not an accepted value when replicating objects.",
2033
+ }),
2034
+ ),
2035
+ }).annotate({
2036
+ description:
2037
+ "A container for information about the replication destination and its configurations including enabling the S3 Replication Time Control (S3 RTC).",
2038
+ identifier: "ReplicationDestination",
2039
+ });
2040
+
2041
+ interface ReplicationDestination_1 {
2042
+ readonly AccessControlTranslation?: AccessControlTranslation;
2043
+ readonly Account?: string;
2044
+ readonly Bucket: string;
2045
+ readonly EncryptionConfiguration?: EncryptionConfiguration_1;
2046
+ readonly Metrics?: Metrics;
2047
+ readonly ReplicationTime?: ReplicationTime;
2048
+ readonly StorageClass?:
2049
+ | "DEEP_ARCHIVE"
2050
+ | "GLACIER"
2051
+ | "GLACIER_IR"
2052
+ | "INTELLIGENT_TIERING"
2053
+ | "ONEZONE_IA"
2054
+ | "REDUCED_REDUNDANCY"
2055
+ | "STANDARD"
2056
+ | "STANDARD_IA";
2057
+ }
2058
+
2059
+ const ReplicationDestination_1 = Schema.Struct({
2060
+ AccessControlTranslation: Schema.optionalKey(AccessControlTranslation),
2061
+ Account: Schema.optionalKey(
2062
+ Schema.String.annotate({
2063
+ description:
2064
+ "Destination bucket owner account ID. In a cross-account scenario, if you direct Amazon S3 to change replica ownership to the AWS-account that owns the destination bucket by specifying the ``AccessControlTranslation`` property, this is the account ID of the destination bucket owner. For more information, see [Cross-Region Replication Additional Configuration: Change Replica Owner](https://docs.aws.amazon.com/AmazonS3/latest/dev/crr-change-owner.html) in the *Amazon S3 User Guide*.\n If you specify the ``AccessControlTranslation`` property, the ``Account`` property is required.",
2065
+ }),
2066
+ ),
2067
+ Bucket: Schema.String.annotate({
2068
+ description:
2069
+ "The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.",
2070
+ }),
2071
+ EncryptionConfiguration: Schema.optionalKey(EncryptionConfiguration_1),
2072
+ Metrics: Schema.optionalKey(Metrics),
2073
+ ReplicationTime: Schema.optionalKey(ReplicationTime),
2074
+ StorageClass: Schema.optionalKey(
2075
+ Schema.Literals([
2076
+ "DEEP_ARCHIVE",
2077
+ "GLACIER",
2078
+ "GLACIER_IR",
2079
+ "INTELLIGENT_TIERING",
2080
+ "ONEZONE_IA",
2081
+ "REDUCED_REDUNDANCY",
2082
+ "STANDARD",
2083
+ "STANDARD_IA",
2084
+ ]).annotate({
2085
+ description:
2086
+ "The storage class to use when replicating objects, such as S3 Standard or reduced redundancy. By default, Amazon S3 uses the storage class of the source object to create the object replica. \n For valid values, see the ``StorageClass`` element of the [PUT Bucket replication](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html) action in the *Amazon S3 API Reference*.\n ``FSX_OPENZFS`` is not an accepted value when replicating objects.",
2087
+ }),
2088
+ ),
2089
+ }).annotate({
2090
+ description:
2091
+ "A container for information about the replication destination and its configurations including enabling the S3 Replication Time Control (S3 RTC).",
2092
+ identifier: "ReplicationDestination_1",
2093
+ });
2094
+
2095
+ interface WebsiteConfiguration {
2096
+ readonly ErrorDocument?: string;
2097
+ readonly IndexDocument?: string;
2098
+ readonly RoutingRules?: ReadonlyArray<RoutingRule>;
2099
+ readonly RedirectAllRequestsTo?: RedirectAllRequestsTo;
2100
+ }
2101
+
2102
+ const WebsiteConfiguration = Schema.Struct({
2103
+ ErrorDocument: Schema.optionalKey(
2104
+ Schema.String.annotate({
2105
+ description: "The name of the error document for the website.",
2106
+ }),
2107
+ ),
2108
+ IndexDocument: Schema.optionalKey(
2109
+ Schema.String.annotate({
2110
+ description: "The name of the index document for the website.",
2111
+ }),
2112
+ ),
2113
+ RoutingRules: Schema.optionalKey(
2114
+ Schema.Array(RoutingRule).annotate({
2115
+ description:
2116
+ "Rules that define when a redirect is applied and the redirect behavior.",
2117
+ }),
2118
+ ),
2119
+ RedirectAllRequestsTo: Schema.optionalKey(RedirectAllRequestsTo),
2120
+ }).annotate({
2121
+ description:
2122
+ "Specifies website configuration parameters for an Amazon S3 bucket.",
2123
+ identifier: "WebsiteConfiguration",
2124
+ });
2125
+
2126
+ interface StorageClassAnalysis_1 {
2127
+ readonly DataExport?: DataExport_1;
2128
+ }
2129
+
2130
+ const StorageClassAnalysis_1 = Schema.Struct({
2131
+ DataExport: Schema.optionalKey(DataExport_1),
2132
+ }).annotate({
2133
+ description:
2134
+ "Specifies data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes for an Amazon S3 bucket.",
2135
+ identifier: "StorageClassAnalysis_1",
2136
+ });
2137
+
2138
+ interface AnalyticsConfiguration {
2139
+ readonly TagFilters?: ReadonlyArray<TagFilter>;
2140
+ readonly StorageClassAnalysis: StorageClassAnalysis;
2141
+ readonly Id: string;
2142
+ readonly Prefix?: string;
2143
+ }
2144
+
2145
+ const AnalyticsConfiguration = Schema.Struct({
2146
+ TagFilters: Schema.optionalKey(
2147
+ Schema.Array(TagFilter)
2148
+ .annotate({
2149
+ description:
2150
+ "The tags to use when evaluating an analytics filter.\n The analytics only includes objects that meet the filter's criteria. If no filter is specified, all of the contents of the bucket are included in the analysis.",
2151
+ })
2152
+ .check(
2153
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
2154
+ ),
2155
+ ),
2156
+ StorageClassAnalysis: StorageClassAnalysis,
2157
+ Id: Schema.String.annotate({
2158
+ description: "The ID that identifies the analytics configuration.",
2159
+ }),
2160
+ Prefix: Schema.optionalKey(
2161
+ Schema.String.annotate({
2162
+ description:
2163
+ "The prefix that an object must have to be included in the analytics results.",
2164
+ }),
2165
+ ),
2166
+ }).annotate({
2167
+ description:
2168
+ "Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.",
2169
+ identifier: "AnalyticsConfiguration",
2170
+ });
2171
+
2172
+ interface BucketEncryption {
2173
+ readonly ServerSideEncryptionConfiguration: ReadonlyArray<ServerSideEncryptionRule>;
2174
+ }
2175
+
2176
+ const BucketEncryption = Schema.Struct({
2177
+ ServerSideEncryptionConfiguration: Schema.Array(ServerSideEncryptionRule)
2178
+ .annotate({
2179
+ description:
2180
+ "Specifies the default server-side-encryption configuration.",
2181
+ })
2182
+ .check(
2183
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
2184
+ ),
2185
+ }).annotate({
2186
+ description:
2187
+ "Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3), AWS KMS-managed keys (SSE-KMS), or dual-layer server-side encryption with KMS-managed keys (DSSE-KMS). For information about the Amazon S3 default encryption feature, see [Amazon S3 Default Encryption for S3 Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) in the *Amazon S3 User Guide*.",
2188
+ identifier: "BucketEncryption",
2189
+ });
2190
+
2191
+ interface BucketEncryption_1 {
2192
+ readonly ServerSideEncryptionConfiguration: ReadonlyArray<ServerSideEncryptionRule_1>;
2193
+ }
2194
+
2195
+ const BucketEncryption_1 = Schema.Struct({
2196
+ ServerSideEncryptionConfiguration: Schema.Array(ServerSideEncryptionRule_1)
2197
+ .annotate({
2198
+ description:
2199
+ "Specifies the default server-side-encryption configuration.",
2200
+ })
2201
+ .check(
2202
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
2203
+ ),
2204
+ }).annotate({
2205
+ description:
2206
+ "Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3), AWS KMS-managed keys (SSE-KMS), or dual-layer server-side encryption with KMS-managed keys (DSSE-KMS). For information about the Amazon S3 default encryption feature, see [Amazon S3 Default Encryption for S3 Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) in the *Amazon S3 User Guide*.",
2207
+ identifier: "BucketEncryption_1",
2208
+ });
2209
+
2210
+ interface LifecycleConfiguration {
2211
+ readonly Rules: ReadonlyArray<Rule>;
2212
+ readonly TransitionDefaultMinimumObjectSize?:
2213
+ | "varies_by_storage_class"
2214
+ | "all_storage_classes_128K";
2215
+ }
2216
+
2217
+ const LifecycleConfiguration = Schema.Struct({
2218
+ Rules: Schema.Array(Rule)
2219
+ .annotate({
2220
+ description:
2221
+ "A lifecycle rule for individual objects in an Amazon S3 bucket.",
2222
+ })
2223
+ .check(
2224
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
2225
+ ),
2226
+ TransitionDefaultMinimumObjectSize: Schema.optionalKey(
2227
+ Schema.Literals([
2228
+ "varies_by_storage_class",
2229
+ "all_storage_classes_128K",
2230
+ ]).annotate({
2231
+ description:
2232
+ "Indicates which default minimum object size behavior is applied to the lifecycle configuration.\n This parameter applies to general purpose buckets only. It isn't supported for directory bucket lifecycle configurations.\n + ``all_storage_classes_128K`` - Objects smaller than 128 KB will not transition to any storage class by default.\n + ``varies_by_storage_class`` - Objects smaller than 128 KB will transition to Glacier Flexible Retrieval or Glacier Deep Archive storage classes. By default, all other storage classes will prevent transitions smaller than 128 KB. \n \n To customize the minimum object size for any transition you can add a filter that specifies a custom ``ObjectSizeGreaterThan`` or ``ObjectSizeLessThan`` in the body of your transition rule. Custom filters always take precedence over the default transition behavior.",
2233
+ }),
2234
+ ),
2235
+ }).annotate({
2236
+ description:
2237
+ "Specifies the lifecycle configuration for objects in an Amazon S3 bucket. For more information, see [Object Lifecycle Management](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) in the *Amazon S3 User Guide*.",
2238
+ identifier: "LifecycleConfiguration",
2239
+ });
2240
+
2241
+ interface LambdaConfiguration {
2242
+ readonly Event: string;
2243
+ readonly Filter?: NotificationFilter;
2244
+ readonly Function:
2245
+ | ResourceEntity<{
2246
+ readonly provider: "aws";
2247
+ readonly service: "lambda";
2248
+ readonly resource: "function";
2249
+ }>
2250
+ | string;
2251
+ }
2252
+
2253
+ const LambdaConfiguration = Schema.Struct({
2254
+ Event: Schema.String.annotate({
2255
+ description:
2256
+ "The Amazon S3 bucket event for which to invoke the LAMlong function. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.",
2257
+ }),
2258
+ Filter: Schema.optionalKey(NotificationFilter),
2259
+ Function: Schema.Union([
2260
+ Schema.Union([
2261
+ ResourceReferenceSchema(
2262
+ Schema.Struct({
2263
+ provider: Schema.Literal("aws"),
2264
+ service: Schema.Literal("lambda"),
2265
+ resource: Schema.Literal("function"),
2266
+ }),
2267
+ {
2268
+ value: null,
2269
+ outputs: [
2270
+ {
2271
+ source: ["Arn"],
2272
+ target: [],
2273
+ },
2274
+ ],
2275
+ },
2276
+ ).annotate({ expected: "ResourceEntity" }),
2277
+ ]),
2278
+ Schema.String.annotate({
2279
+ description:
2280
+ "The Amazon Resource Name (ARN) of the LAMlong function that Amazon S3 invokes when the specified event type occurs.",
2281
+ }),
2282
+ ]),
2283
+ }).annotate({
2284
+ description:
2285
+ "Describes the LAMlong functions to invoke and the events for which to invoke them.",
2286
+ identifier: "LambdaConfiguration",
2287
+ });
2288
+
2289
+ interface QueueConfiguration {
2290
+ readonly Event: string;
2291
+ readonly Filter?: NotificationFilter;
2292
+ readonly Queue:
2293
+ | ResourceEntity<{
2294
+ readonly provider: "aws";
2295
+ readonly service: "sqs";
2296
+ readonly resource: "queue";
2297
+ }>
2298
+ | string;
2299
+ }
2300
+
2301
+ const QueueConfiguration = Schema.Struct({
2302
+ Event: Schema.String.annotate({
2303
+ description:
2304
+ "The Amazon S3 bucket event about which you want to publish messages to Amazon SQS. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.",
2305
+ }),
2306
+ Filter: Schema.optionalKey(NotificationFilter),
2307
+ Queue: Schema.Union([
2308
+ Schema.Union([
2309
+ ResourceReferenceSchema(
2310
+ Schema.Struct({
2311
+ provider: Schema.Literal("aws"),
2312
+ service: Schema.Literal("sqs"),
2313
+ resource: Schema.Literal("queue"),
2314
+ }),
2315
+ {
2316
+ value: null,
2317
+ outputs: [
2318
+ {
2319
+ source: ["Arn"],
2320
+ target: [],
2321
+ },
2322
+ ],
2323
+ },
2324
+ ).annotate({ expected: "ResourceEntity" }),
2325
+ ]),
2326
+ Schema.String.annotate({
2327
+ description:
2328
+ "The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon S3 publishes a message when it detects events of the specified type. FIFO queues are not allowed when enabling an SQS queue as the event notification destination.",
2329
+ }),
2330
+ ]),
2331
+ }).annotate({
2332
+ description:
2333
+ "Specifies the configuration for publishing messages to an Amazon Simple Queue Service (Amazon SQS) queue when Amazon S3 detects specified events.",
2334
+ identifier: "QueueConfiguration",
2335
+ });
2336
+
2337
+ interface TopicConfiguration {
2338
+ readonly Event: string;
2339
+ readonly Filter?: NotificationFilter;
2340
+ readonly Topic:
2341
+ | ResourceEntity<{
2342
+ readonly provider: "aws";
2343
+ readonly service: "sns";
2344
+ readonly resource: "topic";
2345
+ }>
2346
+ | string;
2347
+ }
2348
+
2349
+ const TopicConfiguration = Schema.Struct({
2350
+ Event: Schema.String.annotate({
2351
+ description:
2352
+ "The Amazon S3 bucket event about which to send notifications. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.",
2353
+ }),
2354
+ Filter: Schema.optionalKey(NotificationFilter),
2355
+ Topic: Schema.Union([
2356
+ Schema.Union([
2357
+ ResourceReferenceSchema(
2358
+ Schema.Struct({
2359
+ provider: Schema.Literal("aws"),
2360
+ service: Schema.Literal("sns"),
2361
+ resource: Schema.Literal("topic"),
2362
+ }),
2363
+ {
2364
+ value: null,
2365
+ outputs: [
2366
+ {
2367
+ source: ["TopicArn"],
2368
+ target: [],
2369
+ },
2370
+ ],
2371
+ },
2372
+ ).annotate({ expected: "ResourceEntity" }),
2373
+ ]),
2374
+ Schema.String.annotate({
2375
+ description:
2376
+ "The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type.",
2377
+ }),
2378
+ ]),
2379
+ }).annotate({
2380
+ description:
2381
+ "A container for specifying the configuration for publication of messages to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3 detects specified events.",
2382
+ identifier: "TopicConfiguration",
2383
+ });
2384
+
2385
+ interface LambdaConfiguration_1 {
2386
+ readonly Event: string;
2387
+ readonly Filter?: NotificationFilter;
2388
+ readonly Function: string;
2389
+ }
2390
+
2391
+ const LambdaConfiguration_1 = Schema.Struct({
2392
+ Event: Schema.String.annotate({
2393
+ description:
2394
+ "The Amazon S3 bucket event for which to invoke the LAMlong function. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.",
2395
+ }),
2396
+ Filter: Schema.optionalKey(NotificationFilter),
2397
+ Function: Schema.String.annotate({
2398
+ description:
2399
+ "The Amazon Resource Name (ARN) of the LAMlong function that Amazon S3 invokes when the specified event type occurs.",
2400
+ }),
2401
+ }).annotate({
2402
+ description:
2403
+ "Describes the LAMlong functions to invoke and the events for which to invoke them.",
2404
+ identifier: "LambdaConfiguration_1",
2405
+ });
2406
+
2407
+ interface QueueConfiguration_1 {
2408
+ readonly Event: string;
2409
+ readonly Filter?: NotificationFilter;
2410
+ readonly Queue: string;
2411
+ }
2412
+
2413
+ const QueueConfiguration_1 = Schema.Struct({
2414
+ Event: Schema.String.annotate({
2415
+ description:
2416
+ "The Amazon S3 bucket event about which you want to publish messages to Amazon SQS. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.",
2417
+ }),
2418
+ Filter: Schema.optionalKey(NotificationFilter),
2419
+ Queue: Schema.String.annotate({
2420
+ description:
2421
+ "The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon S3 publishes a message when it detects events of the specified type. FIFO queues are not allowed when enabling an SQS queue as the event notification destination.",
2422
+ }),
2423
+ }).annotate({
2424
+ description:
2425
+ "Specifies the configuration for publishing messages to an Amazon Simple Queue Service (Amazon SQS) queue when Amazon S3 detects specified events.",
2426
+ identifier: "QueueConfiguration_1",
2427
+ });
2428
+
2429
+ interface TopicConfiguration_1 {
2430
+ readonly Event: string;
2431
+ readonly Filter?: NotificationFilter;
2432
+ readonly Topic: string;
2433
+ }
2434
+
2435
+ const TopicConfiguration_1 = Schema.Struct({
2436
+ Event: Schema.String.annotate({
2437
+ description:
2438
+ "The Amazon S3 bucket event about which to send notifications. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.",
2439
+ }),
2440
+ Filter: Schema.optionalKey(NotificationFilter),
2441
+ Topic: Schema.String.annotate({
2442
+ description:
2443
+ "The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 publishes a message when it detects events of the specified type.",
2444
+ }),
2445
+ }).annotate({
2446
+ description:
2447
+ "A container for specifying the configuration for publication of messages to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3 detects specified events.",
2448
+ identifier: "TopicConfiguration_1",
2449
+ });
2450
+
2451
+ interface ReplicationRule {
2452
+ readonly DeleteMarkerReplication?: DeleteMarkerReplication;
2453
+ readonly Destination: ReplicationDestination;
2454
+ readonly Filter?: ReplicationRuleFilter;
2455
+ readonly Id?: string;
2456
+ readonly Prefix?: string;
2457
+ readonly Priority?: number;
2458
+ readonly SourceSelectionCriteria?: SourceSelectionCriteria;
2459
+ readonly Status: "Disabled" | "Enabled";
2460
+ }
2461
+
2462
+ const ReplicationRule = Schema.Struct({
2463
+ DeleteMarkerReplication: Schema.optionalKey(DeleteMarkerReplication),
2464
+ Destination: ReplicationDestination,
2465
+ Filter: Schema.optionalKey(ReplicationRuleFilter),
2466
+ Id: Schema.optionalKey(
2467
+ Schema.String.annotate({
2468
+ description:
2469
+ 'A unique identifier for the rule. The maximum value is 255 characters. If you don\'t specify a value, AWS CloudFormation generates a random ID. When using a V2 replication configuration this property is capitalized as "ID".',
2470
+ }).check(
2471
+ Schema.isMaxCodePoints(255).annotate({
2472
+ expected: "a string with at most 255 code points",
2473
+ }),
2474
+ ),
2475
+ ),
2476
+ Prefix: Schema.optionalKey(
2477
+ Schema.String.annotate({
2478
+ description:
2479
+ "An object key name prefix that identifies the object or objects to which the rule applies. The maximum prefix length is 1,024 characters. To include all objects in a bucket, specify an empty string. To filter using a V1 replication configuration, add the ``Prefix`` directly as a child element of the ``Rule`` element.\n Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see [XML related object key constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints).",
2480
+ }).check(
2481
+ Schema.isMaxCodePoints(1024).annotate({
2482
+ expected: "a string with at most 1024 code points",
2483
+ }),
2484
+ ),
2485
+ ),
2486
+ Priority: Schema.optionalKey(
2487
+ Schema.Number.annotate({
2488
+ description:
2489
+ "The priority indicates which rule has precedence whenever two or more replication rules conflict. Amazon S3 will attempt to replicate objects according to all replication rules. However, if there are two or more rules with the same destination bucket, then objects will be replicated according to the rule with the highest priority. The higher the number, the higher the priority. \n For more information, see [Replication](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html) in the *Amazon S3 User Guide*.",
2490
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2491
+ ),
2492
+ SourceSelectionCriteria: Schema.optionalKey(SourceSelectionCriteria),
2493
+ Status: Schema.Literals(["Disabled", "Enabled"]).annotate({
2494
+ description: "Specifies whether the rule is enabled.",
2495
+ }),
2496
+ }).annotate({
2497
+ description:
2498
+ "Specifies which Amazon S3 objects to replicate and where to store the replicas.",
2499
+ identifier: "ReplicationRule",
2500
+ });
2501
+
2502
+ interface ReplicationRule_1 {
2503
+ readonly DeleteMarkerReplication?: DeleteMarkerReplication;
2504
+ readonly Destination: ReplicationDestination_1;
2505
+ readonly Filter?: ReplicationRuleFilter;
2506
+ readonly Id?: string;
2507
+ readonly Prefix?: string;
2508
+ readonly Priority?: number;
2509
+ readonly SourceSelectionCriteria?: SourceSelectionCriteria;
2510
+ readonly Status: "Disabled" | "Enabled";
2511
+ }
2512
+
2513
+ const ReplicationRule_1 = Schema.Struct({
2514
+ DeleteMarkerReplication: Schema.optionalKey(DeleteMarkerReplication),
2515
+ Destination: ReplicationDestination_1,
2516
+ Filter: Schema.optionalKey(ReplicationRuleFilter),
2517
+ Id: Schema.optionalKey(
2518
+ Schema.String.annotate({
2519
+ description:
2520
+ 'A unique identifier for the rule. The maximum value is 255 characters. If you don\'t specify a value, AWS CloudFormation generates a random ID. When using a V2 replication configuration this property is capitalized as "ID".',
2521
+ }).check(
2522
+ Schema.isMaxCodePoints(255).annotate({
2523
+ expected: "a string with at most 255 code points",
2524
+ }),
2525
+ ),
2526
+ ),
2527
+ Prefix: Schema.optionalKey(
2528
+ Schema.String.annotate({
2529
+ description:
2530
+ "An object key name prefix that identifies the object or objects to which the rule applies. The maximum prefix length is 1,024 characters. To include all objects in a bucket, specify an empty string. To filter using a V1 replication configuration, add the ``Prefix`` directly as a child element of the ``Rule`` element.\n Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see [XML related object key constraints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints).",
2531
+ }).check(
2532
+ Schema.isMaxCodePoints(1024).annotate({
2533
+ expected: "a string with at most 1024 code points",
2534
+ }),
2535
+ ),
2536
+ ),
2537
+ Priority: Schema.optionalKey(
2538
+ Schema.Number.annotate({
2539
+ description:
2540
+ "The priority indicates which rule has precedence whenever two or more replication rules conflict. Amazon S3 will attempt to replicate objects according to all replication rules. However, if there are two or more rules with the same destination bucket, then objects will be replicated according to the rule with the highest priority. The higher the number, the higher the priority. \n For more information, see [Replication](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html) in the *Amazon S3 User Guide*.",
2541
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2542
+ ),
2543
+ SourceSelectionCriteria: Schema.optionalKey(SourceSelectionCriteria),
2544
+ Status: Schema.Literals(["Disabled", "Enabled"]).annotate({
2545
+ description: "Specifies whether the rule is enabled.",
2546
+ }),
2547
+ }).annotate({
2548
+ description:
2549
+ "Specifies which Amazon S3 objects to replicate and where to store the replicas.",
2550
+ identifier: "ReplicationRule_1",
2551
+ });
2552
+
2553
+ interface AnalyticsConfiguration_1 {
2554
+ readonly TagFilters?: ReadonlyArray<TagFilter>;
2555
+ readonly StorageClassAnalysis: StorageClassAnalysis_1;
2556
+ readonly Id: string;
2557
+ readonly Prefix?: string;
2558
+ }
2559
+
2560
+ const AnalyticsConfiguration_1 = Schema.Struct({
2561
+ TagFilters: Schema.optionalKey(
2562
+ Schema.Array(TagFilter)
2563
+ .annotate({
2564
+ description:
2565
+ "The tags to use when evaluating an analytics filter.\n The analytics only includes objects that meet the filter's criteria. If no filter is specified, all of the contents of the bucket are included in the analysis.",
2566
+ })
2567
+ .check(
2568
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
2569
+ ),
2570
+ ),
2571
+ StorageClassAnalysis: StorageClassAnalysis_1,
2572
+ Id: Schema.String.annotate({
2573
+ description: "The ID that identifies the analytics configuration.",
2574
+ }),
2575
+ Prefix: Schema.optionalKey(
2576
+ Schema.String.annotate({
2577
+ description:
2578
+ "The prefix that an object must have to be included in the analytics results.",
2579
+ }),
2580
+ ),
2581
+ }).annotate({
2582
+ description:
2583
+ "Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.",
2584
+ identifier: "AnalyticsConfiguration_1",
2585
+ });
2586
+
2587
+ interface NotificationConfiguration {
2588
+ readonly EventBridgeConfiguration?: EventBridgeConfiguration;
2589
+ readonly LambdaConfigurations?: ReadonlyArray<LambdaConfiguration>;
2590
+ readonly QueueConfigurations?: ReadonlyArray<QueueConfiguration>;
2591
+ readonly TopicConfigurations?: ReadonlyArray<TopicConfiguration>;
2592
+ }
2593
+
2594
+ const NotificationConfiguration = Schema.Struct({
2595
+ EventBridgeConfiguration: Schema.optionalKey(EventBridgeConfiguration),
2596
+ LambdaConfigurations: Schema.optionalKey(
2597
+ Schema.Array(LambdaConfiguration)
2598
+ .annotate({
2599
+ description:
2600
+ "Describes the LAMlong functions to invoke and the events for which to invoke them.",
2601
+ })
2602
+ .check(
2603
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
2604
+ ),
2605
+ ),
2606
+ QueueConfigurations: Schema.optionalKey(
2607
+ Schema.Array(QueueConfiguration)
2608
+ .annotate({
2609
+ description:
2610
+ "The Amazon Simple Queue Service queues to publish messages to and the events for which to publish messages.",
2611
+ })
2612
+ .check(
2613
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
2614
+ ),
2615
+ ),
2616
+ TopicConfigurations: Schema.optionalKey(
2617
+ Schema.Array(TopicConfiguration)
2618
+ .annotate({
2619
+ description:
2620
+ "The topic to which notifications are sent and the events for which notifications are generated.",
2621
+ })
2622
+ .check(
2623
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
2624
+ ),
2625
+ ),
2626
+ }).annotate({
2627
+ description:
2628
+ "Describes the notification configuration for an Amazon S3 bucket.\n If you create the target resource and related permissions in the same template, you might have a circular dependency.\n For example, you might use the ``AWS::Lambda::Permission`` resource to grant the bucket permission to invoke an AWS Lambda function. However, AWS CloudFormation can't create the bucket until the bucket has permission to invoke the function (AWS CloudFormation checks whether the bucket can invoke the function). If you're using Refs to pass the bucket name, this leads to a circular dependency.\n To avoid this dependency, you can create all resources without specifying the notification configuration. Then, update the stack with a notification configuration.\n For more information on permissions, see [AWS::Lambda::Permission](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html) and [Granting Permissions to Publish Event Notification Messages to a Destination](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#grant-destinations-permissions-to-s3).",
2629
+ identifier: "NotificationConfiguration",
2630
+ });
2631
+
2632
+ interface NotificationConfiguration_1 {
2633
+ readonly EventBridgeConfiguration?: EventBridgeConfiguration;
2634
+ readonly LambdaConfigurations?: ReadonlyArray<LambdaConfiguration_1>;
2635
+ readonly QueueConfigurations?: ReadonlyArray<QueueConfiguration_1>;
2636
+ readonly TopicConfigurations?: ReadonlyArray<TopicConfiguration_1>;
2637
+ }
2638
+
2639
+ const NotificationConfiguration_1 = Schema.Struct({
2640
+ EventBridgeConfiguration: Schema.optionalKey(EventBridgeConfiguration),
2641
+ LambdaConfigurations: Schema.optionalKey(
2642
+ Schema.Array(LambdaConfiguration_1)
2643
+ .annotate({
2644
+ description:
2645
+ "Describes the LAMlong functions to invoke and the events for which to invoke them.",
2646
+ })
2647
+ .check(
2648
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
2649
+ ),
2650
+ ),
2651
+ QueueConfigurations: Schema.optionalKey(
2652
+ Schema.Array(QueueConfiguration_1)
2653
+ .annotate({
2654
+ description:
2655
+ "The Amazon Simple Queue Service queues to publish messages to and the events for which to publish messages.",
2656
+ })
2657
+ .check(
2658
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
2659
+ ),
2660
+ ),
2661
+ TopicConfigurations: Schema.optionalKey(
2662
+ Schema.Array(TopicConfiguration_1)
2663
+ .annotate({
2664
+ description:
2665
+ "The topic to which notifications are sent and the events for which notifications are generated.",
2666
+ })
2667
+ .check(
2668
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
2669
+ ),
2670
+ ),
2671
+ }).annotate({
2672
+ description:
2673
+ "Describes the notification configuration for an Amazon S3 bucket.\n If you create the target resource and related permissions in the same template, you might have a circular dependency.\n For example, you might use the ``AWS::Lambda::Permission`` resource to grant the bucket permission to invoke an AWS Lambda function. However, AWS CloudFormation can't create the bucket until the bucket has permission to invoke the function (AWS CloudFormation checks whether the bucket can invoke the function). If you're using Refs to pass the bucket name, this leads to a circular dependency.\n To avoid this dependency, you can create all resources without specifying the notification configuration. Then, update the stack with a notification configuration.\n For more information on permissions, see [AWS::Lambda::Permission](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html) and [Granting Permissions to Publish Event Notification Messages to a Destination](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#grant-destinations-permissions-to-s3).",
2674
+ identifier: "NotificationConfiguration_1",
2675
+ });
2676
+
2677
+ interface ReplicationConfiguration {
2678
+ readonly Role:
2679
+ | ResourceEntity<{
2680
+ readonly provider: "aws";
2681
+ readonly service: "iam";
2682
+ readonly resource: "role";
2683
+ }>
2684
+ | string;
2685
+ readonly Rules: ReadonlyArray<ReplicationRule>;
2686
+ }
2687
+
2688
+ const ReplicationConfiguration = Schema.Struct({
2689
+ Role: Schema.Union([
2690
+ Schema.Union([
2691
+ ResourceReferenceSchema(
2692
+ Schema.Struct({
2693
+ provider: Schema.Literal("aws"),
2694
+ service: Schema.Literal("iam"),
2695
+ resource: Schema.Literal("role"),
2696
+ }),
2697
+ {
2698
+ value: null,
2699
+ outputs: [
2700
+ {
2701
+ source: ["Arn"],
2702
+ target: [],
2703
+ },
2704
+ ],
2705
+ },
2706
+ ).annotate({ expected: "ResourceEntity" }),
2707
+ ]),
2708
+ Schema.String.annotate({
2709
+ description:
2710
+ "The Amazon Resource Name (ARN) of the IAMlong (IAM) role that Amazon S3 assumes when replicating objects. For more information, see [How to Set Up Replication](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-how-setup.html) in the *Amazon S3 User Guide*.",
2711
+ }),
2712
+ ]),
2713
+ Rules: Schema.Array(ReplicationRule)
2714
+ .annotate({
2715
+ description:
2716
+ "A container for one or more replication rules. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.",
2717
+ })
2718
+ .check(
2719
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
2720
+ ),
2721
+ }).annotate({
2722
+ description:
2723
+ "A container for replication rules. You can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB. The latest version of the replication configuration XML is V2. For more information about XML V2 replication configurations, see [Replication configuration](https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication-add-config.html) in the *Amazon S3 User Guide*.",
2724
+ identifier: "ReplicationConfiguration",
2725
+ });
2726
+
2727
+ interface ReplicationConfiguration_1 {
2728
+ readonly Role: string;
2729
+ readonly Rules: ReadonlyArray<ReplicationRule_1>;
2730
+ }
2731
+
2732
+ const ReplicationConfiguration_1 = Schema.Struct({
2733
+ Role: Schema.String.annotate({
2734
+ description:
2735
+ "The Amazon Resource Name (ARN) of the IAMlong (IAM) role that Amazon S3 assumes when replicating objects. For more information, see [How to Set Up Replication](https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-how-setup.html) in the *Amazon S3 User Guide*.",
2736
+ }),
2737
+ Rules: Schema.Array(ReplicationRule_1)
2738
+ .annotate({
2739
+ description:
2740
+ "A container for one or more replication rules. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.",
2741
+ })
2742
+ .check(
2743
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
2744
+ ),
2745
+ }).annotate({
2746
+ description:
2747
+ "A container for replication rules. You can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB. The latest version of the replication configuration XML is V2. For more information about XML V2 replication configurations, see [Replication configuration](https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication-add-config.html) in the *Amazon S3 User Guide*.",
2748
+ identifier: "ReplicationConfiguration_1",
2749
+ });
2750
+
2751
+ export interface AWSBucketProps {
2752
+ readonly AccelerateConfiguration?: AccelerateConfiguration;
2753
+ readonly AccessControl?:
2754
+ | "AuthenticatedRead"
2755
+ | "AwsExecRead"
2756
+ | "BucketOwnerFullControl"
2757
+ | "BucketOwnerRead"
2758
+ | "LogDeliveryWrite"
2759
+ | "Private"
2760
+ | "PublicRead"
2761
+ | "PublicReadWrite";
2762
+ readonly AnalyticsConfigurations?: ReadonlyArray<AnalyticsConfiguration>;
2763
+ readonly BucketEncryption?: BucketEncryption;
2764
+ readonly BucketName?:
2765
+ | ResourceEntity<{
2766
+ readonly provider: "aws";
2767
+ readonly service: "s3";
2768
+ readonly resource: "bucketpolicy";
2769
+ }>
2770
+ | string;
2771
+ readonly BucketNamePrefix?: string;
2772
+ readonly BucketNamespace?: "global" | "account-regional";
2773
+ readonly CorsConfiguration?: CorsConfiguration;
2774
+ readonly IntelligentTieringConfigurations?: ReadonlyArray<IntelligentTieringConfiguration>;
2775
+ readonly InventoryConfigurations?: ReadonlyArray<InventoryConfiguration>;
2776
+ readonly LifecycleConfiguration?: LifecycleConfiguration;
2777
+ readonly LoggingConfiguration?: LoggingConfiguration;
2778
+ readonly MetricsConfigurations?: ReadonlyArray<MetricsConfiguration>;
2779
+ readonly MetadataTableConfiguration?: MetadataTableConfiguration;
2780
+ readonly MetadataConfiguration?: MetadataConfiguration;
2781
+ readonly NotificationConfiguration?: NotificationConfiguration;
2782
+ readonly ObjectLockConfiguration?: ObjectLockConfiguration;
2783
+ readonly ObjectLockEnabled?: boolean;
2784
+ readonly OwnershipControls?: OwnershipControls;
2785
+ readonly PublicAccessBlockConfiguration?: PublicAccessBlockConfiguration;
2786
+ readonly ReplicationConfiguration?: ReplicationConfiguration;
2787
+ readonly Tags?: ReadonlyArray<Tag>;
2788
+ readonly AbacStatus?: "Enabled" | "Disabled";
2789
+ readonly VersioningConfiguration?: VersioningConfiguration;
2790
+ readonly WebsiteConfiguration?: WebsiteConfiguration;
2791
+ }
2792
+
2793
+ export const AWSBucketResourceSchema = ResourceSchemaAnnotationSchema.make({
2794
+ provider: "aws",
2795
+ service: "s3",
2796
+ resource: "bucket",
2797
+ operation: "create",
2798
+ stateSecretOutputKeys: [],
2799
+ replacement: {
2800
+ order: "createBeforeDestroy",
2801
+ properties: [["BucketName"], ["BucketNamePrefix"], ["BucketNamespace"]],
2802
+ },
2803
+ primaryIdentifier: ["/properties/BucketName"],
2804
+ });
2805
+
2806
+ export const AWSBucketPropsSchema = annotateResourceSchema(
2807
+ Schema.Struct({
2808
+ AccelerateConfiguration: Schema.optionalKey(AccelerateConfiguration),
2809
+ AccessControl: Schema.optionalKey(
2810
+ Schema.Literals([
2811
+ "AuthenticatedRead",
2812
+ "AwsExecRead",
2813
+ "BucketOwnerFullControl",
2814
+ "BucketOwnerRead",
2815
+ "LogDeliveryWrite",
2816
+ "Private",
2817
+ "PublicRead",
2818
+ "PublicReadWrite",
2819
+ ]).annotate({
2820
+ description:
2821
+ "This is a legacy property, and it is not recommended for most use cases. A majority of modern use cases in Amazon S3 no longer require the use of ACLs, and we recommend that you keep ACLs disabled. For more information, see [Controlling object ownership](https://docs.aws.amazon.com//AmazonS3/latest/userguide/about-object-ownership.html) in the *Amazon S3 User Guide*.\n A canned access control list (ACL) that grants predefined permissions to the bucket. For more information about canned ACLs, see [Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) in the *Amazon S3 User Guide*.\n S3 buckets are created with ACLs disabled by default. Therefore, unless you explicitly set the [AWS::S3::OwnershipControls](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-ownershipcontrols.html) property to enable ACLs, your resource will fail to deploy with any value other than Private. Use cases requiring ACLs are uncommon.\n The majority of access control configurations can be successfully and more easily achieved with bucket policies. For more information, see [AWS::S3::BucketPolicy](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html). For examples of common policy configurations, including S3 Server Access Logs buckets and more, see [Bucket policy examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) in the *Amazon S3 User Guide*.",
2822
+ }),
2823
+ ),
2824
+ AnalyticsConfigurations: Schema.optionalKey(
2825
+ Schema.Array(AnalyticsConfiguration)
2826
+ .annotate({
2827
+ description:
2828
+ "Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.",
2829
+ })
2830
+ .check(
2831
+ Schema.isUnique().annotate({
2832
+ expected: "an array with unique items",
2833
+ }),
2834
+ ),
2835
+ ),
2836
+ BucketEncryption: Schema.optionalKey(BucketEncryption),
2837
+ BucketName: Schema.optionalKey(
2838
+ Schema.Union([
2839
+ Schema.Union([
2840
+ ResourceReferenceSchema(
2841
+ Schema.Struct({
2842
+ provider: Schema.Literal("aws"),
2843
+ service: Schema.Literal("s3"),
2844
+ resource: Schema.Literal("bucketpolicy"),
2845
+ }),
2846
+ {
2847
+ value: null,
2848
+ outputs: [
2849
+ {
2850
+ source: ["Bucket"],
2851
+ target: [],
2852
+ },
2853
+ ],
2854
+ },
2855
+ ).annotate({ expected: "ResourceEntity" }),
2856
+ ]),
2857
+ Schema.String.annotate({
2858
+ description:
2859
+ "A name for the bucket. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the bucket name. The bucket name must contain only lowercase letters, numbers, periods (.), and dashes (-) and must follow [Amazon S3 bucket restrictions and limitations](https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html). For more information, see [Rules for naming Amazon S3 buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) in the *Amazon S3 User Guide*. \n If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you need to replace the resource, specify a new name.",
2860
+ }),
2861
+ ]),
2862
+ ),
2863
+ BucketNamePrefix: Schema.optionalKey(
2864
+ Schema.String.annotate({ description: "" }),
2865
+ ),
2866
+ BucketNamespace: Schema.optionalKey(
2867
+ Schema.Literals(["global", "account-regional"]).annotate({
2868
+ description: "",
2869
+ }),
2870
+ ),
2871
+ CorsConfiguration: Schema.optionalKey(CorsConfiguration),
2872
+ IntelligentTieringConfigurations: Schema.optionalKey(
2873
+ Schema.Array(IntelligentTieringConfiguration)
2874
+ .annotate({
2875
+ description:
2876
+ "Defines how Amazon S3 handles Intelligent-Tiering storage.",
2877
+ })
2878
+ .check(
2879
+ Schema.isUnique().annotate({
2880
+ expected: "an array with unique items",
2881
+ }),
2882
+ ),
2883
+ ),
2884
+ InventoryConfigurations: Schema.optionalKey(
2885
+ Schema.Array(InventoryConfiguration)
2886
+ .annotate({
2887
+ description:
2888
+ "Specifies the S3 Inventory configuration for an Amazon S3 bucket. For more information, see [GET Bucket inventory](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the *Amazon S3 API Reference*.",
2889
+ })
2890
+ .check(
2891
+ Schema.isUnique().annotate({
2892
+ expected: "an array with unique items",
2893
+ }),
2894
+ ),
2895
+ ),
2896
+ LifecycleConfiguration: Schema.optionalKey(LifecycleConfiguration),
2897
+ LoggingConfiguration: Schema.optionalKey(LoggingConfiguration),
2898
+ MetricsConfigurations: Schema.optionalKey(
2899
+ Schema.Array(MetricsConfiguration)
2900
+ .annotate({
2901
+ description:
2902
+ "Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For more information, see [PutBucketMetricsConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTMetricConfiguration.html).",
2903
+ })
2904
+ .check(
2905
+ Schema.isUnique().annotate({
2906
+ expected: "an array with unique items",
2907
+ }),
2908
+ ),
2909
+ ),
2910
+ MetadataTableConfiguration: Schema.optionalKey(MetadataTableConfiguration),
2911
+ MetadataConfiguration: Schema.optionalKey(MetadataConfiguration),
2912
+ NotificationConfiguration: Schema.optionalKey(NotificationConfiguration),
2913
+ ObjectLockConfiguration: Schema.optionalKey(ObjectLockConfiguration),
2914
+ ObjectLockEnabled: Schema.optionalKey(
2915
+ Schema.Boolean.annotate({
2916
+ description:
2917
+ "Indicates whether this bucket has an Object Lock configuration enabled. Enable ``ObjectLockEnabled`` when you apply ``ObjectLockConfiguration`` to a bucket.",
2918
+ }),
2919
+ ),
2920
+ OwnershipControls: Schema.optionalKey(OwnershipControls),
2921
+ PublicAccessBlockConfiguration: Schema.optionalKey(
2922
+ PublicAccessBlockConfiguration,
2923
+ ),
2924
+ ReplicationConfiguration: Schema.optionalKey(ReplicationConfiguration),
2925
+ Tags: Schema.optionalKey(
2926
+ Schema.Array(Tag).annotate({
2927
+ description:
2928
+ "An arbitrary set of tags (key-value pairs) for this S3 bucket.",
2929
+ }),
2930
+ ),
2931
+ AbacStatus: Schema.optionalKey(
2932
+ Schema.Literals(["Enabled", "Disabled"]).annotate({
2933
+ description:
2934
+ "The ABAC status of the general purpose bucket. When ABAC is enabled for the general purpose bucket, you can use tags to manage access to the general purpose buckets as well as for cost tracking purposes. When ABAC is disabled for the general purpose buckets, you can only use tags for cost tracking purposes. For more information, see [Using tags with S3 general purpose buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging.html).",
2935
+ }),
2936
+ ),
2937
+ VersioningConfiguration: Schema.optionalKey(VersioningConfiguration),
2938
+ WebsiteConfiguration: Schema.optionalKey(WebsiteConfiguration),
2939
+ }),
2940
+ AWSBucketResourceSchema,
2941
+ );
2942
+
2943
+ export interface AWSBucketOutputs {
2944
+ readonly Arn?: Arn;
2945
+ readonly DomainName?: string;
2946
+ readonly DualStackDomainName?: string;
2947
+ readonly RegionalDomainName?: string;
2948
+ readonly WebsiteURL?: string;
2949
+ readonly BucketName?: string;
2950
+ }
2951
+
2952
+ export const AWSBucketOutputsSchema = Schema.Struct({
2953
+ Arn: Schema.optionalKey(Arn),
2954
+ DomainName: Schema.optionalKey(
2955
+ Schema.String.annotate({
2956
+ description: "",
2957
+ examples: ["mystack-mybucket-kdwwxmddtr2g.s3.amazonaws.com"],
2958
+ }),
2959
+ ),
2960
+ DualStackDomainName: Schema.optionalKey(
2961
+ Schema.String.annotate({
2962
+ description: "",
2963
+ examples: [
2964
+ "mystack-mybucket-kdwwxmddtr2g.s3.dualstack.us-east-2.amazonaws.com",
2965
+ ],
2966
+ }),
2967
+ ),
2968
+ RegionalDomainName: Schema.optionalKey(
2969
+ Schema.String.annotate({
2970
+ description: "",
2971
+ examples: ["mystack-mybucket-kdwwxmddtr2g.s3.us-east-2.amazonaws.com"],
2972
+ }),
2973
+ ),
2974
+ WebsiteURL: Schema.optionalKey(
2975
+ Schema.String.annotate({
2976
+ description: "",
2977
+ examples: [
2978
+ "Example (IPv4): http://mystack-mybucket-kdwwxmddtr2g.s3-website-us-east-2.amazonaws.com/",
2979
+ "Example (IPv6): http://mystack-mybucket-kdwwxmddtr2g.s3.dualstack.us-east-2.amazonaws.com/",
2980
+ ],
2981
+ format: "uri",
2982
+ }),
2983
+ ),
2984
+ BucketName: Schema.optionalKey(
2985
+ Schema.String.annotate({
2986
+ description:
2987
+ "A name for the bucket. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the bucket name. The bucket name must contain only lowercase letters, numbers, periods (.), and dashes (-) and must follow [Amazon S3 bucket restrictions and limitations](https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html). For more information, see [Rules for naming Amazon S3 buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) in the *Amazon S3 User Guide*. \n If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you need to replace the resource, specify a new name.",
2988
+ }),
2989
+ ),
2990
+ });
2991
+
2992
+ export interface AWSBucketRequest {
2993
+ readonly AccelerateConfiguration?: AccelerateConfiguration;
2994
+ readonly AccessControl?:
2995
+ | "AuthenticatedRead"
2996
+ | "AwsExecRead"
2997
+ | "BucketOwnerFullControl"
2998
+ | "BucketOwnerRead"
2999
+ | "LogDeliveryWrite"
3000
+ | "Private"
3001
+ | "PublicRead"
3002
+ | "PublicReadWrite";
3003
+ readonly AnalyticsConfigurations?: ReadonlyArray<AnalyticsConfiguration_1>;
3004
+ readonly BucketEncryption?: BucketEncryption_1;
3005
+ readonly BucketName?: string;
3006
+ readonly BucketNamePrefix?: string;
3007
+ readonly BucketNamespace?: "global" | "account-regional";
3008
+ readonly CorsConfiguration?: CorsConfiguration;
3009
+ readonly IntelligentTieringConfigurations?: ReadonlyArray<IntelligentTieringConfiguration>;
3010
+ readonly InventoryConfigurations?: ReadonlyArray<InventoryConfiguration_1>;
3011
+ readonly LifecycleConfiguration?: LifecycleConfiguration;
3012
+ readonly LoggingConfiguration?: LoggingConfiguration_1;
3013
+ readonly MetricsConfigurations?: ReadonlyArray<MetricsConfiguration>;
3014
+ readonly MetadataTableConfiguration?: MetadataTableConfiguration;
3015
+ readonly MetadataConfiguration?: MetadataConfiguration;
3016
+ readonly NotificationConfiguration?: NotificationConfiguration_1;
3017
+ readonly ObjectLockConfiguration?: ObjectLockConfiguration;
3018
+ readonly ObjectLockEnabled?: boolean;
3019
+ readonly OwnershipControls?: OwnershipControls;
3020
+ readonly PublicAccessBlockConfiguration?: PublicAccessBlockConfiguration;
3021
+ readonly ReplicationConfiguration?: ReplicationConfiguration_1;
3022
+ readonly Tags?: ReadonlyArray<Tag>;
3023
+ readonly AbacStatus?: "Enabled" | "Disabled";
3024
+ readonly VersioningConfiguration?: VersioningConfiguration;
3025
+ readonly WebsiteConfiguration?: WebsiteConfiguration;
3026
+ }
3027
+
3028
+ export const AWSBucketRequestSchema = Schema.Struct({
3029
+ AccelerateConfiguration: Schema.optionalKey(AccelerateConfiguration),
3030
+ AccessControl: Schema.optionalKey(
3031
+ Schema.Literals([
3032
+ "AuthenticatedRead",
3033
+ "AwsExecRead",
3034
+ "BucketOwnerFullControl",
3035
+ "BucketOwnerRead",
3036
+ "LogDeliveryWrite",
3037
+ "Private",
3038
+ "PublicRead",
3039
+ "PublicReadWrite",
3040
+ ]).annotate({
3041
+ description:
3042
+ "This is a legacy property, and it is not recommended for most use cases. A majority of modern use cases in Amazon S3 no longer require the use of ACLs, and we recommend that you keep ACLs disabled. For more information, see [Controlling object ownership](https://docs.aws.amazon.com//AmazonS3/latest/userguide/about-object-ownership.html) in the *Amazon S3 User Guide*.\n A canned access control list (ACL) that grants predefined permissions to the bucket. For more information about canned ACLs, see [Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) in the *Amazon S3 User Guide*.\n S3 buckets are created with ACLs disabled by default. Therefore, unless you explicitly set the [AWS::S3::OwnershipControls](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-ownershipcontrols.html) property to enable ACLs, your resource will fail to deploy with any value other than Private. Use cases requiring ACLs are uncommon.\n The majority of access control configurations can be successfully and more easily achieved with bucket policies. For more information, see [AWS::S3::BucketPolicy](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html). For examples of common policy configurations, including S3 Server Access Logs buckets and more, see [Bucket policy examples](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) in the *Amazon S3 User Guide*.",
3043
+ }),
3044
+ ),
3045
+ AnalyticsConfigurations: Schema.optionalKey(
3046
+ Schema.Array(AnalyticsConfiguration_1)
3047
+ .annotate({
3048
+ description:
3049
+ "Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.",
3050
+ })
3051
+ .check(
3052
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
3053
+ ),
3054
+ ),
3055
+ BucketEncryption: Schema.optionalKey(BucketEncryption_1),
3056
+ BucketName: Schema.optionalKey(
3057
+ Schema.String.annotate({
3058
+ description:
3059
+ "A name for the bucket. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the bucket name. The bucket name must contain only lowercase letters, numbers, periods (.), and dashes (-) and must follow [Amazon S3 bucket restrictions and limitations](https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html). For more information, see [Rules for naming Amazon S3 buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) in the *Amazon S3 User Guide*. \n If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you need to replace the resource, specify a new name.",
3060
+ }),
3061
+ ),
3062
+ BucketNamePrefix: Schema.optionalKey(
3063
+ Schema.String.annotate({ description: "" }),
3064
+ ),
3065
+ BucketNamespace: Schema.optionalKey(
3066
+ Schema.Literals(["global", "account-regional"]).annotate({
3067
+ description: "",
3068
+ }),
3069
+ ),
3070
+ CorsConfiguration: Schema.optionalKey(CorsConfiguration),
3071
+ IntelligentTieringConfigurations: Schema.optionalKey(
3072
+ Schema.Array(IntelligentTieringConfiguration)
3073
+ .annotate({
3074
+ description:
3075
+ "Defines how Amazon S3 handles Intelligent-Tiering storage.",
3076
+ })
3077
+ .check(
3078
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
3079
+ ),
3080
+ ),
3081
+ InventoryConfigurations: Schema.optionalKey(
3082
+ Schema.Array(InventoryConfiguration_1)
3083
+ .annotate({
3084
+ description:
3085
+ "Specifies the S3 Inventory configuration for an Amazon S3 bucket. For more information, see [GET Bucket inventory](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the *Amazon S3 API Reference*.",
3086
+ })
3087
+ .check(
3088
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
3089
+ ),
3090
+ ),
3091
+ LifecycleConfiguration: Schema.optionalKey(LifecycleConfiguration),
3092
+ LoggingConfiguration: Schema.optionalKey(LoggingConfiguration_1),
3093
+ MetricsConfigurations: Schema.optionalKey(
3094
+ Schema.Array(MetricsConfiguration)
3095
+ .annotate({
3096
+ description:
3097
+ "Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For more information, see [PutBucketMetricsConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTMetricConfiguration.html).",
3098
+ })
3099
+ .check(
3100
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
3101
+ ),
3102
+ ),
3103
+ MetadataTableConfiguration: Schema.optionalKey(MetadataTableConfiguration),
3104
+ MetadataConfiguration: Schema.optionalKey(MetadataConfiguration),
3105
+ NotificationConfiguration: Schema.optionalKey(NotificationConfiguration_1),
3106
+ ObjectLockConfiguration: Schema.optionalKey(ObjectLockConfiguration),
3107
+ ObjectLockEnabled: Schema.optionalKey(
3108
+ Schema.Boolean.annotate({
3109
+ description:
3110
+ "Indicates whether this bucket has an Object Lock configuration enabled. Enable ``ObjectLockEnabled`` when you apply ``ObjectLockConfiguration`` to a bucket.",
3111
+ }),
3112
+ ),
3113
+ OwnershipControls: Schema.optionalKey(OwnershipControls),
3114
+ PublicAccessBlockConfiguration: Schema.optionalKey(
3115
+ PublicAccessBlockConfiguration,
3116
+ ),
3117
+ ReplicationConfiguration: Schema.optionalKey(ReplicationConfiguration_1),
3118
+ Tags: Schema.optionalKey(
3119
+ Schema.Array(Tag).annotate({
3120
+ description:
3121
+ "An arbitrary set of tags (key-value pairs) for this S3 bucket.",
3122
+ }),
3123
+ ),
3124
+ AbacStatus: Schema.optionalKey(
3125
+ Schema.Literals(["Enabled", "Disabled"]).annotate({
3126
+ description:
3127
+ "The ABAC status of the general purpose bucket. When ABAC is enabled for the general purpose bucket, you can use tags to manage access to the general purpose buckets as well as for cost tracking purposes. When ABAC is disabled for the general purpose buckets, you can only use tags for cost tracking purposes. For more information, see [Using tags with S3 general purpose buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging.html).",
3128
+ }),
3129
+ ),
3130
+ VersioningConfiguration: Schema.optionalKey(VersioningConfiguration),
3131
+ WebsiteConfiguration: Schema.optionalKey(WebsiteConfiguration),
3132
+ });
3133
+
3134
+ /**
3135
+ * The AWSBucketRelationshipIssues array lists inputs that can use several outputs
3136
+ * from one source type. Each input retains its provider value until a reviewed
3137
+ * mapping chooses an output.
3138
+ */
3139
+ export const AWSBucketRelationshipIssues = [
3140
+ {
3141
+ propertyPath: [
3142
+ "BucketEncryption",
3143
+ "ServerSideEncryptionConfiguration",
3144
+ "*",
3145
+ "ServerSideEncryptionByDefault",
3146
+ "KMSMasterKeyID",
3147
+ ],
3148
+ sourceType: "AWS::KMS::Key",
3149
+ sourceProperties: [["Arn"], ["KeyId"]],
3150
+ message:
3151
+ "Choose one of the permitted source properties before using a resource reference",
3152
+ },
3153
+ ];
3154
+
3155
+ export const AWSBucketResourceTypeSchema = Schema.Struct({
3156
+ provider: Schema.Literal("aws"),
3157
+ service: Schema.Literal("s3"),
3158
+ resource: Schema.Literal("bucket"),
3159
+ });
3160
+
3161
+ /**
3162
+ * The AWSBucketResource class retains its owning stack across declarations.
3163
+ * Applied output properties are ordinary values maintained by the lifecycle.
3164
+ */
3165
+ export class AWSBucketResource<Props = AWSBucketProps> extends ResourceEntity<{
3166
+ readonly provider: "aws";
3167
+ readonly service: "s3";
3168
+ readonly resource: "bucket";
3169
+ }> {
3170
+ constructor(
3171
+ key: ResourceKey,
3172
+ readonly props: Props,
3173
+ private readonly binding?: ResourceOutputBinding,
3174
+ ) {
3175
+ super({
3176
+ key,
3177
+ resourceType: {
3178
+ provider: "aws",
3179
+ service: "s3",
3180
+ resource: "bucket",
3181
+ },
3182
+ });
3183
+ }
3184
+
3185
+ /**
3186
+ * Successful lifecycle writes update this value for declarations owned by the stack.
3187
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
3188
+ */
3189
+ get Arn(): Required<AWSBucketOutputs>["Arn"] {
3190
+ const value: Required<AWSBucketOutputs>["Arn"] =
3191
+ ResourceOutputBinding.value(
3192
+ this.binding,
3193
+ this.key,
3194
+ "Arn",
3195
+ Schema.requiredKey(AWSBucketOutputsSchema.fields.Arn),
3196
+ );
3197
+ return value;
3198
+ }
3199
+
3200
+ /**
3201
+ * Successful lifecycle writes update this value for declarations owned by the stack.
3202
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
3203
+ */
3204
+ get DomainName(): Required<AWSBucketOutputs>["DomainName"] {
3205
+ const value: Required<AWSBucketOutputs>["DomainName"] =
3206
+ ResourceOutputBinding.value(
3207
+ this.binding,
3208
+ this.key,
3209
+ "DomainName",
3210
+ Schema.requiredKey(AWSBucketOutputsSchema.fields.DomainName),
3211
+ );
3212
+ return value;
3213
+ }
3214
+
3215
+ /**
3216
+ * Successful lifecycle writes update this value for declarations owned by the stack.
3217
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
3218
+ */
3219
+ get DualStackDomainName(): Required<AWSBucketOutputs>["DualStackDomainName"] {
3220
+ const value: Required<AWSBucketOutputs>["DualStackDomainName"] =
3221
+ ResourceOutputBinding.value(
3222
+ this.binding,
3223
+ this.key,
3224
+ "DualStackDomainName",
3225
+ Schema.requiredKey(AWSBucketOutputsSchema.fields.DualStackDomainName),
3226
+ );
3227
+ return value;
3228
+ }
3229
+
3230
+ /**
3231
+ * Successful lifecycle writes update this value for declarations owned by the stack.
3232
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
3233
+ */
3234
+ get RegionalDomainName(): Required<AWSBucketOutputs>["RegionalDomainName"] {
3235
+ const value: Required<AWSBucketOutputs>["RegionalDomainName"] =
3236
+ ResourceOutputBinding.value(
3237
+ this.binding,
3238
+ this.key,
3239
+ "RegionalDomainName",
3240
+ Schema.requiredKey(AWSBucketOutputsSchema.fields.RegionalDomainName),
3241
+ );
3242
+ return value;
3243
+ }
3244
+
3245
+ /**
3246
+ * Successful lifecycle writes update this value for declarations owned by the stack.
3247
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
3248
+ */
3249
+ get WebsiteURL(): Required<AWSBucketOutputs>["WebsiteURL"] {
3250
+ const value: Required<AWSBucketOutputs>["WebsiteURL"] =
3251
+ ResourceOutputBinding.value(
3252
+ this.binding,
3253
+ this.key,
3254
+ "WebsiteURL",
3255
+ Schema.requiredKey(AWSBucketOutputsSchema.fields.WebsiteURL),
3256
+ );
3257
+ return value;
3258
+ }
3259
+
3260
+ /**
3261
+ * Successful lifecycle writes update this value for declarations owned by the stack.
3262
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
3263
+ */
3264
+ get BucketName(): Required<AWSBucketOutputs>["BucketName"] {
3265
+ const value: Required<AWSBucketOutputs>["BucketName"] =
3266
+ ResourceOutputBinding.value(
3267
+ this.binding,
3268
+ this.key,
3269
+ "BucketName",
3270
+ Schema.requiredKey(AWSBucketOutputsSchema.fields.BucketName),
3271
+ );
3272
+ return value;
3273
+ }
3274
+ }
3275
+
3276
+ /**
3277
+ * Callers must validate properties before constructing the declaration.
3278
+ * Compatible resources can depend on it before apply supplies provider values.
3279
+ * Reading applied outputs requires a binding to the owning stack.
3280
+ */
3281
+ export function createAWSBucketDeclaration<Props>(
3282
+ key: ResourceKey,
3283
+ props: Props,
3284
+ binding?: ResourceOutputBinding,
3285
+ ): AWSBucketResource<Props> {
3286
+ const resource: AWSBucketResource<Props> = new AWSBucketResource<Props>(
3287
+ key,
3288
+ props,
3289
+ binding,
3290
+ );
3291
+
3292
+ return resource;
3293
+ }
3294
+
3295
+ /**
3296
+ * The AWSBucket resource factory registers a validated declaration in the
3297
+ * stack graph. Its outputs become available after apply saves the resource.
3298
+ */
3299
+ export const AWSBucket = Effect.fn("AWSBucket")(function* (input: {
3300
+ logicalId: string;
3301
+ props: AWSBucketProps;
3302
+ }) {
3303
+ const graph = yield* ResourceGraphBuilder;
3304
+
3305
+ const key: ResourceKey = { logicalId: input.logicalId };
3306
+
3307
+ const declaration = yield* graph.resource(key);
3308
+
3309
+ const props = yield* Schema.decodeEffect(AWSBucketPropsSchema)(input.props);
3310
+
3311
+ yield* declaration.registerEntity(AWSBucketResourceTypeSchema, {
3312
+ propsSchema: AWSBucketPropsSchema,
3313
+ requestSchema: AWSBucketRequestSchema,
3314
+ outputsSchema: AWSBucketOutputsSchema,
3315
+ props,
3316
+ });
3317
+
3318
+ const resource: AWSBucketResource = createAWSBucketDeclaration(
3319
+ key,
3320
+ props,
3321
+ declaration.outputs,
3322
+ );
3323
+
3324
+ return resource;
3325
+ });