AWS S3 block all public access

How can I block all public access when creating the S3 bucket?
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket

Hi jur-harry,
you can block all public access for a S3 bucket by creating a resource called s3_bucket_public_access_block
(https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_public_access_block) and set all parameters to true.