nomoss 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (635) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +3 -1
  3. package/ROADMAP.md +1 -1
  4. package/docs/README.md +2 -0
  5. package/docs/application/aws-resource-coverage.md +111 -20
  6. package/docs/application/designs/awsRequestBodyEncoding.ts +91 -0
  7. package/docs/application/designs/createBucketModeledErrors.ts +164 -0
  8. package/docs/application/designs/describeSubnetsEc2Query.ts +186 -0
  9. package/docs/application/designs/getBucketTaggingResponseDecoding.ts +136 -0
  10. package/docs/application/designs/lambdaGetPolicyRequest.ts +85 -0
  11. package/docs/application/designs/s3GetObjectDownload.ts +97 -0
  12. package/docs/application/designs/s3ObjectMetadata.ts +154 -0
  13. package/docs/application/designs/selectObjectContentEvents.ts +185 -0
  14. package/docs/application/generation-architecture.md +38 -0
  15. package/docs/application/resource-operations.md +4 -2
  16. package/docs/development/code-documentation.md +2 -0
  17. package/docs/development/design-walkthroughs.md +49 -0
  18. package/docs/development/effect-native-development.md +31 -2
  19. package/docs/development/review-code.md +1 -1
  20. package/docs/development/review-remediation-spec.md +1 -0
  21. package/docs/development/testing.md +20 -0
  22. package/docs/operations/releasing.md +4 -2
  23. package/examples/queue/application.ts +1 -1
  24. package/media/nomoss-logo.svg +16 -0
  25. package/package.json +8 -14
  26. package/providers/aws/README.md +7 -7
  27. package/providers/aws/awsEnvironment.ts +3 -3
  28. package/providers/aws/generated/resources/apigateway/apikey.ts +335 -0
  29. package/providers/aws/generated/resources/apigateway/authorizer.ts +329 -0
  30. package/providers/aws/generated/resources/apigateway/basepathmapping.ts +265 -0
  31. package/providers/aws/generated/resources/apigateway/deployment.ts +515 -0
  32. package/providers/aws/generated/resources/apigateway/domainname.ts +354 -0
  33. package/providers/aws/generated/resources/apigateway/gatewayresponse.ts +222 -0
  34. package/providers/aws/generated/resources/apigateway/method.ts +819 -0
  35. package/providers/aws/generated/resources/apigateway/model.ts +248 -0
  36. package/providers/aws/generated/resources/apigateway/requestvalidator.ts +224 -0
  37. package/providers/aws/generated/resources/apigateway/resource.ts +235 -0
  38. package/providers/aws/generated/resources/apigateway/restapi.ts +583 -0
  39. package/providers/aws/generated/resources/apigateway/stage.ts +656 -0
  40. package/providers/aws/generated/resources/apigateway/usageplan.ts +394 -0
  41. package/providers/aws/generated/resources/apigateway/usageplankey.ts +228 -0
  42. package/providers/aws/generated/resources/apigatewayv2/api.ts +40 -60
  43. package/providers/aws/generated/resources/apigatewayv2/apimapping.ts +284 -0
  44. package/providers/aws/generated/resources/apigatewayv2/authorizer.ts +333 -0
  45. package/providers/aws/generated/resources/apigatewayv2/deployment.ts +226 -0
  46. package/providers/aws/generated/resources/apigatewayv2/domainname.ts +333 -0
  47. package/providers/aws/generated/resources/apigatewayv2/integration.ts +70 -103
  48. package/providers/aws/generated/resources/apigatewayv2/integrationresponse.ts +323 -0
  49. package/providers/aws/generated/resources/apigatewayv2/model.ts +241 -0
  50. package/providers/aws/generated/resources/apigatewayv2/route.ts +59 -63
  51. package/providers/aws/generated/resources/apigatewayv2/routeresponse.ts +330 -0
  52. package/providers/aws/generated/resources/apigatewayv2/routingrule.ts +349 -0
  53. package/providers/aws/generated/resources/apigatewayv2/stage.ts +45 -66
  54. package/providers/aws/generated/resources/apigatewayv2/vpclink.ts +256 -0
  55. package/providers/aws/generated/resources/appsync/api.ts +486 -0
  56. package/providers/aws/generated/resources/appsync/apicache.ts +169 -0
  57. package/providers/aws/generated/resources/appsync/apikey.ts +245 -0
  58. package/providers/aws/generated/resources/appsync/channelnamespace.ts +444 -0
  59. package/providers/aws/generated/resources/appsync/datasource.ts +757 -0
  60. package/providers/aws/generated/resources/appsync/domainname.ts +355 -0
  61. package/providers/aws/generated/resources/appsync/domainnameapiassociation.ts +284 -0
  62. package/providers/aws/generated/resources/appsync/functionconfiguration.ts +448 -0
  63. package/providers/aws/generated/resources/appsync/graphqlapi.ts +1028 -0
  64. package/providers/aws/generated/resources/appsync/graphqlschema.ts +188 -0
  65. package/providers/aws/generated/resources/appsync/resolver.ts +514 -0
  66. package/providers/aws/generated/resources/appsync/sourceapiassociation.ts +429 -0
  67. package/providers/aws/generated/resources/certificatemanager/certificate.ts +211 -0
  68. package/providers/aws/generated/resources/cloudfront/cachepolicy.ts +352 -0
  69. package/providers/aws/generated/resources/cloudfront/distribution.ts +2477 -0
  70. package/providers/aws/generated/resources/cloudfront/function.ts +313 -0
  71. package/providers/aws/generated/resources/cloudfront/originaccesscontrol.ts +204 -0
  72. package/providers/aws/generated/resources/cloudfront/originrequestpolicy.ts +285 -0
  73. package/providers/aws/generated/resources/cloudfront/responseheaderspolicy.ts +591 -0
  74. package/providers/aws/generated/resources/cloudwatch/alarm.ts +4545 -0
  75. package/providers/aws/generated/resources/cloudwatch/compositealarm.ts +678 -0
  76. package/providers/aws/generated/resources/cloudwatch/dashboard.ts +229 -0
  77. package/providers/aws/generated/resources/cognito/identitypool.ts +419 -0
  78. package/providers/aws/generated/resources/cognito/identitypoolroleattachment.ts +288 -0
  79. package/providers/aws/generated/resources/cognito/userpool.ts +1372 -0
  80. package/providers/aws/generated/resources/cognito/userpoolclient.ts +555 -0
  81. package/providers/aws/generated/resources/cognito/userpooldomain.ts +223 -0
  82. package/providers/aws/generated/resources/cognito/userpoolgroup.ts +265 -0
  83. package/providers/aws/generated/resources/cognito/userpoolidentityprovider.ts +216 -0
  84. package/providers/aws/generated/resources/cognito/userpoolresourceserver.ts +233 -0
  85. package/providers/aws/generated/resources/dynamodb/globaltable.ts +1002 -0
  86. package/providers/aws/generated/resources/dynamodb/table.ts +1058 -0
  87. package/providers/aws/generated/resources/ec2/eip.ts +303 -0
  88. package/providers/aws/generated/resources/ec2/instance.ts +1756 -0
  89. package/providers/aws/generated/resources/ec2/internetgateway.ts +185 -0
  90. package/providers/aws/generated/resources/ec2/launchtemplate.ts +2218 -0
  91. package/providers/aws/generated/resources/ec2/natgateway.ts +509 -0
  92. package/providers/aws/generated/resources/ec2/route.ts +595 -0
  93. package/providers/aws/generated/resources/ec2/routetable.ts +207 -0
  94. package/providers/aws/generated/resources/ec2/securitygroup.ts +460 -0
  95. package/providers/aws/generated/resources/ec2/securitygroupegress.ts +332 -0
  96. package/providers/aws/generated/resources/ec2/securitygroupingress.ts +488 -0
  97. package/providers/aws/generated/resources/ec2/subnet.ts +492 -0
  98. package/providers/aws/generated/resources/ec2/subnetroutetableassociation.ts +228 -0
  99. package/providers/aws/generated/resources/ec2/volume.ts +267 -0
  100. package/providers/aws/generated/resources/ec2/volumeattachment.ts +268 -0
  101. package/providers/aws/generated/resources/ec2/vpc.ts +288 -0
  102. package/providers/aws/generated/resources/ec2/vpcendpoint.ts +660 -0
  103. package/providers/aws/generated/resources/ec2/vpcgatewayattachment.ts +290 -0
  104. package/providers/aws/generated/resources/ec2/vpcpeeringconnection.ts +310 -0
  105. package/providers/aws/generated/resources/ecr/repository.ts +627 -0
  106. package/providers/aws/generated/resources/ecs/cluster.ts +616 -0
  107. package/providers/aws/generated/resources/ecs/service.ts +2065 -0
  108. package/providers/aws/generated/resources/ecs/taskdefinition.ts +1848 -0
  109. package/providers/aws/generated/resources/elasticloadbalancingv2/listener.ts +1166 -0
  110. package/providers/aws/generated/resources/elasticloadbalancingv2/listenercertificate.ts +168 -0
  111. package/providers/aws/generated/resources/elasticloadbalancingv2/listenerrule.ts +1219 -0
  112. package/providers/aws/generated/resources/elasticloadbalancingv2/loadbalancer.ts +706 -0
  113. package/providers/aws/generated/resources/elasticloadbalancingv2/targetgroup.ts +699 -0
  114. package/providers/aws/generated/resources/events/apidestination.ts +314 -0
  115. package/providers/aws/generated/resources/events/archive.ts +316 -0
  116. package/providers/aws/generated/resources/events/connection.ts +609 -0
  117. package/providers/aws/generated/resources/events/endpoint.ts +551 -0
  118. package/providers/aws/generated/resources/events/eventbus.ts +261 -0
  119. package/providers/aws/generated/resources/events/eventbuspolicy.ts +343 -0
  120. package/providers/aws/generated/resources/events/rule.ts +1253 -0
  121. package/providers/aws/generated/resources/eventschemas/discoverer.ts +273 -0
  122. package/providers/aws/generated/resources/eventschemas/registry.ts +183 -0
  123. package/providers/aws/generated/resources/eventschemas/registrypolicy.ts +193 -0
  124. package/providers/aws/generated/resources/eventschemas/schema.ts +305 -0
  125. package/providers/aws/generated/resources/iam/accesskey.ts +12 -16
  126. package/providers/aws/generated/resources/iam/group.ts +13 -16
  127. package/providers/aws/generated/resources/iam/grouppolicy.ts +16 -20
  128. package/providers/aws/generated/resources/iam/instanceprofile.ts +2 -2
  129. package/providers/aws/generated/resources/iam/managedpolicy.ts +27 -36
  130. package/providers/aws/generated/resources/iam/oidcprovider.ts +52 -104
  131. package/providers/aws/generated/resources/iam/policy.ts +33 -90
  132. package/providers/aws/generated/resources/iam/role.ts +45 -60
  133. package/providers/aws/generated/resources/iam/rolepolicy.ts +16 -20
  134. package/providers/aws/generated/resources/iam/samlprovider.ts +72 -164
  135. package/providers/aws/generated/resources/iam/servercertificate.ts +73 -187
  136. package/providers/aws/generated/resources/iam/servicelinkedrole.ts +24 -40
  137. package/providers/aws/generated/resources/iam/user.ts +26 -32
  138. package/providers/aws/generated/resources/iam/userpolicy.ts +16 -20
  139. package/providers/aws/generated/resources/iam/usertogroupaddition.ts +2 -2
  140. package/providers/aws/generated/resources/iam/virtualmfadevice.ts +53 -97
  141. package/providers/aws/generated/resources/kms/alias.ts +225 -0
  142. package/providers/aws/generated/resources/kms/key.ts +33 -207
  143. package/providers/aws/generated/resources/kms/replicakey.ts +292 -0
  144. package/providers/aws/generated/resources/lambda/alias.ts +301 -0
  145. package/providers/aws/generated/resources/lambda/codesigningconfig.ts +414 -0
  146. package/providers/aws/generated/resources/lambda/eventinvokeconfig.ts +677 -0
  147. package/providers/aws/generated/resources/lambda/eventsourcemapping.ts +1798 -0
  148. package/providers/aws/generated/resources/lambda/function.ts +135 -181
  149. package/providers/aws/generated/resources/lambda/layerversion.ts +298 -0
  150. package/providers/aws/generated/resources/lambda/layerversionpermission.ts +233 -0
  151. package/providers/aws/generated/resources/lambda/permission.ts +13 -14
  152. package/providers/aws/generated/resources/lambda/url.ts +452 -0
  153. package/providers/aws/generated/resources/lambda/version.ts +349 -0
  154. package/providers/aws/generated/resources/pipes/pipe.ts +3801 -0
  155. package/providers/aws/generated/resources/rds/dbcluster.ts +1710 -0
  156. package/providers/aws/generated/resources/rds/dbinstance.ts +2248 -0
  157. package/providers/aws/generated/resources/rds/dbsubnetgroup.ts +270 -0
  158. package/providers/aws/generated/resources/route53/healthcheck.ts +648 -0
  159. package/providers/aws/generated/resources/route53/hostedzone.ts +430 -0
  160. package/providers/aws/generated/resources/route53/recordset.ts +249 -0
  161. package/providers/aws/generated/resources/route53/recordsetgroup.ts +263 -0
  162. package/providers/aws/generated/resources/s3/accesspoint.ts +616 -0
  163. package/providers/aws/generated/resources/s3/bucket.ts +1733 -1831
  164. package/providers/aws/generated/resources/s3/bucketpolicy.ts +214 -0
  165. package/providers/aws/generated/resources/scheduler/schedule.ts +1563 -0
  166. package/providers/aws/generated/resources/scheduler/schedulegroup.ts +351 -0
  167. package/providers/aws/generated/resources/secretsmanager/resourcepolicy.ts +242 -0
  168. package/providers/aws/generated/resources/secretsmanager/rotationschedule.ts +314 -0
  169. package/providers/aws/generated/resources/secretsmanager/secret.ts +327 -0
  170. package/providers/aws/generated/resources/secretsmanager/secrettargetattachment.ts +167 -0
  171. package/providers/aws/generated/resources/sns/subscription.ts +488 -0
  172. package/providers/aws/generated/resources/sns/topic.ts +60 -88
  173. package/providers/aws/generated/resources/sns/topicinlinepolicy.ts +169 -0
  174. package/providers/aws/generated/resources/sns/topicpolicy.ts +172 -0
  175. package/providers/aws/generated/resources/sqs/queue.ts +53 -82
  176. package/providers/aws/generated/resources/sqs/queueinlinepolicy.ts +163 -0
  177. package/providers/aws/generated/resources/sqs/queuepolicy.ts +172 -0
  178. package/providers/aws/generated/resources/ssm/association.ts +906 -0
  179. package/providers/aws/generated/resources/ssm/document.ts +472 -0
  180. package/providers/aws/generated/resources/ssm/maintenancewindow.ts +225 -0
  181. package/providers/aws/generated/resources/ssm/maintenancewindowtarget.ts +289 -0
  182. package/providers/aws/generated/resources/ssm/maintenancewindowtask.ts +497 -0
  183. package/providers/aws/generated/resources/ssm/parameter.ts +258 -0
  184. package/providers/aws/generated/resources/ssm/patchbaseline.ts +668 -0
  185. package/providers/aws/generated/resources/ssm/resourcedatasync.ts +465 -0
  186. package/providers/aws/generated/resources/ssm/resourcepolicy.ts +211 -0
  187. package/providers/aws/generated/resources/stepfunctions/activity.ts +237 -0
  188. package/providers/aws/generated/resources/stepfunctions/statemachine.ts +54 -41
  189. package/providers/aws/generated/resources/stepfunctions/statemachinealias.ts +361 -0
  190. package/providers/aws/generated/resources/stepfunctions/statemachineversion.ts +202 -0
  191. package/providers/aws/management/ec2/internetGateway.ts +129 -0
  192. package/providers/aws/management/ec2/resourceTags.ts +89 -0
  193. package/providers/aws/management/ec2/route.ts +254 -0
  194. package/providers/aws/management/ec2/routeTable.ts +138 -0
  195. package/providers/aws/management/ec2/subnet.ts +511 -0
  196. package/providers/aws/management/ec2/subnetRouteTableAssociation.ts +129 -0
  197. package/providers/aws/management/ec2/vpc.ts +466 -0
  198. package/providers/aws/management/ec2/vpcGatewayAttachment.ts +238 -0
  199. package/providers/aws/management/iam/role.ts +520 -0
  200. package/providers/aws/management/lambda/function.ts +651 -0
  201. package/providers/aws/management/resourcePolicies.ts +102 -0
  202. package/providers/aws/management/s3/bucket.ts +315 -0
  203. package/providers/aws/management/s3/bucketConfiguration.ts +1102 -0
  204. package/providers/aws/runtime.ts +17 -19
  205. package/src/core/resource/model.ts +13 -3
  206. package/src/core/resource/resourceCommandPolicy.ts +5 -1
  207. package/src/core/resource/resourceEntries.ts +193 -0
  208. package/src/core/resource/resourceLifecycle.ts +39 -23
  209. package/src/core/stack/planner.ts +78 -40
  210. package/src/core/stack/resourceStackLifecycle.ts +112 -18
  211. package/src/core/stack/resourceStackOperations.ts +18 -0
  212. package/src/core/stack/stackWorkflowRenderer.ts +12 -3
  213. package/src/core/state/stateStore.ts +47 -10
  214. package/src/providers/providerRuntimeLayer.ts +1 -1
  215. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsEntitySchema.ts +5 -5055
  216. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsSchema.ts +5 -5055
  217. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountPropsValidators.ts +5058 -0
  218. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsEntitySchema.ts +5 -2443
  219. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsSchema.ts +5 -2443
  220. package/src/providers/stripe/client/generated/resourceInputs/StripeAccountTokenPropsValidators.ts +2446 -0
  221. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsEntitySchema.ts +5 -23
  222. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsSchema.ts +5 -23
  223. package/src/providers/stripe/client/generated/resourceInputs/StripeApplePayDomainPropsValidators.ts +26 -0
  224. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsEntitySchema.ts +5 -63
  225. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsSchema.ts +5 -63
  226. package/src/providers/stripe/client/generated/resourceInputs/StripeAppsInstallPropsValidators.ts +66 -0
  227. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsEntitySchema.ts +11 -121
  228. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsSchema.ts +11 -121
  229. package/src/providers/stripe/client/generated/resourceInputs/StripeBankAccountPropsValidators.ts +130 -0
  230. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsEntitySchema.ts +17 -21
  231. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsSchema.ts +4 -12
  232. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingAlertPropsValidators.ts +109 -0
  233. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsEntitySchema.ts +3 -2
  234. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsSchema.ts +3 -2
  235. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingConfigurationExportPropsValidators.ts +11 -0
  236. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsEntitySchema.ts +18 -108
  237. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsSchema.ts +18 -108
  238. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingCreditGrantPropsValidators.ts +122 -0
  239. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsEntitySchema.ts +5 -30
  240. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsSchema.ts +5 -30
  241. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingFeedbackOptionPropsValidators.ts +34 -0
  242. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsEntitySchema.ts +5 -110
  243. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsSchema.ts +5 -110
  244. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingMeterPropsValidators.ts +113 -0
  245. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsEntitySchema.ts +42 -218
  246. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsSchema.ts +63 -336
  247. package/src/providers/stripe/client/generated/resourceInputs/StripeBillingPortalConfigurationPropsValidators.ts +604 -0
  248. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsEntitySchema.ts +11 -123
  249. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsSchema.ts +11 -123
  250. package/src/providers/stripe/client/generated/resourceInputs/StripeCardPropsValidators.ts +133 -0
  251. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsEntitySchema.ts +25 -322
  252. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsSchema.ts +20 -317
  253. package/src/providers/stripe/client/generated/resourceInputs/StripeChargePropsValidators.ts +359 -0
  254. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsEntitySchema.ts +139 -4161
  255. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsSchema.ts +181 -4265
  256. package/src/providers/stripe/client/generated/resourceInputs/StripeCheckoutSessionPropsValidators.ts +4529 -0
  257. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsEntitySchema.ts +5 -86
  258. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsSchema.ts +5 -86
  259. package/src/providers/stripe/client/generated/resourceInputs/StripeClimateOrderPropsValidators.ts +89 -0
  260. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsEntitySchema.ts +5 -151
  261. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsSchema.ts +5 -151
  262. package/src/providers/stripe/client/generated/resourceInputs/StripeCouponPropsValidators.ts +154 -0
  263. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsEntitySchema.ts +34 -169
  264. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsSchema.ts +24 -159
  265. package/src/providers/stripe/client/generated/resourceInputs/StripeCreditNotePropsValidators.ts +235 -0
  266. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsEntitySchema.ts +46 -644
  267. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsSchema.ts +41 -639
  268. package/src/providers/stripe/client/generated/resourceInputs/StripeCustomerPropsValidators.ts +691 -0
  269. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsEntitySchema.ts +5 -46
  270. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsSchema.ts +5 -46
  271. package/src/providers/stripe/client/generated/resourceInputs/StripeEntitlementsFeaturePropsValidators.ts +49 -0
  272. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsEntitySchema.ts +5 -160
  273. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsSchema.ts +5 -160
  274. package/src/providers/stripe/client/generated/resourceInputs/StripeEventDestinationPropsValidators.ts +163 -0
  275. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsEntitySchema.ts +8 -19
  276. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsSchema.ts +8 -19
  277. package/src/providers/stripe/client/generated/resourceInputs/StripeFileLinkPropsValidators.ts +28 -0
  278. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsEntitySchema.ts +5 -55
  279. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsSchema.ts +5 -55
  280. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialAddressPropsValidators.ts +58 -0
  281. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsEntitySchema.ts +36 -121
  282. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsSchema.ts +24 -111
  283. package/src/providers/stripe/client/generated/resourceInputs/StripeFinancialConnectionsSessionPropsValidators.ts +183 -0
  284. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsEntitySchema.ts +5 -119
  285. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsSchema.ts +5 -119
  286. package/src/providers/stripe/client/generated/resourceInputs/StripeForwardingRequestPropsValidators.ts +122 -0
  287. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsEntitySchema.ts +5 -45
  288. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsSchema.ts +5 -45
  289. package/src/providers/stripe/client/generated/resourceInputs/StripeGBBankAccountPropsValidators.ts +48 -0
  290. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsEntitySchema.ts +5 -195
  291. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsSchema.ts +5 -195
  292. package/src/providers/stripe/client/generated/resourceInputs/StripeIdentityVerificationSessionPropsValidators.ts +198 -0
  293. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsEntitySchema.ts +5 -97
  294. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsSchema.ts +5 -97
  295. package/src/providers/stripe/client/generated/resourceInputs/StripeInboundTransferPropsValidators.ts +100 -0
  296. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsEntitySchema.ts +69 -1282
  297. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsSchema.ts +43 -1259
  298. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoicePropsValidators.ts +1417 -0
  299. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsEntitySchema.ts +32 -126
  300. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsSchema.ts +27 -121
  301. package/src/providers/stripe/client/generated/resourceInputs/StripeInvoiceitemPropsValidators.ts +172 -0
  302. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsEntitySchema.ts +32 -2103
  303. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsSchema.ts +32 -2103
  304. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardPropsValidators.ts +2134 -0
  305. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsEntitySchema.ts +37 -2065
  306. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsSchema.ts +32 -2060
  307. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingCardholderPropsValidators.ts +2196 -0
  308. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsEntitySchema.ts +56 -97
  309. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsSchema.ts +98 -251
  310. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingDisputePropsValidators.ts +1024 -0
  311. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsEntitySchema.ts +14 -89
  312. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsSchema.ts +14 -89
  313. package/src/providers/stripe/client/generated/resourceInputs/StripeIssuingPersonalizationDesignPropsValidators.ts +100 -0
  314. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsEntitySchema.ts +5 -246
  315. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsSchema.ts +5 -246
  316. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundPaymentPropsValidators.ts +249 -0
  317. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsEntitySchema.ts +5 -115
  318. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsSchema.ts +5 -115
  319. package/src/providers/stripe/client/generated/resourceInputs/StripeOutboundSetupIntentPropsValidators.ts +118 -0
  320. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsEntitySchema.ts +65 -5205
  321. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsSchema.ts +59 -5200
  322. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentIntentPropsValidators.ts +5124 -0
  323. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsEntitySchema.ts +101 -1508
  324. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsSchema.ts +95 -1598
  325. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentLinkPropsValidators.ts +2039 -0
  326. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsEntitySchema.ts +5 -2272
  327. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsSchema.ts +5 -2272
  328. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodConfigurationPropsValidators.ts +2276 -0
  329. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsEntitySchema.ts +5 -37
  330. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsSchema.ts +5 -37
  331. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodDomainPropsValidators.ts +40 -0
  332. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsEntitySchema.ts +194 -1425
  333. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsSchema.ts +194 -1425
  334. package/src/providers/stripe/client/generated/resourceInputs/StripePaymentMethodPropsValidators.ts +1580 -0
  335. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsEntitySchema.ts +5 -265
  336. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsSchema.ts +5 -265
  337. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutIntentPropsValidators.ts +268 -0
  338. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsEntitySchema.ts +14 -28
  339. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsSchema.ts +14 -28
  340. package/src/providers/stripe/client/generated/resourceInputs/StripePayoutPropsValidators.ts +42 -0
  341. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsEntitySchema.ts +26 -96
  342. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsSchema.ts +26 -96
  343. package/src/providers/stripe/client/generated/resourceInputs/StripePlanPropsValidators.ts +117 -0
  344. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsEntitySchema.ts +35 -314
  345. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsSchema.ts +35 -314
  346. package/src/providers/stripe/client/generated/resourceInputs/StripePricePropsValidators.ts +330 -0
  347. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsEntitySchema.ts +5 -33
  348. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsSchema.ts +5 -33
  349. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogImportPropsValidators.ts +37 -0
  350. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsEntitySchema.ts +16 -43
  351. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsSchema.ts +9 -39
  352. package/src/providers/stripe/client/generated/resourceInputs/StripeProductCatalogTrialOfferPropsValidators.ts +105 -0
  353. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsEntitySchema.ts +5 -358
  354. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsSchema.ts +5 -358
  355. package/src/providers/stripe/client/generated/resourceInputs/StripeProductPropsValidators.ts +361 -0
  356. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsEntitySchema.ts +18 -66
  357. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsSchema.ts +11 -61
  358. package/src/providers/stripe/client/generated/resourceInputs/StripePromotionCodePropsValidators.ts +100 -0
  359. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsEntitySchema.ts +73 -366
  360. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsSchema.ts +49 -345
  361. package/src/providers/stripe/client/generated/resourceInputs/StripeQuotePropsValidators.ts +569 -0
  362. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsEntitySchema.ts +5 -39
  363. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsSchema.ts +5 -39
  364. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListItemPropsValidators.ts +42 -0
  365. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsEntitySchema.ts +5 -76
  366. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsSchema.ts +5 -76
  367. package/src/providers/stripe/client/generated/resourceInputs/StripeRadarValueListPropsValidators.ts +79 -0
  368. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsEntitySchema.ts +5 -27
  369. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsSchema.ts +5 -27
  370. package/src/providers/stripe/client/generated/resourceInputs/StripeRecipientVerificationPropsValidators.ts +30 -0
  371. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsEntitySchema.ts +11 -30
  372. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsSchema.ts +11 -30
  373. package/src/providers/stripe/client/generated/resourceInputs/StripeRefundPropsValidators.ts +41 -0
  374. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsEntitySchema.ts +5 -1356
  375. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsSchema.ts +5 -1356
  376. package/src/providers/stripe/client/generated/resourceInputs/StripeReportingReportRunPropsValidators.ts +1359 -0
  377. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsEntitySchema.ts +35 -2767
  378. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsSchema.ts +35 -2767
  379. package/src/providers/stripe/client/generated/resourceInputs/StripeSetupIntentPropsValidators.ts +2761 -0
  380. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsEntitySchema.ts +5 -170
  381. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsSchema.ts +5 -170
  382. package/src/providers/stripe/client/generated/resourceInputs/StripeShippingRatePropsValidators.ts +173 -0
  383. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsEntitySchema.ts +5 -549
  384. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsSchema.ts +5 -549
  385. package/src/providers/stripe/client/generated/resourceInputs/StripeSourcePropsValidators.ts +552 -0
  386. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsEntitySchema.ts +32 -143
  387. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsSchema.ts +27 -138
  388. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionItemPropsValidators.ts +187 -0
  389. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsEntitySchema.ts +99 -1668
  390. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsSchema.ts +70 -1644
  391. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionPropsValidators.ts +1872 -0
  392. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsEntitySchema.ts +123 -497
  393. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsSchema.ts +118 -755
  394. package/src/providers/stripe/client/generated/resourceInputs/StripeSubscriptionSchedulePropsValidators.ts +1902 -0
  395. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsEntitySchema.ts +23 -301
  396. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsSchema.ts +11 -291
  397. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxIdPropsValidators.ts +359 -0
  398. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsEntitySchema.ts +5 -113
  399. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsSchema.ts +5 -113
  400. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxLocationPropsValidators.ts +116 -0
  401. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsEntitySchema.ts +5 -159
  402. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsSchema.ts +5 -159
  403. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRatePropsValidators.ts +162 -0
  404. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsEntitySchema.ts +5 -3321
  405. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsSchema.ts +5 -3321
  406. package/src/providers/stripe/client/generated/resourceInputs/StripeTaxRegistrationPropsValidators.ts +3324 -0
  407. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsEntitySchema.ts +73 -698
  408. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsSchema.ts +23 -646
  409. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalConfigurationPropsValidators.ts +931 -0
  410. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsEntitySchema.ts +5 -292
  411. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsSchema.ts +5 -292
  412. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalLocationPropsValidators.ts +295 -0
  413. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsEntitySchema.ts +8 -19
  414. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsSchema.ts +8 -19
  415. package/src/providers/stripe/client/generated/resourceInputs/StripeTerminalReaderPropsValidators.ts +29 -0
  416. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsEntitySchema.ts +5 -47
  417. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsSchema.ts +5 -47
  418. package/src/providers/stripe/client/generated/resourceInputs/StripeTestHelpersTestClockPropsValidators.ts +51 -0
  419. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsEntitySchema.ts +40 -629
  420. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsSchema.ts +40 -629
  421. package/src/providers/stripe/client/generated/resourceInputs/StripeThreeDSecureAuthenticationPropsValidators.ts +655 -0
  422. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsEntitySchema.ts +5 -2387
  423. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsSchema.ts +5 -2387
  424. package/src/providers/stripe/client/generated/resourceInputs/StripeTokenPropsValidators.ts +2391 -0
  425. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsEntitySchema.ts +11 -50
  426. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsSchema.ts +11 -50
  427. package/src/providers/stripe/client/generated/resourceInputs/StripeTopupPropsValidators.ts +58 -0
  428. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsEntitySchema.ts +11 -21
  429. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsSchema.ts +11 -21
  430. package/src/providers/stripe/client/generated/resourceInputs/StripeTransferPropsValidators.ts +34 -0
  431. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsEntitySchema.ts +5 -36
  432. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsSchema.ts +5 -36
  433. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryCreditReversalPropsValidators.ts +40 -0
  434. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsEntitySchema.ts +5 -36
  435. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsSchema.ts +5 -36
  436. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryDebitReversalPropsValidators.ts +40 -0
  437. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsEntitySchema.ts +5 -276
  438. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsSchema.ts +5 -275
  439. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryFinancialAccountPropsValidators.ts +279 -0
  440. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsEntitySchema.ts +5 -73
  441. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsSchema.ts +5 -73
  442. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryInboundTransferPropsValidators.ts +77 -0
  443. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsEntitySchema.ts +5 -340
  444. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsSchema.ts +5 -340
  445. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundPaymentPropsValidators.ts +344 -0
  446. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsEntitySchema.ts +5 -137
  447. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsSchema.ts +5 -137
  448. package/src/providers/stripe/client/generated/resourceInputs/StripeTreasuryOutboundTransferPropsValidators.ts +141 -0
  449. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsEntitySchema.ts +5 -45
  450. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsSchema.ts +5 -45
  451. package/src/providers/stripe/client/generated/resourceInputs/StripeUSBankAccountPropsValidators.ts +48 -0
  452. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsEntitySchema.ts +144 -3036
  453. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsSchema.ts +279 -3175
  454. package/src/providers/stripe/client/generated/resourceInputs/StripeV1AccountPropsValidators.ts +3457 -0
  455. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsEntitySchema.ts +5 -883
  456. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsSchema.ts +5 -882
  457. package/src/providers/stripe/client/generated/resourceInputs/StripeWebhookEndpointRequestPropsValidators.ts +886 -0
  458. package/src/providers/stripe/client/stripeClient.ts +11 -15
  459. package/providers/aws/generated/managementRegistry.ts +0 -136
  460. package/providers/aws/management/mappings/iam/group.ts +0 -63
  461. package/providers/aws/management/mappings/iam/iamIdentity.ts +0 -41
  462. package/providers/aws/management/mappings/iam/iamLifecycleSettings.ts +0 -8
  463. package/providers/aws/management/mappings/iam/inlinePolicies.ts +0 -159
  464. package/providers/aws/management/mappings/iam/instanceProfile.ts +0 -77
  465. package/providers/aws/management/mappings/iam/oidcProvider.ts +0 -94
  466. package/providers/aws/management/mappings/iam/role.ts +0 -74
  467. package/providers/aws/management/mappings/iam/samlProvider.ts +0 -98
  468. package/providers/aws/management/mappings/iam/serverCertificate.ts +0 -72
  469. package/providers/aws/management/mappings/iam/user.ts +0 -61
  470. package/providers/aws/management/mappings/iam/userToGroupAddition.ts +0 -75
  471. package/providers/aws/management/operations/iam/accessKey.ts +0 -206
  472. package/providers/aws/management/operations/iam/managedPolicy.ts +0 -491
  473. package/providers/aws/management/operations/iam/policy.ts +0 -476
  474. package/providers/aws/management/operations/iam/serviceLinkedRole.ts +0 -172
  475. package/providers/aws/management/operations/iam/virtualMfaDevice.ts +0 -253
  476. package/providers/aws/management/resourceAssociationConfiguration.ts +0 -112
  477. package/providers/aws/management/resourceAssociationRegistration.ts +0 -349
  478. package/providers/aws/management/resourceAssociations.ts +0 -168
  479. package/providers/aws/management/resourceConfiguration.ts +0 -119
  480. package/providers/aws/management/resourceLifecycleRegistration.ts +0 -540
  481. package/providers/aws/management/resourceManagementModule.ts +0 -31
  482. package/providers/aws/management/resourceManagementRegistry.ts +0 -62
  483. package/providers/aws/management/resourceMapping.ts +0 -84
  484. package/providers/aws/management/resourceOperation.ts +0 -134
  485. package/providers/aws/management/resourceTagOperations.ts +0 -108
  486. package/providers/aws/management/resourceTiming.ts +0 -4
  487. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives.ts +0 -35
  488. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_1.ts +0 -35
  489. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_10.ts +0 -44
  490. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_100.ts +0 -35
  491. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_101.ts +0 -35
  492. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_102.ts +0 -35
  493. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_103.ts +0 -35
  494. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_104.ts +0 -35
  495. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_105.ts +0 -35
  496. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_106.ts +0 -35
  497. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_107.ts +0 -35
  498. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_108.ts +0 -35
  499. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_11.ts +0 -68
  500. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_12.ts +0 -35
  501. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_13.ts +0 -35
  502. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_14.ts +0 -35
  503. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_15.ts +0 -35
  504. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_16.ts +0 -35
  505. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_17.ts +0 -44
  506. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_18.ts +0 -35
  507. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_19.ts +0 -35
  508. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_2.ts +0 -35
  509. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_20.ts +0 -35
  510. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_21.ts +0 -35
  511. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_22.ts +0 -35
  512. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_23.ts +0 -35
  513. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_24.ts +0 -35
  514. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_25.ts +0 -35
  515. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_26.ts +0 -44
  516. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_27.ts +0 -35
  517. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_28.ts +0 -35
  518. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_29.ts +0 -35
  519. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_3.ts +0 -35
  520. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_30.ts +0 -35
  521. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_31.ts +0 -35
  522. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_32.ts +0 -35
  523. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_33.ts +0 -35
  524. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_34.ts +0 -35
  525. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_35.ts +0 -59
  526. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_36.ts +0 -35
  527. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_37.ts +0 -35
  528. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_38.ts +0 -35
  529. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_39.ts +0 -35
  530. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_4.ts +0 -35
  531. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_40.ts +0 -35
  532. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_41.ts +0 -111
  533. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_42.ts +0 -35
  534. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_43.ts +0 -77
  535. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_44.ts +0 -35
  536. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_45.ts +0 -35
  537. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_46.ts +0 -35
  538. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_47.ts +0 -35
  539. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_48.ts +0 -50
  540. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_49.ts +0 -35
  541. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_5.ts +0 -35
  542. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_50.ts +0 -83
  543. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_51.ts +0 -35
  544. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_52.ts +0 -50
  545. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_53.ts +0 -35
  546. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_54.ts +0 -74
  547. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_55.ts +0 -35
  548. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_56.ts +0 -65
  549. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_57.ts +0 -35
  550. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_58.ts +0 -79
  551. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_59.ts +0 -35
  552. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_6.ts +0 -35
  553. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_60.ts +0 -35
  554. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_61.ts +0 -35
  555. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_62.ts +0 -44
  556. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_63.ts +0 -35
  557. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_64.ts +0 -35
  558. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_65.ts +0 -44
  559. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_66.ts +0 -35
  560. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_67.ts +0 -35
  561. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_68.ts +0 -35
  562. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_69.ts +0 -35
  563. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_7.ts +0 -35
  564. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_70.ts +0 -35
  565. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_71.ts +0 -35
  566. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_72.ts +0 -35
  567. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_73.ts +0 -35
  568. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_74.ts +0 -35
  569. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_75.ts +0 -35
  570. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_76.ts +0 -35
  571. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_77.ts +0 -35
  572. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_78.ts +0 -44
  573. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_79.ts +0 -35
  574. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_8.ts +0 -35
  575. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_80.ts +0 -35
  576. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_81.ts +0 -39
  577. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_82.ts +0 -35
  578. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_83.ts +0 -35
  579. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_84.ts +0 -35
  580. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_85.ts +0 -35
  581. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_86.ts +0 -35
  582. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_87.ts +0 -35
  583. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_88.ts +0 -56
  584. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_89.ts +0 -35
  585. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_9.ts +0 -35
  586. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_90.ts +0 -35
  587. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_91.ts +0 -44
  588. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_92.ts +0 -35
  589. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_93.ts +0 -56
  590. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_94.ts +0 -35
  591. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_95.ts +0 -35
  592. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_96.ts +0 -35
  593. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_97.ts +0 -35
  594. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_98.ts +0 -35
  595. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputAlternatives_99.ts +0 -35
  596. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems.ts +0 -38
  597. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_1.ts +0 -39
  598. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_2.ts +0 -38
  599. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_3.ts +0 -154
  600. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_4.ts +0 -51
  601. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputItems_5.ts +0 -120
  602. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties.ts +0 -32
  603. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_1.ts +0 -37
  604. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_10.ts +0 -125
  605. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_11.ts +0 -34
  606. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_12.ts +0 -34
  607. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_13.ts +0 -34
  608. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_14.ts +0 -34
  609. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_15.ts +0 -32
  610. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_16.ts +0 -37
  611. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_17.ts +0 -34
  612. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_18.ts +0 -130
  613. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_19.ts +0 -34
  614. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_2.ts +0 -39
  615. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_20.ts +0 -89
  616. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_21.ts +0 -34
  617. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_22.ts +0 -30
  618. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_23.ts +0 -34
  619. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_24.ts +0 -34
  620. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_25.ts +0 -34
  621. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_26.ts +0 -34
  622. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_27.ts +0 -97
  623. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_28.ts +0 -34
  624. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_29.ts +0 -34
  625. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_3.ts +0 -37
  626. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_30.ts +0 -34
  627. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_31.ts +0 -97
  628. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_32.ts +0 -34
  629. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_33.ts +0 -34
  630. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_4.ts +0 -37
  631. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_5.ts +0 -53
  632. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_6.ts +0 -42
  633. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_7.ts +0 -63
  634. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_8.ts +0 -94
  635. package/src/providers/stripe/client/generated/resourceInputs/StripeResourceEntityInputProperties_9.ts +0 -34
@@ -0,0 +1,2248 @@
1
+ // Generated from the CloudFormation Registry resource schema. Do not edit.
2
+ // biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's generated regular expressions.
3
+ import { Effect, Schema } from "effect";
4
+ import {
5
+ annotateResourceSchema,
6
+ ResourceEntity,
7
+ ResourceGraphBuilder,
8
+ type ResourceKey,
9
+ ResourceReferenceSchema,
10
+ ResourceSchemaAnnotationSchema,
11
+ } from "nomoss/core";
12
+ import { ResourceOutputBinding } from "../../../../../src/core/resource/resourceOutputBinding.js";
13
+
14
+ interface DBInstanceRole {
15
+ readonly FeatureName: string;
16
+ readonly RoleArn: string;
17
+ }
18
+
19
+ const DBInstanceRole = Schema.Struct({
20
+ FeatureName: Schema.String.annotate({
21
+ description:
22
+ "The name of the feature associated with the AWS Identity and Access Management (IAM) role. IAM roles that are associated with a DB instance grant permission for the DB instance to access other AWS services on your behalf. For the list of supported feature names, see the ``SupportedFeatureNames`` description in [DBEngineVersion](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DBEngineVersion.html) in the *Amazon RDS API Reference*.",
23
+ }),
24
+ RoleArn: Schema.String.annotate({
25
+ description:
26
+ "The Amazon Resource Name (ARN) of the IAM role that is associated with the DB instance.",
27
+ }),
28
+ }).annotate({
29
+ description:
30
+ "Information about an AWS Identity and Access Management (IAM) role that is associated with a DB instance.",
31
+ identifier: "DBInstanceRole",
32
+ });
33
+
34
+ type ResourceInputItems = globalThis.ReadonlyArray<DBInstanceRole>;
35
+
36
+ const ResourceInputItems = Schema.Array(DBInstanceRole).annotate({
37
+ description:
38
+ "The IAMlong (IAM) roles associated with the DB instance. \n *Amazon Aurora* \n Not applicable. The associated roles are managed by the DB cluster.",
39
+ });
40
+
41
+ type ResourceInputItems_1 = globalThis.ReadonlyArray<string>;
42
+
43
+ const ResourceInputItems_1 = Schema.Array(Schema.String)
44
+ .annotate({
45
+ description:
46
+ "A list of the DB security groups to assign to the DB instance. The list can include both the name of existing DB security groups or references to AWS::RDS::DBSecurityGroup resources created in the template.\n If you set DBSecurityGroups, you must not set VPCSecurityGroups, and vice versa. Also, note that the DBSecurityGroups property exists only for backwards compatibility with older regions and is no longer recommended for providing security information to an RDS DB instance. Instead, use VPCSecurityGroups.\n If you specify this property, AWS CloudFormation sends only the following properties (if specified) to Amazon RDS during create operations:\n + ``AllocatedStorage`` \n + ``AutoMinorVersionUpgrade`` \n + ``AvailabilityZone`` \n + ``BackupRetentionPeriod`` \n + ``CharacterSetName`` \n + ``DBInstanceClass`` \n + ``DBName`` \n + ``DBParameterGroupName`` \n + ``DBSecurityGroups`` \n + ``DBSubnetGroupName`` \n + ``Engine`` \n + ``EngineVersion`` \n + ``Iops`` \n + ``LicenseModel`` \n + ``MasterUsername`` \n + ``MasterUserPassword`` \n + ``MultiAZ`` \n + ``OptionGroupName`` \n + ``PreferredBackupWindow`` \n + ``PreferredMaintenanceWindow`` \n \n All other properties are ignored. Specify a virtual private cloud (VPC) security group if you want to submit other properties, such as ``StorageType``, ``StorageEncrypted``, or ``KmsKeyId``. If you're already using the ``DBSecurityGroups`` property, you can't use these other properties by updating your DB instance to use a VPC security group. You must recreate the DB instance.",
47
+ })
48
+ .check(
49
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
50
+ );
51
+
52
+ type ResourceInputItems_2 = globalThis.ReadonlyArray<string>;
53
+
54
+ const ResourceInputItems_2 = Schema.Array(Schema.String).annotate({
55
+ description:
56
+ "The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.\n Constraints:\n + Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list.\n \n Example: ``123.124.125.126,234.235.236.237``",
57
+ });
58
+
59
+ type ResourceInputItems_3 = globalThis.ReadonlyArray<string>;
60
+
61
+ const ResourceInputItems_3 = Schema.Array(Schema.String).annotate({
62
+ description:
63
+ "The list of log types that need to be enabled for exporting to CloudWatch Logs. The values in the list depend on the DB engine being used. For more information, see [Publishing Database Logs to Amazon CloudWatch Logs](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) in the *Amazon Relational Database Service User Guide*.\n *Amazon Aurora* \n Not applicable. CloudWatch Logs exports are managed by the DB cluster. \n *Db2* \n Valid values: ``diag.log``, ``notify.log``\n *MariaDB* \n Valid values: ``audit``, ``error``, ``general``, ``slowquery``\n *Microsoft SQL Server* \n Valid values: ``agent``, ``error``\n *MySQL* \n Valid values: ``audit``, ``error``, ``general``, ``slowquery``\n *Oracle* \n Valid values: ``alert``, ``audit``, ``listener``, ``trace``, ``oemagent``\n *PostgreSQL* \n Valid values: ``postgresql``, ``upgrade``",
64
+ });
65
+
66
+ interface MasterUserSecret {
67
+ readonly SecretArn?: string;
68
+ readonly KmsKeyId?:
69
+ | ResourceEntity<{
70
+ readonly provider: "aws";
71
+ readonly service: "kms";
72
+ readonly resource: "key";
73
+ }>
74
+ | string;
75
+ }
76
+
77
+ const MasterUserSecret = Schema.Struct({
78
+ SecretArn: Schema.optionalKey(
79
+ Schema.String.annotate({
80
+ description:
81
+ "The Amazon Resource Name (ARN) of the secret. This parameter is a return value that you can retrieve using the ``Fn::GetAtt`` intrinsic function. For more information, see [Return values](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#aws-resource-rds-dbinstance-return-values).",
82
+ }),
83
+ ),
84
+ KmsKeyId: Schema.optionalKey(
85
+ Schema.Union([
86
+ Schema.Union([
87
+ ResourceReferenceSchema(
88
+ Schema.Struct({
89
+ provider: Schema.Literal("aws"),
90
+ service: Schema.Literal("kms"),
91
+ resource: Schema.Literal("key"),
92
+ }),
93
+ {
94
+ value: null,
95
+ outputs: [
96
+ {
97
+ source: ["KeyId"],
98
+ target: [],
99
+ },
100
+ ],
101
+ },
102
+ ).annotate({ expected: "ResourceEntity" }),
103
+ ]),
104
+ Schema.String.annotate({
105
+ description:
106
+ "The AWS KMS key identifier that is used to encrypt the secret.",
107
+ }),
108
+ ]),
109
+ ),
110
+ }).annotate({
111
+ description:
112
+ "The ``MasterUserSecret`` return value specifies the secret managed by RDS in AWS Secrets Manager for the master user password.\n For more information, see [Password management with Secrets Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) in the *Amazon RDS User Guide* and [Password management with Secrets Manager](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html) in the *Amazon Aurora User Guide.*",
113
+ identifier: "MasterUserSecret",
114
+ });
115
+
116
+ interface ProcessorFeature {
117
+ readonly Name?: "coreCount" | "threadsPerCore";
118
+ readonly Value?: string;
119
+ }
120
+
121
+ const ProcessorFeature = Schema.Struct({
122
+ Name: Schema.optionalKey(
123
+ Schema.Literals(["coreCount", "threadsPerCore"]).annotate({
124
+ description:
125
+ "The name of the processor feature. Valid names are ``coreCount`` and ``threadsPerCore``.",
126
+ }),
127
+ ),
128
+ Value: Schema.optionalKey(
129
+ Schema.String.annotate({
130
+ description: "The value of a processor feature.",
131
+ }),
132
+ ),
133
+ }).annotate({
134
+ description:
135
+ "The ``ProcessorFeature`` property type specifies the processor features of a DB instance class.",
136
+ identifier: "ProcessorFeature",
137
+ });
138
+
139
+ type ResourceInputItems_4 = globalThis.ReadonlyArray<ProcessorFeature>;
140
+
141
+ const ResourceInputItems_4 = Schema.Array(ProcessorFeature).annotate({
142
+ description:
143
+ "The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.\n This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.",
144
+ });
145
+
146
+ interface Tag {
147
+ readonly Key: string;
148
+ readonly Value?: string;
149
+ }
150
+
151
+ const Tag = Schema.Struct({
152
+ Key: Schema.String.annotate({
153
+ description:
154
+ "A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-@]*)$\").",
155
+ })
156
+ .check(
157
+ Schema.isMinLength(1).annotate({
158
+ expected: "a value with a length of at least 1",
159
+ }),
160
+ )
161
+ .check(
162
+ Schema.isMaxCodePoints(128).annotate({
163
+ expected: "a string with at most 128 code points",
164
+ }),
165
+ ),
166
+ Value: Schema.optionalKey(
167
+ Schema.String.annotate({
168
+ description:
169
+ "A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with ``aws:`` or ``rds:``. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-@]*)$\").",
170
+ })
171
+ .check(
172
+ Schema.isMinCodePoints(0).annotate({
173
+ expected: "a string with at least 0 code points",
174
+ }),
175
+ )
176
+ .check(
177
+ Schema.isMaxCodePoints(256).annotate({
178
+ expected: "a string with at most 256 code points",
179
+ }),
180
+ ),
181
+ ),
182
+ }).annotate({
183
+ description:
184
+ "Metadata assigned to an Amazon RDS resource consisting of a key-value pair.\n For more information, see [Tagging Amazon RDS resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the *Amazon RDS User Guide* or [Tagging Amazon Aurora and Amazon RDS resources](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html) in the *Amazon Aurora User Guide*.",
185
+ identifier: "Tag",
186
+ });
187
+
188
+ type ResourceInputItems_5 = globalThis.ReadonlyArray<Tag>;
189
+
190
+ const ResourceInputItems_5 = Schema.Array(Tag).annotate({
191
+ description: "Tags to assign to the DB instance.",
192
+ });
193
+
194
+ interface AdditionalStorageVolume {
195
+ readonly VolumeName?: string;
196
+ readonly StorageType?: string;
197
+ readonly AllocatedStorage?: string;
198
+ readonly Iops?: number;
199
+ readonly MaxAllocatedStorage?: number;
200
+ readonly StorageThroughput?: number;
201
+ }
202
+
203
+ const AdditionalStorageVolume = Schema.Struct({
204
+ VolumeName: Schema.optionalKey(
205
+ Schema.String.annotate({
206
+ description:
207
+ "The name of the additional storage volume.\n Valid Values: ``RDSDBDATA2 | RDSDBDATA3 | RDSDBDATA4``",
208
+ }),
209
+ ),
210
+ StorageType: Schema.optionalKey(
211
+ Schema.String.annotate({
212
+ description:
213
+ "The storage type for the additional storage volume.\n Valid Values: ``GP3 | IO2``",
214
+ }),
215
+ ),
216
+ AllocatedStorage: Schema.optionalKey(
217
+ Schema.String.annotate({
218
+ description:
219
+ "The amount of storage allocated for the additional storage volume, in gibibytes (GiB). The minimum is 20 GiB. The maximum is 65,536 GiB (64 TiB).",
220
+ }).check(
221
+ Schema.isPattern(new globalThis.RegExp("^[0-9]*$", "u")).annotate({
222
+ expected: "a string matching the RegExp ^[0-9]*$",
223
+ }),
224
+ ),
225
+ ),
226
+ Iops: Schema.optionalKey(
227
+ Schema.Number.annotate({
228
+ description:
229
+ "The number of I/O operations per second (IOPS) provisioned for the additional storage volume.",
230
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
231
+ ),
232
+ MaxAllocatedStorage: Schema.optionalKey(
233
+ Schema.Number.annotate({
234
+ description:
235
+ "The upper limit in gibibytes (GiB) to which RDS can automatically scale the storage of the additional storage volume.",
236
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
237
+ ),
238
+ StorageThroughput: Schema.optionalKey(
239
+ Schema.Number.annotate({
240
+ description:
241
+ "The storage throughput value for the additional storage volume, in mebibytes per second (MiBps). This setting applies only to the General Purpose SSD (``gp3``) storage type.",
242
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
243
+ ),
244
+ }).annotate({
245
+ description:
246
+ "Contains details about an additional storage volume for a DB instance. RDS support additional storage volumes for RDS for Oracle and RDS for SQL Server.",
247
+ identifier: "AdditionalStorageVolume",
248
+ });
249
+
250
+ type ResourceInputItems_6 = globalThis.ReadonlyArray<AdditionalStorageVolume>;
251
+
252
+ const ResourceInputItems_6 = Schema.Array(AdditionalStorageVolume).annotate({
253
+ description:
254
+ "The additional storage volumes associated with the DB instance. RDS supports additional storage volumes for RDS for Oracle and RDS for SQL Server.",
255
+ });
256
+
257
+ interface CertificateDetails {
258
+ readonly CAIdentifier?: string;
259
+ readonly ValidTill?: string;
260
+ }
261
+
262
+ const CertificateDetails = Schema.Struct({
263
+ CAIdentifier: Schema.optionalKey(
264
+ Schema.String.annotate({
265
+ description:
266
+ "The CA identifier of the CA certificate used for the DB instance's server certificate.",
267
+ }),
268
+ ),
269
+ ValidTill: Schema.optionalKey(
270
+ Schema.String.annotate({
271
+ description:
272
+ "The expiration date of the DB instance’s server certificate.",
273
+ format: "date-time",
274
+ }),
275
+ ),
276
+ }).annotate({
277
+ description:
278
+ "The details of the DB instance’s server certificate.\n For more information, see [Using SSL/TLS to encrypt a connection to a DB instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) in the *Amazon RDS User Guide* and [Using SSL/TLS to encrypt a connection to a DB cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) in the *Amazon Aurora User Guide*.",
279
+ identifier: "CertificateDetails",
280
+ });
281
+
282
+ interface Endpoint {
283
+ readonly Address?: string;
284
+ readonly Port?: string;
285
+ readonly HostedZoneId?: string;
286
+ }
287
+
288
+ const Endpoint = Schema.Struct({
289
+ Address: Schema.optionalKey(
290
+ Schema.String.annotate({
291
+ description: "Specifies the DNS address of the DB instance.",
292
+ }),
293
+ ),
294
+ Port: Schema.optionalKey(
295
+ Schema.String.annotate({
296
+ description:
297
+ "Specifies the port that the database engine is listening on.",
298
+ }),
299
+ ),
300
+ HostedZoneId: Schema.optionalKey(
301
+ Schema.String.annotate({
302
+ description:
303
+ "Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.",
304
+ }),
305
+ ),
306
+ }).annotate({
307
+ description:
308
+ "This data type represents the information you need to connect to an Amazon RDS DB instance. This data type is used as a response element in the following actions:\n + ``CreateDBInstance`` \n + ``DescribeDBInstances`` \n + ``DeleteDBInstance`` \n \n For the data structure that represents Amazon Aurora DB cluster endpoints, see ``DBClusterEndpoint``.",
309
+ identifier: "Endpoint",
310
+ });
311
+
312
+ interface DBInstanceStatusInfo {
313
+ readonly Message?: string;
314
+ readonly Normal?: boolean;
315
+ readonly Status?: string;
316
+ readonly StatusType?: string;
317
+ }
318
+
319
+ const DBInstanceStatusInfo = Schema.Struct({
320
+ Message: Schema.optionalKey(
321
+ Schema.String.annotate({
322
+ description:
323
+ "Details of the error if there is an error for the instance. If the instance isn't in an error state, this value is blank.",
324
+ }),
325
+ ),
326
+ Normal: Schema.optionalKey(
327
+ Schema.Boolean.annotate({
328
+ description:
329
+ "Indicates whether the instance is operating normally (TRUE) or is in an error state (FALSE).",
330
+ }),
331
+ ),
332
+ Status: Schema.optionalKey(
333
+ Schema.String.annotate({
334
+ description:
335
+ "The status of the DB instance. For a StatusType of read replica, the values can be replicating, replication stop point set, replication stop point reached, error, stopped, or terminated.",
336
+ }),
337
+ ),
338
+ StatusType: Schema.optionalKey(
339
+ Schema.String.annotate({
340
+ description: 'This value is currently "read replication."',
341
+ }),
342
+ ),
343
+ }).annotate({
344
+ description: "Provides a list of status information for a DB instance.",
345
+ identifier: "DBInstanceStatusInfo",
346
+ });
347
+
348
+ interface MasterUserSecret_1 {
349
+ readonly SecretArn?: string;
350
+ readonly KmsKeyId?: string;
351
+ }
352
+
353
+ const MasterUserSecret_1 = Schema.Struct({
354
+ SecretArn: Schema.optionalKey(
355
+ Schema.String.annotate({
356
+ description:
357
+ "The Amazon Resource Name (ARN) of the secret. This parameter is a return value that you can retrieve using the ``Fn::GetAtt`` intrinsic function. For more information, see [Return values](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#aws-resource-rds-dbinstance-return-values).",
358
+ }),
359
+ ),
360
+ KmsKeyId: Schema.optionalKey(
361
+ Schema.String.annotate({
362
+ description:
363
+ "The AWS KMS key identifier that is used to encrypt the secret.",
364
+ }),
365
+ ),
366
+ }).annotate({
367
+ description:
368
+ "The ``MasterUserSecret`` return value specifies the secret managed by RDS in AWS Secrets Manager for the master user password.\n For more information, see [Password management with Secrets Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) in the *Amazon RDS User Guide* and [Password management with Secrets Manager](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html) in the *Amazon Aurora User Guide.*",
369
+ identifier: "MasterUserSecret_1",
370
+ });
371
+
372
+ export interface AWSDBInstanceProps {
373
+ readonly AllocatedStorage?: string;
374
+ readonly AllowMajorVersionUpgrade?: boolean;
375
+ readonly AssociatedRoles?: ResourceInputItems;
376
+ readonly AutoMinorVersionUpgrade?: boolean;
377
+ readonly AutomaticBackupReplicationRegion?: string;
378
+ readonly AutomaticBackupReplicationKmsKeyId?: string;
379
+ readonly AutomaticBackupReplicationRetentionPeriod?: number;
380
+ readonly AvailabilityZone?: string;
381
+ readonly BackupRetentionPeriod?: number;
382
+ readonly BackupTarget?: string;
383
+ readonly CACertificateIdentifier?: string;
384
+ readonly CertificateRotationRestart?: boolean;
385
+ readonly CharacterSetName?: string;
386
+ readonly CopyTagsToSnapshot?: boolean;
387
+ readonly CustomIAMInstanceProfile?: string;
388
+ readonly DatabaseInsightsMode?: string;
389
+ readonly DBClusterIdentifier?:
390
+ | ResourceEntity<{
391
+ readonly provider: "aws";
392
+ readonly service: "rds";
393
+ readonly resource: "dbcluster";
394
+ }>
395
+ | string;
396
+ readonly DBClusterSnapshotIdentifier?: string;
397
+ readonly DBInstanceClass?: string;
398
+ readonly DBInstanceIdentifier?: string;
399
+ readonly DBName?: string;
400
+ readonly DBParameterGroupName?:
401
+ | ResourceEntity<{
402
+ readonly provider: "aws";
403
+ readonly service: "rds";
404
+ readonly resource: "dbparametergroup";
405
+ }>
406
+ | string;
407
+ readonly DBSecurityGroups?: ResourceInputItems_1;
408
+ readonly DBSnapshotIdentifier?: string;
409
+ readonly DBSubnetGroupName?:
410
+ | ResourceEntity<{
411
+ readonly provider: "aws";
412
+ readonly service: "rds";
413
+ readonly resource: "dbsubnetgroup";
414
+ }>
415
+ | string;
416
+ readonly DBSystemId?: string;
417
+ readonly DedicatedLogVolume?: boolean;
418
+ readonly DeleteAutomatedBackups?: boolean;
419
+ readonly DeletionProtection?: boolean;
420
+ readonly Domain?: string;
421
+ readonly DomainAuthSecretArn?: string;
422
+ readonly DomainDnsIps?: ResourceInputItems_2;
423
+ readonly DomainFqdn?: string;
424
+ readonly DomainIAMRoleName?: string;
425
+ readonly DomainOu?: string;
426
+ readonly EnableCloudwatchLogsExports?: ResourceInputItems_3;
427
+ readonly EnableIAMDatabaseAuthentication?: boolean;
428
+ readonly EnablePerformanceInsights?: boolean;
429
+ readonly Engine?: string;
430
+ readonly EngineLifecycleSupport?: string;
431
+ readonly EngineVersion?: string;
432
+ readonly ManageMasterUserPassword?: boolean;
433
+ readonly Iops?: number;
434
+ readonly KmsKeyId?: string;
435
+ readonly LicenseModel?: string;
436
+ readonly MasterUserAuthenticationType?: string;
437
+ readonly MasterUsername?: string;
438
+ readonly MasterUserPassword?: string;
439
+ readonly MasterUserSecret?: MasterUserSecret;
440
+ readonly MaxAllocatedStorage?: number;
441
+ readonly MonitoringInterval?: number;
442
+ readonly MonitoringRoleArn?:
443
+ | ResourceEntity<{
444
+ readonly provider: "aws";
445
+ readonly service: "iam";
446
+ readonly resource: "role";
447
+ }>
448
+ | string;
449
+ readonly MultiAZ?: boolean;
450
+ readonly NcharCharacterSetName?: string;
451
+ readonly NetworkType?: string;
452
+ readonly OptionGroupName?: string;
453
+ readonly PerformanceInsightsKMSKeyId?: string;
454
+ readonly PerformanceInsightsRetentionPeriod?: number;
455
+ readonly Port?: string;
456
+ readonly PreferredBackupWindow?: string;
457
+ readonly PreferredMaintenanceWindow?: string;
458
+ readonly ProcessorFeatures?: ResourceInputItems_4;
459
+ readonly PromotionTier?: number;
460
+ readonly PubliclyAccessible?: boolean;
461
+ readonly ReplicaMode?: string;
462
+ readonly RestoreTime?: string;
463
+ readonly SourceDBClusterIdentifier?: string;
464
+ readonly SourceDbiResourceId?: string;
465
+ readonly SourceDBInstanceAutomatedBackupsArn?: string;
466
+ readonly SourceDBInstanceIdentifier?:
467
+ | ResourceEntity<{
468
+ readonly provider: "aws";
469
+ readonly service: "rds";
470
+ readonly resource: "dbinstance";
471
+ }>
472
+ | string;
473
+ readonly SourceRegion?: string;
474
+ readonly StorageEncrypted?: boolean;
475
+ readonly StorageType?: string;
476
+ readonly StorageThroughput?: number;
477
+ readonly Tags?: ResourceInputItems_5;
478
+ readonly TdeCredentialArn?: string;
479
+ readonly TdeCredentialPassword?: string;
480
+ readonly Timezone?: string;
481
+ readonly UseDefaultProcessorFeatures?: boolean;
482
+ readonly UseLatestRestorableTime?: boolean;
483
+ readonly VPCSecurityGroups?: globalThis.ReadonlyArray<
484
+ | ResourceEntity<{
485
+ readonly provider: "aws";
486
+ readonly service: "ec2";
487
+ readonly resource: "securitygroup";
488
+ }>
489
+ | string
490
+ >;
491
+ readonly ApplyImmediately?: boolean;
492
+ readonly AdditionalStorageVolumes?: ResourceInputItems_6;
493
+ }
494
+
495
+ export const AWSDBInstanceResourceSchema = ResourceSchemaAnnotationSchema.make({
496
+ provider: "aws",
497
+ service: "rds",
498
+ resource: "dbinstance",
499
+ operation: "create",
500
+ stateSecretOutputKeys: [],
501
+ replacement: {
502
+ order: "createBeforeDestroy",
503
+ properties: [
504
+ ["BackupTarget"],
505
+ ["CharacterSetName"],
506
+ ["CustomIAMInstanceProfile"],
507
+ ["DBClusterIdentifier"],
508
+ ["DBInstanceIdentifier"],
509
+ ["DBName"],
510
+ ["DBSubnetGroupName"],
511
+ ["DBSystemId"],
512
+ ["KmsKeyId"],
513
+ ["MasterUsername"],
514
+ ["NcharCharacterSetName"],
515
+ ["SourceRegion"],
516
+ ["StorageEncrypted"],
517
+ ["Timezone"],
518
+ ],
519
+ },
520
+ primaryIdentifier: ["/properties/DBInstanceIdentifier"],
521
+ });
522
+
523
+ export const AWSDBInstancePropsSchema = annotateResourceSchema(
524
+ Schema.Struct({
525
+ AllocatedStorage: Schema.optionalKey(
526
+ Schema.String.annotate({
527
+ description:
528
+ "The amount of storage in gibibytes (GiB) to be initially allocated for the database instance.\n If any value is set in the ``Iops`` parameter, ``AllocatedStorage`` must be at least 100 GiB, which corresponds to the minimum Iops value of 1,000. If you increase the ``Iops`` value (in 1,000 IOPS increments), then you must also increase the ``AllocatedStorage`` value (in 100-GiB increments). \n *Amazon Aurora* \n Not applicable. Aurora cluster volumes automatically grow as the amount of data in your database increases, though you are only charged for the space that you use in an Aurora cluster volume.\n *Db2* \n Constraints to the amount of storage for each storage type are the following:\n + General Purpose (SSD) storage (gp3): Must be an integer from 20 to 64000.\n + Provisioned IOPS storage (io1): Must be an integer from 100 to 64000.\n \n *MySQL* \n Constraints to the amount of storage for each storage type are the following: \n + General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536.\n + Provisioned IOPS storage (io1): Must be an integer from 100 to 65536.\n + Magnetic storage (standard): Must be an integer from 5 to 3072.\n \n *MariaDB* \n Constraints to the amount of storage for each storage type are the following: \n + General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536.\n + Provisioned IOPS storage (io1): Must be an integer from 100 to 65536.\n + Magnetic storage (standard): Must be an integer from 5 to 3072.\n \n *PostgreSQL* \n Constraints to the amount of storage for each storage type are the following: \n + General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536.\n + Provisioned IOPS storage (io1): Must be an integer from 100 to 65536.\n + Magnetic storage (standard): Must be an integer from 5 to 3072.\n \n *Oracle* \n Constraints to the amount of storage for each storage type are the following: \n + General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536.\n + Provisioned IOPS storage (io1): Must be an integer from 100 to 65536.\n + Magnetic storage (standard): Must be an integer from 10 to 3072.\n \n *SQL Server* \n Constraints to the amount of storage for each storage type are the following: \n + General Purpose (SSD) storage (gp2):\n + Enterprise and Standard editions: Must be an integer from 20 to 16384.\n + Web and Express editions: Must be an integer from 20 to 16384.\n \n + Provisioned IOPS storage (io1):\n + Enterprise and Standard editions: Must be an integer from 20 to 16384.\n + Web and Express editions: Must be an integer from 20 to 16384.\n \n + Magnetic storage (standard):\n + Enterprise and Standard editions: Must be an integer from 20 to 1024.\n + Web and Express editions: Must be an integer from 20 to 1024.",
529
+ }).check(
530
+ Schema.isPattern(new globalThis.RegExp("^[0-9]*$", "u")).annotate({
531
+ expected: "a string matching the RegExp ^[0-9]*$",
532
+ }),
533
+ ),
534
+ ),
535
+ AllowMajorVersionUpgrade: Schema.optionalKey(
536
+ Schema.Boolean.annotate({
537
+ description:
538
+ "A value that indicates whether major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible.\n Constraints: Major version upgrades must be allowed when specifying a value for the ``EngineVersion`` parameter that is a different major version than the DB instance's current version.",
539
+ }),
540
+ ),
541
+ AssociatedRoles: Schema.optionalKey(ResourceInputItems),
542
+ AutoMinorVersionUpgrade: Schema.optionalKey(
543
+ Schema.Boolean.annotate({
544
+ description:
545
+ "A value that indicates whether minor engine upgrades are applied automatically to the DB instance during the maintenance window. By default, minor engine upgrades are applied automatically.",
546
+ }),
547
+ ),
548
+ AutomaticBackupReplicationRegion: Schema.optionalKey(
549
+ Schema.String.annotate({
550
+ description: "The AWS-Region associated with the automated backup.",
551
+ }),
552
+ ),
553
+ AutomaticBackupReplicationKmsKeyId: Schema.optionalKey(
554
+ Schema.String.annotate({
555
+ description:
556
+ "The AWS KMS key identifier for encryption of the replicated automated backups. The KMS key ID is the Amazon Resource Name (ARN) for the KMS encryption key in the destination AWS-Region, for example, ``arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE``.",
557
+ }),
558
+ ),
559
+ AutomaticBackupReplicationRetentionPeriod: Schema.optionalKey(
560
+ Schema.Number.annotate({
561
+ description:
562
+ "The retention period for automated backups in a different AWS Region. Use this parameter to set a unique retention period that only applies to cross-Region automated backups. To enable automated backups in a different Region, specify a positive value for the ``AutomaticBackupReplicationRegion`` parameter. \n If not specified, this parameter defaults to the value of the ``BackupRetentionPeriod`` parameter. The maximum allowed value is 35.",
563
+ })
564
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
565
+ .check(
566
+ Schema.isGreaterThanOrEqualTo(1).annotate({
567
+ expected: "a value greater than or equal to 1",
568
+ }),
569
+ ),
570
+ ),
571
+ AvailabilityZone: Schema.optionalKey(
572
+ Schema.String.annotate({
573
+ description:
574
+ "The Availability Zone (AZ) where the database will be created. For information on AWS-Regions and Availability Zones, see [Regions and Availability Zones](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).\n For Amazon Aurora, each Aurora DB cluster hosts copies of its storage in three separate Availability Zones. Specify one of these Availability Zones. Aurora automatically chooses an appropriate Availability Zone if you don't specify one.\n Default: A random, system-chosen Availability Zone in the endpoint's AWS-Region.\n Constraints:\n + The ``AvailabilityZone`` parameter can't be specified if the DB instance is a Multi-AZ deployment.\n + The specified Availability Zone must be in the same AWS-Region as the current endpoint.\n \n Example: ``us-east-1d``",
575
+ }),
576
+ ),
577
+ BackupRetentionPeriod: Schema.optionalKey(
578
+ Schema.Number.annotate({
579
+ description:
580
+ "The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.\n *Amazon Aurora* \n Not applicable. The retention period for automated backups is managed by the DB cluster.\n Default: 1\n Constraints:\n + Must be a value from 0 to 35\n + Can't be set to 0 if the DB instance is a source to read replicas",
581
+ })
582
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
583
+ .check(
584
+ Schema.isGreaterThanOrEqualTo(0).annotate({
585
+ expected: "a value greater than or equal to 0",
586
+ }),
587
+ ),
588
+ ),
589
+ BackupTarget: Schema.optionalKey(
590
+ Schema.String.annotate({
591
+ description:
592
+ "The location for storing automated backups and manual snapshots.\n Valid Values:\n + ``local`` (Dedicated Local Zone)\n + ``outposts`` (AWS Outposts)\n + ``region`` (AWS-Region)\n \n Default: ``region``\n For more information, see [Working with Amazon RDS on Outposts](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) in the *Amazon RDS User Guide*.",
593
+ }),
594
+ ),
595
+ CACertificateIdentifier: Schema.optionalKey(
596
+ Schema.String.annotate({
597
+ description:
598
+ "The identifier of the CA certificate for this DB instance.\n For more information, see [Using SSL/TLS to encrypt a connection to a DB instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) in the *Amazon RDS User Guide* and [Using SSL/TLS to encrypt a connection to a DB cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) in the *Amazon Aurora User Guide*.",
599
+ }),
600
+ ),
601
+ CertificateRotationRestart: Schema.optionalKey(
602
+ Schema.Boolean.annotate({
603
+ description:
604
+ "Specifies whether the DB instance is restarted when you rotate your SSL/TLS certificate.\n By default, the DB instance is restarted when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted.\n Set this parameter only if you are *not* using SSL/TLS to connect to the DB instance.\n If you are using SSL/TLS to connect to the DB instance, follow the appropriate instructions for your DB engine to rotate your SSL/TLS certificate:\n + For more information about rotating your SSL/TLS certificate for RDS DB engines, see [Rotating Your SSL/TLS Certificate.](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL-certificate-rotation.html) in the *Amazon RDS User Guide.*\n + For more information about rotating your SSL/TLS certificate for Aurora DB engines, see [Rotating Your SSL/TLS Certificate](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL-certificate-rotation.html) in the *Amazon Aurora User Guide*.\n \n This setting doesn't apply to RDS Custom DB instances.",
605
+ }),
606
+ ),
607
+ CharacterSetName: Schema.optionalKey(
608
+ Schema.String.annotate({
609
+ description:
610
+ "For supported engines, indicates that the DB instance should be associated with the specified character set.\n *Amazon Aurora* \n Not applicable. The character set is managed by the DB cluster. For more information, see [AWS::RDS::DBCluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html).",
611
+ }),
612
+ ),
613
+ CopyTagsToSnapshot: Schema.optionalKey(
614
+ Schema.Boolean.annotate({
615
+ description:
616
+ "Specifies whether to copy tags from the DB instance to snapshots of the DB instance. By default, tags are not copied.\n This setting doesn't apply to Amazon Aurora DB instances. Copying tags to snapshots is managed by the DB cluster. Setting this value for an Aurora DB instance has no effect on the DB cluster setting.",
617
+ }),
618
+ ),
619
+ CustomIAMInstanceProfile: Schema.optionalKey(
620
+ Schema.String.annotate({
621
+ description:
622
+ "The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.\n This setting is required for RDS Custom.\n Constraints:\n + The profile must exist in your account.\n + The profile must have an IAM role that Amazon EC2 has permissions to assume.\n + The instance profile name and the associated IAM role name must start with the prefix ``AWSRDSCustom``.\n \n For the list of permissions required for the IAM role, see [Configure IAM and your VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc) in the *Amazon RDS User Guide*.",
623
+ }),
624
+ ),
625
+ DatabaseInsightsMode: Schema.optionalKey(
626
+ Schema.String.annotate({
627
+ description:
628
+ "The mode of Database Insights to enable for the DB instance.\n Aurora DB instances inherit this value from the DB cluster, so you can't change this value.",
629
+ }),
630
+ ),
631
+ DBClusterIdentifier: Schema.optionalKey(
632
+ Schema.Union([
633
+ Schema.Union([
634
+ ResourceReferenceSchema(
635
+ Schema.Struct({
636
+ provider: Schema.Literal("aws"),
637
+ service: Schema.Literal("rds"),
638
+ resource: Schema.Literal("dbcluster"),
639
+ }),
640
+ {
641
+ value: null,
642
+ outputs: [
643
+ {
644
+ source: ["DBClusterIdentifier"],
645
+ target: [],
646
+ },
647
+ ],
648
+ },
649
+ ).annotate({ expected: "ResourceEntity" }),
650
+ ]),
651
+ Schema.String.annotate({
652
+ description:
653
+ "The identifier of the DB cluster that this DB instance will belong to.\n This setting doesn't apply to RDS Custom DB instances.",
654
+ }),
655
+ ]),
656
+ ),
657
+ DBClusterSnapshotIdentifier: Schema.optionalKey(
658
+ Schema.String.annotate({
659
+ description:
660
+ "The identifier for the Multi-AZ DB cluster snapshot to restore from.\n For more information on Multi-AZ DB clusters, see [Multi-AZ DB cluster deployments](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html) in the *Amazon RDS User Guide*.\n Constraints:\n + Must match the identifier of an existing Multi-AZ DB cluster snapshot.\n + Can't be specified when ``DBSnapshotIdentifier`` is specified.\n + Must be specified when ``DBSnapshotIdentifier`` isn't specified.\n + If you are restoring from a shared manual Multi-AZ DB cluster snapshot, the ``DBClusterSnapshotIdentifier`` must be the ARN of the shared snapshot.\n + Can't be the identifier of an Aurora DB cluster snapshot.",
661
+ }),
662
+ ),
663
+ DBInstanceClass: Schema.optionalKey(
664
+ Schema.String.annotate({
665
+ description:
666
+ "The compute and memory capacity of the DB instance, for example ``db.m5.large``. Not all DB instance classes are available in all AWS-Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see [DB instance classes](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) in the *Amazon RDS User Guide* or [Aurora DB instance classes](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html) in the *Amazon Aurora User Guide*.",
667
+ }),
668
+ ),
669
+ DBInstanceIdentifier: Schema.optionalKey(
670
+ Schema.String.annotate({
671
+ description:
672
+ "A name for the DB instance. If you specify a name, AWS CloudFormation converts it to lowercase. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the DB instance. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).\n For information about constraints that apply to DB instance identifiers, see [Naming constraints in Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Limits.html#RDS_Limits.Constraints) in the *Amazon RDS User Guide*.\n If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.",
673
+ })
674
+ .check(
675
+ Schema.isMinLength(1).annotate({
676
+ expected: "a value with a length of at least 1",
677
+ }),
678
+ )
679
+ .check(
680
+ Schema.isMaxCodePoints(63).annotate({
681
+ expected: "a string with at most 63 code points",
682
+ }),
683
+ )
684
+ .check(
685
+ Schema.isPattern(
686
+ new globalThis.RegExp(
687
+ "^$|^[a-zA-Z]{1}(?:-?[a-zA-Z0-9]){0,62}$",
688
+ "u",
689
+ ),
690
+ ).annotate({
691
+ expected:
692
+ "a string matching the RegExp ^$|^[a-zA-Z]{1}(?:-?[a-zA-Z0-9]){0,62}$",
693
+ }),
694
+ ),
695
+ ),
696
+ DBName: Schema.optionalKey(
697
+ Schema.String.annotate({
698
+ description:
699
+ "The meaning of this parameter differs according to the database engine you use.\n If you specify the ``DBSnapshotIdentifier`` property, this property only applies to RDS for Oracle.\n *Amazon Aurora* \n Not applicable. The database name is managed by the DB cluster.\n *Db2* \n The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.\n Constraints:\n + Must contain 1 to 64 letters or numbers.\n + Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).\n + Can't be a word reserved by the specified database engine.\n \n *MySQL* \n The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance.\n Constraints:\n + Must contain 1 to 64 letters or numbers.\n + Can't be a word reserved by the specified database engine\n \n *MariaDB* \n The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance.\n Constraints:\n + Must contain 1 to 64 letters or numbers.\n + Can't be a word reserved by the specified database engine\n \n *PostgreSQL* \n The name of the database to create when the DB instance is created. If this parameter is not specified, the default ``postgres`` database is created in the DB instance.\n Constraints:\n + Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).\n + Must contain 1 to 63 characters.\n + Can't be a word reserved by the specified database engine\n \n *Oracle* \n The Oracle System ID (SID) of the created DB instance. If you specify ``null``, the default value ``ORCL`` is used. You can't specify the string NULL, or any other reserved word, for ``DBName``. \n Default: ``ORCL``\n Constraints:\n + Can't be longer than 8 characters\n \n *SQL Server* \n Not applicable. Must be null.",
700
+ }),
701
+ ),
702
+ DBParameterGroupName: Schema.optionalKey(
703
+ Schema.Union([
704
+ Schema.Union([
705
+ ResourceReferenceSchema(
706
+ Schema.Struct({
707
+ provider: Schema.Literal("aws"),
708
+ service: Schema.Literal("rds"),
709
+ resource: Schema.Literal("dbparametergroup"),
710
+ }),
711
+ {
712
+ value: null,
713
+ outputs: [
714
+ {
715
+ source: ["DBParameterGroupName"],
716
+ target: [],
717
+ },
718
+ ],
719
+ },
720
+ ).annotate({ expected: "ResourceEntity" }),
721
+ ]),
722
+ Schema.String.annotate({
723
+ description:
724
+ 'The name of an existing DB parameter group or a reference to an [AWS::RDS::DBParameterGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbparametergroup.html) resource created in the template.\n To list all of the available DB parameter group names, use the following command:\n ``aws rds describe-db-parameter-groups --query "DBParameterGroups[].DBParameterGroupName" --output text`` \n If any of the data members of the referenced parameter group are changed during an update, the DB instance might need to be restarted, which causes some interruption. If the parameter group contains static parameters, whether they were changed or not, an update triggers a reboot.\n If you don\'t specify a value for ``DBParameterGroupName`` property, the default DB parameter group for the specified engine and engine version is used.',
725
+ }),
726
+ ]),
727
+ ),
728
+ DBSecurityGroups: Schema.optionalKey(ResourceInputItems_1),
729
+ DBSnapshotIdentifier: Schema.optionalKey(
730
+ Schema.String.annotate({
731
+ description:
732
+ "The name or Amazon Resource Name (ARN) of the DB snapshot that's used to restore the DB instance. If you're restoring from a shared manual DB snapshot, you must specify the ARN of the snapshot.\n By specifying this property, you can create a DB instance from the specified DB snapshot. If the ``DBSnapshotIdentifier`` property is an empty string or the ``AWS::RDS::DBInstance`` declaration has no ``DBSnapshotIdentifier`` property, AWS CloudFormation creates a new database. If the property contains a value (other than an empty string), AWS CloudFormation creates a database from the specified snapshot. If a snapshot with the specified name doesn't exist, AWS CloudFormation can't create the database and it rolls back the stack.\n Some DB instance properties aren't valid when you restore from a snapshot, such as the ``MasterUsername`` and ``MasterUserPassword`` properties, and the point-in-time recovery properties ``RestoreTime`` and ``UseLatestRestorableTime``. For information about the properties that you can specify, see the [RestoreDBInstanceFromDBSnapshot](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_RestoreDBInstanceFromDBSnapshot.html) action in the *Amazon RDS API Reference*.\n After you restore a DB instance with a ``DBSnapshotIdentifier`` property, you must specify the same ``DBSnapshotIdentifier`` property for any future updates to the DB instance. When you specify this property for an update, the DB instance is not restored from the DB snapshot again, and the data in the database is not changed. However, if you don't specify the ``DBSnapshotIdentifier`` property, an empty DB instance is created, and the original DB instance is deleted. If you specify a property that is different from the previous snapshot restore property, a new DB instance is restored from the specified ``DBSnapshotIdentifier`` property, and the original DB instance is deleted.\n If you specify the ``DBSnapshotIdentifier`` property to restore a DB instance (as opposed to specifying it for DB instance updates), then don't specify the following properties:\n + ``CharacterSetName`` \n + ``DBClusterIdentifier`` \n + ``DBName`` \n + ``KmsKeyId`` \n + ``MasterUsername`` \n + ``MasterUserPassword`` \n + ``PromotionTier`` \n + ``SourceDBInstanceIdentifier`` \n + ``SourceRegion`` \n + ``StorageEncrypted`` (for an unencrypted snapshot)\n + ``Timezone`` \n \n *Amazon Aurora* \n Not applicable. Snapshot restore is managed by the DB cluster.",
733
+ }),
734
+ ),
735
+ DBSubnetGroupName: Schema.optionalKey(
736
+ Schema.Union([
737
+ Schema.Union([
738
+ ResourceReferenceSchema(
739
+ Schema.Struct({
740
+ provider: Schema.Literal("aws"),
741
+ service: Schema.Literal("rds"),
742
+ resource: Schema.Literal("dbsubnetgroup"),
743
+ }),
744
+ {
745
+ value: null,
746
+ outputs: [
747
+ {
748
+ source: ["DBSubnetGroupName"],
749
+ target: [],
750
+ },
751
+ ],
752
+ },
753
+ ).annotate({ expected: "ResourceEntity" }),
754
+ ]),
755
+ Schema.String.annotate({
756
+ description:
757
+ "A DB subnet group to associate with the DB instance. If you update this value, the new subnet group must be a subnet group in a new VPC. \n If you don't specify a DB subnet group, RDS uses the default DB subnet group if one exists. If a default DB subnet group does not exist, and you don't specify a ``DBSubnetGroupName``, the DB instance fails to launch. \n For more information about using Amazon RDS in a VPC, see [Amazon VPC and Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html) in the *Amazon RDS User Guide*. \n This setting doesn't apply to Amazon Aurora DB instances. The DB subnet group is managed by the DB cluster. If specified, the setting must match the DB cluster setting.",
758
+ }),
759
+ ]),
760
+ ),
761
+ DBSystemId: Schema.optionalKey(
762
+ Schema.String.annotate({
763
+ description:
764
+ 'The Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files. In this context, the term "Oracle database instance" refers exclusively to the system global area (SGA) and Oracle background processes. If you don\'t specify a SID, the value defaults to ``RDSCDB``. The Oracle SID is also the name of your CDB.',
765
+ }),
766
+ ),
767
+ DedicatedLogVolume: Schema.optionalKey(
768
+ Schema.Boolean.annotate({
769
+ description:
770
+ "Indicates whether the DB instance has a dedicated log volume (DLV) enabled.",
771
+ }),
772
+ ),
773
+ DeleteAutomatedBackups: Schema.optionalKey(
774
+ Schema.Boolean.annotate({
775
+ description:
776
+ "A value that indicates whether to remove automated backups immediately after the DB instance is deleted. This parameter isn't case-sensitive. The default is to remove automated backups immediately after the DB instance is deleted.\n *Amazon Aurora* \n Not applicable. When you delete a DB cluster, all automated backups for that DB cluster are deleted and can't be recovered. Manual DB cluster snapshots of the DB cluster are not deleted.",
777
+ }),
778
+ ),
779
+ DeletionProtection: Schema.optionalKey(
780
+ Schema.Boolean.annotate({
781
+ description:
782
+ "Specifies whether the DB instance has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled. For more information, see [Deleting a DB Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html).\n This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion protection for the DB cluster. For more information, see ``CreateDBCluster``. DB instances in a DB cluster can be deleted even when deletion protection is enabled for the DB cluster.",
783
+ }),
784
+ ),
785
+ Domain: Schema.optionalKey(
786
+ Schema.String.annotate({
787
+ description:
788
+ "The Active Directory directory ID to create the DB instance in. Currently, only Db2, MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances can be created in an Active Directory Domain.\n For more information, see [Kerberos Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) in the *Amazon RDS User Guide*.",
789
+ }),
790
+ ),
791
+ DomainAuthSecretArn: Schema.optionalKey(
792
+ Schema.String.annotate({
793
+ description:
794
+ "The ARN for the Secrets Manager secret with the credentials for the user joining the domain.\n Example: ``arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456``",
795
+ }),
796
+ ),
797
+ DomainDnsIps: Schema.optionalKey(ResourceInputItems_2),
798
+ DomainFqdn: Schema.optionalKey(
799
+ Schema.String.annotate({
800
+ description:
801
+ "The fully qualified domain name (FQDN) of an Active Directory domain.\n Constraints:\n + Can't be longer than 64 characters.\n \n Example: ``mymanagedADtest.mymanagedAD.mydomain``",
802
+ }),
803
+ ),
804
+ DomainIAMRoleName: Schema.optionalKey(
805
+ Schema.String.annotate({
806
+ description:
807
+ "The name of the IAM role to use when making API calls to the Directory Service.\n This setting doesn't apply to the following DB instances:\n + Amazon Aurora (The domain is managed by the DB cluster.)\n + RDS Custom",
808
+ }),
809
+ ),
810
+ DomainOu: Schema.optionalKey(
811
+ Schema.String.annotate({
812
+ description:
813
+ "The Active Directory organizational unit for your DB instance to join.\n Constraints:\n + Must be in the distinguished name format.\n + Can't be longer than 64 characters.\n \n Example: ``OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain``",
814
+ }),
815
+ ),
816
+ EnableCloudwatchLogsExports: Schema.optionalKey(ResourceInputItems_3),
817
+ EnableIAMDatabaseAuthentication: Schema.optionalKey(
818
+ Schema.Boolean.annotate({
819
+ description:
820
+ "A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts. By default, mapping is disabled.\n This property is supported for RDS for MariaDB, RDS for MySQL, and RDS for PostgreSQL. For more information, see [IAM Database Authentication for MariaDB, MySQL, and PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) in the *Amazon RDS User Guide.*\n *Amazon Aurora* \n Not applicable. Mapping AWS IAM accounts to database accounts is managed by the DB cluster.",
821
+ }),
822
+ ),
823
+ EnablePerformanceInsights: Schema.optionalKey(
824
+ Schema.Boolean.annotate({
825
+ description:
826
+ "Specifies whether to enable Performance Insights for the DB instance. For more information, see [Using Amazon Performance Insights](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) in the *Amazon RDS User Guide*.\n This setting doesn't apply to RDS Custom DB instances.",
827
+ }),
828
+ ),
829
+ Engine: Schema.optionalKey(
830
+ Schema.String.annotate({
831
+ description:
832
+ "The name of the database engine to use for this DB instance. Not every database engine is available in every AWS Region.\n This property is required when creating a DB instance.\n You can convert an Oracle database from the non-CDB architecture to the container database (CDB) architecture by updating the ``Engine`` value in your templates from ``oracle-ee`` to ``oracle-ee-cdb`` or from ``oracle-se2`` to ``oracle-se2-cdb``. Converting to the CDB architecture requires an interruption.\n Valid Values:\n + ``aurora-mysql`` (for Aurora MySQL DB instances)\n + ``aurora-postgresql`` (for Aurora PostgreSQL DB instances)\n + ``custom-oracle-ee`` (for RDS Custom for Oracle DB instances)\n + ``custom-oracle-ee-cdb`` (for RDS Custom for Oracle DB instances)\n + ``custom-sqlserver-ee`` (for RDS Custom for SQL Server DB instances)\n + ``custom-sqlserver-se`` (for RDS Custom for SQL Server DB instances)\n + ``custom-sqlserver-web`` (for RDS Custom for SQL Server DB instances)\n + ``db2-ae`` \n + ``db2-se`` \n + ``mariadb`` \n + ``mysql`` \n + ``oracle-ee`` \n + ``oracle-ee-cdb`` \n + ``oracle-se2`` \n + ``oracle-se2-cdb`` \n + ``postgres`` \n + ``sqlserver-ee`` \n + ``sqlserver-se`` \n + ``sqlserver-ex`` \n + ``sqlserver-web``",
833
+ }),
834
+ ),
835
+ EngineLifecycleSupport: Schema.optionalKey(
836
+ Schema.String.annotate({
837
+ description:
838
+ "The life cycle type for this DB instance.\n By default, this value is set to ``open-source-rds-extended-support``, which enrolls your DB instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to ``open-source-rds-extended-support-disabled``. In this case, creating the DB instance will fail if the DB major version is past its end of standard support date.\n This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed by the DB cluster.\n You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB instance past the end of standard support for that engine version. For more information, see [Amazon RDS Extended Support with Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) in the *Amazon RDS User Guide*.\n Valid Values: ``open-source-rds-extended-support | open-source-rds-extended-support-disabled``\n Default: ``open-source-rds-extended-support``",
839
+ }),
840
+ ),
841
+ EngineVersion: Schema.optionalKey(
842
+ Schema.String.annotate({
843
+ description:
844
+ "The version number of the database engine to use.\n For a list of valid engine versions, use the ``DescribeDBEngineVersions`` action.\n The following are the database engines and links to information about the major and minor versions that are available with Amazon RDS. Not every database engine is available for every AWS Region.\n *Amazon Aurora* \n Not applicable. The version number of the database engine to be used by the DB instance is managed by the DB cluster.\n *Db2* \n See [Amazon RDS for Db2](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Db2.html#Db2.Concepts.VersionMgmt) in the *Amazon RDS User Guide.*\n *MariaDB* \n See [MariaDB on Amazon RDS Versions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MariaDB.html#MariaDB.Concepts.VersionMgmt) in the *Amazon RDS User Guide.*\n *Microsoft SQL Server* \n See [Microsoft SQL Server Versions on Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.VersionSupport) in the *Amazon RDS User Guide.*\n *MySQL* \n See [MySQL on Amazon RDS Versions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt) in the *Amazon RDS User Guide.*\n *Oracle* \n See [Oracle Database Engine Release Notes](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.Oracle.PatchComposition.html) in the *Amazon RDS User Guide.*\n *PostgreSQL* \n See [Supported PostgreSQL Database Versions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts.General.DBVersions) in the *Amazon RDS User Guide.*",
845
+ }),
846
+ ),
847
+ ManageMasterUserPassword: Schema.optionalKey(
848
+ Schema.Boolean.annotate({
849
+ description:
850
+ "Specifies whether to manage the master user password with AWS Secrets Manager.\n For more information, see [Password management with Secrets Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) in the *Amazon RDS User Guide.*\n Constraints:\n + Can't manage the master user password with AWS Secrets Manager if ``MasterUserPassword`` is specified.",
851
+ }),
852
+ ),
853
+ Iops: Schema.optionalKey(
854
+ Schema.Number.annotate({
855
+ description:
856
+ "The number of I/O operations per second (IOPS) that the database provisions. The value must be equal to or greater than 1000. \n If you specify this property, you must follow the range of allowed ratios of your requested IOPS rate to the amount of storage that you allocate (IOPS to allocated storage). For example, you can provision an Oracle database instance with 1000 IOPS and 200 GiB of storage (a ratio of 5:1), or specify 2000 IOPS with 200 GiB of storage (a ratio of 10:1). For more information, see [Amazon RDS Provisioned IOPS Storage to Improve Performance](https://docs.aws.amazon.com/AmazonRDS/latest/DeveloperGuide/CHAP_Storage.html#USER_PIOPS) in the *Amazon RDS User Guide*.\n If you specify ``io1`` for the ``StorageType`` property, then you must also specify the ``Iops`` property.\n Constraints:\n + For RDS for Db2, MariaDB, MySQL, Oracle, and PostgreSQL - Must be a multiple between .5 and 50 of the storage amount for the DB instance.\n + For RDS for SQL Server - Must be a multiple between 1 and 50 of the storage amount for the DB instance.",
857
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
858
+ ),
859
+ KmsKeyId: Schema.optionalKey(
860
+ Schema.String.annotate({
861
+ description:
862
+ "The ARN of the AWS KMS key that's used to encrypt the DB instance, such as ``arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef``. If you enable the StorageEncrypted property but don't specify this property, AWS CloudFormation uses the default KMS key. If you specify this property, you must set the StorageEncrypted property to true. \n If you specify the ``SourceDBInstanceIdentifier`` or ``SourceDbiResourceId`` property, don't specify this property. The value is inherited from the source DB instance, and if the DB instance is encrypted, the specified ``KmsKeyId`` property is used. However, if the source DB instance is in a different AWS Region, you must specify a KMS key ID.\n If you specify the ``SourceDBInstanceAutomatedBackupsArn`` property, don't specify this property. The value is inherited from the source DB instance automated backup, and if the automated backup is encrypted, the specified ``KmsKeyId`` property is used.\n If you create an encrypted read replica in a different AWS Region, then you must specify a KMS key for the destination AWS Region. KMS encryption keys are specific to the region that they're created in, and you can't use encryption keys from one region in another region.\n If you specify the ``DBSnapshotIdentifier`` property, don't specify this property. The ``StorageEncrypted`` property value is inherited from the snapshot. If the DB instance is encrypted, the specified ``KmsKeyId`` property is also inherited from the snapshot.\n If you specify ``DBSecurityGroups``, AWS CloudFormation ignores this property. To specify both a security group and this property, you must use a VPC security group. For more information about Amazon RDS and VPC, see [Using Amazon RDS with Amazon VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html) in the *Amazon RDS User Guide*.\n *Amazon Aurora* \n Not applicable. The KMS key identifier is managed by the DB cluster.",
863
+ }),
864
+ ),
865
+ LicenseModel: Schema.optionalKey(
866
+ Schema.String.annotate({
867
+ description:
868
+ "License model information for this DB instance.\n Valid Values:\n + Aurora MySQL - ``general-public-license``\n + Aurora PostgreSQL - ``postgresql-license``\n + RDS for Db2 - ``bring-your-own-license``. For more information about RDS for Db2 licensing, see [](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html) in the *Amazon RDS User Guide.*\n + RDS for MariaDB - ``general-public-license``\n + RDS for Microsoft SQL Server - ``license-included``\n + RDS for MySQL - ``general-public-license``\n + RDS for Oracle - ``bring-your-own-license`` or ``license-included``\n + RDS for PostgreSQL - ``postgresql-license``\n \n If you've specified ``DBSecurityGroups`` and then you update the license model, AWS CloudFormation replaces the underlying DB instance. This will incur some interruptions to database availability.",
869
+ }),
870
+ ),
871
+ MasterUserAuthenticationType: Schema.optionalKey(
872
+ Schema.String.annotate({
873
+ description:
874
+ "Specifies the authentication type for the master user. With IAM master user authentication, you can configure the master DB user with IAM database authentication when you create a DB instance.\n You can specify one of the following values:\n + ``password`` - Use standard database authentication with a password.\n + ``iam-db-auth`` - Use IAM database authentication for the master user.\n \n This option is only valid for RDS for MySQL, RDS for MariaDB, RDS for PostgreSQL, Aurora MySQL, and Aurora PostgreSQL engines.",
875
+ }),
876
+ ),
877
+ MasterUsername: Schema.optionalKey(
878
+ Schema.String.annotate({
879
+ description:
880
+ "The master user name for the DB instance.\n If you specify the ``SourceDBInstanceIdentifier`` or ``DBSnapshotIdentifier`` property, don't specify this property. The value is inherited from the source DB instance or snapshot.\n When migrating a self-managed Db2 database, we recommend that you use the same master username as your self-managed Db2 instance name.\n *Amazon Aurora* \n Not applicable. The name for the master user is managed by the DB cluster. \n *RDS for Db2* \n Constraints:\n + Must be 1 to 16 letters or numbers.\n + First character must be a letter.\n + Can't be a reserved word for the chosen database engine.\n \n *RDS for MariaDB* \n Constraints:\n + Must be 1 to 16 letters or numbers.\n + Can't be a reserved word for the chosen database engine.\n \n *RDS for Microsoft SQL Server* \n Constraints:\n + Must be 1 to 128 letters or numbers.\n + First character must be a letter.\n + Can't be a reserved word for the chosen database engine.\n \n *RDS for MySQL* \n Constraints:\n + Must be 1 to 16 letters or numbers.\n + First character must be a letter.\n + Can't be a reserved word for the chosen database engine.\n \n *RDS for Oracle* \n Constraints:\n + Must be 1 to 30 letters or numbers.\n + First character must be a letter.\n + Can't be a reserved word for the chosen database engine.\n \n *RDS for PostgreSQL* \n Constraints:\n + Must be 1 to 63 letters or numbers.\n + First character must be a letter.\n + Can't be a reserved word for the chosen database engine.",
881
+ })
882
+ .check(
883
+ Schema.isMinLength(1).annotate({
884
+ expected: "a value with a length of at least 1",
885
+ }),
886
+ )
887
+ .check(
888
+ Schema.isMaxCodePoints(128).annotate({
889
+ expected: "a string with at most 128 code points",
890
+ }),
891
+ )
892
+ .check(
893
+ Schema.isPattern(
894
+ new globalThis.RegExp("^[a-zA-Z][a-zA-Z0-9_]{0,127}$", "u"),
895
+ ).annotate({
896
+ expected:
897
+ "a string matching the RegExp ^[a-zA-Z][a-zA-Z0-9_]{0,127}$",
898
+ }),
899
+ ),
900
+ ),
901
+ MasterUserPassword: Schema.optionalKey(
902
+ Schema.String.annotate({
903
+ description:
904
+ 'The password for the master user. The password can include any printable ASCII character except "/", """, or "@".\n *Amazon Aurora* \n Not applicable. The password for the master user is managed by the DB cluster.\n *RDS for Db2* \n Must contain from 8 to 255 characters.\n *RDS for MariaDB* \n Constraints: Must contain from 8 to 41 characters.\n *RDS for Microsoft SQL Server* \n Constraints: Must contain from 8 to 128 characters.\n *RDS for MySQL* \n Constraints: Must contain from 8 to 41 characters.\n *RDS for Oracle* \n Constraints: Must contain from 8 to 30 characters.\n *RDS for PostgreSQL* \n Constraints: Must contain from 8 to 128 characters.',
905
+ }),
906
+ ),
907
+ MasterUserSecret: Schema.optionalKey(MasterUserSecret),
908
+ MaxAllocatedStorage: Schema.optionalKey(
909
+ Schema.Number.annotate({
910
+ description:
911
+ "The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.\n For more information about this setting, including limitations that apply to it, see [Managing capacity automatically with Amazon RDS storage autoscaling](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling) in the *Amazon RDS User Guide*.\n This setting doesn't apply to the following DB instances:\n + Amazon Aurora (Storage is managed by the DB cluster.)\n + RDS Custom",
912
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
913
+ ),
914
+ MonitoringInterval: Schema.optionalKey(
915
+ Schema.Number.annotate({
916
+ description:
917
+ "The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collection of Enhanced Monitoring metrics, specify ``0``.\n If ``MonitoringRoleArn`` is specified, then you must set ``MonitoringInterval`` to a value other than ``0``.\n This setting doesn't apply to RDS Custom DB instances.\n Valid Values: ``0 | 1 | 5 | 10 | 15 | 30 | 60``\n Default: ``0``",
918
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
919
+ ),
920
+ MonitoringRoleArn: Schema.optionalKey(
921
+ Schema.Union([
922
+ Schema.Union([
923
+ ResourceReferenceSchema(
924
+ Schema.Struct({
925
+ provider: Schema.Literal("aws"),
926
+ service: Schema.Literal("iam"),
927
+ resource: Schema.Literal("role"),
928
+ }),
929
+ {
930
+ value: null,
931
+ outputs: [
932
+ {
933
+ source: ["Arn"],
934
+ target: [],
935
+ },
936
+ ],
937
+ },
938
+ ).annotate({ expected: "ResourceEntity" }),
939
+ ]),
940
+ Schema.String.annotate({
941
+ description:
942
+ "The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, ``arn:aws:iam:123456789012:role/emaccess``. For information on creating a monitoring role, see [Setting Up and Enabling Enhanced Monitoring](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling) in the *Amazon RDS User Guide*.\n If ``MonitoringInterval`` is set to a value other than ``0``, then you must supply a ``MonitoringRoleArn`` value.\n This setting doesn't apply to RDS Custom DB instances.",
943
+ }),
944
+ ]),
945
+ ),
946
+ MultiAZ: Schema.optionalKey(
947
+ Schema.Boolean.annotate({
948
+ description:
949
+ "Specifies whether the DB instance is a Multi-AZ deployment. You can't set the ``AvailabilityZone`` parameter if the DB instance is a Multi-AZ deployment.\n This setting doesn't apply to Amazon Aurora because the DB instance Availability Zones (AZs) are managed by the DB cluster.",
950
+ }),
951
+ ),
952
+ NcharCharacterSetName: Schema.optionalKey(
953
+ Schema.String.annotate({
954
+ description:
955
+ "The name of the NCHAR character set for the Oracle DB instance.\n This setting doesn't apply to RDS Custom DB instances.",
956
+ }),
957
+ ),
958
+ NetworkType: Schema.optionalKey(
959
+ Schema.String.annotate({
960
+ description:
961
+ "The network type of the DB instance.\n Valid values:\n + ``IPV4`` \n + ``DUAL`` \n \n The network type is determined by the ``DBSubnetGroup`` specified for the DB instance. A ``DBSubnetGroup`` can support only the IPv4 protocol or the IPv4 and IPv6 protocols (``DUAL``).\n For more information, see [Working with a DB instance in a VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) in the *Amazon RDS User Guide.*",
962
+ }),
963
+ ),
964
+ OptionGroupName: Schema.optionalKey(
965
+ Schema.String.annotate({
966
+ description:
967
+ "Indicates that the DB instance should be associated with the specified option group.\n Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group. Also, that option group can't be removed from a DB instance once it is associated with a DB instance.",
968
+ }),
969
+ ),
970
+ PerformanceInsightsKMSKeyId: Schema.optionalKey(
971
+ Schema.String.annotate({
972
+ description:
973
+ "The AWS KMS key identifier for encryption of Performance Insights data.\n The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.\n If you do not specify a value for ``PerformanceInsightsKMSKeyId``, then Amazon RDS uses your default KMS key. There is a default KMS key for your AWS account. Your AWS account has a different default KMS key for each AWS Region.\n *Update behavior:* Once Performance Insights is enabled with a KMS key, you cannot change to a different physical KMS key without replacing the DB instance. However, the following updates do not require replacement:\n + Enabling or disabling Performance Insights using the ``EnablePerformanceInsights`` property\n + Changing between different identifier formats (key ARN, key ID, alias ARN, alias name) of the same physical KMS key\n + Removing the ``PerformanceInsightsKMSKeyId`` property from your template\n \n *Drift behavior:* If you specify ``PerformanceInsightsKMSKeyId`` while ``EnablePerformanceInsights`` is set to ``false``, CloudFormation will report drift. This occurs because the RDS API does not allow setting a KMS key when Performance Insights is disabled. CloudFormation ignores the ``PerformanceInsightsKMSKeyId`` value during instance creation to avoid API errors, resulting in a mismatch between your template and the actual instance configuration.\n To avoid drift, omit both ``EnablePerformanceInsights`` and ``PerformanceInsightsKMSKeyId`` during initial instance creation, then set both properties together when you're ready to enable Performance Insights.\n For information about enabling Performance Insights, see [EnablePerformanceInsights](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-enableperformanceinsights).",
974
+ }),
975
+ ),
976
+ PerformanceInsightsRetentionPeriod: Schema.optionalKey(
977
+ Schema.Number.annotate({
978
+ description:
979
+ "The number of days to retain Performance Insights data. When creating a DB instance without enabling Performance Insights, you can't specify the parameter ``PerformanceInsightsRetentionPeriod``.\n This setting doesn't apply to RDS Custom DB instances.\n Valid Values:\n + ``7`` \n + *month* * 31, where *month* is a number of months from 1-23. Examples: ``93`` (3 months * 31), ``341`` (11 months * 31), ``589`` (19 months * 31)\n + ``731`` \n \n Default: ``7`` days\n If you specify a retention period that isn't valid, such as ``94``, Amazon RDS returns an error.",
980
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
981
+ ),
982
+ Port: Schema.optionalKey(
983
+ Schema.String.annotate({
984
+ description:
985
+ "The port number on which the database accepts connections.\n This setting doesn't apply to Aurora DB instances. The port number is managed by the cluster.\n Valid Values: ``1150-65535``\n Default:\n + RDS for Db2 - ``50000``\n + RDS for MariaDB - ``3306``\n + RDS for Microsoft SQL Server - ``1433``\n + RDS for MySQL - ``3306``\n + RDS for Oracle - ``1521``\n + RDS for PostgreSQL - ``5432``\n \n Constraints:\n + For RDS for Microsoft SQL Server, the value can't be ``1234``, ``1434``, ``3260``, ``3343``, ``3389``, ``47001``, or ``49152-49156``.",
986
+ }).check(
987
+ Schema.isPattern(new globalThis.RegExp("^\\d*$", "u")).annotate({
988
+ expected: "a string matching the RegExp ^\\d*$",
989
+ }),
990
+ ),
991
+ ),
992
+ PreferredBackupWindow: Schema.optionalKey(
993
+ Schema.String.annotate({
994
+ description:
995
+ "The daily time range during which automated backups are created if automated backups are enabled, using the ``BackupRetentionPeriod`` parameter. For more information, see [Backup Window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow) in the *Amazon RDS User Guide.*\n Constraints:\n + Must be in the format ``hh24:mi-hh24:mi``.\n + Must be in Universal Coordinated Time (UTC).\n + Must not conflict with the preferred maintenance window.\n + Must be at least 30 minutes.\n \n *Amazon Aurora* \n Not applicable. The daily time range for creating automated backups is managed by the DB cluster.",
996
+ }),
997
+ ),
998
+ PreferredMaintenanceWindow: Schema.optionalKey(
999
+ Schema.String.annotate({
1000
+ description:
1001
+ "The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).\n Format: ``ddd:hh24:mi-ddd:hh24:mi``\n The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week. To see the time blocks available, see [Maintaining a DB instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow) in the *Amazon RDS User Guide.*\n This property applies when AWS CloudFormation initially creates the DB instance. If you use AWS CloudFormation to update the DB instance, those updates are applied immediately.\n Constraints: Minimum 30-minute window.",
1002
+ }),
1003
+ ),
1004
+ ProcessorFeatures: Schema.optionalKey(ResourceInputItems_4),
1005
+ PromotionTier: Schema.optionalKey(
1006
+ Schema.Number.annotate({
1007
+ description:
1008
+ "The order of priority in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see [Fault Tolerance for an Aurora DB Cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Aurora.Managing.FaultTolerance) in the *Amazon Aurora User Guide*.\n This setting doesn't apply to RDS Custom DB instances.\n Default: ``1``\n Valid Values: ``0 - 15``",
1009
+ })
1010
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1011
+ .check(
1012
+ Schema.isGreaterThanOrEqualTo(0).annotate({
1013
+ expected: "a value greater than or equal to 0",
1014
+ }),
1015
+ ),
1016
+ ),
1017
+ PubliclyAccessible: Schema.optionalKey(
1018
+ Schema.Boolean.annotate({
1019
+ description:
1020
+ "Indicates whether the DB instance is an internet-facing instance. If you specify true, AWS CloudFormation creates an instance with a publicly resolvable DNS name, which resolves to a public IP address. If you specify false, AWS CloudFormation creates an internal instance with a DNS name that resolves to a private IP address. \n The default behavior value depends on your VPC setup and the database subnet group. For more information, see the ``PubliclyAccessible`` parameter in the [CreateDBInstance](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html) in the *Amazon RDS API Reference*.",
1021
+ }),
1022
+ ),
1023
+ ReplicaMode: Schema.optionalKey(
1024
+ Schema.String.annotate({
1025
+ description:
1026
+ "The open mode of an Oracle read replica. For more information, see [Working with Oracle Read Replicas for Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html) in the *Amazon RDS User Guide*.\n This setting is only supported in RDS for Oracle.\n Default: ``open-read-only``\n Valid Values: ``open-read-only`` or ``mounted``",
1027
+ }),
1028
+ ),
1029
+ RestoreTime: Schema.optionalKey(
1030
+ Schema.String.annotate({
1031
+ description:
1032
+ "The date and time to restore from. This parameter applies to point-in-time recovery. For more information, see [Restoring a DB instance to a specified time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in the *Amazon RDS User Guide*.\n Constraints:\n + Must be a time in Universal Coordinated Time (UTC) format.\n + Must be before the latest restorable time for the DB instance.\n + Can't be specified if the ``UseLatestRestorableTime`` parameter is enabled.\n \n Example: ``2009-09-07T23:45:00Z``",
1033
+ format: "date-time",
1034
+ }),
1035
+ ),
1036
+ SourceDBClusterIdentifier: Schema.optionalKey(
1037
+ Schema.String.annotate({
1038
+ description:
1039
+ "The identifier of the Multi-AZ DB cluster that will act as the source for the read replica. Each DB cluster can have up to 15 read replicas.\n Constraints:\n + Must be the identifier of an existing Multi-AZ DB cluster.\n + Can't be specified if the ``SourceDBInstanceIdentifier`` parameter is also specified.\n + The specified DB cluster must have automatic backups enabled, that is, its backup retention period must be greater than 0.\n + The source DB cluster must be in the same AWS-Region as the read replica. Cross-Region replication isn't supported.",
1040
+ }),
1041
+ ),
1042
+ SourceDbiResourceId: Schema.optionalKey(
1043
+ Schema.String.annotate({
1044
+ description:
1045
+ "The resource ID of the source DB instance from which to restore.",
1046
+ }),
1047
+ ),
1048
+ SourceDBInstanceAutomatedBackupsArn: Schema.optionalKey(
1049
+ Schema.String.annotate({
1050
+ description:
1051
+ "The Amazon Resource Name (ARN) of the replicated automated backups from which to restore, for example, ``arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE``.\n This setting doesn't apply to RDS Custom.",
1052
+ }),
1053
+ ),
1054
+ SourceDBInstanceIdentifier: Schema.optionalKey(
1055
+ Schema.Union([
1056
+ Schema.Union([
1057
+ ResourceReferenceSchema(
1058
+ Schema.Struct({
1059
+ provider: Schema.Literal("aws"),
1060
+ service: Schema.Literal("rds"),
1061
+ resource: Schema.Literal("dbinstance"),
1062
+ }),
1063
+ {
1064
+ value: null,
1065
+ outputs: [
1066
+ {
1067
+ source: ["DBInstanceIdentifier"],
1068
+ target: [],
1069
+ },
1070
+ ],
1071
+ },
1072
+ ).annotate({ expected: "ResourceEntity" }),
1073
+ ]),
1074
+ Schema.String.annotate({
1075
+ description:
1076
+ "If you want to create a read replica DB instance, specify the ID of the source DB instance. Each DB instance can have a limited number of read replicas. For more information, see [Working with Read Replicas](https://docs.aws.amazon.com/AmazonRDS/latest/DeveloperGuide/USER_ReadRepl.html) in the *Amazon RDS User Guide*.\n For information about constraints that apply to DB instance identifiers, see [Naming constraints in Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Limits.html#RDS_Limits.Constraints) in the *Amazon RDS User Guide*.\n The ``SourceDBInstanceIdentifier`` property determines whether a DB instance is a read replica. If you remove the ``SourceDBInstanceIdentifier`` property from your template and then update your stack, AWS CloudFormation promotes the read replica to a standalone DB instance.\n If you specify the ``UseLatestRestorableTime`` or ``RestoreTime`` properties in conjunction with the ``SourceDBInstanceIdentifier`` property, RDS restores the DB instance to the requested point in time, thereby creating a new DB instance.\n + If you specify a source DB instance that uses VPC security groups, we recommend that you specify the ``VPCSecurityGroups`` property. If you don't specify the property, the read replica inherits the value of the ``VPCSecurityGroups`` property from the source DB when you create the replica. However, if you update the stack, AWS CloudFormation reverts the replica's ``VPCSecurityGroups`` property to the default value because it's not defined in the stack's template. This change might cause unexpected issues.\n + Read replicas don't support deletion policies. AWS CloudFormation ignores any deletion policy that's associated with a read replica.\n + If you specify ``SourceDBInstanceIdentifier``, don't specify the ``DBSnapshotIdentifier`` property. You can't create a read replica from a snapshot.\n + Don't set the ``BackupRetentionPeriod``, ``DBName``, ``MasterUsername``, ``MasterUserPassword``, and ``PreferredBackupWindow`` properties. The database attributes are inherited from the source DB instance, and backups are disabled for read replicas.\n + If the source DB instance is in a different region than the read replica, specify the source region in ``SourceRegion``, and specify an ARN for a valid DB instance in ``SourceDBInstanceIdentifier``. For more information, see [Constructing a Amazon RDS Amazon Resource Name (ARN)](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN) in the *Amazon RDS User Guide*.\n + For DB instances in Amazon Aurora clusters, don't specify this property. Amazon RDS automatically assigns writer and reader DB instances.",
1077
+ }),
1078
+ ]),
1079
+ ),
1080
+ SourceRegion: Schema.optionalKey(
1081
+ Schema.String.annotate({
1082
+ description:
1083
+ "The ID of the region that contains the source DB instance for the read replica.",
1084
+ }),
1085
+ ),
1086
+ StorageEncrypted: Schema.optionalKey(
1087
+ Schema.Boolean.annotate({
1088
+ description:
1089
+ "A value that indicates whether the DB instance is encrypted. By default, it isn't encrypted.\n If you specify the ``KmsKeyId`` property, then you must enable encryption.\n If you specify the ``SourceDBInstanceIdentifier`` or ``SourceDbiResourceId`` property, don't specify this property. The value is inherited from the source DB instance, and if the DB instance is encrypted, the specified ``KmsKeyId`` property is used.\n If you specify the ``SourceDBInstanceAutomatedBackupsArn`` property, don't specify this property. The value is inherited from the source DB instance automated backup. \n If you specify ``DBSnapshotIdentifier`` property, don't specify this property. The value is inherited from the snapshot.\n *Amazon Aurora* \n Not applicable. The encryption for DB instances is managed by the DB cluster.",
1090
+ }),
1091
+ ),
1092
+ StorageType: Schema.optionalKey(
1093
+ Schema.String.annotate({
1094
+ description:
1095
+ "The storage type to associate with the DB instance.\n If you specify ``io1``, ``io2``, or ``gp3``, you must also include a value for the ``Iops`` parameter.\n This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.\n Valid Values: ``gp2 | gp3 | io1 | io2 | standard``\n Default: ``io1``, if the ``Iops`` parameter is specified. Otherwise, ``gp3``.",
1096
+ }),
1097
+ ),
1098
+ StorageThroughput: Schema.optionalKey(
1099
+ Schema.Number.annotate({
1100
+ description:
1101
+ "Specifies the storage throughput value, in mebibyte per second (MiBps), for the DB instance. This setting applies only to the ``gp3`` storage type. \n This setting doesn't apply to RDS Custom or Amazon Aurora.",
1102
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1103
+ ),
1104
+ Tags: Schema.optionalKey(ResourceInputItems_5),
1105
+ TdeCredentialArn: Schema.optionalKey(
1106
+ Schema.String.annotate({ description: "" }),
1107
+ ),
1108
+ TdeCredentialPassword: Schema.optionalKey(
1109
+ Schema.String.annotate({ description: "" }),
1110
+ ),
1111
+ Timezone: Schema.optionalKey(
1112
+ Schema.String.annotate({
1113
+ description:
1114
+ "The time zone of the DB instance. The time zone parameter is currently supported only by [RDS for Db2](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-time-zone) and [RDS for SQL Server](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.TimeZone).",
1115
+ }),
1116
+ ),
1117
+ UseDefaultProcessorFeatures: Schema.optionalKey(
1118
+ Schema.Boolean.annotate({
1119
+ description:
1120
+ "Specifies whether the DB instance class of the DB instance uses its default processor features.\n This setting doesn't apply to RDS Custom DB instances.",
1121
+ }),
1122
+ ),
1123
+ UseLatestRestorableTime: Schema.optionalKey(
1124
+ Schema.Boolean.annotate({
1125
+ description:
1126
+ "Specifies whether the DB instance is restored from the latest backup time. By default, the DB instance isn't restored from the latest backup time. This parameter applies to point-in-time recovery. For more information, see [Restoring a DB instance to a specified time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in the *Amazon RDS User Guide*.\n Constraints:\n + Can't be specified if the ``RestoreTime`` parameter is provided.",
1127
+ }),
1128
+ ),
1129
+ VPCSecurityGroups: Schema.optionalKey(
1130
+ Schema.Array(
1131
+ Schema.Union([
1132
+ Schema.Union([
1133
+ ResourceReferenceSchema(
1134
+ Schema.Struct({
1135
+ provider: Schema.Literal("aws"),
1136
+ service: Schema.Literal("ec2"),
1137
+ resource: Schema.Literal("securitygroup"),
1138
+ }),
1139
+ {
1140
+ value: null,
1141
+ outputs: [
1142
+ {
1143
+ source: ["Id"],
1144
+ target: [],
1145
+ },
1146
+ ],
1147
+ },
1148
+ ).annotate({ expected: "ResourceEntity" }),
1149
+ ]),
1150
+ Schema.String,
1151
+ ]),
1152
+ )
1153
+ .annotate({
1154
+ description:
1155
+ "A list of the VPC security group IDs to assign to the DB instance. The list can include both the physical IDs of existing VPC security groups and references to [AWS::EC2::SecurityGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html) resources created in the template.\n If you plan to update the resource, don't specify VPC security groups in a shared VPC.\n If you set ``VPCSecurityGroups``, you must not set [DBSecurityGroups](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbsecuritygroups), and vice versa.\n You can migrate a DB instance in your stack from an RDS DB security group to a VPC security group, but keep the following in mind:\n + You can't revert to using an RDS security group after you establish a VPC security group membership.\n + When you migrate your DB instance to VPC security groups, if your stack update rolls back because the DB instance update fails or because an update fails in another AWS CloudFormation resource, the rollback fails because it can't revert to an RDS security group.\n + To use the properties that are available when you use a VPC security group, you must recreate the DB instance. If you don't, AWS CloudFormation submits only the property values that are listed in the [DBSecurityGroups](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbsecuritygroups) property.\n \n To avoid this situation, migrate your DB instance to using VPC security groups only when that is the only change in your stack template. \n *Amazon Aurora* \n Not applicable. The associated list of EC2 VPC security groups is managed by the DB cluster. If specified, the setting must match the DB cluster setting.",
1156
+ })
1157
+ .check(
1158
+ Schema.isUnique().annotate({
1159
+ expected: "an array with unique items",
1160
+ }),
1161
+ ),
1162
+ ),
1163
+ ApplyImmediately: Schema.optionalKey(
1164
+ Schema.Boolean.annotate({
1165
+ description:
1166
+ "Specifies whether changes to the DB instance and any pending modifications are applied immediately, regardless of the ``PreferredMaintenanceWindow`` setting. If set to ``false``, changes are applied during the next maintenance window. Until RDS applies the changes, the DB instance remains in a drift state. As a result, the configuration doesn't fully reflect the requested modifications and temporarily diverges from the intended state.\n In addition to the settings described in [Modifying a DB instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Modifying.html), this property also determines whether the DB instance reboots when a static parameter is modified in the associated DB parameter group.\n Default: ``true``",
1167
+ }),
1168
+ ),
1169
+ AdditionalStorageVolumes: Schema.optionalKey(ResourceInputItems_6),
1170
+ }),
1171
+ AWSDBInstanceResourceSchema,
1172
+ );
1173
+
1174
+ export interface AWSDBInstanceOutputs {
1175
+ readonly AutomaticRestartTime?: string;
1176
+ readonly CertificateDetails?: CertificateDetails;
1177
+ readonly Endpoint?: Endpoint;
1178
+ readonly DbiResourceId?: string;
1179
+ readonly DBInstanceArn?: string;
1180
+ readonly DBInstanceStatus?: string;
1181
+ readonly InstanceCreateTime?: string;
1182
+ readonly IsStorageConfigUpgradeAvailable?: boolean;
1183
+ readonly LatestRestorableTime?: string;
1184
+ readonly ListenerEndpoint?: Endpoint;
1185
+ readonly PercentProgress?: string;
1186
+ readonly ReadReplicaDBClusterIdentifiers?: globalThis.ReadonlyArray<string>;
1187
+ readonly ReadReplicaDBInstanceIdentifiers?: globalThis.ReadonlyArray<string>;
1188
+ readonly ResumeFullAutomationModeTime?: string;
1189
+ readonly SecondaryAvailabilityZone?: string;
1190
+ readonly StatusInfos?: globalThis.ReadonlyArray<DBInstanceStatusInfo>;
1191
+ readonly DBInstanceIdentifier?: string;
1192
+ }
1193
+
1194
+ export const AWSDBInstanceOutputsSchema = Schema.Struct({
1195
+ AutomaticRestartTime: Schema.optionalKey(
1196
+ Schema.String.annotate({ description: "" }),
1197
+ ),
1198
+ CertificateDetails: Schema.optionalKey(CertificateDetails),
1199
+ Endpoint: Schema.optionalKey(Endpoint),
1200
+ DbiResourceId: Schema.optionalKey(
1201
+ Schema.String.annotate({ description: "" }),
1202
+ ),
1203
+ DBInstanceArn: Schema.optionalKey(
1204
+ Schema.String.annotate({ description: "" }),
1205
+ ),
1206
+ DBInstanceStatus: Schema.optionalKey(
1207
+ Schema.String.annotate({ description: "" }),
1208
+ ),
1209
+ InstanceCreateTime: Schema.optionalKey(
1210
+ Schema.String.annotate({ description: "", format: "date-time" }),
1211
+ ),
1212
+ IsStorageConfigUpgradeAvailable: Schema.optionalKey(
1213
+ Schema.Boolean.annotate({ description: "" }),
1214
+ ),
1215
+ LatestRestorableTime: Schema.optionalKey(
1216
+ Schema.String.annotate({ description: "", format: "date-time" }),
1217
+ ),
1218
+ ListenerEndpoint: Schema.optionalKey(Endpoint),
1219
+ PercentProgress: Schema.optionalKey(
1220
+ Schema.String.annotate({ description: "" }),
1221
+ ),
1222
+ ReadReplicaDBClusterIdentifiers: Schema.optionalKey(
1223
+ Schema.Array(Schema.String).annotate({ description: "" }),
1224
+ ),
1225
+ ReadReplicaDBInstanceIdentifiers: Schema.optionalKey(
1226
+ Schema.Array(Schema.String).annotate({ description: "" }),
1227
+ ),
1228
+ ResumeFullAutomationModeTime: Schema.optionalKey(
1229
+ Schema.String.annotate({ description: "" }),
1230
+ ),
1231
+ SecondaryAvailabilityZone: Schema.optionalKey(
1232
+ Schema.String.annotate({ description: "" }),
1233
+ ),
1234
+ StatusInfos: Schema.optionalKey(
1235
+ Schema.Array(DBInstanceStatusInfo).annotate({ description: "" }),
1236
+ ),
1237
+ DBInstanceIdentifier: Schema.optionalKey(
1238
+ Schema.String.annotate({
1239
+ description:
1240
+ "A name for the DB instance. If you specify a name, AWS CloudFormation converts it to lowercase. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the DB instance. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).\n For information about constraints that apply to DB instance identifiers, see [Naming constraints in Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Limits.html#RDS_Limits.Constraints) in the *Amazon RDS User Guide*.\n If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.",
1241
+ })
1242
+ .check(
1243
+ Schema.isMinLength(1).annotate({
1244
+ expected: "a value with a length of at least 1",
1245
+ }),
1246
+ )
1247
+ .check(
1248
+ Schema.isMaxCodePoints(63).annotate({
1249
+ expected: "a string with at most 63 code points",
1250
+ }),
1251
+ )
1252
+ .check(
1253
+ Schema.isPattern(
1254
+ new globalThis.RegExp("^$|^[a-zA-Z]{1}(?:-?[a-zA-Z0-9]){0,62}$", "u"),
1255
+ ).annotate({
1256
+ expected:
1257
+ "a string matching the RegExp ^$|^[a-zA-Z]{1}(?:-?[a-zA-Z0-9]){0,62}$",
1258
+ }),
1259
+ ),
1260
+ ),
1261
+ });
1262
+
1263
+ export interface AWSDBInstanceRequest {
1264
+ readonly AllocatedStorage?: string;
1265
+ readonly AllowMajorVersionUpgrade?: boolean;
1266
+ readonly AssociatedRoles?: ResourceInputItems;
1267
+ readonly AutoMinorVersionUpgrade?: boolean;
1268
+ readonly AutomaticBackupReplicationRegion?: string;
1269
+ readonly AutomaticBackupReplicationKmsKeyId?: string;
1270
+ readonly AutomaticBackupReplicationRetentionPeriod?: number;
1271
+ readonly AvailabilityZone?: string;
1272
+ readonly BackupRetentionPeriod?: number;
1273
+ readonly BackupTarget?: string;
1274
+ readonly CACertificateIdentifier?: string;
1275
+ readonly CertificateRotationRestart?: boolean;
1276
+ readonly CharacterSetName?: string;
1277
+ readonly CopyTagsToSnapshot?: boolean;
1278
+ readonly CustomIAMInstanceProfile?: string;
1279
+ readonly DatabaseInsightsMode?: string;
1280
+ readonly DBClusterIdentifier?: string;
1281
+ readonly DBClusterSnapshotIdentifier?: string;
1282
+ readonly DBInstanceClass?: string;
1283
+ readonly DBInstanceIdentifier?: string;
1284
+ readonly DBName?: string;
1285
+ readonly DBParameterGroupName?: string;
1286
+ readonly DBSecurityGroups?: ResourceInputItems_1;
1287
+ readonly DBSnapshotIdentifier?: string;
1288
+ readonly DBSubnetGroupName?: string;
1289
+ readonly DBSystemId?: string;
1290
+ readonly DedicatedLogVolume?: boolean;
1291
+ readonly DeleteAutomatedBackups?: boolean;
1292
+ readonly DeletionProtection?: boolean;
1293
+ readonly Domain?: string;
1294
+ readonly DomainAuthSecretArn?: string;
1295
+ readonly DomainDnsIps?: ResourceInputItems_2;
1296
+ readonly DomainFqdn?: string;
1297
+ readonly DomainIAMRoleName?: string;
1298
+ readonly DomainOu?: string;
1299
+ readonly EnableCloudwatchLogsExports?: ResourceInputItems_3;
1300
+ readonly EnableIAMDatabaseAuthentication?: boolean;
1301
+ readonly EnablePerformanceInsights?: boolean;
1302
+ readonly Engine?: string;
1303
+ readonly EngineLifecycleSupport?: string;
1304
+ readonly EngineVersion?: string;
1305
+ readonly ManageMasterUserPassword?: boolean;
1306
+ readonly Iops?: number;
1307
+ readonly KmsKeyId?: string;
1308
+ readonly LicenseModel?: string;
1309
+ readonly MasterUserAuthenticationType?: string;
1310
+ readonly MasterUsername?: string;
1311
+ readonly MasterUserPassword?: string;
1312
+ readonly MasterUserSecret?: MasterUserSecret_1;
1313
+ readonly MaxAllocatedStorage?: number;
1314
+ readonly MonitoringInterval?: number;
1315
+ readonly MonitoringRoleArn?: string;
1316
+ readonly MultiAZ?: boolean;
1317
+ readonly NcharCharacterSetName?: string;
1318
+ readonly NetworkType?: string;
1319
+ readonly OptionGroupName?: string;
1320
+ readonly PerformanceInsightsKMSKeyId?: string;
1321
+ readonly PerformanceInsightsRetentionPeriod?: number;
1322
+ readonly Port?: string;
1323
+ readonly PreferredBackupWindow?: string;
1324
+ readonly PreferredMaintenanceWindow?: string;
1325
+ readonly ProcessorFeatures?: ResourceInputItems_4;
1326
+ readonly PromotionTier?: number;
1327
+ readonly PubliclyAccessible?: boolean;
1328
+ readonly ReplicaMode?: string;
1329
+ readonly RestoreTime?: string;
1330
+ readonly SourceDBClusterIdentifier?: string;
1331
+ readonly SourceDbiResourceId?: string;
1332
+ readonly SourceDBInstanceAutomatedBackupsArn?: string;
1333
+ readonly SourceDBInstanceIdentifier?: string;
1334
+ readonly SourceRegion?: string;
1335
+ readonly StorageEncrypted?: boolean;
1336
+ readonly StorageType?: string;
1337
+ readonly StorageThroughput?: number;
1338
+ readonly Tags?: ResourceInputItems_5;
1339
+ readonly TdeCredentialArn?: string;
1340
+ readonly TdeCredentialPassword?: string;
1341
+ readonly Timezone?: string;
1342
+ readonly UseDefaultProcessorFeatures?: boolean;
1343
+ readonly UseLatestRestorableTime?: boolean;
1344
+ readonly VPCSecurityGroups?: globalThis.ReadonlyArray<string>;
1345
+ readonly ApplyImmediately?: boolean;
1346
+ readonly AdditionalStorageVolumes?: ResourceInputItems_6;
1347
+ }
1348
+
1349
+ export const AWSDBInstanceRequestSchema = Schema.Struct({
1350
+ AllocatedStorage: Schema.optionalKey(
1351
+ Schema.String.annotate({
1352
+ description:
1353
+ "The amount of storage in gibibytes (GiB) to be initially allocated for the database instance.\n If any value is set in the ``Iops`` parameter, ``AllocatedStorage`` must be at least 100 GiB, which corresponds to the minimum Iops value of 1,000. If you increase the ``Iops`` value (in 1,000 IOPS increments), then you must also increase the ``AllocatedStorage`` value (in 100-GiB increments). \n *Amazon Aurora* \n Not applicable. Aurora cluster volumes automatically grow as the amount of data in your database increases, though you are only charged for the space that you use in an Aurora cluster volume.\n *Db2* \n Constraints to the amount of storage for each storage type are the following:\n + General Purpose (SSD) storage (gp3): Must be an integer from 20 to 64000.\n + Provisioned IOPS storage (io1): Must be an integer from 100 to 64000.\n \n *MySQL* \n Constraints to the amount of storage for each storage type are the following: \n + General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536.\n + Provisioned IOPS storage (io1): Must be an integer from 100 to 65536.\n + Magnetic storage (standard): Must be an integer from 5 to 3072.\n \n *MariaDB* \n Constraints to the amount of storage for each storage type are the following: \n + General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536.\n + Provisioned IOPS storage (io1): Must be an integer from 100 to 65536.\n + Magnetic storage (standard): Must be an integer from 5 to 3072.\n \n *PostgreSQL* \n Constraints to the amount of storage for each storage type are the following: \n + General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536.\n + Provisioned IOPS storage (io1): Must be an integer from 100 to 65536.\n + Magnetic storage (standard): Must be an integer from 5 to 3072.\n \n *Oracle* \n Constraints to the amount of storage for each storage type are the following: \n + General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536.\n + Provisioned IOPS storage (io1): Must be an integer from 100 to 65536.\n + Magnetic storage (standard): Must be an integer from 10 to 3072.\n \n *SQL Server* \n Constraints to the amount of storage for each storage type are the following: \n + General Purpose (SSD) storage (gp2):\n + Enterprise and Standard editions: Must be an integer from 20 to 16384.\n + Web and Express editions: Must be an integer from 20 to 16384.\n \n + Provisioned IOPS storage (io1):\n + Enterprise and Standard editions: Must be an integer from 20 to 16384.\n + Web and Express editions: Must be an integer from 20 to 16384.\n \n + Magnetic storage (standard):\n + Enterprise and Standard editions: Must be an integer from 20 to 1024.\n + Web and Express editions: Must be an integer from 20 to 1024.",
1354
+ }).check(
1355
+ Schema.isPattern(new globalThis.RegExp("^[0-9]*$", "u")).annotate({
1356
+ expected: "a string matching the RegExp ^[0-9]*$",
1357
+ }),
1358
+ ),
1359
+ ),
1360
+ AllowMajorVersionUpgrade: Schema.optionalKey(
1361
+ Schema.Boolean.annotate({
1362
+ description:
1363
+ "A value that indicates whether major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible.\n Constraints: Major version upgrades must be allowed when specifying a value for the ``EngineVersion`` parameter that is a different major version than the DB instance's current version.",
1364
+ }),
1365
+ ),
1366
+ AssociatedRoles: Schema.optionalKey(ResourceInputItems),
1367
+ AutoMinorVersionUpgrade: Schema.optionalKey(
1368
+ Schema.Boolean.annotate({
1369
+ description:
1370
+ "A value that indicates whether minor engine upgrades are applied automatically to the DB instance during the maintenance window. By default, minor engine upgrades are applied automatically.",
1371
+ }),
1372
+ ),
1373
+ AutomaticBackupReplicationRegion: Schema.optionalKey(
1374
+ Schema.String.annotate({
1375
+ description: "The AWS-Region associated with the automated backup.",
1376
+ }),
1377
+ ),
1378
+ AutomaticBackupReplicationKmsKeyId: Schema.optionalKey(
1379
+ Schema.String.annotate({
1380
+ description:
1381
+ "The AWS KMS key identifier for encryption of the replicated automated backups. The KMS key ID is the Amazon Resource Name (ARN) for the KMS encryption key in the destination AWS-Region, for example, ``arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE``.",
1382
+ }),
1383
+ ),
1384
+ AutomaticBackupReplicationRetentionPeriod: Schema.optionalKey(
1385
+ Schema.Number.annotate({
1386
+ description:
1387
+ "The retention period for automated backups in a different AWS Region. Use this parameter to set a unique retention period that only applies to cross-Region automated backups. To enable automated backups in a different Region, specify a positive value for the ``AutomaticBackupReplicationRegion`` parameter. \n If not specified, this parameter defaults to the value of the ``BackupRetentionPeriod`` parameter. The maximum allowed value is 35.",
1388
+ })
1389
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1390
+ .check(
1391
+ Schema.isGreaterThanOrEqualTo(1).annotate({
1392
+ expected: "a value greater than or equal to 1",
1393
+ }),
1394
+ ),
1395
+ ),
1396
+ AvailabilityZone: Schema.optionalKey(
1397
+ Schema.String.annotate({
1398
+ description:
1399
+ "The Availability Zone (AZ) where the database will be created. For information on AWS-Regions and Availability Zones, see [Regions and Availability Zones](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).\n For Amazon Aurora, each Aurora DB cluster hosts copies of its storage in three separate Availability Zones. Specify one of these Availability Zones. Aurora automatically chooses an appropriate Availability Zone if you don't specify one.\n Default: A random, system-chosen Availability Zone in the endpoint's AWS-Region.\n Constraints:\n + The ``AvailabilityZone`` parameter can't be specified if the DB instance is a Multi-AZ deployment.\n + The specified Availability Zone must be in the same AWS-Region as the current endpoint.\n \n Example: ``us-east-1d``",
1400
+ }),
1401
+ ),
1402
+ BackupRetentionPeriod: Schema.optionalKey(
1403
+ Schema.Number.annotate({
1404
+ description:
1405
+ "The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.\n *Amazon Aurora* \n Not applicable. The retention period for automated backups is managed by the DB cluster.\n Default: 1\n Constraints:\n + Must be a value from 0 to 35\n + Can't be set to 0 if the DB instance is a source to read replicas",
1406
+ })
1407
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1408
+ .check(
1409
+ Schema.isGreaterThanOrEqualTo(0).annotate({
1410
+ expected: "a value greater than or equal to 0",
1411
+ }),
1412
+ ),
1413
+ ),
1414
+ BackupTarget: Schema.optionalKey(
1415
+ Schema.String.annotate({
1416
+ description:
1417
+ "The location for storing automated backups and manual snapshots.\n Valid Values:\n + ``local`` (Dedicated Local Zone)\n + ``outposts`` (AWS Outposts)\n + ``region`` (AWS-Region)\n \n Default: ``region``\n For more information, see [Working with Amazon RDS on Outposts](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html) in the *Amazon RDS User Guide*.",
1418
+ }),
1419
+ ),
1420
+ CACertificateIdentifier: Schema.optionalKey(
1421
+ Schema.String.annotate({
1422
+ description:
1423
+ "The identifier of the CA certificate for this DB instance.\n For more information, see [Using SSL/TLS to encrypt a connection to a DB instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) in the *Amazon RDS User Guide* and [Using SSL/TLS to encrypt a connection to a DB cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html) in the *Amazon Aurora User Guide*.",
1424
+ }),
1425
+ ),
1426
+ CertificateRotationRestart: Schema.optionalKey(
1427
+ Schema.Boolean.annotate({
1428
+ description:
1429
+ "Specifies whether the DB instance is restarted when you rotate your SSL/TLS certificate.\n By default, the DB instance is restarted when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted.\n Set this parameter only if you are *not* using SSL/TLS to connect to the DB instance.\n If you are using SSL/TLS to connect to the DB instance, follow the appropriate instructions for your DB engine to rotate your SSL/TLS certificate:\n + For more information about rotating your SSL/TLS certificate for RDS DB engines, see [Rotating Your SSL/TLS Certificate.](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL-certificate-rotation.html) in the *Amazon RDS User Guide.*\n + For more information about rotating your SSL/TLS certificate for Aurora DB engines, see [Rotating Your SSL/TLS Certificate](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL-certificate-rotation.html) in the *Amazon Aurora User Guide*.\n \n This setting doesn't apply to RDS Custom DB instances.",
1430
+ }),
1431
+ ),
1432
+ CharacterSetName: Schema.optionalKey(
1433
+ Schema.String.annotate({
1434
+ description:
1435
+ "For supported engines, indicates that the DB instance should be associated with the specified character set.\n *Amazon Aurora* \n Not applicable. The character set is managed by the DB cluster. For more information, see [AWS::RDS::DBCluster](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html).",
1436
+ }),
1437
+ ),
1438
+ CopyTagsToSnapshot: Schema.optionalKey(
1439
+ Schema.Boolean.annotate({
1440
+ description:
1441
+ "Specifies whether to copy tags from the DB instance to snapshots of the DB instance. By default, tags are not copied.\n This setting doesn't apply to Amazon Aurora DB instances. Copying tags to snapshots is managed by the DB cluster. Setting this value for an Aurora DB instance has no effect on the DB cluster setting.",
1442
+ }),
1443
+ ),
1444
+ CustomIAMInstanceProfile: Schema.optionalKey(
1445
+ Schema.String.annotate({
1446
+ description:
1447
+ "The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.\n This setting is required for RDS Custom.\n Constraints:\n + The profile must exist in your account.\n + The profile must have an IAM role that Amazon EC2 has permissions to assume.\n + The instance profile name and the associated IAM role name must start with the prefix ``AWSRDSCustom``.\n \n For the list of permissions required for the IAM role, see [Configure IAM and your VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-setup-orcl.html#custom-setup-orcl.iam-vpc) in the *Amazon RDS User Guide*.",
1448
+ }),
1449
+ ),
1450
+ DatabaseInsightsMode: Schema.optionalKey(
1451
+ Schema.String.annotate({
1452
+ description:
1453
+ "The mode of Database Insights to enable for the DB instance.\n Aurora DB instances inherit this value from the DB cluster, so you can't change this value.",
1454
+ }),
1455
+ ),
1456
+ DBClusterIdentifier: Schema.optionalKey(
1457
+ Schema.String.annotate({
1458
+ description:
1459
+ "The identifier of the DB cluster that this DB instance will belong to.\n This setting doesn't apply to RDS Custom DB instances.",
1460
+ }),
1461
+ ),
1462
+ DBClusterSnapshotIdentifier: Schema.optionalKey(
1463
+ Schema.String.annotate({
1464
+ description:
1465
+ "The identifier for the Multi-AZ DB cluster snapshot to restore from.\n For more information on Multi-AZ DB clusters, see [Multi-AZ DB cluster deployments](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html) in the *Amazon RDS User Guide*.\n Constraints:\n + Must match the identifier of an existing Multi-AZ DB cluster snapshot.\n + Can't be specified when ``DBSnapshotIdentifier`` is specified.\n + Must be specified when ``DBSnapshotIdentifier`` isn't specified.\n + If you are restoring from a shared manual Multi-AZ DB cluster snapshot, the ``DBClusterSnapshotIdentifier`` must be the ARN of the shared snapshot.\n + Can't be the identifier of an Aurora DB cluster snapshot.",
1466
+ }),
1467
+ ),
1468
+ DBInstanceClass: Schema.optionalKey(
1469
+ Schema.String.annotate({
1470
+ description:
1471
+ "The compute and memory capacity of the DB instance, for example ``db.m5.large``. Not all DB instance classes are available in all AWS-Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see [DB instance classes](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html) in the *Amazon RDS User Guide* or [Aurora DB instance classes](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.DBInstanceClass.html) in the *Amazon Aurora User Guide*.",
1472
+ }),
1473
+ ),
1474
+ DBInstanceIdentifier: Schema.optionalKey(
1475
+ Schema.String.annotate({
1476
+ description:
1477
+ "A name for the DB instance. If you specify a name, AWS CloudFormation converts it to lowercase. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the DB instance. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).\n For information about constraints that apply to DB instance identifiers, see [Naming constraints in Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Limits.html#RDS_Limits.Constraints) in the *Amazon RDS User Guide*.\n If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.",
1478
+ })
1479
+ .check(
1480
+ Schema.isMinLength(1).annotate({
1481
+ expected: "a value with a length of at least 1",
1482
+ }),
1483
+ )
1484
+ .check(
1485
+ Schema.isMaxCodePoints(63).annotate({
1486
+ expected: "a string with at most 63 code points",
1487
+ }),
1488
+ )
1489
+ .check(
1490
+ Schema.isPattern(
1491
+ new globalThis.RegExp("^$|^[a-zA-Z]{1}(?:-?[a-zA-Z0-9]){0,62}$", "u"),
1492
+ ).annotate({
1493
+ expected:
1494
+ "a string matching the RegExp ^$|^[a-zA-Z]{1}(?:-?[a-zA-Z0-9]){0,62}$",
1495
+ }),
1496
+ ),
1497
+ ),
1498
+ DBName: Schema.optionalKey(
1499
+ Schema.String.annotate({
1500
+ description:
1501
+ "The meaning of this parameter differs according to the database engine you use.\n If you specify the ``DBSnapshotIdentifier`` property, this property only applies to RDS for Oracle.\n *Amazon Aurora* \n Not applicable. The database name is managed by the DB cluster.\n *Db2* \n The name of the database to create when the DB instance is created. If this parameter isn't specified, no database is created in the DB instance.\n Constraints:\n + Must contain 1 to 64 letters or numbers.\n + Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).\n + Can't be a word reserved by the specified database engine.\n \n *MySQL* \n The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance.\n Constraints:\n + Must contain 1 to 64 letters or numbers.\n + Can't be a word reserved by the specified database engine\n \n *MariaDB* \n The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance.\n Constraints:\n + Must contain 1 to 64 letters or numbers.\n + Can't be a word reserved by the specified database engine\n \n *PostgreSQL* \n The name of the database to create when the DB instance is created. If this parameter is not specified, the default ``postgres`` database is created in the DB instance.\n Constraints:\n + Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).\n + Must contain 1 to 63 characters.\n + Can't be a word reserved by the specified database engine\n \n *Oracle* \n The Oracle System ID (SID) of the created DB instance. If you specify ``null``, the default value ``ORCL`` is used. You can't specify the string NULL, or any other reserved word, for ``DBName``. \n Default: ``ORCL``\n Constraints:\n + Can't be longer than 8 characters\n \n *SQL Server* \n Not applicable. Must be null.",
1502
+ }),
1503
+ ),
1504
+ DBParameterGroupName: Schema.optionalKey(
1505
+ Schema.String.annotate({
1506
+ description:
1507
+ 'The name of an existing DB parameter group or a reference to an [AWS::RDS::DBParameterGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbparametergroup.html) resource created in the template.\n To list all of the available DB parameter group names, use the following command:\n ``aws rds describe-db-parameter-groups --query "DBParameterGroups[].DBParameterGroupName" --output text`` \n If any of the data members of the referenced parameter group are changed during an update, the DB instance might need to be restarted, which causes some interruption. If the parameter group contains static parameters, whether they were changed or not, an update triggers a reboot.\n If you don\'t specify a value for ``DBParameterGroupName`` property, the default DB parameter group for the specified engine and engine version is used.',
1508
+ }),
1509
+ ),
1510
+ DBSecurityGroups: Schema.optionalKey(ResourceInputItems_1),
1511
+ DBSnapshotIdentifier: Schema.optionalKey(
1512
+ Schema.String.annotate({
1513
+ description:
1514
+ "The name or Amazon Resource Name (ARN) of the DB snapshot that's used to restore the DB instance. If you're restoring from a shared manual DB snapshot, you must specify the ARN of the snapshot.\n By specifying this property, you can create a DB instance from the specified DB snapshot. If the ``DBSnapshotIdentifier`` property is an empty string or the ``AWS::RDS::DBInstance`` declaration has no ``DBSnapshotIdentifier`` property, AWS CloudFormation creates a new database. If the property contains a value (other than an empty string), AWS CloudFormation creates a database from the specified snapshot. If a snapshot with the specified name doesn't exist, AWS CloudFormation can't create the database and it rolls back the stack.\n Some DB instance properties aren't valid when you restore from a snapshot, such as the ``MasterUsername`` and ``MasterUserPassword`` properties, and the point-in-time recovery properties ``RestoreTime`` and ``UseLatestRestorableTime``. For information about the properties that you can specify, see the [RestoreDBInstanceFromDBSnapshot](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_RestoreDBInstanceFromDBSnapshot.html) action in the *Amazon RDS API Reference*.\n After you restore a DB instance with a ``DBSnapshotIdentifier`` property, you must specify the same ``DBSnapshotIdentifier`` property for any future updates to the DB instance. When you specify this property for an update, the DB instance is not restored from the DB snapshot again, and the data in the database is not changed. However, if you don't specify the ``DBSnapshotIdentifier`` property, an empty DB instance is created, and the original DB instance is deleted. If you specify a property that is different from the previous snapshot restore property, a new DB instance is restored from the specified ``DBSnapshotIdentifier`` property, and the original DB instance is deleted.\n If you specify the ``DBSnapshotIdentifier`` property to restore a DB instance (as opposed to specifying it for DB instance updates), then don't specify the following properties:\n + ``CharacterSetName`` \n + ``DBClusterIdentifier`` \n + ``DBName`` \n + ``KmsKeyId`` \n + ``MasterUsername`` \n + ``MasterUserPassword`` \n + ``PromotionTier`` \n + ``SourceDBInstanceIdentifier`` \n + ``SourceRegion`` \n + ``StorageEncrypted`` (for an unencrypted snapshot)\n + ``Timezone`` \n \n *Amazon Aurora* \n Not applicable. Snapshot restore is managed by the DB cluster.",
1515
+ }),
1516
+ ),
1517
+ DBSubnetGroupName: Schema.optionalKey(
1518
+ Schema.String.annotate({
1519
+ description:
1520
+ "A DB subnet group to associate with the DB instance. If you update this value, the new subnet group must be a subnet group in a new VPC. \n If you don't specify a DB subnet group, RDS uses the default DB subnet group if one exists. If a default DB subnet group does not exist, and you don't specify a ``DBSubnetGroupName``, the DB instance fails to launch. \n For more information about using Amazon RDS in a VPC, see [Amazon VPC and Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html) in the *Amazon RDS User Guide*. \n This setting doesn't apply to Amazon Aurora DB instances. The DB subnet group is managed by the DB cluster. If specified, the setting must match the DB cluster setting.",
1521
+ }),
1522
+ ),
1523
+ DBSystemId: Schema.optionalKey(
1524
+ Schema.String.annotate({
1525
+ description:
1526
+ 'The Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files. In this context, the term "Oracle database instance" refers exclusively to the system global area (SGA) and Oracle background processes. If you don\'t specify a SID, the value defaults to ``RDSCDB``. The Oracle SID is also the name of your CDB.',
1527
+ }),
1528
+ ),
1529
+ DedicatedLogVolume: Schema.optionalKey(
1530
+ Schema.Boolean.annotate({
1531
+ description:
1532
+ "Indicates whether the DB instance has a dedicated log volume (DLV) enabled.",
1533
+ }),
1534
+ ),
1535
+ DeleteAutomatedBackups: Schema.optionalKey(
1536
+ Schema.Boolean.annotate({
1537
+ description:
1538
+ "A value that indicates whether to remove automated backups immediately after the DB instance is deleted. This parameter isn't case-sensitive. The default is to remove automated backups immediately after the DB instance is deleted.\n *Amazon Aurora* \n Not applicable. When you delete a DB cluster, all automated backups for that DB cluster are deleted and can't be recovered. Manual DB cluster snapshots of the DB cluster are not deleted.",
1539
+ }),
1540
+ ),
1541
+ DeletionProtection: Schema.optionalKey(
1542
+ Schema.Boolean.annotate({
1543
+ description:
1544
+ "Specifies whether the DB instance has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled. For more information, see [Deleting a DB Instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html).\n This setting doesn't apply to Amazon Aurora DB instances. You can enable or disable deletion protection for the DB cluster. For more information, see ``CreateDBCluster``. DB instances in a DB cluster can be deleted even when deletion protection is enabled for the DB cluster.",
1545
+ }),
1546
+ ),
1547
+ Domain: Schema.optionalKey(
1548
+ Schema.String.annotate({
1549
+ description:
1550
+ "The Active Directory directory ID to create the DB instance in. Currently, only Db2, MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances can be created in an Active Directory Domain.\n For more information, see [Kerberos Authentication](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html) in the *Amazon RDS User Guide*.",
1551
+ }),
1552
+ ),
1553
+ DomainAuthSecretArn: Schema.optionalKey(
1554
+ Schema.String.annotate({
1555
+ description:
1556
+ "The ARN for the Secrets Manager secret with the credentials for the user joining the domain.\n Example: ``arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456``",
1557
+ }),
1558
+ ),
1559
+ DomainDnsIps: Schema.optionalKey(ResourceInputItems_2),
1560
+ DomainFqdn: Schema.optionalKey(
1561
+ Schema.String.annotate({
1562
+ description:
1563
+ "The fully qualified domain name (FQDN) of an Active Directory domain.\n Constraints:\n + Can't be longer than 64 characters.\n \n Example: ``mymanagedADtest.mymanagedAD.mydomain``",
1564
+ }),
1565
+ ),
1566
+ DomainIAMRoleName: Schema.optionalKey(
1567
+ Schema.String.annotate({
1568
+ description:
1569
+ "The name of the IAM role to use when making API calls to the Directory Service.\n This setting doesn't apply to the following DB instances:\n + Amazon Aurora (The domain is managed by the DB cluster.)\n + RDS Custom",
1570
+ }),
1571
+ ),
1572
+ DomainOu: Schema.optionalKey(
1573
+ Schema.String.annotate({
1574
+ description:
1575
+ "The Active Directory organizational unit for your DB instance to join.\n Constraints:\n + Must be in the distinguished name format.\n + Can't be longer than 64 characters.\n \n Example: ``OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain``",
1576
+ }),
1577
+ ),
1578
+ EnableCloudwatchLogsExports: Schema.optionalKey(ResourceInputItems_3),
1579
+ EnableIAMDatabaseAuthentication: Schema.optionalKey(
1580
+ Schema.Boolean.annotate({
1581
+ description:
1582
+ "A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts. By default, mapping is disabled.\n This property is supported for RDS for MariaDB, RDS for MySQL, and RDS for PostgreSQL. For more information, see [IAM Database Authentication for MariaDB, MySQL, and PostgreSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html) in the *Amazon RDS User Guide.*\n *Amazon Aurora* \n Not applicable. Mapping AWS IAM accounts to database accounts is managed by the DB cluster.",
1583
+ }),
1584
+ ),
1585
+ EnablePerformanceInsights: Schema.optionalKey(
1586
+ Schema.Boolean.annotate({
1587
+ description:
1588
+ "Specifies whether to enable Performance Insights for the DB instance. For more information, see [Using Amazon Performance Insights](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) in the *Amazon RDS User Guide*.\n This setting doesn't apply to RDS Custom DB instances.",
1589
+ }),
1590
+ ),
1591
+ Engine: Schema.optionalKey(
1592
+ Schema.String.annotate({
1593
+ description:
1594
+ "The name of the database engine to use for this DB instance. Not every database engine is available in every AWS Region.\n This property is required when creating a DB instance.\n You can convert an Oracle database from the non-CDB architecture to the container database (CDB) architecture by updating the ``Engine`` value in your templates from ``oracle-ee`` to ``oracle-ee-cdb`` or from ``oracle-se2`` to ``oracle-se2-cdb``. Converting to the CDB architecture requires an interruption.\n Valid Values:\n + ``aurora-mysql`` (for Aurora MySQL DB instances)\n + ``aurora-postgresql`` (for Aurora PostgreSQL DB instances)\n + ``custom-oracle-ee`` (for RDS Custom for Oracle DB instances)\n + ``custom-oracle-ee-cdb`` (for RDS Custom for Oracle DB instances)\n + ``custom-sqlserver-ee`` (for RDS Custom for SQL Server DB instances)\n + ``custom-sqlserver-se`` (for RDS Custom for SQL Server DB instances)\n + ``custom-sqlserver-web`` (for RDS Custom for SQL Server DB instances)\n + ``db2-ae`` \n + ``db2-se`` \n + ``mariadb`` \n + ``mysql`` \n + ``oracle-ee`` \n + ``oracle-ee-cdb`` \n + ``oracle-se2`` \n + ``oracle-se2-cdb`` \n + ``postgres`` \n + ``sqlserver-ee`` \n + ``sqlserver-se`` \n + ``sqlserver-ex`` \n + ``sqlserver-web``",
1595
+ }),
1596
+ ),
1597
+ EngineLifecycleSupport: Schema.optionalKey(
1598
+ Schema.String.annotate({
1599
+ description:
1600
+ "The life cycle type for this DB instance.\n By default, this value is set to ``open-source-rds-extended-support``, which enrolls your DB instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to ``open-source-rds-extended-support-disabled``. In this case, creating the DB instance will fail if the DB major version is past its end of standard support date.\n This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed by the DB cluster.\n You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB instance past the end of standard support for that engine version. For more information, see [Amazon RDS Extended Support with Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html) in the *Amazon RDS User Guide*.\n Valid Values: ``open-source-rds-extended-support | open-source-rds-extended-support-disabled``\n Default: ``open-source-rds-extended-support``",
1601
+ }),
1602
+ ),
1603
+ EngineVersion: Schema.optionalKey(
1604
+ Schema.String.annotate({
1605
+ description:
1606
+ "The version number of the database engine to use.\n For a list of valid engine versions, use the ``DescribeDBEngineVersions`` action.\n The following are the database engines and links to information about the major and minor versions that are available with Amazon RDS. Not every database engine is available for every AWS Region.\n *Amazon Aurora* \n Not applicable. The version number of the database engine to be used by the DB instance is managed by the DB cluster.\n *Db2* \n See [Amazon RDS for Db2](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Db2.html#Db2.Concepts.VersionMgmt) in the *Amazon RDS User Guide.*\n *MariaDB* \n See [MariaDB on Amazon RDS Versions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MariaDB.html#MariaDB.Concepts.VersionMgmt) in the *Amazon RDS User Guide.*\n *Microsoft SQL Server* \n See [Microsoft SQL Server Versions on Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.VersionSupport) in the *Amazon RDS User Guide.*\n *MySQL* \n See [MySQL on Amazon RDS Versions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt) in the *Amazon RDS User Guide.*\n *Oracle* \n See [Oracle Database Engine Release Notes](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.Oracle.PatchComposition.html) in the *Amazon RDS User Guide.*\n *PostgreSQL* \n See [Supported PostgreSQL Database Versions](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts.General.DBVersions) in the *Amazon RDS User Guide.*",
1607
+ }),
1608
+ ),
1609
+ ManageMasterUserPassword: Schema.optionalKey(
1610
+ Schema.Boolean.annotate({
1611
+ description:
1612
+ "Specifies whether to manage the master user password with AWS Secrets Manager.\n For more information, see [Password management with Secrets Manager](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html) in the *Amazon RDS User Guide.*\n Constraints:\n + Can't manage the master user password with AWS Secrets Manager if ``MasterUserPassword`` is specified.",
1613
+ }),
1614
+ ),
1615
+ Iops: Schema.optionalKey(
1616
+ Schema.Number.annotate({
1617
+ description:
1618
+ "The number of I/O operations per second (IOPS) that the database provisions. The value must be equal to or greater than 1000. \n If you specify this property, you must follow the range of allowed ratios of your requested IOPS rate to the amount of storage that you allocate (IOPS to allocated storage). For example, you can provision an Oracle database instance with 1000 IOPS and 200 GiB of storage (a ratio of 5:1), or specify 2000 IOPS with 200 GiB of storage (a ratio of 10:1). For more information, see [Amazon RDS Provisioned IOPS Storage to Improve Performance](https://docs.aws.amazon.com/AmazonRDS/latest/DeveloperGuide/CHAP_Storage.html#USER_PIOPS) in the *Amazon RDS User Guide*.\n If you specify ``io1`` for the ``StorageType`` property, then you must also specify the ``Iops`` property.\n Constraints:\n + For RDS for Db2, MariaDB, MySQL, Oracle, and PostgreSQL - Must be a multiple between .5 and 50 of the storage amount for the DB instance.\n + For RDS for SQL Server - Must be a multiple between 1 and 50 of the storage amount for the DB instance.",
1619
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1620
+ ),
1621
+ KmsKeyId: Schema.optionalKey(
1622
+ Schema.String.annotate({
1623
+ description:
1624
+ "The ARN of the AWS KMS key that's used to encrypt the DB instance, such as ``arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef``. If you enable the StorageEncrypted property but don't specify this property, AWS CloudFormation uses the default KMS key. If you specify this property, you must set the StorageEncrypted property to true. \n If you specify the ``SourceDBInstanceIdentifier`` or ``SourceDbiResourceId`` property, don't specify this property. The value is inherited from the source DB instance, and if the DB instance is encrypted, the specified ``KmsKeyId`` property is used. However, if the source DB instance is in a different AWS Region, you must specify a KMS key ID.\n If you specify the ``SourceDBInstanceAutomatedBackupsArn`` property, don't specify this property. The value is inherited from the source DB instance automated backup, and if the automated backup is encrypted, the specified ``KmsKeyId`` property is used.\n If you create an encrypted read replica in a different AWS Region, then you must specify a KMS key for the destination AWS Region. KMS encryption keys are specific to the region that they're created in, and you can't use encryption keys from one region in another region.\n If you specify the ``DBSnapshotIdentifier`` property, don't specify this property. The ``StorageEncrypted`` property value is inherited from the snapshot. If the DB instance is encrypted, the specified ``KmsKeyId`` property is also inherited from the snapshot.\n If you specify ``DBSecurityGroups``, AWS CloudFormation ignores this property. To specify both a security group and this property, you must use a VPC security group. For more information about Amazon RDS and VPC, see [Using Amazon RDS with Amazon VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html) in the *Amazon RDS User Guide*.\n *Amazon Aurora* \n Not applicable. The KMS key identifier is managed by the DB cluster.",
1625
+ }),
1626
+ ),
1627
+ LicenseModel: Schema.optionalKey(
1628
+ Schema.String.annotate({
1629
+ description:
1630
+ "License model information for this DB instance.\n Valid Values:\n + Aurora MySQL - ``general-public-license``\n + Aurora PostgreSQL - ``postgresql-license``\n + RDS for Db2 - ``bring-your-own-license``. For more information about RDS for Db2 licensing, see [](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html) in the *Amazon RDS User Guide.*\n + RDS for MariaDB - ``general-public-license``\n + RDS for Microsoft SQL Server - ``license-included``\n + RDS for MySQL - ``general-public-license``\n + RDS for Oracle - ``bring-your-own-license`` or ``license-included``\n + RDS for PostgreSQL - ``postgresql-license``\n \n If you've specified ``DBSecurityGroups`` and then you update the license model, AWS CloudFormation replaces the underlying DB instance. This will incur some interruptions to database availability.",
1631
+ }),
1632
+ ),
1633
+ MasterUserAuthenticationType: Schema.optionalKey(
1634
+ Schema.String.annotate({
1635
+ description:
1636
+ "Specifies the authentication type for the master user. With IAM master user authentication, you can configure the master DB user with IAM database authentication when you create a DB instance.\n You can specify one of the following values:\n + ``password`` - Use standard database authentication with a password.\n + ``iam-db-auth`` - Use IAM database authentication for the master user.\n \n This option is only valid for RDS for MySQL, RDS for MariaDB, RDS for PostgreSQL, Aurora MySQL, and Aurora PostgreSQL engines.",
1637
+ }),
1638
+ ),
1639
+ MasterUsername: Schema.optionalKey(
1640
+ Schema.String.annotate({
1641
+ description:
1642
+ "The master user name for the DB instance.\n If you specify the ``SourceDBInstanceIdentifier`` or ``DBSnapshotIdentifier`` property, don't specify this property. The value is inherited from the source DB instance or snapshot.\n When migrating a self-managed Db2 database, we recommend that you use the same master username as your self-managed Db2 instance name.\n *Amazon Aurora* \n Not applicable. The name for the master user is managed by the DB cluster. \n *RDS for Db2* \n Constraints:\n + Must be 1 to 16 letters or numbers.\n + First character must be a letter.\n + Can't be a reserved word for the chosen database engine.\n \n *RDS for MariaDB* \n Constraints:\n + Must be 1 to 16 letters or numbers.\n + Can't be a reserved word for the chosen database engine.\n \n *RDS for Microsoft SQL Server* \n Constraints:\n + Must be 1 to 128 letters or numbers.\n + First character must be a letter.\n + Can't be a reserved word for the chosen database engine.\n \n *RDS for MySQL* \n Constraints:\n + Must be 1 to 16 letters or numbers.\n + First character must be a letter.\n + Can't be a reserved word for the chosen database engine.\n \n *RDS for Oracle* \n Constraints:\n + Must be 1 to 30 letters or numbers.\n + First character must be a letter.\n + Can't be a reserved word for the chosen database engine.\n \n *RDS for PostgreSQL* \n Constraints:\n + Must be 1 to 63 letters or numbers.\n + First character must be a letter.\n + Can't be a reserved word for the chosen database engine.",
1643
+ })
1644
+ .check(
1645
+ Schema.isMinLength(1).annotate({
1646
+ expected: "a value with a length of at least 1",
1647
+ }),
1648
+ )
1649
+ .check(
1650
+ Schema.isMaxCodePoints(128).annotate({
1651
+ expected: "a string with at most 128 code points",
1652
+ }),
1653
+ )
1654
+ .check(
1655
+ Schema.isPattern(
1656
+ new globalThis.RegExp("^[a-zA-Z][a-zA-Z0-9_]{0,127}$", "u"),
1657
+ ).annotate({
1658
+ expected:
1659
+ "a string matching the RegExp ^[a-zA-Z][a-zA-Z0-9_]{0,127}$",
1660
+ }),
1661
+ ),
1662
+ ),
1663
+ MasterUserPassword: Schema.optionalKey(
1664
+ Schema.String.annotate({
1665
+ description:
1666
+ 'The password for the master user. The password can include any printable ASCII character except "/", """, or "@".\n *Amazon Aurora* \n Not applicable. The password for the master user is managed by the DB cluster.\n *RDS for Db2* \n Must contain from 8 to 255 characters.\n *RDS for MariaDB* \n Constraints: Must contain from 8 to 41 characters.\n *RDS for Microsoft SQL Server* \n Constraints: Must contain from 8 to 128 characters.\n *RDS for MySQL* \n Constraints: Must contain from 8 to 41 characters.\n *RDS for Oracle* \n Constraints: Must contain from 8 to 30 characters.\n *RDS for PostgreSQL* \n Constraints: Must contain from 8 to 128 characters.',
1667
+ }),
1668
+ ),
1669
+ MasterUserSecret: Schema.optionalKey(MasterUserSecret_1),
1670
+ MaxAllocatedStorage: Schema.optionalKey(
1671
+ Schema.Number.annotate({
1672
+ description:
1673
+ "The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.\n For more information about this setting, including limitations that apply to it, see [Managing capacity automatically with Amazon RDS storage autoscaling](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.Autoscaling) in the *Amazon RDS User Guide*.\n This setting doesn't apply to the following DB instances:\n + Amazon Aurora (Storage is managed by the DB cluster.)\n + RDS Custom",
1674
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1675
+ ),
1676
+ MonitoringInterval: Schema.optionalKey(
1677
+ Schema.Number.annotate({
1678
+ description:
1679
+ "The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collection of Enhanced Monitoring metrics, specify ``0``.\n If ``MonitoringRoleArn`` is specified, then you must set ``MonitoringInterval`` to a value other than ``0``.\n This setting doesn't apply to RDS Custom DB instances.\n Valid Values: ``0 | 1 | 5 | 10 | 15 | 30 | 60``\n Default: ``0``",
1680
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1681
+ ),
1682
+ MonitoringRoleArn: Schema.optionalKey(
1683
+ Schema.String.annotate({
1684
+ description:
1685
+ "The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, ``arn:aws:iam:123456789012:role/emaccess``. For information on creating a monitoring role, see [Setting Up and Enabling Enhanced Monitoring](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling) in the *Amazon RDS User Guide*.\n If ``MonitoringInterval`` is set to a value other than ``0``, then you must supply a ``MonitoringRoleArn`` value.\n This setting doesn't apply to RDS Custom DB instances.",
1686
+ }),
1687
+ ),
1688
+ MultiAZ: Schema.optionalKey(
1689
+ Schema.Boolean.annotate({
1690
+ description:
1691
+ "Specifies whether the DB instance is a Multi-AZ deployment. You can't set the ``AvailabilityZone`` parameter if the DB instance is a Multi-AZ deployment.\n This setting doesn't apply to Amazon Aurora because the DB instance Availability Zones (AZs) are managed by the DB cluster.",
1692
+ }),
1693
+ ),
1694
+ NcharCharacterSetName: Schema.optionalKey(
1695
+ Schema.String.annotate({
1696
+ description:
1697
+ "The name of the NCHAR character set for the Oracle DB instance.\n This setting doesn't apply to RDS Custom DB instances.",
1698
+ }),
1699
+ ),
1700
+ NetworkType: Schema.optionalKey(
1701
+ Schema.String.annotate({
1702
+ description:
1703
+ "The network type of the DB instance.\n Valid values:\n + ``IPV4`` \n + ``DUAL`` \n \n The network type is determined by the ``DBSubnetGroup`` specified for the DB instance. A ``DBSubnetGroup`` can support only the IPv4 protocol or the IPv4 and IPv6 protocols (``DUAL``).\n For more information, see [Working with a DB instance in a VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html) in the *Amazon RDS User Guide.*",
1704
+ }),
1705
+ ),
1706
+ OptionGroupName: Schema.optionalKey(
1707
+ Schema.String.annotate({
1708
+ description:
1709
+ "Indicates that the DB instance should be associated with the specified option group.\n Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group. Also, that option group can't be removed from a DB instance once it is associated with a DB instance.",
1710
+ }),
1711
+ ),
1712
+ PerformanceInsightsKMSKeyId: Schema.optionalKey(
1713
+ Schema.String.annotate({
1714
+ description:
1715
+ "The AWS KMS key identifier for encryption of Performance Insights data.\n The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.\n If you do not specify a value for ``PerformanceInsightsKMSKeyId``, then Amazon RDS uses your default KMS key. There is a default KMS key for your AWS account. Your AWS account has a different default KMS key for each AWS Region.\n *Update behavior:* Once Performance Insights is enabled with a KMS key, you cannot change to a different physical KMS key without replacing the DB instance. However, the following updates do not require replacement:\n + Enabling or disabling Performance Insights using the ``EnablePerformanceInsights`` property\n + Changing between different identifier formats (key ARN, key ID, alias ARN, alias name) of the same physical KMS key\n + Removing the ``PerformanceInsightsKMSKeyId`` property from your template\n \n *Drift behavior:* If you specify ``PerformanceInsightsKMSKeyId`` while ``EnablePerformanceInsights`` is set to ``false``, CloudFormation will report drift. This occurs because the RDS API does not allow setting a KMS key when Performance Insights is disabled. CloudFormation ignores the ``PerformanceInsightsKMSKeyId`` value during instance creation to avoid API errors, resulting in a mismatch between your template and the actual instance configuration.\n To avoid drift, omit both ``EnablePerformanceInsights`` and ``PerformanceInsightsKMSKeyId`` during initial instance creation, then set both properties together when you're ready to enable Performance Insights.\n For information about enabling Performance Insights, see [EnablePerformanceInsights](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-enableperformanceinsights).",
1716
+ }),
1717
+ ),
1718
+ PerformanceInsightsRetentionPeriod: Schema.optionalKey(
1719
+ Schema.Number.annotate({
1720
+ description:
1721
+ "The number of days to retain Performance Insights data. When creating a DB instance without enabling Performance Insights, you can't specify the parameter ``PerformanceInsightsRetentionPeriod``.\n This setting doesn't apply to RDS Custom DB instances.\n Valid Values:\n + ``7`` \n + *month* * 31, where *month* is a number of months from 1-23. Examples: ``93`` (3 months * 31), ``341`` (11 months * 31), ``589`` (19 months * 31)\n + ``731`` \n \n Default: ``7`` days\n If you specify a retention period that isn't valid, such as ``94``, Amazon RDS returns an error.",
1722
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1723
+ ),
1724
+ Port: Schema.optionalKey(
1725
+ Schema.String.annotate({
1726
+ description:
1727
+ "The port number on which the database accepts connections.\n This setting doesn't apply to Aurora DB instances. The port number is managed by the cluster.\n Valid Values: ``1150-65535``\n Default:\n + RDS for Db2 - ``50000``\n + RDS for MariaDB - ``3306``\n + RDS for Microsoft SQL Server - ``1433``\n + RDS for MySQL - ``3306``\n + RDS for Oracle - ``1521``\n + RDS for PostgreSQL - ``5432``\n \n Constraints:\n + For RDS for Microsoft SQL Server, the value can't be ``1234``, ``1434``, ``3260``, ``3343``, ``3389``, ``47001``, or ``49152-49156``.",
1728
+ }).check(
1729
+ Schema.isPattern(new globalThis.RegExp("^\\d*$", "u")).annotate({
1730
+ expected: "a string matching the RegExp ^\\d*$",
1731
+ }),
1732
+ ),
1733
+ ),
1734
+ PreferredBackupWindow: Schema.optionalKey(
1735
+ Schema.String.annotate({
1736
+ description:
1737
+ "The daily time range during which automated backups are created if automated backups are enabled, using the ``BackupRetentionPeriod`` parameter. For more information, see [Backup Window](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow) in the *Amazon RDS User Guide.*\n Constraints:\n + Must be in the format ``hh24:mi-hh24:mi``.\n + Must be in Universal Coordinated Time (UTC).\n + Must not conflict with the preferred maintenance window.\n + Must be at least 30 minutes.\n \n *Amazon Aurora* \n Not applicable. The daily time range for creating automated backups is managed by the DB cluster.",
1738
+ }),
1739
+ ),
1740
+ PreferredMaintenanceWindow: Schema.optionalKey(
1741
+ Schema.String.annotate({
1742
+ description:
1743
+ "The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).\n Format: ``ddd:hh24:mi-ddd:hh24:mi``\n The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week. To see the time blocks available, see [Maintaining a DB instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow) in the *Amazon RDS User Guide.*\n This property applies when AWS CloudFormation initially creates the DB instance. If you use AWS CloudFormation to update the DB instance, those updates are applied immediately.\n Constraints: Minimum 30-minute window.",
1744
+ }),
1745
+ ),
1746
+ ProcessorFeatures: Schema.optionalKey(ResourceInputItems_4),
1747
+ PromotionTier: Schema.optionalKey(
1748
+ Schema.Number.annotate({
1749
+ description:
1750
+ "The order of priority in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see [Fault Tolerance for an Aurora DB Cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Aurora.Managing.FaultTolerance) in the *Amazon Aurora User Guide*.\n This setting doesn't apply to RDS Custom DB instances.\n Default: ``1``\n Valid Values: ``0 - 15``",
1751
+ })
1752
+ .check(Schema.isInt().annotate({ expected: "an integer" }))
1753
+ .check(
1754
+ Schema.isGreaterThanOrEqualTo(0).annotate({
1755
+ expected: "a value greater than or equal to 0",
1756
+ }),
1757
+ ),
1758
+ ),
1759
+ PubliclyAccessible: Schema.optionalKey(
1760
+ Schema.Boolean.annotate({
1761
+ description:
1762
+ "Indicates whether the DB instance is an internet-facing instance. If you specify true, AWS CloudFormation creates an instance with a publicly resolvable DNS name, which resolves to a public IP address. If you specify false, AWS CloudFormation creates an internal instance with a DNS name that resolves to a private IP address. \n The default behavior value depends on your VPC setup and the database subnet group. For more information, see the ``PubliclyAccessible`` parameter in the [CreateDBInstance](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html) in the *Amazon RDS API Reference*.",
1763
+ }),
1764
+ ),
1765
+ ReplicaMode: Schema.optionalKey(
1766
+ Schema.String.annotate({
1767
+ description:
1768
+ "The open mode of an Oracle read replica. For more information, see [Working with Oracle Read Replicas for Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html) in the *Amazon RDS User Guide*.\n This setting is only supported in RDS for Oracle.\n Default: ``open-read-only``\n Valid Values: ``open-read-only`` or ``mounted``",
1769
+ }),
1770
+ ),
1771
+ RestoreTime: Schema.optionalKey(
1772
+ Schema.String.annotate({
1773
+ description:
1774
+ "The date and time to restore from. This parameter applies to point-in-time recovery. For more information, see [Restoring a DB instance to a specified time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in the *Amazon RDS User Guide*.\n Constraints:\n + Must be a time in Universal Coordinated Time (UTC) format.\n + Must be before the latest restorable time for the DB instance.\n + Can't be specified if the ``UseLatestRestorableTime`` parameter is enabled.\n \n Example: ``2009-09-07T23:45:00Z``",
1775
+ format: "date-time",
1776
+ }),
1777
+ ),
1778
+ SourceDBClusterIdentifier: Schema.optionalKey(
1779
+ Schema.String.annotate({
1780
+ description:
1781
+ "The identifier of the Multi-AZ DB cluster that will act as the source for the read replica. Each DB cluster can have up to 15 read replicas.\n Constraints:\n + Must be the identifier of an existing Multi-AZ DB cluster.\n + Can't be specified if the ``SourceDBInstanceIdentifier`` parameter is also specified.\n + The specified DB cluster must have automatic backups enabled, that is, its backup retention period must be greater than 0.\n + The source DB cluster must be in the same AWS-Region as the read replica. Cross-Region replication isn't supported.",
1782
+ }),
1783
+ ),
1784
+ SourceDbiResourceId: Schema.optionalKey(
1785
+ Schema.String.annotate({
1786
+ description:
1787
+ "The resource ID of the source DB instance from which to restore.",
1788
+ }),
1789
+ ),
1790
+ SourceDBInstanceAutomatedBackupsArn: Schema.optionalKey(
1791
+ Schema.String.annotate({
1792
+ description:
1793
+ "The Amazon Resource Name (ARN) of the replicated automated backups from which to restore, for example, ``arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE``.\n This setting doesn't apply to RDS Custom.",
1794
+ }),
1795
+ ),
1796
+ SourceDBInstanceIdentifier: Schema.optionalKey(
1797
+ Schema.String.annotate({
1798
+ description:
1799
+ "If you want to create a read replica DB instance, specify the ID of the source DB instance. Each DB instance can have a limited number of read replicas. For more information, see [Working with Read Replicas](https://docs.aws.amazon.com/AmazonRDS/latest/DeveloperGuide/USER_ReadRepl.html) in the *Amazon RDS User Guide*.\n For information about constraints that apply to DB instance identifiers, see [Naming constraints in Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Limits.html#RDS_Limits.Constraints) in the *Amazon RDS User Guide*.\n The ``SourceDBInstanceIdentifier`` property determines whether a DB instance is a read replica. If you remove the ``SourceDBInstanceIdentifier`` property from your template and then update your stack, AWS CloudFormation promotes the read replica to a standalone DB instance.\n If you specify the ``UseLatestRestorableTime`` or ``RestoreTime`` properties in conjunction with the ``SourceDBInstanceIdentifier`` property, RDS restores the DB instance to the requested point in time, thereby creating a new DB instance.\n + If you specify a source DB instance that uses VPC security groups, we recommend that you specify the ``VPCSecurityGroups`` property. If you don't specify the property, the read replica inherits the value of the ``VPCSecurityGroups`` property from the source DB when you create the replica. However, if you update the stack, AWS CloudFormation reverts the replica's ``VPCSecurityGroups`` property to the default value because it's not defined in the stack's template. This change might cause unexpected issues.\n + Read replicas don't support deletion policies. AWS CloudFormation ignores any deletion policy that's associated with a read replica.\n + If you specify ``SourceDBInstanceIdentifier``, don't specify the ``DBSnapshotIdentifier`` property. You can't create a read replica from a snapshot.\n + Don't set the ``BackupRetentionPeriod``, ``DBName``, ``MasterUsername``, ``MasterUserPassword``, and ``PreferredBackupWindow`` properties. The database attributes are inherited from the source DB instance, and backups are disabled for read replicas.\n + If the source DB instance is in a different region than the read replica, specify the source region in ``SourceRegion``, and specify an ARN for a valid DB instance in ``SourceDBInstanceIdentifier``. For more information, see [Constructing a Amazon RDS Amazon Resource Name (ARN)](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN) in the *Amazon RDS User Guide*.\n + For DB instances in Amazon Aurora clusters, don't specify this property. Amazon RDS automatically assigns writer and reader DB instances.",
1800
+ }),
1801
+ ),
1802
+ SourceRegion: Schema.optionalKey(
1803
+ Schema.String.annotate({
1804
+ description:
1805
+ "The ID of the region that contains the source DB instance for the read replica.",
1806
+ }),
1807
+ ),
1808
+ StorageEncrypted: Schema.optionalKey(
1809
+ Schema.Boolean.annotate({
1810
+ description:
1811
+ "A value that indicates whether the DB instance is encrypted. By default, it isn't encrypted.\n If you specify the ``KmsKeyId`` property, then you must enable encryption.\n If you specify the ``SourceDBInstanceIdentifier`` or ``SourceDbiResourceId`` property, don't specify this property. The value is inherited from the source DB instance, and if the DB instance is encrypted, the specified ``KmsKeyId`` property is used.\n If you specify the ``SourceDBInstanceAutomatedBackupsArn`` property, don't specify this property. The value is inherited from the source DB instance automated backup. \n If you specify ``DBSnapshotIdentifier`` property, don't specify this property. The value is inherited from the snapshot.\n *Amazon Aurora* \n Not applicable. The encryption for DB instances is managed by the DB cluster.",
1812
+ }),
1813
+ ),
1814
+ StorageType: Schema.optionalKey(
1815
+ Schema.String.annotate({
1816
+ description:
1817
+ "The storage type to associate with the DB instance.\n If you specify ``io1``, ``io2``, or ``gp3``, you must also include a value for the ``Iops`` parameter.\n This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.\n Valid Values: ``gp2 | gp3 | io1 | io2 | standard``\n Default: ``io1``, if the ``Iops`` parameter is specified. Otherwise, ``gp3``.",
1818
+ }),
1819
+ ),
1820
+ StorageThroughput: Schema.optionalKey(
1821
+ Schema.Number.annotate({
1822
+ description:
1823
+ "Specifies the storage throughput value, in mebibyte per second (MiBps), for the DB instance. This setting applies only to the ``gp3`` storage type. \n This setting doesn't apply to RDS Custom or Amazon Aurora.",
1824
+ }).check(Schema.isInt().annotate({ expected: "an integer" })),
1825
+ ),
1826
+ Tags: Schema.optionalKey(ResourceInputItems_5),
1827
+ TdeCredentialArn: Schema.optionalKey(
1828
+ Schema.String.annotate({ description: "" }),
1829
+ ),
1830
+ TdeCredentialPassword: Schema.optionalKey(
1831
+ Schema.String.annotate({ description: "" }),
1832
+ ),
1833
+ Timezone: Schema.optionalKey(
1834
+ Schema.String.annotate({
1835
+ description:
1836
+ "The time zone of the DB instance. The time zone parameter is currently supported only by [RDS for Db2](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-time-zone) and [RDS for SQL Server](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.TimeZone).",
1837
+ }),
1838
+ ),
1839
+ UseDefaultProcessorFeatures: Schema.optionalKey(
1840
+ Schema.Boolean.annotate({
1841
+ description:
1842
+ "Specifies whether the DB instance class of the DB instance uses its default processor features.\n This setting doesn't apply to RDS Custom DB instances.",
1843
+ }),
1844
+ ),
1845
+ UseLatestRestorableTime: Schema.optionalKey(
1846
+ Schema.Boolean.annotate({
1847
+ description:
1848
+ "Specifies whether the DB instance is restored from the latest backup time. By default, the DB instance isn't restored from the latest backup time. This parameter applies to point-in-time recovery. For more information, see [Restoring a DB instance to a specified time](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html) in the in the *Amazon RDS User Guide*.\n Constraints:\n + Can't be specified if the ``RestoreTime`` parameter is provided.",
1849
+ }),
1850
+ ),
1851
+ VPCSecurityGroups: Schema.optionalKey(
1852
+ Schema.Array(Schema.String)
1853
+ .annotate({
1854
+ description:
1855
+ "A list of the VPC security group IDs to assign to the DB instance. The list can include both the physical IDs of existing VPC security groups and references to [AWS::EC2::SecurityGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html) resources created in the template.\n If you plan to update the resource, don't specify VPC security groups in a shared VPC.\n If you set ``VPCSecurityGroups``, you must not set [DBSecurityGroups](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbsecuritygroups), and vice versa.\n You can migrate a DB instance in your stack from an RDS DB security group to a VPC security group, but keep the following in mind:\n + You can't revert to using an RDS security group after you establish a VPC security group membership.\n + When you migrate your DB instance to VPC security groups, if your stack update rolls back because the DB instance update fails or because an update fails in another AWS CloudFormation resource, the rollback fails because it can't revert to an RDS security group.\n + To use the properties that are available when you use a VPC security group, you must recreate the DB instance. If you don't, AWS CloudFormation submits only the property values that are listed in the [DBSecurityGroups](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbsecuritygroups) property.\n \n To avoid this situation, migrate your DB instance to using VPC security groups only when that is the only change in your stack template. \n *Amazon Aurora* \n Not applicable. The associated list of EC2 VPC security groups is managed by the DB cluster. If specified, the setting must match the DB cluster setting.",
1856
+ })
1857
+ .check(
1858
+ Schema.isUnique().annotate({ expected: "an array with unique items" }),
1859
+ ),
1860
+ ),
1861
+ ApplyImmediately: Schema.optionalKey(
1862
+ Schema.Boolean.annotate({
1863
+ description:
1864
+ "Specifies whether changes to the DB instance and any pending modifications are applied immediately, regardless of the ``PreferredMaintenanceWindow`` setting. If set to ``false``, changes are applied during the next maintenance window. Until RDS applies the changes, the DB instance remains in a drift state. As a result, the configuration doesn't fully reflect the requested modifications and temporarily diverges from the intended state.\n In addition to the settings described in [Modifying a DB instance](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Modifying.html), this property also determines whether the DB instance reboots when a static parameter is modified in the associated DB parameter group.\n Default: ``true``",
1865
+ }),
1866
+ ),
1867
+ AdditionalStorageVolumes: Schema.optionalKey(ResourceInputItems_6),
1868
+ });
1869
+
1870
+ /**
1871
+ * The AWSDBInstanceRelationshipIssues array lists inputs that can use several outputs
1872
+ * from one source type. Each input retains its provider value until a reviewed
1873
+ * mapping chooses an output.
1874
+ */
1875
+ export const AWSDBInstanceRelationshipIssues = [
1876
+ {
1877
+ propertyPath: ["KmsKeyId"],
1878
+ sourceType: "AWS::KMS::Key",
1879
+ sourceProperties: [["KeyId"], ["Arn"]],
1880
+ message:
1881
+ "Choose one of the permitted source properties before using a resource reference",
1882
+ },
1883
+ {
1884
+ propertyPath: ["PerformanceInsightsKMSKeyId"],
1885
+ sourceType: "AWS::KMS::Key",
1886
+ sourceProperties: [["Arn"], ["KeyId"]],
1887
+ message:
1888
+ "Choose one of the permitted source properties before using a resource reference",
1889
+ },
1890
+ ];
1891
+
1892
+ export const AWSDBInstanceResourceTypeSchema = Schema.Struct({
1893
+ provider: Schema.Literal("aws"),
1894
+ service: Schema.Literal("rds"),
1895
+ resource: Schema.Literal("dbinstance"),
1896
+ });
1897
+
1898
+ /**
1899
+ * The AWSDBInstanceResource class retains its owning stack across declarations.
1900
+ * Applied output properties are ordinary values maintained by the lifecycle.
1901
+ */
1902
+ export class AWSDBInstanceResource<
1903
+ Props = AWSDBInstanceProps,
1904
+ > extends ResourceEntity<{
1905
+ readonly provider: "aws";
1906
+ readonly service: "rds";
1907
+ readonly resource: "dbinstance";
1908
+ }> {
1909
+ constructor(
1910
+ key: ResourceKey,
1911
+ readonly props: Props,
1912
+ private readonly binding?: ResourceOutputBinding,
1913
+ ) {
1914
+ super({
1915
+ key,
1916
+ resourceType: {
1917
+ provider: "aws",
1918
+ service: "rds",
1919
+ resource: "dbinstance",
1920
+ },
1921
+ });
1922
+ }
1923
+
1924
+ /**
1925
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1926
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1927
+ */
1928
+ get AutomaticRestartTime(): Required<AWSDBInstanceOutputs>["AutomaticRestartTime"] {
1929
+ const value: Required<AWSDBInstanceOutputs>["AutomaticRestartTime"] =
1930
+ ResourceOutputBinding.value(
1931
+ this.binding,
1932
+ this.key,
1933
+ "AutomaticRestartTime",
1934
+ Schema.requiredKey(
1935
+ AWSDBInstanceOutputsSchema.fields.AutomaticRestartTime,
1936
+ ),
1937
+ );
1938
+ return value;
1939
+ }
1940
+
1941
+ /**
1942
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1943
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1944
+ */
1945
+ get CertificateDetails(): Required<AWSDBInstanceOutputs>["CertificateDetails"] {
1946
+ const value: Required<AWSDBInstanceOutputs>["CertificateDetails"] =
1947
+ ResourceOutputBinding.value(
1948
+ this.binding,
1949
+ this.key,
1950
+ "CertificateDetails",
1951
+ Schema.requiredKey(
1952
+ AWSDBInstanceOutputsSchema.fields.CertificateDetails,
1953
+ ),
1954
+ );
1955
+ return value;
1956
+ }
1957
+
1958
+ /**
1959
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1960
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1961
+ */
1962
+ get Endpoint(): Required<AWSDBInstanceOutputs>["Endpoint"] {
1963
+ const value: Required<AWSDBInstanceOutputs>["Endpoint"] =
1964
+ ResourceOutputBinding.value(
1965
+ this.binding,
1966
+ this.key,
1967
+ "Endpoint",
1968
+ Schema.requiredKey(AWSDBInstanceOutputsSchema.fields.Endpoint),
1969
+ );
1970
+ return value;
1971
+ }
1972
+
1973
+ /**
1974
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1975
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1976
+ */
1977
+ get DbiResourceId(): Required<AWSDBInstanceOutputs>["DbiResourceId"] {
1978
+ const value: Required<AWSDBInstanceOutputs>["DbiResourceId"] =
1979
+ ResourceOutputBinding.value(
1980
+ this.binding,
1981
+ this.key,
1982
+ "DbiResourceId",
1983
+ Schema.requiredKey(AWSDBInstanceOutputsSchema.fields.DbiResourceId),
1984
+ );
1985
+ return value;
1986
+ }
1987
+
1988
+ /**
1989
+ * Successful lifecycle writes update this value for declarations owned by the stack.
1990
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
1991
+ */
1992
+ get DBInstanceArn(): Required<AWSDBInstanceOutputs>["DBInstanceArn"] {
1993
+ const value: Required<AWSDBInstanceOutputs>["DBInstanceArn"] =
1994
+ ResourceOutputBinding.value(
1995
+ this.binding,
1996
+ this.key,
1997
+ "DBInstanceArn",
1998
+ Schema.requiredKey(AWSDBInstanceOutputsSchema.fields.DBInstanceArn),
1999
+ );
2000
+ return value;
2001
+ }
2002
+
2003
+ /**
2004
+ * Successful lifecycle writes update this value for declarations owned by the stack.
2005
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
2006
+ */
2007
+ get DBInstanceStatus(): Required<AWSDBInstanceOutputs>["DBInstanceStatus"] {
2008
+ const value: Required<AWSDBInstanceOutputs>["DBInstanceStatus"] =
2009
+ ResourceOutputBinding.value(
2010
+ this.binding,
2011
+ this.key,
2012
+ "DBInstanceStatus",
2013
+ Schema.requiredKey(AWSDBInstanceOutputsSchema.fields.DBInstanceStatus),
2014
+ );
2015
+ return value;
2016
+ }
2017
+
2018
+ /**
2019
+ * Successful lifecycle writes update this value for declarations owned by the stack.
2020
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
2021
+ */
2022
+ get InstanceCreateTime(): Required<AWSDBInstanceOutputs>["InstanceCreateTime"] {
2023
+ const value: Required<AWSDBInstanceOutputs>["InstanceCreateTime"] =
2024
+ ResourceOutputBinding.value(
2025
+ this.binding,
2026
+ this.key,
2027
+ "InstanceCreateTime",
2028
+ Schema.requiredKey(
2029
+ AWSDBInstanceOutputsSchema.fields.InstanceCreateTime,
2030
+ ),
2031
+ );
2032
+ return value;
2033
+ }
2034
+
2035
+ /**
2036
+ * Successful lifecycle writes update this value for declarations owned by the stack.
2037
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
2038
+ */
2039
+ get IsStorageConfigUpgradeAvailable(): Required<AWSDBInstanceOutputs>["IsStorageConfigUpgradeAvailable"] {
2040
+ const value: Required<AWSDBInstanceOutputs>["IsStorageConfigUpgradeAvailable"] =
2041
+ ResourceOutputBinding.value(
2042
+ this.binding,
2043
+ this.key,
2044
+ "IsStorageConfigUpgradeAvailable",
2045
+ Schema.requiredKey(
2046
+ AWSDBInstanceOutputsSchema.fields.IsStorageConfigUpgradeAvailable,
2047
+ ),
2048
+ );
2049
+ return value;
2050
+ }
2051
+
2052
+ /**
2053
+ * Successful lifecycle writes update this value for declarations owned by the stack.
2054
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
2055
+ */
2056
+ get LatestRestorableTime(): Required<AWSDBInstanceOutputs>["LatestRestorableTime"] {
2057
+ const value: Required<AWSDBInstanceOutputs>["LatestRestorableTime"] =
2058
+ ResourceOutputBinding.value(
2059
+ this.binding,
2060
+ this.key,
2061
+ "LatestRestorableTime",
2062
+ Schema.requiredKey(
2063
+ AWSDBInstanceOutputsSchema.fields.LatestRestorableTime,
2064
+ ),
2065
+ );
2066
+ return value;
2067
+ }
2068
+
2069
+ /**
2070
+ * Successful lifecycle writes update this value for declarations owned by the stack.
2071
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
2072
+ */
2073
+ get ListenerEndpoint(): Required<AWSDBInstanceOutputs>["ListenerEndpoint"] {
2074
+ const value: Required<AWSDBInstanceOutputs>["ListenerEndpoint"] =
2075
+ ResourceOutputBinding.value(
2076
+ this.binding,
2077
+ this.key,
2078
+ "ListenerEndpoint",
2079
+ Schema.requiredKey(AWSDBInstanceOutputsSchema.fields.ListenerEndpoint),
2080
+ );
2081
+ return value;
2082
+ }
2083
+
2084
+ /**
2085
+ * Successful lifecycle writes update this value for declarations owned by the stack.
2086
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
2087
+ */
2088
+ get PercentProgress(): Required<AWSDBInstanceOutputs>["PercentProgress"] {
2089
+ const value: Required<AWSDBInstanceOutputs>["PercentProgress"] =
2090
+ ResourceOutputBinding.value(
2091
+ this.binding,
2092
+ this.key,
2093
+ "PercentProgress",
2094
+ Schema.requiredKey(AWSDBInstanceOutputsSchema.fields.PercentProgress),
2095
+ );
2096
+ return value;
2097
+ }
2098
+
2099
+ /**
2100
+ * Successful lifecycle writes update this value for declarations owned by the stack.
2101
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
2102
+ */
2103
+ get ReadReplicaDBClusterIdentifiers(): Required<AWSDBInstanceOutputs>["ReadReplicaDBClusterIdentifiers"] {
2104
+ const value: Required<AWSDBInstanceOutputs>["ReadReplicaDBClusterIdentifiers"] =
2105
+ ResourceOutputBinding.value(
2106
+ this.binding,
2107
+ this.key,
2108
+ "ReadReplicaDBClusterIdentifiers",
2109
+ Schema.requiredKey(
2110
+ AWSDBInstanceOutputsSchema.fields.ReadReplicaDBClusterIdentifiers,
2111
+ ),
2112
+ );
2113
+ return value;
2114
+ }
2115
+
2116
+ /**
2117
+ * Successful lifecycle writes update this value for declarations owned by the stack.
2118
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
2119
+ */
2120
+ get ReadReplicaDBInstanceIdentifiers(): Required<AWSDBInstanceOutputs>["ReadReplicaDBInstanceIdentifiers"] {
2121
+ const value: Required<AWSDBInstanceOutputs>["ReadReplicaDBInstanceIdentifiers"] =
2122
+ ResourceOutputBinding.value(
2123
+ this.binding,
2124
+ this.key,
2125
+ "ReadReplicaDBInstanceIdentifiers",
2126
+ Schema.requiredKey(
2127
+ AWSDBInstanceOutputsSchema.fields.ReadReplicaDBInstanceIdentifiers,
2128
+ ),
2129
+ );
2130
+ return value;
2131
+ }
2132
+
2133
+ /**
2134
+ * Successful lifecycle writes update this value for declarations owned by the stack.
2135
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
2136
+ */
2137
+ get ResumeFullAutomationModeTime(): Required<AWSDBInstanceOutputs>["ResumeFullAutomationModeTime"] {
2138
+ const value: Required<AWSDBInstanceOutputs>["ResumeFullAutomationModeTime"] =
2139
+ ResourceOutputBinding.value(
2140
+ this.binding,
2141
+ this.key,
2142
+ "ResumeFullAutomationModeTime",
2143
+ Schema.requiredKey(
2144
+ AWSDBInstanceOutputsSchema.fields.ResumeFullAutomationModeTime,
2145
+ ),
2146
+ );
2147
+ return value;
2148
+ }
2149
+
2150
+ /**
2151
+ * Successful lifecycle writes update this value for declarations owned by the stack.
2152
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
2153
+ */
2154
+ get SecondaryAvailabilityZone(): Required<AWSDBInstanceOutputs>["SecondaryAvailabilityZone"] {
2155
+ const value: Required<AWSDBInstanceOutputs>["SecondaryAvailabilityZone"] =
2156
+ ResourceOutputBinding.value(
2157
+ this.binding,
2158
+ this.key,
2159
+ "SecondaryAvailabilityZone",
2160
+ Schema.requiredKey(
2161
+ AWSDBInstanceOutputsSchema.fields.SecondaryAvailabilityZone,
2162
+ ),
2163
+ );
2164
+ return value;
2165
+ }
2166
+
2167
+ /**
2168
+ * Successful lifecycle writes update this value for declarations owned by the stack.
2169
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
2170
+ */
2171
+ get StatusInfos(): Required<AWSDBInstanceOutputs>["StatusInfos"] {
2172
+ const value: Required<AWSDBInstanceOutputs>["StatusInfos"] =
2173
+ ResourceOutputBinding.value(
2174
+ this.binding,
2175
+ this.key,
2176
+ "StatusInfos",
2177
+ Schema.requiredKey(AWSDBInstanceOutputsSchema.fields.StatusInfos),
2178
+ );
2179
+ return value;
2180
+ }
2181
+
2182
+ /**
2183
+ * Successful lifecycle writes update this value for declarations owned by the stack.
2184
+ * Reading an unavailable value throws ResourceOutputResolutionMissing.
2185
+ */
2186
+ get DBInstanceIdentifier(): Required<AWSDBInstanceOutputs>["DBInstanceIdentifier"] {
2187
+ const value: Required<AWSDBInstanceOutputs>["DBInstanceIdentifier"] =
2188
+ ResourceOutputBinding.value(
2189
+ this.binding,
2190
+ this.key,
2191
+ "DBInstanceIdentifier",
2192
+ Schema.requiredKey(
2193
+ AWSDBInstanceOutputsSchema.fields.DBInstanceIdentifier,
2194
+ ),
2195
+ );
2196
+ return value;
2197
+ }
2198
+ }
2199
+
2200
+ /**
2201
+ * Callers must validate properties before constructing the declaration.
2202
+ * Compatible resources can depend on it before apply supplies provider values.
2203
+ * Reading applied outputs requires a binding to the owning stack.
2204
+ */
2205
+ export function createAWSDBInstanceDeclaration<Props>(
2206
+ key: ResourceKey,
2207
+ props: Props,
2208
+ binding?: ResourceOutputBinding,
2209
+ ): AWSDBInstanceResource<Props> {
2210
+ const resource: AWSDBInstanceResource<Props> =
2211
+ new AWSDBInstanceResource<Props>(key, props, binding);
2212
+
2213
+ return resource;
2214
+ }
2215
+
2216
+ /**
2217
+ * The AWSDBInstance resource factory registers a validated declaration in the
2218
+ * stack graph. Its outputs become available after apply saves the resource.
2219
+ */
2220
+ export const AWSDBInstance = Effect.fn("AWSDBInstance")(function* (input: {
2221
+ logicalId: string;
2222
+ props: AWSDBInstanceProps;
2223
+ }) {
2224
+ const graph = yield* ResourceGraphBuilder;
2225
+
2226
+ const key: ResourceKey = { logicalId: input.logicalId };
2227
+
2228
+ const declaration = yield* graph.resource(key);
2229
+
2230
+ const props = yield* Schema.decodeEffect(AWSDBInstancePropsSchema)(
2231
+ input.props,
2232
+ );
2233
+
2234
+ yield* declaration.registerEntity(AWSDBInstanceResourceTypeSchema, {
2235
+ propsSchema: AWSDBInstancePropsSchema,
2236
+ requestSchema: AWSDBInstanceRequestSchema,
2237
+ outputsSchema: AWSDBInstanceOutputsSchema,
2238
+ props,
2239
+ });
2240
+
2241
+ const resource: AWSDBInstanceResource = createAWSDBInstanceDeclaration(
2242
+ key,
2243
+ props,
2244
+ declaration.outputs,
2245
+ );
2246
+
2247
+ return resource;
2248
+ });