{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-deadline-cloud/json-schema/amazon-deadline-cloud-get-budget-response-schema.json",
  "title": "GetBudgetResponse",
  "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/GetBudgetResponse",
  "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–Get a budget being evaluated. INACTIVE–Get an inactive budget. This can include expired, canceled, or deleted statuses."
    },
    "displayName": {
      "type": "string",
      "description": "The display name of the budget. 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 consumed usage limit for 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. 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."
    },
    "actions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResponseBudgetAction"
      },
      "description": "The budget actions for the budget."
    },
    "schedule": {
      "$ref": "#/$defs/BudgetSchedule"
    },
    "queueStoppedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the queue stopped."
    }
  },
  "required": [
    "budgetId",
    "usageTrackingResource",
    "status",
    "displayName",
    "approximateDollarLimit",
    "usages",
    "createdBy",
    "createdAt",
    "actions",
    "schedule"
  ],
  "$defs": {
    "BudgetSchedule": {
      "type": "object",
      "properties": {
        "fixed": {
          "$ref": "#/$defs/FixedBudgetSchedule"
        }
      },
      "description": "Exactly one member is set."
    },
    "ConsumedUsages": {
      "type": "object",
      "properties": {
        "approximateDollarUsage": {
          "type": "number",
          "description": "The amount of the budget consumed."
        }
      },
      "required": [
        "approximateDollarUsage"
      ]
    },
    "FixedBudgetSchedule": {
      "type": "object",
      "properties": {
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "When the budget starts."
        },
        "endTime": {
          "type": "string",
          "format": "date-time",
          "description": "When the budget ends."
        }
      },
      "required": [
        "startTime",
        "endTime"
      ]
    },
    "ResponseBudgetAction": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "STOP_SCHEDULING_AND_COMPLETE_TASKS",
            "STOP_SCHEDULING_AND_CANCEL_TASKS"
          ],
          "description": "The action taken on the budget once scheduling stops."
        },
        "thresholdPercentage": {
          "type": "number",
          "description": "The percentage threshold for the budget."
        },
        "description": {
          "type": "string",
          "description": "The budget action description. 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": [
        "type",
        "thresholdPercentage"
      ]
    },
    "UsageTrackingResource": {
      "type": "object",
      "properties": {
        "queueId": {
          "type": "string",
          "description": "The queue ID."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}