CodeFilePath is a JSON Structure definition published by Amazon Inspector, describing 4 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/amazon-inspector/refs/heads/main/json-structure/inspector-code-file-path-structure.json",
"name": "CodeFilePath",
"description": "Contains information on where a code vulnerability is located in your Lambda function.",
"type": "object",
"properties": {
"endLine": {
"allOf": [
{
"$ref": "#/components/schemas/Integer"
},
{
"description": "The line number of the last line of code that a vulnerability was found in."
}
]
},
"fileName": {
"allOf": [
{
"$ref": "#/components/schemas/NonEmptyString"
},
{
"description": "The name of the file the code vulnerability was found in."
}
]
},
"filePath": {
"allOf": [
{
"$ref": "#/components/schemas/NonEmptyString"
},
{
"description": "The file path to the code that a vulnerability was found in."
}
]
},
"startLine": {
"allOf": [
{
"$ref": "#/components/schemas/Integer"
},
{
"description": "The line number of the first line of code that a vulnerability was found in."
}
]
}
},
"required": [
"endLine",
"fileName",
"filePath",
"startLine"
]
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.