Skip to content
v2.274.0

CodeLocationProperty Struct Added in v2.274.0 ​

Identifies a code location to instrument.

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 ​

classNamestringclass_namestrclassNameStringClassNamestringClassName*string#
The class or type name that contains the method.
codeUnitstringcode_unitstrcodeUnitStringCodeUnitstringCodeUnit*string#
The package, module, or namespace that contains the target code.
filePathstringfile_pathstrfilePathStringFilePathstringFilePath*stringrequired#
The source file path relative to the project or source root.
languagestringlanguagestrlanguageStringLanguagestringLanguage*stringrequired#
The programming language for this instrumentation point.
lineNumbernumberline_numberint | floatlineNumberNumberLineNumberdoubleLineNumber*float64#
The line number to instrument.
methodNamestringmethod_namestrmethodNameStringMethodNamestringMethodName*string#
The method or function name to instrument.