Struct aws_sdk_lightsail::model::BucketAccessLogConfig [−][src]
#[non_exhaustive]pub struct BucketAccessLogConfig {
pub enabled: Option<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: Option<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 is saved. The destination can be a Lightsail bucket in the same account, and in the same AWS 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
A Boolean value that indicates whether bucket access logging is enabled for the bucket.
The name of the bucket where the access is saved. The destination can be a Lightsail bucket in the same account, and in the same AWS 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.
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.
Creates a new builder-style object to manufacture BucketAccessLogConfig
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for BucketAccessLogConfig
impl Send for BucketAccessLogConfig
impl Sync for BucketAccessLogConfig
impl Unpin for BucketAccessLogConfig
impl UnwindSafe for BucketAccessLogConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more