{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-guardduty/json-schema/amazon-guardduty-get-filter-response-schema.json",
  "title": "GetFilterResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-guardduty-filter-api-openapi.yml#/components/schemas/GetFilterResponse",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The name of the filter."
    },
    "Description": {
      "type": "string",
      "description": "The description of the filter."
    },
    "Action": {
      "type": "string",
      "enum": [
        "NOOP",
        "ARCHIVE"
      ],
      "description": "Specifies the action that is to be applied to the findings that match the filter."
    },
    "Rank": {
      "type": "integer",
      "description": "Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings."
    },
    "FindingCriteria": {
      "$ref": "#/$defs/FindingCriteria"
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags of the filter resource."
    },
    "CreatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp when the filter was created. This field is not available for filters that were created before the lifecycle metadata feature was enabled (legacy filters)."
    },
    "UpdatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp when the filter was last updated. For legacy filters, this field is present only after the filter has been updated at least once since the lifecycle metadata feature was enabled."
    },
    "Version": {
      "type": "integer",
      "description": "The version of the filter. Every time the filter is updated, the version increments by 1. This field is not available for legacy filters that were created before the lifecycle metadata feature was enabled."
    }
  },
  "required": [
    "Name",
    "Action",
    "FindingCriteria"
  ],
  "$defs": {
    "Condition": {
      "type": "object",
      "properties": {
        "Eq": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Represents the equal condition to be applied to a single field when querying for findings. Max values: 50"
        },
        "Neq": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Represents the not equal condition to be applied to a single field when querying for findings. Max values: 50"
        },
        "Gt": {
          "type": "integer",
          "description": "Represents a greater than condition to be applied to a single field when querying for findings."
        },
        "Gte": {
          "type": "integer",
          "description": "Represents a greater than or equal condition to be applied to a single field when querying for findings."
        },
        "Lt": {
          "type": "integer",
          "description": "Represents a less than condition to be applied to a single field when querying for findings."
        },
        "Lte": {
          "type": "integer",
          "description": "Represents a less than or equal condition to be applied to a single field when querying for findings."
        },
        "Equals": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Represents an equal condition to be applied to a single field when querying for findings. Max values: 50"
        },
        "NotEquals": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Represents a not equal condition to be applied to a single field when querying for findings. Max values: 50"
        },
        "GreaterThan": {
          "type": "integer",
          "description": "Represents a greater than condition to be applied to a single field when querying for findings."
        },
        "GreaterThanOrEqual": {
          "type": "integer",
          "description": "Represents a greater than or equal condition to be applied to a single field when querying for findings."
        },
        "LessThan": {
          "type": "integer",
          "description": "Represents a less than condition to be applied to a single field when querying for findings."
        },
        "LessThanOrEqual": {
          "type": "integer",
          "description": "Represents a less than or equal condition to be applied to a single field when querying for findings."
        },
        "Matches": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Represents the match condition to be applied to a single field when querying for findings. The matches condition is available only for create-filter and update-filter APIs."
        },
        "NotMatches": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Represents the not match condition to be applied to a single field when querying for findings. The not-matches condition is available only for create-filter and update-filter APIs."
        }
      }
    },
    "FindingCriteria": {
      "type": "object",
      "properties": {
        "Criterion": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/Condition"
          },
          "description": "Represents a map of finding properties that match specified conditions and values when querying findings."
        }
      }
    }
  }
}