{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-device-management/json-schema/amazon-iot-device-management-list-topic-rules-response-schema.json",
  "title": "ListTopicRulesResponse",
  "description": "The output from the ListTopicRules operation.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-device-management-rules-api-openapi.yml#/components/schemas/ListTopicRulesResponse",
  "type": "object",
  "properties": {
    "rules": {
      "allOf": [
        {
          "$ref": "#/$defs/TopicRuleList"
        },
        {
          "description": "The rules."
        }
      ]
    },
    "nextToken": {
      "allOf": [
        {
          "$ref": "#/$defs/NextToken"
        },
        {
          "description": "The token to use to get the next set of results, or <b>null</b> if there are no additional results."
        }
      ]
    }
  },
  "$defs": {
    "CreatedAtDate": {
      "type": "string",
      "format": "date-time"
    },
    "IsDisabled": {
      "type": "boolean"
    },
    "NextToken": {
      "type": "string"
    },
    "RuleArn": {
      "type": "string"
    },
    "RuleName": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_]+$",
      "minLength": 1,
      "maxLength": 128
    },
    "TopicPattern": {
      "type": "string"
    },
    "TopicRuleList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TopicRuleListItem"
      }
    },
    "TopicRuleListItem": {
      "type": "object",
      "properties": {
        "ruleArn": {
          "allOf": [
            {
              "$ref": "#/$defs/RuleArn"
            },
            {
              "description": "The rule ARN."
            }
          ]
        },
        "ruleName": {
          "allOf": [
            {
              "$ref": "#/$defs/RuleName"
            },
            {
              "description": "The name of the rule."
            }
          ]
        },
        "topicPattern": {
          "allOf": [
            {
              "$ref": "#/$defs/TopicPattern"
            },
            {
              "description": "The pattern for the topic names that apply."
            }
          ]
        },
        "createdAt": {
          "allOf": [
            {
              "$ref": "#/$defs/CreatedAtDate"
            },
            {
              "description": "The date and time the rule was created."
            }
          ]
        },
        "ruleDisabled": {
          "allOf": [
            {
              "$ref": "#/$defs/IsDisabled"
            },
            {
              "description": "Specifies whether the rule is disabled."
            }
          ]
        }
      },
      "description": "Describes a rule."
    }
  }
}