blockPublicPolicy property

bool? blockPublicPolicy
final

Specifies whether Amazon S3 should block public bucket policies for this bucket. Setting this element to TRUE causes Amazon S3 to reject calls to PUT Bucket policy if the specified bucket policy allows public access.

Enabling this setting doesn't affect existing bucket policies.

Implementation

final bool? blockPublicPolicy;