public static final class CfnApplication.LogProperty.Builder
extends java.lang.Object
CfnApplication.LogProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnApplication.LogProperty |
build()
Builds the configured instance.
|
CfnApplication.LogProperty.Builder |
encoding(java.lang.String encoding)
Sets the value of
CfnApplication.LogProperty.getEncoding() |
CfnApplication.LogProperty.Builder |
logGroupName(java.lang.String logGroupName)
Sets the value of
CfnApplication.LogProperty.getLogGroupName() |
CfnApplication.LogProperty.Builder |
logPath(java.lang.String logPath)
Sets the value of
CfnApplication.LogProperty.getLogPath() |
CfnApplication.LogProperty.Builder |
logType(java.lang.String logType)
Sets the value of
CfnApplication.LogProperty.getLogType() |
CfnApplication.LogProperty.Builder |
patternSet(java.lang.String patternSet)
Sets the value of
CfnApplication.LogProperty.getPatternSet() |
public CfnApplication.LogProperty.Builder logType(java.lang.String logType)
CfnApplication.LogProperty.getLogType()
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
, and DEFAULT
.this
public CfnApplication.LogProperty.Builder encoding(java.lang.String encoding)
CfnApplication.LogProperty.getEncoding()
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 encodingthis
public CfnApplication.LogProperty.Builder logGroupName(java.lang.String logGroupName)
CfnApplication.LogProperty.getLogGroupName()
logGroupName
- The CloudWatch log group name to be associated with the monitored log.this
public CfnApplication.LogProperty.Builder logPath(java.lang.String logPath)
CfnApplication.LogProperty.getLogPath()
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 .this
public CfnApplication.LogProperty.Builder patternSet(java.lang.String patternSet)
CfnApplication.LogProperty.getPatternSet()
patternSet
- The log pattern set.this
public CfnApplication.LogProperty build()
CfnApplication.LogProperty
java.lang.NullPointerException
- if any required attribute was not provided