Skip to content

S3  >  Operations  >  delete_bucket_replication

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 DeleteBucketReplicationInput.

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 DeleteBucketReplicationOutput.

Input

DeleteBucketReplicationInput dataclass

Bases: _SerdeShape

Dataclass for DeleteBucketReplicationInput structure.

Attributes

bucket class-attribute instance-attribute
bucket: str | None = ...

The bucket name.

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.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.