/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The configuration that Amazon FSx for Windows File Server uses to audit and
* log user accesses of files, folders, and file shares on the Amazon FSx for
* Windows File Server file system. For more information, see
* File access auditing.See Also:
AWS
* API Reference
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 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 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 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 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 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.
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.
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.
The Amazon Resource Name (ARN) for 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.
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 the
* aws-fsx
prefix.
The destination ARN (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.
*/ inline const Aws::String& GetAuditLogDestination() const{ return m_auditLogDestination; } /** *The Amazon Resource Name (ARN) for 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.
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 the
* aws-fsx
prefix.
The destination ARN (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.
*/ inline bool AuditLogDestinationHasBeenSet() const { return m_auditLogDestinationHasBeenSet; } /** *The Amazon Resource Name (ARN) for 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.
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 the
* aws-fsx
prefix.
The destination ARN (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.
*/ inline void SetAuditLogDestination(const Aws::String& value) { m_auditLogDestinationHasBeenSet = true; m_auditLogDestination = value; } /** *The Amazon Resource Name (ARN) for 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.
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 the
* aws-fsx
prefix.
The destination ARN (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.
*/ inline void SetAuditLogDestination(Aws::String&& value) { m_auditLogDestinationHasBeenSet = true; m_auditLogDestination = std::move(value); } /** *The Amazon Resource Name (ARN) for 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.
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 the
* aws-fsx
prefix.
The destination ARN (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.
*/ inline void SetAuditLogDestination(const char* value) { m_auditLogDestinationHasBeenSet = true; m_auditLogDestination.assign(value); } /** *The Amazon Resource Name (ARN) for 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.
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 the
* aws-fsx
prefix.
The destination ARN (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.
*/ inline WindowsAuditLogConfiguration& WithAuditLogDestination(const Aws::String& value) { SetAuditLogDestination(value); return *this;} /** *The Amazon Resource Name (ARN) for 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.
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 the
* aws-fsx
prefix.
The destination ARN (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.
*/ inline WindowsAuditLogConfiguration& WithAuditLogDestination(Aws::String&& value) { SetAuditLogDestination(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) for 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.
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 the
* aws-fsx
prefix.
The destination ARN (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.
*/ inline WindowsAuditLogConfiguration& WithAuditLogDestination(const char* value) { SetAuditLogDestination(value); return *this;} private: WindowsAccessAuditLogLevel m_fileAccessAuditLogLevel; bool m_fileAccessAuditLogLevelHasBeenSet = false; WindowsAccessAuditLogLevel m_fileShareAccessAuditLogLevel; bool m_fileShareAccessAuditLogLevelHasBeenSet = false; Aws::String m_auditLogDestination; bool m_auditLogDestinationHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws