interface BlockPublicAccessOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.S3.BlockPublicAccessOptions |
Java | software.amazon.awscdk.services.s3.BlockPublicAccessOptions |
Python | aws_cdk.aws_s3.BlockPublicAccessOptions |
TypeScript (source) | @aws-cdk/aws-s3 » BlockPublicAccessOptions |
Example
const bucket = new s3.Bucket(this, 'MyBlockedBucket', {
blockPublicAccess: new s3.BlockPublicAccess({ blockPublicPolicy: true }),
});
Properties
Name | Type | Description |
---|---|---|
block | boolean | Whether to block public ACLs. |
block | boolean | Whether to block public policy. |
ignore | boolean | Whether to ignore public ACLs. |
restrict | boolean | Whether to restrict public access. |
blockPublicAcls?
Type:
boolean
(optional)
Whether to block public ACLs.
blockPublicPolicy?
Type:
boolean
(optional)
Whether to block public policy.
ignorePublicAcls?
Type:
boolean
(optional)
Whether to ignore public ACLs.
restrictPublicBuckets?
Type:
boolean
(optional)
Whether to restrict public access.