aws_sdk_s3control/client/put_bucket_replication.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`PutBucketReplication`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`account_id(impl Into<String>)`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::account_id) / [`set_account_id(Option<String>)`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::set_account_id):<br>required: **true**<br><p>The Amazon Web Services account ID of the Outposts bucket.</p><br>
7 /// - [`bucket(impl Into<String>)`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::bucket) / [`set_bucket(Option<String>)`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::set_bucket):<br>required: **true**<br><p>Specifies the S3 on Outposts bucket to set the configuration for.</p> <p>For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.</p> <p>For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format <code>arn:aws:s3-outposts:<region> : <account-id> :outpost/ <outpost-id> /bucket/ <my-bucket-name></my-bucket-name> </outpost-id> </account-id> </region></code>. For example, to access the bucket <code>reports</code> through Outpost <code>my-outpost</code> owned by account <code>123456789012</code> in Region <code>us-west-2</code>, use the URL encoding of <code>arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports</code>. The value must be URL encoded.</p><br>
8 /// - [`replication_configuration(ReplicationConfiguration)`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::replication_configuration) / [`set_replication_configuration(Option<ReplicationConfiguration>)`](crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::set_replication_configuration):<br>required: **true**<br><p></p><br>
9 /// - On success, responds with [`PutBucketReplicationOutput`](crate::operation::put_bucket_replication::PutBucketReplicationOutput)
10 /// - On failure, responds with [`SdkError<PutBucketReplicationError>`](crate::operation::put_bucket_replication::PutBucketReplicationError)
11 pub fn put_bucket_replication(&self) -> crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder {
12 crate::operation::put_bucket_replication::builders::PutBucketReplicationFluentBuilder::new(self.handle.clone())
13 }
14}