def METHOD_NAME(self, name, data, type_name=None):
    if type_name and "type" not in data["__tfmeta"]:
        data["__tfmeta"]["type"] = type_name
    data["__tfmeta"]["src_dir"] = self.src_dir
    return TerraformResource(name, data)