#[non_exhaustive]pub struct LustreLogCreateConfigurationBuilder { /* private fields */ }Expand description
A builder for LustreLogCreateConfiguration.
Implementations§
source§impl LustreLogCreateConfigurationBuilder
impl LustreLogCreateConfigurationBuilder
sourcepub fn level(self, input: LustreAccessAuditLogLevel) -> Self
pub fn level(self, input: LustreAccessAuditLogLevel) -> Self
Sets which data repository events 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.
sourcepub fn set_level(self, input: Option<LustreAccessAuditLogLevel>) -> Self
pub fn set_level(self, input: Option<LustreAccessAuditLogLevel>) -> Self
Sets which data repository events 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.
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, with the following requirements:
-
The destination ARN that you provide must be in the same Amazon Web Services partition, Amazon Web Services Region, and Amazon Web Services account as your Amazon FSx file system.
-
The name of the Amazon CloudWatch Logs log group must begin with the
/aws/fsxprefix. -
If you do not provide a destination, Amazon FSx will create and use a log stream in the CloudWatch Logs
/aws/fsx/lustrelog group (for Amazon FSx for Lustre) or/aws/fsx/filecache(for Amazon File Cache). -
If
Destinationis provided and the resource does not exist, the request will fail with aBadRequesterror. -
If
Levelis set toDISABLED, you cannot specify a destination inDestination.
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, with the following requirements:
-
The destination ARN that you provide must be in the same Amazon Web Services partition, Amazon Web Services Region, and Amazon Web Services account as your Amazon FSx file system.
-
The name of the Amazon CloudWatch Logs log group must begin with the
/aws/fsxprefix. -
If you do not provide a destination, Amazon FSx will create and use a log stream in the CloudWatch Logs
/aws/fsx/lustrelog group (for Amazon FSx for Lustre) or/aws/fsx/filecache(for Amazon File Cache). -
If
Destinationis provided and the resource does not exist, the request will fail with aBadRequesterror. -
If
Levelis set toDISABLED, you cannot specify a destination inDestination.
sourcepub fn build(self) -> LustreLogCreateConfiguration
pub fn build(self) -> LustreLogCreateConfiguration
Consumes the builder and constructs a LustreLogCreateConfiguration.
Trait Implementations§
source§impl Clone for LustreLogCreateConfigurationBuilder
impl Clone for LustreLogCreateConfigurationBuilder
source§fn clone(&self) -> LustreLogCreateConfigurationBuilder
fn clone(&self) -> LustreLogCreateConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for LustreLogCreateConfigurationBuilder
impl Default for LustreLogCreateConfigurationBuilder
source§fn default() -> LustreLogCreateConfigurationBuilder
fn default() -> LustreLogCreateConfigurationBuilder
source§impl PartialEq<LustreLogCreateConfigurationBuilder> for LustreLogCreateConfigurationBuilder
impl PartialEq<LustreLogCreateConfigurationBuilder> for LustreLogCreateConfigurationBuilder
source§fn eq(&self, other: &LustreLogCreateConfigurationBuilder) -> bool
fn eq(&self, other: &LustreLogCreateConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.