@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LoggingConfig extends Object implements Serializable, Cloneable, StructuredPojo
The function's Amazon CloudWatch Logs configuration settings.
Constructor and Description |
---|
LoggingConfig() |
Modifier and Type | Method and Description |
---|---|
LoggingConfig |
clone() |
boolean |
equals(Object obj) |
String |
getApplicationLogLevel()
Set this property to filter the application logs for your function that Lambda sends to CloudWatch.
|
String |
getLogFormat()
The format in which Lambda sends your function's application and system logs to CloudWatch.
|
String |
getLogGroup()
The name of the Amazon CloudWatch log group the function sends logs to.
|
String |
getSystemLogLevel()
Set this property to filter the system logs for your function that Lambda sends to CloudWatch.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setApplicationLogLevel(String applicationLogLevel)
Set this property to filter the application logs for your function that Lambda sends to CloudWatch.
|
void |
setLogFormat(String logFormat)
The format in which Lambda sends your function's application and system logs to CloudWatch.
|
void |
setLogGroup(String logGroup)
The name of the Amazon CloudWatch log group the function sends logs to.
|
void |
setSystemLogLevel(String systemLogLevel)
Set this property to filter the system logs for your function that Lambda sends to CloudWatch.
|
String |
toString()
Returns a string representation of this object.
|
LoggingConfig |
withApplicationLogLevel(ApplicationLogLevel applicationLogLevel)
Set this property to filter the application logs for your function that Lambda sends to CloudWatch.
|
LoggingConfig |
withApplicationLogLevel(String applicationLogLevel)
Set this property to filter the application logs for your function that Lambda sends to CloudWatch.
|
LoggingConfig |
withLogFormat(LogFormat logFormat)
The format in which Lambda sends your function's application and system logs to CloudWatch.
|
LoggingConfig |
withLogFormat(String logFormat)
The format in which Lambda sends your function's application and system logs to CloudWatch.
|
LoggingConfig |
withLogGroup(String logGroup)
The name of the Amazon CloudWatch log group the function sends logs to.
|
LoggingConfig |
withSystemLogLevel(String systemLogLevel)
Set this property to filter the system logs for your function that Lambda sends to CloudWatch.
|
LoggingConfig |
withSystemLogLevel(SystemLogLevel systemLogLevel)
Set this property to filter the system logs for your function that Lambda sends to CloudWatch.
|
public void setLogFormat(String logFormat)
The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
logFormat
- The format in which Lambda sends your function's application and system logs to CloudWatch. Select between
plain text and structured JSON.LogFormat
public String getLogFormat()
The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
LogFormat
public LoggingConfig withLogFormat(String logFormat)
The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
logFormat
- The format in which Lambda sends your function's application and system logs to CloudWatch. Select between
plain text and structured JSON.LogFormat
public LoggingConfig withLogFormat(LogFormat logFormat)
The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.
logFormat
- The format in which Lambda sends your function's application and system logs to CloudWatch. Select between
plain text and structured JSON.LogFormat
public void setApplicationLogLevel(String applicationLogLevel)
Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level and lower.
applicationLogLevel
- Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda
only sends application logs at the selected level and lower.ApplicationLogLevel
public String getApplicationLogLevel()
Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level and lower.
ApplicationLogLevel
public LoggingConfig withApplicationLogLevel(String applicationLogLevel)
Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level and lower.
applicationLogLevel
- Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda
only sends application logs at the selected level and lower.ApplicationLogLevel
public LoggingConfig withApplicationLogLevel(ApplicationLogLevel applicationLogLevel)
Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda only sends application logs at the selected level and lower.
applicationLogLevel
- Set this property to filter the application logs for your function that Lambda sends to CloudWatch. Lambda
only sends application logs at the selected level and lower.ApplicationLogLevel
public void setSystemLogLevel(String systemLogLevel)
Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level and lower.
systemLogLevel
- Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only
sends system logs at the selected level and lower.SystemLogLevel
public String getSystemLogLevel()
Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level and lower.
SystemLogLevel
public LoggingConfig withSystemLogLevel(String systemLogLevel)
Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level and lower.
systemLogLevel
- Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only
sends system logs at the selected level and lower.SystemLogLevel
public LoggingConfig withSystemLogLevel(SystemLogLevel systemLogLevel)
Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level and lower.
systemLogLevel
- Set this property to filter the system logs for your function that Lambda sends to CloudWatch. Lambda only
sends system logs at the selected level and lower.SystemLogLevel
public void setLogGroup(String logGroup)
The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to
a default log group named /aws/lambda/<function name>
. To use a different log group, enter an
existing log group or enter a new log group name.
logGroup
- The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send
logs to a default log group named /aws/lambda/<function name>
. To use a different log
group, enter an existing log group or enter a new log group name.public String getLogGroup()
The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to
a default log group named /aws/lambda/<function name>
. To use a different log group, enter an
existing log group or enter a new log group name.
/aws/lambda/<function name>
. To use a different log
group, enter an existing log group or enter a new log group name.public LoggingConfig withLogGroup(String logGroup)
The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send logs to
a default log group named /aws/lambda/<function name>
. To use a different log group, enter an
existing log group or enter a new log group name.
logGroup
- The name of the Amazon CloudWatch log group the function sends logs to. By default, Lambda functions send
logs to a default log group named /aws/lambda/<function name>
. To use a different log
group, enter an existing log group or enter a new log group name.public String toString()
toString
in class Object
Object.toString()
public LoggingConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2024. All rights reserved.