Class JsonPolicyReader
- java.lang.Object
-
- software.amazon.awssdk.core.auth.policy.internal.JsonPolicyReader
-
public class JsonPolicyReader extends Object
Generate an AWS policy object by parsing the given JSON string.
-
-
Constructor Summary
Constructors Constructor Description JsonPolicyReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicycreatePolicyFromJsonString(String jsonString)Converts the specified JSON string to an AWS policy object.
-
-
-
Method Detail
-
createPolicyFromJsonString
public Policy createPolicyFromJsonString(String jsonString)
Converts the specified JSON string to an AWS policy object. For more information see, @see http://docs.aws.amazon.com/AWSSdkDocsJava/latest /DeveloperGuide/java-dg-access-control.html- Parameters:
jsonString- the specified JSON string representation of this AWS access control policy.- Returns:
- An AWS policy object.
- Throws:
IllegalArgumentException- If the specified JSON string is null or invalid and cannot be converted to an AWS policy object.
-
-