Typical Cloudformation for an S3 bucket with block all public access enabled:
Resources:
S3BucketExample:
Type: AWS::S3::Bucket
Properties:
BucketName: s3-bucket-name
PublicAccessBlockConfiguration:
BlockPublicAcls: true
BlockPublicPolicy: true
IgnorePublicAcls: true
RestrictPublicBuckets: true
