Struct aws_sdk_fsx::model::LustreLogCreateConfiguration
source · [−]#[non_exhaustive]pub struct LustreLogCreateConfiguration {
pub level: Option<LustreAccessAuditLogLevel>,
pub destination: Option<String>,
}
Expand description
The Lustre logging configuration used when creating or updating an Amazon FSx for Lustre file system. Lustre logging writes the enabled logging events for your file system to Amazon CloudWatch Logs.
Error and warning events can be logged from the following data repository operations:
-
Automatic export
-
Data repository tasks
To learn more about Lustre logging, see Logging to Amazon CloudWatch Logs.
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.level: Option<LustreAccessAuditLogLevel>
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.
destination: 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, 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/fsx
prefix. -
If you do not provide a destination, Amazon FSx will create and use a log stream in the CloudWatch Logs
/aws/fsx/lustre
log group. -
If
Destination
is provided and the resource does not exist, the request will fail with aBadRequest
error. -
If
Level
is set toDISABLED
, you cannot specify a destination inDestination
.
Implementations
sourceimpl LustreLogCreateConfiguration
impl LustreLogCreateConfiguration
sourcepub fn level(&self) -> Option<&LustreAccessAuditLogLevel>
pub fn level(&self) -> Option<&LustreAccessAuditLogLevel>
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) -> Option<&str>
pub fn destination(&self) -> Option<&str>
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/fsx
prefix. -
If you do not provide a destination, Amazon FSx will create and use a log stream in the CloudWatch Logs
/aws/fsx/lustre
log group. -
If
Destination
is provided and the resource does not exist, the request will fail with aBadRequest
error. -
If
Level
is set toDISABLED
, you cannot specify a destination inDestination
.
sourceimpl LustreLogCreateConfiguration
impl LustreLogCreateConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture LustreLogCreateConfiguration
Trait Implementations
sourceimpl Clone for LustreLogCreateConfiguration
impl Clone for LustreLogCreateConfiguration
sourcefn clone(&self) -> LustreLogCreateConfiguration
fn clone(&self) -> LustreLogCreateConfiguration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LustreLogCreateConfiguration
impl Debug for LustreLogCreateConfiguration
sourceimpl PartialEq<LustreLogCreateConfiguration> for LustreLogCreateConfiguration
impl PartialEq<LustreLogCreateConfiguration> for LustreLogCreateConfiguration
sourcefn eq(&self, other: &LustreLogCreateConfiguration) -> bool
fn eq(&self, other: &LustreLogCreateConfiguration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LustreLogCreateConfiguration) -> bool
fn ne(&self, other: &LustreLogCreateConfiguration) -> bool
This method tests for !=
.
impl StructuralPartialEq for LustreLogCreateConfiguration
Auto Trait Implementations
impl RefUnwindSafe for LustreLogCreateConfiguration
impl Send for LustreLogCreateConfiguration
impl Sync for LustreLogCreateConfiguration
impl Unpin for LustreLogCreateConfiguration
impl UnwindSafe for LustreLogCreateConfiguration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more