Struct aws_sdk_lightsail::types::BucketAccessLogConfig
source · #[non_exhaustive]pub struct BucketAccessLogConfig {
pub enabled: bool,
pub destination: Option<String>,
pub prefix: Option<String>,
}
Expand description
Describes the access log configuration for a bucket in the Amazon Lightsail object storage service.
For more information about bucket access logs, see Logging bucket requests using access logging in Amazon Lightsail in the Amazon Lightsail Developer Guide.
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.enabled: bool
A Boolean value that indicates whether bucket access logging is enabled for the bucket.
destination: Option<String>
The name of the bucket where the access logs are saved. The destination can be a Lightsail bucket in the same account, and in the same Amazon Web Services Region as the source bucket.
This parameter is required when enabling the access log for a bucket, and should be omitted when disabling the access log.
prefix: Option<String>
The optional object prefix for the bucket access log.
The prefix is an optional addition to the object key that organizes your access log files in the destination bucket. For example, if you specify a logs/
prefix, then each log object will begin with the logs/
prefix in its key (for example, logs/2021-11-01-21-32-16-E568B2907131C0C0
).
This parameter can be optionally specified when enabling the access log for a bucket, and should be omitted when disabling the access log.
Implementations§
source§impl BucketAccessLogConfig
impl BucketAccessLogConfig
sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
A Boolean value that indicates whether bucket access logging is enabled for the bucket.
sourcepub fn destination(&self) -> Option<&str>
pub fn destination(&self) -> Option<&str>
The name of the bucket where the access logs are saved. The destination can be a Lightsail bucket in the same account, and in the same Amazon Web Services Region as the source bucket.
This parameter is required when enabling the access log for a bucket, and should be omitted when disabling the access log.
sourcepub fn prefix(&self) -> Option<&str>
pub fn prefix(&self) -> Option<&str>
The optional object prefix for the bucket access log.
The prefix is an optional addition to the object key that organizes your access log files in the destination bucket. For example, if you specify a logs/
prefix, then each log object will begin with the logs/
prefix in its key (for example, logs/2021-11-01-21-32-16-E568B2907131C0C0
).
This parameter can be optionally specified when enabling the access log for a bucket, and should be omitted when disabling the access log.
source§impl BucketAccessLogConfig
impl BucketAccessLogConfig
sourcepub fn builder() -> BucketAccessLogConfigBuilder
pub fn builder() -> BucketAccessLogConfigBuilder
Creates a new builder-style object to manufacture BucketAccessLogConfig
.
Trait Implementations§
source§impl Clone for BucketAccessLogConfig
impl Clone for BucketAccessLogConfig
source§fn clone(&self) -> BucketAccessLogConfig
fn clone(&self) -> BucketAccessLogConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BucketAccessLogConfig
impl Debug for BucketAccessLogConfig
source§impl PartialEq for BucketAccessLogConfig
impl PartialEq for BucketAccessLogConfig
source§fn eq(&self, other: &BucketAccessLogConfig) -> bool
fn eq(&self, other: &BucketAccessLogConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BucketAccessLogConfig
Auto Trait Implementations§
impl Freeze for BucketAccessLogConfig
impl RefUnwindSafe for BucketAccessLogConfig
impl Send for BucketAccessLogConfig
impl Sync for BucketAccessLogConfig
impl Unpin for BucketAccessLogConfig
impl UnwindSafe for BucketAccessLogConfig
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more