{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2/json-schema/amazon-ec2-cancel-capacity-reservation-fleets-result-schema.json",
  "title": "CancelCapacityReservationFleetsResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ec2-capacity-reservation-fleet-api-openapi.yml#/components/schemas/CancelCapacityReservationFleetsResult",
  "type": "object",
  "properties": {
    "SuccessfulFleetCancellations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CapacityReservationFleetCancellationState"
      },
      "description": "Information about the Capacity Reservation Fleets that were successfully cancelled."
    },
    "FailedFleetCancellations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FailedCapacityReservationFleetCancellationResult"
      },
      "description": "Information about the Capacity Reservation Fleets that could not be cancelled."
    }
  },
  "$defs": {
    "CancelCapacityReservationFleetError": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "description": "The error code."
        },
        "Message": {
          "type": "string",
          "description": "The error message."
        }
      }
    },
    "CapacityReservationFleetCancellationState": {
      "type": "object",
      "properties": {
        "CurrentFleetState": {
          "type": "string",
          "enum": [
            "submitted",
            "modifying",
            "active",
            "partially_fulfilled",
            "expiring",
            "expired",
            "cancelling",
            "cancelled",
            "failed"
          ],
          "description": "The current state of the Capacity Reservation Fleet."
        },
        "PreviousFleetState": {
          "type": "string",
          "enum": [
            "submitted",
            "modifying",
            "active",
            "partially_fulfilled",
            "expiring",
            "expired",
            "cancelling",
            "cancelled",
            "failed"
          ],
          "description": "The previous state of the Capacity Reservation Fleet."
        },
        "CapacityReservationFleetId": {
          "type": "string",
          "description": "The ID of the Capacity Reservation Fleet that was successfully cancelled."
        }
      }
    },
    "FailedCapacityReservationFleetCancellationResult": {
      "type": "object",
      "properties": {
        "CapacityReservationFleetId": {
          "type": "string",
          "description": "The ID of the Capacity Reservation Fleet that could not be cancelled."
        },
        "CancelCapacityReservationFleetError": {
          "$ref": "#/$defs/CancelCapacityReservationFleetError"
        }
      }
    }
  }
}