{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-list-rules-input-schema.json",
  "title": "ListRulesInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datazone-operations-api-openapi.yml#/components/schemas/ListRulesInput",
  "type": "object",
  "properties": {
    "domainIdentifier": {
      "type": "string",
      "description": "The ID of the domain in which the rules are to be listed."
    },
    "targetType": {
      "type": "string",
      "enum": [
        "DOMAIN_UNIT"
      ],
      "description": "The target type of the rule."
    },
    "targetIdentifier": {
      "type": "string",
      "description": "The target ID of the rule."
    },
    "ruleType": {
      "type": "string",
      "enum": [
        "METADATA_FORM_ENFORCEMENT",
        "GLOSSARY_TERM_ENFORCEMENT"
      ],
      "description": "The type of the rule."
    },
    "action": {
      "type": "string",
      "enum": [
        "CREATE_LISTING_CHANGE_SET",
        "CREATE_SUBSCRIPTION_REQUEST"
      ],
      "description": "The action of the rule."
    },
    "projectIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The IDs of projects in which rules are to be listed."
    },
    "assetTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The asset types of the rule."
    },
    "dataProduct": {
      "type": "boolean",
      "description": "The data product of the rule."
    },
    "includeCascaded": {
      "type": "boolean",
      "description": "Specifies whether to include cascading rules in the results."
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of rules to return in a single call to ListRules. When the number of rules to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to ListRules to list the next set of rules."
    },
    "nextToken": {
      "type": "string",
      "description": "When the number of rules is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of rules, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListRules to list the next set of rules."
    }
  },
  "required": [
    "domainIdentifier",
    "targetType",
    "targetIdentifier"
  ]
}