Struct aws_sdk_s3::types::LoggingEnabled
source · #[non_exhaustive]pub struct LoggingEnabled {
pub target_bucket: String,
pub target_grants: Option<Vec<TargetGrant>>,
pub target_prefix: String,
pub target_object_key_format: Option<TargetObjectKeyFormat>,
}
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: 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: 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.
target_object_key_format: Option<TargetObjectKeyFormat>
Amazon S3 key format for log objects.
Implementations§
source§impl LoggingEnabled
impl LoggingEnabled
sourcepub fn target_bucket(&self) -> &str
pub fn target_bucket(&self) -> &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.
sourcepub fn target_grants(&self) -> &[TargetGrant]
pub fn target_grants(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .target_grants.is_none()
.
sourcepub fn target_prefix(&self) -> &str
pub fn target_prefix(&self) -> &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.
sourcepub fn target_object_key_format(&self) -> Option<&TargetObjectKeyFormat>
pub fn target_object_key_format(&self) -> Option<&TargetObjectKeyFormat>
Amazon S3 key format for log objects.
source§impl LoggingEnabled
impl LoggingEnabled
sourcepub fn builder() -> LoggingEnabledBuilder
pub fn builder() -> LoggingEnabledBuilder
Creates a new builder-style object to manufacture LoggingEnabled
.
Trait Implementations§
source§impl Clone for LoggingEnabled
impl Clone for LoggingEnabled
source§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 moresource§impl Debug for LoggingEnabled
impl Debug for LoggingEnabled
source§impl PartialEq for LoggingEnabled
impl PartialEq for LoggingEnabled
impl StructuralPartialEq for LoggingEnabled
Auto Trait Implementations§
impl Freeze for LoggingEnabled
impl RefUnwindSafe for LoggingEnabled
impl Send for LoggingEnabled
impl Sync for LoggingEnabled
impl Unpin for LoggingEnabled
impl UnwindSafe for LoggingEnabled
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)