AWS JAVA SDK V2 migration, I found the package software.amazon.awssdk.core.auth.policy.Policy in test-utils with scope as test, how to use this in runtime? #4299
-
AWS JAVA SDK V2 migration, I found the package software.amazon.awssdk.core.auth.policy.Policy in test-utils, how to use this in runtime? `
Thanks in Advance. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
I believe you're looking for the IAM Policy Builder in v2. |
Beta Was this translation helpful? Give feedback.
-
Thank you @debora-ito. |
Beta Was this translation helpful? Give feedback.
-
Hi @debora-ito , Is there any good example to build the ApacheHttpClient.Builder with the above values? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
I believe you're looking for the IAM Policy Builder in v2.
We do have some examples of how to create policies in our V2 Developer Guide here:
https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/feature-iam-policy-builder.html
Note that the test-utils software.amazon.awssdk.core.auth.policy.Policy package is a separate thing, used for tests only.
Answer: