#[non_exhaustive]pub struct WindowsAuditLogCreateConfiguration {
pub file_access_audit_log_level: Option<WindowsAccessAuditLogLevel>,
pub file_share_access_audit_log_level: Option<WindowsAccessAuditLogLevel>,
pub audit_log_destination: Option<String>,
}
Expand description
The Windows file access auditing configuration used when creating or updating an Amazon FSx for Windows File Server file system.
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.file_access_audit_log_level: Option<WindowsAccessAuditLogLevel>
Sets which attempt type is logged by Amazon FSx for file and folder accesses.
-
SUCCESS_ONLY
- only successful attempts to access files or folders are logged. -
FAILURE_ONLY
- only failed attempts to access files or folders are logged. -
SUCCESS_AND_FAILURE
- both successful attempts and failed attempts to access files or folders are logged. -
DISABLED
- access auditing of files and folders is turned off.
Sets which attempt type is logged by Amazon FSx for file share accesses.
-
SUCCESS_ONLY
- only successful attempts to access file shares are logged. -
FAILURE_ONLY
- only failed attempts to access file shares are logged. -
SUCCESS_AND_FAILURE
- both successful attempts and failed attempts to access file shares are logged. -
DISABLED
- access auditing of file shares is turned off.
audit_log_destination: Option<String>
The Amazon Resource Name (ARN) that specifies the destination of the audit logs.
The destination can be any Amazon CloudWatch Logs log group ARN or Amazon Kinesis Data Firehose delivery stream ARN, with the following requirements:
-
The destination ARN that you provide (either CloudWatch Logs log group or Kinesis Data Firehose delivery stream) 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. The name of the Amazon Kinesis Data Firehouse delivery stream must begin with theaws-fsx
prefix. -
If you do not provide a destination in
AuditLogDestination
, Amazon FSx will create and use a log stream in the CloudWatch Logs/aws/fsx/windows
log group. -
If
AuditLogDestination
is provided and the resource does not exist, the request will fail with aBadRequest
error. -
If
FileAccessAuditLogLevel
andFileShareAccessAuditLogLevel
are both set toDISABLED
, you cannot specify a destination inAuditLogDestination
.
Implementations
sourceimpl WindowsAuditLogCreateConfiguration
impl WindowsAuditLogCreateConfiguration
sourcepub fn file_access_audit_log_level(&self) -> Option<&WindowsAccessAuditLogLevel>
pub fn file_access_audit_log_level(&self) -> Option<&WindowsAccessAuditLogLevel>
Sets which attempt type is logged by Amazon FSx for file and folder accesses.
-
SUCCESS_ONLY
- only successful attempts to access files or folders are logged. -
FAILURE_ONLY
- only failed attempts to access files or folders are logged. -
SUCCESS_AND_FAILURE
- both successful attempts and failed attempts to access files or folders are logged. -
DISABLED
- access auditing of files and folders is turned off.
Sets which attempt type is logged by Amazon FSx for file share accesses.
-
SUCCESS_ONLY
- only successful attempts to access file shares are logged. -
FAILURE_ONLY
- only failed attempts to access file shares are logged. -
SUCCESS_AND_FAILURE
- both successful attempts and failed attempts to access file shares are logged. -
DISABLED
- access auditing of file shares is turned off.
sourcepub fn audit_log_destination(&self) -> Option<&str>
pub fn audit_log_destination(&self) -> Option<&str>
The Amazon Resource Name (ARN) that specifies the destination of the audit logs.
The destination can be any Amazon CloudWatch Logs log group ARN or Amazon Kinesis Data Firehose delivery stream ARN, with the following requirements:
-
The destination ARN that you provide (either CloudWatch Logs log group or Kinesis Data Firehose delivery stream) 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. The name of the Amazon Kinesis Data Firehouse delivery stream must begin with theaws-fsx
prefix. -
If you do not provide a destination in
AuditLogDestination
, Amazon FSx will create and use a log stream in the CloudWatch Logs/aws/fsx/windows
log group. -
If
AuditLogDestination
is provided and the resource does not exist, the request will fail with aBadRequest
error. -
If
FileAccessAuditLogLevel
andFileShareAccessAuditLogLevel
are both set toDISABLED
, you cannot specify a destination inAuditLogDestination
.
sourceimpl WindowsAuditLogCreateConfiguration
impl WindowsAuditLogCreateConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture WindowsAuditLogCreateConfiguration
Trait Implementations
sourceimpl Clone for WindowsAuditLogCreateConfiguration
impl Clone for WindowsAuditLogCreateConfiguration
sourcefn clone(&self) -> WindowsAuditLogCreateConfiguration
fn clone(&self) -> WindowsAuditLogCreateConfiguration
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 PartialEq<WindowsAuditLogCreateConfiguration> for WindowsAuditLogCreateConfiguration
impl PartialEq<WindowsAuditLogCreateConfiguration> for WindowsAuditLogCreateConfiguration
sourcefn eq(&self, other: &WindowsAuditLogCreateConfiguration) -> bool
fn eq(&self, other: &WindowsAuditLogCreateConfiguration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WindowsAuditLogCreateConfiguration) -> bool
fn ne(&self, other: &WindowsAuditLogCreateConfiguration) -> bool
This method tests for !=
.
impl StructuralPartialEq for WindowsAuditLogCreateConfiguration
Auto Trait Implementations
impl RefUnwindSafe for WindowsAuditLogCreateConfiguration
impl Send for WindowsAuditLogCreateConfiguration
impl Sync for WindowsAuditLogCreateConfiguration
impl Unpin for WindowsAuditLogCreateConfiguration
impl UnwindSafe for WindowsAuditLogCreateConfiguration
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