Class BucketPolicyProps
Inheritance
System.Object
BucketPolicyProps
Implements
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.AWS.S3.dll
Syntax (csharp)
public class BucketPolicyProps : Object, IBucketPolicyProps
Syntax (vb)
Public Class BucketPolicyProps
Inherits Object
Implements 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
Constructors
BucketPolicyProps() |
Properties
Bucket | The Amazon S3 bucket that the policy applies to. |
RemovalPolicy | Policy to apply when the policy is removed from this stack. |
Constructors
BucketPolicyProps()
public BucketPolicyProps()
Properties
Bucket
The Amazon S3 bucket that the policy applies to.
public IBucket Bucket { get; set; }
Property Value
RemovalPolicy
Policy to apply when the policy is removed from this stack.
public Nullable<RemovalPolicy> RemovalPolicy { get; set; }
Property Value
System.Nullable<RemovalPolicy>
Remarks
Default: - RemovalPolicy.DESTROY.