Show / Hide Table of Contents

Class CfnFunctionPropsMixin.LoggingConfigProperty

The function's Amazon CloudWatch Logs configuration settings.

Inheritance
object
CfnFunctionPropsMixin.LoggingConfigProperty
Implements
CfnFunctionPropsMixin.ILoggingConfigProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.Mixins.Preview.AWS.Lambda.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnFunctionPropsMixin.LoggingConfigProperty : CfnFunctionPropsMixin.ILoggingConfigProperty
Syntax (vb)
Public Class CfnFunctionPropsMixin.LoggingConfigProperty Implements CfnFunctionPropsMixin.ILoggingConfigProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-loggingconfig.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.Mixins.Preview.AWS.Lambda.Mixins;

             var loggingConfigProperty = new LoggingConfigProperty {
                 ApplicationLogLevel = "applicationLogLevel",
                 LogFormat = "logFormat",
                 LogGroup = "logGroup",
                 SystemLogLevel = "systemLogLevel"
             };

Synopsis

Constructors

LoggingConfigProperty()

The function's Amazon CloudWatch Logs configuration settings.

Properties

ApplicationLogLevel

Set this property to filter the application logs for your function that Lambda sends to CloudWatch.

LogFormat

The format in which Lambda sends your function's application and system logs to CloudWatch.

LogGroup

The name of the Amazon CloudWatch log group the function sends logs to.

SystemLogLevel

Set this property to filter the system logs for your function that Lambda sends to CloudWatch.

Constructors

LoggingConfigProperty()

The function's Amazon CloudWatch Logs configuration settings.

public LoggingConfigProperty()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-loggingconfig.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.Mixins.Preview.AWS.Lambda.Mixins;

             var loggingConfigProperty = new LoggingConfigProperty {
                 ApplicationLogLevel = "applicationLogLevel",
                 LogFormat = "logFormat",
                 LogGroup = "logGroup",
                 SystemLogLevel = "systemLogLevel"
             };

Properties

ApplicationLogLevel

Set this property to filter the application logs for your function that Lambda sends to CloudWatch.

public string? ApplicationLogLevel { get; set; }
Property Value

string

Remarks

Lambda only sends application logs at the selected level of detail and lower, where TRACE is the highest level and FATAL is the lowest.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-loggingconfig.html#cfn-lambda-function-loggingconfig-applicationloglevel

LogFormat

The format in which Lambda sends your function's application and system logs to CloudWatch.

public string? LogFormat { get; set; }
Property Value

string

Remarks

Select between plain text and structured JSON.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-loggingconfig.html#cfn-lambda-function-loggingconfig-logformat

LogGroup

The name of the Amazon CloudWatch log group the function sends logs to.

public string? LogGroup { get; set; }
Property Value

string

Remarks

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: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-loggingconfig.html#cfn-lambda-function-loggingconfig-loggroup

SystemLogLevel

Set this property to filter the system logs for your function that Lambda sends to CloudWatch.

public string? SystemLogLevel { get; set; }
Property Value

string

Remarks

Lambda only sends system logs at the selected level of detail and lower, where DEBUG is the highest level and WARN is the lowest.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-loggingconfig.html#cfn-lambda-function-loggingconfig-systemloglevel

Implements

CfnFunctionPropsMixin.ILoggingConfigProperty
Back to top Generated by DocFX