Interface IBucketPolicyProps
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.AWS.S3.dll
Syntax (csharp)
public interface IBucketPolicyProps
Syntax (vb)
Public Interface IBucketPolicyProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;
using Amazon.CDK;
Bucket bucket;
var bucketPolicyProps = new BucketPolicyProps {
Bucket = bucket,
// the properties below are optional
RemovalPolicy = RemovalPolicy.DESTROY
};
Synopsis
Properties
Bucket | The Amazon S3 bucket that the policy applies to. |
RemovalPolicy | Policy to apply when the policy is removed from this stack. |
Properties
Bucket
RemovalPolicy
Policy to apply when the policy is removed from this stack.
virtual Nullable<RemovalPolicy> RemovalPolicy { get; }
Property Value
System.Nullable<RemovalPolicy>
Remarks
Default: - RemovalPolicy.DESTROY.