class BlockPublicAccess
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.S3.BlockPublicAccess |
Java | software.amazon.awscdk.services.s3.BlockPublicAccess |
Python | aws_cdk.aws_s3.BlockPublicAccess |
TypeScript (source) | @aws-cdk/aws-s3 » BlockPublicAccess |
Example
const bucket = new s3.Bucket(this, 'MyBlockedBucket', {
blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL,
});
Initializer
new BlockPublicAccess(options: BlockPublicAccessOptions)
Parameters
- options
Block
Public Access Options
Properties
Name | Type | Description |
---|---|---|
block | boolean | |
block | boolean | |
ignore | boolean | |
restrict | boolean | |
static BLOCK_ACLS | Block | |
static BLOCK_ALL | Block |
blockPublicAcls?
Type:
boolean
(optional)
blockPublicPolicy?
Type:
boolean
(optional)
ignorePublicAcls?
Type:
boolean
(optional)
restrictPublicBuckets?
Type:
boolean
(optional)
static BLOCK_ACLS
Type:
Block
static BLOCK_ALL
Type:
Block