{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-personalize/json-schema/amazon-personalize-create-filter-request-schema.json",
  "title": "CreateFilterRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-personalize-filter-api-openapi.yml#/components/schemas/CreateFilterRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the filter to create."
    },
    "datasetGroupArn": {
      "type": "string",
      "description": "The ARN of the dataset group that the filter will belong to."
    },
    "filterExpression": {
      "type": "string",
      "description": "The filter expression defines which items are included or excluded from recommendations. Filter expression must follow specific format rules. For information about filter expression structure and syntax, see Filter expressions."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of tags to apply to the filter."
    }
  },
  "required": [
    "name",
    "datasetGroupArn",
    "filterExpression"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "tagKey": {
          "type": "string",
          "description": "One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for more specific tag values."
        },
        "tagValue": {
          "type": "string",
          "description": "The optional part of a key-value pair that makes up a tag. A value acts as a descriptor within a tag category (key)."
        }
      },
      "required": [
        "tagKey",
        "tagValue"
      ]
    }
  }
}