This operation is not supported for directory buckets.
Returns the replication configuration of a bucket.
It can take a while to propagate the put or delete a replication configuration to all Amazon S3
systems. Therefore, a get request soon after put or delete can return a wrong result.
For information about replication configuration, see Replication in the
Amazon S3 User Guide.
This action requires permissions for the s3:GetReplicationConfiguration action. For
more information about permissions, see Using Bucket Policies and User
Policies.
If you include the Filter element in a replication configuration, you must also include
the DeleteMarkerReplication and Priority elements. The response also returns
those elements.
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.
Example
Use a bare-bones client and the command you need to make an API call.
This operation is not supported for directory buckets.
Returns the replication configuration of a bucket.
It can take a while to propagate the put or delete a replication configuration to all Amazon S3 systems. Therefore, a get request soon after put or delete can return a wrong result.
For information about replication configuration, see Replication in the Amazon S3 User Guide.
This action requires permissions for the
s3:GetReplicationConfigurationaction. For more information about permissions, see Using Bucket Policies and User Policies.If you include the
Filterelement in a replication configuration, you must also include theDeleteMarkerReplicationandPriorityelements. The response also returns those elements.For information about
GetBucketReplicationerrors, see List of replication-related error codesThe following operations are related to
GetBucketReplication:PutBucketReplication
DeleteBucketReplication
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.Example
Use a bare-bones client and the command you need to make an API call.
Param: GetBucketReplicationCommandInput
GetBucketReplicationCommandInput
Returns
GetBucketReplicationCommandOutput
See
inputshape.responseshape.configshape.Throws
S3ServiceException
Base exception class for all service exceptions from S3 service.
Example: To get replication configuration set on a bucket