Interface IAddToResourcePolicyResult
Result of calling addToResourcePolicy.
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IAddToResourcePolicyResult
Syntax (vb)
Public Interface IAddToResourcePolicyResult
Remarks
ExampleMetadata: infused
Examples
var bucket = Bucket.FromBucketName(this, "existingBucket", "amzn-s3-demo-bucket");
// No policy statement will be added to the resource
var result = bucket.AddToResourcePolicy(
new PolicyStatement(new PolicyStatementProps {
Actions = new [] { "s3:GetObject" },
Resources = new [] { bucket.ArnForObjects("file.txt") },
Principals = new [] { new AccountRootPrincipal() }
}));
Synopsis
Properties
PolicyDependable | Dependable which allows depending on the policy change being applied. |
StatementAdded | Whether the statement was added. |
Properties
PolicyDependable
Dependable which allows depending on the policy change being applied.
virtual IDependable PolicyDependable { get; }
Property Value
Constructs.IDependable
Remarks
Default: - If statementAdded
is true, the resource object itself.
Otherwise, no dependable.
StatementAdded
Whether the statement was added.
bool StatementAdded { get; }
Property Value
System.Boolean