GroupCustomAttribute

class GroupCustomAttribute : KotlinCustomResource

The gitlab.GroupCustomAttribute resource allows to manage custom attributes for a group. Upstream API: GitLab REST API docs

Example Usage

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

Import

You can import a group custom attribute using the an id made up of {group-id}:{key}, e.g.

$ pulumi import gitlab:index/groupCustomAttribute:GroupCustomAttribute attr 42:location

Properties

Link copied to clipboard
val group: Output<Int>

The id of the group.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val key: Output<String>

Key for the Custom Attribute.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val value: Output<String>

Value for the Custom Attribute.