delete_bucket_replication¶
Operation¶
delete_bucket_replication
async
¶
delete_bucket_replication(input: DeleteBucketReplicationInput, plugins: list[Plugin] | None = None) -> DeleteBucketReplicationOutput
Note
This operation is not supported for directory buckets.
Deletes the replication configuration from the bucket.
To use this operation, you must have permissions to perform the
s3:PutReplicationConfiguration action. The bucket owner has these
permissions by default and can grant it to others. For more information
about permissions, see Permissions Related to Bucket Subresource
Operations
and Managing Access Permissions to Your Amazon S3
Resources.
Note
It can take a while for the deletion of a replication configuration to fully propagate.
For information about replication configuration, see Replication in the Amazon S3 User Guide.
The following operations are related to DeleteBucketReplication:
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
after my, you must URL encode this value to my%20%20file.txt.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
DeleteBucketReplicationInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
DeleteBucketReplicationOutput
|
An instance of |
Input¶
DeleteBucketReplicationInput
dataclass
¶
Bases: _SerdeShape
Dataclass for DeleteBucketReplicationInput structure.
Attributes¶
expected_bucket_owner
class-attribute
instance-attribute
¶
expected_bucket_owner: str | None = ...
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).
Output¶
DeleteBucketReplicationOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for DeleteBucketReplicationOutput structure.