#[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 Firehose 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§
source§impl 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 Firehose 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
.
source§impl WindowsAuditLogCreateConfiguration
impl WindowsAuditLogCreateConfiguration
sourcepub fn builder() -> WindowsAuditLogCreateConfigurationBuilder
pub fn builder() -> WindowsAuditLogCreateConfigurationBuilder
Creates a new builder-style object to manufacture WindowsAuditLogCreateConfiguration
.
Trait Implementations§
source§impl Clone for WindowsAuditLogCreateConfiguration
impl Clone for WindowsAuditLogCreateConfiguration
source§fn clone(&self) -> WindowsAuditLogCreateConfiguration
fn clone(&self) -> WindowsAuditLogCreateConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for WindowsAuditLogCreateConfiguration
impl PartialEq for WindowsAuditLogCreateConfiguration
source§fn eq(&self, other: &WindowsAuditLogCreateConfiguration) -> bool
fn eq(&self, other: &WindowsAuditLogCreateConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WindowsAuditLogCreateConfiguration
Auto Trait Implementations§
impl Freeze for WindowsAuditLogCreateConfiguration
impl RefUnwindSafe for WindowsAuditLogCreateConfiguration
impl Send for WindowsAuditLogCreateConfiguration
impl Sync for WindowsAuditLogCreateConfiguration
impl Unpin for WindowsAuditLogCreateConfiguration
impl UnwindSafe for WindowsAuditLogCreateConfiguration
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more