Class CfnApplicationPropsMixin.LogProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.applicationinsights.CfnApplicationPropsMixin.LogProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplicationPropsMixin.LogProperty>
- Enclosing interface:
CfnApplicationPropsMixin.LogProperty
@Stability(Stable)
public static final class CfnApplicationPropsMixin.LogProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplicationPropsMixin.LogProperty>
A builder for
CfnApplicationPropsMixin.LogProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnApplicationPropsMixin.LogProperty.getEncoding()logGroupName(String logGroupName) Sets the value ofCfnApplicationPropsMixin.LogProperty.getLogGroupName()Sets the value ofCfnApplicationPropsMixin.LogProperty.getLogPath()Sets the value ofCfnApplicationPropsMixin.LogProperty.getLogType()patternSet(String patternSet) Sets the value ofCfnApplicationPropsMixin.LogProperty.getPatternSet()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encoding
Sets the value ofCfnApplicationPropsMixin.LogProperty.getEncoding()- Parameters:
encoding- The type of encoding of the logs to be monitored. The specified encoding should be included in the list of CloudWatch agent supported encodings. If not provided, CloudWatch Application Insights uses the default encoding type for the log type:APPLICATION/DEFAULT: utf-8 encodingSQL_SERVER: utf-16 encodingIIS: ascii encoding
- Returns:
this
-
logGroupName
@Stability(Stable) public CfnApplicationPropsMixin.LogProperty.Builder logGroupName(String logGroupName) Sets the value ofCfnApplicationPropsMixin.LogProperty.getLogGroupName()- Parameters:
logGroupName- The CloudWatch log group name to be associated with the monitored log.- Returns:
this
-
logPath
Sets the value ofCfnApplicationPropsMixin.LogProperty.getLogPath()- Parameters:
logPath- The path of the logs to be monitored. The log path must be an absolute Windows or Linux system file path. For more information, see CloudWatch Agent Configuration File: Logs Section .- Returns:
this
-
logType
Sets the value ofCfnApplicationPropsMixin.LogProperty.getLogType()- Parameters:
logType- The log type decides the log patterns against which Application Insights analyzes the log. The log type is selected from the following:SQL_SERVER,MYSQL,MYSQL_SLOW_QUERY,POSTGRESQL,ORACLE_ALERT,ORACLE_LISTENER,IIS,APPLICATION,WINDOWS_EVENTS,WINDOWS_EVENTS_ACTIVE_DIRECTORY,WINDOWS_EVENTS_DNS,WINDOWS_EVENTS_IIS,WINDOWS_EVENTS_SHAREPOINT,SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP,SQL_SERVER_FAILOVER_CLUSTER_INSTANCE,STEP_FUNCTION,API_GATEWAY_ACCESS,API_GATEWAY_EXECUTION,SAP_HANA_LOGS,SAP_HANA_TRACE,SAP_HANA_HIGH_AVAILABILITY, andDEFAULT.- Returns:
this
-
patternSet
@Stability(Stable) public CfnApplicationPropsMixin.LogProperty.Builder patternSet(String patternSet) Sets the value ofCfnApplicationPropsMixin.LogProperty.getPatternSet()- Parameters:
patternSet- The log pattern set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApplicationPropsMixin.LogProperty>- Returns:
- a new instance of
CfnApplicationPropsMixin.LogProperty - Throws:
NullPointerException- if any required attribute was not provided
-