Class CfnFileSystemPropsMixin.AuditLogConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.fsx.CfnFileSystemPropsMixin.AuditLogConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFileSystemPropsMixin.AuditLogConfigurationProperty>
- Enclosing interface:
CfnFileSystemPropsMixin.AuditLogConfigurationProperty
@Stability(Stable)
public static final class CfnFileSystemPropsMixin.AuditLogConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFileSystemPropsMixin.AuditLogConfigurationProperty>
A builder for
CfnFileSystemPropsMixin.AuditLogConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauditLogDestination(String auditLogDestination) build()Builds the configured instance.fileAccessAuditLogLevel(String fileAccessAuditLogLevel) fileShareAccessAuditLogLevel(String fileShareAccessAuditLogLevel)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
auditLogDestination
@Stability(Stable) public CfnFileSystemPropsMixin.AuditLogConfigurationProperty.Builder auditLogDestination(String auditLogDestination) - 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/fsxprefix. The name of the Amazon Kinesis Data Firehose delivery stream must begin with theaws-fsxprefix.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
-
fileAccessAuditLogLevel
@Stability(Stable) public CfnFileSystemPropsMixin.AuditLogConfigurationProperty.Builder fileAccessAuditLogLevel(String fileAccessAuditLogLevel) Sets the value ofCfnFileSystemPropsMixin.AuditLogConfigurationProperty.getFileAccessAuditLogLevel()- Parameters:
fileAccessAuditLogLevel- 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.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFileSystemPropsMixin.AuditLogConfigurationProperty>- Returns:
- a new instance of
CfnFileSystemPropsMixin.AuditLogConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-