{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-list-rules-response-schema.json",
  "title": "ListRulesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-rules-api-openapi.yml#/components/schemas/ListRulesResponse",
  "type": "object",
  "properties": {
    "RuleSummaryList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RuleSummary"
      },
      "description": "Summary information about a rule."
    },
    "NextToken": {
      "type": "string",
      "description": "If there are additional results, this is the token for the next set of results."
    }
  },
  "required": [
    "RuleSummaryList"
  ],
  "$defs": {
    "ActionSummary": {
      "type": "object",
      "properties": {
        "ActionType": {
          "type": "string",
          "enum": [
            "CREATE_TASK",
            "ASSIGN_CONTACT_CATEGORY",
            "GENERATE_EVENTBRIDGE_EVENT",
            "SEND_NOTIFICATION",
            "CREATE_CASE",
            "UPDATE_CASE",
            "ASSIGN_SLA",
            "END_ASSOCIATED_TASKS",
            "END_ASSOCIATED_EMAILS",
            "SUBMIT_AUTO_EVALUATION",
            "EXTRACT_INFORMATION",
            "SEND_IN_APP_NOTIFICATION"
          ],
          "description": "The action type."
        }
      },
      "required": [
        "ActionType"
      ]
    },
    "RuleSummary": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the rule."
        },
        "RuleId": {
          "type": "string",
          "description": "A unique identifier for the rule."
        },
        "RuleArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the rule."
        },
        "EventSourceName": {
          "type": "string",
          "enum": [
            "OnPostCallAnalysisAvailable",
            "OnRealTimeCallAnalysisAvailable",
            "OnRealTimeChatAnalysisAvailable",
            "OnPostChatAnalysisAvailable",
            "OnAfterCallWorkAvailable",
            "OnAfterChatWorkAvailable",
            "OnEmailAnalysisAvailable",
            "OnZendeskTicketCreate",
            "OnZendeskTicketStatusUpdate",
            "OnSalesforceCaseCreate",
            "OnContactEvaluationSubmit",
            "OnMetricDataUpdate",
            "OnCaseCreate",
            "OnCaseUpdate",
            "OnSlaBreach",
            "OnAlertUpdate",
            "OnSchedulePublish",
            "OnScheduleUpdate",
            "OnScheduleTimeOffRequestActivity"
          ],
          "description": "The name of the event source."
        },
        "PublishStatus": {
          "type": "string",
          "enum": [
            "DRAFT",
            "PUBLISHED"
          ],
          "description": "The publish status of the rule."
        },
        "RuleCapabilityTiers": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "GenerativeAI"
            ]
          },
          "description": "The list of capability tiers associated with the rule. Used for categorizing rules by capability (for example, GenerativeAI)."
        },
        "ActionSummaries": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ActionSummary"
          },
          "description": "A list of ActionTypes associated with a rule."
        },
        "CreatedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp for when the rule was created."
        },
        "LastUpdatedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp for when the rule was last updated."
        }
      },
      "required": [
        "Name",
        "RuleId",
        "RuleArn",
        "EventSourceName",
        "PublishStatus",
        "ActionSummaries",
        "CreatedTime",
        "LastUpdatedTime"
      ]
    }
  }
}