{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-private-ca/json-schema/amazon-private-ca-list-service-principal-names-response-schema.json",
  "title": "ListServicePrincipalNamesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-private-ca-serviceprincipalnames-api-openapi.yml#/components/schemas/ListServicePrincipalNamesResponse",
  "type": "object",
  "properties": {
    "ServicePrincipalNames": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ServicePrincipalNameSummary"
      },
      "description": "The service principal name, if any, that the connector uses to authenticate with Active Directory."
    },
    "NextToken": {
      "type": "string",
      "description": "Use this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken parameter from the response you just received."
    }
  },
  "$defs": {
    "ServicePrincipalNameSummary": {
      "type": "object",
      "properties": {
        "DirectoryRegistrationArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) that was returned when you called CreateDirectoryRegistration."
        },
        "ConnectorArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) that was returned when you called CreateConnector."
        },
        "Status": {
          "type": "string",
          "enum": [
            "CREATING",
            "ACTIVE",
            "DELETING",
            "FAILED"
          ],
          "description": "The status of a service principal name."
        },
        "StatusReason": {
          "type": "string",
          "enum": [
            "DIRECTORY_ACCESS_DENIED",
            "DIRECTORY_NOT_REACHABLE",
            "DIRECTORY_RESOURCE_NOT_FOUND",
            "SPN_EXISTS_ON_DIFFERENT_AD_OBJECT",
            "SPN_LIMIT_EXCEEDED",
            "INTERNAL_FAILURE"
          ],
          "description": "Additional information for the status of a service principal name if the status is failed."
        },
        "CreatedAt": {
          "type": "string",
          "description": "The date and time that the service principal name was created."
        },
        "UpdatedAt": {
          "type": "string",
          "description": "Time when the service principal name was updated."
        }
      }
    }
  }
}