Skip to content

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

Discussion options

You must be logged in to vote

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:

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@github-actions
Comment options

Answer selected by github-actions
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@debora-ito
Comment options

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