{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-codepipeline/json-schema/amazon-codepipeline-list-rule-executions-input-schema.json",
  "title": "ListRuleExecutionsInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-codepipeline-operations-api-openapi.yml#/components/schemas/ListRuleExecutionsInput",
  "type": "object",
  "properties": {
    "pipelineName": {
      "type": "string",
      "description": "The name of the pipeline for which you want to get execution summary information."
    },
    "filter": {
      "$ref": "#/$defs/RuleExecutionFilter"
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value. Pipeline history is limited to the most recent 12 months, based on pipeline execution start times. Default value is 100."
    },
    "nextToken": {
      "type": "string",
      "description": "The token that was returned from the previous ListRuleExecutions call, which can be used to return the next set of rule executions in the list."
    }
  },
  "required": [
    "pipelineName"
  ],
  "$defs": {
    "LatestInPipelineExecutionFilter": {
      "type": "object",
      "properties": {
        "pipelineExecutionId": {
          "type": "string",
          "description": "The execution ID for the latest execution in the pipeline."
        },
        "startTimeRange": {
          "type": "string",
          "enum": [
            "Latest",
            "All"
          ],
          "description": "The start time to filter on for the latest execution in the pipeline. Valid options: All Latest"
        }
      },
      "required": [
        "pipelineExecutionId",
        "startTimeRange"
      ]
    },
    "RuleExecutionFilter": {
      "type": "object",
      "properties": {
        "pipelineExecutionId": {
          "type": "string",
          "description": "The pipeline execution ID used to filter rule execution history."
        },
        "latestInPipelineExecution": {
          "$ref": "#/$defs/LatestInPipelineExecutionFilter"
        }
      }
    }
  }
}