Class AddToResourcePolicyResult
Result of calling addToResourcePolicy.
Inheritance
System.Object
AddToResourcePolicyResult
Implements
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AddToResourcePolicyResult : Object, IAddToResourcePolicyResult
Syntax (vb)
Public Class AddToResourcePolicyResult
Inherits Object
Implements 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
Constructors
AddToResourcePolicyResult() |
Properties
PolicyDependable | Dependable which allows depending on the policy change being applied. |
StatementAdded | Whether the statement was added. |
Constructors
AddToResourcePolicyResult()
public AddToResourcePolicyResult()
Properties
PolicyDependable
Dependable which allows depending on the policy change being applied.
public IDependable PolicyDependable { get; set; }
Property Value
Constructs.IDependable
Remarks
Default: - If statementAdded
is true, the resource object itself.
Otherwise, no dependable.
StatementAdded
Whether the statement was added.
public bool StatementAdded { get; set; }
Property Value
System.Boolean