AWS::Lambda::Function TracingConfig - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::Lambda::Function TracingConfig

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

Syntax

To declare this entity in your Amazon 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