Amazon Inspector · Schema

CodeVulnerabilityDetails

Contains information on the code vulnerability identified in your Lambda function.

ComplianceContainer SecurityEC2LambdaSecurityVulnerability Scanning

Properties

Name Type Description
cwes object
detectorId object
detectorName object
detectorTags object
filePath object
referenceUrls object
ruleId object
sourceLambdaLayerArn object
View JSON Schema on GitHub

JSON Schema

inspector-code-vulnerability-details-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-inspector/refs/heads/main/json-schema/inspector-code-vulnerability-details-schema.json",
  "title": "CodeVulnerabilityDetails",
  "description": "Contains information on the code vulnerability identified in your Lambda function.",
  "type": "object",
  "properties": {
    "cwes": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CweList"
        },
        {
          "description": "The Common Weakness Enumeration (CWE) item associated with the detected vulnerability."
        }
      ]
    },
    "detectorId": {
      "allOf": [
        {
          "$ref": "#/components/schemas/NonEmptyString"
        },
        {
          "description": "The ID for the Amazon CodeGuru detector associated with the finding. For more information on detectors see <a href=\"https://docs.aws.amazon.com/codeguru/detector-library\">Amazon CodeGuru Detector Library</a>."
        }
      ]
    },
    "detectorName": {
      "allOf": [
        {
          "$ref": "#/components/schemas/NonEmptyString"
        },
        {
          "description": "The name of the detector used to identify the code vulnerability. For more information on detectors see <a href=\"https://docs.aws.amazon.com/codeguru/detector-library\">CodeGuru Detector Library</a>."
        }
      ]
    },
    "detectorTags": {
      "allOf": [
        {
          "$ref": "#/components/schemas/DetectorTagList"
        },
        {
          "description": "The detector tag associated with the vulnerability. Detector tags group related vulnerabilities by common themes or tactics. For a list of available tags by programming language, see <a href=\"https://docs.aws.amazon.com/codeguru/detector-library/java/tags/\">Java tags</a>, or <a href=\"https://docs.aws.amazon.com/codeguru/detector-library/python/tags/\">Python tags</a>. "
        }
      ]
    },
    "filePath": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CodeFilePath"
        },
        {
          "description": "Contains information on where the code vulnerability is located in your code."
        }
      ]
    },
    "referenceUrls": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ReferenceUrls"
        },
        {
          "description": "A URL containing supporting documentation about the code vulnerability detected."
        }
      ]
    },
    "ruleId": {
      "allOf": [
        {
          "$ref": "#/components/schemas/NonEmptyString"
        },
        {
          "description": "The identifier for a rule that was used to detect the code vulnerability."
        }
      ]
    },
    "sourceLambdaLayerArn": {
      "allOf": [
        {
          "$ref": "#/components/schemas/LambdaLayerArn"
        },
        {
          "description": "The Amazon Resource Name (ARN) of the Lambda layer that the code vulnerability was detected in."
        }
      ]
    }
  },
  "required": [
    "cwes",
    "detectorId",
    "detectorName",
    "filePath"
  ]
}