Skip to content
Advertisement

Where did the package software.amazon.awssdk.core.auth.policy go in the AWS Java SDK V2?

I found this piece of documentation for a way to build policies for accessing S3 Buckets (among other things) programmatically, but I can’t find seem to find it. (Based on the file path, I would’ve guessed that it would be in either auth or sdk-core).

Has this been deprecated and moved somewhere else? There seems to be a similar (possibly equivalent) version in the V1 version of the SDK but would rather use V2 if possible.

Link to documentation: https://sdk.amazonaws.com/java/api/2.0.0/software/amazon/awssdk/core/auth/policy/package-summary.html

Advertisement

Answer

They are still there, in the AWS SDK:

https://github.com/aws/aws-sdk-java-v2/tree/master/test/test-utils/src/main/java/software/amazon/awssdk/core/auth/policy

But they are probably test classes (look at the full path). So, they may never meant to be a part of the public API. The Javadocs were “fixed” between 2.1.3 and 2.1.4.

If you are looking for those classes, they reside in this articact. Add it to your project, and you’ll get them.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement