{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-opensearch/json-schema/amazon-opensearch-associate-package-request-schema.json",
  "title": "AssociatePackageRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-opensearch-packages-api-openapi.yml#/components/schemas/AssociatePackageRequest",
  "type": "object",
  "properties": {
    "PackageID": {
      "type": "string",
      "description": "Internal ID of the package to associate with a domain. Use DescribePackages to find this value."
    },
    "DomainName": {
      "type": "string",
      "description": "Name of the domain to associate the package with."
    },
    "PrerequisitePackageIDList": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of package IDs that must be associated with the domain before the package specified in the request can be associated."
    },
    "AssociationConfiguration": {
      "$ref": "#/$defs/PackageAssociationConfiguration"
    }
  },
  "required": [
    "PackageID",
    "DomainName"
  ],
  "$defs": {
    "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"
        }
      }
    }
  }
}