This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.
AWS::ApplicationSignals::InstrumentationConfig CodeLocation
Identifies a code location to instrument, including the programming language, code unit, class, method, file path, and optional line number.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "ClassName" :String, "CodeUnit" :String, "FilePath" :String, "Language" :String, "LineNumber" :Integer, "MethodName" :String}
YAML
ClassName:StringCodeUnit:StringFilePath:StringLanguage:StringLineNumber:IntegerMethodName:String
Properties
ClassName-
The class or type name that contains the method. This is required for Java and optional for Python module-level functions.
Required: No
Type: String
Minimum:
1Maximum:
128Update requires: Replacement
CodeUnit-
The package, module, or namespace that contains the target code, for example
com.amazon.paymentorpayment_service.Required: No
Type: String
Minimum:
1Maximum:
128Update requires: Replacement
FilePath-
The source file path relative to the project or source root, such as
src/payment/PaymentProcessor.javaorsrc/payment/PaymentProcessor.py.Required: Yes
Type: String
Minimum:
1Maximum:
1024Update requires: Replacement
Language-
The programming language for this instrumentation point, such as Java, Python, or JavaScript.
Required: Yes
Type: String
Allowed values:
Java | Python | JavascriptUpdate requires: Replacement
LineNumber-
The line number to instrument. Provide this to disambiguate overloaded methods and to target a specific line when needed.
Required: No
Type: Integer
Minimum:
1Update requires: Replacement
MethodName-
The method or function name to instrument, such as
validateCreditCardor__init__.Required: No
Type: String
Minimum:
1Maximum:
80Update requires: Replacement