Class BlockPublicAccessOptions
Inheritance
System.Object
BlockPublicAccessOptions
Implements
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.AWS.S3.dll
Syntax (csharp)
public class BlockPublicAccessOptions : Object, IBlockPublicAccessOptions
Syntax (vb)
Public Class BlockPublicAccessOptions
Inherits Object
Implements IBlockPublicAccessOptions
Remarks
ExampleMetadata: infused
Examples
var bucket = new Bucket(this, "MyBlockedBucket", new BucketProps {
BlockPublicAccess = new BlockPublicAccess(new BlockPublicAccessOptions { BlockPublicPolicy = true })
});
Synopsis
Constructors
BlockPublicAccessOptions() |
Properties
BlockPublicAcls | Whether to block public ACLs. |
BlockPublicPolicy | Whether to block public policy. |
IgnorePublicAcls | Whether to ignore public ACLs. |
RestrictPublicBuckets | Whether to restrict public access. |
Constructors
BlockPublicAccessOptions()
public BlockPublicAccessOptions()
Properties
BlockPublicAcls
Whether to block public ACLs.
public Nullable<bool> BlockPublicAcls { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
BlockPublicPolicy
Whether to block public policy.
public Nullable<bool> BlockPublicPolicy { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
IgnorePublicAcls
Whether to ignore public ACLs.
public Nullable<bool> IgnorePublicAcls { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
RestrictPublicBuckets
Whether to restrict public access.
public Nullable<bool> RestrictPublicBuckets { get; set; }
Property Value
System.Nullable<System.Boolean>