Class JsonPolicyReader


  • public class JsonPolicyReader
    extends Object
    Generate an AWS policy object by parsing the given JSON string.
    • Constructor Detail

      • JsonPolicyReader

        public JsonPolicyReader()
    • 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.