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>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • fileAccessAuditLogLevel

      @Stability(Stable) public CfnFileSystem.AuditLogConfigurationProperty.Builder fileAccessAuditLogLevel(String fileAccessAuditLogLevel)
      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
    • fileShareAccessAuditLogLevel

      @Stability(Stable) public CfnFileSystem.AuditLogConfigurationProperty.Builder fileShareAccessAuditLogLevel(String fileShareAccessAuditLogLevel)
      Parameters:
      fileShareAccessAuditLogLevel - Sets which attempt type is logged by Amazon FSx for file share accesses. This parameter is required.
      • 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.
      Returns:
      this
    • auditLogDestination

      @Stability(Stable) public CfnFileSystem.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/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 AWS partition, AWS Region , and AWS account as your Amazon FSx file system.

      Returns:
      this
    • build

      @Stability(Stable) public CfnFileSystem.AuditLogConfigurationProperty build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnFileSystem.AuditLogConfigurationProperty>
      Returns:
      a new instance of CfnFileSystem.AuditLogConfigurationProperty
      Throws:
      NullPointerException - if any required attribute was not provided