Struct aws_sdk_fsx::types::builders::LustreLogConfigurationBuilder
source · #[non_exhaustive]pub struct LustreLogConfigurationBuilder { /* private fields */ }Expand description
A builder for LustreLogConfiguration.
Implementations§
source§impl LustreLogConfigurationBuilder
impl LustreLogConfigurationBuilder
sourcepub fn level(self, input: LustreAccessAuditLogLevel) -> Self
pub fn level(self, input: LustreAccessAuditLogLevel) -> Self
The data repository events that are logged by Amazon FSx.
-
WARN_ONLY- only warning events are logged. -
ERROR_ONLY- only error events are logged. -
WARN_ERROR- both warning events and error events are logged. -
DISABLED- logging of data repository events is turned off.
Note that Amazon File Cache uses a default setting of WARN_ERROR, which can't be changed.
sourcepub fn set_level(self, input: Option<LustreAccessAuditLogLevel>) -> Self
pub fn set_level(self, input: Option<LustreAccessAuditLogLevel>) -> Self
The data repository events that are logged by Amazon FSx.
-
WARN_ONLY- only warning events are logged. -
ERROR_ONLY- only error events are logged. -
WARN_ERROR- both warning events and error events are logged. -
DISABLED- logging of data repository events is turned off.
Note that Amazon File Cache uses a default setting of WARN_ERROR, which can't be changed.
sourcepub fn get_level(&self) -> &Option<LustreAccessAuditLogLevel>
pub fn get_level(&self) -> &Option<LustreAccessAuditLogLevel>
The data repository events that are logged by Amazon FSx.
-
WARN_ONLY- only warning events are logged. -
ERROR_ONLY- only error events are logged. -
WARN_ERROR- both warning events and error events are logged. -
DISABLED- logging of data repository events is turned off.
Note that Amazon File Cache uses a default setting of WARN_ERROR, which can't be changed.
sourcepub fn destination(self, input: impl Into<String>) -> Self
pub fn destination(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) that specifies the destination of the logs. The destination can be any Amazon CloudWatch Logs log group ARN. The destination ARN must be in the same Amazon Web Services partition, Amazon Web Services Region, and Amazon Web Services account as your Amazon FSx file system.
sourcepub fn set_destination(self, input: Option<String>) -> Self
pub fn set_destination(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) that specifies the destination of the logs. The destination can be any Amazon CloudWatch Logs log group ARN. The destination ARN must be in the same Amazon Web Services partition, Amazon Web Services Region, and Amazon Web Services account as your Amazon FSx file system.
sourcepub fn get_destination(&self) -> &Option<String>
pub fn get_destination(&self) -> &Option<String>
The Amazon Resource Name (ARN) that specifies the destination of the logs. The destination can be any Amazon CloudWatch Logs log group ARN. The destination ARN must be in the same Amazon Web Services partition, Amazon Web Services Region, and Amazon Web Services account as your Amazon FSx file system.
sourcepub fn build(self) -> LustreLogConfiguration
pub fn build(self) -> LustreLogConfiguration
Consumes the builder and constructs a LustreLogConfiguration.
Trait Implementations§
source§impl Clone for LustreLogConfigurationBuilder
impl Clone for LustreLogConfigurationBuilder
source§fn clone(&self) -> LustreLogConfigurationBuilder
fn clone(&self) -> LustreLogConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for LustreLogConfigurationBuilder
impl Default for LustreLogConfigurationBuilder
source§fn default() -> LustreLogConfigurationBuilder
fn default() -> LustreLogConfigurationBuilder
source§impl PartialEq for LustreLogConfigurationBuilder
impl PartialEq for LustreLogConfigurationBuilder
source§fn eq(&self, other: &LustreLogConfigurationBuilder) -> bool
fn eq(&self, other: &LustreLogConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.