public class JsonPolicyWriter extends Object
Constructor | Description |
---|---|
JsonPolicyWriter() |
Constructs a new instance of JSONPolicyWriter.
|
Modifier and Type | Method | 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.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.