{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-opensearch/json-schema/amazon-opensearch-list-domains-for-package-response-schema.json",
  "title": "ListDomainsForPackageResponse",
  "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/ListDomainsForPackageResponse",
  "type": "object",
  "properties": {
    "DomainPackageDetailsList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DomainPackageDetails"
      },
      "description": "Information about all domains associated with a package."
    },
    "NextToken": {
      "type": "string",
      "description": "When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Send the request again using the returned token to retrieve the next page."
    }
  },
  "$defs": {
    "DomainPackageDetails": {
      "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",
            "ZIP-PLUGIN",
            "PACKAGE-LICENSE",
            "PACKAGE-CONFIG"
          ],
          "description": "The type of package."
        },
        "LastUpdated": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp of the most recent update to the package association status."
        },
        "DomainName": {
          "type": "string",
          "description": "Name of the domain that the package is associated with."
        },
        "DomainPackageStatus": {
          "type": "string",
          "enum": [
            "ASSOCIATING",
            "ASSOCIATION_FAILED",
            "ACTIVE",
            "DISSOCIATING",
            "DISSOCIATION_FAILED"
          ],
          "description": "State of the association."
        },
        "PackageVersion": {
          "type": "string",
          "description": "The current version of the package."
        },
        "PrerequisitePackageIDList": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of package IDs that must be associated with the domain before or with the package can be associated."
        },
        "ReferencePath": {
          "type": "string",
          "description": "The relative path of the package on the OpenSearch Service cluster nodes. This is synonym_path when the package is for synonym files."
        },
        "ErrorDetails": {
          "$ref": "#/$defs/ErrorDetails"
        },
        "AssociationConfiguration": {
          "$ref": "#/$defs/PackageAssociationConfiguration"
        }
      }
    },
    "ErrorDetails": {
      "type": "object",
      "properties": {
        "ErrorType": {
          "type": "string",
          "description": "The type of error that occurred."
        },
        "ErrorMessage": {
          "type": "string",
          "description": "A message describing the error."
        }
      }
    },
    "KeyStoreAccessOption": {
      "type": "object",
      "properties": {
        "KeyAccessRoleArn": {
          "type": "string",
          "description": "Role ARN to access the KeyStore Key"
        },
        "KeyStoreAccessEnabled": {
          "type": "boolean",
          "description": "This indicates whether Key Store access is enabled"
        }
      },
      "required": [
        "KeyStoreAccessEnabled"
      ]
    },
    "PackageAssociationConfiguration": {
      "type": "object",
      "properties": {
        "KeyStoreAccessOption": {
          "$ref": "#/$defs/KeyStoreAccessOption"
        }
      }
    }
  }
}