S3 / Client / delete_public_access_block
delete_public_access_block#
- S3.Client.delete_public_access_block(**kwargs)#
Removes the
PublicAccessBlock
configuration for an Amazon S3 bucket. To use this operation, you must have thes3:PutBucketPublicAccessBlock
permission. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.The following operations are related to
DeletePublicAccessBlock
:See also: AWS API Documentation
Request Syntax
response = client.delete_public_access_block( Bucket='string', ExpectedBucketOwner='string' )
- Parameters:
Bucket (string) –
[REQUIRED]
The Amazon S3 bucket whose
PublicAccessBlock
configuration you want to delete.ExpectedBucketOwner (string) – The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code
403 Forbidden
(access denied).
- Returns:
None