{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-list-coverage-response-schema.json",
  "title": "ListCoverageResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-inspector-coverage-api-openapi.yml#/components/schemas/ListCoverageResponse",
  "type": "object",
  "properties": {
    "nextToken": {
      "type": "string",
      "description": "A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page."
    },
    "coveredResources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CoveredResource"
      },
      "description": "An object that contains details on the covered resources in your environment."
    }
  },
  "$defs": {
    "CodeRepositoryMetadata": {
      "type": "object",
      "properties": {
        "projectName": {
          "type": "string",
          "description": "The name of the project in the code repository."
        },
        "integrationArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the code security integration associated with the repository."
        },
        "providerType": {
          "type": "string",
          "description": "The type of repository provider (such as GitHub, GitLab, etc.)."
        },
        "providerTypeVisibility": {
          "type": "string",
          "description": "The visibility setting of the repository (public or private)."
        },
        "lastScannedCommitId": {
          "type": "string",
          "description": "The ID of the last commit that was scanned in the repository."
        },
        "scanConfiguration": {
          "$ref": "#/$defs/ProjectCodeSecurityScanConfiguration"
        },
        "onDemandScan": {
          "$ref": "#/$defs/CodeRepositoryOnDemandScan"
        }
      },
      "required": [
        "projectName",
        "providerType",
        "providerTypeVisibility"
      ]
    },
    "CodeRepositoryOnDemandScan": {
      "type": "object",
      "properties": {
        "lastScannedCommitId": {
          "type": "string",
          "description": "The ID of the last commit that was scanned during an on-demand scan."
        },
        "lastScanAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp when the last on-demand scan was performed."
        },
        "scanStatus": {
          "$ref": "#/$defs/ScanStatus"
        }
      }
    },
    "ContainerImageMetadata": {
      "type": "object",
      "properties": {
        "imageTags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The tags attached to the container image."
        },
        "imagePulledAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the container image was pulled."
        },
        "lastInUseAt": {
          "type": "string",
          "format": "date-time",
          "description": "The last time the container image was in use."
        },
        "inUseCount": {
          "type": "integer",
          "description": "The number of times the container image is in use."
        }
      }
    },
    "ContainerRegistryMetadata": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the container registry."
        }
      }
    },
    "ContainerRepositoryMetadata": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the container repository."
        },
        "scanFrequency": {
          "type": "string",
          "description": "The scan frequency for the container repository."
        }
      }
    },
    "CoveredResource": {
      "type": "object",
      "properties": {
        "resourceType": {
          "type": "string",
          "description": "The type of the covered resource."
        },
        "resourceId": {
          "type": "string",
          "description": "The ID of the covered resource."
        },
        "accountId": {
          "type": "string",
          "description": "The Amazon Web Services account ID of the covered resource."
        },
        "scanType": {
          "type": "string",
          "description": "The Amazon Inspector scan type covering the resource."
        },
        "scanStatus": {
          "$ref": "#/$defs/ScanStatus"
        },
        "resourceMetadata": {
          "$ref": "#/$defs/ResourceScanMetadata"
        },
        "lastScannedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the resource was last checked for vulnerabilities."
        },
        "scanMode": {
          "type": "string",
          "description": "The scan method that is applied to the instance."
        },
        "provider": {
          "type": "string",
          "description": "The cloud provider of the covered resource."
        },
        "providerAccountId": {
          "type": "string",
          "description": "The cloud provider account ID of the covered resource."
        },
        "providerOrgId": {
          "type": "string",
          "description": "The cloud provider organization ID of the covered resource."
        },
        "providerRegion": {
          "type": "string",
          "description": "The cloud provider region of the covered resource."
        },
        "providerPartition": {
          "type": "string",
          "description": "The cloud provider partition of the covered resource."
        }
      },
      "required": [
        "resourceType",
        "resourceId",
        "accountId",
        "scanType"
      ]
    },
    "Ec2Metadata": {
      "type": "object",
      "properties": {
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags attached to the instance."
        },
        "amiId": {
          "type": "string",
          "description": "The ID of the Amazon Machine Image (AMI) used to launch the instance."
        },
        "platform": {
          "type": "string",
          "description": "The platform of the instance."
        }
      }
    },
    "EcrContainerImageMetadata": {
      "type": "object",
      "properties": {
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Tags associated with the Amazon ECR image metadata."
        },
        "imagePulledAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date an image was last pulled at."
        },
        "lastInUseAt": {
          "type": "string",
          "format": "date-time",
          "description": "The last time an Amazon ECR image was used in an Amazon ECS task or Amazon EKS pod."
        },
        "inUseCount": {
          "type": "integer",
          "description": "The number of Amazon ECS tasks or Amazon EKS pods where the Amazon ECR container image is in use."
        }
      }
    },
    "EcrRepositoryMetadata": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the Amazon ECR repository."
        },
        "scanFrequency": {
          "type": "string",
          "description": "The frequency of scans."
        }
      }
    },
    "LambdaFunctionMetadata": {
      "type": "object",
      "properties": {
        "functionTags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The resource tags on an Amazon Web Services Lambda function."
        },
        "layers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The layers for an Amazon Web Services Lambda function. A Lambda function can have up to five layers."
        },
        "functionName": {
          "type": "string",
          "description": "The name of a function."
        },
        "runtime": {
          "type": "string",
          "description": "An Amazon Web Services Lambda function's runtime."
        }
      }
    },
    "MachineImageMetadata": {
      "type": "object",
      "properties": {
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags associated with the machine image."
        },
        "platform": {
          "type": "string",
          "description": "The platform of the machine image."
        }
      }
    },
    "ProjectCodeSecurityScanConfiguration": {
      "type": "object",
      "properties": {
        "periodicScanConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProjectPeriodicScanConfiguration"
          },
          "description": "The periodic scan configurations applied to the project."
        },
        "continuousIntegrationScanConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProjectContinuousIntegrationScanConfiguration"
          },
          "description": "The continuous integration scan configurations applied to the project."
        }
      }
    },
    "ProjectContinuousIntegrationScanConfiguration": {
      "type": "object",
      "properties": {
        "supportedEvent": {
          "type": "string",
          "enum": [
            "PULL_REQUEST",
            "PUSH"
          ],
          "description": "The repository event that triggers continuous integration scans for the project."
        },
        "ruleSetCategories": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "SAST",
              "IAC",
              "SCA"
            ]
          },
          "description": "The categories of security rules applied during continuous integration scans for the project."
        }
      }
    },
    "ProjectPeriodicScanConfiguration": {
      "type": "object",
      "properties": {
        "frequencyExpression": {
          "type": "string",
          "description": "The schedule expression for periodic scans, in cron format, applied to the project."
        },
        "ruleSetCategories": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "SAST",
              "IAC",
              "SCA"
            ]
          },
          "description": "The categories of security rules applied during periodic scans for the project."
        }
      }
    },
    "ResourceScanMetadata": {
      "type": "object",
      "properties": {
        "ecrRepository": {
          "$ref": "#/$defs/EcrRepositoryMetadata"
        },
        "ecrImage": {
          "$ref": "#/$defs/EcrContainerImageMetadata"
        },
        "ec2": {
          "$ref": "#/$defs/Ec2Metadata"
        },
        "lambdaFunction": {
          "$ref": "#/$defs/LambdaFunctionMetadata"
        },
        "codeRepository": {
          "$ref": "#/$defs/CodeRepositoryMetadata"
        },
        "vmInstance": {
          "$ref": "#/$defs/VmInstanceMetadata"
        },
        "containerImage": {
          "$ref": "#/$defs/ContainerImageMetadata"
        },
        "containerRepository": {
          "$ref": "#/$defs/ContainerRepositoryMetadata"
        },
        "containerRegistry": {
          "$ref": "#/$defs/ContainerRegistryMetadata"
        },
        "serverlessFunction": {
          "$ref": "#/$defs/ServerlessFunctionMetadata"
        },
        "machineImage": {
          "$ref": "#/$defs/MachineImageMetadata"
        }
      }
    },
    "ScanStatus": {
      "type": "object",
      "properties": {
        "statusCode": {
          "type": "string",
          "description": "The status code of the scan."
        },
        "reason": {
          "type": "string",
          "description": "The scan status. Possible return values and descriptions are: ACCESS_DENIED - Resource access policy restricting Amazon Inspector access. Please update the IAM policy. ACCESS_DENIED_TO_ENCRYPTION_KEY - The KMS key policy doesn't allow Amazon Inspector access. Update the key policy. DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED - Amazon Inspector failed to extract the package inventory because the package collection time exceeding the maximum threshold of 15 minutes. DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED - The SSM agent couldn't send inventory to Amazon Inspector because the SSM q"
        }
      },
      "required": [
        "statusCode",
        "reason"
      ]
    },
    "ServerlessFunctionMetadata": {
      "type": "object",
      "properties": {
        "serverlessFunctionName": {
          "type": "string",
          "description": "The name of the serverless function."
        },
        "runtime": {
          "type": "string",
          "description": "The runtime of the serverless function."
        },
        "functionTags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags associated with the serverless function."
        }
      }
    },
    "VmInstanceMetadata": {
      "type": "object",
      "properties": {
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags associated with the VM instance."
        },
        "platform": {
          "type": "string",
          "description": "The platform of the VM instance."
        },
        "inventoryHash": {
          "type": "string",
          "description": "The inventory hash of the VM instance."
        },
        "vmImageReference": {
          "type": "string",
          "description": "The image reference of the VM instance."
        }
      }
    }
  }
}