Search code examples
javaamazon-web-servicessdkversion

How do I get Java AWS SDK v2 version from code? (ie 2.20.34)


Same question as here except for this question is for the v2 sdk.

I have my Java code running in some managed environment that provides AWS SDK. I found out that some methods on classes are unavailable in that environment compared to documentation for recent version of AWS SDK.

Is there a way to programmatically find out version of AWS SDK that is available? Is there any information class that provides such information?

I've tried looking in the Github repo as well as the API docs but can't seem to find it.


Solution

  • This might be want you are looking for:

    software.amazon.awssdk.core.util.VersionInfo