

# BucketPolicy


Contains information on the current bucket policies for the S3 bucket.

## Contents


 ** allowsPublicReadAccess **   <a name="guardduty-Type-BucketPolicy-allowsPublicReadAccess"></a>
A value that indicates whether public read access for the bucket is enabled through a bucket policy.  
Type: Boolean  
Required: No

 ** allowsPublicWriteAccess **   <a name="guardduty-Type-BucketPolicy-allowsPublicWriteAccess"></a>
A value that indicates whether public write access for the bucket is enabled through a bucket policy.  
Type: Boolean  
Required: No

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/guardduty-2017-11-28/BucketPolicy) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/guardduty-2017-11-28/BucketPolicy) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/guardduty-2017-11-28/BucketPolicy) 