{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-billing-and-cost-management/json-schema/amazon-billing-and-cost-management-get-bill-estimate-response-schema.json",
  "title": "GetBillEstimateResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-billing-and-cost-management-bill-estimate-api-openapi.yml#/components/schemas/GetBillEstimateResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier of the retrieved bill estimate."
    },
    "name": {
      "type": "string",
      "description": "The name of the retrieved bill estimate."
    },
    "status": {
      "type": "string",
      "enum": [
        "IN_PROGRESS",
        "COMPLETE",
        "FAILED"
      ],
      "description": "The current status of the bill estimate."
    },
    "failureMessage": {
      "type": "string",
      "description": "An error message if the bill estimate retrieval failed."
    },
    "billInterval": {
      "$ref": "#/$defs/BillInterval"
    },
    "costSummary": {
      "$ref": "#/$defs/BillEstimateCostSummary"
    },
    "createdAt": {
      "type": "string",
      "description": "The timestamp when the bill estimate was created."
    },
    "expiresAt": {
      "type": "string",
      "description": "The timestamp when the bill estimate will expire."
    },
    "groupSharingPreference": {
      "type": "string",
      "enum": [
        "OPEN",
        "PRIORITIZED",
        "RESTRICTED"
      ],
      "description": "The setting for the reserved instance and savings plan group sharing used in this estimate."
    },
    "costCategoryGroupSharingPreferenceArn": {
      "type": "string",
      "description": "The arn of the cost category used in the reserved and prioritized group sharing."
    },
    "costCategoryGroupSharingPreferenceEffectiveDate": {
      "type": "string",
      "description": "Timestamp of the effective date of the cost category used in the group sharing settings."
    }
  },
  "required": [
    "id"
  ],
  "$defs": {
    "BillEstimateCostSummary": {
      "type": "object",
      "properties": {
        "totalCostDifference": {
          "$ref": "#/$defs/CostDifference"
        },
        "serviceCostDifferences": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/CostDifference"
          },
          "description": "A breakdown of cost differences by Amazon Web Services service."
        }
      }
    },
    "BillInterval": {
      "type": "object",
      "properties": {
        "start": {
          "type": "string",
          "description": "The start date and time of the interval."
        },
        "end": {
          "type": "string",
          "description": "The end date and time of the interval."
        }
      }
    },
    "CostAmount": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number",
          "description": "The numeric value of the cost."
        },
        "currency": {
          "type": "string",
          "enum": [
            "USD"
          ],
          "description": "The currency code for the cost amount."
        }
      }
    },
    "CostDifference": {
      "type": "object",
      "properties": {
        "historicalCost": {
          "$ref": "#/$defs/CostAmount"
        },
        "estimatedCost": {
          "$ref": "#/$defs/CostAmount"
        }
      }
    }
  }
}