Struct aws_sdk_s3::types::builders::LoggingEnabledBuilder
source · #[non_exhaustive]pub struct LoggingEnabledBuilder { /* private fields */ }
Expand description
A builder for LoggingEnabled
.
Implementations§
source§impl LoggingEnabledBuilder
impl LoggingEnabledBuilder
sourcepub fn target_bucket(self, input: impl Into<String>) -> Self
pub fn target_bucket(self, input: impl Into<String>) -> Self
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 set_target_bucket(self, input: Option<String>) -> Self
pub fn set_target_bucket(self, input: Option<String>) -> Self
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 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.
sourcepub fn target_grants(self, input: TargetGrant) -> Self
pub fn target_grants(self, input: TargetGrant) -> Self
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.
sourcepub fn set_target_grants(self, input: Option<Vec<TargetGrant>>) -> Self
pub fn set_target_grants(self, input: Option<Vec<TargetGrant>>) -> Self
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.
sourcepub fn get_target_grants(&self) -> &Option<Vec<TargetGrant>>
pub fn get_target_grants(&self) -> &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.
sourcepub fn target_prefix(self, input: impl Into<String>) -> Self
pub fn target_prefix(self, input: impl Into<String>) -> Self
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.
This field is required.sourcepub fn set_target_prefix(self, input: Option<String>) -> Self
pub fn set_target_prefix(self, input: Option<String>) -> Self
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 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.
sourcepub fn target_object_key_format(self, input: TargetObjectKeyFormat) -> Self
pub fn target_object_key_format(self, input: TargetObjectKeyFormat) -> Self
Amazon S3 key format for log objects.
sourcepub fn set_target_object_key_format(
self,
input: Option<TargetObjectKeyFormat>,
) -> Self
pub fn set_target_object_key_format( self, input: Option<TargetObjectKeyFormat>, ) -> Self
Amazon S3 key format for log objects.
sourcepub fn get_target_object_key_format(&self) -> &Option<TargetObjectKeyFormat>
pub fn get_target_object_key_format(&self) -> &Option<TargetObjectKeyFormat>
Amazon S3 key format for log objects.
sourcepub fn build(self) -> Result<LoggingEnabled, BuildError>
pub fn build(self) -> Result<LoggingEnabled, BuildError>
Consumes the builder and constructs a LoggingEnabled
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for LoggingEnabledBuilder
impl Clone for LoggingEnabledBuilder
source§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 moresource§impl Debug for LoggingEnabledBuilder
impl Debug for LoggingEnabledBuilder
source§impl Default for LoggingEnabledBuilder
impl Default for LoggingEnabledBuilder
source§fn default() -> LoggingEnabledBuilder
fn default() -> LoggingEnabledBuilder
source§impl PartialEq for LoggingEnabledBuilder
impl PartialEq for LoggingEnabledBuilder
impl StructuralPartialEq for LoggingEnabledBuilder
Auto Trait Implementations§
impl Freeze for LoggingEnabledBuilder
impl RefUnwindSafe for LoggingEnabledBuilder
impl Send for LoggingEnabledBuilder
impl Sync for LoggingEnabledBuilder
impl Unpin for LoggingEnabledBuilder
impl UnwindSafe for LoggingEnabledBuilder
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
)