TracingConfigProperty Struct
The function's AWS X-Ray tracing configuration. To sample and record incoming requests, set Mode to Active .
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 tracingConfigProperty: lambda.CfnFunction.TracingConfigProperty = {
mode: 'mode',
};
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_
tracing_config_property = lambda.CfnFunction.TracingConfigProperty(
mode="mode"
)
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.*;
TracingConfigProperty tracingConfigProperty = TracingConfigProperty.builder()
.mode("mode")
.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 tracingConfigProperty = new TracingConfigProperty {
Mode = "mode"
};
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"
tracingConfigProperty := &TracingConfigProperty{
Mode: jsii.String("mode"),
}
Properties
The tracing mode.