Skip to content
v2.277.0

TelemetryConfigProperty Struct ​

The telemetry configuration.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const telemetryConfigProperty: lambda.CfnWebFunctionRevision.TelemetryConfigProperty = {
  loggingConfig: {
    applicationLogLevel: 'applicationLogLevel',
    logGroup: 'logGroup',
    systemLogLevel: 'systemLogLevel',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_

telemetry_config_property = lambda.CfnWebFunctionRevision.TelemetryConfigProperty(
    logging_config=lambda.CfnWebFunctionRevision.LoggingConfigProperty(
        application_log_level="applicationLogLevel",
        log_group="logGroup",
        system_log_level="systemLogLevel"
    )
)
java
// 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.*;

TelemetryConfigProperty telemetryConfigProperty = TelemetryConfigProperty.builder()
        .loggingConfig(LoggingConfigProperty.builder()
                .applicationLogLevel("applicationLogLevel")
                .logGroup("logGroup")
                .systemLogLevel("systemLogLevel")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;

var telemetryConfigProperty = new TelemetryConfigProperty {
    LoggingConfig = new LoggingConfigProperty {
        ApplicationLogLevel = "applicationLogLevel",
        LogGroup = "logGroup",
        SystemLogLevel = "systemLogLevel"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

telemetryConfigProperty := &TelemetryConfigProperty{
	LoggingConfig: &LoggingConfigProperty{
		ApplicationLogLevel: jsii.String("applicationLogLevel"),
		LogGroup: jsii.String("logGroup"),
		SystemLogLevel: jsii.String("systemLogLevel"),
	},
}

Properties ​

loggingConfigoptionalIResolvable | CfnWebFunctionRevision.LoggingConfigPropertylogging_configoptionaltyping.Union[IResolvable, LoggingConfigProperty]loggingConfigoptionalIResolvableLoggingConfigoptionalIResolvableLoggingConfigoptionalinterface{} #
The logging configuration.