Skip to content

Commit be2c7d0

Browse files
authored
feat(rds): scheduling modifications in the next scheduled maintenance window (#33448)
### Issue # (if applicable) Closes #33447. ### Reason for this change CloudFormation has added `applyImmediately` feature to RDS instances. This allows to schedule modifications in the next scheduled maintenance window. https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ModifyInstance.ApplyImmediately.html ### Description of changes Added `applyImmediately` prop to `DatabaseInstanceNewProps` and `ClusterInstanceOptions`. To schedule modifications, specify `applyImmediately: false` in instance props. ```ts new rds.DatabaseInstance(this, 'Instance', { // ... applyImmediately: false, }); new rds.DatabaseCluster(this, 'Cluster', { // ... writer: rds.ClusterInstance.serverlessV2('writer', { applyImmediately: false, }), }); ``` Note: Currently, `applyImmediately` is not supported in the cluster configurations. ### Describe any new or updated permissions being added Nothing ### Description of how you validated changes Unit tests and integ tests. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent f9b28b9 commit be2c7d0

23 files changed

+3193
-1
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-applyimmediately.js.snapshot/cdk.out

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-applyimmediately.js.snapshot/cluster-applyimmediately-integ.assets.json

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)