{
  "$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-billing-view-request-schema.json",
  "title": "UpdateBillingViewRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-billing-and-cost-management-billing-view-api-openapi.yml#/components/schemas/UpdateBillingViewRequest",
  "type": "object",
  "properties": {
    "arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view."
    },
    "name": {
      "type": "string",
      "description": "The name of the billing view."
    },
    "description": {
      "type": "string",
      "description": "The description of the billing view."
    },
    "dataFilterExpression": {
      "$ref": "#/$defs/BillingExpression"
    }
  },
  "required": [
    "arn"
  ],
  "$defs": {
    "BillingCostCategoryValues": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The unique name of the Cost Category."
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The specific value of the Cost Category."
        }
      },
      "required": [
        "key",
        "values"
      ]
    },
    "BillingDimensionValues": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "enum": [
            "LINKED_ACCOUNT"
          ],
          "description": "The names of the metadata types that you can use to filter and group your results."
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The metadata values that you can use to filter and group your results."
        }
      },
      "required": [
        "key",
        "values"
      ]
    },
    "BillingExpression": {
      "type": "object",
      "properties": {
        "dimensions": {
          "$ref": "#/$defs/BillingDimensionValues"
        },
        "tags": {
          "$ref": "#/$defs/BillingTagValues"
        },
        "costCategories": {
          "$ref": "#/$defs/BillingCostCategoryValues"
        },
        "timeRange": {
          "$ref": "#/$defs/TimeRange"
        }
      }
    },
    "BillingTagValues": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The key for the tag."
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The specific value of the tag."
        }
      },
      "required": [
        "key",
        "values"
      ]
    },
    "TimeRange": {
      "type": "object",
      "properties": {
        "beginDateInclusive": {
          "type": "string",
          "description": "The inclusive start date of the time range."
        },
        "endDateInclusive": {
          "type": "string",
          "description": "The inclusive end date of the time range."
        }
      }
    }
  }
}