Class CfnFunctionPropsMixin.LoggingConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnFunctionPropsMixin.LoggingConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionPropsMixin.LoggingConfigProperty>
- Enclosing interface:
CfnFunctionPropsMixin.LoggingConfigProperty
@Stability(Stable)
public static final class CfnFunctionPropsMixin.LoggingConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunctionPropsMixin.LoggingConfigProperty>
A builder for
CfnFunctionPropsMixin.LoggingConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationLogLevel(String applicationLogLevel) Sets the value ofCfnFunctionPropsMixin.LoggingConfigProperty.getApplicationLogLevel()build()Builds the configured instance.Sets the value ofCfnFunctionPropsMixin.LoggingConfigProperty.getLogFormat()Sets the value ofCfnFunctionPropsMixin.LoggingConfigProperty.getLogGroup()logGroup(ILogGroupRef logGroup) Sets the value ofCfnFunctionPropsMixin.LoggingConfigProperty.getLogGroup()systemLogLevel(String systemLogLevel) Sets the value ofCfnFunctionPropsMixin.LoggingConfigProperty.getSystemLogLevel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationLogLevel
@Stability(Stable) public CfnFunctionPropsMixin.LoggingConfigProperty.Builder applicationLogLevel(String applicationLogLevel) Sets the value ofCfnFunctionPropsMixin.LoggingConfigProperty.getApplicationLogLevel()- Parameters:
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 of detail and lower, whereTRACEis the highest level andFATALis the lowest.- Returns:
this
-
logFormat
@Stability(Stable) public CfnFunctionPropsMixin.LoggingConfigProperty.Builder logFormat(String logFormat) Sets the value ofCfnFunctionPropsMixin.LoggingConfigProperty.getLogFormat()- Parameters:
logFormat- The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.- Returns:
this
-
logGroup
@Stability(Stable) public CfnFunctionPropsMixin.LoggingConfigProperty.Builder logGroup(String logGroup) Sets the value ofCfnFunctionPropsMixin.LoggingConfigProperty.getLogGroup()- Parameters:
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.- Returns:
this
-
logGroup
@Stability(Stable) public CfnFunctionPropsMixin.LoggingConfigProperty.Builder logGroup(ILogGroupRef logGroup) Sets the value ofCfnFunctionPropsMixin.LoggingConfigProperty.getLogGroup()- Parameters:
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.- Returns:
this
-
systemLogLevel
@Stability(Stable) public CfnFunctionPropsMixin.LoggingConfigProperty.Builder systemLogLevel(String systemLogLevel) Sets the value ofCfnFunctionPropsMixin.LoggingConfigProperty.getSystemLogLevel()- Parameters:
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 of detail and lower, whereDEBUGis the highest level andWARNis the lowest.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunctionPropsMixin.LoggingConfigProperty>- Returns:
- a new instance of
CfnFunctionPropsMixin.LoggingConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-