@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.714Z") @Stability(value=Stable) public interface AddToResourcePolicyResult extends software.amazon.jsii.JsiiSerializable
Example:
// Example automatically generated from non-compiling source. May contain errors.
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());
| Modifier and Type | Interface and Description |
|---|---|
static class |
AddToResourcePolicyResult.Builder
A builder for
AddToResourcePolicyResult |
static class |
AddToResourcePolicyResult.Jsii$Proxy
An implementation for
AddToResourcePolicyResult |
| Modifier and Type | Method and Description |
|---|---|
static AddToResourcePolicyResult.Builder |
builder() |
default software.constructs.IDependable |
getPolicyDependable()
Dependable which allows depending on the policy change being applied.
|
Boolean |
getStatementAdded()
Whether the statement was added.
|
@Stability(value=Stable) @NotNull Boolean getStatementAdded()
@Stability(value=Stable) @Nullable default software.constructs.IDependable getPolicyDependable()
Default: - If `statementAdded` is true, the resource object itself. Otherwise, no dependable.
@Stability(value=Stable) static AddToResourcePolicyResult.Builder builder()
AddToResourcePolicyResult.Builder of AddToResourcePolicyResultCopyright © 2022. All rights reserved.