-
Notifications
You must be signed in to change notification settings - Fork 48
Handle void response in injectCredentialsAndInvoke #338
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
Conversation
src/main/java/software/amazon/cloudformation/proxy/AmazonWebServicesClientProxy.java
Show resolved
Hide resolved
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.
lgtm, just a couple of comments
src/main/java/software/amazon/cloudformation/proxy/AmazonWebServicesClientProxy.java
Show resolved
Hide resolved
src/main/java/software/amazon/cloudformation/proxy/AmazonWebServicesClientProxy.java
Show resolved
Hide resolved
src/main/java/software/amazon/cloudformation/proxy/AmazonWebServicesClientProxy.java
Show resolved
Hide resolved
src/main/java/software/amazon/cloudformation/proxy/AmazonWebServicesClientProxy.java
Show resolved
Hide resolved
} | ||
|
||
public <RequestT extends AmazonWebServiceRequest> void injectCredentialsAndInvoke(final RequestT request, | ||
final Consumer<RequestT> requestFunction) { |
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.
we should also just make a void function for the v2 proxy as well? if we are tackling the v1 here?
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.
I think v2 functions are required to return a result and are never void. @ammokhov can you please confirm?
cloudformation-cli-java-plugin made a change to overload injectCredentialsAndInvoke, this breaks our unit test. aws-cloudformation/cloudformation-cli-java-plugin#338 Update the pom.xml for the repository url, as http was no longer supported. Updtae the aws-cloudformation-rpdk-java-plugin version to [2.0.0, 3.0.0)
…19) * Update the unit test following changes in injectCredentialsAndInvoke cloudformation-cli-java-plugin made a change to overload injectCredentialsAndInvoke, this breaks our unit test. aws-cloudformation/cloudformation-cli-java-plugin#338 Update the pom.xml for the repository url, as http was no longer supported. Update the aws-cloudformation-rpdk-java-plugin version to [2.0.0, 3.0.0)
Issue #, if available:
#176
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.