GlobalLevelNotifications

class GlobalLevelNotifications : KotlinCustomResource

The gitlab.GlobalLevelNotifications resource allows to manage global notifications. Upstream API: GitLab REST API docs

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
// Create Custom global level notification
const foo = new gitlab.GlobalLevelNotifications("foo", {
level: "custom",
newMergeRequest: true,
});
import pulumi
import pulumi_gitlab as gitlab
# Create Custom global level notification
foo = gitlab.GlobalLevelNotifications("foo",
level="custom",
new_merge_request=True)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
// Create Custom global level notification
var foo = new GitLab.GlobalLevelNotifications("foo", new()
{
Level = "custom",
NewMergeRequest = true,
});
});
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 {
// Create Custom global level notification
_, err := gitlab.NewGlobalLevelNotifications(ctx, "foo", &gitlab.GlobalLevelNotificationsArgs{
Level: pulumi.String("custom"),
NewMergeRequest: pulumi.Bool(true),
})
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.GlobalLevelNotifications;
import com.pulumi.gitlab.GlobalLevelNotificationsArgs;
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) {
// Create Custom global level notification
var foo = new GlobalLevelNotifications("foo", GlobalLevelNotificationsArgs.builder()
.level("custom")
.newMergeRequest(true)
.build());
}
}
resources:
# Create Custom global level notification
foo:
type: gitlab:GlobalLevelNotifications
properties:
level: custom
newMergeRequest: true

Import

Note: You can import a global notification state using "gitlab" as the ID. The ID will always be gitlab, because the global notificatio only exists once per user

$ pulumi import gitlab:index/globalLevelNotifications:GlobalLevelNotifications example gitlab

Properties

Link copied to clipboard
val closeIssue: Output<Boolean>

Enable notifications for closed issues. Can only be used when level is custom.

Link copied to clipboard

Enable notifications for closed merge requests. Can only be used when level is custom.

Link copied to clipboard
val failedPipeline: Output<Boolean>

Enable notifications for failed pipelines. Can only be used when level is custom.

Link copied to clipboard
val fixedPipeline: Output<Boolean>

Enable notifications for fixed pipelines. Can only be used when level is custom.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val issueDue: Output<Boolean>

Enable notifications for due issues. Can only be used when level is custom.

Link copied to clipboard
val level: Output<String>

The level of the notification. Valid values are: disabled, participating, watch, global, mention, custom.

Link copied to clipboard

Enable notifications for merged merge requests. Can only be used when level is custom.

Link copied to clipboard

Enable notifications for merged merge requests when the pipeline succeeds. Can only be used when level is custom.

Link copied to clipboard
val movedProject: Output<Boolean>

Enable notifications for moved projects. Can only be used when level is custom.

Link copied to clipboard
val newIssue: Output<Boolean>

Enable notifications for new issues. Can only be used when level is custom.

Link copied to clipboard

Enable notifications for new merge requests. Can only be used when level is custom.

Link copied to clipboard
val newNote: Output<Boolean>

Enable notifications for new notes on merge requests. Can only be used when level is custom.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Enable notifications for push to merge request branches. Can only be used when level is custom.

Link copied to clipboard
val reassignIssue: Output<Boolean>

Enable notifications for issue reassignments. Can only be used when level is custom.

Link copied to clipboard

Enable notifications for merge request reassignments. Can only be used when level is custom.

Link copied to clipboard
val reopenIssue: Output<Boolean>

Enable notifications for reopened issues. Can only be used when level is custom.

Link copied to clipboard

Enable notifications for reopened merge requests. Can only be used when level is custom.

Link copied to clipboard

Enable notifications for successful pipelines. Can only be used when level is custom.

Link copied to clipboard
val urn: Output<String>