feat(rds): add standalone resource creation for ParameterGroup#37165
feat(rds): add standalone resource creation for ParameterGroup#37165mergify[bot] merged 10 commits intomainfrom
Conversation
|
|
||||||||||||||
|
|
||||||||||||||
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Merge Queue Status
This pull request spent 43 minutes 53 seconds in the queue, including 43 minutes 30 seconds running CI. Required conditions to merge
|
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Comments on closed issues and PRs are hard for our team to see. |
Issue # (if applicable)
Closes #9741
Reason for this change
Since #8959, ParameterGroup uses a lazy creation pattern where CloudFormation resources are only generated when the parameter group is bound to an instance or cluster (either explicitly via
bindToInstance()/bindToCluster()or implicitly when passed to aDatabaseInstance/DatabaseCluster).This change adds an explicit static methods
ParameterGroup.forInstance()/ParameterGroup.forCluster()that allows users to create standalone parameter groups while maintaining the lazy instantiation pattern and backward compatibility.Description of changes
Added two static factory methods to the ParameterGroup class similar to SingletonPolicy.forRole():
ParameterGroup.forInstance(): Creates a standalone instance parameter group (AWS::RDS::DBParameterGroup)ParameterGroup.forCluster(): Creates a standalone cluster parameter group (AWS::RDS::DBClusterParameterGroup)Describe any new or updated permissions being added
N/A
Description of how you validated changes
Validated with new unit-tests and integ test
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license