github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/aws/s3/AVD-AWS-0094/CloudFormation.md (about)

     1  
     2  Define a aws_s3_bucket_public_access_block for the given bucket to control public access policies
     3  
     4  ```yaml---
     5  Resources:
     6    GoodExample:
     7      Properties:
     8        AccessControl: Private
     9        PublicAccessBlockConfiguration:
    10          BlockPublicAcls: true
    11          BlockPublicPolicy: true
    12          IgnorePublicAcls: true
    13          RestrictPublicBuckets: true
    14      Type: AWS::S3::Bucket
    15  
    16  ```
    17  
    18