# CodeLocationProperty

Identifies a code location to instrument.

- 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 codeLocationProperty: applicationsignals.CfnInstrumentationConfig.CodeLocationProperty = {
  filePath: 'filePath',
  language: 'language',

  // the properties below are optional
  className: 'className',
  codeUnit: 'codeUnit',
  lineNumber: 123,
  methodName: 'methodName',
};
```

## Properties

- `className`: string — The class or type name that contains the method.

- `codeUnit`: string — The package, module, or namespace that contains the target code.

- `filePath`: string (required) — The source file path relative to the project or source root.

- `language`: string (required) — The programming language for this instrumentation point.

- `lineNumber`: number — The line number to instrument.

- `methodName`: string — The method or function name to instrument.
