BlockPublicAccess
- class aws_cdk.aws_s3.BlockPublicAccess(*, block_public_acls=None, block_public_policy=None, ignore_public_acls=None, restrict_public_buckets=None)
Bases:
object
- ExampleMetadata:
infused
Example:
bucket = s3.Bucket(self, "MyBlockedBucket", block_public_access=s3.BlockPublicAccess.BLOCK_ALL )
- Parameters:
block_public_acls (
Optional
[bool
]) – Whether to block public ACLs.block_public_policy (
Optional
[bool
]) – Whether to block public policy.ignore_public_acls (
Optional
[bool
]) – Whether to ignore public ACLs.restrict_public_buckets (
Optional
[bool
]) – Whether to restrict public access.
Attributes
- BLOCK_ACLS = <aws_cdk.aws_s3.BlockPublicAccess object>
- BLOCK_ALL = <aws_cdk.aws_s3.BlockPublicAccess object>
- block_public_acls
- block_public_policy
- ignore_public_acls
- restrict_public_buckets