nomoss 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (635) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +3 -1
  3. package/ROADMAP.md +1 -1
  4. package/docs/README.md +2 -0
  5. package/docs/application/aws-resource-coverage.md +111 -20
  6. package/docs/application/designs/awsRequestBodyEncoding.ts +91 -0
  7. package/docs/application/designs/createBucketModeledErrors.ts +164 -0
  8. package/docs/application/designs/describeSubnetsEc2Query.ts +186 -0
  9. package/docs/application/designs/getBucketTaggingResponseDecoding.ts +136 -0
  10. package/docs/application/designs/lambdaGetPolicyRequest.ts +85 -0
  11. package/docs/application/designs/s3GetObjectDownload.ts +97 -0
  12. package/docs/application/designs/s3ObjectMetadata.ts +154 -0
  13. package/docs/application/designs/selectObjectContentEvents.ts +185 -0
  14. package/docs/application/generation-architecture.md +38 -0
  15. package/docs/application/resource-operations.md +4 -2
  16. package/docs/development/code-documentation.md +2 -0
  17. package/docs/development/design-walkthroughs.md +49 -0
  18. package/docs/development/effect-native-development.md +31 -2
  19. package/docs/development/review-code.md +1 -1
  20. package/docs/development/review-remediation-spec.md +1 -0
  21. package/docs/development/testing.md +20 -0
  22. package/docs/operations/releasing.md +4 -2
  23. package/examples/queue/application.ts +1 -1
  24. package/media/nomoss-logo.svg +16 -0
  25. package/package.json +8 -14
  26. package/providers/aws/README.md +7 -7
  27. package/providers/aws/awsEnvironment.ts +3 -3
  28. package/providers/aws/generated/resources/apigateway/apikey.ts +335 -0
  29. package/providers/aws/generated/resources/apigateway/authorizer.ts +329 -0
  30. package/providers/aws/generated/resources/apigateway/basepathmapping.ts +265 -0
  31. package/providers/aws/generated/resources/apigateway/deployment.ts +515 -0
  32. package/providers/aws/generated/resources/apigateway/domainname.ts +354 -0
  33. package/providers/aws/generated/resources/apigateway/gatewayresponse.ts +222 -0
  34. package/providers/aws/generated/resources/apigateway/method.ts +819 -0
  35. package/providers/aws/generated/resources/apigateway/model.ts +248 -0
  36. package/providers/aws/generated/resources/apigateway/requestvalidator.ts +224 -0
  37. package/providers/aws/generated/resources/apigateway/resource.ts +235 -0
  38. package/providers/aws/generated/resources/apigateway/restapi.ts +583 -0
  39. package/providers/aws/generated/resources/apigateway/stage.ts +656 -0
  40. package/providers/aws/generated/resources/apigateway/usageplan.ts +394 -0
  41. package/providers/aws/generated/resources/apigateway/usageplankey.ts +228 -0
  42. package/providers/aws/generated/resources/apigatewayv2/api.ts +40 -60
  43. package/providers/aws/generated/resources/apigatewayv2/apimapping.ts +284 -0
  44. package/providers/aws/generated/resources/apigatewayv2/authorizer.ts +333 -0
  45. package/providers/aws/generated/resources/apigatewayv2/deployment.ts +226 -0
  46. package/providers/aws/generated/resources/apigatewayv2/domainname.ts +333 -0
  47. package/providers/aws/generated/resources/apigatewayv2/integration.ts +70 -103
  48. package/providers/aws/generated/resources/apigatewayv2/integrationresponse.ts +323 -0
  49. package/providers/aws/generated/resources/apigatewayv2/model.ts +241 -0
  50. package/providers/aws/generated/resources/apigatewayv2/route.ts +59 -63
  51. package/providers/aws/generated/resources/apigatewayv2/routeresponse.ts +330 -0
  52. package/providers/aws/generated/resources/apigatewayv2/routingrule.ts +349 -0
  53. package/providers/aws/generated/resources/apigatewayv2/stage.ts +45 -66
  54. package/providers/aws/generated/resources/apigatewayv2/vpclink.ts +256 -0
  55. package/providers/aws/generated/resources/appsync/api.ts +486 -0
  56. package/providers/aws/generated/resources/appsync/apicache.ts +169 -0
  57. package/providers/aws/generated/resources/appsync/apikey.ts +245 -0
  58. package/providers/aws/generated/resources/appsync/channelnamespace.ts +444 -0
  59. package/providers/aws/generated/resources/appsync/datasource.ts +757 -0
  60. package/providers/aws/generated/resources/appsync/domainname.ts +355 -0
  61. package/providers/aws/generated/resources/appsync/domainnameapiassociation.ts +284 -0
  62. package/providers/aws/generated/resources/appsync/functionconfiguration.ts +448 -0
  63. package/providers/aws/generated/resources/appsync/graphqlapi.ts +1028 -0
  64. package/providers/aws/generated/resources/appsync/graphqlschema.ts +188 -0
  65. package/providers/aws/generated/resources/appsync/resolver.ts +514 -0
  66. package/providers/aws/generated/resources/appsync/sourceapiassociation.ts +429 -0
  67. package/providers/aws/generated/resources/certificatemanager/certificate.ts +211 -0
  68. package/providers/aws/generated/resources/cloudfront/cachepolicy.ts +352 -0
  69. package/providers/aws/generated/resources/cloudfront/distribution.ts +2477 -0
  70. package/providers/aws/generated/resources/cloudfront/function.ts +313 -0
  71. package/providers/aws/generated/resources/cloudfront/originaccesscontrol.ts +204 -0
  72. package/providers/aws/generated/resources/cloudfront/originrequestpolicy.ts +285 -0
  73. package/providers/aws/generated/resources/cloudfront/responseheaderspolicy.ts +591 -0
  74. package/providers/aws/generated/resources/cloudwatch/alarm.ts +4545 -0
  75. package/providers/aws/generated/resources/cloudwatch/compositealarm.ts +678 -0
  76. package/providers/aws/generated/resources/cloudwatch/dashboard.ts +229 -0
  77. package/providers/aws/generated/resources/cognito/identitypool.ts +419 -0
  78. package/providers/aws/generated/resources/cognito/identitypoolroleattachment.ts +288 -0
  79. package/providers/aws/generated/resources/cognito/userpool.ts +1372 -0
  80. package/providers/aws/generated/resources/cognito/userpoolclient.ts +555 -0
  81. package/providers/aws/generated/resources/cognito/userpooldomain.ts +223 -0
  82. package/providers/aws/generated/resources/cognito/userpoolgroup.ts +265 -0
  83. package/providers/aws/generated/resources/cognito/userpoolidentityprovider.ts +216 -0
  84. package/providers/aws/generated/resources/cognito/userpoolresourceserver.ts +233 -0
  85. package/providers/aws/generated/resources/dynamodb/globaltable.ts +1002 -0
  86. package/providers/aws/generated/resources/dynamodb/table.ts +1058 -0
  87. package/providers/aws/generated/resources/ec2/eip.ts +303 -0
  88. package/providers/aws/generated/resources/ec2/instance.ts +1756 -0
  89. package/providers/aws/generated/resources/ec2/internetgateway.ts +185 -0
  90. package/providers/aws/generated/resources/ec2/launchtemplate.ts +2218 -0
  91. package/providers/aws/generated/resources/ec2/natgateway.ts +509 -0
  92. package/providers/aws/generated/resources/ec2/route.ts +595 -0
  93. package/providers/aws/generated/resources/ec2/routetable.ts +207 -0
  94. package/providers/aws/generated/resources/ec2/securitygroup.ts +460 -0
  95. package/providers/aws/generated/resources/ec2/securitygroupegress.ts +332 -0
  96. package/providers/aws/generated/resources/ec2/securitygroupingress.ts +488 -0
  97. package/providers/aws/generated/resources/ec2/subnet.ts +492 -0
  98. package/providers/aws/generated/resources/ec2/subnetroutetableassociation.ts +228 -0
  99. package/providers/aws/generated/resources/ec2/volume.ts +267 -0
  100. package/providers/aws/generated/resources/ec2/volumeattachment.ts +268 -0
  101. package/providers/aws/generated/resources/ec2/vpc.ts +288 -0
  102. package/providers/aws/generated/resources/ec2/vpcendpoint.ts +660 -0
  103. package/providers/aws/generated/resources/ec2/vpcgatewayattachment.ts +290 -0
  104. package/providers/aws/generated/resources/ec2/vpcpeeringconnection.ts +310 -0
  105. package/providers/aws/generated/resources/ecr/repository.ts +627 -0
  106. package/providers/aws/generated/resources/ecs/cluster.ts +616 -0
  107. package/providers/aws/generated/resources/ecs/service.ts +2065 -0
  108. package/providers/aws/generated/resources/ecs/taskdefinition.ts +1848 -0
  109. package/providers/aws/generated/resources/elasticloadbalancingv2/listener.ts +1166 -0
  110. package/providers/aws/generated/resources/elasticloadbalancingv2/listenercertificate.ts +168 -0
  111. package/providers/aws/generated/resources/elasticloadbalancingv2/listenerrule.ts +1219 -0
  112. package/providers/aws/generated/resources/elasticloadbalancingv2/loadbalancer.ts +706 -0
  113. package/providers/aws/generated/resources/elasticloadbalancingv2/targetgroup.ts +699 -0
  114. package/providers/aws/generated/resources/events/apidestination.ts +314 -0
  115. package/providers/aws/generated/resources/events/archive.ts +316 -0
  116. package/providers/aws/generated/resources/events/connection.ts +609 -0
  117. package/providers/aws/generated/resources/events/endpoint.ts +551 -0
  118. package/providers/aws/generated/resources/events/eventbus.ts +261 -0
  119. package/providers/aws/generated/resources/events/eventbuspolicy.ts +343 -0
  120. package/providers/aws/generated/resources/events/rule.ts +1253 -0
  121. package/providers/aws/generated/resources/eventschemas/discoverer.ts +273 -0
  122. package/providers/aws/generated/resources/eventschemas/registry.ts +183 -0
  123. package/providers/aws/generated/resources/eventschemas/registrypolicy.ts +193 -0
  124. package/providers/aws/generated/resources/eventschemas/schema.ts +305 -0
  125. package/providers/aws/generated/resources/iam/accesskey.ts +12 -16
  126. package/providers/aws/generated/resources/iam/group.ts +13 -16
  127. package/providers/aws/generated/resources/iam/grouppolicy.ts +16 -20
  128. package/providers/aws/generated/resources/iam/instanceprofile.ts +2 -2
  129. package/providers/aws/generated/resources/iam/managedpolicy.ts +27 -36
  130. package/providers/aws/generated/resources/iam/oidcprovider.ts +52 -104
  131. package/providers/aws/generated/resources/iam/policy.ts +33 -90
  132. package/providers/aws/generated/resources/iam/role.ts +45 -60
  133. package/providers/aws/generated/resources/iam/rolepolicy.ts +16 -20
  134. package/providers/aws/generated/resources/iam/samlprovider.ts +72 -164
  135. package/providers/aws/generated/resources/iam/servercertificate.ts +73 -187
  136. package/providers/aws/generated/resources/iam/servicelinkedrole.ts +24 -40
  137. package/providers/aws/generated/resources/iam/user.ts +26 -32
  138. package/providers/aws/generated/resources/iam/userpolicy.ts +16 -20
  139. package/providers/aws/generated/resources/iam/usertogroupaddition.ts +2 -2
  140. package/providers/aws/generated/resources/iam/virtualmfadevice.ts +53 -97
  141. package/providers/aws/generated/resources/kms/alias.ts +225 -0
  142. package/providers/aws/generated/resources/kms/key.ts +33 -207
  143. package/providers/aws/generated/resources/kms/replicakey.ts +292 -0
  144. package/providers/aws/generated/resources/lambda/alias.ts +301 -0
  145. package/providers/aws/generated/resources/lambda/codesigningconfig.ts +414 -0
  146. package/providers/aws/generated/resources/lambda/eventinvokeconfig.ts +677 -0
  147. package/providers/aws/generated/resources/lambda/eventsourcemapping.ts +1798 -0
  148. package/providers/aws/generated/resources/lambda/function.ts +135 -181
  149. package/providers/aws/generated/resources/lambda/layerversion.ts +298 -0
  150. package/providers/aws/generated/resources/lambda/layerversionpermission.ts +233 -0
  151. package/providers/aws/generated/resources/lambda/permission.ts +13 -14
  152. package/providers/aws/generated/resources/lambda/url.ts +452 -0
  153. package/providers/aws/generated/resources/lambda/version.ts +349 -0
  154. package/providers/aws/generated/resources/pipes/pipe.ts +3801 -0
  155. package/providers/aws/generated/resources/rds/dbcluster.ts +1710 -0
  156. package/providers/aws/generated/resources/rds/dbinstance.ts +2248 -0
  157. package/providers/aws/generated/resources/rds/dbsubnetgroup.ts +270 -0
  158. package/providers/aws/generated/resources/route53/healthcheck.ts +648 -0
  159. package/providers/aws/generated/resources/route53/hostedzone.ts +430 -0
  160. package/providers/aws/generated/resources/route53/recordset.ts +249 -0
  161. package/providers/aws/generated/resources/route53/recordsetgroup.ts +263 -0
  162. package/providers/aws/generated/resources/s3/accesspoint.ts +616 -0
  163. package/providers/aws/generated/resources/s3/bucket.ts +1733 -1831
  164. package/providers/aws/generated/resources/s3/bucketpolicy.ts +214 -0
  165. package/providers/aws/generated/resources/scheduler/schedule.ts +1563 -0
  166. package/providers/aws/generated/resources/scheduler/schedulegroup.ts +351 -0
  167. package/providers/aws/generated/resources/secretsmanager/resourcepolicy.ts +242 -0
  168. package/providers/aws/generated/resources/secretsmanager/rotationschedule.ts +314 -0
  169. package/providers/aws/generated/resources/secretsmanager/secret.ts +327 -0
  170. package/providers/aws/generated/resources/secretsmanager/secrettargetattachment.ts +167 -0
  171. package/providers/aws/generated/resources/sns/subscription.ts +488 -0
  172. package/providers/aws/generated/resources/sns/topic.ts +60 -88
  173. package/providers/aws/generated/resources/sns/topicinlinepolicy.ts +169 -0
  174. package/providers/aws/generated/resources/sns/topicpolicy.ts +172 -0
  175. package/providers/aws/generated/resources/sqs/queue.ts +53 -82
  176. package/providers/aws/generated/resources/sqs/queueinlinepolicy.ts +163 -0
  177. package/providers/aws/generated/resources/sqs/queuepolicy.ts +172 -0
  178. package/providers/aws/generated/resources/ssm/association.ts +906 -0
  179. package/providers/aws/generated/resources/ssm/document.ts +472 -0
  180. package/providers/aws/generated/resources/ssm/maintenancewindow.ts +225 -0
  181. package/providers/aws/generated/resources/ssm/maintenancewindowtarget.ts +289 -0
  182. package/providers/aws/generated/resources/ssm/maintenancewindowtask.ts +497 -0
  183. package/providers/aws/generated/resources/ssm/parameter.ts +258 -0
  184. package/providers/aws/generated/resources/ssm/patchbaseline.ts +668 -0
  185. package/providers/aws/generated/resources/ssm/resourcedatasync.ts +465 -0
  186. package/providers/aws/generated/resources/ssm/resourcepolicy.ts +211 -0
  187. package/providers/aws/generated/resources/stepfunctions/activity.ts +237 -0
  188. package/providers/aws/generated/resources/stepfunctions/statemachine.ts +54 -41
  189. package/providers/aws/generated/resources/stepfunctions/statemachinealias.ts +361 -0
  190. package/providers/aws/generated/resources/stepfunctions/statemachineversion.ts +202 -0
  191. package/providers/aws/management/ec2/internetGateway.ts +129 -0
  192. package/providers/aws/management/ec2/resourceTags.ts +89 -0
  193. package/providers/aws/management/ec2/route.ts +254 -0
  194. package/providers/aws/management/ec2/routeTable.ts +138 -0
  195. package/providers/aws/management/ec2/subnet.ts +511 -0
  196. package/providers/aws/management/ec2/subnetRouteTableAssociation.ts +129 -0
  197. package/providers/aws/management/ec2/vpc.ts +466 -0
  198. package/providers/aws/management/ec2/vpcGatewayAttachment.ts +238 -0
  199. package/providers/aws/management/iam/role.ts +520 -0
  200. package/providers/aws/management/lambda/function.ts +651 -0
  201. package/providers/aws/management/resourcePolicies.ts +102 -0
  202. package/providers/aws/management/s3/bucket.ts +315 -0
  203. package/providers/aws/management/s3/bucketConfiguration.ts +1102 -0
  204. package/providers/aws/runtime.ts +17 -19
  205. package/src/core/resource/model.ts +13 -3
  206. package/src/core/resource/resourceCommandPolicy.ts +5 -1
  207. package/src/core/resource/resourceEntries.ts +193 -0
  208. package/src/core/resource/resourceLifecycle.ts +39 -23
  209. package/src/core/stack/planner.ts +78 -40
  210. package/src/core/stack/resourceStackLifecycle.ts +112 -18
  211. package/src/core/stack/resourceStackOperations.ts +18 -0
  212. package/src/core/stack/stackWorkflowRenderer.ts +12 -3
  213. package/src/core/state/stateStore.ts +47 -10
  214. package/src/providers/providerRuntimeLayer.ts +1 -1
  215. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsEntitySchema.ts +5 -5055
  216. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsSchema.ts +5 -5055
  217. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsValidators.ts +5058 -0
  218. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsEntitySchema.ts +5 -2443
  219. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsSchema.ts +5 -2443
  220. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsValidators.ts +2446 -0
  221. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsEntitySchema.ts +5 -23
  222. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsSchema.ts +5 -23
  223. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsValidators.ts +26 -0
  224. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsEntitySchema.ts +5 -63
  225. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsSchema.ts +5 -63
  226. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsValidators.ts +66 -0
  227. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsEntitySchema.ts +11 -121
  228. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsSchema.ts +11 -121
  229. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsValidators.ts +130 -0
  230. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsEntitySchema.ts +17 -21
  231. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsSchema.ts +4 -12
  232. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsValidators.ts +109 -0
  233. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsEntitySchema.ts +3 -2
  234. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsSchema.ts +3 -2
  235. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsValidators.ts +11 -0
  236. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsEntitySchema.ts +18 -108
  237. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsSchema.ts +18 -108
  238. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsValidators.ts +122 -0
  239. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsEntitySchema.ts +5 -30
  240. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsSchema.ts +5 -30
  241. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsValidators.ts +34 -0
  242. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsEntitySchema.ts +5 -110
  243. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsSchema.ts +5 -110
  244. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsValidators.ts +113 -0
  245. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsEntitySchema.ts +42 -218
  246. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsSchema.ts +63 -336
  247. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsValidators.ts +604 -0
  248. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsEntitySchema.ts +11 -123
  249. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsSchema.ts +11 -123
  250. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsValidators.ts +133 -0
  251. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsEntitySchema.ts +25 -322
  252. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsSchema.ts +20 -317
  253. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsValidators.ts +359 -0
  254. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsEntitySchema.ts +139 -4161
  255. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsSchema.ts +181 -4265
  256. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsValidators.ts +4529 -0
  257. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsEntitySchema.ts +5 -86
  258. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsSchema.ts +5 -86
  259. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsValidators.ts +89 -0
  260. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsEntitySchema.ts +5 -151
  261. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsSchema.ts +5 -151
  262. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsValidators.ts +154 -0
  263. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsEntitySchema.ts +34 -169
  264. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsSchema.ts +24 -159
  265. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsValidators.ts +235 -0
  266. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsEntitySchema.ts +46 -644
  267. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsSchema.ts +41 -639
  268. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsValidators.ts +691 -0
  269. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsEntitySchema.ts +5 -46
  270. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsSchema.ts +5 -46
  271. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsValidators.ts +49 -0
  272. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsEntitySchema.ts +5 -160
  273. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsSchema.ts +5 -160
  274. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsValidators.ts +163 -0
  275. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsEntitySchema.ts +8 -19
  276. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsSchema.ts +8 -19
  277. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsValidators.ts +28 -0
  278. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsEntitySchema.ts +5 -55
  279. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsSchema.ts +5 -55
  280. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsValidators.ts +58 -0
  281. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsEntitySchema.ts +36 -121
  282. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsSchema.ts +24 -111
  283. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsValidators.ts +183 -0
  284. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsEntitySchema.ts +5 -119
  285. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsSchema.ts +5 -119
  286. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsValidators.ts +122 -0
  287. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsEntitySchema.ts +5 -45
  288. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsSchema.ts +5 -45
  289. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsValidators.ts +48 -0
  290. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsEntitySchema.ts +5 -195
  291. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsSchema.ts +5 -195
  292. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsValidators.ts +198 -0
  293. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsEntitySchema.ts +5 -97
  294. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsSchema.ts +5 -97
  295. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsValidators.ts +100 -0
  296. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsEntitySchema.ts +69 -1282
  297. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsSchema.ts +43 -1259
  298. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsValidators.ts +1417 -0
  299. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsEntitySchema.ts +32 -126
  300. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsSchema.ts +27 -121
  301. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsValidators.ts +172 -0
  302. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsEntitySchema.ts +32 -2103
  303. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsSchema.ts +32 -2103
  304. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsValidators.ts +2134 -0
  305. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsEntitySchema.ts +37 -2065
  306. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsSchema.ts +32 -2060
  307. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsValidators.ts +2196 -0
  308. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsEntitySchema.ts +56 -97
  309. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsSchema.ts +98 -251
  310. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsValidators.ts +1024 -0
  311. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsEntitySchema.ts +14 -89
  312. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsSchema.ts +14 -89
  313. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsValidators.ts +100 -0
  314. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsEntitySchema.ts +5 -246
  315. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsSchema.ts +5 -246
  316. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsValidators.ts +249 -0
  317. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsEntitySchema.ts +5 -115
  318. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsSchema.ts +5 -115
  319. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsValidators.ts +118 -0
  320. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsEntitySchema.ts +65 -5205
  321. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsSchema.ts +59 -5200
  322. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsValidators.ts +5124 -0
  323. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsEntitySchema.ts +101 -1508
  324. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsSchema.ts +95 -1598
  325. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsValidators.ts +2039 -0
  326. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsEntitySchema.ts +5 -2272
  327. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsSchema.ts +5 -2272
  328. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsValidators.ts +2276 -0
  329. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsEntitySchema.ts +5 -37
  330. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsSchema.ts +5 -37
  331. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsValidators.ts +40 -0
  332. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsEntitySchema.ts +194 -1425
  333. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsSchema.ts +194 -1425
  334. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsValidators.ts +1580 -0
  335. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsEntitySchema.ts +5 -265
  336. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsSchema.ts +5 -265
  337. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsValidators.ts +268 -0
  338. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsEntitySchema.ts +14 -28
  339. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsSchema.ts +14 -28
  340. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsValidators.ts +42 -0
  341. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsEntitySchema.ts +26 -96
  342. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsSchema.ts +26 -96
  343. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsValidators.ts +117 -0
  344. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsEntitySchema.ts +35 -314
  345. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsSchema.ts +35 -314
  346. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsValidators.ts +330 -0
  347. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsEntitySchema.ts +5 -33
  348. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsSchema.ts +5 -33
  349. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsValidators.ts +37 -0
  350. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsEntitySchema.ts +16 -43
  351. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsSchema.ts +9 -39
  352. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsValidators.ts +105 -0
  353. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsEntitySchema.ts +5 -358
  354. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsSchema.ts +5 -358
  355. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsValidators.ts +361 -0
  356. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsEntitySchema.ts +18 -66
  357. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsSchema.ts +11 -61
  358. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsValidators.ts +100 -0
  359. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsEntitySchema.ts +73 -366
  360. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsSchema.ts +49 -345
  361. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsValidators.ts +569 -0
  362. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsEntitySchema.ts +5 -39
  363. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsSchema.ts +5 -39
  364. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsValidators.ts +42 -0
  365. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsEntitySchema.ts +5 -76
  366. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsSchema.ts +5 -76
  367. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsValidators.ts +79 -0
  368. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsEntitySchema.ts +5 -27
  369. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsSchema.ts +5 -27
  370. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsValidators.ts +30 -0
  371. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsEntitySchema.ts +11 -30
  372. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsSchema.ts +11 -30
  373. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsValidators.ts +41 -0
  374. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsEntitySchema.ts +5 -1356
  375. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsSchema.ts +5 -1356
  376. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsValidators.ts +1359 -0
  377. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsEntitySchema.ts +35 -2767
  378. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsSchema.ts +35 -2767
  379. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsValidators.ts +2761 -0
  380. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsEntitySchema.ts +5 -170
  381. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsSchema.ts +5 -170
  382. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsValidators.ts +173 -0
  383. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsEntitySchema.ts +5 -549
  384. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsSchema.ts +5 -549
  385. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsValidators.ts +552 -0
  386. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsEntitySchema.ts +32 -143
  387. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsSchema.ts +27 -138
  388. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsValidators.ts +187 -0
  389. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsEntitySchema.ts +99 -1668
  390. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsSchema.ts +70 -1644
  391. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsValidators.ts +1872 -0
  392. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsEntitySchema.ts +123 -497
  393. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsSchema.ts +118 -755
  394. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsValidators.ts +1902 -0
  395. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsEntitySchema.ts +23 -301
  396. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsSchema.ts +11 -291
  397. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsValidators.ts +359 -0
  398. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsEntitySchema.ts +5 -113
  399. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsSchema.ts +5 -113
  400. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsValidators.ts +116 -0
  401. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsEntitySchema.ts +5 -159
  402. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsSchema.ts +5 -159
  403. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsValidators.ts +162 -0
  404. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsEntitySchema.ts +5 -3321
  405. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsSchema.ts +5 -3321
  406. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsValidators.ts +3324 -0
  407. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsEntitySchema.ts +73 -698
  408. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsSchema.ts +23 -646
  409. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsValidators.ts +931 -0
  410. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsEntitySchema.ts +5 -292
  411. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsSchema.ts +5 -292
  412. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsValidators.ts +295 -0
  413. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsEntitySchema.ts +8 -19
  414. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsSchema.ts +8 -19
  415. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsValidators.ts +29 -0
  416. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsEntitySchema.ts +5 -47
  417. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsSchema.ts +5 -47
  418. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsValidators.ts +51 -0
  419. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsEntitySchema.ts +40 -629
  420. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsSchema.ts +40 -629
  421. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsValidators.ts +655 -0
  422. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsEntitySchema.ts +5 -2387
  423. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsSchema.ts +5 -2387
  424. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsValidators.ts +2391 -0
  425. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsEntitySchema.ts +11 -50
  426. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsSchema.ts +11 -50
  427. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsValidators.ts +58 -0
  428. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsEntitySchema.ts +11 -21
  429. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsSchema.ts +11 -21
  430. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsValidators.ts +34 -0
  431. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsEntitySchema.ts +5 -36
  432. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsSchema.ts +5 -36
  433. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsValidators.ts +40 -0
  434. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsEntitySchema.ts +5 -36
  435. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsSchema.ts +5 -36
  436. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsValidators.ts +40 -0
  437. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsEntitySchema.ts +5 -276
  438. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsSchema.ts +5 -275
  439. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsValidators.ts +279 -0
  440. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsEntitySchema.ts +5 -73
  441. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsSchema.ts +5 -73
  442. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsValidators.ts +77 -0
  443. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsEntitySchema.ts +5 -340
  444. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsSchema.ts +5 -340
  445. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsValidators.ts +344 -0
  446. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsEntitySchema.ts +5 -137
  447. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsSchema.ts +5 -137
  448. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsValidators.ts +141 -0
  449. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsEntitySchema.ts +5 -45
  450. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsSchema.ts +5 -45
  451. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsValidators.ts +48 -0
  452. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsEntitySchema.ts +144 -3036
  453. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsSchema.ts +279 -3175
  454. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsValidators.ts +3457 -0
  455. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsEntitySchema.ts +5 -883
  456. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsSchema.ts +5 -882
  457. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsValidators.ts +886 -0
  458. package/src/providers/stripe/client/stripeClient.ts +11 -15
  459. package/providers/aws/generated/managementRegistry.ts +0 -136
  460. package/providers/aws/management/mappings/iam/group.ts +0 -63
  461. package/providers/aws/management/mappings/iam/iamIdentity.ts +0 -41
  462. package/providers/aws/management/mappings/iam/iamLifecycleSettings.ts +0 -8
  463. package/providers/aws/management/mappings/iam/inlinePolicies.ts +0 -159
  464. package/providers/aws/management/mappings/iam/instanceProfile.ts +0 -77
  465. package/providers/aws/management/mappings/iam/oidcProvider.ts +0 -94
  466. package/providers/aws/management/mappings/iam/role.ts +0 -74
  467. package/providers/aws/management/mappings/iam/samlProvider.ts +0 -98
  468. package/providers/aws/management/mappings/iam/serverCertificate.ts +0 -72
  469. package/providers/aws/management/mappings/iam/user.ts +0 -61
  470. package/providers/aws/management/mappings/iam/userToGroupAddition.ts +0 -75
  471. package/providers/aws/management/operations/iam/accessKey.ts +0 -206
  472. package/providers/aws/management/operations/iam/managedPolicy.ts +0 -491
  473. package/providers/aws/management/operations/iam/policy.ts +0 -476
  474. package/providers/aws/management/operations/iam/serviceLinkedRole.ts +0 -172
  475. package/providers/aws/management/operations/iam/virtualMfaDevice.ts +0 -253
  476. package/providers/aws/management/resourceAssociationConfiguration.ts +0 -112
  477. package/providers/aws/management/resourceAssociationRegistration.ts +0 -349
  478. package/providers/aws/management/resourceAssociations.ts +0 -168
  479. package/providers/aws/management/resourceConfiguration.ts +0 -119
  480. package/providers/aws/management/resourceLifecycleRegistration.ts +0 -540
  481. package/providers/aws/management/resourceManagementModule.ts +0 -31
  482. package/providers/aws/management/resourceManagementRegistry.ts +0 -62
  483. package/providers/aws/management/resourceMapping.ts +0 -84
  484. package/providers/aws/management/resourceOperation.ts +0 -134
  485. package/providers/aws/management/resourceTagOperations.ts +0 -108
  486. package/providers/aws/management/resourceTiming.ts +0 -4
  487. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives.ts +0 -35
  488. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_1.ts +0 -35
  489. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_10.ts +0 -44
  490. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_100.ts +0 -35
  491. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_101.ts +0 -35
  492. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_102.ts +0 -35
  493. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_103.ts +0 -35
  494. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_104.ts +0 -35
  495. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_105.ts +0 -35
  496. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_106.ts +0 -35
  497. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_107.ts +0 -35
  498. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_108.ts +0 -35
  499. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_11.ts +0 -68
  500. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_12.ts +0 -35
  501. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_13.ts +0 -35
  502. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_14.ts +0 -35
  503. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_15.ts +0 -35
  504. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_16.ts +0 -35
  505. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_17.ts +0 -44
  506. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_18.ts +0 -35
  507. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_19.ts +0 -35
  508. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_2.ts +0 -35
  509. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_20.ts +0 -35
  510. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_21.ts +0 -35
  511. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_22.ts +0 -35
  512. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_23.ts +0 -35
  513. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_24.ts +0 -35
  514. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_25.ts +0 -35
  515. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_26.ts +0 -44
  516. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_27.ts +0 -35
  517. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_28.ts +0 -35
  518. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_29.ts +0 -35
  519. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_3.ts +0 -35
  520. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_30.ts +0 -35
  521. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_31.ts +0 -35
  522. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_32.ts +0 -35
  523. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_33.ts +0 -35
  524. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_34.ts +0 -35
  525. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_35.ts +0 -59
  526. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_36.ts +0 -35
  527. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_37.ts +0 -35
  528. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_38.ts +0 -35
  529. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_39.ts +0 -35
  530. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_4.ts +0 -35
  531. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_40.ts +0 -35
  532. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_41.ts +0 -111
  533. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_42.ts +0 -35
  534. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_43.ts +0 -77
  535. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_44.ts +0 -35
  536. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_45.ts +0 -35
  537. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_46.ts +0 -35
  538. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_47.ts +0 -35
  539. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_48.ts +0 -50
  540. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_49.ts +0 -35
  541. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_5.ts +0 -35
  542. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_50.ts +0 -83
  543. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_51.ts +0 -35
  544. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_52.ts +0 -50
  545. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_53.ts +0 -35
  546. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_54.ts +0 -74
  547. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_55.ts +0 -35
  548. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_56.ts +0 -65
  549. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_57.ts +0 -35
  550. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_58.ts +0 -79
  551. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_59.ts +0 -35
  552. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_6.ts +0 -35
  553. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_60.ts +0 -35
  554. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_61.ts +0 -35
  555. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_62.ts +0 -44
  556. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_63.ts +0 -35
  557. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_64.ts +0 -35
  558. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_65.ts +0 -44
  559. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_66.ts +0 -35
  560. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_67.ts +0 -35
  561. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_68.ts +0 -35
  562. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_69.ts +0 -35
  563. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_7.ts +0 -35
  564. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_70.ts +0 -35
  565. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_71.ts +0 -35
  566. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_72.ts +0 -35
  567. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_73.ts +0 -35
  568. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_74.ts +0 -35
  569. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_75.ts +0 -35
  570. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_76.ts +0 -35
  571. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_77.ts +0 -35
  572. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_78.ts +0 -44
  573. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_79.ts +0 -35
  574. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_8.ts +0 -35
  575. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_80.ts +0 -35
  576. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_81.ts +0 -39
  577. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_82.ts +0 -35
  578. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_83.ts +0 -35
  579. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_84.ts +0 -35
  580. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_85.ts +0 -35
  581. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_86.ts +0 -35
  582. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_87.ts +0 -35
  583. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_88.ts +0 -56
  584. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_89.ts +0 -35
  585. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_9.ts +0 -35
  586. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_90.ts +0 -35
  587. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_91.ts +0 -44
  588. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_92.ts +0 -35
  589. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_93.ts +0 -56
  590. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_94.ts +0 -35
  591. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_95.ts +0 -35
  592. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_96.ts +0 -35
  593. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_97.ts +0 -35
  594. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_98.ts +0 -35
  595. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_99.ts +0 -35
  596. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems.ts +0 -38
  597. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_1.ts +0 -39
  598. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_2.ts +0 -38
  599. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_3.ts +0 -154
  600. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_4.ts +0 -51
  601. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_5.ts +0 -120
  602. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties.ts +0 -32
  603. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_1.ts +0 -37
  604. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_10.ts +0 -125
  605. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_11.ts +0 -34
  606. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_12.ts +0 -34
  607. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_13.ts +0 -34
  608. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_14.ts +0 -34
  609. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_15.ts +0 -32
  610. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_16.ts +0 -37
  611. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_17.ts +0 -34
  612. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_18.ts +0 -130
  613. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_19.ts +0 -34
  614. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_2.ts +0 -39
  615. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_20.ts +0 -89
  616. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_21.ts +0 -34
  617. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_22.ts +0 -30
  618. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_23.ts +0 -34
  619. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_24.ts +0 -34
  620. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_25.ts +0 -34
  621. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_26.ts +0 -34
  622. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_27.ts +0 -97
  623. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_28.ts +0 -34
  624. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_29.ts +0 -34
  625. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_3.ts +0 -37
  626. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_30.ts +0 -34
  627. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_31.ts +0 -97
  628. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_32.ts +0 -34
  629. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_33.ts +0 -34
  630. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_4.ts +0 -37
  631. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_5.ts +0 -53
  632. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_6.ts +0 -42
  633. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_7.ts +0 -63
  634. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_8.ts +0 -94
  635. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_9.ts +0 -34
@@ -25,6 +25,30 @@ const AccelerateConfiguration = Schema.Struct({
25
25
  identifier: "AccelerateConfiguration",
26
26
  });
27
27
 
28
+ type ResourceInputAlternatives =
29
+ | "AuthenticatedRead"
30
+ | "AwsExecRead"
31
+ | "BucketOwnerFullControl"
32
+ | "BucketOwnerRead"
33
+ | "LogDeliveryWrite"
34
+ | "Private"
35
+ | "PublicRead"
36
+ | "PublicReadWrite";
37
+
38
+ const ResourceInputAlternatives = Schema.Literals([
39
+ "AuthenticatedRead",
40
+ "AwsExecRead",
41
+ "BucketOwnerFullControl",
42
+ "BucketOwnerRead",
43
+ "LogDeliveryWrite",
44
+ "Private",
45
+ "PublicRead",
46
+ "PublicReadWrite",
47
+ ]).annotate({
48
+ description:
49
+ "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*.",
50
+ });
51
+
28
52
  interface TagFilter {
29
53
  readonly Value: string;
30
54
  readonly Key: string;
@@ -39,6 +63,28 @@ const TagFilter = Schema.Struct({
39
63
  identifier: "TagFilter",
40
64
  });
41
65
 
66
+ type ResourceInputItems = globalThis.ReadonlyArray<TagFilter>;
67
+
68
+ const ResourceInputItems = Schema.Array(TagFilter)
69
+ .annotate({
70
+ description:
71
+ "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.",
72
+ })
73
+ .check(
74
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
75
+ );
76
+
77
+ type ResourceInputAlternatives_1 = "CSV" | "ORC" | "Parquet";
78
+
79
+ const ResourceInputAlternatives_1 = Schema.Literals([
80
+ "CSV",
81
+ "ORC",
82
+ "Parquet",
83
+ ]).annotate({
84
+ description:
85
+ "Specifies the file format used when exporting data to Amazon S3.\n *Allowed values*: ``CSV`` | ``ORC`` | ``Parquet``",
86
+ });
87
+
42
88
  interface Destination {
43
89
  readonly BucketArn:
44
90
  | ResourceEntity<{
@@ -48,7 +94,7 @@ interface Destination {
48
94
  }>
49
95
  | string;
50
96
  readonly BucketAccountId?: string;
51
- readonly Format: "CSV" | "ORC" | "Parquet";
97
+ readonly Format: ResourceInputAlternatives_1;
52
98
  readonly Prefix?: string;
53
99
  }
54
100
 
@@ -83,10 +129,7 @@ const Destination = Schema.Struct({
83
129
  "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
130
  }),
85
131
  ),
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
- }),
132
+ Format: ResourceInputAlternatives_1,
90
133
  Prefix: Schema.optionalKey(
91
134
  Schema.String.annotate({
92
135
  description:
@@ -99,6 +142,71 @@ const Destination = Schema.Struct({
99
142
  identifier: "Destination",
100
143
  });
101
144
 
145
+ interface DataExport {
146
+ readonly Destination: Destination;
147
+ readonly OutputSchemaVersion: "V_1";
148
+ }
149
+
150
+ const DataExport = Schema.Struct({
151
+ Destination: Destination,
152
+ OutputSchemaVersion: Schema.Literal("V_1").annotate({
153
+ description:
154
+ "The version of the output schema to use when exporting data. Must be ``V_1``.",
155
+ }),
156
+ }).annotate({
157
+ description:
158
+ "Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.",
159
+ identifier: "DataExport",
160
+ });
161
+
162
+ interface StorageClassAnalysis {
163
+ readonly DataExport?: DataExport;
164
+ }
165
+
166
+ const StorageClassAnalysis = Schema.Struct({
167
+ DataExport: Schema.optionalKey(DataExport),
168
+ }).annotate({
169
+ description:
170
+ "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.",
171
+ identifier: "StorageClassAnalysis",
172
+ });
173
+
174
+ interface AnalyticsConfiguration {
175
+ readonly TagFilters?: ResourceInputItems;
176
+ readonly StorageClassAnalysis: StorageClassAnalysis;
177
+ readonly Id: string;
178
+ readonly Prefix?: string;
179
+ }
180
+
181
+ const AnalyticsConfiguration = Schema.Struct({
182
+ TagFilters: Schema.optionalKey(ResourceInputItems),
183
+ StorageClassAnalysis: StorageClassAnalysis,
184
+ Id: Schema.String.annotate({
185
+ description: "The ID that identifies the analytics configuration.",
186
+ }),
187
+ Prefix: Schema.optionalKey(
188
+ Schema.String.annotate({
189
+ description:
190
+ "The prefix that an object must have to be included in the analytics results.",
191
+ }),
192
+ ),
193
+ }).annotate({
194
+ description:
195
+ "Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.",
196
+ identifier: "AnalyticsConfiguration",
197
+ });
198
+
199
+ type ResourceInputAlternatives_2 = "aws:kms" | "AES256" | "aws:kms:dsse";
200
+
201
+ const ResourceInputAlternatives_2 = Schema.Literals([
202
+ "aws:kms",
203
+ "AES256",
204
+ "aws:kms:dsse",
205
+ ]).annotate({
206
+ description:
207
+ "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``.",
208
+ });
209
+
102
210
  interface ServerSideEncryptionByDefault {
103
211
  readonly KMSMasterKeyID?:
104
212
  | ResourceEntity<{
@@ -107,7 +215,7 @@ interface ServerSideEncryptionByDefault {
107
215
  readonly resource: "alias";
108
216
  }>
109
217
  | string;
110
- readonly SSEAlgorithm: "aws:kms" | "AES256" | "aws:kms:dsse";
218
+ readonly SSEAlgorithm: ResourceInputAlternatives_2;
111
219
  }
112
220
 
113
221
  const ServerSideEncryptionByDefault = Schema.Struct({
@@ -137,19 +245,14 @@ const ServerSideEncryptionByDefault = Schema.Struct({
137
245
  }),
138
246
  ]),
139
247
  ),
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
- ),
248
+ SSEAlgorithm: ResourceInputAlternatives_2,
146
249
  }).annotate({
147
250
  description:
148
251
  "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
252
  identifier: "ServerSideEncryptionByDefault",
150
253
  });
151
254
 
152
- type BlockedEncryptionTypeList = ReadonlyArray<"NONE" | "SSE-C">;
255
+ type BlockedEncryptionTypeList = globalThis.ReadonlyArray<"NONE" | "SSE-C">;
153
256
 
154
257
  const BlockedEncryptionTypeList = Schema.Array(
155
258
  Schema.Literals(["NONE", "SSE-C"]),
@@ -162,13 +265,74 @@ const BlockedEncryptionTypeList = Schema.Array(
162
265
  }),
163
266
  );
164
267
 
268
+ interface BlockedEncryptionTypes {
269
+ readonly EncryptionType?: BlockedEncryptionTypeList;
270
+ }
271
+
272
+ const BlockedEncryptionTypes = Schema.Struct({
273
+ EncryptionType: Schema.optionalKey(BlockedEncryptionTypeList),
274
+ }).annotate({
275
+ description:
276
+ "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.",
277
+ identifier: "BlockedEncryptionTypes",
278
+ });
279
+
280
+ interface ServerSideEncryptionRule {
281
+ readonly BucketKeyEnabled?: boolean;
282
+ readonly ServerSideEncryptionByDefault?: ServerSideEncryptionByDefault;
283
+ readonly BlockedEncryptionTypes?: BlockedEncryptionTypes;
284
+ }
285
+
286
+ const ServerSideEncryptionRule = Schema.Struct({
287
+ BucketKeyEnabled: Schema.optionalKey(
288
+ Schema.Boolean.annotate({
289
+ description:
290
+ "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*.",
291
+ }),
292
+ ),
293
+ ServerSideEncryptionByDefault: Schema.optionalKey(
294
+ ServerSideEncryptionByDefault,
295
+ ),
296
+ BlockedEncryptionTypes: Schema.optionalKey(BlockedEncryptionTypes),
297
+ }).annotate({
298
+ description:
299
+ "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.",
300
+ identifier: "ServerSideEncryptionRule",
301
+ });
302
+
303
+ interface BucketEncryption {
304
+ readonly ServerSideEncryptionConfiguration: globalThis.ReadonlyArray<ServerSideEncryptionRule>;
305
+ }
306
+
307
+ const BucketEncryption = Schema.Struct({
308
+ ServerSideEncryptionConfiguration: Schema.Array(ServerSideEncryptionRule)
309
+ .annotate({
310
+ description:
311
+ "Specifies the default server-side-encryption configuration.",
312
+ })
313
+ .check(
314
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
315
+ ),
316
+ }).annotate({
317
+ description:
318
+ "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*.",
319
+ identifier: "BucketEncryption",
320
+ });
321
+
322
+ type ResourceInputAlternatives_3 = "global" | "account-regional";
323
+
324
+ const ResourceInputAlternatives_3 = Schema.Literals([
325
+ "global",
326
+ "account-regional",
327
+ ]).annotate({ description: "" });
328
+
165
329
  interface CorsRule {
166
- readonly AllowedHeaders?: ReadonlyArray<string>;
167
- readonly AllowedMethods: ReadonlyArray<
330
+ readonly AllowedHeaders?: globalThis.ReadonlyArray<string>;
331
+ readonly AllowedMethods: globalThis.ReadonlyArray<
168
332
  "GET" | "PUT" | "HEAD" | "POST" | "DELETE"
169
333
  >;
170
- readonly AllowedOrigins: ReadonlyArray<string>;
171
- readonly ExposedHeaders?: ReadonlyArray<string>;
334
+ readonly AllowedOrigins: globalThis.ReadonlyArray<string>;
335
+ readonly ExposedHeaders?: globalThis.ReadonlyArray<string>;
172
336
  readonly Id?: string;
173
337
  readonly MaxAge?: number;
174
338
  }
@@ -239,6 +403,25 @@ const CorsRule = Schema.Struct({
239
403
  identifier: "CorsRule",
240
404
  });
241
405
 
406
+ interface CorsConfiguration {
407
+ readonly CorsRules: globalThis.ReadonlyArray<CorsRule>;
408
+ }
409
+
410
+ const CorsConfiguration = Schema.Struct({
411
+ CorsRules: Schema.Array(CorsRule)
412
+ .annotate({
413
+ description:
414
+ "A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration.",
415
+ })
416
+ .check(
417
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
418
+ ),
419
+ }).annotate({
420
+ description:
421
+ "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*.",
422
+ identifier: "CorsConfiguration",
423
+ });
424
+
242
425
  interface Tiering {
243
426
  readonly AccessTier: "ARCHIVE_ACCESS" | "DEEP_ARCHIVE_ACCESS";
244
427
  readonly Days: number;
@@ -262,6 +445,60 @@ const Tiering = Schema.Struct({
262
445
  identifier: "Tiering",
263
446
  });
264
447
 
448
+ interface IntelligentTieringConfiguration {
449
+ readonly Id: string;
450
+ readonly Prefix?: string;
451
+ readonly Status: "Disabled" | "Enabled";
452
+ readonly TagFilters?: globalThis.ReadonlyArray<TagFilter>;
453
+ readonly Tierings: globalThis.ReadonlyArray<Tiering>;
454
+ }
455
+
456
+ const IntelligentTieringConfiguration = Schema.Struct({
457
+ Id: Schema.String.annotate({
458
+ description:
459
+ "The ID used to identify the S3 Intelligent-Tiering configuration.",
460
+ }),
461
+ Prefix: Schema.optionalKey(
462
+ Schema.String.annotate({
463
+ description:
464
+ "An object key name prefix that identifies the subset of objects to which the rule applies.",
465
+ }),
466
+ ),
467
+ Status: Schema.Literals(["Disabled", "Enabled"]).annotate({
468
+ description: "Specifies the status of the configuration.",
469
+ }),
470
+ TagFilters: Schema.optionalKey(
471
+ Schema.Array(TagFilter)
472
+ .annotate({ description: "A container for a key-value pair." })
473
+ .check(
474
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
475
+ ),
476
+ ),
477
+ Tierings: Schema.Array(Tiering)
478
+ .annotate({
479
+ description:
480
+ "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.",
481
+ })
482
+ .check(
483
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
484
+ ),
485
+ }).annotate({
486
+ description:
487
+ "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).",
488
+ identifier: "IntelligentTieringConfiguration",
489
+ });
490
+
491
+ type ResourceInputItems_1 =
492
+ globalThis.ReadonlyArray<IntelligentTieringConfiguration>;
493
+
494
+ const ResourceInputItems_1 = Schema.Array(IntelligentTieringConfiguration)
495
+ .annotate({
496
+ description: "Defines how Amazon S3 handles Intelligent-Tiering storage.",
497
+ })
498
+ .check(
499
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
500
+ );
501
+
265
502
  interface Destination_1 {
266
503
  readonly BucketArn:
267
504
  | ResourceEntity<{
@@ -271,7 +508,7 @@ interface Destination_1 {
271
508
  }>
272
509
  | string;
273
510
  readonly BucketAccountId?: string;
274
- readonly Format: "CSV" | "ORC" | "Parquet";
511
+ readonly Format: ResourceInputAlternatives_1;
275
512
  readonly Prefix?: string;
276
513
  }
277
514
 
@@ -306,10 +543,7 @@ const Destination_1 = Schema.Struct({
306
543
  "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
544
  }),
308
545
  ),
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
- }),
546
+ Format: ResourceInputAlternatives_1,
313
547
  Prefix: Schema.optionalKey(
314
548
  Schema.String.annotate({
315
549
  description:
@@ -322,6 +556,105 @@ const Destination_1 = Schema.Struct({
322
556
  identifier: "Destination_1",
323
557
  });
324
558
 
559
+ type ResourceInputAlternatives_4 = "All" | "Current";
560
+
561
+ const ResourceInputAlternatives_4 = Schema.Literals([
562
+ "All",
563
+ "Current",
564
+ ]).annotate({
565
+ description:
566
+ "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.",
567
+ });
568
+
569
+ type ResourceInputItems_2 = globalThis.ReadonlyArray<
570
+ | "Size"
571
+ | "LastModifiedDate"
572
+ | "StorageClass"
573
+ | "ETag"
574
+ | "IsMultipartUploaded"
575
+ | "ReplicationStatus"
576
+ | "EncryptionStatus"
577
+ | "ObjectLockRetainUntilDate"
578
+ | "ObjectLockMode"
579
+ | "ObjectLockLegalHoldStatus"
580
+ | "IntelligentTieringAccessTier"
581
+ | "BucketKeyStatus"
582
+ | "ChecksumAlgorithm"
583
+ | "ObjectAccessControlList"
584
+ | "ObjectOwner"
585
+ | "LifecycleExpirationDate"
586
+ >;
587
+
588
+ const ResourceInputItems_2 = Schema.Array(
589
+ Schema.Literals([
590
+ "Size",
591
+ "LastModifiedDate",
592
+ "StorageClass",
593
+ "ETag",
594
+ "IsMultipartUploaded",
595
+ "ReplicationStatus",
596
+ "EncryptionStatus",
597
+ "ObjectLockRetainUntilDate",
598
+ "ObjectLockMode",
599
+ "ObjectLockLegalHoldStatus",
600
+ "IntelligentTieringAccessTier",
601
+ "BucketKeyStatus",
602
+ "ChecksumAlgorithm",
603
+ "ObjectAccessControlList",
604
+ "ObjectOwner",
605
+ "LifecycleExpirationDate",
606
+ ]),
607
+ )
608
+ .annotate({
609
+ description:
610
+ "Contains the optional fields that are included in the inventory results.",
611
+ })
612
+ .check(
613
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
614
+ );
615
+
616
+ type ResourceInputAlternatives_5 = "Daily" | "Weekly";
617
+
618
+ const ResourceInputAlternatives_5 = Schema.Literals([
619
+ "Daily",
620
+ "Weekly",
621
+ ]).annotate({
622
+ description: "Specifies the schedule for generating inventory results.",
623
+ });
624
+
625
+ interface InventoryConfiguration {
626
+ readonly Destination: Destination_1;
627
+ readonly Enabled: boolean;
628
+ readonly Id: string;
629
+ readonly IncludedObjectVersions: ResourceInputAlternatives_4;
630
+ readonly OptionalFields?: ResourceInputItems_2;
631
+ readonly Prefix?: string;
632
+ readonly ScheduleFrequency: ResourceInputAlternatives_5;
633
+ }
634
+
635
+ const InventoryConfiguration = Schema.Struct({
636
+ Destination: Destination_1,
637
+ Enabled: Schema.Boolean.annotate({
638
+ description:
639
+ "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.",
640
+ }),
641
+ Id: Schema.String.annotate({
642
+ description: "The ID used to identify the inventory configuration.",
643
+ }),
644
+ IncludedObjectVersions: ResourceInputAlternatives_4,
645
+ OptionalFields: Schema.optionalKey(ResourceInputItems_2),
646
+ Prefix: Schema.optionalKey(
647
+ Schema.String.annotate({
648
+ description: "Specifies the inventory filter prefix.",
649
+ }),
650
+ ),
651
+ ScheduleFrequency: ResourceInputAlternatives_5,
652
+ }).annotate({
653
+ description:
654
+ "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*.",
655
+ identifier: "InventoryConfiguration",
656
+ });
657
+
325
658
  interface AbortIncompleteMultipartUpload {
326
659
  readonly DaysAfterInitiation: number;
327
660
  }
@@ -424,612 +757,827 @@ const NoncurrentVersionTransition = Schema.Struct({
424
757
  identifier: "NoncurrentVersionTransition",
425
758
  });
426
759
 
427
- interface PartitionedPrefix {
428
- readonly PartitionDateSource?: "EventTime" | "DeliveryTime";
760
+ interface Transition {
761
+ readonly StorageClass:
762
+ | "DEEP_ARCHIVE"
763
+ | "GLACIER"
764
+ | "Glacier"
765
+ | "GLACIER_IR"
766
+ | "INTELLIGENT_TIERING"
767
+ | "ONEZONE_IA"
768
+ | "STANDARD_IA";
769
+ readonly TransitionDate?: Iso8601UTC;
770
+ readonly TransitionInDays?: number;
429
771
  }
430
772
 
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({
773
+ const Transition = Schema.Struct({
774
+ StorageClass: Schema.Literals([
775
+ "DEEP_ARCHIVE",
776
+ "GLACIER",
777
+ "Glacier",
778
+ "GLACIER_IR",
779
+ "INTELLIGENT_TIERING",
780
+ "ONEZONE_IA",
781
+ "STANDARD_IA",
782
+ ]).annotate({
457
783
  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.",
784
+ "The storage class to which you want the object to transition.",
459
785
  }),
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({
786
+ TransitionDate: Schema.optionalKey(Iso8601UTC),
787
+ TransitionInDays: Schema.optionalKey(
788
+ Schema.Number.annotate({
468
789
  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
- }),
790
+ "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*.",
791
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
471
792
  ),
472
793
  }).annotate({
473
794
  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",
795
+ "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*.",
796
+ identifier: "Transition",
476
797
  });
477
798
 
478
- interface MetadataDestination {
479
- readonly TableBucketType: "aws" | "customer";
480
- readonly TableBucketArn?: string;
481
- readonly TableNamespace?: string;
799
+ interface Rule {
800
+ readonly AbortIncompleteMultipartUpload?: AbortIncompleteMultipartUpload;
801
+ readonly ExpirationDate?: Iso8601UTC;
802
+ readonly ExpirationInDays?: number;
803
+ readonly ExpiredObjectDeleteMarker?: boolean;
804
+ readonly Id?: string;
805
+ readonly NoncurrentVersionExpirationInDays?: number;
806
+ readonly NoncurrentVersionExpiration?: NoncurrentVersionExpiration;
807
+ readonly NoncurrentVersionTransition?: NoncurrentVersionTransition;
808
+ readonly NoncurrentVersionTransitions?: globalThis.ReadonlyArray<NoncurrentVersionTransition>;
809
+ readonly Prefix?: string;
810
+ readonly Status: "Enabled" | "Disabled";
811
+ readonly TagFilters?: globalThis.ReadonlyArray<TagFilter>;
812
+ readonly ObjectSizeGreaterThan?: string;
813
+ readonly ObjectSizeLessThan?: string;
814
+ readonly Transition?: Transition;
815
+ readonly Transitions?: globalThis.ReadonlyArray<Transition>;
482
816
  }
483
817
 
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({
818
+ const Rule = Schema.Struct({
819
+ AbortIncompleteMultipartUpload: Schema.optionalKey(
820
+ AbortIncompleteMultipartUpload,
821
+ ),
822
+ ExpirationDate: Schema.optionalKey(Iso8601UTC),
823
+ ExpirationInDays: Schema.optionalKey(
824
+ Schema.Number.annotate({
491
825
  description:
492
- "The Amazon Resource Name (ARN) of the table bucket where the metadata configuration is stored.",
826
+ "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.",
827
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
828
+ ),
829
+ ExpiredObjectDeleteMarker: Schema.optionalKey(
830
+ Schema.Boolean.annotate({
831
+ description:
832
+ "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``.",
493
833
  }),
494
834
  ),
495
- TableNamespace: Schema.optionalKey(
835
+ Id: Schema.optionalKey(
496
836
  Schema.String.annotate({
497
837
  description:
498
- "The namespace in the table bucket where the metadata tables for a metadata configuration are stored.",
499
- }),
838
+ "Unique identifier for the rule. The value can't be longer than 255 characters.",
839
+ }).check(
840
+ Schema.isMaxCodePoints(255).annotate({
841
+ expected: "a string with at most 255 code points",
842
+ }),
843
+ ),
500
844
  ),
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(
845
+ NoncurrentVersionExpirationInDays: Schema.optionalKey(
517
846
  Schema.Number.annotate({
518
847
  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``.",
848
+ "(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.",
520
849
  }).check(Schema.isInt().annotate({ expected: "an integer" })),
521
850
  ),
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(
851
+ NoncurrentVersionExpiration: Schema.optionalKey(NoncurrentVersionExpiration),
852
+ NoncurrentVersionTransition: Schema.optionalKey(NoncurrentVersionTransition),
853
+ NoncurrentVersionTransitions: Schema.optionalKey(
854
+ Schema.Array(NoncurrentVersionTransition)
855
+ .annotate({
856
+ description:
857
+ "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.",
858
+ })
859
+ .check(
860
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
861
+ ),
862
+ ),
863
+ Prefix: Schema.optionalKey(
539
864
  Schema.String.annotate({
540
865
  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.",
866
+ "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).",
542
867
  }),
543
868
  ),
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({
869
+ Status: Schema.Literals(["Enabled", "Disabled"]).annotate({
571
870
  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.",
871
+ "If ``Enabled``, the rule is currently being applied. If ``Disabled``, the rule is not currently being applied.",
580
872
  }),
873
+ TagFilters: Schema.optionalKey(
874
+ Schema.Array(TagFilter)
875
+ .annotate({
876
+ description:
877
+ "Tags to use to identify a subset of objects to which the lifecycle rule applies.",
878
+ })
879
+ .check(
880
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
881
+ ),
882
+ ),
883
+ ObjectSizeGreaterThan: Schema.optionalKey(
884
+ Schema.String.annotate({
885
+ description:
886
+ "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*.",
887
+ })
888
+ .check(
889
+ Schema.isMaxCodePoints(20).annotate({
890
+ expected: "a string with at most 20 code points",
891
+ }),
892
+ )
893
+ .check(
894
+ Schema.isPattern(new globalThis.RegExp("[0-9]+", "u")).annotate({
895
+ expected: "a string matching the RegExp [0-9]+",
896
+ }),
897
+ ),
898
+ ),
899
+ ObjectSizeLessThan: Schema.optionalKey(
900
+ Schema.String.annotate({
901
+ description:
902
+ "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*.",
903
+ })
904
+ .check(
905
+ Schema.isMaxCodePoints(20).annotate({
906
+ expected: "a string with at most 20 code points",
907
+ }),
908
+ )
909
+ .check(
910
+ Schema.isPattern(new globalThis.RegExp("[0-9]+", "u")).annotate({
911
+ expected: "a string matching the RegExp [0-9]+",
912
+ }),
913
+ ),
914
+ ),
915
+ Transition: Schema.optionalKey(Transition),
916
+ Transitions: Schema.optionalKey(
917
+ Schema.Array(Transition)
918
+ .annotate({
919
+ description:
920
+ "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.",
921
+ })
922
+ .check(
923
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
924
+ ),
925
+ ),
581
926
  }).annotate({
582
927
  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",
928
+ "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``.",
929
+ identifier: "Rule",
585
930
  });
586
931
 
587
- interface DefaultRetention {
588
- readonly Years?: number;
589
- readonly Days?: number;
590
- readonly Mode?: "COMPLIANCE" | "GOVERNANCE";
932
+ interface LifecycleConfiguration {
933
+ readonly Rules: globalThis.ReadonlyArray<Rule>;
934
+ readonly TransitionDefaultMinimumObjectSize?:
935
+ | "varies_by_storage_class"
936
+ | "all_storage_classes_128K";
591
937
  }
592
938
 
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({
939
+ const LifecycleConfiguration = Schema.Struct({
940
+ Rules: Schema.Array(Rule)
941
+ .annotate({
602
942
  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({
943
+ "A lifecycle rule for individual objects in an Amazon S3 bucket.",
944
+ })
945
+ .check(
946
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
947
+ ),
948
+ TransitionDefaultMinimumObjectSize: Schema.optionalKey(
949
+ Schema.Literals([
950
+ "varies_by_storage_class",
951
+ "all_storage_classes_128K",
952
+ ]).annotate({
608
953
  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``.",
954
+ "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.",
610
955
  }),
611
956
  ),
612
957
  }).annotate({
613
958
  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",
959
+ "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*.",
960
+ identifier: "LifecycleConfiguration",
616
961
  });
617
962
 
618
- interface OwnershipControlsRule {
619
- readonly ObjectOwnership?:
620
- | "ObjectWriter"
621
- | "BucketOwnerPreferred"
622
- | "BucketOwnerEnforced";
963
+ interface PartitionedPrefix {
964
+ readonly PartitionDateSource?: "EventTime" | "DeliveryTime";
623
965
  }
624
966
 
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." }),
967
+ const PartitionedPrefix = Schema.Struct({
968
+ PartitionDateSource: Schema.optionalKey(
969
+ Schema.Literals(["EventTime", "DeliveryTime"]).annotate({
970
+ description:
971
+ "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.",
972
+ }),
632
973
  ),
633
974
  }).annotate({
634
975
  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",
976
+ "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.",
977
+ identifier: "PartitionedPrefix",
637
978
  });
638
979
 
639
- interface PublicAccessBlockConfiguration {
640
- readonly BlockPublicAcls?: boolean;
641
- readonly BlockPublicPolicy?: boolean;
642
- readonly IgnorePublicAcls?: boolean;
643
- readonly RestrictPublicBuckets?: boolean;
644
- }
980
+ type TargetObjectKeyFormat =
981
+ | {
982
+ readonly SimplePrefix: {
983
+ readonly [x: string]: never;
984
+ };
985
+ }
986
+ | {
987
+ readonly PartitionedPrefix: PartitionedPrefix;
988
+ };
645
989
 
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({
990
+ const TargetObjectKeyFormat = Schema.Union(
991
+ [
992
+ Schema.Struct({
993
+ SimplePrefix: Schema.Record(Schema.String, Schema.Never).annotate({
994
+ description:
995
+ "This format defaults the prefix to the given log file prefix for delivering server access log file.",
996
+ }),
997
+ }).annotate({
655
998
  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.",
999
+ "Describes the key format for server access log file in the target bucket. You can choose between SimplePrefix and PartitionedPrefix.",
657
1000
  }),
658
- ),
659
- IgnorePublicAcls: Schema.optionalKey(
660
- Schema.Boolean.annotate({
1001
+ Schema.Struct({ PartitionedPrefix: PartitionedPrefix }).annotate({
661
1002
  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.",
1003
+ "Describes the key format for server access log file in the target bucket. You can choose between SimplePrefix and PartitionedPrefix.",
663
1004
  }),
1005
+ ],
1006
+ { mode: "oneOf" },
1007
+ ).annotate({ identifier: "TargetObjectKeyFormat" });
1008
+
1009
+ interface LoggingConfiguration {
1010
+ readonly DestinationBucketName?:
1011
+ | ResourceEntity<{
1012
+ readonly provider: "aws";
1013
+ readonly service: "s3";
1014
+ readonly resource: "bucket";
1015
+ }>
1016
+ | string;
1017
+ readonly LogFilePrefix?: string;
1018
+ readonly TargetObjectKeyFormat?: TargetObjectKeyFormat;
1019
+ }
1020
+
1021
+ const LoggingConfiguration = Schema.Struct({
1022
+ DestinationBucketName: Schema.optionalKey(
1023
+ Schema.Union([
1024
+ Schema.Union([
1025
+ ResourceReferenceSchema(
1026
+ Schema.Struct({
1027
+ provider: Schema.Literal("aws"),
1028
+ service: Schema.Literal("s3"),
1029
+ resource: Schema.Literal("bucket"),
1030
+ }),
1031
+ {
1032
+ value: null,
1033
+ outputs: [
1034
+ {
1035
+ source: ["BucketName"],
1036
+ target: [],
1037
+ },
1038
+ ],
1039
+ },
1040
+ ).annotate({ expected: "ResourceEntity" }),
1041
+ ]),
1042
+ Schema.String.annotate({
1043
+ description:
1044
+ "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.",
1045
+ }),
1046
+ ]),
664
1047
  ),
665
- RestrictPublicBuckets: Schema.optionalKey(
666
- Schema.Boolean.annotate({
1048
+ LogFilePrefix: Schema.optionalKey(
1049
+ Schema.String.annotate({
667
1050
  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.",
1051
+ "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.",
669
1052
  }),
670
1053
  ),
1054
+ TargetObjectKeyFormat: Schema.optionalKey(TargetObjectKeyFormat),
671
1055
  }).annotate({
672
1056
  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",
1057
+ "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.",
1058
+ identifier: "LoggingConfiguration",
675
1059
  });
676
1060
 
677
- interface DeleteMarkerReplication {
678
- readonly Status?: "Disabled" | "Enabled";
1061
+ interface MetricsConfiguration {
1062
+ readonly AccessPointArn?: string;
1063
+ readonly Id: string;
1064
+ readonly Prefix?: string;
1065
+ readonly TagFilters?: globalThis.ReadonlyArray<TagFilter>;
679
1066
  }
680
1067
 
681
- const DeleteMarkerReplication = Schema.Struct({
682
- Status: Schema.optionalKey(
683
- Schema.Literals(["Disabled", "Enabled"]).annotate({
684
- description: "Indicates whether to replicate delete markers.",
1068
+ const MetricsConfiguration = Schema.Struct({
1069
+ AccessPointArn: Schema.optionalKey(
1070
+ Schema.String.annotate({
1071
+ description:
1072
+ "The access point that was used while performing operations on the object. The metrics configuration only includes objects that meet the filter's criteria.",
1073
+ }),
1074
+ ),
1075
+ Id: Schema.String.annotate({
1076
+ description:
1077
+ "The ID used to identify the metrics configuration. This can be any value you choose that helps you identify your metrics configuration.",
1078
+ }),
1079
+ Prefix: Schema.optionalKey(
1080
+ Schema.String.annotate({
1081
+ description:
1082
+ "The prefix that an object must have to be included in the metrics results.",
685
1083
  }),
686
1084
  ),
1085
+ TagFilters: Schema.optionalKey(
1086
+ Schema.Array(TagFilter)
1087
+ .annotate({
1088
+ description:
1089
+ "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.",
1090
+ })
1091
+ .check(
1092
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1093
+ ),
1094
+ ),
687
1095
  }).annotate({
688
1096
  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",
1097
+ "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*.",
1098
+ identifier: "MetricsConfiguration",
691
1099
  });
692
1100
 
693
- interface AccessControlTranslation {
694
- readonly Owner: "Destination";
1101
+ type ResourceInputItems_3 = globalThis.ReadonlyArray<MetricsConfiguration>;
1102
+
1103
+ const ResourceInputItems_3 = Schema.Array(MetricsConfiguration)
1104
+ .annotate({
1105
+ description:
1106
+ "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).",
1107
+ })
1108
+ .check(
1109
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1110
+ );
1111
+
1112
+ interface S3TablesDestination {
1113
+ readonly TableBucketArn: string;
1114
+ readonly TableName: string;
1115
+ readonly TableNamespace?: string;
1116
+ readonly TableArn?: string;
695
1117
  }
696
1118
 
697
- const AccessControlTranslation = Schema.Struct({
698
- Owner: Schema.Literal("Destination").annotate({
1119
+ const S3TablesDestination = Schema.Struct({
1120
+ TableBucketArn: Schema.String.annotate({
699
1121
  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*.",
1122
+ "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.",
1123
+ }),
1124
+ TableName: Schema.String.annotate({
1125
+ description:
1126
+ "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.",
701
1127
  }),
1128
+ TableNamespace: Schema.optionalKey(
1129
+ Schema.String.annotate({
1130
+ description:
1131
+ "The table bucket namespace for the metadata table in your metadata table configuration. This value is always ``aws_s3_metadata``.",
1132
+ }),
1133
+ ),
1134
+ TableArn: Schema.optionalKey(
1135
+ Schema.String.annotate({
1136
+ description:
1137
+ "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.",
1138
+ }),
1139
+ ),
702
1140
  }).annotate({
703
1141
  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",
1142
+ "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.",
1143
+ identifier: "S3TablesDestination",
706
1144
  });
707
1145
 
708
- interface EncryptionConfiguration {
709
- readonly ReplicaKmsKeyID:
710
- | ResourceEntity<{
711
- readonly provider: "aws";
712
- readonly service: "kms";
713
- readonly resource: "key";
714
- }>
715
- | string;
1146
+ interface MetadataTableConfiguration {
1147
+ readonly S3TablesDestination: S3TablesDestination;
716
1148
  }
717
1149
 
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
- ]),
1150
+ const MetadataTableConfiguration = Schema.Struct({
1151
+ S3TablesDestination: S3TablesDestination,
743
1152
  }).annotate({
744
1153
  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",
1154
+ "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*.",
1155
+ identifier: "MetadataTableConfiguration",
747
1156
  });
748
1157
 
749
- interface ReplicationTimeValue {
750
- readonly Minutes: number;
1158
+ interface MetadataDestination {
1159
+ readonly TableBucketType: "aws" | "customer";
1160
+ readonly TableBucketArn?: string;
1161
+ readonly TableNamespace?: string;
751
1162
  }
752
1163
 
753
- const ReplicationTimeValue = Schema.Struct({
754
- Minutes: Schema.Number.annotate({
1164
+ const MetadataDestination = Schema.Struct({
1165
+ TableBucketType: Schema.Literals(["aws", "customer"]).annotate({
755
1166
  description:
756
- "Contains an integer specifying time in minutes. \n Valid value: 15",
757
- }).check(Schema.isInt().annotate({ expected: "an integer" })),
1167
+ "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.",
1168
+ }),
1169
+ TableBucketArn: Schema.optionalKey(
1170
+ Schema.String.annotate({
1171
+ description:
1172
+ "The Amazon Resource Name (ARN) of the table bucket where the metadata configuration is stored.",
1173
+ }),
1174
+ ),
1175
+ TableNamespace: Schema.optionalKey(
1176
+ Schema.String.annotate({
1177
+ description:
1178
+ "The namespace in the table bucket where the metadata tables for a metadata configuration are stored.",
1179
+ }),
1180
+ ),
758
1181
  }).annotate({
759
- description:
760
- "A container specifying the time value for S3 Replication Time Control (S3 RTC) and replication metrics ``EventThreshold``.",
761
- identifier: "ReplicationTimeValue",
1182
+ description: "The destination information for the S3 Metadata configuration.",
1183
+ identifier: "MetadataDestination",
762
1184
  });
763
1185
 
764
- interface ReplicaModifications {
765
- readonly Status: "Enabled" | "Disabled";
1186
+ interface RecordExpiration {
1187
+ readonly Expiration: "ENABLED" | "DISABLED";
1188
+ readonly Days?: number;
766
1189
  }
767
1190
 
768
- const ReplicaModifications = Schema.Struct({
769
- Status: Schema.Literals(["Enabled", "Disabled"]).annotate({
1191
+ const RecordExpiration = Schema.Struct({
1192
+ Expiration: Schema.Literals(["ENABLED", "DISABLED"]).annotate({
770
1193
  description:
771
- "Specifies whether Amazon S3 replicates modifications on replicas.\n *Allowed values*: ``Enabled`` | ``Disabled``",
1194
+ "Specifies whether journal table record expiration is enabled or disabled.",
772
1195
  }),
1196
+ Days: Schema.optionalKey(
1197
+ Schema.Number.annotate({
1198
+ description:
1199
+ "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``.",
1200
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1201
+ ),
773
1202
  }).annotate({
774
1203
  description:
775
- "A filter that you can specify for selection for modifications on replicas.",
776
- identifier: "ReplicaModifications",
1204
+ "The journal table record expiration settings for a journal table in an S3 Metadata configuration.",
1205
+ identifier: "RecordExpiration",
777
1206
  });
778
1207
 
779
- interface SseKmsEncryptedObjects {
780
- readonly Status: "Disabled" | "Enabled";
1208
+ interface MetadataTableEncryptionConfiguration {
1209
+ readonly SseAlgorithm: "aws:kms" | "AES256";
1210
+ readonly KmsKeyArn?: string;
781
1211
  }
782
1212
 
783
- const SseKmsEncryptedObjects = Schema.Struct({
784
- Status: Schema.Literals(["Disabled", "Enabled"]).annotate({
1213
+ const MetadataTableEncryptionConfiguration = Schema.Struct({
1214
+ SseAlgorithm: Schema.Literals(["aws:kms", "AES256"]).annotate({
785
1215
  description:
786
- "Specifies whether Amazon S3 replicates objects created with server-side encryption using an AWS KMS key stored in AWS Key Management Service.",
1216
+ "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.",
787
1217
  }),
1218
+ KmsKeyArn: Schema.optionalKey(
1219
+ Schema.String.annotate({
1220
+ description:
1221
+ "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.",
1222
+ }),
1223
+ ),
788
1224
  }).annotate({
789
1225
  description:
790
- "A container for filter information for the selection of S3 objects encrypted with AWS KMS.",
791
- identifier: "SseKmsEncryptedObjects",
1226
+ "The encryption settings for an S3 Metadata journal table or inventory table configuration.",
1227
+ identifier: "MetadataTableEncryptionConfiguration",
792
1228
  });
793
1229
 
794
- interface Tag {
795
- readonly Key: string;
796
- readonly Value: string;
1230
+ interface JournalTableConfiguration {
1231
+ readonly TableName?: string;
1232
+ readonly TableArn?: string;
1233
+ readonly RecordExpiration: RecordExpiration;
1234
+ readonly EncryptionConfiguration?: MetadataTableEncryptionConfiguration;
797
1235
  }
798
1236
 
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",
1237
+ const JournalTableConfiguration = Schema.Struct({
1238
+ TableName: Schema.optionalKey(
1239
+ Schema.String.annotate({ description: "The name of the journal table." }),
1240
+ ),
1241
+ TableArn: Schema.optionalKey(
1242
+ Schema.String.annotate({
1243
+ description: "The Amazon Resource Name (ARN) for the journal table.",
814
1244
  }),
815
1245
  ),
1246
+ RecordExpiration: RecordExpiration,
1247
+ EncryptionConfiguration: Schema.optionalKey(
1248
+ MetadataTableEncryptionConfiguration,
1249
+ ),
816
1250
  }).annotate({
817
- description: "A container of a key value name pair.",
818
- identifier: "Tag",
1251
+ description:
1252
+ "The journal table configuration for an S3 Metadata configuration.",
1253
+ identifier: "JournalTableConfiguration",
819
1254
  });
820
1255
 
821
- interface VersioningConfiguration {
822
- readonly Status: "Enabled" | "Suspended";
1256
+ interface InventoryTableConfiguration {
1257
+ readonly TableName?: string;
1258
+ readonly TableArn?: string;
1259
+ readonly ConfigurationState: "ENABLED" | "DISABLED";
1260
+ readonly EncryptionConfiguration?: MetadataTableEncryptionConfiguration;
823
1261
  }
824
1262
 
825
- const VersioningConfiguration = Schema.Struct({
826
- Status: Schema.Literals(["Enabled", "Suspended"]).annotate({
827
- description: "The versioning state of the bucket.",
1263
+ const InventoryTableConfiguration = Schema.Struct({
1264
+ TableName: Schema.optionalKey(
1265
+ Schema.String.annotate({ description: "The name of the inventory table." }),
1266
+ ),
1267
+ TableArn: Schema.optionalKey(
1268
+ Schema.String.annotate({
1269
+ description: "The Amazon Resource Name (ARN) for the inventory table.",
1270
+ }),
1271
+ ),
1272
+ ConfigurationState: Schema.Literals(["ENABLED", "DISABLED"]).annotate({
1273
+ description:
1274
+ "The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.",
828
1275
  }),
1276
+ EncryptionConfiguration: Schema.optionalKey(
1277
+ MetadataTableEncryptionConfiguration,
1278
+ ),
829
1279
  }).annotate({
830
1280
  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",
1281
+ "The inventory table configuration for an S3 Metadata configuration.",
1282
+ identifier: "InventoryTableConfiguration",
833
1283
  });
834
1284
 
835
- interface RedirectRule {
836
- readonly HostName?: string;
837
- readonly HttpRedirectCode?: string;
838
- readonly Protocol?: "http" | "https";
839
- readonly ReplaceKeyPrefixWith?: string;
840
- readonly ReplaceKeyWith?: string;
1285
+ interface AnnotationTableConfiguration {
1286
+ readonly TableName?: string;
1287
+ readonly TableArn?: string;
1288
+ readonly ConfigurationState: "ENABLED" | "DISABLED";
1289
+ readonly EncryptionConfiguration?: MetadataTableEncryptionConfiguration;
1290
+ readonly Role?: string;
841
1291
  }
842
1292
 
843
- const RedirectRule = Schema.Struct({
844
- HostName: Schema.optionalKey(
1293
+ const AnnotationTableConfiguration = Schema.Struct({
1294
+ TableName: Schema.optionalKey(
845
1295
  Schema.String.annotate({
846
- description: "The host name to use in the redirect request.",
1296
+ description: "The name of the annotation table.",
847
1297
  }),
848
1298
  ),
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
- }),
1299
+ TableArn: Schema.optionalKey(
1300
+ Schema.String.annotate({ description: "The ARN of the annotation table." }),
854
1301
  ),
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
- }),
1302
+ ConfigurationState: Schema.Literals(["ENABLED", "DISABLED"]).annotate({
1303
+ description:
1304
+ "Specifies whether annotation table configuration is enabled or disabled.",
1305
+ }),
1306
+ EncryptionConfiguration: Schema.optionalKey(
1307
+ MetadataTableEncryptionConfiguration,
860
1308
  ),
861
- ReplaceKeyPrefixWith: Schema.optionalKey(
1309
+ Role: Schema.optionalKey(
862
1310
  Schema.String.annotate({
863
1311
  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).",
1312
+ "The ARN of the IAM role that grants Amazon S3 Metadata permission to read annotations from your bucket.",
865
1313
  }),
866
1314
  ),
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
- }),
1315
+ }).annotate({ description: "", identifier: "AnnotationTableConfiguration" });
1316
+
1317
+ interface MetadataConfiguration {
1318
+ readonly Destination?: MetadataDestination;
1319
+ readonly JournalTableConfiguration: JournalTableConfiguration;
1320
+ readonly InventoryTableConfiguration?: InventoryTableConfiguration;
1321
+ readonly AnnotationTableConfiguration?: AnnotationTableConfiguration;
1322
+ }
1323
+
1324
+ const MetadataConfiguration = Schema.Struct({
1325
+ Destination: Schema.optionalKey(MetadataDestination),
1326
+ JournalTableConfiguration: JournalTableConfiguration,
1327
+ InventoryTableConfiguration: Schema.optionalKey(InventoryTableConfiguration),
1328
+ AnnotationTableConfiguration: Schema.optionalKey(
1329
+ AnnotationTableConfiguration,
872
1330
  ),
873
1331
  }).annotate({
874
1332
  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",
1333
+ "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*.",
1334
+ identifier: "MetadataConfiguration",
877
1335
  });
878
1336
 
879
- interface RoutingRuleCondition {
880
- readonly KeyPrefixEquals?: string;
881
- readonly HttpErrorCodeReturnedEquals?: string;
1337
+ interface EventBridgeConfiguration {
1338
+ readonly EventBridgeEnabled: boolean;
882
1339
  }
883
1340
 
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.",
1341
+ const EventBridgeConfiguration = Schema.Struct({
1342
+ EventBridgeEnabled: Schema.Boolean.annotate({
1343
+ description: "Enables delivery of events to Amazon EventBridge.",
1344
+ }),
1345
+ }).annotate({
1346
+ description:
1347
+ "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*",
1348
+ identifier: "EventBridgeConfiguration",
1349
+ });
1350
+
1351
+ interface FilterRule {
1352
+ readonly Name: string;
1353
+ readonly Value: string;
1354
+ }
1355
+
1356
+ const FilterRule = Schema.Struct({
1357
+ Name: Schema.String.annotate({
1358
+ description:
1359
+ "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*.",
1360
+ }).check(
1361
+ Schema.isMaxCodePoints(1024).annotate({
1362
+ expected: "a string with at most 1024 code points",
895
1363
  }),
896
1364
  ),
1365
+ Value: Schema.String.annotate({
1366
+ description: "The value that the filter searches for in object key names.",
1367
+ }),
897
1368
  }).annotate({
898
1369
  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",
1370
+ "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.",
1371
+ identifier: "FilterRule",
901
1372
  });
902
1373
 
903
- interface RedirectAllRequestsTo {
904
- readonly HostName: string;
905
- readonly Protocol?: "http" | "https";
1374
+ interface S3KeyFilter {
1375
+ readonly Rules: globalThis.ReadonlyArray<FilterRule>;
906
1376
  }
907
1377
 
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({
1378
+ const S3KeyFilter = Schema.Struct({
1379
+ Rules: Schema.Array(FilterRule)
1380
+ .annotate({
914
1381
  description:
915
- "Protocol to use when redirecting requests. The default is the protocol that is used in the original request.",
916
- }),
917
- ),
1382
+ "A list of containers for the key-value pair that defines the criteria for the filter rule.",
1383
+ })
1384
+ .check(
1385
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1386
+ ),
918
1387
  }).annotate({
919
1388
  description:
920
- "Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.",
921
- identifier: "RedirectAllRequestsTo",
1389
+ "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.",
1390
+ identifier: "S3KeyFilter",
922
1391
  });
923
1392
 
924
- type Arn = string;
1393
+ interface NotificationFilter {
1394
+ readonly S3Key: S3KeyFilter;
1395
+ }
925
1396
 
926
- const Arn = Schema.String.annotate({
927
- description: "the Amazon Resource Name (ARN) of the specified bucket.",
928
- identifier: "Arn",
1397
+ const NotificationFilter = Schema.Struct({ S3Key: S3KeyFilter }).annotate({
1398
+ description:
1399
+ "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*.",
1400
+ identifier: "NotificationFilter",
929
1401
  });
930
1402
 
931
- interface Destination_2 {
932
- readonly BucketArn: string;
933
- readonly BucketAccountId?: string;
934
- readonly Format: "CSV" | "ORC" | "Parquet";
935
- readonly Prefix?: string;
1403
+ interface LambdaConfiguration {
1404
+ readonly Event: string;
1405
+ readonly Filter?: NotificationFilter;
1406
+ readonly Function:
1407
+ | ResourceEntity<{
1408
+ readonly provider: "aws";
1409
+ readonly service: "lambda";
1410
+ readonly resource: "function";
1411
+ }>
1412
+ | string;
936
1413
  }
937
1414
 
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({
1415
+ const LambdaConfiguration = Schema.Struct({
1416
+ Event: Schema.String.annotate({
950
1417
  description:
951
- "Specifies the file format used when exporting data to Amazon S3.\n *Allowed values*: ``CSV`` | ``ORC`` | ``Parquet``",
1418
+ "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*.",
952
1419
  }),
953
- Prefix: Schema.optionalKey(
1420
+ Filter: Schema.optionalKey(NotificationFilter),
1421
+ Function: Schema.Union([
1422
+ Schema.Union([
1423
+ ResourceReferenceSchema(
1424
+ Schema.Struct({
1425
+ provider: Schema.Literal("aws"),
1426
+ service: Schema.Literal("lambda"),
1427
+ resource: Schema.Literal("function"),
1428
+ }),
1429
+ {
1430
+ value: null,
1431
+ outputs: [
1432
+ {
1433
+ source: ["Arn"],
1434
+ target: [],
1435
+ },
1436
+ ],
1437
+ },
1438
+ ).annotate({ expected: "ResourceEntity" }),
1439
+ ]),
954
1440
  Schema.String.annotate({
955
1441
  description:
956
- "The prefix to use when exporting data. The prefix is prepended to all results.",
1442
+ "The Amazon Resource Name (ARN) of the LAMlong function that Amazon S3 invokes when the specified event type occurs.",
957
1443
  }),
958
- ),
1444
+ ]),
959
1445
  }).annotate({
960
1446
  description:
961
- "Specifies information about where to publish analysis or configuration results for an Amazon S3 bucket.",
962
- identifier: "Destination_2",
1447
+ "Describes the LAMlong functions to invoke and the events for which to invoke them.",
1448
+ identifier: "LambdaConfiguration",
963
1449
  });
964
1450
 
965
- interface ServerSideEncryptionByDefault_1 {
966
- readonly KMSMasterKeyID?: string;
967
- readonly SSEAlgorithm: "aws:kms" | "AES256" | "aws:kms:dsse";
1451
+ interface QueueConfiguration {
1452
+ readonly Event: string;
1453
+ readonly Filter?: NotificationFilter;
1454
+ readonly Queue:
1455
+ | ResourceEntity<{
1456
+ readonly provider: "aws";
1457
+ readonly service: "sqs";
1458
+ readonly resource: "queue";
1459
+ }>
1460
+ | string;
968
1461
  }
969
1462
 
970
- const ServerSideEncryptionByDefault_1 = Schema.Struct({
971
- KMSMasterKeyID: Schema.optionalKey(
1463
+ const QueueConfiguration = Schema.Struct({
1464
+ Event: Schema.String.annotate({
1465
+ description:
1466
+ "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*.",
1467
+ }),
1468
+ Filter: Schema.optionalKey(NotificationFilter),
1469
+ Queue: Schema.Union([
1470
+ Schema.Union([
1471
+ ResourceReferenceSchema(
1472
+ Schema.Struct({
1473
+ provider: Schema.Literal("aws"),
1474
+ service: Schema.Literal("sqs"),
1475
+ resource: Schema.Literal("queue"),
1476
+ }),
1477
+ {
1478
+ value: null,
1479
+ outputs: [
1480
+ {
1481
+ source: ["Arn"],
1482
+ target: [],
1483
+ },
1484
+ ],
1485
+ },
1486
+ ).annotate({ expected: "ResourceEntity" }),
1487
+ ]),
972
1488
  Schema.String.annotate({
973
1489
  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*.",
1490
+ "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.",
975
1491
  }),
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
- ),
1492
+ ]),
983
1493
  }).annotate({
984
1494
  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",
1495
+ "Specifies the configuration for publishing messages to an Amazon Simple Queue Service (Amazon SQS) queue when Amazon S3 detects specified events.",
1496
+ identifier: "QueueConfiguration",
987
1497
  });
988
1498
 
989
- interface EncryptionConfiguration_1 {
990
- readonly ReplicaKmsKeyID: string;
1499
+ interface TopicConfiguration {
1500
+ readonly Event: string;
1501
+ readonly Filter?: NotificationFilter;
1502
+ readonly Topic:
1503
+ | ResourceEntity<{
1504
+ readonly provider: "aws";
1505
+ readonly service: "sns";
1506
+ readonly resource: "topic";
1507
+ }>
1508
+ | string;
991
1509
  }
992
1510
 
993
- const EncryptionConfiguration_1 = Schema.Struct({
994
- ReplicaKmsKeyID: Schema.String.annotate({
1511
+ const TopicConfiguration = Schema.Struct({
1512
+ Event: Schema.String.annotate({
995
1513
  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*.",
1514
+ "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*.",
997
1515
  }),
1516
+ Filter: Schema.optionalKey(NotificationFilter),
1517
+ Topic: Schema.Union([
1518
+ Schema.Union([
1519
+ ResourceReferenceSchema(
1520
+ Schema.Struct({
1521
+ provider: Schema.Literal("aws"),
1522
+ service: Schema.Literal("sns"),
1523
+ resource: Schema.Literal("topic"),
1524
+ }),
1525
+ {
1526
+ value: null,
1527
+ outputs: [
1528
+ {
1529
+ source: ["TopicArn"],
1530
+ target: [],
1531
+ },
1532
+ ],
1533
+ },
1534
+ ).annotate({ expected: "ResourceEntity" }),
1535
+ ]),
1536
+ Schema.String.annotate({
1537
+ description:
1538
+ "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.",
1539
+ }),
1540
+ ]),
998
1541
  }).annotate({
999
1542
  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",
1543
+ "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.",
1544
+ identifier: "TopicConfiguration",
1002
1545
  });
1003
1546
 
1004
- interface MetricsConfiguration {
1005
- readonly AccessPointArn?: string;
1006
- readonly Id: string;
1007
- readonly Prefix?: string;
1008
- readonly TagFilters?: ReadonlyArray<TagFilter>;
1547
+ interface NotificationConfiguration {
1548
+ readonly EventBridgeConfiguration?: EventBridgeConfiguration;
1549
+ readonly LambdaConfigurations?: globalThis.ReadonlyArray<LambdaConfiguration>;
1550
+ readonly QueueConfigurations?: globalThis.ReadonlyArray<QueueConfiguration>;
1551
+ readonly TopicConfigurations?: globalThis.ReadonlyArray<TopicConfiguration>;
1009
1552
  }
1010
1553
 
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
- }),
1554
+ const NotificationConfiguration = Schema.Struct({
1555
+ EventBridgeConfiguration: Schema.optionalKey(EventBridgeConfiguration),
1556
+ LambdaConfigurations: Schema.optionalKey(
1557
+ Schema.Array(LambdaConfiguration)
1558
+ .annotate({
1559
+ description:
1560
+ "Describes the LAMlong functions to invoke and the events for which to invoke them.",
1561
+ })
1562
+ .check(
1563
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1564
+ ),
1017
1565
  ),
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
- }),
1566
+ QueueConfigurations: Schema.optionalKey(
1567
+ Schema.Array(QueueConfiguration)
1568
+ .annotate({
1569
+ description:
1570
+ "The Amazon Simple Queue Service queues to publish messages to and the events for which to publish messages.",
1571
+ })
1572
+ .check(
1573
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1574
+ ),
1027
1575
  ),
1028
- TagFilters: Schema.optionalKey(
1029
- Schema.Array(TagFilter)
1576
+ TopicConfigurations: Schema.optionalKey(
1577
+ Schema.Array(TopicConfiguration)
1030
1578
  .annotate({
1031
1579
  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.",
1580
+ "The topic to which notifications are sent and the events for which notifications are generated.",
1033
1581
  })
1034
1582
  .check(
1035
1583
  Schema.isUnique().annotate({ expected: "an array with unique items" }),
@@ -1037,426 +1585,235 @@ const MetricsConfiguration = Schema.Struct({
1037
1585
  ),
1038
1586
  }).annotate({
1039
1587
  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",
1588
+ "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).",
1589
+ identifier: "NotificationConfiguration",
1042
1590
  });
1043
1591
 
1044
- interface ReplicationRuleAndOperator {
1045
- readonly Prefix?: string;
1046
- readonly TagFilters?: ReadonlyArray<TagFilter>;
1592
+ interface DefaultRetention {
1593
+ readonly Years?: number;
1594
+ readonly Days?: number;
1595
+ readonly Mode?: "COMPLIANCE" | "GOVERNANCE";
1047
1596
  }
1048
1597
 
1049
- const ReplicationRuleAndOperator = Schema.Struct({
1050
- Prefix: Schema.optionalKey(
1051
- Schema.String.annotate({
1598
+ const DefaultRetention = Schema.Struct({
1599
+ Years: Schema.optionalKey(
1600
+ Schema.Number.annotate({
1052
1601
  description:
1053
- "An object key name prefix that identifies the subset of objects to which the rule applies.",
1054
- }),
1602
+ "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``.",
1603
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1055
1604
  ),
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
- ),
1605
+ Days: Schema.optionalKey(
1606
+ Schema.Number.annotate({
1607
+ description:
1608
+ "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``.",
1609
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1610
+ ),
1611
+ Mode: Schema.optionalKey(
1612
+ Schema.Literals(["COMPLIANCE", "GOVERNANCE"]).annotate({
1613
+ description:
1614
+ "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``.",
1615
+ }),
1064
1616
  ),
1065
1617
  }).annotate({
1066
1618
  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",
1619
+ "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.",
1620
+ identifier: "DefaultRetention",
1069
1621
  });
1070
1622
 
1071
- interface DataExport {
1072
- readonly Destination: Destination;
1073
- readonly OutputSchemaVersion: "V_1";
1623
+ interface ObjectLockRule {
1624
+ readonly DefaultRetention?: DefaultRetention;
1074
1625
  }
1075
1626
 
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
- }),
1627
+ const ObjectLockRule = Schema.Struct({
1628
+ DefaultRetention: Schema.optionalKey(DefaultRetention),
1082
1629
  }).annotate({
1083
1630
  description:
1084
- "Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.",
1085
- identifier: "DataExport",
1631
+ "Specifies the Object Lock rule for the specified object. Enable the this rule when you apply ``ObjectLockConfiguration`` to a bucket.",
1632
+ identifier: "ObjectLockRule",
1086
1633
  });
1087
1634
 
1088
- interface BlockedEncryptionTypes {
1089
- readonly EncryptionType?: BlockedEncryptionTypeList;
1635
+ interface ObjectLockConfiguration {
1636
+ readonly ObjectLockEnabled?: "Enabled";
1637
+ readonly Rule?: ObjectLockRule;
1090
1638
  }
1091
1639
 
1092
- const BlockedEncryptionTypes = Schema.Struct({
1093
- EncryptionType: Schema.optionalKey(BlockedEncryptionTypeList),
1640
+ const ObjectLockConfiguration = Schema.Struct({
1641
+ ObjectLockEnabled: Schema.optionalKey(
1642
+ Schema.Literal("Enabled").annotate({
1643
+ description:
1644
+ "Indicates whether this bucket has an Object Lock configuration enabled. Enable ``ObjectLockEnabled`` when you apply ``ObjectLockConfiguration`` to a bucket.",
1645
+ }),
1646
+ ),
1647
+ Rule: Schema.optionalKey(ObjectLockRule),
1094
1648
  }).annotate({
1095
1649
  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",
1650
+ "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).",
1651
+ identifier: "ObjectLockConfiguration",
1098
1652
  });
1099
1653
 
1100
- interface CorsConfiguration {
1101
- readonly CorsRules: ReadonlyArray<CorsRule>;
1654
+ interface OwnershipControlsRule {
1655
+ readonly ObjectOwnership?:
1656
+ | "ObjectWriter"
1657
+ | "BucketOwnerPreferred"
1658
+ | "BucketOwnerEnforced";
1102
1659
  }
1103
1660
 
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
- ),
1661
+ const OwnershipControlsRule = Schema.Struct({
1662
+ ObjectOwnership: Schema.optionalKey(
1663
+ Schema.Literals([
1664
+ "ObjectWriter",
1665
+ "BucketOwnerPreferred",
1666
+ "BucketOwnerEnforced",
1667
+ ]).annotate({ description: "Specifies an object ownership rule." }),
1668
+ ),
1113
1669
  }).annotate({
1114
1670
  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",
1671
+ "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*.",
1672
+ identifier: "OwnershipControlsRule",
1117
1673
  });
1118
1674
 
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>;
1675
+ interface OwnershipControls {
1676
+ readonly Rules: globalThis.ReadonlyArray<OwnershipControlsRule>;
1125
1677
  }
1126
1678
 
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)
1679
+ const OwnershipControls = Schema.Struct({
1680
+ Rules: Schema.Array(OwnershipControlsRule)
1149
1681
  .annotate({
1150
1682
  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.",
1683
+ "Specifies the container element for Object Ownership rules.",
1152
1684
  })
1153
1685
  .check(
1154
1686
  Schema.isUnique().annotate({ expected: "an array with unique items" }),
1155
1687
  ),
1156
1688
  }).annotate({
1157
1689
  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",
1690
+ "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*.",
1691
+ identifier: "OwnershipControls",
1243
1692
  });
1244
1693
 
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;
1694
+ interface PublicAccessBlockConfiguration {
1695
+ readonly BlockPublicAcls?: boolean;
1696
+ readonly BlockPublicPolicy?: boolean;
1697
+ readonly IgnorePublicAcls?: boolean;
1698
+ readonly RestrictPublicBuckets?: boolean;
1256
1699
  }
1257
1700
 
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({
1701
+ const PublicAccessBlockConfiguration = Schema.Struct({
1702
+ BlockPublicAcls: Schema.optionalKey(
1703
+ Schema.Boolean.annotate({
1274
1704
  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" })),
1705
+ "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.",
1706
+ }),
1277
1707
  ),
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({
1708
+ BlockPublicPolicy: Schema.optionalKey(
1709
+ Schema.Boolean.annotate({
1302
1710
  description:
1303
- "Describes the key format for server access log file in the target bucket. You can choose between SimplePrefix and PartitionedPrefix.",
1711
+ "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.",
1304
1712
  }),
1305
- Schema.Struct({ PartitionedPrefix: PartitionedPrefix }).annotate({
1713
+ ),
1714
+ IgnorePublicAcls: Schema.optionalKey(
1715
+ Schema.Boolean.annotate({
1306
1716
  description:
1307
- "Describes the key format for server access log file in the target bucket. You can choose between SimplePrefix and PartitionedPrefix.",
1717
+ "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.",
1308
1718
  }),
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
1719
  ),
1336
- TableArn: Schema.optionalKey(
1337
- Schema.String.annotate({
1338
- description: "The Amazon Resource Name (ARN) for the journal table.",
1720
+ RestrictPublicBuckets: Schema.optionalKey(
1721
+ Schema.Boolean.annotate({
1722
+ description:
1723
+ "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.",
1339
1724
  }),
1340
1725
  ),
1341
- RecordExpiration: RecordExpiration,
1342
- EncryptionConfiguration: Schema.optionalKey(
1343
- MetadataTableEncryptionConfiguration,
1344
- ),
1345
1726
  }).annotate({
1346
1727
  description:
1347
- "The journal table configuration for an S3 Metadata configuration.",
1348
- identifier: "JournalTableConfiguration",
1728
+ '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*.',
1729
+ identifier: "PublicAccessBlockConfiguration",
1349
1730
  });
1350
1731
 
1351
- interface InventoryTableConfiguration {
1352
- readonly TableName?: string;
1353
- readonly TableArn?: string;
1354
- readonly ConfigurationState: "ENABLED" | "DISABLED";
1355
- readonly EncryptionConfiguration?: MetadataTableEncryptionConfiguration;
1732
+ interface DeleteMarkerReplication {
1733
+ readonly Status?: "Disabled" | "Enabled";
1356
1734
  }
1357
1735
 
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.",
1736
+ const DeleteMarkerReplication = Schema.Struct({
1737
+ Status: Schema.optionalKey(
1738
+ Schema.Literals(["Disabled", "Enabled"]).annotate({
1739
+ description: "Indicates whether to replicate delete markers.",
1365
1740
  }),
1366
1741
  ),
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
1742
  }).annotate({
1375
1743
  description:
1376
- "The inventory table configuration for an S3 Metadata configuration.",
1377
- identifier: "InventoryTableConfiguration",
1744
+ "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).",
1745
+ identifier: "DeleteMarkerReplication",
1378
1746
  });
1379
1747
 
1380
- interface AnnotationTableConfiguration {
1381
- readonly TableName?: string;
1382
- readonly TableArn?: string;
1383
- readonly ConfigurationState: "ENABLED" | "DISABLED";
1384
- readonly EncryptionConfiguration?: MetadataTableEncryptionConfiguration;
1385
- readonly Role?: string;
1748
+ interface AccessControlTranslation {
1749
+ readonly Owner: "Destination";
1386
1750
  }
1387
1751
 
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({
1752
+ const AccessControlTranslation = Schema.Struct({
1753
+ Owner: Schema.Literal("Destination").annotate({
1398
1754
  description:
1399
- "Specifies whether annotation table configuration is enabled or disabled.",
1755
+ "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*.",
1400
1756
  }),
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
1757
  }).annotate({
1426
1758
  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",
1759
+ "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.",
1760
+ identifier: "AccessControlTranslation",
1429
1761
  });
1430
1762
 
1431
- interface ObjectLockRule {
1432
- readonly DefaultRetention?: DefaultRetention;
1763
+ interface EncryptionConfiguration {
1764
+ readonly ReplicaKmsKeyID:
1765
+ | ResourceEntity<{
1766
+ readonly provider: "aws";
1767
+ readonly service: "kms";
1768
+ readonly resource: "key";
1769
+ }>
1770
+ | string;
1433
1771
  }
1434
1772
 
1435
- const ObjectLockRule = Schema.Struct({
1436
- DefaultRetention: Schema.optionalKey(DefaultRetention),
1773
+ const EncryptionConfiguration = Schema.Struct({
1774
+ ReplicaKmsKeyID: Schema.Union([
1775
+ Schema.Union([
1776
+ ResourceReferenceSchema(
1777
+ Schema.Struct({
1778
+ provider: Schema.Literal("aws"),
1779
+ service: Schema.Literal("kms"),
1780
+ resource: Schema.Literal("key"),
1781
+ }),
1782
+ {
1783
+ value: null,
1784
+ outputs: [
1785
+ {
1786
+ source: ["Arn"],
1787
+ target: [],
1788
+ },
1789
+ ],
1790
+ },
1791
+ ).annotate({ expected: "ResourceEntity" }),
1792
+ ]),
1793
+ Schema.String.annotate({
1794
+ description:
1795
+ "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*.",
1796
+ }),
1797
+ ]),
1437
1798
  }).annotate({
1438
1799
  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",
1800
+ "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.",
1801
+ identifier: "EncryptionConfiguration",
1441
1802
  });
1442
1803
 
1443
- interface OwnershipControls {
1444
- readonly Rules: ReadonlyArray<OwnershipControlsRule>;
1804
+ interface ReplicationTimeValue {
1805
+ readonly Minutes: number;
1445
1806
  }
1446
1807
 
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
- ),
1808
+ const ReplicationTimeValue = Schema.Struct({
1809
+ Minutes: Schema.Number.annotate({
1810
+ description:
1811
+ "Contains an integer specifying time in minutes. \n Valid value: 15",
1812
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1456
1813
  }).annotate({
1457
1814
  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",
1815
+ "A container specifying the time value for S3 Replication Time Control (S3 RTC) and replication metrics ``EventThreshold``.",
1816
+ identifier: "ReplicationTimeValue",
1460
1817
  });
1461
1818
 
1462
1819
  interface Metrics {
@@ -1491,132 +1848,113 @@ const ReplicationTime = Schema.Struct({
1491
1848
  identifier: "ReplicationTime",
1492
1849
  });
1493
1850
 
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
- }
1851
+ type ResourceInputAlternatives_6 =
1852
+ | "DEEP_ARCHIVE"
1853
+ | "GLACIER"
1854
+ | "GLACIER_IR"
1855
+ | "INTELLIGENT_TIERING"
1856
+ | "ONEZONE_IA"
1857
+ | "REDUCED_REDUNDANCY"
1858
+ | "STANDARD"
1859
+ | "STANDARD_IA";
1512
1860
 
1513
- const RoutingRule = Schema.Struct({
1514
- RedirectRule: RedirectRule,
1515
- RoutingRuleCondition: Schema.optionalKey(RoutingRuleCondition),
1516
- }).annotate({
1861
+ const ResourceInputAlternatives_6 = Schema.Literals([
1862
+ "DEEP_ARCHIVE",
1863
+ "GLACIER",
1864
+ "GLACIER_IR",
1865
+ "INTELLIGENT_TIERING",
1866
+ "ONEZONE_IA",
1867
+ "REDUCED_REDUNDANCY",
1868
+ "STANDARD",
1869
+ "STANDARD_IA",
1870
+ ]).annotate({
1517
1871
  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",
1872
+ "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.",
1520
1873
  });
1521
1874
 
1522
- interface DataExport_1 {
1523
- readonly Destination: Destination_2;
1524
- readonly OutputSchemaVersion: "V_1";
1875
+ interface ReplicationDestination {
1876
+ readonly AccessControlTranslation?: AccessControlTranslation;
1877
+ readonly Account?: string;
1878
+ readonly Bucket:
1879
+ | ResourceEntity<{
1880
+ readonly provider: "aws";
1881
+ readonly service: "s3";
1882
+ readonly resource: "bucket";
1883
+ }>
1884
+ | string;
1885
+ readonly EncryptionConfiguration?: EncryptionConfiguration;
1886
+ readonly Metrics?: Metrics;
1887
+ readonly ReplicationTime?: ReplicationTime;
1888
+ readonly StorageClass?: ResourceInputAlternatives_6;
1525
1889
  }
1526
1890
 
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
- }),
1891
+ const ReplicationDestination = Schema.Struct({
1892
+ AccessControlTranslation: Schema.optionalKey(AccessControlTranslation),
1893
+ Account: Schema.optionalKey(
1894
+ Schema.String.annotate({
1895
+ description:
1896
+ "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.",
1897
+ }),
1898
+ ),
1899
+ Bucket: Schema.Union([
1900
+ Schema.Union([
1901
+ ResourceReferenceSchema(
1902
+ Schema.Struct({
1903
+ provider: Schema.Literal("aws"),
1904
+ service: Schema.Literal("s3"),
1905
+ resource: Schema.Literal("bucket"),
1906
+ }),
1907
+ {
1908
+ value: null,
1909
+ outputs: [
1910
+ {
1911
+ source: ["Arn"],
1912
+ target: [],
1913
+ },
1914
+ ],
1915
+ },
1916
+ ).annotate({ expected: "ResourceEntity" }),
1917
+ ]),
1918
+ Schema.String.annotate({
1919
+ description:
1920
+ "The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.",
1921
+ }),
1922
+ ]),
1923
+ EncryptionConfiguration: Schema.optionalKey(EncryptionConfiguration),
1924
+ Metrics: Schema.optionalKey(Metrics),
1925
+ ReplicationTime: Schema.optionalKey(ReplicationTime),
1926
+ StorageClass: Schema.optionalKey(ResourceInputAlternatives_6),
1533
1927
  }).annotate({
1534
1928
  description:
1535
- "Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.",
1536
- identifier: "DataExport_1",
1929
+ "A container for information about the replication destination and its configurations including enabling the S3 Replication Time Control (S3 RTC).",
1930
+ identifier: "ReplicationDestination",
1537
1931
  });
1538
1932
 
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
- >;
1933
+ interface ReplicationRuleAndOperator {
1562
1934
  readonly Prefix?: string;
1563
- readonly ScheduleFrequency: "Daily" | "Weekly";
1935
+ readonly TagFilters?: globalThis.ReadonlyArray<TagFilter>;
1564
1936
  }
1565
1937
 
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
- )
1938
+ const ReplicationRuleAndOperator = Schema.Struct({
1939
+ Prefix: Schema.optionalKey(
1940
+ Schema.String.annotate({
1941
+ description:
1942
+ "An object key name prefix that identifies the subset of objects to which the rule applies.",
1943
+ }),
1944
+ ),
1945
+ TagFilters: Schema.optionalKey(
1946
+ Schema.Array(TagFilter)
1600
1947
  .annotate({
1601
- description:
1602
- "Contains the optional fields that are included in the inventory results.",
1948
+ description: "An array of tags containing key and value pairs.",
1603
1949
  })
1604
1950
  .check(
1605
1951
  Schema.isUnique().annotate({ expected: "an array with unique items" }),
1606
1952
  ),
1607
1953
  ),
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
1954
  }).annotate({
1617
1955
  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",
1956
+ "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",
1957
+ identifier: "ReplicationRuleAndOperator",
1620
1958
  });
1621
1959
 
1622
1960
  interface ReplicationRuleFilter {
@@ -1640,462 +1978,320 @@ const ReplicationRuleFilter = Schema.Struct({
1640
1978
  identifier: "ReplicationRuleFilter",
1641
1979
  });
1642
1980
 
1643
- interface StorageClassAnalysis {
1644
- readonly DataExport?: DataExport;
1981
+ interface ReplicaModifications {
1982
+ readonly Status: "Enabled" | "Disabled";
1645
1983
  }
1646
1984
 
1647
- const StorageClassAnalysis = Schema.Struct({
1648
- DataExport: Schema.optionalKey(DataExport),
1985
+ const ReplicaModifications = Schema.Struct({
1986
+ Status: Schema.Literals(["Enabled", "Disabled"]).annotate({
1987
+ description:
1988
+ "Specifies whether Amazon S3 replicates modifications on replicas.\n *Allowed values*: ``Enabled`` | ``Disabled``",
1989
+ }),
1649
1990
  }).annotate({
1650
1991
  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",
1992
+ "A filter that you can specify for selection for modifications on replicas.",
1993
+ identifier: "ReplicaModifications",
1653
1994
  });
1654
1995
 
1655
- interface ServerSideEncryptionRule {
1656
- readonly BucketKeyEnabled?: boolean;
1657
- readonly ServerSideEncryptionByDefault?: ServerSideEncryptionByDefault;
1658
- readonly BlockedEncryptionTypes?: BlockedEncryptionTypes;
1996
+ interface SseKmsEncryptedObjects {
1997
+ readonly Status: "Disabled" | "Enabled";
1659
1998
  }
1660
1999
 
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),
2000
+ const SseKmsEncryptedObjects = Schema.Struct({
2001
+ Status: Schema.Literals(["Disabled", "Enabled"]).annotate({
2002
+ description:
2003
+ "Specifies whether Amazon S3 replicates objects created with server-side encryption using an AWS KMS key stored in AWS Key Management Service.",
2004
+ }),
1672
2005
  }).annotate({
1673
2006
  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",
2007
+ "A container for filter information for the selection of S3 objects encrypted with AWS KMS.",
2008
+ identifier: "SseKmsEncryptedObjects",
1676
2009
  });
1677
2010
 
1678
- interface ServerSideEncryptionRule_1 {
1679
- readonly BucketKeyEnabled?: boolean;
1680
- readonly ServerSideEncryptionByDefault?: ServerSideEncryptionByDefault_1;
1681
- readonly BlockedEncryptionTypes?: BlockedEncryptionTypes;
2011
+ interface SourceSelectionCriteria {
2012
+ readonly ReplicaModifications?: ReplicaModifications;
2013
+ readonly SseKmsEncryptedObjects?: SseKmsEncryptedObjects;
1682
2014
  }
1683
2015
 
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),
2016
+ const SourceSelectionCriteria = Schema.Struct({
2017
+ ReplicaModifications: Schema.optionalKey(ReplicaModifications),
2018
+ SseKmsEncryptedObjects: Schema.optionalKey(SseKmsEncryptedObjects),
1695
2019
  }).annotate({
1696
2020
  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",
2021
+ "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.",
2022
+ identifier: "SourceSelectionCriteria",
1699
2023
  });
1700
2024
 
1701
- interface Rule {
1702
- readonly AbortIncompleteMultipartUpload?: AbortIncompleteMultipartUpload;
1703
- readonly ExpirationDate?: Iso8601UTC;
1704
- readonly ExpirationInDays?: number;
1705
- readonly ExpiredObjectDeleteMarker?: boolean;
2025
+ type ResourceInputAlternatives_7 = "Disabled" | "Enabled";
2026
+
2027
+ const ResourceInputAlternatives_7 = Schema.Literals([
2028
+ "Disabled",
2029
+ "Enabled",
2030
+ ]).annotate({ description: "Specifies whether the rule is enabled." });
2031
+
2032
+ interface ReplicationRule {
2033
+ readonly DeleteMarkerReplication?: DeleteMarkerReplication;
2034
+ readonly Destination: ReplicationDestination;
2035
+ readonly Filter?: ReplicationRuleFilter;
1706
2036
  readonly Id?: string;
1707
- readonly NoncurrentVersionExpirationInDays?: number;
1708
- readonly NoncurrentVersionExpiration?: NoncurrentVersionExpiration;
1709
- readonly NoncurrentVersionTransition?: NoncurrentVersionTransition;
1710
- readonly NoncurrentVersionTransitions?: ReadonlyArray<NoncurrentVersionTransition>;
1711
2037
  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>;
2038
+ readonly Priority?: number;
2039
+ readonly SourceSelectionCriteria?: SourceSelectionCriteria;
2040
+ readonly Status: ResourceInputAlternatives_7;
1718
2041
  }
1719
2042
 
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
- ),
2043
+ const ReplicationRule = Schema.Struct({
2044
+ DeleteMarkerReplication: Schema.optionalKey(DeleteMarkerReplication),
2045
+ Destination: ReplicationDestination,
2046
+ Filter: Schema.optionalKey(ReplicationRuleFilter),
1737
2047
  Id: Schema.optionalKey(
1738
2048
  Schema.String.annotate({
1739
2049
  description:
1740
- "Unique identifier for the rule. The value can't be longer than 255 characters.",
2050
+ '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".',
1741
2051
  }).check(
1742
2052
  Schema.isMaxCodePoints(255).annotate({
1743
2053
  expected: "a string with at most 255 code points",
1744
2054
  }),
1745
2055
  ),
1746
2056
  ),
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
2057
  Prefix: Schema.optionalKey(
1766
2058
  Schema.String.annotate({
1767
2059
  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
- ),
2060
+ "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).",
2061
+ }).check(
2062
+ Schema.isMaxCodePoints(1024).annotate({
2063
+ expected: "a string with at most 1024 code points",
2064
+ }),
2065
+ ),
1800
2066
  ),
1801
- ObjectSizeLessThan: Schema.optionalKey(
1802
- Schema.String.annotate({
2067
+ Priority: Schema.optionalKey(
2068
+ Schema.Number.annotate({
1803
2069
  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
- ),
2070
+ "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*.",
2071
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1827
2072
  ),
2073
+ SourceSelectionCriteria: Schema.optionalKey(SourceSelectionCriteria),
2074
+ Status: ResourceInputAlternatives_7,
1828
2075
  }).annotate({
1829
2076
  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",
2077
+ "Specifies which Amazon S3 objects to replicate and where to store the replicas.",
2078
+ identifier: "ReplicationRule",
1832
2079
  });
1833
2080
 
1834
- interface LoggingConfiguration {
1835
- readonly DestinationBucketName?:
2081
+ interface ReplicationConfiguration {
2082
+ readonly Role:
1836
2083
  | ResourceEntity<{
1837
2084
  readonly provider: "aws";
1838
- readonly service: "s3";
1839
- readonly resource: "bucket";
2085
+ readonly service: "iam";
2086
+ readonly resource: "role";
1840
2087
  }>
1841
2088
  | string;
1842
- readonly LogFilePrefix?: string;
1843
- readonly TargetObjectKeyFormat?: TargetObjectKeyFormat;
2089
+ readonly Rules: globalThis.ReadonlyArray<ReplicationRule>;
1844
2090
  }
1845
2091
 
1846
- const LoggingConfiguration = Schema.Struct({
1847
- DestinationBucketName: Schema.optionalKey(
2092
+ const ReplicationConfiguration = Schema.Struct({
2093
+ Role: Schema.Union([
1848
2094
  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
- }),
2095
+ ResourceReferenceSchema(
2096
+ Schema.Struct({
2097
+ provider: Schema.Literal("aws"),
2098
+ service: Schema.Literal("iam"),
2099
+ resource: Schema.Literal("role"),
2100
+ }),
2101
+ {
2102
+ value: null,
2103
+ outputs: [
2104
+ {
2105
+ source: ["Arn"],
2106
+ target: [],
2107
+ },
2108
+ ],
2109
+ },
2110
+ ).annotate({ expected: "ResourceEntity" }),
1871
2111
  ]),
1872
- ),
1873
- LogFilePrefix: Schema.optionalKey(
1874
2112
  Schema.String.annotate({
1875
2113
  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.",
2114
+ "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*.",
1877
2115
  }),
1878
- ),
1879
- TargetObjectKeyFormat: Schema.optionalKey(TargetObjectKeyFormat),
2116
+ ]),
2117
+ Rules: Schema.Array(ReplicationRule)
2118
+ .annotate({
2119
+ description:
2120
+ "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.",
2121
+ })
2122
+ .check(
2123
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
2124
+ ),
1880
2125
  }).annotate({
1881
2126
  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",
2127
+ "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*.",
2128
+ identifier: "ReplicationConfiguration",
1884
2129
  });
1885
2130
 
1886
- interface LoggingConfiguration_1 {
1887
- readonly DestinationBucketName?: string;
1888
- readonly LogFilePrefix?: string;
1889
- readonly TargetObjectKeyFormat?: TargetObjectKeyFormat;
2131
+ interface Tag {
2132
+ readonly Key: string;
2133
+ readonly Value: string;
1890
2134
  }
1891
2135
 
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.",
2136
+ const Tag = Schema.Struct({
2137
+ Key: Schema.String.annotate({ description: "Name of the object key." })
2138
+ .check(
2139
+ Schema.isMinLength(1).annotate({
2140
+ expected: "a value with a length of at least 1",
2141
+ }),
2142
+ )
2143
+ .check(
2144
+ Schema.isMaxCodePoints(128).annotate({
2145
+ expected: "a string with at most 128 code points",
2146
+ }),
2147
+ ),
2148
+ Value: Schema.String.annotate({ description: "Value of the tag." }).check(
2149
+ Schema.isMaxCodePoints(256).annotate({
2150
+ expected: "a string with at most 256 code points",
1903
2151
  }),
1904
2152
  ),
1905
- TargetObjectKeyFormat: Schema.optionalKey(TargetObjectKeyFormat),
1906
2153
  }).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",
2154
+ description: "A container of a key value name pair.",
2155
+ identifier: "Tag",
1910
2156
  });
1911
2157
 
1912
- interface MetadataConfiguration {
1913
- readonly Destination?: MetadataDestination;
1914
- readonly JournalTableConfiguration: JournalTableConfiguration;
1915
- readonly InventoryTableConfiguration?: InventoryTableConfiguration;
1916
- readonly AnnotationTableConfiguration?: AnnotationTableConfiguration;
1917
- }
2158
+ type ResourceInputItems_4 = globalThis.ReadonlyArray<Tag>;
1918
2159
 
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",
2160
+ const ResourceInputItems_4 = Schema.Array(Tag).annotate({
2161
+ description: "An arbitrary set of tags (key-value pairs) for this S3 bucket.",
1930
2162
  });
1931
2163
 
1932
- interface NotificationFilter {
1933
- readonly S3Key: S3KeyFilter;
1934
- }
2164
+ type ResourceInputAlternatives_8 = "Enabled" | "Disabled";
1935
2165
 
1936
- const NotificationFilter = Schema.Struct({ S3Key: S3KeyFilter }).annotate({
2166
+ const ResourceInputAlternatives_8 = Schema.Literals([
2167
+ "Enabled",
2168
+ "Disabled",
2169
+ ]).annotate({
1937
2170
  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",
2171
+ "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).",
1940
2172
  });
1941
2173
 
1942
- interface ObjectLockConfiguration {
1943
- readonly ObjectLockEnabled?: "Enabled";
1944
- readonly Rule?: ObjectLockRule;
2174
+ interface VersioningConfiguration {
2175
+ readonly Status: "Enabled" | "Suspended";
1945
2176
  }
1946
2177
 
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),
2178
+ const VersioningConfiguration = Schema.Struct({
2179
+ Status: Schema.Literals(["Enabled", "Suspended"]).annotate({
2180
+ description: "The versioning state of the bucket.",
2181
+ }),
1955
2182
  }).annotate({
1956
2183
  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",
2184
+ "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.",
2185
+ identifier: "VersioningConfiguration",
1959
2186
  });
1960
2187
 
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";
2188
+ interface RedirectRule {
2189
+ readonly HostName?: string;
2190
+ readonly HttpRedirectCode?: string;
2191
+ readonly Protocol?: "http" | "https";
2192
+ readonly ReplaceKeyPrefixWith?: string;
2193
+ readonly ReplaceKeyWith?: string;
1983
2194
  }
1984
2195
 
1985
- const ReplicationDestination = Schema.Struct({
1986
- AccessControlTranslation: Schema.optionalKey(AccessControlTranslation),
1987
- Account: Schema.optionalKey(
2196
+ const RedirectRule = Schema.Struct({
2197
+ HostName: Schema.optionalKey(
2198
+ Schema.String.annotate({
2199
+ description: "The host name to use in the redirect request.",
2200
+ }),
2201
+ ),
2202
+ HttpRedirectCode: Schema.optionalKey(
1988
2203
  Schema.String.annotate({
1989
2204
  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.",
2205
+ "The HTTP redirect code to use on the response. Not required if one of the siblings is present.",
1991
2206
  }),
1992
2207
  ),
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
- ]),
2208
+ Protocol: Schema.optionalKey(
2209
+ Schema.Literals(["http", "https"]).annotate({
2210
+ description:
2211
+ "Protocol to use when redirecting requests. The default is the protocol that is used in the original request.",
2212
+ }),
2213
+ ),
2214
+ ReplaceKeyPrefixWith: Schema.optionalKey(
2012
2215
  Schema.String.annotate({
2013
2216
  description:
2014
- "The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.",
2217
+ "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).",
2015
2218
  }),
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({
2219
+ ),
2220
+ ReplaceKeyWith: Schema.optionalKey(
2221
+ Schema.String.annotate({
2031
2222
  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.",
2223
+ "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).",
2033
2224
  }),
2034
2225
  ),
2035
2226
  }).annotate({
2036
2227
  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",
2228
+ "Specifies how requests are redirected. In the event of an error, you can specify a different error code to return.",
2229
+ identifier: "RedirectRule",
2039
2230
  });
2040
2231
 
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";
2232
+ interface RoutingRuleCondition {
2233
+ readonly KeyPrefixEquals?: string;
2234
+ readonly HttpErrorCodeReturnedEquals?: string;
2057
2235
  }
2058
2236
 
2059
- const ReplicationDestination_1 = Schema.Struct({
2060
- AccessControlTranslation: Schema.optionalKey(AccessControlTranslation),
2061
- Account: Schema.optionalKey(
2237
+ const RoutingRuleCondition = Schema.Struct({
2238
+ KeyPrefixEquals: Schema.optionalKey(
2062
2239
  Schema.String.annotate({
2063
2240
  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.",
2241
+ "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.",
2065
2242
  }),
2066
2243
  ),
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({
2244
+ HttpErrorCodeReturnedEquals: Schema.optionalKey(
2245
+ Schema.String.annotate({
2246
+ description:
2247
+ "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.",
2248
+ }),
2249
+ ),
2250
+ }).annotate({
2251
+ description:
2252
+ "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.",
2253
+ identifier: "RoutingRuleCondition",
2254
+ });
2255
+
2256
+ interface RoutingRule {
2257
+ readonly RedirectRule: RedirectRule;
2258
+ readonly RoutingRuleCondition?: RoutingRuleCondition;
2259
+ }
2260
+
2261
+ const RoutingRule = Schema.Struct({
2262
+ RedirectRule: RedirectRule,
2263
+ RoutingRuleCondition: Schema.optionalKey(RoutingRuleCondition),
2264
+ }).annotate({
2265
+ description:
2266
+ "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*.",
2267
+ identifier: "RoutingRule",
2268
+ });
2269
+
2270
+ interface RedirectAllRequestsTo {
2271
+ readonly HostName: string;
2272
+ readonly Protocol?: "http" | "https";
2273
+ }
2274
+
2275
+ const RedirectAllRequestsTo = Schema.Struct({
2276
+ HostName: Schema.String.annotate({
2277
+ description: "Name of the host where requests are redirected.",
2278
+ }),
2279
+ Protocol: Schema.optionalKey(
2280
+ Schema.Literals(["http", "https"]).annotate({
2085
2281
  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.",
2282
+ "Protocol to use when redirecting requests. The default is the protocol that is used in the original request.",
2087
2283
  }),
2088
2284
  ),
2089
2285
  }).annotate({
2090
2286
  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",
2287
+ "Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.",
2288
+ identifier: "RedirectAllRequestsTo",
2093
2289
  });
2094
2290
 
2095
2291
  interface WebsiteConfiguration {
2096
2292
  readonly ErrorDocument?: string;
2097
2293
  readonly IndexDocument?: string;
2098
- readonly RoutingRules?: ReadonlyArray<RoutingRule>;
2294
+ readonly RoutingRules?: globalThis.ReadonlyArray<RoutingRule>;
2099
2295
  readonly RedirectAllRequestsTo?: RedirectAllRequestsTo;
2100
2296
  }
2101
2297
 
@@ -2123,517 +2319,289 @@ const WebsiteConfiguration = Schema.Struct({
2123
2319
  identifier: "WebsiteConfiguration",
2124
2320
  });
2125
2321
 
2126
- interface StorageClassAnalysis_1 {
2127
- readonly DataExport?: DataExport_1;
2128
- }
2322
+ type Arn = string;
2129
2323
 
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",
2324
+ const Arn = Schema.String.annotate({
2325
+ description: "the Amazon Resource Name (ARN) of the specified bucket.",
2326
+ identifier: "Arn",
2136
2327
  });
2137
2328
 
2138
- interface AnalyticsConfiguration {
2139
- readonly TagFilters?: ReadonlyArray<TagFilter>;
2140
- readonly StorageClassAnalysis: StorageClassAnalysis;
2141
- readonly Id: string;
2329
+ interface Destination_2 {
2330
+ readonly BucketArn: string;
2331
+ readonly BucketAccountId?: string;
2332
+ readonly Format: ResourceInputAlternatives_1;
2142
2333
  readonly Prefix?: string;
2143
2334
  }
2144
2335
 
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.",
2336
+ const Destination_2 = Schema.Struct({
2337
+ BucketArn: Schema.String.annotate({
2338
+ description:
2339
+ "The Amazon Resource Name (ARN) of the bucket to which data is exported.",
2159
2340
  }),
2160
- Prefix: Schema.optionalKey(
2341
+ BucketAccountId: Schema.optionalKey(
2161
2342
  Schema.String.annotate({
2162
2343
  description:
2163
- "The prefix that an object must have to be included in the analytics results.",
2344
+ "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.",
2164
2345
  }),
2165
2346
  ),
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({
2347
+ Format: ResourceInputAlternatives_1,
2348
+ Prefix: Schema.optionalKey(
2349
+ Schema.String.annotate({
2231
2350
  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.",
2351
+ "The prefix to use when exporting data. The prefix is prepended to all results.",
2233
2352
  }),
2234
2353
  ),
2235
2354
  }).annotate({
2236
2355
  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",
2356
+ "Specifies information about where to publish analysis or configuration results for an Amazon S3 bucket.",
2357
+ identifier: "Destination_2",
2239
2358
  });
2240
2359
 
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;
2360
+ interface DataExport_1 {
2361
+ readonly Destination: Destination_2;
2362
+ readonly OutputSchemaVersion: "V_1";
2251
2363
  }
2252
2364
 
2253
- const LambdaConfiguration = Schema.Struct({
2254
- Event: Schema.String.annotate({
2365
+ const DataExport_1 = Schema.Struct({
2366
+ Destination: Destination_2,
2367
+ OutputSchemaVersion: Schema.Literal("V_1").annotate({
2255
2368
  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*.",
2369
+ "The version of the output schema to use when exporting data. Must be ``V_1``.",
2257
2370
  }),
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
2371
  }).annotate({
2284
2372
  description:
2285
- "Describes the LAMlong functions to invoke and the events for which to invoke them.",
2286
- identifier: "LambdaConfiguration",
2373
+ "Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.",
2374
+ identifier: "DataExport_1",
2287
2375
  });
2288
2376
 
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;
2377
+ interface StorageClassAnalysis_1 {
2378
+ readonly DataExport?: DataExport_1;
2299
2379
  }
2300
2380
 
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
- ]),
2381
+ const StorageClassAnalysis_1 = Schema.Struct({
2382
+ DataExport: Schema.optionalKey(DataExport_1),
2331
2383
  }).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
- ]),
2384
+ description:
2385
+ "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.",
2386
+ identifier: "StorageClassAnalysis_1",
2387
+ });
2388
+
2389
+ interface AnalyticsConfiguration_1 {
2390
+ readonly TagFilters?: ResourceInputItems;
2391
+ readonly StorageClassAnalysis: StorageClassAnalysis_1;
2392
+ readonly Id: string;
2393
+ readonly Prefix?: string;
2394
+ }
2395
+
2396
+ const AnalyticsConfiguration_1 = Schema.Struct({
2397
+ TagFilters: Schema.optionalKey(ResourceInputItems),
2398
+ StorageClassAnalysis: StorageClassAnalysis_1,
2399
+ Id: Schema.String.annotate({
2400
+ description: "The ID that identifies the analytics configuration.",
2401
+ }),
2402
+ Prefix: Schema.optionalKey(
2374
2403
  Schema.String.annotate({
2375
2404
  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.",
2405
+ "The prefix that an object must have to be included in the analytics results.",
2377
2406
  }),
2378
- ]),
2407
+ ),
2379
2408
  }).annotate({
2380
2409
  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",
2410
+ "Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.",
2411
+ identifier: "AnalyticsConfiguration_1",
2383
2412
  });
2384
2413
 
2385
- interface LambdaConfiguration_1 {
2386
- readonly Event: string;
2387
- readonly Filter?: NotificationFilter;
2388
- readonly Function: string;
2414
+ interface ServerSideEncryptionByDefault_1 {
2415
+ readonly KMSMasterKeyID?: string;
2416
+ readonly SSEAlgorithm: ResourceInputAlternatives_2;
2389
2417
  }
2390
2418
 
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
- }),
2419
+ const ServerSideEncryptionByDefault_1 = Schema.Struct({
2420
+ KMSMasterKeyID: Schema.optionalKey(
2421
+ Schema.String.annotate({
2422
+ description:
2423
+ "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*.",
2424
+ }),
2425
+ ),
2426
+ SSEAlgorithm: ResourceInputAlternatives_2,
2401
2427
  }).annotate({
2402
2428
  description:
2403
- "Describes the LAMlong functions to invoke and the events for which to invoke them.",
2404
- identifier: "LambdaConfiguration_1",
2429
+ "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.",
2430
+ identifier: "ServerSideEncryptionByDefault_1",
2405
2431
  });
2406
2432
 
2407
- interface QueueConfiguration_1 {
2408
- readonly Event: string;
2409
- readonly Filter?: NotificationFilter;
2410
- readonly Queue: string;
2433
+ interface ServerSideEncryptionRule_1 {
2434
+ readonly BucketKeyEnabled?: boolean;
2435
+ readonly ServerSideEncryptionByDefault?: ServerSideEncryptionByDefault_1;
2436
+ readonly BlockedEncryptionTypes?: BlockedEncryptionTypes;
2411
2437
  }
2412
2438
 
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
- }),
2439
+ const ServerSideEncryptionRule_1 = Schema.Struct({
2440
+ BucketKeyEnabled: Schema.optionalKey(
2441
+ Schema.Boolean.annotate({
2442
+ description:
2443
+ "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*.",
2444
+ }),
2445
+ ),
2446
+ ServerSideEncryptionByDefault: Schema.optionalKey(
2447
+ ServerSideEncryptionByDefault_1,
2448
+ ),
2449
+ BlockedEncryptionTypes: Schema.optionalKey(BlockedEncryptionTypes),
2423
2450
  }).annotate({
2424
2451
  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",
2452
+ "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.",
2453
+ identifier: "ServerSideEncryptionRule_1",
2427
2454
  });
2428
2455
 
2429
- interface TopicConfiguration_1 {
2430
- readonly Event: string;
2431
- readonly Filter?: NotificationFilter;
2432
- readonly Topic: string;
2456
+ interface BucketEncryption_1 {
2457
+ readonly ServerSideEncryptionConfiguration: globalThis.ReadonlyArray<ServerSideEncryptionRule_1>;
2433
2458
  }
2434
2459
 
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
- }),
2460
+ const BucketEncryption_1 = Schema.Struct({
2461
+ ServerSideEncryptionConfiguration: Schema.Array(ServerSideEncryptionRule_1)
2462
+ .annotate({
2463
+ description:
2464
+ "Specifies the default server-side-encryption configuration.",
2465
+ })
2466
+ .check(
2467
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
2468
+ ),
2445
2469
  }).annotate({
2446
2470
  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",
2471
+ "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*.",
2472
+ identifier: "BucketEncryption_1",
2449
2473
  });
2450
2474
 
2451
- interface ReplicationRule {
2452
- readonly DeleteMarkerReplication?: DeleteMarkerReplication;
2453
- readonly Destination: ReplicationDestination;
2454
- readonly Filter?: ReplicationRuleFilter;
2455
- readonly Id?: string;
2475
+ interface InventoryConfiguration_1 {
2476
+ readonly Destination: Destination_2;
2477
+ readonly Enabled: boolean;
2478
+ readonly Id: string;
2479
+ readonly IncludedObjectVersions: ResourceInputAlternatives_4;
2480
+ readonly OptionalFields?: ResourceInputItems_2;
2456
2481
  readonly Prefix?: string;
2457
- readonly Priority?: number;
2458
- readonly SourceSelectionCriteria?: SourceSelectionCriteria;
2459
- readonly Status: "Disabled" | "Enabled";
2482
+ readonly ScheduleFrequency: ResourceInputAlternatives_5;
2460
2483
  }
2461
2484
 
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
- ),
2485
+ const InventoryConfiguration_1 = Schema.Struct({
2486
+ Destination: Destination_2,
2487
+ Enabled: Schema.Boolean.annotate({
2488
+ description:
2489
+ "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.",
2490
+ }),
2491
+ Id: Schema.String.annotate({
2492
+ description: "The ID used to identify the inventory configuration.",
2493
+ }),
2494
+ IncludedObjectVersions: ResourceInputAlternatives_4,
2495
+ OptionalFields: Schema.optionalKey(ResourceInputItems_2),
2476
2496
  Prefix: Schema.optionalKey(
2477
2497
  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" })),
2498
+ description: "Specifies the inventory filter prefix.",
2499
+ }),
2491
2500
  ),
2492
- SourceSelectionCriteria: Schema.optionalKey(SourceSelectionCriteria),
2493
- Status: Schema.Literals(["Disabled", "Enabled"]).annotate({
2494
- description: "Specifies whether the rule is enabled.",
2495
- }),
2501
+ ScheduleFrequency: ResourceInputAlternatives_5,
2496
2502
  }).annotate({
2497
2503
  description:
2498
- "Specifies which Amazon S3 objects to replicate and where to store the replicas.",
2499
- identifier: "ReplicationRule",
2504
+ "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*.",
2505
+ identifier: "InventoryConfiguration_1",
2500
2506
  });
2501
2507
 
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";
2508
+ interface LoggingConfiguration_1 {
2509
+ readonly DestinationBucketName?: string;
2510
+ readonly LogFilePrefix?: string;
2511
+ readonly TargetObjectKeyFormat?: TargetObjectKeyFormat;
2511
2512
  }
2512
2513
 
2513
- const ReplicationRule_1 = Schema.Struct({
2514
- DeleteMarkerReplication: Schema.optionalKey(DeleteMarkerReplication),
2515
- Destination: ReplicationDestination_1,
2516
- Filter: Schema.optionalKey(ReplicationRuleFilter),
2517
- Id: Schema.optionalKey(
2514
+ const LoggingConfiguration_1 = Schema.Struct({
2515
+ DestinationBucketName: Schema.optionalKey(
2518
2516
  Schema.String.annotate({
2519
2517
  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
- ),
2518
+ "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.",
2519
+ }),
2526
2520
  ),
2527
- Prefix: Schema.optionalKey(
2521
+ LogFilePrefix: Schema.optionalKey(
2528
2522
  Schema.String.annotate({
2529
2523
  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" })),
2524
+ "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.",
2525
+ }),
2542
2526
  ),
2543
- SourceSelectionCriteria: Schema.optionalKey(SourceSelectionCriteria),
2544
- Status: Schema.Literals(["Disabled", "Enabled"]).annotate({
2545
- description: "Specifies whether the rule is enabled.",
2546
- }),
2527
+ TargetObjectKeyFormat: Schema.optionalKey(TargetObjectKeyFormat),
2547
2528
  }).annotate({
2548
2529
  description:
2549
- "Specifies which Amazon S3 objects to replicate and where to store the replicas.",
2550
- identifier: "ReplicationRule_1",
2530
+ "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.",
2531
+ identifier: "LoggingConfiguration_1",
2551
2532
  });
2552
2533
 
2553
- interface AnalyticsConfiguration_1 {
2554
- readonly TagFilters?: ReadonlyArray<TagFilter>;
2555
- readonly StorageClassAnalysis: StorageClassAnalysis_1;
2556
- readonly Id: string;
2557
- readonly Prefix?: string;
2534
+ interface LambdaConfiguration_1 {
2535
+ readonly Event: string;
2536
+ readonly Filter?: NotificationFilter;
2537
+ readonly Function: string;
2558
2538
  }
2559
2539
 
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.",
2540
+ const LambdaConfiguration_1 = Schema.Struct({
2541
+ Event: Schema.String.annotate({
2542
+ description:
2543
+ "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*.",
2544
+ }),
2545
+ Filter: Schema.optionalKey(NotificationFilter),
2546
+ Function: Schema.String.annotate({
2547
+ description:
2548
+ "The Amazon Resource Name (ARN) of the LAMlong function that Amazon S3 invokes when the specified event type occurs.",
2549
+ }),
2550
+ }).annotate({
2551
+ description:
2552
+ "Describes the LAMlong functions to invoke and the events for which to invoke them.",
2553
+ identifier: "LambdaConfiguration_1",
2554
+ });
2555
+
2556
+ interface QueueConfiguration_1 {
2557
+ readonly Event: string;
2558
+ readonly Filter?: NotificationFilter;
2559
+ readonly Queue: string;
2560
+ }
2561
+
2562
+ const QueueConfiguration_1 = Schema.Struct({
2563
+ Event: Schema.String.annotate({
2564
+ description:
2565
+ "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*.",
2566
+ }),
2567
+ Filter: Schema.optionalKey(NotificationFilter),
2568
+ Queue: Schema.String.annotate({
2569
+ description:
2570
+ "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.",
2574
2571
  }),
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
2572
  }).annotate({
2582
2573
  description:
2583
- "Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.",
2584
- identifier: "AnalyticsConfiguration_1",
2574
+ "Specifies the configuration for publishing messages to an Amazon Simple Queue Service (Amazon SQS) queue when Amazon S3 detects specified events.",
2575
+ identifier: "QueueConfiguration_1",
2585
2576
  });
2586
2577
 
2587
- interface NotificationConfiguration {
2588
- readonly EventBridgeConfiguration?: EventBridgeConfiguration;
2589
- readonly LambdaConfigurations?: ReadonlyArray<LambdaConfiguration>;
2590
- readonly QueueConfigurations?: ReadonlyArray<QueueConfiguration>;
2591
- readonly TopicConfigurations?: ReadonlyArray<TopicConfiguration>;
2578
+ interface TopicConfiguration_1 {
2579
+ readonly Event: string;
2580
+ readonly Filter?: NotificationFilter;
2581
+ readonly Topic: string;
2592
2582
  }
2593
2583
 
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
- ),
2584
+ const TopicConfiguration_1 = Schema.Struct({
2585
+ Event: Schema.String.annotate({
2586
+ description:
2587
+ "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*.",
2588
+ }),
2589
+ Filter: Schema.optionalKey(NotificationFilter),
2590
+ Topic: Schema.String.annotate({
2591
+ description:
2592
+ "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.",
2593
+ }),
2626
2594
  }).annotate({
2627
2595
  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",
2596
+ "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.",
2597
+ identifier: "TopicConfiguration_1",
2630
2598
  });
2631
2599
 
2632
2600
  interface NotificationConfiguration_1 {
2633
2601
  readonly EventBridgeConfiguration?: EventBridgeConfiguration;
2634
- readonly LambdaConfigurations?: ReadonlyArray<LambdaConfiguration_1>;
2635
- readonly QueueConfigurations?: ReadonlyArray<QueueConfiguration_1>;
2636
- readonly TopicConfigurations?: ReadonlyArray<TopicConfiguration_1>;
2602
+ readonly LambdaConfigurations?: globalThis.ReadonlyArray<LambdaConfiguration_1>;
2603
+ readonly QueueConfigurations?: globalThis.ReadonlyArray<QueueConfiguration_1>;
2604
+ readonly TopicConfigurations?: globalThis.ReadonlyArray<TopicConfiguration_1>;
2637
2605
  }
2638
2606
 
2639
2607
  const NotificationConfiguration_1 = Schema.Struct({
@@ -2674,59 +2642,105 @@ const NotificationConfiguration_1 = Schema.Struct({
2674
2642
  identifier: "NotificationConfiguration_1",
2675
2643
  });
2676
2644
 
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>;
2645
+ interface EncryptionConfiguration_1 {
2646
+ readonly ReplicaKmsKeyID: string;
2686
2647
  }
2687
2648
 
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
- ]),
2649
+ const EncryptionConfiguration_1 = Schema.Struct({
2650
+ ReplicaKmsKeyID: Schema.String.annotate({
2651
+ description:
2652
+ "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*.",
2653
+ }),
2654
+ }).annotate({
2655
+ description:
2656
+ "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.",
2657
+ identifier: "EncryptionConfiguration_1",
2658
+ });
2659
+
2660
+ interface ReplicationDestination_1 {
2661
+ readonly AccessControlTranslation?: AccessControlTranslation;
2662
+ readonly Account?: string;
2663
+ readonly Bucket: string;
2664
+ readonly EncryptionConfiguration?: EncryptionConfiguration_1;
2665
+ readonly Metrics?: Metrics;
2666
+ readonly ReplicationTime?: ReplicationTime;
2667
+ readonly StorageClass?: ResourceInputAlternatives_6;
2668
+ }
2669
+
2670
+ const ReplicationDestination_1 = Schema.Struct({
2671
+ AccessControlTranslation: Schema.optionalKey(AccessControlTranslation),
2672
+ Account: Schema.optionalKey(
2708
2673
  Schema.String.annotate({
2709
2674
  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*.",
2675
+ "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.",
2711
2676
  }),
2712
- ]),
2713
- Rules: Schema.Array(ReplicationRule)
2714
- .annotate({
2677
+ ),
2678
+ Bucket: Schema.String.annotate({
2679
+ description:
2680
+ "The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.",
2681
+ }),
2682
+ EncryptionConfiguration: Schema.optionalKey(EncryptionConfiguration_1),
2683
+ Metrics: Schema.optionalKey(Metrics),
2684
+ ReplicationTime: Schema.optionalKey(ReplicationTime),
2685
+ StorageClass: Schema.optionalKey(ResourceInputAlternatives_6),
2686
+ }).annotate({
2687
+ description:
2688
+ "A container for information about the replication destination and its configurations including enabling the S3 Replication Time Control (S3 RTC).",
2689
+ identifier: "ReplicationDestination_1",
2690
+ });
2691
+
2692
+ interface ReplicationRule_1 {
2693
+ readonly DeleteMarkerReplication?: DeleteMarkerReplication;
2694
+ readonly Destination: ReplicationDestination_1;
2695
+ readonly Filter?: ReplicationRuleFilter;
2696
+ readonly Id?: string;
2697
+ readonly Prefix?: string;
2698
+ readonly Priority?: number;
2699
+ readonly SourceSelectionCriteria?: SourceSelectionCriteria;
2700
+ readonly Status: ResourceInputAlternatives_7;
2701
+ }
2702
+
2703
+ const ReplicationRule_1 = Schema.Struct({
2704
+ DeleteMarkerReplication: Schema.optionalKey(DeleteMarkerReplication),
2705
+ Destination: ReplicationDestination_1,
2706
+ Filter: Schema.optionalKey(ReplicationRuleFilter),
2707
+ Id: Schema.optionalKey(
2708
+ Schema.String.annotate({
2715
2709
  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" }),
2710
+ '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".',
2711
+ }).check(
2712
+ Schema.isMaxCodePoints(255).annotate({
2713
+ expected: "a string with at most 255 code points",
2714
+ }),
2715
+ ),
2716
+ ),
2717
+ Prefix: Schema.optionalKey(
2718
+ Schema.String.annotate({
2719
+ description:
2720
+ "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).",
2721
+ }).check(
2722
+ Schema.isMaxCodePoints(1024).annotate({
2723
+ expected: "a string with at most 1024 code points",
2724
+ }),
2720
2725
  ),
2726
+ ),
2727
+ Priority: Schema.optionalKey(
2728
+ Schema.Number.annotate({
2729
+ description:
2730
+ "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*.",
2731
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
2732
+ ),
2733
+ SourceSelectionCriteria: Schema.optionalKey(SourceSelectionCriteria),
2734
+ Status: ResourceInputAlternatives_7,
2721
2735
  }).annotate({
2722
2736
  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",
2737
+ "Specifies which Amazon S3 objects to replicate and where to store the replicas.",
2738
+ identifier: "ReplicationRule_1",
2725
2739
  });
2726
2740
 
2727
2741
  interface ReplicationConfiguration_1 {
2728
2742
  readonly Role: string;
2729
- readonly Rules: ReadonlyArray<ReplicationRule_1>;
2743
+ readonly Rules: globalThis.ReadonlyArray<ReplicationRule_1>;
2730
2744
  }
2731
2745
 
2732
2746
  const ReplicationConfiguration_1 = Schema.Struct({
@@ -2750,16 +2764,8 @@ const ReplicationConfiguration_1 = Schema.Struct({
2750
2764
 
2751
2765
  export interface AWSBucketProps {
2752
2766
  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>;
2767
+ readonly AccessControl?: ResourceInputAlternatives;
2768
+ readonly AnalyticsConfigurations?: globalThis.ReadonlyArray<AnalyticsConfiguration>;
2763
2769
  readonly BucketEncryption?: BucketEncryption;
2764
2770
  readonly BucketName?:
2765
2771
  | ResourceEntity<{
@@ -2769,13 +2775,13 @@ export interface AWSBucketProps {
2769
2775
  }>
2770
2776
  | string;
2771
2777
  readonly BucketNamePrefix?: string;
2772
- readonly BucketNamespace?: "global" | "account-regional";
2778
+ readonly BucketNamespace?: ResourceInputAlternatives_3;
2773
2779
  readonly CorsConfiguration?: CorsConfiguration;
2774
- readonly IntelligentTieringConfigurations?: ReadonlyArray<IntelligentTieringConfiguration>;
2775
- readonly InventoryConfigurations?: ReadonlyArray<InventoryConfiguration>;
2780
+ readonly IntelligentTieringConfigurations?: ResourceInputItems_1;
2781
+ readonly InventoryConfigurations?: globalThis.ReadonlyArray<InventoryConfiguration>;
2776
2782
  readonly LifecycleConfiguration?: LifecycleConfiguration;
2777
2783
  readonly LoggingConfiguration?: LoggingConfiguration;
2778
- readonly MetricsConfigurations?: ReadonlyArray<MetricsConfiguration>;
2784
+ readonly MetricsConfigurations?: ResourceInputItems_3;
2779
2785
  readonly MetadataTableConfiguration?: MetadataTableConfiguration;
2780
2786
  readonly MetadataConfiguration?: MetadataConfiguration;
2781
2787
  readonly NotificationConfiguration?: NotificationConfiguration;
@@ -2784,8 +2790,8 @@ export interface AWSBucketProps {
2784
2790
  readonly OwnershipControls?: OwnershipControls;
2785
2791
  readonly PublicAccessBlockConfiguration?: PublicAccessBlockConfiguration;
2786
2792
  readonly ReplicationConfiguration?: ReplicationConfiguration;
2787
- readonly Tags?: ReadonlyArray<Tag>;
2788
- readonly AbacStatus?: "Enabled" | "Disabled";
2793
+ readonly Tags?: ResourceInputItems_4;
2794
+ readonly AbacStatus?: ResourceInputAlternatives_8;
2789
2795
  readonly VersioningConfiguration?: VersioningConfiguration;
2790
2796
  readonly WebsiteConfiguration?: WebsiteConfiguration;
2791
2797
  }
@@ -2806,21 +2812,7 @@ export const AWSBucketResourceSchema = ResourceSchemaAnnotationSchema.make({
2806
2812
  export const AWSBucketPropsSchema = annotateResourceSchema(
2807
2813
  Schema.Struct({
2808
2814
  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
- ),
2815
+ AccessControl: Schema.optionalKey(ResourceInputAlternatives),
2824
2816
  AnalyticsConfigurations: Schema.optionalKey(
2825
2817
  Schema.Array(AnalyticsConfiguration)
2826
2818
  .annotate({
@@ -2863,24 +2855,9 @@ export const AWSBucketPropsSchema = annotateResourceSchema(
2863
2855
  BucketNamePrefix: Schema.optionalKey(
2864
2856
  Schema.String.annotate({ description: "" }),
2865
2857
  ),
2866
- BucketNamespace: Schema.optionalKey(
2867
- Schema.Literals(["global", "account-regional"]).annotate({
2868
- description: "",
2869
- }),
2870
- ),
2858
+ BucketNamespace: Schema.optionalKey(ResourceInputAlternatives_3),
2871
2859
  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
- ),
2860
+ IntelligentTieringConfigurations: Schema.optionalKey(ResourceInputItems_1),
2884
2861
  InventoryConfigurations: Schema.optionalKey(
2885
2862
  Schema.Array(InventoryConfiguration)
2886
2863
  .annotate({
@@ -2895,18 +2872,7 @@ export const AWSBucketPropsSchema = annotateResourceSchema(
2895
2872
  ),
2896
2873
  LifecycleConfiguration: Schema.optionalKey(LifecycleConfiguration),
2897
2874
  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
- ),
2875
+ MetricsConfigurations: Schema.optionalKey(ResourceInputItems_3),
2910
2876
  MetadataTableConfiguration: Schema.optionalKey(MetadataTableConfiguration),
2911
2877
  MetadataConfiguration: Schema.optionalKey(MetadataConfiguration),
2912
2878
  NotificationConfiguration: Schema.optionalKey(NotificationConfiguration),
@@ -2922,18 +2888,8 @@ export const AWSBucketPropsSchema = annotateResourceSchema(
2922
2888
  PublicAccessBlockConfiguration,
2923
2889
  ),
2924
2890
  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
- ),
2891
+ Tags: Schema.optionalKey(ResourceInputItems_4),
2892
+ AbacStatus: Schema.optionalKey(ResourceInputAlternatives_8),
2937
2893
  VersioningConfiguration: Schema.optionalKey(VersioningConfiguration),
2938
2894
  WebsiteConfiguration: Schema.optionalKey(WebsiteConfiguration),
2939
2895
  }),
@@ -2991,26 +2947,18 @@ export const AWSBucketOutputsSchema = Schema.Struct({
2991
2947
 
2992
2948
  export interface AWSBucketRequest {
2993
2949
  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>;
2950
+ readonly AccessControl?: ResourceInputAlternatives;
2951
+ readonly AnalyticsConfigurations?: globalThis.ReadonlyArray<AnalyticsConfiguration_1>;
3004
2952
  readonly BucketEncryption?: BucketEncryption_1;
3005
2953
  readonly BucketName?: string;
3006
2954
  readonly BucketNamePrefix?: string;
3007
- readonly BucketNamespace?: "global" | "account-regional";
2955
+ readonly BucketNamespace?: ResourceInputAlternatives_3;
3008
2956
  readonly CorsConfiguration?: CorsConfiguration;
3009
- readonly IntelligentTieringConfigurations?: ReadonlyArray<IntelligentTieringConfiguration>;
3010
- readonly InventoryConfigurations?: ReadonlyArray<InventoryConfiguration_1>;
2957
+ readonly IntelligentTieringConfigurations?: ResourceInputItems_1;
2958
+ readonly InventoryConfigurations?: globalThis.ReadonlyArray<InventoryConfiguration_1>;
3011
2959
  readonly LifecycleConfiguration?: LifecycleConfiguration;
3012
2960
  readonly LoggingConfiguration?: LoggingConfiguration_1;
3013
- readonly MetricsConfigurations?: ReadonlyArray<MetricsConfiguration>;
2961
+ readonly MetricsConfigurations?: ResourceInputItems_3;
3014
2962
  readonly MetadataTableConfiguration?: MetadataTableConfiguration;
3015
2963
  readonly MetadataConfiguration?: MetadataConfiguration;
3016
2964
  readonly NotificationConfiguration?: NotificationConfiguration_1;
@@ -3019,29 +2967,15 @@ export interface AWSBucketRequest {
3019
2967
  readonly OwnershipControls?: OwnershipControls;
3020
2968
  readonly PublicAccessBlockConfiguration?: PublicAccessBlockConfiguration;
3021
2969
  readonly ReplicationConfiguration?: ReplicationConfiguration_1;
3022
- readonly Tags?: ReadonlyArray<Tag>;
3023
- readonly AbacStatus?: "Enabled" | "Disabled";
2970
+ readonly Tags?: ResourceInputItems_4;
2971
+ readonly AbacStatus?: ResourceInputAlternatives_8;
3024
2972
  readonly VersioningConfiguration?: VersioningConfiguration;
3025
2973
  readonly WebsiteConfiguration?: WebsiteConfiguration;
3026
2974
  }
3027
2975
 
3028
2976
  export const AWSBucketRequestSchema = Schema.Struct({
3029
2977
  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
- ),
2978
+ AccessControl: Schema.optionalKey(ResourceInputAlternatives),
3045
2979
  AnalyticsConfigurations: Schema.optionalKey(
3046
2980
  Schema.Array(AnalyticsConfiguration_1)
3047
2981
  .annotate({
@@ -3062,22 +2996,9 @@ export const AWSBucketRequestSchema = Schema.Struct({
3062
2996
  BucketNamePrefix: Schema.optionalKey(
3063
2997
  Schema.String.annotate({ description: "" }),
3064
2998
  ),
3065
- BucketNamespace: Schema.optionalKey(
3066
- Schema.Literals(["global", "account-regional"]).annotate({
3067
- description: "",
3068
- }),
3069
- ),
2999
+ BucketNamespace: Schema.optionalKey(ResourceInputAlternatives_3),
3070
3000
  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
- ),
3001
+ IntelligentTieringConfigurations: Schema.optionalKey(ResourceInputItems_1),
3081
3002
  InventoryConfigurations: Schema.optionalKey(
3082
3003
  Schema.Array(InventoryConfiguration_1)
3083
3004
  .annotate({
@@ -3090,16 +3011,7 @@ export const AWSBucketRequestSchema = Schema.Struct({
3090
3011
  ),
3091
3012
  LifecycleConfiguration: Schema.optionalKey(LifecycleConfiguration),
3092
3013
  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
- ),
3014
+ MetricsConfigurations: Schema.optionalKey(ResourceInputItems_3),
3103
3015
  MetadataTableConfiguration: Schema.optionalKey(MetadataTableConfiguration),
3104
3016
  MetadataConfiguration: Schema.optionalKey(MetadataConfiguration),
3105
3017
  NotificationConfiguration: Schema.optionalKey(NotificationConfiguration_1),
@@ -3115,18 +3027,8 @@ export const AWSBucketRequestSchema = Schema.Struct({
3115
3027
  PublicAccessBlockConfiguration,
3116
3028
  ),
3117
3029
  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
- ),
3030
+ Tags: Schema.optionalKey(ResourceInputItems_4),
3031
+ AbacStatus: Schema.optionalKey(ResourceInputAlternatives_8),
3130
3032
  VersioningConfiguration: Schema.optionalKey(VersioningConfiguration),
3131
3033
  WebsiteConfiguration: Schema.optionalKey(WebsiteConfiguration),
3132
3034
  });