Amazon Inspector · JSON Structure

Inspector Code Vulnerability Details Structure

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

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

CodeVulnerabilityDetails is a JSON Structure definition published by Amazon Inspector, describing 8 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

cwes detectorId detectorName detectorTags filePath referenceUrls ruleId sourceLambdaLayerArn

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-vulnerability-details-structure.json",
  "name": "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"
  ]
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/inspector-code-vulnerability-details-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

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.

A second provider on the same verified email joins the account you already have.