Interface CfnFunction.LoggingConfigProperty
- All Superinterfaces:
- software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
- CfnFunction.LoggingConfigProperty.Jsii$Proxy
- Enclosing class:
- CfnFunction
@Stability(Stable)
public static interface CfnFunction.LoggingConfigProperty
extends software.amazon.jsii.JsiiSerializable
The function's Amazon CloudWatch Logs configuration settings.
 
Example:
 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.lambda.*;
 LoggingConfigProperty loggingConfigProperty = LoggingConfigProperty.builder()
         .applicationLogLevel("applicationLogLevel")
         .logFormat("logFormat")
         .logGroup("logGroup")
         .systemLogLevel("systemLogLevel")
         .build();
 - See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFunction.LoggingConfigPropertystatic final classAn implementation forCfnFunction.LoggingConfigProperty
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()default StringSet this property to filter the application logs for your function that Lambda sends to CloudWatch.default StringThe format in which Lambda sends your function's application and system logs to CloudWatch.default StringThe name of the Amazon CloudWatch log group the function sends logs to.default StringSet this property to filter the system logs for your function that Lambda sends to CloudWatch.Methods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Method Details- 
getApplicationLogLevelSet this property to filter the application logs for your function that Lambda sends to CloudWatch.Lambda only sends application logs at the selected level of detail and lower, where TRACEis the highest level andFATALis the lowest.- See Also:
 
- 
getLogFormatThe format in which Lambda sends your function's application and system logs to CloudWatch.Select between plain text and structured JSON. - See Also:
 
- 
getLogGroupThe 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.- See Also:
 
- 
getSystemLogLevelSet this property to filter the system logs for your function that Lambda sends to CloudWatch.Lambda only sends system logs at the selected level of detail and lower, where DEBUGis the highest level andWARNis the lowest.- See Also:
 
- 
builder
 
-