{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-opensearch/json-schema/amazon-opensearch-get-capability-response-schema.json",
  "title": "GetCapabilityResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-opensearch-capability-api-openapi.yml#/components/schemas/GetCapabilityResponse",
  "type": "object",
  "properties": {
    "capabilityName": {
      "type": "string",
      "description": "The name of the capability."
    },
    "applicationId": {
      "type": "string",
      "description": "The unique identifier of the OpenSearch UI application."
    },
    "status": {
      "type": "string",
      "enum": [
        "creating",
        "create_failed",
        "active",
        "updating",
        "update_failed",
        "deleting",
        "delete_failed"
      ],
      "description": "The current status of the capability. Possible values: creating, create_failed, active, updating, update_failed, deleting, delete_failed."
    },
    "capabilityConfig": {
      "$ref": "#/$defs/CapabilityExtendedResponseConfig"
    },
    "failures": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CapabilityFailure"
      },
      "description": "A list of failures associated with the capability, if any. Each failure includes a reason and details about what went wrong."
    }
  },
  "$defs": {
    "AIConfig": {
      "type": "object",
      "properties": {}
    },
    "CapabilityExtendedResponseConfig": {
      "type": "object",
      "properties": {
        "aiConfig": {
          "$ref": "#/$defs/AIConfig"
        }
      },
      "description": "Exactly one member is set."
    },
    "CapabilityFailure": {
      "type": "object",
      "properties": {
        "reason": {
          "type": "string",
          "enum": [
            "KMS_KEY_INSUFFICIENT_PERMISSION"
          ],
          "description": "The reason for the capability failure. Possible values: KMS_KEY_INSUFFICIENT_PERMISSION."
        },
        "details": {
          "type": "string",
          "description": "Additional details about the capability failure."
        }
      }
    }
  }
}