Class CfnFileSystem.AuditLogConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.fsx.CfnFileSystem.AuditLogConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFileSystem.AuditLogConfigurationProperty>
- Enclosing interface:
CfnFileSystem.AuditLogConfigurationProperty
@Stability(Stable)
public static final class CfnFileSystem.AuditLogConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFileSystem.AuditLogConfigurationProperty>
A builder for
CfnFileSystem.AuditLogConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauditLogDestination
(String auditLogDestination) Sets the value ofCfnFileSystem.AuditLogConfigurationProperty.getAuditLogDestination()
build()
Builds the configured instance.fileAccessAuditLogLevel
(String fileAccessAuditLogLevel) Sets the value ofCfnFileSystem.AuditLogConfigurationProperty.getFileAccessAuditLogLevel()
fileShareAccessAuditLogLevel
(String fileShareAccessAuditLogLevel)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fileAccessAuditLogLevel
@Stability(Stable) public CfnFileSystem.AuditLogConfigurationProperty.Builder fileAccessAuditLogLevel(String fileAccessAuditLogLevel) Sets the value ofCfnFileSystem.AuditLogConfigurationProperty.getFileAccessAuditLogLevel()
- Parameters:
fileAccessAuditLogLevel
- Sets which attempt type is logged by Amazon FSx for file and folder accesses. This parameter is required.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.
- Returns:
this
-
auditLogDestination
@Stability(Stable) public CfnFileSystem.AuditLogConfigurationProperty.Builder auditLogDestination(String auditLogDestination) Sets the value ofCfnFileSystem.AuditLogConfigurationProperty.getAuditLogDestination()
- Parameters:
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 Firehose delivery stream must begin with theaws-fsx
prefix.The destination ARN (either CloudWatch Logs log group or Kinesis Data Firehose delivery stream) must be in the same AWS partition, AWS Region , and AWS account as your Amazon FSx file system.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFileSystem.AuditLogConfigurationProperty>
- Returns:
- a new instance of
CfnFileSystem.AuditLogConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-