S3 / Client / delete_bucket_ownership_controls
delete_bucket_ownership_controls¶
- S3.Client.delete_bucket_ownership_controls(**kwargs)¶
Note
This operation is not supported for directory buckets.
Removes
OwnershipControlsfor an Amazon S3 bucket. To use this operation, you must have thes3:PutBucketOwnershipControlspermission. For more information about Amazon S3 permissions, see Specifying Permissions in a Policy.For information about Amazon S3 Object Ownership, see Using Object Ownership.
The following operations are related to
DeleteBucketOwnershipControls:GetBucketOwnershipControls
PutBucketOwnershipControls
Warning
You must URL encode any signed header values that contain spaces. For example, if your header value is
my file.txt, containing two spaces aftermy, you must URL encode this value tomy%20%20file.txt.See also: AWS API Documentation
Request Syntax
response = client.delete_bucket_ownership_controls( Bucket='string', ExpectedBucketOwner='string' )
- Parameters:
Bucket (string) –
[REQUIRED]
The Amazon S3 bucket whose
OwnershipControlsyou 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