Interface IamPolicyWriter

All Superinterfaces:
ToCopyableBuilder<IamPolicyWriter.Builder,IamPolicyWriter>
All Known Implementing Classes:
DefaultIamPolicyWriter

The IamPolicyReader converts an IamPolicy into JSON.

Usage Examples

Create a new IAM identity policy that allows a role to write items to an Amazon DynamoDB table. Create and use a writer that pretty-prints the IAM policy JSON:
See Also:
  • Method Details

    • create

      static IamPolicyWriter create()
      Create a new IamPolicyReader.

      This method is inexpensive, allowing the creation of writers wherever they are needed.

    • builder

      static IamPolicyWriter.Builder builder()
      Create a IamPolicyWriter.Builder for an IamPolicyWriter.
    • writeToString

      String writeToString(IamPolicy policy)
      Write a policy to a String.

      This does not validate that the provided policy is correct or valid.

    • writeToBytes

      byte[] writeToBytes(IamPolicy policy)
      Write a policy to a byte array.

      This does not validate that the provided policy is correct or valid.