Struct aws_sdk_s3::model::replication_configuration::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for ReplicationConfiguration
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn role(self, input: impl Into<String>) -> Self
pub fn role(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects. For more information, see How to Set Up Replication in the Amazon S3 User Guide.
sourcepub fn set_role(self, input: Option<String>) -> Self
pub fn set_role(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects. For more information, see How to Set Up Replication in the Amazon S3 User Guide.
sourcepub fn rules(self, input: ReplicationRule) -> Self
pub fn rules(self, input: ReplicationRule) -> Self
Appends an item to rules
.
To override the contents of this collection use set_rules
.
A container for one or more replication rules. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.
sourcepub fn set_rules(self, input: Option<Vec<ReplicationRule>>) -> Self
pub fn set_rules(self, input: Option<Vec<ReplicationRule>>) -> Self
A container for one or more replication rules. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.
sourcepub fn build(self) -> ReplicationConfiguration
pub fn build(self) -> ReplicationConfiguration
Consumes the builder and constructs a ReplicationConfiguration
.