Interface IamPolicyWriter
-
- All Superinterfaces:
ToCopyableBuilder<IamPolicyWriter.Builder,IamPolicyWriter>
- All Known Implementing Classes:
DefaultIamPolicyWriter
@ThreadSafe public interface IamPolicyWriter extends ToCopyableBuilder<IamPolicyWriter.Builder,IamPolicyWriter>
TheIamPolicyReaderconverts anIamPolicyinto 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:
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIamPolicyWriter.Builder
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static IamPolicyWriter.Builderbuilder()Create aIamPolicyWriter.Builderfor anIamPolicyWriter.static IamPolicyWritercreate()Create a newIamPolicyReader.byte[]writeToBytes(IamPolicy policy)Write a policy to abytearray.StringwriteToString(IamPolicy policy)Write a policy to aString.-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy, toBuilder
-
-
-
-
Method Detail
-
create
static IamPolicyWriter create()
Create a newIamPolicyReader.This method is inexpensive, allowing the creation of writers wherever they are needed.
-
builder
static IamPolicyWriter.Builder builder()
Create aIamPolicyWriter.Builderfor anIamPolicyWriter.
-
writeToString
String writeToString(IamPolicy policy)
Write a policy to aString.This does not validate that the provided policy is correct or valid.
-
writeToBytes
byte[] writeToBytes(IamPolicy policy)
Write a policy to abytearray.This does not validate that the provided policy is correct or valid.
-
-