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());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAddToResourcePolicyResult
static final class
An implementation forAddToResourcePolicyResult
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default IDependable
Dependable which allows depending on the policy change being applied.Whether the statement was added.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getStatementAdded
Whether the statement was added. -
getPolicyDependable
Dependable which allows depending on the policy change being applied.Default: - If `statementAdded` is true, the resource object itself. Otherwise, no dependable.
-
builder
- Returns:
- a
AddToResourcePolicyResult.Builder
ofAddToResourcePolicyResult
-