Skip to content

Commit

Permalink
feat(rds): scheduling modifications in the next scheduled maintenance…
Browse files Browse the repository at this point in the history
… 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*
  • Loading branch information
Tietew authored Feb 21, 2025
1 parent f9b28b9 commit be2c7d0
Show file tree
Hide file tree
Showing 23 changed files with 3,193 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit be2c7d0

Please sign in to comment.