{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-get-code-security-scan-configuration-response-schema.json",
  "title": "GetCodeSecurityScanConfigurationResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-inspector-codesecurity-api-openapi.yml#/components/schemas/GetCodeSecurityScanConfigurationResponse",
  "type": "object",
  "properties": {
    "scanConfigurationArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the scan configuration."
    },
    "name": {
      "type": "string",
      "description": "The name of the scan configuration."
    },
    "configuration": {
      "$ref": "#/$defs/CodeSecurityScanConfiguration"
    },
    "level": {
      "type": "string",
      "enum": [
        "ORGANIZATION",
        "ACCOUNT"
      ],
      "description": "The security level for the scan configuration."
    },
    "scopeSettings": {
      "$ref": "#/$defs/ScopeSettings"
    },
    "createdAt": {
      "type": "string",
      "description": "The timestamp when the scan configuration was created."
    },
    "lastUpdatedAt": {
      "type": "string",
      "description": "The timestamp when the scan configuration was last updated."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags associated with the scan configuration."
    }
  },
  "$defs": {
    "CodeSecurityScanConfiguration": {
      "type": "object",
      "properties": {
        "periodicScanConfiguration": {
          "$ref": "#/$defs/PeriodicScanConfiguration"
        },
        "continuousIntegrationScanConfiguration": {
          "$ref": "#/$defs/ContinuousIntegrationScanConfiguration"
        },
        "ruleSetCategories": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "SAST",
              "IAC",
              "SCA"
            ]
          },
          "description": "The categories of security rules to be applied during the scan."
        }
      },
      "required": [
        "ruleSetCategories"
      ]
    },
    "ContinuousIntegrationScanConfiguration": {
      "type": "object",
      "properties": {
        "supportedEvents": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "PULL_REQUEST",
              "PUSH"
            ]
          },
          "description": "The repository events that trigger continuous integration scans, such as pull requests or commits."
        }
      },
      "required": [
        "supportedEvents"
      ]
    },
    "PeriodicScanConfiguration": {
      "type": "object",
      "properties": {
        "frequency": {
          "type": "string",
          "enum": [
            "WEEKLY",
            "MONTHLY",
            "NEVER"
          ],
          "description": "The frequency at which periodic scans are performed (such as weekly or monthly). If you don't provide the frequencyExpression Amazon Inspector chooses day for the scan to run. If you provide the frequencyExpression, the schedule must match the specified frequency."
        },
        "frequencyExpression": {
          "type": "string",
          "description": "The schedule expression for periodic scans, in cron format."
        }
      }
    },
    "ScopeSettings": {
      "type": "object",
      "properties": {
        "projectSelectionScope": {
          "type": "string",
          "enum": [
            "ALL"
          ],
          "description": "The scope of projects to be selected for scanning within the integrated repositories. Setting the value to ALL applies the scope settings to all existing and future projects imported into Amazon Inspector."
        }
      }
    }
  }
}