User Custom Attribute Args
data class UserCustomAttributeArgs(val key: Output<String>? = null, val user: Output<Int>? = null, val value: Output<String>? = null) : ConvertibleToJava<UserCustomAttributeArgs>
The gitlab.UserCustomAttribute
resource allows to manage custom attributes for a user. Upstream API: GitLab REST API docs
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.UserCustomAttribute;
import com.pulumi.gitlab.UserCustomAttributeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var attr = new UserCustomAttribute("attr", UserCustomAttributeArgs.builder()
.key("location")
.user("42")
.value("Greenland")
.build());
}
}
Content copied to clipboard
Import
You can import a user custom attribute using an id made up of {user-id}:{key}
, e.g.
$ pulumi import gitlab:index/userCustomAttribute:UserCustomAttribute attr 42:location
Content copied to clipboard