{
  "$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-list-billing-views-response-schema.json",
  "title": "ListBillingViewsResponse",
  "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/ListBillingViewsResponse",
  "type": "object",
  "properties": {
    "billingViews": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BillingViewListElement"
      },
      "description": "A list of BillingViewListElement retrieved."
    },
    "nextToken": {
      "type": "string",
      "description": "The pagination token to use on subsequent calls to list billing views."
    }
  },
  "required": [
    "billingViews"
  ],
  "$defs": {
    "BillingViewHealthStatus": {
      "type": "object",
      "properties": {
        "statusCode": {
          "type": "string",
          "enum": [
            "HEALTHY",
            "UNHEALTHY",
            "CREATING",
            "UPDATING"
          ],
          "description": "The current health status code of the billing view."
        },
        "statusReasons": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "SOURCE_VIEW_UNHEALTHY",
              "SOURCE_VIEW_UPDATING",
              "SOURCE_VIEW_ACCESS_DENIED",
              "SOURCE_VIEW_NOT_FOUND",
              "CYCLIC_DEPENDENCY",
              "SOURCE_VIEW_DEPTH_EXCEEDED",
              "AGGREGATE_SOURCE",
              "VIEW_OWNER_NOT_MANAGEMENT_ACCOUNT"
            ]
          },
          "description": "A list of reasons explaining the current health status, if applicable."
        }
      }
    },
    "BillingViewListElement": {
      "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": "A list of names of the Billing view."
        },
        "description": {
          "type": "string",
          "description": "The description of the billing view."
        },
        "ownerAccountId": {
          "type": "string",
          "description": "The list of owners of the Billing view."
        },
        "sourceAccountId": {
          "type": "string",
          "description": "The Amazon Web Services account ID that owns the source billing view, if this is a derived billing view."
        },
        "billingViewType": {
          "type": "string",
          "enum": [
            "PRIMARY",
            "BILLING_GROUP",
            "CUSTOM",
            "BILLING_TRANSFER",
            "BILLING_TRANSFER_SHOWBACK"
          ],
          "description": "The type of billing view."
        },
        "healthStatus": {
          "$ref": "#/$defs/BillingViewHealthStatus"
        }
      }
    }
  }
}