{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-list-rules-request-schema.json",
  "title": "ListRulesRequest",
  "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/ListRulesRequest",
  "type": "object",
  "properties": {
    "InstanceId": {
      "type": "string",
      "description": "The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance."
    },
    "PublishStatus": {
      "type": "string",
      "enum": [
        "DRAFT",
        "PUBLISHED"
      ],
      "description": "The publish status 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."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of results to return per page."
    },
    "NextToken": {
      "type": "string",
      "description": "The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results."
    }
  },
  "required": [
    "InstanceId"
  ]
}