{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-opensearch/json-schema/amazon-opensearch-es-list-domains-for-package-response-schema.json",
  "title": "EsListDomainsForPackageResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-opensearch-domain-api-openapi.yml#/components/schemas/EsListDomainsForPackageResponse",
  "type": "object",
  "properties": {
    "DomainPackageDetailsList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EsDomainPackageDetails"
      },
      "description": "List of DomainPackageDetails objects."
    },
    "NextToken": {
      "type": "string"
    }
  },
  "$defs": {
    "EsDomainPackageDetails": {
      "type": "object",
      "properties": {
        "PackageID": {
          "type": "string",
          "description": "Internal ID of the package."
        },
        "PackageName": {
          "type": "string",
          "description": "User specified name of the package."
        },
        "PackageType": {
          "type": "string",
          "enum": [
            "TXT-DICTIONARY"
          ],
          "description": "Currently supports only TXT-DICTIONARY."
        },
        "LastUpdated": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp of the most-recent update to the association status."
        },
        "DomainName": {
          "type": "string",
          "description": "Name of the domain you've associated a package with."
        },
        "DomainPackageStatus": {
          "type": "string",
          "enum": [
            "ASSOCIATING",
            "ASSOCIATION_FAILED",
            "ACTIVE",
            "DISSOCIATING",
            "DISSOCIATION_FAILED"
          ],
          "description": "State of the association. Values are ASSOCIATING/ASSOCIATION_FAILED/ACTIVE/DISSOCIATING/DISSOCIATION_FAILED."
        },
        "PackageVersion": {
          "type": "string"
        },
        "ReferencePath": {
          "type": "string",
          "description": "The relative path on Amazon ES nodes, which can be used as synonym_path when the package is synonym file."
        },
        "ErrorDetails": {
          "$ref": "#/$defs/EsErrorDetails"
        }
      }
    },
    "EsErrorDetails": {
      "type": "object",
      "properties": {
        "ErrorType": {
          "type": "string"
        },
        "ErrorMessage": {
          "type": "string"
        }
      }
    }
  }
}