{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-deadline-cloud/json-schema/amazon-deadline-cloud-list-budgets-response-schema.json",
  "title": "ListBudgetsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-deadline-cloud-budgets-api-openapi.yml#/components/schemas/ListBudgetsResponse",
  "type": "object",
  "properties": {
    "budgets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BudgetSummary"
      },
      "description": "The budgets to include on the list."
    },
    "nextToken": {
      "type": "string",
      "description": "If Deadline Cloud returns nextToken, then there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then nextToken is set to null. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 ValidationException error."
    }
  },
  "required": [
    "budgets"
  ],
  "$defs": {
    "BudgetSummary": {
      "type": "object",
      "properties": {
        "budgetId": {
          "type": "string",
          "description": "The budget ID."
        },
        "usageTrackingResource": {
          "$ref": "#/$defs/UsageTrackingResource"
        },
        "status": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "INACTIVE"
          ],
          "description": "The status of the budget. ACTIVE–The budget is being evaluated. INACTIVE–The budget is inactive. This can include Expired, Canceled, or deleted Deleted statuses."
        },
        "displayName": {
          "type": "string",
          "description": "The display name of the budget summary to update. This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field."
        },
        "approximateDollarLimit": {
          "type": "number",
          "description": "The approximate dollar limit of the budget."
        },
        "usages": {
          "$ref": "#/$defs/ConsumedUsages"
        },
        "createdBy": {
          "type": "string",
          "description": "The user or system that created this resource."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the resource was created."
        },
        "updatedBy": {
          "type": "string",
          "description": "The user or system that updated this resource."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the resource was updated."
        },
        "description": {
          "type": "string",
          "description": "The description of the budget summary. This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field."
        }
      },
      "required": [
        "budgetId",
        "usageTrackingResource",
        "status",
        "displayName",
        "approximateDollarLimit",
        "usages",
        "createdBy",
        "createdAt"
      ]
    },
    "ConsumedUsages": {
      "type": "object",
      "properties": {
        "approximateDollarUsage": {
          "type": "number",
          "description": "The amount of the budget consumed."
        }
      },
      "required": [
        "approximateDollarUsage"
      ]
    },
    "UsageTrackingResource": {
      "type": "object",
      "properties": {
        "queueId": {
          "type": "string",
          "description": "The queue ID."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}