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