{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-private-ca/json-schema/amazon-private-ca-get-service-principal-name-response-schema.json",
  "title": "GetServicePrincipalNameResponse",
  "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/GetServicePrincipalNameResponse",
  "type": "object",
  "properties": {
    "ServicePrincipalName": {
      "$ref": "#/$defs/ServicePrincipalName"
    }
  },
  "$defs": {
    "ServicePrincipalName": {
      "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.html."
        },
        "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": "The date and time that the service principal name was updated."
        }
      }
    }
  }
}