# CaptureConfigurationProperty

Specifies what to capture when the instrumentation point is hit.

- Source: Generated code
- Type last changed: v2.274.0 · 20 Oct 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationsignals as applicationsignals } from 'aws-cdk-lib';
const captureConfigurationProperty: applicationsignals.CfnInstrumentationConfig.CaptureConfigurationProperty = {
  codeCapture: {
    captureLimits: {
      maxCollectionDepth: 123,
      maxCollectionWidth: 123,
      maxFieldsPerObject: 123,
      maxHits: 123,
      maxObjectDepth: 123,
      maxStackFrames: 123,
      maxStackTraceSize: 123,
      maxStringLength: 123,
    },

    // the properties below are optional
    captureArguments: ['captureArguments'],
    captureLocals: ['captureLocals'],
    captureReturn: false,
    captureStackTrace: false,
  },
};
```

## Properties

- `codeCapture`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInstrumentationConfig.CodeCaptureConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_applicationsignals.CfnInstrumentationConfig.CodeCaptureConfigurationProperty.html) (required) — Defines what data to capture for code-level instrumentation.
