{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-get-asset-filter-output-schema.json",
  "title": "GetAssetFilterOutput",
  "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/GetAssetFilterOutput",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The ID of the asset filter."
    },
    "domainId": {
      "type": "string",
      "description": "The ID of the domain where you want to get an asset filter."
    },
    "assetId": {
      "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."
    },
    "status": {
      "type": "string",
      "enum": [
        "VALID",
        "INVALID"
      ],
      "description": "The status of the asset filter."
    },
    "configuration": {
      "$ref": "#/$defs/AssetFilterConfiguration"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp at which the asset filter was created."
    },
    "errorMessage": {
      "type": "string",
      "description": "The error message that is displayed if the action does not complete successfully."
    },
    "effectiveColumnNames": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The column names of the asset filter."
    },
    "effectiveRowFilter": {
      "type": "string",
      "description": "The row filter of the asset filter."
    }
  },
  "required": [
    "id",
    "domainId",
    "assetId",
    "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."
    }
  }
}