UserCustomAttributeArgs

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

import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const attr = new gitlab.UserCustomAttribute("attr", {
key: "location",
user: 42,
value: "Greenland",
});
import pulumi
import pulumi_gitlab as gitlab
attr = gitlab.UserCustomAttribute("attr",
key="location",
user=42,
value="Greenland")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var attr = new GitLab.UserCustomAttribute("attr", new()
{
Key = "location",
User = 42,
Value = "Greenland",
});
});
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gitlab.NewUserCustomAttribute(ctx, "attr", &gitlab.UserCustomAttributeArgs{
Key: pulumi.String("location"),
User: pulumi.Int(42),
Value: pulumi.String("Greenland"),
})
if err != nil {
return err
}
return nil
})
}
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());
}
}
resources:
attr:
type: gitlab:UserCustomAttribute
properties:
key: location
user: '42'
value: Greenland

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

Constructors

Link copied to clipboard
constructor(key: Output<String>? = null, user: Output<Int>? = null, value: Output<String>? = null)

Properties

Link copied to clipboard
val key: Output<String>? = null

Key for the Custom Attribute.

Link copied to clipboard
val user: Output<Int>? = null

The id of the user.

Link copied to clipboard
val value: Output<String>? = null

Value for the Custom Attribute.

Functions

Link copied to clipboard
open override fun toJava(): UserCustomAttributeArgs