ResourceInstance createResource(String clusterName, String hostName, String identityId) {
    Map<Resource.Type, String> mapIds = new HashMap<>();
    mapIds.put(Resource.Type.Cluster, clusterName);
    mapIds.put(Resource.Type.Host, hostName);
    mapIds.put(Resource.Type.HostKerberosIdentity, identityId);

    return createResource(Resource.Type.HostKerberosIdentity, mapIds);
  }
Create a kerberos identity resource instance.

@param clusterName cluster name
@param hostName    host name
@param identityId  Kerberos identity id
@return a component resource instance
ambari-server/src/main/java/org/apache/ambari/server/api/services/HostKerberosIdentityService.java