#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for WindowsAuditLogCreateConfiguration
Implementations
sourceimpl Builder
impl Builder
sourcepub fn file_access_audit_log_level(
self,
input: WindowsAccessAuditLogLevel
) -> Self
pub fn file_access_audit_log_level(
self,
input: WindowsAccessAuditLogLevel
) -> Self
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.
sourcepub fn set_file_access_audit_log_level(
self,
input: Option<WindowsAccessAuditLogLevel>
) -> Self
pub fn set_file_access_audit_log_level(
self,
input: Option<WindowsAccessAuditLogLevel>
) -> Self
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.
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, input: impl Into<String>) -> Self
pub fn audit_log_destination(self, input: impl Into<String>) -> Self
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
.
sourcepub fn set_audit_log_destination(self, input: Option<String>) -> Self
pub fn set_audit_log_destination(self, input: Option<String>) -> Self
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
.
sourcepub fn build(self) -> WindowsAuditLogCreateConfiguration
pub fn build(self) -> WindowsAuditLogCreateConfiguration
Consumes the builder and constructs a WindowsAuditLogCreateConfiguration
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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