Amazon Inspector · JSON Structure

Inspector Code File Path Structure

Contains information on where a code vulnerability is located in your Lambda function.

Type: object Properties: 4 Required: 4
ComplianceContainer SecurityEC2LambdaSecurityVulnerability Scanning

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.

Properties

endLine fileName filePath startLine

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$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"
  ]
}