{
  "$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-contracts-response-schema.json",
  "title": "ListContractsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-billing-and-cost-management-contract-api-openapi.yml#/components/schemas/ListContractsResponse",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContractSummary"
      },
      "description": "The list of contracts that your Amazon Web Services account is an eligible payer account of."
    },
    "nextToken": {
      "type": "string",
      "description": "The pagination token to use on subsequent calls to retrieve the next set of results."
    }
  },
  "required": [
    "items"
  ],
  "$defs": {
    "ContractSummary": {
      "type": "object",
      "properties": {
        "contractArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the contract. Pass this value to operations such as GetContractInformation, ListContractualInvestmentSummaries, and AssociateContract."
        },
        "contractTerm": {
          "$ref": "#/$defs/Interval"
        },
        "contractType": {
          "type": "string",
          "enum": [
            "Cross-Service",
            "Service-Specific",
            "Other"
          ],
          "description": "The classification of the contract. Valid values are Cross-Service, Service-Specific, and Other. Cross-Service applies across multiple Amazon Web Services services. Service-Specific applies to a specific Amazon Web Services service. Other applies to other arrangements."
        },
        "associationStatus": {
          "type": "string",
          "enum": [
            "ASSOCIATED",
            "NOT_ASSOCIATED"
          ],
          "description": "Indicates whether the contract is currently associated with your account. Valid values are ASSOCIATED and NOT_ASSOCIATED. ASSOCIATED means the contract is associated with your account. NOT_ASSOCIATED means the contract is not associated with your account."
        },
        "lastUpdatedAt": {
          "type": "string",
          "description": "The time when the contract was last associated with your account."
        }
      },
      "required": [
        "contractArn",
        "contractTerm",
        "associationStatus"
      ]
    },
    "Interval": {
      "type": "object",
      "properties": {
        "startDateInclusive": {
          "type": "string",
          "description": "The start date of the interval. This date is included in the interval."
        },
        "endDateInclusive": {
          "type": "string",
          "description": "The end date of the interval. This date is included in the interval."
        }
      },
      "required": [
        "startDateInclusive",
        "endDateInclusive"
      ]
    }
  }
}