class Aws::S3::Types::GetBucketPolicyRequest
@see docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketPolicyRequest AWS API Documentation
@return [String]
</note>
HTTP status code ‘501 Not Implemented`.
operation. If you specify this header, the request fails with the
<note markdown=“1”> For directory buckets, this header is not supported in this API
denied).
request fails with the HTTP status code `403 Forbidden` (access
you provide does not match the actual owner of the bucket, the
The account ID of the expected bucket owner. If the account ID that
@!attribute [rw] expected_bucket_owner
@return [String]<br>: docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList<br>[1]: docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html<br><br><br><br></note>
<note markdown=“1”> Object Lambda access points are not supported by directory buckets.
about `InvalidAccessPointAliasError`, see [List of Error Codes].
`InvalidAccessPointAliasError` is returned. For more information
Lambda access point alias in a request is not valid, the error code
Lambda access point in place of the bucket name. If the Object
with an Object Lambda access point, provide the alias of the Object
**Object Lambda access points** - When you use this API operation
name.
point, provide the alias of the access point in place of the bucket
**Access points** - When you use this API operation with an access
*Amazon S3 User Guide*
naming restrictions, see [Directory bucket naming rules] in the
DOC-EXAMPLE-BUCKET–usw2-az1–x-s3`). For information about bucket
bucket-base-name–zone-id–x-s3` (for example, `
Zone). Bucket names must also follow the format `
names must be unique in the chosen Zone (Availability Zone or Local
Virtual-hosted-style requests aren’t supported. Directory bucket
`s3express-control.region-code.amazonaws.com/bucket-name ‘.
directory bucket, you must use path-style requests in the format
Directory buckets - When you use this operation with a
The bucket name to get the bucket policy for.
@!attribute [rw] bucket