S3 Bucket Policy Example in AWS CDK | bobbyhadz
To create a bucket policy in AWS CDK, we have to use the `addToResourcePolicy` method on a `Bucket` instance.