Amazon Inspector · JSON Structure

Inspector Code Line Structure

Contains information on the lines of code associated with a code snippet.

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

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

Properties

content lineNumber

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-line-structure.json",
  "name": "CodeLine",
  "description": "Contains information on the lines of code associated with a code snippet.",
  "type": "object",
  "properties": {
    "content": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CodeLineContentString"
        },
        {
          "description": "The content of a line of code"
        }
      ]
    },
    "lineNumber": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Integer"
        },
        {
          "description": "The line number that a section of code is located at."
        }
      ]
    }
  },
  "required": [
    "content",
    "lineNumber"
  ]
}