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