Skip to content

Is it okay to use aws javasdk v2 and v1 together? #3977

Discussion options

You must be logged in to vote

Yes, you can use Java SDK v1 and v2 side-by-side.

We have a page in the Developer Guide that shows how to set the dependencies in the pom file:
https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/migration-side-by-side.html

Many example codes released on the Internet are based on the SDK V1, but there are many difficulties in developing based on aws official documents for the V2, and I don't think it's possible to develop it with the V2, is the designed to be used with V1?

If you are using a service client in v1 (like S3 or Dynamo DB), all clients should have an equivalent in v2, you should be able to call any service API from v1 or v2.
If you are using a high-level library …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by debora-ito
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants