-
Notifications
You must be signed in to change notification settings - Fork 863
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
Add waiter for Athena QueryExecutionFinished #2626
Conversation
Implements aws/aws-sdk#80 and aws/aws-sdk-java#1646 for the aws-java-sdk-v2.
This patch would help us clean up a lot of boilerplate code on our side. Would be nice to see this get merged soon |
Kudos, SonarCloud Quality Gate passed! |
Hi @steven-aerts thank you for the contribution but we cannot merge it unfortunately. Waiter models are owned and maintained by the service teams. The models must be provided upstream so that all the SDKs can make use of them. I'll ping the Athena team again to ask for an update. |
Hi @steven-aerts, @drissamri, in case you are not aware, you can use the |
I'm unable to find any examples of using Waiters directly, do you have any tips on the implementation below? Do I need to use the
|
@drissamri you can find the sample code in other service waiter classes such as If an exception is thrown from the operation and is not matched with any acceptors, the request will fail. https://github.com/aws/aws-sdk-java-v2/blob/master/core/sdk-core/src/main/java/software/amazon/awssdk/core/internal/waiters/WaiterExecutor.java#L83, so you don't have to add an
For Hope this helps. Please let me know if you have further questions. |
Implements aws/aws-sdk#80 and aws/aws-sdk-java#1646 for the aws-java-sdk-v2.
Motivation and Context
It makes it a lot easier to query athena from the sdk. It does this by implementing a highly requested feature for boto and java v1 sdk.
This PR works and is submitted, I am however wondering if this is the correct place to do so. As the files under
codegen-resources
seem to come from an (internal?) repository I cannot find back. As these files seem to be shared somehow with other language bindings for AWS.Let me know if PR's like this have to be submitted in any other way, then I will do accordingly. I think it would be cool if this could be submitted and made available to other language bindings too and close aws/aws-sdk#80 for all of them.
Description
Testing
Screenshots (if appropriate)
Types of changes
Checklist
mvn install
succeedsLicense