Class CfnApplication.LogProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationinsights.CfnApplication.LogProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.LogProperty>
- Enclosing interface:
CfnApplication.LogProperty
@Stability(Stable)
public static final class CfnApplication.LogProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.LogProperty>
A builder for
CfnApplication.LogProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnApplication.LogProperty.getEncoding()
logGroupName
(String logGroupName) Sets the value ofCfnApplication.LogProperty.getLogGroupName()
Sets the value ofCfnApplication.LogProperty.getLogPath()
Sets the value ofCfnApplication.LogProperty.getLogType()
patternSet
(String patternSet) Sets the value ofCfnApplication.LogProperty.getPatternSet()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logType
Sets the value ofCfnApplication.LogProperty.getLogType()
- Parameters:
logType
- The log type decides the log patterns against which Application Insights analyzes the log. This parameter is required. 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
-
encoding
Sets the value ofCfnApplication.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
Sets the value ofCfnApplication.LogProperty.getLogGroupName()
- Parameters:
logGroupName
- The CloudWatch log group name to be associated with the monitored log.- Returns:
this
-
logPath
Sets the value ofCfnApplication.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
-
patternSet
Sets the value ofCfnApplication.LogProperty.getPatternSet()
- Parameters:
patternSet
- The log pattern set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.LogProperty>
- Returns:
- a new instance of
CfnApplication.LogProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-