# NOT RUN {
# The following example sets replication configuration on a bucket.
# }
# NOT RUN {
svc$put_bucket_replication(
Bucket = "examplebucket",
ReplicationConfiguration = list(
Role = "arn:aws:iam::123456789012:role/examplerole",
Rules = list(
list(
Destination = list(
Bucket = "arn:aws:s3:::destinationbucket",
StorageClass = "STANDARD"
),
Prefix = "",
Status = "Enabled"
)
)
)
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab