{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-create-asset-filter-input-schema.json",
  "title": "CreateAssetFilterInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datazone-filters-api-openapi.yml#/components/schemas/CreateAssetFilterInput",
  "type": "object",
  "properties": {
    "domainIdentifier": {
      "type": "string",
      "description": "The ID of the domain in which you want to create an asset filter."
    },
    "assetIdentifier": {
      "type": "string",
      "description": "The ID of the data asset."
    },
    "name": {
      "type": "string",
      "description": "The name of the asset filter."
    },
    "description": {
      "type": "string",
      "description": "The description of the asset filter."
    },
    "configuration": {
      "$ref": "#/$defs/AssetFilterConfiguration"
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that is provided to ensure the idempotency of the request."
    }
  },
  "required": [
    "domainIdentifier",
    "assetIdentifier",
    "name",
    "configuration"
  ],
  "$defs": {
    "AssetFilterConfiguration": {
      "type": "object",
      "properties": {
        "columnConfiguration": {
          "$ref": "#/$defs/ColumnFilterConfiguration"
        },
        "rowConfiguration": {
          "$ref": "#/$defs/RowFilterConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "ColumnFilterConfiguration": {
      "type": "object",
      "properties": {
        "includedColumnNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specifies whether to include column names."
        }
      }
    },
    "EqualToExpression": {
      "type": "object",
      "properties": {
        "columnName": {
          "type": "string",
          "description": "The name of the column."
        },
        "value": {
          "type": "string",
          "description": "The value that might be equal to an expression."
        }
      },
      "required": [
        "columnName",
        "value"
      ]
    },
    "GreaterThanExpression": {
      "type": "object",
      "properties": {
        "columnName": {
          "type": "string",
          "description": "The name of the column."
        },
        "value": {
          "type": "string",
          "description": "The value that might be greater than an expression."
        }
      },
      "required": [
        "columnName",
        "value"
      ]
    },
    "GreaterThanOrEqualToExpression": {
      "type": "object",
      "properties": {
        "columnName": {
          "type": "string",
          "description": "The name of the column."
        },
        "value": {
          "type": "string",
          "description": "The value that might be greater than or equal to an expression."
        }
      },
      "required": [
        "columnName",
        "value"
      ]
    },
    "InExpression": {
      "type": "object",
      "properties": {
        "columnName": {
          "type": "string",
          "description": "The name of the column."
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The values that might be in the expression."
        }
      },
      "required": [
        "columnName",
        "values"
      ]
    },
    "IsNotNullExpression": {
      "type": "object",
      "properties": {
        "columnName": {
          "type": "string",
          "description": "The name of the column."
        }
      },
      "required": [
        "columnName"
      ]
    },
    "IsNullExpression": {
      "type": "object",
      "properties": {
        "columnName": {
          "type": "string",
          "description": "The name of the column."
        }
      },
      "required": [
        "columnName"
      ]
    },
    "LessThanExpression": {
      "type": "object",
      "properties": {
        "columnName": {
          "type": "string",
          "description": "The name of the column."
        },
        "value": {
          "type": "string",
          "description": "The value that might be less than the expression."
        }
      },
      "required": [
        "columnName",
        "value"
      ]
    },
    "LessThanOrEqualToExpression": {
      "type": "object",
      "properties": {
        "columnName": {
          "type": "string",
          "description": "The name of the column."
        },
        "value": {
          "type": "string",
          "description": "The value that might be less than or equal to an expression."
        }
      },
      "required": [
        "columnName",
        "value"
      ]
    },
    "LikeExpression": {
      "type": "object",
      "properties": {
        "columnName": {
          "type": "string",
          "description": "The name of the column."
        },
        "value": {
          "type": "string",
          "description": "The value that might be like the expression."
        }
      },
      "required": [
        "columnName",
        "value"
      ]
    },
    "NotEqualToExpression": {
      "type": "object",
      "properties": {
        "columnName": {
          "type": "string",
          "description": "The name of the column."
        },
        "value": {
          "type": "string",
          "description": "The value that might not be equal to the expression."
        }
      },
      "required": [
        "columnName",
        "value"
      ]
    },
    "NotInExpression": {
      "type": "object",
      "properties": {
        "columnName": {
          "type": "string",
          "description": "The name of the column."
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The value that might not be in the expression."
        }
      },
      "required": [
        "columnName",
        "values"
      ]
    },
    "NotLikeExpression": {
      "type": "object",
      "properties": {
        "columnName": {
          "type": "string",
          "description": "The name of the column."
        },
        "value": {
          "type": "string",
          "description": "The value that might not be like the expression."
        }
      },
      "required": [
        "columnName",
        "value"
      ]
    },
    "RowFilter": {
      "type": "object",
      "properties": {
        "expression": {
          "$ref": "#/$defs/RowFilterExpression"
        },
        "and": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RowFilter"
          },
          "description": "The 'and' clause of the row filter."
        },
        "or": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RowFilter"
          },
          "description": "The 'or' clause of the row filter."
        }
      },
      "description": "Exactly one member is set."
    },
    "RowFilterConfiguration": {
      "type": "object",
      "properties": {
        "rowFilter": {
          "$ref": "#/$defs/RowFilter"
        },
        "sensitive": {
          "type": "boolean",
          "description": "Specifies whether the row filter is sensitive."
        }
      },
      "required": [
        "rowFilter"
      ]
    },
    "RowFilterExpression": {
      "type": "object",
      "properties": {
        "equalTo": {
          "$ref": "#/$defs/EqualToExpression"
        },
        "notEqualTo": {
          "$ref": "#/$defs/NotEqualToExpression"
        },
        "greaterThan": {
          "$ref": "#/$defs/GreaterThanExpression"
        },
        "lessThan": {
          "$ref": "#/$defs/LessThanExpression"
        },
        "greaterThanOrEqualTo": {
          "$ref": "#/$defs/GreaterThanOrEqualToExpression"
        },
        "lessThanOrEqualTo": {
          "$ref": "#/$defs/LessThanOrEqualToExpression"
        },
        "isNull": {
          "$ref": "#/$defs/IsNullExpression"
        },
        "isNotNull": {
          "$ref": "#/$defs/IsNotNullExpression"
        },
        "in": {
          "$ref": "#/$defs/InExpression"
        },
        "notIn": {
          "$ref": "#/$defs/NotInExpression"
        },
        "like": {
          "$ref": "#/$defs/LikeExpression"
        },
        "notLike": {
          "$ref": "#/$defs/NotLikeExpression"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}