public class JsonPolicyWriter extends Object
Constructor and Description |
---|
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 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.Copyright © 2016. All rights reserved.