Gets the bucket policy.
- DisplayName - The display name of the activity.
- Bucket - Specifies the bucket on which the operation needs to be performed.
- Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
- BucketPolicy - Provides the bucket policy as a JSON text. A null value means the bucket has no policy set.
A 403 Access Denied error is displayed by Amazon S3 when there are no GetBucketPolicy permissions.
A 405 Method Not Allowed error is displayed when the GetBucketPolicy permissions are available but the identity used by you is not the same as the one belonging to the bucket owner's account. You should have no problem executing this operation if you are the root user of the AWS account that owns the bucket.
Updated 2 months ago