ResourceInstance createTargetClusterResource(String targetName) {
    return createResource(Resource.Type.DRTargetCluster,
        Collections.singletonMap(Resource.Type.DRTargetCluster, targetName));
  }
Create a target resource instance.

@param targetName target name

@return a target resource instance
ambari-server/src/main/java/org/apache/ambari/server/api/services/TargetClusterService.java