{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ecs/json-schema/amazon-ecs-list-service-deployments-request-schema.json",
  "title": "ListServiceDeploymentsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ecs-service-deployment-api-openapi.yml#/components/schemas/ListServiceDeploymentsRequest",
  "type": "object",
  "properties": {
    "service": {
      "type": "string",
      "description": "The ARN or name of the service"
    },
    "cluster": {
      "type": "string",
      "description": "The cluster that hosts the service. This can either be the cluster name or ARN. Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. If you don't specify a cluster, default is used."
    },
    "status": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "PENDING",
          "SUCCESSFUL",
          "STOPPED",
          "STOP_REQUESTED",
          "IN_PROGRESS",
          "ROLLBACK_REQUESTED",
          "ROLLBACK_IN_PROGRESS",
          "ROLLBACK_SUCCESSFUL",
          "ROLLBACK_FAILED"
        ]
      },
      "description": "An optional filter you can use to narrow the results. If you do not specify a status, then all status values are included in the result."
    },
    "createdAt": {
      "$ref": "#/$defs/CreatedAt"
    },
    "nextToken": {
      "type": "string",
      "description": "The nextToken value returned from a ListServiceDeployments request indicating that more results are available to fulfill the request and further calls are needed. If you provided maxResults, it's possible the number of results is fewer than maxResults."
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of service deployment results that ListServiceDeployments returned in paginated output. When this parameter is used, ListServiceDeployments only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListServiceDeployments request with the returned nextToken value. This value can be between 1 and 100. If this parameter isn't used, then ListServiceDeployments returns up to 20 results and a nextToken value if applicable."
    }
  },
  "required": [
    "service"
  ],
  "$defs": {
    "CreatedAt": {
      "type": "object",
      "properties": {
        "before": {
          "type": "string",
          "format": "date-time",
          "description": "Include service deployments in the result that were created before this time. The format is yyyy-MM-dd HH:mm:ss.SSSSSS."
        },
        "after": {
          "type": "string",
          "format": "date-time",
          "description": "Include service deployments in the result that were created after this time. The format is yyyy-MM-dd HH:mm:ss.SSSSSS."
        }
      }
    }
  }
}