Class LoggingOptions.Builder

java.lang.Object
software.amazon.awscdk.services.opensearchservice.LoggingOptions.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<LoggingOptions>
Enclosing interface:
LoggingOptions

@Stability(Stable) public static final class LoggingOptions.Builder extends Object implements software.amazon.jsii.Builder<LoggingOptions>
A builder for LoggingOptions
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • appLogEnabled

      @Stability(Stable) public LoggingOptions.Builder appLogEnabled(Boolean appLogEnabled)
      Parameters:
      appLogEnabled - Specify if Amazon OpenSearch Service application logging should be set up. Requires Elasticsearch version 5.1 or later or OpenSearch version 1.0 or later. An explicit false is required when disabling it from true.
      Returns:
      this
    • appLogGroup

      @Stability(Stable) public LoggingOptions.Builder appLogGroup(ILogGroup appLogGroup)
      Parameters:
      appLogGroup - Log Amazon OpenSearch Service application logs to this log group.
      Returns:
      this
    • auditLogEnabled

      @Stability(Stable) public LoggingOptions.Builder auditLogEnabled(Boolean auditLogEnabled)
      Parameters:
      auditLogEnabled - Specify if Amazon OpenSearch Service audit logging should be set up. Requires Elasticsearch version 6.7 or later or OpenSearch version 1.0 or later and fine grained access control to be enabled.
      Returns:
      this
    • auditLogGroup

      @Stability(Stable) public LoggingOptions.Builder auditLogGroup(ILogGroup auditLogGroup)
      Parameters:
      auditLogGroup - Log Amazon OpenSearch Service audit logs to this log group.
      Returns:
      this
    • slowIndexLogEnabled

      @Stability(Stable) public LoggingOptions.Builder slowIndexLogEnabled(Boolean slowIndexLogEnabled)
      Parameters:
      slowIndexLogEnabled - Specify if slow index logging should be set up. Requires Elasticsearch version 5.1 or later or OpenSearch version 1.0 or later. An explicit false is required when disabling it from true.
      Returns:
      this
    • slowIndexLogGroup

      @Stability(Stable) public LoggingOptions.Builder slowIndexLogGroup(ILogGroup slowIndexLogGroup)
      Parameters:
      slowIndexLogGroup - Log slow indices to this log group.
      Returns:
      this
    • slowSearchLogEnabled

      @Stability(Stable) public LoggingOptions.Builder slowSearchLogEnabled(Boolean slowSearchLogEnabled)
      Parameters:
      slowSearchLogEnabled - Specify if slow search logging should be set up. Requires Elasticsearch version 5.1 or later or OpenSearch version 1.0 or later. An explicit false is required when disabling it from true.
      Returns:
      this
    • slowSearchLogGroup

      @Stability(Stable) public LoggingOptions.Builder slowSearchLogGroup(ILogGroup slowSearchLogGroup)
      Parameters:
      slowSearchLogGroup - Log slow searches to this log group.
      Returns:
      this
    • build

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