{
  "$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-request-schema.json",
  "title": "ListBillingViewsRequest",
  "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/ListBillingViewsRequest",
  "type": "object",
  "properties": {
    "activeTimeRange": {
      "$ref": "#/$defs/ActiveTimeRange"
    },
    "arns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view."
    },
    "billingViewTypes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "PRIMARY",
          "BILLING_GROUP",
          "CUSTOM",
          "BILLING_TRANSFER",
          "BILLING_TRANSFER_SHOWBACK"
        ]
      },
      "description": "The type of billing view."
    },
    "names": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StringSearch"
      },
      "description": "Filters the list of billing views by name. You can specify search criteria to match billing view names based on the search option provided."
    },
    "ownerAccountId": {
      "type": "string",
      "description": "The list of owners of the billing view."
    },
    "sourceAccountId": {
      "type": "string",
      "description": "Filters the results to include only billing views that use the specified account as a source."
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of billing views to retrieve. Default is 100."
    },
    "nextToken": {
      "type": "string",
      "description": "The pagination token that is used on subsequent calls to list billing views."
    }
  },
  "$defs": {
    "ActiveTimeRange": {
      "type": "object",
      "properties": {
        "activeAfterInclusive": {
          "type": "string",
          "description": "The inclusive time range start date."
        },
        "activeBeforeInclusive": {
          "type": "string",
          "description": "The inclusive time range end date."
        }
      },
      "required": [
        "activeAfterInclusive",
        "activeBeforeInclusive"
      ]
    },
    "StringSearch": {
      "type": "object",
      "properties": {
        "searchOption": {
          "type": "string",
          "enum": [
            "STARTS_WITH"
          ],
          "description": "The type of search operation to perform on the string value. Determines how the search value is matched against the target field."
        },
        "searchValue": {
          "type": "string",
          "description": "The string value to use in the search operation. This value is compared against the target field using the specified search option."
        }
      },
      "required": [
        "searchOption",
        "searchValue"
      ]
    }
  }
}