{
  "$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-update-bill-scenario-response-schema.json",
  "title": "UpdateBillScenarioResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-billing-and-cost-management-bill-scenario-api-openapi.yml#/components/schemas/UpdateBillScenarioResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier of the updated bill scenario."
    },
    "name": {
      "type": "string",
      "description": "The updated name of the bill scenario."
    },
    "billInterval": {
      "$ref": "#/$defs/BillInterval"
    },
    "status": {
      "type": "string",
      "enum": [
        "READY",
        "LOCKED",
        "FAILED",
        "STALE"
      ],
      "description": "The current status of the updated bill scenario."
    },
    "createdAt": {
      "type": "string",
      "description": "The timestamp when the bill scenario was originally created."
    },
    "expiresAt": {
      "type": "string",
      "description": "The updated expiration timestamp for the bill scenario."
    },
    "failureMessage": {
      "type": "string",
      "description": "An error message if the bill scenario update failed."
    },
    "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."
    }
  },
  "required": [
    "id"
  ],
  "$defs": {
    "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."
        }
      }
    }
  }
}