Skip to content
v2.274.0

LocationProperty Struct Added in v2.274.0 ​

The location where instrumentation should be applied.

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 ​

codeLocationIResolvable | CfnInstrumentationConfig.CodeLocationPropertycode_locationtyping.Union[IResolvable, CodeLocationProperty]codeLocationIResolvableCodeLocationIResolvableCodeLocationinterface{}required#
Identifies a code location to instrument.