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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionappLogEnabled
(Boolean appLogEnabled) Sets the value ofLoggingOptions.getAppLogEnabled()
appLogGroup
(ILogGroup appLogGroup) Sets the value ofLoggingOptions.getAppLogGroup()
auditLogEnabled
(Boolean auditLogEnabled) Sets the value ofLoggingOptions.getAuditLogEnabled()
auditLogGroup
(ILogGroup auditLogGroup) Sets the value ofLoggingOptions.getAuditLogGroup()
build()
Builds the configured instance.slowIndexLogEnabled
(Boolean slowIndexLogEnabled) Sets the value ofLoggingOptions.getSlowIndexLogEnabled()
slowIndexLogGroup
(ILogGroup slowIndexLogGroup) Sets the value ofLoggingOptions.getSlowIndexLogGroup()
slowSearchLogEnabled
(Boolean slowSearchLogEnabled) Sets the value ofLoggingOptions.getSlowSearchLogEnabled()
slowSearchLogGroup
(ILogGroup slowSearchLogGroup) Sets the value ofLoggingOptions.getSlowSearchLogGroup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appLogEnabled
Sets the value ofLoggingOptions.getAppLogEnabled()
- 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 explicitfalse
is required when disabling it fromtrue
.- Returns:
this
-
appLogGroup
Sets the value ofLoggingOptions.getAppLogGroup()
- Parameters:
appLogGroup
- Log Amazon OpenSearch Service application logs to this log group.- Returns:
this
-
auditLogEnabled
Sets the value ofLoggingOptions.getAuditLogEnabled()
- 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
Sets the value ofLoggingOptions.getAuditLogGroup()
- Parameters:
auditLogGroup
- Log Amazon OpenSearch Service audit logs to this log group.- Returns:
this
-
slowIndexLogEnabled
Sets the value ofLoggingOptions.getSlowIndexLogEnabled()
- 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 explicitfalse
is required when disabling it fromtrue
.- Returns:
this
-
slowIndexLogGroup
Sets the value ofLoggingOptions.getSlowIndexLogGroup()
- Parameters:
slowIndexLogGroup
- Log slow indices to this log group.- Returns:
this
-
slowSearchLogEnabled
Sets the value ofLoggingOptions.getSlowSearchLogEnabled()
- 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 explicitfalse
is required when disabling it fromtrue
.- Returns:
this
-
slowSearchLogGroup
Sets the value ofLoggingOptions.getSlowSearchLogGroup()
- Parameters:
slowSearchLogGroup
- Log slow searches to this log group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LoggingOptions>
- Returns:
- a new instance of
LoggingOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-