Struct bonsaidb::keystorage::s3::aws_sdk_s3::types::LoggingEnabled
#[non_exhaustive]pub struct LoggingEnabled {
pub target_bucket: Option<String>,
pub target_grants: Option<Vec<TargetGrant>>,
pub target_prefix: Option<String>,
}
Expand description
Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys for a bucket. For more information, see PUT Bucket logging in the Amazon S3 API Reference.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.target_bucket: 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.
target_grants: Option<Vec<TargetGrant>>
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.
target_prefix: 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.
Implementations§
§impl LoggingEnabled
impl LoggingEnabled
pub fn target_bucket(&self) -> Option<&str>
pub fn target_bucket(&self) -> Option<&str>
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) -> Option<&[TargetGrant]>
pub fn target_grants(&self) -> Option<&[TargetGrant]>
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) -> Option<&str>
pub fn target_prefix(&self) -> Option<&str>
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.
§impl LoggingEnabled
impl LoggingEnabled
pub fn builder() -> LoggingEnabledBuilder
pub fn builder() -> LoggingEnabledBuilder
Creates a new builder-style object to manufacture LoggingEnabled
.
Trait Implementations§
§impl Clone for LoggingEnabled
impl Clone for LoggingEnabled
§fn clone(&self) -> LoggingEnabled
fn clone(&self) -> LoggingEnabled
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for LoggingEnabled
impl Debug for LoggingEnabled
§impl PartialEq for LoggingEnabled
impl PartialEq for LoggingEnabled
§fn eq(&self, other: &LoggingEnabled) -> bool
fn eq(&self, other: &LoggingEnabled) -> bool
self
and other
values to be equal, and is used
by ==
.