Interface AddToResourcePolicyResult

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
AddToResourcePolicyResult.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:57.221Z") @Stability(Stable) public interface AddToResourcePolicyResult extends software.amazon.jsii.JsiiSerializable
Result of calling addToResourcePolicy.

Example:

 IBucket bucket = Bucket.fromBucketName(this, "existingBucket", "bucket-name");
 // No policy statement will be added to the resource
 AddToResourcePolicyResult result = bucket.addToResourcePolicy(PolicyStatement.Builder.create()
         .actions(List.of("s3:GetObject"))
         .resources(List.of(bucket.arnForObjects("file.txt")))
         .principals(List.of(new AccountRootPrincipal()))
         .build());