dcloud s3 bucket-replication setReplace the replication rules
rules: [{ destination, prefix?, deleteMarkerReplication? (false), existingObjects? (true), enabled?, priority?, id? }]. Both buckets need versioning Enabled; the caller also needs s3:PutObject on the destination. Two-way replication is refused. Copies start within seconds of a write; every bucket is also compared in full hourly.
Synopsis
dcloud s3 bucket-replication set name --rules rules [flags]Arguments
<name>Requiredstring
Also accepted as
--name. Constraints: 3-63 chars, /^[a-z0-9][a-z0-9-]*[a-z0-9]$/
Flags
--roleOptionalstring
An IAM role ARN as AWS tools send it; kept for S3 GetBucketReplication, otherwise ignored
Constraints: max 2048 chars
May be null.
--rulesRequiredarray of json
The rules, replacing the current ones; each names a destination bucket (name, arn:aws:s3:::name or its RN)
Example
dcloud s3 bucket-replication set name --rules '["example"]'Generated from the API description, the same one the API checks requests against and the CLI is built from.