{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-get-configuration-response-schema.json",
  "title": "GetConfigurationResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-inspector-configuration-api-openapi.yml#/components/schemas/GetConfigurationResponse",
  "type": "object",
  "properties": {
    "ecrConfiguration": {
      "$ref": "#/$defs/EcrConfigurationState"
    },
    "ec2Configuration": {
      "$ref": "#/$defs/Ec2ConfigurationState"
    },
    "amiConfiguration": {
      "$ref": "#/$defs/AmiConfigurationState"
    }
  },
  "$defs": {
    "AmiConfigurationState": {
      "type": "object",
      "properties": {
        "lastLaunchedWithin": {
          "type": "string",
          "description": "Restricts scanning to AMIs that were last launched within the specified duration."
        },
        "createdWithin": {
          "type": "string",
          "description": "Restricts scanning to AMIs that were created within the specified duration."
        },
        "scanModeConfiguration": {
          "$ref": "#/$defs/AmiScanModeConfiguration"
        },
        "status": {
          "type": "string",
          "description": "The status of the AMI scan configuration."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time when the AMI scan configuration was last updated."
        }
      }
    },
    "AmiScanModeConfiguration": {
      "type": "object",
      "properties": {
        "scanMode": {
          "type": "string",
          "description": "The scan mode that determines whether all AMIs are scanned or only those matching the specified tags."
        },
        "tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AmiTagFilter"
          },
          "description": "The tag filters used to select which AMIs are scanned when using targeted scanning."
        },
        "excludeCopiedAmis": {
          "type": "boolean",
          "description": "Whether to exclude AMIs that are copies of other AMIs from scanning."
        },
        "excludeBackupDlmAmis": {
          "type": "boolean",
          "description": "Whether to exclude AMIs created by Amazon Data Lifecycle Manager (DLM) backups from scanning."
        }
      },
      "required": [
        "scanMode"
      ]
    },
    "AmiTagFilter": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The tag key to match against an AMI's tags."
        },
        "value": {
          "type": "string",
          "description": "The tag value to match against an AMI's tags. If omitted, the filter matches on the tag key alone."
        }
      },
      "required": [
        "key"
      ]
    },
    "Ec2ConfigurationState": {
      "type": "object",
      "properties": {
        "scanModeState": {
          "$ref": "#/$defs/Ec2ScanModeState"
        },
        "vmScannerState": {
          "$ref": "#/$defs/VMScannerState"
        }
      }
    },
    "Ec2ScanModeState": {
      "type": "object",
      "properties": {
        "scanMode": {
          "type": "string",
          "description": "The scan method that is applied to the instance."
        },
        "scanModeStatus": {
          "type": "string",
          "description": "The status of the Amazon EC2 scan mode setting."
        }
      }
    },
    "EcrConfigurationState": {
      "type": "object",
      "properties": {
        "rescanDurationState": {
          "$ref": "#/$defs/EcrRescanDurationState"
        }
      }
    },
    "EcrRescanDurationState": {
      "type": "object",
      "properties": {
        "rescanDuration": {
          "type": "string",
          "description": "The rescan duration configured for image push date."
        },
        "status": {
          "type": "string",
          "description": "The status of changes to the ECR automated re-scan duration."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "A timestamp representing when the last time the ECR scan duration setting was changed."
        },
        "pullDateRescanDuration": {
          "type": "string",
          "description": "The rescan duration configured for image pull date."
        },
        "pullDateRescanMode": {
          "type": "string",
          "description": "The pull date for the re-scan mode."
        }
      }
    },
    "VMScannerState": {
      "type": "object",
      "properties": {
        "activated": {
          "type": "boolean",
          "description": "Whether the VM scanner is activated."
        },
        "activatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the VM scanner was activated."
        },
        "status": {
          "type": "string",
          "description": "The status of the VM scanner."
        }
      }
    }
  }
}