-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The db-cluster-parameter-group does not refresh parameters #665
The db-cluster-parameter-group does not refresh parameters #665
Conversation
Add string array workaround for marker in AWS RDS API call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor feedback on the PR
String[] marker = {null}; | ||
do { | ||
DescribeDbClusterParametersResponse parametersResponse = client.describeDBClusterParameters( | ||
r -> r.dbClusterParameterGroupName(getName()).marker(marker[0]) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The marker should be a String, it doesn't need to be an array.
The sdk has non-lamba builders that can get you past the issue of not being able to update a String value within a lambda
String[] marker = {null}; | |
do { | |
DescribeDbClusterParametersResponse parametersResponse = client.describeDBClusterParameters( | |
r -> r.dbClusterParameterGroupName(getName()).marker(marker[0]) | |
); | |
String marker = {null}; | |
do { | |
DescribeDbClusterParametersResponse parametersResponse = client.describeDBClusterParameters( DescribeDbClusterParametersRequest.builder().dbClusterParameterGroupName(getName()).marker(marker).build()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
Fixes: #672
Description
This pull request addresses the need to retrieve DB cluster parameters in a paginated manner within the doRefresh() method of the DbClusterParameterGroupResource class.
Changes
Paginated retrieval in doRefresh() method.
Use of an Array String to override lambda's final constraint.