Class BlockPublicAccess
Inheritance
System.Object
BlockPublicAccess
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.AWS.S3.dll
Syntax (csharp)
public class BlockPublicAccess : DeputyBase
Syntax (vb)
Public Class BlockPublicAccess
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
var bucket = new Bucket(this, "MyBlockedBucket", new BucketProps {
BlockPublicAccess = BlockPublicAccess.BLOCK_ALL
});
Synopsis
Constructors
BlockPublicAccess(IBlockPublicAccessOptions) | |
BlockPublicAccess(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
BlockPublicAccess(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
BLOCK_ACLS | |
BLOCK_ALL | |
BlockPublicAcls | |
BlockPublicPolicy | |
IgnorePublicAcls | |
RestrictPublicBuckets |
Constructors
BlockPublicAccess(IBlockPublicAccessOptions)
public BlockPublicAccess(IBlockPublicAccessOptions options)
Parameters
- options IBlockPublicAccessOptions
BlockPublicAccess(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected BlockPublicAccess(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
BlockPublicAccess(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected BlockPublicAccess(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
BLOCK_ACLS
BLOCK_ALL
BlockPublicAcls
public virtual Nullable<bool> BlockPublicAcls { get; set; }
Property Value
System.Nullable<System.Boolean>
BlockPublicPolicy
public virtual Nullable<bool> BlockPublicPolicy { get; set; }
Property Value
System.Nullable<System.Boolean>
IgnorePublicAcls
public virtual Nullable<bool> IgnorePublicAcls { get; set; }
Property Value
System.Nullable<System.Boolean>
RestrictPublicBuckets
public virtual Nullable<bool> RestrictPublicBuckets { get; set; }
Property Value
System.Nullable<System.Boolean>