简体   繁体   English

AWS Java SDK V2中的package software.amazon.awssdk.core.auth.policy go在哪里?

[英]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.我找到了这篇文档,了解如何以编程方式构建访问 S3 存储桶(以及其他内容)的策略,但我似乎找不到它。 (Based on the file path, I would've guessed that it would be in either auth or sdk-core). (根据文件路径,我猜它会在 auth 或 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. SDK 的 V1 版本中似乎有一个类似(可能等效)的版本,但如果可能的话宁愿使用 V2。

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

They are still there, in the AWS SDK:它们仍然存在,在 AWS SDK 中:

https://github.com/aws/aws-sdk-java-v2/tree/master/test/test-utils/src/main/java/software/amazon/awssdk/core/auth/policy 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 .因此,它们可能永远不会成为公共 API 的一部分。Javadocs 在2.1.32.1.4之间“固定”。

If you are looking for those classes, they reside in this articact .如果您正在寻找这些课程,它们位于这个 articact中。 Add it to your project, and you'll get them.将它添加到您的项目中,您就会得到它们。

The Github repo for the V2 AWS Java SDK has a feature request for official support: https://github.com/aws/aws-sdk-java-v2/issues/39 V2 AWS Java SDK 的 Github repo 有官方支持的功能请求: https://github.com/aws/aws-sdk-java-v2/issues/39

Please +1 and/or comment if you are missing this feature!如果您缺少此功能,请 +1 和/或发表评论!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM