# LocationProperty

The location where instrumentation should be applied.

- 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 locationProperty: applicationsignals.CfnInstrumentationConfig.LocationProperty = {
  codeLocation: {
    filePath: 'filePath',
    language: 'language',

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

## Properties

- `codeLocation`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInstrumentationConfig.CodeLocationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_applicationsignals.CfnInstrumentationConfig.CodeLocationProperty.html) (required) — Identifies a code location to instrument.
