public class JsonPolicyWriter
extends java.lang.Object
Constructor and Description |
---|
JsonPolicyWriter()
Constructs a new instance of JSONPolicyWriter.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
writePolicyToString(Policy policy)
Converts the specified AWS policy object to a JSON string, suitable for
passing to an AWS service.
|
public JsonPolicyWriter()
public java.lang.String writePolicyToString(Policy policy)
policy
- The AWS policy object to convert to a JSON string.java.lang.IllegalArgumentException
- If the specified policy is null or
invalid and cannot be serialized to a JSON string.