AWS::Lambda::Function TracingConfig - AWS CloudFormation

AWS::Lambda::Function TracingConfig

The function's AWS X-Ray tracing configuration. To sample and record incoming requests, set Mode to Active.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Mode" : String }

YAML

Mode: String

Properties

Mode

The tracing mode.

Required: No

Type: String

Allowed values: Active | PassThrough

Update requires: No interruption

Examples

Tracing Configuration

Enable active tracing on a function.

YAML

TracingConfig: Mode: Active