Struct bonsaidb::keystorage::s3::aws_sdk_s3::types::builders::LoggingEnabledBuilder
pub struct LoggingEnabledBuilder { /* private fields */ }
Expand description
A builder for LoggingEnabled
.
Implementations§
§impl LoggingEnabledBuilder
impl LoggingEnabledBuilder
pub fn target_bucket(self, input: impl Into<String>) -> LoggingEnabledBuilder
pub fn target_bucket(self, input: impl Into<String>) -> LoggingEnabledBuilder
Specifies the bucket where you want Amazon S3 to store server access logs. You can have your logs delivered to any bucket that you own, including the same bucket that is being logged. You can also configure multiple buckets to deliver their logs to the same target bucket. In this case, you should choose a different TargetPrefix
for each source bucket so that the delivered log files can be distinguished by key.
pub fn set_target_bucket(self, input: Option<String>) -> LoggingEnabledBuilder
pub fn set_target_bucket(self, input: Option<String>) -> LoggingEnabledBuilder
Specifies the bucket where you want Amazon S3 to store server access logs. You can have your logs delivered to any bucket that you own, including the same bucket that is being logged. You can also configure multiple buckets to deliver their logs to the same target bucket. In this case, you should choose a different TargetPrefix
for each source bucket so that the delivered log files can be distinguished by key.
pub fn get_target_bucket(&self) -> &Option<String>
pub fn get_target_bucket(&self) -> &Option<String>
Specifies the bucket where you want Amazon S3 to store server access logs. You can have your logs delivered to any bucket that you own, including the same bucket that is being logged. You can also configure multiple buckets to deliver their logs to the same target bucket. In this case, you should choose a different TargetPrefix
for each source bucket so that the delivered log files can be distinguished by key.
pub fn target_grants(self, input: TargetGrant) -> LoggingEnabledBuilder
pub fn target_grants(self, input: TargetGrant) -> LoggingEnabledBuilder
Appends an item to target_grants
.
To override the contents of this collection use set_target_grants
.
Container for granting information.
Buckets that use the bucket owner enforced setting for Object Ownership don't support target grants. For more information, see Permissions for server access log delivery in the Amazon S3 User Guide.
pub fn set_target_grants(
self,
input: Option<Vec<TargetGrant, Global>>
) -> LoggingEnabledBuilder
pub fn set_target_grants( self, input: Option<Vec<TargetGrant, Global>> ) -> LoggingEnabledBuilder
Container for granting information.
Buckets that use the bucket owner enforced setting for Object Ownership don't support target grants. For more information, see Permissions for server access log delivery in the Amazon S3 User Guide.
pub fn get_target_grants(&self) -> &Option<Vec<TargetGrant, Global>>
pub fn get_target_grants(&self) -> &Option<Vec<TargetGrant, Global>>
Container for granting information.
Buckets that use the bucket owner enforced setting for Object Ownership don't support target grants. For more information, see Permissions for server access log delivery in the Amazon S3 User Guide.
pub fn target_prefix(self, input: impl Into<String>) -> LoggingEnabledBuilder
pub fn target_prefix(self, input: impl Into<String>) -> LoggingEnabledBuilder
A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.
pub fn set_target_prefix(self, input: Option<String>) -> LoggingEnabledBuilder
pub fn set_target_prefix(self, input: Option<String>) -> LoggingEnabledBuilder
A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.
pub fn get_target_prefix(&self) -> &Option<String>
pub fn get_target_prefix(&self) -> &Option<String>
A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.
pub fn build(self) -> LoggingEnabled
pub fn build(self) -> LoggingEnabled
Consumes the builder and constructs a LoggingEnabled
.
Trait Implementations§
§impl Clone for LoggingEnabledBuilder
impl Clone for LoggingEnabledBuilder
§fn clone(&self) -> LoggingEnabledBuilder
fn clone(&self) -> LoggingEnabledBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for LoggingEnabledBuilder
impl Debug for LoggingEnabledBuilder
§impl Default for LoggingEnabledBuilder
impl Default for LoggingEnabledBuilder
§fn default() -> LoggingEnabledBuilder
fn default() -> LoggingEnabledBuilder
§impl PartialEq<LoggingEnabledBuilder> for LoggingEnabledBuilder
impl PartialEq<LoggingEnabledBuilder> for LoggingEnabledBuilder
§fn eq(&self, other: &LoggingEnabledBuilder) -> bool
fn eq(&self, other: &LoggingEnabledBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.